configure revision 6d8e82c3
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for twm 1.0.13.1.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/twm/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || exit 1"
187  if (eval "$as_required") 2>/dev/null
188then :
189  as_have_required=yes
190else $as_nop
191  as_have_required=no
192fi
193  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194then :
195
196else $as_nop
197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198as_found=false
199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200do
201  IFS=$as_save_IFS
202  case $as_dir in #(((
203    '') as_dir=./ ;;
204    */) ;;
205    *) as_dir=$as_dir/ ;;
206  esac
207  as_found=:
208  case $as_dir in #(
209	 /*)
210	   for as_base in sh bash ksh sh5; do
211	     # Try only shells that exist, to save several forks.
212	     as_shell=$as_dir$as_base
213	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215then :
216  CONFIG_SHELL=$as_shell as_have_required=yes
217		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218then :
219  break 2
220fi
221fi
222	   done;;
223       esac
224  as_found=false
225done
226IFS=$as_save_IFS
227if $as_found
228then :
229
230else $as_nop
231  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233then :
234  CONFIG_SHELL=$SHELL as_have_required=yes
235fi
236fi
237
238
239      if test "x$CONFIG_SHELL" != x
240then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno
263then :
264  printf "%s\n" "$0: This script requires a shell more modern than all"
265  printf "%s\n" "$0: the shells that I found on your system."
266  if test ${ZSH_VERSION+y} ; then
267    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269  else
270    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271$0: https://gitlab.freedesktop.org/xorg/app/twm/issues
272$0: about your system, including any error possibly output
273$0: before this message. Then install a modern shell, or
274$0: manually run the script under such a shell if you do
275$0: have one."
276  fi
277  exit 1
278fi
279fi
280fi
281SHELL=${CONFIG_SHELL-/bin/sh}
282export SHELL
283# Unset more variables known to interfere with behavior of common tools.
284CLICOLOR_FORCE= GREP_OPTIONS=
285unset CLICOLOR_FORCE GREP_OPTIONS
286
287## --------------------- ##
288## M4sh Shell Functions. ##
289## --------------------- ##
290# as_fn_unset VAR
291# ---------------
292# Portably unset VAR.
293as_fn_unset ()
294{
295  { eval $1=; unset $1;}
296}
297as_unset=as_fn_unset
298
299
300# as_fn_set_status STATUS
301# -----------------------
302# Set $? to STATUS, without forking.
303as_fn_set_status ()
304{
305  return $1
306} # as_fn_set_status
307
308# as_fn_exit STATUS
309# -----------------
310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311as_fn_exit ()
312{
313  set +e
314  as_fn_set_status $1
315  exit $1
316} # as_fn_exit
317# as_fn_nop
318# ---------
319# Do nothing but, unlike ":", preserve the value of $?.
320as_fn_nop ()
321{
322  return $?
323}
324as_nop=as_fn_nop
325
326# as_fn_mkdir_p
327# -------------
328# Create "$as_dir" as a directory, including parents if necessary.
329as_fn_mkdir_p ()
330{
331
332  case $as_dir in #(
333  -*) as_dir=./$as_dir;;
334  esac
335  test -d "$as_dir" || eval $as_mkdir_p || {
336    as_dirs=
337    while :; do
338      case $as_dir in #(
339      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340      *) as_qdir=$as_dir;;
341      esac
342      as_dirs="'$as_qdir' $as_dirs"
343      as_dir=`$as_dirname -- "$as_dir" ||
344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345	 X"$as_dir" : 'X\(//\)[^/]' \| \
346	 X"$as_dir" : 'X\(//\)$' \| \
347	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348printf "%s\n" X"$as_dir" |
349    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)[^/].*/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\).*/{
362	    s//\1/
363	    q
364	  }
365	  s/.*/./; q'`
366      test -d "$as_dir" && break
367    done
368    test -z "$as_dirs" || eval "mkdir $as_dirs"
369  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372} # as_fn_mkdir_p
373
374# as_fn_executable_p FILE
375# -----------------------
376# Test if FILE is an executable regular file.
377as_fn_executable_p ()
378{
379  test -f "$1" && test -x "$1"
380} # as_fn_executable_p
381# as_fn_append VAR VALUE
382# ----------------------
383# Append the text in VALUE to the end of the definition contained in VAR. Take
384# advantage of any shell optimizations that allow amortized linear growth over
385# repeated appends, instead of the typical quadratic growth present in naive
386# implementations.
387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388then :
389  eval 'as_fn_append ()
390  {
391    eval $1+=\$2
392  }'
393else $as_nop
394  as_fn_append ()
395  {
396    eval $1=\$$1\$2
397  }
398fi # as_fn_append
399
400# as_fn_arith ARG...
401# ------------------
402# Perform arithmetic evaluation on the ARGs, and store the result in the
403# global $as_val. Take advantage of shells that can avoid forks. The arguments
404# must be portable across $(()) and expr.
405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406then :
407  eval 'as_fn_arith ()
408  {
409    as_val=$(( $* ))
410  }'
411else $as_nop
412  as_fn_arith ()
413  {
414    as_val=`expr "$@" || test $? -eq 1`
415  }
416fi # as_fn_arith
417
418# as_fn_nop
419# ---------
420# Do nothing but, unlike ":", preserve the value of $?.
421as_fn_nop ()
422{
423  return $?
424}
425as_nop=as_fn_nop
426
427# as_fn_error STATUS ERROR [LINENO LOG_FD]
428# ----------------------------------------
429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431# script with STATUS, using 1 if that was 0.
432as_fn_error ()
433{
434  as_status=$1; test $as_status -eq 0 && as_status=1
435  if test "$4"; then
436    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438  fi
439  printf "%s\n" "$as_me: error: $2" >&2
440  as_fn_exit $as_status
441} # as_fn_error
442
443if expr a : '\(a\)' >/dev/null 2>&1 &&
444   test "X`expr 00001 : '.*\(...\)'`" = X001; then
445  as_expr=expr
446else
447  as_expr=false
448fi
449
450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451  as_basename=basename
452else
453  as_basename=false
454fi
455
456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457  as_dirname=dirname
458else
459  as_dirname=false
460fi
461
462as_me=`$as_basename -- "$0" ||
463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464	 X"$0" : 'X\(//\)$' \| \
465	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466printf "%s\n" X/"$0" |
467    sed '/^.*\/\([^/][^/]*\)\/*$/{
468	    s//\1/
469	    q
470	  }
471	  /^X\/\(\/\/\)$/{
472	    s//\1/
473	    q
474	  }
475	  /^X\/\(\/\).*/{
476	    s//\1/
477	    q
478	  }
479	  s/.*/./; q'`
480
481# Avoid depending upon Character Ranges.
482as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485as_cr_digits='0123456789'
486as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489  as_lineno_1=$LINENO as_lineno_1a=$LINENO
490  as_lineno_2=$LINENO as_lineno_2a=$LINENO
491  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
494  sed -n '
495    p
496    /[$]LINENO/=
497  ' <$as_myself |
498    sed '
499      s/[$]LINENO.*/&-/
500      t lineno
501      b
502      :lineno
503      N
504      :loop
505      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506      t loop
507      s/-\n.*//
508    ' >$as_me.lineno &&
509  chmod +x "$as_me.lineno" ||
510    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513  # already done that, so ensure we don't try to do so again and fall
514  # in an infinite loop.  This has already happened in practice.
515  _as_can_reexec=no; export _as_can_reexec
516  # Don't try to exec as it changes $[0], causing all sort of problems
517  # (the dirname of $[0] is not the place where we might find the
518  # original and so on.  Autoconf is especially sensitive to this).
519  . "./$as_me.lineno"
520  # Exit status is that of the last command.
521  exit
522}
523
524
525# Determine whether it's possible to make 'echo' print without a newline.
526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527# for compatibility with existing Makefiles.
528ECHO_C= ECHO_N= ECHO_T=
529case `echo -n x` in #(((((
530-n*)
531  case `echo 'xy\c'` in
532  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533  xy)  ECHO_C='\c';;
534  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535       ECHO_T='	';;
536  esac;;
537*)
538  ECHO_N='-n';;
539esac
540
541# For backward compatibility with old third-party macros, we provide
542# the shell variables $as_echo and $as_echo_n.  New code should use
543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544as_echo='printf %s\n'
545as_echo_n='printf %s'
546
547
548rm -f conf$$ conf$$.exe conf$$.file
549if test -d conf$$.dir; then
550  rm -f conf$$.dir/conf$$.file
551else
552  rm -f conf$$.dir
553  mkdir conf$$.dir 2>/dev/null
554fi
555if (echo >conf$$.file) 2>/dev/null; then
556  if ln -s conf$$.file conf$$ 2>/dev/null; then
557    as_ln_s='ln -s'
558    # ... but there are two gotchas:
559    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561    # In both cases, we have to default to `cp -pR'.
562    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563      as_ln_s='cp -pR'
564  elif ln conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s=ln
566  else
567    as_ln_s='cp -pR'
568  fi
569else
570  as_ln_s='cp -pR'
571fi
572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573rmdir conf$$.dir 2>/dev/null
574
575if mkdir -p . 2>/dev/null; then
576  as_mkdir_p='mkdir -p "$as_dir"'
577else
578  test -d ./-p && rmdir ./-p
579  as_mkdir_p=false
580fi
581
582as_test_x='test -x'
583as_executable_p=as_fn_executable_p
584
585# Sed expression to map a string onto a valid CPP name.
586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588# Sed expression to map a string onto a valid variable name.
589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592test -n "$DJDIR" || exec 7<&0 </dev/null
593exec 6>&1
594
595# Name of the host.
596# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597# so uname gets run too.
598ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600#
601# Initializations.
602#
603ac_default_prefix=/usr/local
604ac_clean_files=
605ac_config_libobj_dir=.
606LIBOBJS=
607cross_compiling=no
608subdirs=
609MFLAGS=
610MAKEFLAGS=
611
612# Identity of this package.
613PACKAGE_NAME='twm'
614PACKAGE_TARNAME='twm'
615PACKAGE_VERSION='1.0.13.1'
616PACKAGE_STRING='twm 1.0.13.1'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/twm/issues'
618PACKAGE_URL=''
619
620ac_unique_file="Makefile.am"
621# Factoring default headers for most tests.
622ac_includes_default="\
623#include <stddef.h>
624#ifdef HAVE_STDIO_H
625# include <stdio.h>
626#endif
627#ifdef HAVE_STDLIB_H
628# include <stdlib.h>
629#endif
630#ifdef HAVE_STRING_H
631# include <string.h>
632#endif
633#ifdef HAVE_INTTYPES_H
634# include <inttypes.h>
635#endif
636#ifdef HAVE_STDINT_H
637# include <stdint.h>
638#endif
639#ifdef HAVE_STRINGS_H
640# include <strings.h>
641#endif
642#ifdef HAVE_SYS_TYPES_H
643# include <sys/types.h>
644#endif
645#ifdef HAVE_SYS_STAT_H
646# include <sys/stat.h>
647#endif
648#ifdef HAVE_UNISTD_H
649# include <unistd.h>
650#endif"
651
652ac_header_c_list=
653ac_subst_vars='am__EXEEXT_FALSE
654am__EXEEXT_TRUE
655LTLIBOBJS
656LIBOBJS
657XRANDR_LIBS
658XRANDR_CFLAGS
659TWM_LIBS
660TWM_CFLAGS
661LEXLIB
662LEX_OUTPUT_ROOT
663LEX
664YACC_INST
665YFLAGS
666YACC
667MAN_SUBSTS
668XORG_MAN_PAGE
669ADMIN_MAN_DIR
670DRIVER_MAN_DIR
671MISC_MAN_DIR
672FILE_MAN_DIR
673LIB_MAN_DIR
674APP_MAN_DIR
675ADMIN_MAN_SUFFIX
676DRIVER_MAN_SUFFIX
677MISC_MAN_SUFFIX
678FILE_MAN_SUFFIX
679LIB_MAN_SUFFIX
680APP_MAN_SUFFIX
681SED
682host_os
683host_vendor
684host_cpu
685host
686build_os
687build_vendor
688build_cpu
689build
690INSTALL_CMD
691PKG_CONFIG_LIBDIR
692PKG_CONFIG_PATH
693PKG_CONFIG
694CHANGELOG_CMD
695STRICT_CFLAGS
696CWARNFLAGS
697BASE_CFLAGS
698AM_BACKSLASH
699AM_DEFAULT_VERBOSITY
700AM_DEFAULT_V
701AM_V
702CSCOPE
703ETAGS
704CTAGS
705am__fastdepCC_FALSE
706am__fastdepCC_TRUE
707CCDEPMODE
708am__nodep
709AMDEPBACKSLASH
710AMDEP_FALSE
711AMDEP_TRUE
712am__include
713DEPDIR
714am__untar
715am__tar
716AMTAR
717am__leading_dot
718SET_MAKE
719AWK
720mkdir_p
721MKDIR_P
722INSTALL_STRIP_PROGRAM
723STRIP
724install_sh
725MAKEINFO
726AUTOHEADER
727AUTOMAKE
728AUTOCONF
729ACLOCAL
730VERSION
731PACKAGE
732CYGPATH_W
733am__isrc
734INSTALL_DATA
735INSTALL_SCRIPT
736INSTALL_PROGRAM
737OBJEXT
738EXEEXT
739ac_ct_CC
740CPPFLAGS
741LDFLAGS
742CFLAGS
743CC
744target_alias
745host_alias
746build_alias
747LIBS
748ECHO_T
749ECHO_N
750ECHO_C
751DEFS
752mandir
753localedir
754libdir
755psdir
756pdfdir
757dvidir
758htmldir
759infodir
760docdir
761oldincludedir
762includedir
763runstatedir
764localstatedir
765sharedstatedir
766sysconfdir
767datadir
768datarootdir
769libexecdir
770sbindir
771bindir
772program_transform_name
773prefix
774exec_prefix
775PACKAGE_URL
776PACKAGE_BUGREPORT
777PACKAGE_STRING
778PACKAGE_VERSION
779PACKAGE_TARNAME
780PACKAGE_NAME
781PATH_SEPARATOR
782SHELL
783am__quote'
784ac_subst_files=''
785ac_user_opts='
786enable_option_checking
787enable_dependency_tracking
788enable_silent_rules
789enable_selective_werror
790enable_strict_compilation
791'
792      ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798LIBS
799CPPFLAGS
800PKG_CONFIG
801PKG_CONFIG_PATH
802PKG_CONFIG_LIBDIR
803YACC
804YFLAGS
805TWM_CFLAGS
806TWM_LIBS
807XRANDR_CFLAGS
808XRANDR_LIBS'
809
810
811# Initialize some variables set by options.
812ac_init_help=
813ac_init_version=false
814ac_unrecognized_opts=
815ac_unrecognized_sep=
816# The variables have the same names as the options, with
817# dashes changed to underlines.
818cache_file=/dev/null
819exec_prefix=NONE
820no_create=
821no_recursion=
822prefix=NONE
823program_prefix=NONE
824program_suffix=NONE
825program_transform_name=s,x,x,
826silent=
827site=
828srcdir=
829verbose=
830x_includes=NONE
831x_libraries=NONE
832
833# Installation directory options.
834# These are left unexpanded so users can "make install exec_prefix=/foo"
835# and all the variables that are supposed to be based on exec_prefix
836# by default will actually change.
837# Use braces instead of parens because sh, perl, etc. also accept them.
838# (The list follows the same order as the GNU Coding Standards.)
839bindir='${exec_prefix}/bin'
840sbindir='${exec_prefix}/sbin'
841libexecdir='${exec_prefix}/libexec'
842datarootdir='${prefix}/share'
843datadir='${datarootdir}'
844sysconfdir='${prefix}/etc'
845sharedstatedir='${prefix}/com'
846localstatedir='${prefix}/var'
847runstatedir='${localstatedir}/run'
848includedir='${prefix}/include'
849oldincludedir='/usr/include'
850docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851infodir='${datarootdir}/info'
852htmldir='${docdir}'
853dvidir='${docdir}'
854pdfdir='${docdir}'
855psdir='${docdir}'
856libdir='${exec_prefix}/lib'
857localedir='${datarootdir}/locale'
858mandir='${datarootdir}/man'
859
860ac_prev=
861ac_dashdash=
862for ac_option
863do
864  # If the previous option needs an argument, assign it.
865  if test -n "$ac_prev"; then
866    eval $ac_prev=\$ac_option
867    ac_prev=
868    continue
869  fi
870
871  case $ac_option in
872  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873  *=)   ac_optarg= ;;
874  *)    ac_optarg=yes ;;
875  esac
876
877  case $ac_dashdash$ac_option in
878  --)
879    ac_dashdash=yes ;;
880
881  -bindir | --bindir | --bindi | --bind | --bin | --bi)
882    ac_prev=bindir ;;
883  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884    bindir=$ac_optarg ;;
885
886  -build | --build | --buil | --bui | --bu)
887    ac_prev=build_alias ;;
888  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889    build_alias=$ac_optarg ;;
890
891  -cache-file | --cache-file | --cache-fil | --cache-fi \
892  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893    ac_prev=cache_file ;;
894  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896    cache_file=$ac_optarg ;;
897
898  --config-cache | -C)
899    cache_file=config.cache ;;
900
901  -datadir | --datadir | --datadi | --datad)
902    ac_prev=datadir ;;
903  -datadir=* | --datadir=* | --datadi=* | --datad=*)
904    datadir=$ac_optarg ;;
905
906  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907  | --dataroo | --dataro | --datar)
908    ac_prev=datarootdir ;;
909  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911    datarootdir=$ac_optarg ;;
912
913  -disable-* | --disable-*)
914    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915    # Reject names that are not valid shell variable names.
916    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917      as_fn_error $? "invalid feature name: \`$ac_useropt'"
918    ac_useropt_orig=$ac_useropt
919    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
920    case $ac_user_opts in
921      *"
922"enable_$ac_useropt"
923"*) ;;
924      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925	 ac_unrecognized_sep=', ';;
926    esac
927    eval enable_$ac_useropt=no ;;
928
929  -docdir | --docdir | --docdi | --doc | --do)
930    ac_prev=docdir ;;
931  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932    docdir=$ac_optarg ;;
933
934  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935    ac_prev=dvidir ;;
936  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937    dvidir=$ac_optarg ;;
938
939  -enable-* | --enable-*)
940    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941    # Reject names that are not valid shell variable names.
942    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943      as_fn_error $? "invalid feature name: \`$ac_useropt'"
944    ac_useropt_orig=$ac_useropt
945    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
946    case $ac_user_opts in
947      *"
948"enable_$ac_useropt"
949"*) ;;
950      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951	 ac_unrecognized_sep=', ';;
952    esac
953    eval enable_$ac_useropt=\$ac_optarg ;;
954
955  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957  | --exec | --exe | --ex)
958    ac_prev=exec_prefix ;;
959  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961  | --exec=* | --exe=* | --ex=*)
962    exec_prefix=$ac_optarg ;;
963
964  -gas | --gas | --ga | --g)
965    # Obsolete; use --with-gas.
966    with_gas=yes ;;
967
968  -help | --help | --hel | --he | -h)
969    ac_init_help=long ;;
970  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971    ac_init_help=recursive ;;
972  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973    ac_init_help=short ;;
974
975  -host | --host | --hos | --ho)
976    ac_prev=host_alias ;;
977  -host=* | --host=* | --hos=* | --ho=*)
978    host_alias=$ac_optarg ;;
979
980  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981    ac_prev=htmldir ;;
982  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983  | --ht=*)
984    htmldir=$ac_optarg ;;
985
986  -includedir | --includedir | --includedi | --included | --include \
987  | --includ | --inclu | --incl | --inc)
988    ac_prev=includedir ;;
989  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990  | --includ=* | --inclu=* | --incl=* | --inc=*)
991    includedir=$ac_optarg ;;
992
993  -infodir | --infodir | --infodi | --infod | --info | --inf)
994    ac_prev=infodir ;;
995  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996    infodir=$ac_optarg ;;
997
998  -libdir | --libdir | --libdi | --libd)
999    ac_prev=libdir ;;
1000  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001    libdir=$ac_optarg ;;
1002
1003  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004  | --libexe | --libex | --libe)
1005    ac_prev=libexecdir ;;
1006  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007  | --libexe=* | --libex=* | --libe=*)
1008    libexecdir=$ac_optarg ;;
1009
1010  -localedir | --localedir | --localedi | --localed | --locale)
1011    ac_prev=localedir ;;
1012  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013    localedir=$ac_optarg ;;
1014
1015  -localstatedir | --localstatedir | --localstatedi | --localstated \
1016  | --localstate | --localstat | --localsta | --localst | --locals)
1017    ac_prev=localstatedir ;;
1018  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020    localstatedir=$ac_optarg ;;
1021
1022  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023    ac_prev=mandir ;;
1024  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025    mandir=$ac_optarg ;;
1026
1027  -nfp | --nfp | --nf)
1028    # Obsolete; use --without-fp.
1029    with_fp=no ;;
1030
1031  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032  | --no-cr | --no-c | -n)
1033    no_create=yes ;;
1034
1035  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037    no_recursion=yes ;;
1038
1039  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041  | --oldin | --oldi | --old | --ol | --o)
1042    ac_prev=oldincludedir ;;
1043  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046    oldincludedir=$ac_optarg ;;
1047
1048  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049    ac_prev=prefix ;;
1050  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051    prefix=$ac_optarg ;;
1052
1053  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054  | --program-pre | --program-pr | --program-p)
1055    ac_prev=program_prefix ;;
1056  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058    program_prefix=$ac_optarg ;;
1059
1060  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061  | --program-suf | --program-su | --program-s)
1062    ac_prev=program_suffix ;;
1063  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065    program_suffix=$ac_optarg ;;
1066
1067  -program-transform-name | --program-transform-name \
1068  | --program-transform-nam | --program-transform-na \
1069  | --program-transform-n | --program-transform- \
1070  | --program-transform | --program-transfor \
1071  | --program-transfo | --program-transf \
1072  | --program-trans | --program-tran \
1073  | --progr-tra | --program-tr | --program-t)
1074    ac_prev=program_transform_name ;;
1075  -program-transform-name=* | --program-transform-name=* \
1076  | --program-transform-nam=* | --program-transform-na=* \
1077  | --program-transform-n=* | --program-transform-=* \
1078  | --program-transform=* | --program-transfor=* \
1079  | --program-transfo=* | --program-transf=* \
1080  | --program-trans=* | --program-tran=* \
1081  | --progr-tra=* | --program-tr=* | --program-t=*)
1082    program_transform_name=$ac_optarg ;;
1083
1084  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085    ac_prev=pdfdir ;;
1086  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087    pdfdir=$ac_optarg ;;
1088
1089  -psdir | --psdir | --psdi | --psd | --ps)
1090    ac_prev=psdir ;;
1091  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092    psdir=$ac_optarg ;;
1093
1094  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095  | -silent | --silent | --silen | --sile | --sil)
1096    silent=yes ;;
1097
1098  -runstatedir | --runstatedir | --runstatedi | --runstated \
1099  | --runstate | --runstat | --runsta | --runst | --runs \
1100  | --run | --ru | --r)
1101    ac_prev=runstatedir ;;
1102  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1103  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1104  | --run=* | --ru=* | --r=*)
1105    runstatedir=$ac_optarg ;;
1106
1107  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108    ac_prev=sbindir ;;
1109  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110  | --sbi=* | --sb=*)
1111    sbindir=$ac_optarg ;;
1112
1113  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115  | --sharedst | --shareds | --shared | --share | --shar \
1116  | --sha | --sh)
1117    ac_prev=sharedstatedir ;;
1118  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121  | --sha=* | --sh=*)
1122    sharedstatedir=$ac_optarg ;;
1123
1124  -site | --site | --sit)
1125    ac_prev=site ;;
1126  -site=* | --site=* | --sit=*)
1127    site=$ac_optarg ;;
1128
1129  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130    ac_prev=srcdir ;;
1131  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132    srcdir=$ac_optarg ;;
1133
1134  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135  | --syscon | --sysco | --sysc | --sys | --sy)
1136    ac_prev=sysconfdir ;;
1137  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139    sysconfdir=$ac_optarg ;;
1140
1141  -target | --target | --targe | --targ | --tar | --ta | --t)
1142    ac_prev=target_alias ;;
1143  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144    target_alias=$ac_optarg ;;
1145
1146  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147    verbose=yes ;;
1148
1149  -version | --version | --versio | --versi | --vers | -V)
1150    ac_init_version=: ;;
1151
1152  -with-* | --with-*)
1153    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154    # Reject names that are not valid shell variable names.
1155    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156      as_fn_error $? "invalid package name: \`$ac_useropt'"
1157    ac_useropt_orig=$ac_useropt
1158    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1159    case $ac_user_opts in
1160      *"
1161"with_$ac_useropt"
1162"*) ;;
1163      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164	 ac_unrecognized_sep=', ';;
1165    esac
1166    eval with_$ac_useropt=\$ac_optarg ;;
1167
1168  -without-* | --without-*)
1169    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170    # Reject names that are not valid shell variable names.
1171    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172      as_fn_error $? "invalid package name: \`$ac_useropt'"
1173    ac_useropt_orig=$ac_useropt
1174    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1175    case $ac_user_opts in
1176      *"
1177"with_$ac_useropt"
1178"*) ;;
1179      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180	 ac_unrecognized_sep=', ';;
1181    esac
1182    eval with_$ac_useropt=no ;;
1183
1184  --x)
1185    # Obsolete; use --with-x.
1186    with_x=yes ;;
1187
1188  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189  | --x-incl | --x-inc | --x-in | --x-i)
1190    ac_prev=x_includes ;;
1191  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193    x_includes=$ac_optarg ;;
1194
1195  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197    ac_prev=x_libraries ;;
1198  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200    x_libraries=$ac_optarg ;;
1201
1202  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203Try \`$0 --help' for more information"
1204    ;;
1205
1206  *=*)
1207    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208    # Reject names that are not valid shell variable names.
1209    case $ac_envvar in #(
1210      '' | [0-9]* | *[!_$as_cr_alnum]* )
1211      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212    esac
1213    eval $ac_envvar=\$ac_optarg
1214    export $ac_envvar ;;
1215
1216  *)
1217    # FIXME: should be removed in autoconf 3.0.
1218    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1219    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1221    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222    ;;
1223
1224  esac
1225done
1226
1227if test -n "$ac_prev"; then
1228  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229  as_fn_error $? "missing argument to $ac_option"
1230fi
1231
1232if test -n "$ac_unrecognized_opts"; then
1233  case $enable_option_checking in
1234    no) ;;
1235    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237  esac
1238fi
1239
1240# Check all directory arguments for consistency.
1241for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242		datadir sysconfdir sharedstatedir localstatedir includedir \
1243		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244		libdir localedir mandir runstatedir
1245do
1246  eval ac_val=\$$ac_var
1247  # Remove trailing slashes.
1248  case $ac_val in
1249    */ )
1250      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251      eval $ac_var=\$ac_val;;
1252  esac
1253  # Be sure to have absolute directory names.
1254  case $ac_val in
1255    [\\/$]* | ?:[\\/]* )  continue;;
1256    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257  esac
1258  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259done
1260
1261# There might be people who depend on the old broken behavior: `$host'
1262# used to hold the argument of --host etc.
1263# FIXME: To remove some day.
1264build=$build_alias
1265host=$host_alias
1266target=$target_alias
1267
1268# FIXME: To remove some day.
1269if test "x$host_alias" != x; then
1270  if test "x$build_alias" = x; then
1271    cross_compiling=maybe
1272  elif test "x$build_alias" != "x$host_alias"; then
1273    cross_compiling=yes
1274  fi
1275fi
1276
1277ac_tool_prefix=
1278test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280test "$silent" = yes && exec 6>/dev/null
1281
1282
1283ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284ac_ls_di=`ls -di .` &&
1285ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286  as_fn_error $? "working directory cannot be determined"
1287test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288  as_fn_error $? "pwd does not report name of working directory"
1289
1290
1291# Find the source files, if location was not specified.
1292if test -z "$srcdir"; then
1293  ac_srcdir_defaulted=yes
1294  # Try the directory containing this script, then the parent directory.
1295  ac_confdir=`$as_dirname -- "$as_myself" ||
1296$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297	 X"$as_myself" : 'X\(//\)[^/]' \| \
1298	 X"$as_myself" : 'X\(//\)$' \| \
1299	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300printf "%s\n" X"$as_myself" |
1301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\/\)[^/].*/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\/\)$/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\).*/{
1314	    s//\1/
1315	    q
1316	  }
1317	  s/.*/./; q'`
1318  srcdir=$ac_confdir
1319  if test ! -r "$srcdir/$ac_unique_file"; then
1320    srcdir=..
1321  fi
1322else
1323  ac_srcdir_defaulted=no
1324fi
1325if test ! -r "$srcdir/$ac_unique_file"; then
1326  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328fi
1329ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330ac_abs_confdir=`(
1331	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332	pwd)`
1333# When building in place, set srcdir=.
1334if test "$ac_abs_confdir" = "$ac_pwd"; then
1335  srcdir=.
1336fi
1337# Remove unnecessary trailing slashes from srcdir.
1338# Double slashes in file names in object file debugging info
1339# mess up M-x gdb in Emacs.
1340case $srcdir in
1341*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342esac
1343for ac_var in $ac_precious_vars; do
1344  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345  eval ac_env_${ac_var}_value=\$${ac_var}
1346  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348done
1349
1350#
1351# Report the --help message.
1352#
1353if test "$ac_init_help" = "long"; then
1354  # Omit some internal or obsolete options to make the list less imposing.
1355  # This message is too long to be a string in the A/UX 3.1 sh.
1356  cat <<_ACEOF
1357\`configure' configures twm 1.0.13.1 to adapt to many kinds of systems.
1358
1359Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362VAR=VALUE.  See below for descriptions of some of the useful variables.
1363
1364Defaults for the options are specified in brackets.
1365
1366Configuration:
1367  -h, --help              display this help and exit
1368      --help=short        display options specific to this package
1369      --help=recursive    display the short help of all the included packages
1370  -V, --version           display version information and exit
1371  -q, --quiet, --silent   do not print \`checking ...' messages
1372      --cache-file=FILE   cache test results in FILE [disabled]
1373  -C, --config-cache      alias for \`--cache-file=config.cache'
1374  -n, --no-create         do not create output files
1375      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1376
1377Installation directories:
1378  --prefix=PREFIX         install architecture-independent files in PREFIX
1379                          [$ac_default_prefix]
1380  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1381                          [PREFIX]
1382
1383By default, \`make install' will install all the files in
1384\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1385an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386for instance \`--prefix=\$HOME'.
1387
1388For better control, use the options below.
1389
1390Fine tuning of the installation directories:
1391  --bindir=DIR            user executables [EPREFIX/bin]
1392  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1393  --libexecdir=DIR        program executables [EPREFIX/libexec]
1394  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1395  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1396  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1397  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1398  --libdir=DIR            object code libraries [EPREFIX/lib]
1399  --includedir=DIR        C header files [PREFIX/include]
1400  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1401  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1402  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1403  --infodir=DIR           info documentation [DATAROOTDIR/info]
1404  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1405  --mandir=DIR            man documentation [DATAROOTDIR/man]
1406  --docdir=DIR            documentation root [DATAROOTDIR/doc/twm]
1407  --htmldir=DIR           html documentation [DOCDIR]
1408  --dvidir=DIR            dvi documentation [DOCDIR]
1409  --pdfdir=DIR            pdf documentation [DOCDIR]
1410  --psdir=DIR             ps documentation [DOCDIR]
1411_ACEOF
1412
1413  cat <<\_ACEOF
1414
1415Program names:
1416  --program-prefix=PREFIX            prepend PREFIX to installed program names
1417  --program-suffix=SUFFIX            append SUFFIX to installed program names
1418  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1419
1420System types:
1421  --build=BUILD     configure for building on BUILD [guessed]
1422  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1423_ACEOF
1424fi
1425
1426if test -n "$ac_init_help"; then
1427  case $ac_init_help in
1428     short | recursive ) echo "Configuration of twm 1.0.13.1:";;
1429   esac
1430  cat <<\_ACEOF
1431
1432Optional Features:
1433  --disable-option-checking  ignore unrecognized --enable/--with options
1434  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1435  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1436  --enable-dependency-tracking
1437                          do not reject slow dependency extractors
1438  --disable-dependency-tracking
1439                          speeds up one-time build
1440  --enable-silent-rules   less verbose build output (undo: "make V=1")
1441  --disable-silent-rules  verbose build output (undo: "make V=0")
1442  --disable-selective-werror
1443                          Turn off selective compiler errors. (default:
1444                          enabled)
1445  --enable-strict-compilation
1446                          Enable all warnings from compiler and make them
1447                          errors (default: disabled)
1448
1449Some influential environment variables:
1450  CC          C compiler command
1451  CFLAGS      C compiler flags
1452  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1453              nonstandard directory <lib dir>
1454  LIBS        libraries to pass to the linker, e.g. -l<library>
1455  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456              you have headers in a nonstandard directory <include dir>
1457  PKG_CONFIG  path to pkg-config utility
1458  PKG_CONFIG_PATH
1459              directories to add to pkg-config's search path
1460  PKG_CONFIG_LIBDIR
1461              path overriding pkg-config's built-in search path
1462  YACC        The `Yet Another Compiler Compiler' implementation to use.
1463              Defaults to the first program found out of: `bison -y', `byacc',
1464              `yacc'.
1465  YFLAGS      The list of arguments that will be passed by default to $YACC.
1466              This script will default YFLAGS to the empty string to avoid a
1467              default value of `-d' given by some make applications.
1468  TWM_CFLAGS  C compiler flags for TWM, overriding pkg-config
1469  TWM_LIBS    linker flags for TWM, overriding pkg-config
1470  XRANDR_CFLAGS
1471              C compiler flags for XRANDR, overriding pkg-config
1472  XRANDR_LIBS linker flags for XRANDR, overriding pkg-config
1473
1474Use these variables to override the choices made by `configure' or to help
1475it to find libraries and programs with nonstandard names/locations.
1476
1477Report bugs to <https://gitlab.freedesktop.org/xorg/app/twm/issues>.
1478_ACEOF
1479ac_status=$?
1480fi
1481
1482if test "$ac_init_help" = "recursive"; then
1483  # If there are subdirs, report their specific --help.
1484  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485    test -d "$ac_dir" ||
1486      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487      continue
1488    ac_builddir=.
1489
1490case "$ac_dir" in
1491.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492*)
1493  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1494  # A ".." for each directory in $ac_dir_suffix.
1495  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496  case $ac_top_builddir_sub in
1497  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499  esac ;;
1500esac
1501ac_abs_top_builddir=$ac_pwd
1502ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503# for backward compatibility:
1504ac_top_builddir=$ac_top_build_prefix
1505
1506case $srcdir in
1507  .)  # We are building in place.
1508    ac_srcdir=.
1509    ac_top_srcdir=$ac_top_builddir_sub
1510    ac_abs_top_srcdir=$ac_pwd ;;
1511  [\\/]* | ?:[\\/]* )  # Absolute name.
1512    ac_srcdir=$srcdir$ac_dir_suffix;
1513    ac_top_srcdir=$srcdir
1514    ac_abs_top_srcdir=$srcdir ;;
1515  *) # Relative name.
1516    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517    ac_top_srcdir=$ac_top_build_prefix$srcdir
1518    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519esac
1520ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522    cd "$ac_dir" || { ac_status=$?; continue; }
1523    # Check for configure.gnu first; this name is used for a wrapper for
1524    # Metaconfig's "Configure" on case-insensitive file systems.
1525    if test -f "$ac_srcdir/configure.gnu"; then
1526      echo &&
1527      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528    elif test -f "$ac_srcdir/configure"; then
1529      echo &&
1530      $SHELL "$ac_srcdir/configure" --help=recursive
1531    else
1532      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533    fi || ac_status=$?
1534    cd "$ac_pwd" || { ac_status=$?; break; }
1535  done
1536fi
1537
1538test -n "$ac_init_help" && exit $ac_status
1539if $ac_init_version; then
1540  cat <<\_ACEOF
1541twm configure 1.0.13.1
1542generated by GNU Autoconf 2.71
1543
1544Copyright (C) 2021 Free Software Foundation, Inc.
1545This configure script is free software; the Free Software Foundation
1546gives unlimited permission to copy, distribute and modify it.
1547_ACEOF
1548  exit
1549fi
1550
1551## ------------------------ ##
1552## Autoconf initialization. ##
1553## ------------------------ ##
1554
1555# ac_fn_c_try_compile LINENO
1556# --------------------------
1557# Try to compile conftest.$ac_ext, and return whether this succeeded.
1558ac_fn_c_try_compile ()
1559{
1560  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561  rm -f conftest.$ac_objext conftest.beam
1562  if { { ac_try="$ac_compile"
1563case "(($ac_try" in
1564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565  *) ac_try_echo=$ac_try;;
1566esac
1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568printf "%s\n" "$ac_try_echo"; } >&5
1569  (eval "$ac_compile") 2>conftest.err
1570  ac_status=$?
1571  if test -s conftest.err; then
1572    grep -v '^ *+' conftest.err >conftest.er1
1573    cat conftest.er1 >&5
1574    mv -f conftest.er1 conftest.err
1575  fi
1576  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577  test $ac_status = 0; } && {
1578	 test -z "$ac_c_werror_flag" ||
1579	 test ! -s conftest.err
1580       } && test -s conftest.$ac_objext
1581then :
1582  ac_retval=0
1583else $as_nop
1584  printf "%s\n" "$as_me: failed program was:" >&5
1585sed 's/^/| /' conftest.$ac_ext >&5
1586
1587	ac_retval=1
1588fi
1589  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590  as_fn_set_status $ac_retval
1591
1592} # ac_fn_c_try_compile
1593
1594# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1595# -------------------------------------------------------
1596# Tests whether HEADER exists and can be compiled using the include files in
1597# INCLUDES, setting the cache variable VAR accordingly.
1598ac_fn_c_check_header_compile ()
1599{
1600  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602printf %s "checking for $2... " >&6; }
1603if eval test \${$3+y}
1604then :
1605  printf %s "(cached) " >&6
1606else $as_nop
1607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608/* end confdefs.h.  */
1609$4
1610#include <$2>
1611_ACEOF
1612if ac_fn_c_try_compile "$LINENO"
1613then :
1614  eval "$3=yes"
1615else $as_nop
1616  eval "$3=no"
1617fi
1618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1619fi
1620eval ac_res=\$$3
1621	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622printf "%s\n" "$ac_res" >&6; }
1623  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624
1625} # ac_fn_c_check_header_compile
1626
1627# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1628# ------------------------------------------------------------------
1629# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1630# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1631ac_fn_check_decl ()
1632{
1633  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634  as_decl_name=`echo $2|sed 's/ *(.*//'`
1635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1636printf %s "checking whether $as_decl_name is declared... " >&6; }
1637if eval test \${$3+y}
1638then :
1639  printf %s "(cached) " >&6
1640else $as_nop
1641  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1642  eval ac_save_FLAGS=\$$6
1643  as_fn_append $6 " $5"
1644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645/* end confdefs.h.  */
1646$4
1647int
1648main (void)
1649{
1650#ifndef $as_decl_name
1651#ifdef __cplusplus
1652  (void) $as_decl_use;
1653#else
1654  (void) $as_decl_name;
1655#endif
1656#endif
1657
1658  ;
1659  return 0;
1660}
1661_ACEOF
1662if ac_fn_c_try_compile "$LINENO"
1663then :
1664  eval "$3=yes"
1665else $as_nop
1666  eval "$3=no"
1667fi
1668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1669  eval $6=\$ac_save_FLAGS
1670
1671fi
1672eval ac_res=\$$3
1673	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674printf "%s\n" "$ac_res" >&6; }
1675  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676
1677} # ac_fn_check_decl
1678
1679# ac_fn_c_try_link LINENO
1680# -----------------------
1681# Try to link conftest.$ac_ext, and return whether this succeeded.
1682ac_fn_c_try_link ()
1683{
1684  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1686  if { { ac_try="$ac_link"
1687case "(($ac_try" in
1688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689  *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692printf "%s\n" "$ac_try_echo"; } >&5
1693  (eval "$ac_link") 2>conftest.err
1694  ac_status=$?
1695  if test -s conftest.err; then
1696    grep -v '^ *+' conftest.err >conftest.er1
1697    cat conftest.er1 >&5
1698    mv -f conftest.er1 conftest.err
1699  fi
1700  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; } && {
1702	 test -z "$ac_c_werror_flag" ||
1703	 test ! -s conftest.err
1704       } && test -s conftest$ac_exeext && {
1705	 test "$cross_compiling" = yes ||
1706	 test -x conftest$ac_exeext
1707       }
1708then :
1709  ac_retval=0
1710else $as_nop
1711  printf "%s\n" "$as_me: failed program was:" >&5
1712sed 's/^/| /' conftest.$ac_ext >&5
1713
1714	ac_retval=1
1715fi
1716  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718  # interfere with the next link command; also delete a directory that is
1719  # left behind by Apple's compiler.  We do this before executing the actions.
1720  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722  as_fn_set_status $ac_retval
1723
1724} # ac_fn_c_try_link
1725
1726# ac_fn_c_check_func LINENO FUNC VAR
1727# ----------------------------------
1728# Tests whether FUNC exists, setting the cache variable VAR accordingly
1729ac_fn_c_check_func ()
1730{
1731  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733printf %s "checking for $2... " >&6; }
1734if eval test \${$3+y}
1735then :
1736  printf %s "(cached) " >&6
1737else $as_nop
1738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h.  */
1740/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1741   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1742#define $2 innocuous_$2
1743
1744/* System header to define __stub macros and hopefully few prototypes,
1745   which can conflict with char $2 (); below.  */
1746
1747#include <limits.h>
1748#undef $2
1749
1750/* Override any GCC internal prototype to avoid an error.
1751   Use char because int might match the return type of a GCC
1752   builtin and then its argument prototype would still apply.  */
1753#ifdef __cplusplus
1754extern "C"
1755#endif
1756char $2 ();
1757/* The GNU C library defines this for functions which it implements
1758    to always fail with ENOSYS.  Some functions are actually named
1759    something starting with __ and the normal name is an alias.  */
1760#if defined __stub_$2 || defined __stub___$2
1761choke me
1762#endif
1763
1764int
1765main (void)
1766{
1767return $2 ();
1768  ;
1769  return 0;
1770}
1771_ACEOF
1772if ac_fn_c_try_link "$LINENO"
1773then :
1774  eval "$3=yes"
1775else $as_nop
1776  eval "$3=no"
1777fi
1778rm -f core conftest.err conftest.$ac_objext conftest.beam \
1779    conftest$ac_exeext conftest.$ac_ext
1780fi
1781eval ac_res=\$$3
1782	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783printf "%s\n" "$ac_res" >&6; }
1784  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786} # ac_fn_c_check_func
1787ac_configure_args_raw=
1788for ac_arg
1789do
1790  case $ac_arg in
1791  *\'*)
1792    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1793  esac
1794  as_fn_append ac_configure_args_raw " '$ac_arg'"
1795done
1796
1797case $ac_configure_args_raw in
1798  *$as_nl*)
1799    ac_safe_unquote= ;;
1800  *)
1801    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1802    ac_unsafe_a="$ac_unsafe_z#~"
1803    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1804    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1805esac
1806
1807cat >config.log <<_ACEOF
1808This file contains any messages produced by compilers while
1809running configure, to aid debugging if configure makes a mistake.
1810
1811It was created by twm $as_me 1.0.13.1, which was
1812generated by GNU Autoconf 2.71.  Invocation command line was
1813
1814  $ $0$ac_configure_args_raw
1815
1816_ACEOF
1817exec 5>>config.log
1818{
1819cat <<_ASUNAME
1820## --------- ##
1821## Platform. ##
1822## --------- ##
1823
1824hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1825uname -m = `(uname -m) 2>/dev/null || echo unknown`
1826uname -r = `(uname -r) 2>/dev/null || echo unknown`
1827uname -s = `(uname -s) 2>/dev/null || echo unknown`
1828uname -v = `(uname -v) 2>/dev/null || echo unknown`
1829
1830/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1831/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1832
1833/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1834/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1835/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1836/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1837/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1838/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1839/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1840
1841_ASUNAME
1842
1843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844for as_dir in $PATH
1845do
1846  IFS=$as_save_IFS
1847  case $as_dir in #(((
1848    '') as_dir=./ ;;
1849    */) ;;
1850    *) as_dir=$as_dir/ ;;
1851  esac
1852    printf "%s\n" "PATH: $as_dir"
1853  done
1854IFS=$as_save_IFS
1855
1856} >&5
1857
1858cat >&5 <<_ACEOF
1859
1860
1861## ----------- ##
1862## Core tests. ##
1863## ----------- ##
1864
1865_ACEOF
1866
1867
1868# Keep a trace of the command line.
1869# Strip out --no-create and --no-recursion so they do not pile up.
1870# Strip out --silent because we don't want to record it for future runs.
1871# Also quote any args containing shell meta-characters.
1872# Make two passes to allow for proper duplicate-argument suppression.
1873ac_configure_args=
1874ac_configure_args0=
1875ac_configure_args1=
1876ac_must_keep_next=false
1877for ac_pass in 1 2
1878do
1879  for ac_arg
1880  do
1881    case $ac_arg in
1882    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1883    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1884    | -silent | --silent | --silen | --sile | --sil)
1885      continue ;;
1886    *\'*)
1887      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1888    esac
1889    case $ac_pass in
1890    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1891    2)
1892      as_fn_append ac_configure_args1 " '$ac_arg'"
1893      if test $ac_must_keep_next = true; then
1894	ac_must_keep_next=false # Got value, back to normal.
1895      else
1896	case $ac_arg in
1897	  *=* | --config-cache | -C | -disable-* | --disable-* \
1898	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1899	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1900	  | -with-* | --with-* | -without-* | --without-* | --x)
1901	    case "$ac_configure_args0 " in
1902	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1903	    esac
1904	    ;;
1905	  -* ) ac_must_keep_next=true ;;
1906	esac
1907      fi
1908      as_fn_append ac_configure_args " '$ac_arg'"
1909      ;;
1910    esac
1911  done
1912done
1913{ ac_configure_args0=; unset ac_configure_args0;}
1914{ ac_configure_args1=; unset ac_configure_args1;}
1915
1916# When interrupted or exit'd, cleanup temporary files, and complete
1917# config.log.  We remove comments because anyway the quotes in there
1918# would cause problems or look ugly.
1919# WARNING: Use '\'' to represent an apostrophe within the trap.
1920# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1921trap 'exit_status=$?
1922  # Sanitize IFS.
1923  IFS=" ""	$as_nl"
1924  # Save into config.log some information that might help in debugging.
1925  {
1926    echo
1927
1928    printf "%s\n" "## ---------------- ##
1929## Cache variables. ##
1930## ---------------- ##"
1931    echo
1932    # The following way of writing the cache mishandles newlines in values,
1933(
1934  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1935    eval ac_val=\$$ac_var
1936    case $ac_val in #(
1937    *${as_nl}*)
1938      case $ac_var in #(
1939      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1940printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1941      esac
1942      case $ac_var in #(
1943      _ | IFS | as_nl) ;; #(
1944      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1945      *) { eval $ac_var=; unset $ac_var;} ;;
1946      esac ;;
1947    esac
1948  done
1949  (set) 2>&1 |
1950    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1951    *${as_nl}ac_space=\ *)
1952      sed -n \
1953	"s/'\''/'\''\\\\'\'''\''/g;
1954	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1955      ;; #(
1956    *)
1957      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1958      ;;
1959    esac |
1960    sort
1961)
1962    echo
1963
1964    printf "%s\n" "## ----------------- ##
1965## Output variables. ##
1966## ----------------- ##"
1967    echo
1968    for ac_var in $ac_subst_vars
1969    do
1970      eval ac_val=\$$ac_var
1971      case $ac_val in
1972      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1973      esac
1974      printf "%s\n" "$ac_var='\''$ac_val'\''"
1975    done | sort
1976    echo
1977
1978    if test -n "$ac_subst_files"; then
1979      printf "%s\n" "## ------------------- ##
1980## File substitutions. ##
1981## ------------------- ##"
1982      echo
1983      for ac_var in $ac_subst_files
1984      do
1985	eval ac_val=\$$ac_var
1986	case $ac_val in
1987	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1988	esac
1989	printf "%s\n" "$ac_var='\''$ac_val'\''"
1990      done | sort
1991      echo
1992    fi
1993
1994    if test -s confdefs.h; then
1995      printf "%s\n" "## ----------- ##
1996## confdefs.h. ##
1997## ----------- ##"
1998      echo
1999      cat confdefs.h
2000      echo
2001    fi
2002    test "$ac_signal" != 0 &&
2003      printf "%s\n" "$as_me: caught signal $ac_signal"
2004    printf "%s\n" "$as_me: exit $exit_status"
2005  } >&5
2006  rm -f core *.core core.conftest.* &&
2007    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2008    exit $exit_status
2009' 0
2010for ac_signal in 1 2 13 15; do
2011  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2012done
2013ac_signal=0
2014
2015# confdefs.h avoids OS command line length limits that DEFS can exceed.
2016rm -f -r conftest* confdefs.h
2017
2018printf "%s\n" "/* confdefs.h */" > confdefs.h
2019
2020# Predefined preprocessor variables.
2021
2022printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2023
2024printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2025
2026printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2027
2028printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2029
2030printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2031
2032printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2033
2034
2035# Let the site file select an alternate cache file if it wants to.
2036# Prefer an explicitly selected file to automatically selected ones.
2037if test -n "$CONFIG_SITE"; then
2038  ac_site_files="$CONFIG_SITE"
2039elif test "x$prefix" != xNONE; then
2040  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2041else
2042  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2043fi
2044
2045for ac_site_file in $ac_site_files
2046do
2047  case $ac_site_file in #(
2048  */*) :
2049     ;; #(
2050  *) :
2051    ac_site_file=./$ac_site_file ;;
2052esac
2053  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2054    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2055printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2056    sed 's/^/| /' "$ac_site_file" >&5
2057    . "$ac_site_file" \
2058      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2059printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2060as_fn_error $? "failed to load site script $ac_site_file
2061See \`config.log' for more details" "$LINENO" 5; }
2062  fi
2063done
2064
2065if test -r "$cache_file"; then
2066  # Some versions of bash will fail to source /dev/null (special files
2067  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2068  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2069    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2070printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2071    case $cache_file in
2072      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2073      *)                      . "./$cache_file";;
2074    esac
2075  fi
2076else
2077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2078printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2079  >$cache_file
2080fi
2081
2082as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2083# Test code for whether the C compiler supports C89 (global declarations)
2084ac_c_conftest_c89_globals='
2085/* Does the compiler advertise C89 conformance?
2086   Do not test the value of __STDC__, because some compilers set it to 0
2087   while being otherwise adequately conformant. */
2088#if !defined __STDC__
2089# error "Compiler does not advertise C89 conformance"
2090#endif
2091
2092#include <stddef.h>
2093#include <stdarg.h>
2094struct stat;
2095/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2096struct buf { int x; };
2097struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2098static char *e (p, i)
2099     char **p;
2100     int i;
2101{
2102  return p[i];
2103}
2104static char *f (char * (*g) (char **, int), char **p, ...)
2105{
2106  char *s;
2107  va_list v;
2108  va_start (v,p);
2109  s = g (p, va_arg (v,int));
2110  va_end (v);
2111  return s;
2112}
2113
2114/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2115   function prototypes and stuff, but not \xHH hex character constants.
2116   These do not provoke an error unfortunately, instead are silently treated
2117   as an "x".  The following induces an error, until -std is added to get
2118   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2119   array size at least.  It is necessary to write \x00 == 0 to get something
2120   that is true only with -std.  */
2121int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2122
2123/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2124   inside strings and character constants.  */
2125#define FOO(x) '\''x'\''
2126int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2127
2128int test (int i, double x);
2129struct s1 {int (*f) (int a);};
2130struct s2 {int (*f) (double a);};
2131int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2132               int, int);'
2133
2134# Test code for whether the C compiler supports C89 (body of main).
2135ac_c_conftest_c89_main='
2136ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2137'
2138
2139# Test code for whether the C compiler supports C99 (global declarations)
2140ac_c_conftest_c99_globals='
2141// Does the compiler advertise C99 conformance?
2142#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2143# error "Compiler does not advertise C99 conformance"
2144#endif
2145
2146#include <stdbool.h>
2147extern int puts (const char *);
2148extern int printf (const char *, ...);
2149extern int dprintf (int, const char *, ...);
2150extern void *malloc (size_t);
2151
2152// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2153// dprintf is used instead of fprintf to avoid needing to declare
2154// FILE and stderr.
2155#define debug(...) dprintf (2, __VA_ARGS__)
2156#define showlist(...) puts (#__VA_ARGS__)
2157#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2158static void
2159test_varargs_macros (void)
2160{
2161  int x = 1234;
2162  int y = 5678;
2163  debug ("Flag");
2164  debug ("X = %d\n", x);
2165  showlist (The first, second, and third items.);
2166  report (x>y, "x is %d but y is %d", x, y);
2167}
2168
2169// Check long long types.
2170#define BIG64 18446744073709551615ull
2171#define BIG32 4294967295ul
2172#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2173#if !BIG_OK
2174  #error "your preprocessor is broken"
2175#endif
2176#if BIG_OK
2177#else
2178  #error "your preprocessor is broken"
2179#endif
2180static long long int bignum = -9223372036854775807LL;
2181static unsigned long long int ubignum = BIG64;
2182
2183struct incomplete_array
2184{
2185  int datasize;
2186  double data[];
2187};
2188
2189struct named_init {
2190  int number;
2191  const wchar_t *name;
2192  double average;
2193};
2194
2195typedef const char *ccp;
2196
2197static inline int
2198test_restrict (ccp restrict text)
2199{
2200  // See if C++-style comments work.
2201  // Iterate through items via the restricted pointer.
2202  // Also check for declarations in for loops.
2203  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2204    continue;
2205  return 0;
2206}
2207
2208// Check varargs and va_copy.
2209static bool
2210test_varargs (const char *format, ...)
2211{
2212  va_list args;
2213  va_start (args, format);
2214  va_list args_copy;
2215  va_copy (args_copy, args);
2216
2217  const char *str = "";
2218  int number = 0;
2219  float fnumber = 0;
2220
2221  while (*format)
2222    {
2223      switch (*format++)
2224	{
2225	case '\''s'\'': // string
2226	  str = va_arg (args_copy, const char *);
2227	  break;
2228	case '\''d'\'': // int
2229	  number = va_arg (args_copy, int);
2230	  break;
2231	case '\''f'\'': // float
2232	  fnumber = va_arg (args_copy, double);
2233	  break;
2234	default:
2235	  break;
2236	}
2237    }
2238  va_end (args_copy);
2239  va_end (args);
2240
2241  return *str && number && fnumber;
2242}
2243'
2244
2245# Test code for whether the C compiler supports C99 (body of main).
2246ac_c_conftest_c99_main='
2247  // Check bool.
2248  _Bool success = false;
2249  success |= (argc != 0);
2250
2251  // Check restrict.
2252  if (test_restrict ("String literal") == 0)
2253    success = true;
2254  char *restrict newvar = "Another string";
2255
2256  // Check varargs.
2257  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2258  test_varargs_macros ();
2259
2260  // Check flexible array members.
2261  struct incomplete_array *ia =
2262    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2263  ia->datasize = 10;
2264  for (int i = 0; i < ia->datasize; ++i)
2265    ia->data[i] = i * 1.234;
2266
2267  // Check named initializers.
2268  struct named_init ni = {
2269    .number = 34,
2270    .name = L"Test wide string",
2271    .average = 543.34343,
2272  };
2273
2274  ni.number = 58;
2275
2276  int dynamic_array[ni.number];
2277  dynamic_array[0] = argv[0][0];
2278  dynamic_array[ni.number - 1] = 543;
2279
2280  // work around unused variable warnings
2281  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2282	 || dynamic_array[ni.number - 1] != 543);
2283'
2284
2285# Test code for whether the C compiler supports C11 (global declarations)
2286ac_c_conftest_c11_globals='
2287// Does the compiler advertise C11 conformance?
2288#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2289# error "Compiler does not advertise C11 conformance"
2290#endif
2291
2292// Check _Alignas.
2293char _Alignas (double) aligned_as_double;
2294char _Alignas (0) no_special_alignment;
2295extern char aligned_as_int;
2296char _Alignas (0) _Alignas (int) aligned_as_int;
2297
2298// Check _Alignof.
2299enum
2300{
2301  int_alignment = _Alignof (int),
2302  int_array_alignment = _Alignof (int[100]),
2303  char_alignment = _Alignof (char)
2304};
2305_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2306
2307// Check _Noreturn.
2308int _Noreturn does_not_return (void) { for (;;) continue; }
2309
2310// Check _Static_assert.
2311struct test_static_assert
2312{
2313  int x;
2314  _Static_assert (sizeof (int) <= sizeof (long int),
2315                  "_Static_assert does not work in struct");
2316  long int y;
2317};
2318
2319// Check UTF-8 literals.
2320#define u8 syntax error!
2321char const utf8_literal[] = u8"happens to be ASCII" "another string";
2322
2323// Check duplicate typedefs.
2324typedef long *long_ptr;
2325typedef long int *long_ptr;
2326typedef long_ptr long_ptr;
2327
2328// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2329struct anonymous
2330{
2331  union {
2332    struct { int i; int j; };
2333    struct { int k; long int l; } w;
2334  };
2335  int m;
2336} v1;
2337'
2338
2339# Test code for whether the C compiler supports C11 (body of main).
2340ac_c_conftest_c11_main='
2341  _Static_assert ((offsetof (struct anonymous, i)
2342		   == offsetof (struct anonymous, w.k)),
2343		  "Anonymous union alignment botch");
2344  v1.i = 2;
2345  v1.w.k = 5;
2346  ok |= v1.i != 5;
2347'
2348
2349# Test code for whether the C compiler supports C11 (complete).
2350ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2351${ac_c_conftest_c99_globals}
2352${ac_c_conftest_c11_globals}
2353
2354int
2355main (int argc, char **argv)
2356{
2357  int ok = 0;
2358  ${ac_c_conftest_c89_main}
2359  ${ac_c_conftest_c99_main}
2360  ${ac_c_conftest_c11_main}
2361  return ok;
2362}
2363"
2364
2365# Test code for whether the C compiler supports C99 (complete).
2366ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2367${ac_c_conftest_c99_globals}
2368
2369int
2370main (int argc, char **argv)
2371{
2372  int ok = 0;
2373  ${ac_c_conftest_c89_main}
2374  ${ac_c_conftest_c99_main}
2375  return ok;
2376}
2377"
2378
2379# Test code for whether the C compiler supports C89 (complete).
2380ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2381
2382int
2383main (int argc, char **argv)
2384{
2385  int ok = 0;
2386  ${ac_c_conftest_c89_main}
2387  return ok;
2388}
2389"
2390
2391as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2392as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2393as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2394as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2395as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2396as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2397as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2398as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2399as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2400as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2401
2402# Auxiliary files required by this configure script.
2403ac_aux_files="config.guess config.sub missing install-sh compile"
2404
2405# Locations in which to look for auxiliary files.
2406ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2407
2408# Search for a directory containing all of the required auxiliary files,
2409# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2410# If we don't find one directory that contains all the files we need,
2411# we report the set of missing files from the *first* directory in
2412# $ac_aux_dir_candidates and give up.
2413ac_missing_aux_files=""
2414ac_first_candidate=:
2415printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417as_found=false
2418for as_dir in $ac_aux_dir_candidates
2419do
2420  IFS=$as_save_IFS
2421  case $as_dir in #(((
2422    '') as_dir=./ ;;
2423    */) ;;
2424    *) as_dir=$as_dir/ ;;
2425  esac
2426  as_found=:
2427
2428  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2429  ac_aux_dir_found=yes
2430  ac_install_sh=
2431  for ac_aux in $ac_aux_files
2432  do
2433    # As a special case, if "install-sh" is required, that requirement
2434    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2435    # and $ac_install_sh is set appropriately for whichever one is found.
2436    if test x"$ac_aux" = x"install-sh"
2437    then
2438      if test -f "${as_dir}install-sh"; then
2439        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2440        ac_install_sh="${as_dir}install-sh -c"
2441      elif test -f "${as_dir}install.sh"; then
2442        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2443        ac_install_sh="${as_dir}install.sh -c"
2444      elif test -f "${as_dir}shtool"; then
2445        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2446        ac_install_sh="${as_dir}shtool install -c"
2447      else
2448        ac_aux_dir_found=no
2449        if $ac_first_candidate; then
2450          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2451        else
2452          break
2453        fi
2454      fi
2455    else
2456      if test -f "${as_dir}${ac_aux}"; then
2457        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2458      else
2459        ac_aux_dir_found=no
2460        if $ac_first_candidate; then
2461          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2462        else
2463          break
2464        fi
2465      fi
2466    fi
2467  done
2468  if test "$ac_aux_dir_found" = yes; then
2469    ac_aux_dir="$as_dir"
2470    break
2471  fi
2472  ac_first_candidate=false
2473
2474  as_found=false
2475done
2476IFS=$as_save_IFS
2477if $as_found
2478then :
2479
2480else $as_nop
2481  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2482fi
2483
2484
2485# These three variables are undocumented and unsupported,
2486# and are intended to be withdrawn in a future Autoconf release.
2487# They can cause serious problems if a builder's source tree is in a directory
2488# whose full name contains unusual characters.
2489if test -f "${ac_aux_dir}config.guess"; then
2490  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2491fi
2492if test -f "${ac_aux_dir}config.sub"; then
2493  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2494fi
2495if test -f "$ac_aux_dir/configure"; then
2496  ac_configure="$SHELL ${ac_aux_dir}configure"
2497fi
2498
2499# Check that the precious variables saved in the cache have kept the same
2500# value.
2501ac_cache_corrupted=false
2502for ac_var in $ac_precious_vars; do
2503  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2504  eval ac_new_set=\$ac_env_${ac_var}_set
2505  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2506  eval ac_new_val=\$ac_env_${ac_var}_value
2507  case $ac_old_set,$ac_new_set in
2508    set,)
2509      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2510printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2511      ac_cache_corrupted=: ;;
2512    ,set)
2513      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2514printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2515      ac_cache_corrupted=: ;;
2516    ,);;
2517    *)
2518      if test "x$ac_old_val" != "x$ac_new_val"; then
2519	# differences in whitespace do not lead to failure.
2520	ac_old_val_w=`echo x $ac_old_val`
2521	ac_new_val_w=`echo x $ac_new_val`
2522	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2523	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2524printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2525	  ac_cache_corrupted=:
2526	else
2527	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2528printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2529	  eval $ac_var=\$ac_old_val
2530	fi
2531	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2532printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2533	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2534printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2535      fi;;
2536  esac
2537  # Pass precious variables to config.status.
2538  if test "$ac_new_set" = set; then
2539    case $ac_new_val in
2540    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2541    *) ac_arg=$ac_var=$ac_new_val ;;
2542    esac
2543    case " $ac_configure_args " in
2544      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2545      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2546    esac
2547  fi
2548done
2549if $ac_cache_corrupted; then
2550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2551printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2553printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2554  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2555	    and start over" "$LINENO" 5
2556fi
2557## -------------------- ##
2558## Main body of script. ##
2559## -------------------- ##
2560
2561ac_ext=c
2562ac_cpp='$CPP $CPPFLAGS'
2563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566
2567
2568
2569ac_config_headers="$ac_config_headers config.h"
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582# Expand $ac_aux_dir to an absolute path.
2583am_aux_dir=`cd "$ac_aux_dir" && pwd`
2584
2585ac_ext=c
2586ac_cpp='$CPP $CPPFLAGS'
2587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590if test -n "$ac_tool_prefix"; then
2591  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2592set dummy ${ac_tool_prefix}gcc; ac_word=$2
2593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594printf %s "checking for $ac_word... " >&6; }
2595if test ${ac_cv_prog_CC+y}
2596then :
2597  printf %s "(cached) " >&6
2598else $as_nop
2599  if test -n "$CC"; then
2600  ac_cv_prog_CC="$CC" # Let the user override the test.
2601else
2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603for as_dir in $PATH
2604do
2605  IFS=$as_save_IFS
2606  case $as_dir in #(((
2607    '') as_dir=./ ;;
2608    */) ;;
2609    *) as_dir=$as_dir/ ;;
2610  esac
2611    for ac_exec_ext in '' $ac_executable_extensions; do
2612  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2613    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2614    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2615    break 2
2616  fi
2617done
2618  done
2619IFS=$as_save_IFS
2620
2621fi
2622fi
2623CC=$ac_cv_prog_CC
2624if test -n "$CC"; then
2625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2626printf "%s\n" "$CC" >&6; }
2627else
2628  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629printf "%s\n" "no" >&6; }
2630fi
2631
2632
2633fi
2634if test -z "$ac_cv_prog_CC"; then
2635  ac_ct_CC=$CC
2636  # Extract the first word of "gcc", so it can be a program name with args.
2637set dummy gcc; ac_word=$2
2638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639printf %s "checking for $ac_word... " >&6; }
2640if test ${ac_cv_prog_ac_ct_CC+y}
2641then :
2642  printf %s "(cached) " >&6
2643else $as_nop
2644  if test -n "$ac_ct_CC"; then
2645  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2646else
2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650  IFS=$as_save_IFS
2651  case $as_dir in #(((
2652    '') as_dir=./ ;;
2653    */) ;;
2654    *) as_dir=$as_dir/ ;;
2655  esac
2656    for ac_exec_ext in '' $ac_executable_extensions; do
2657  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2658    ac_cv_prog_ac_ct_CC="gcc"
2659    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2660    break 2
2661  fi
2662done
2663  done
2664IFS=$as_save_IFS
2665
2666fi
2667fi
2668ac_ct_CC=$ac_cv_prog_ac_ct_CC
2669if test -n "$ac_ct_CC"; then
2670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2671printf "%s\n" "$ac_ct_CC" >&6; }
2672else
2673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674printf "%s\n" "no" >&6; }
2675fi
2676
2677  if test "x$ac_ct_CC" = x; then
2678    CC=""
2679  else
2680    case $cross_compiling:$ac_tool_warned in
2681yes:)
2682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2683printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2684ac_tool_warned=yes ;;
2685esac
2686    CC=$ac_ct_CC
2687  fi
2688else
2689  CC="$ac_cv_prog_CC"
2690fi
2691
2692if test -z "$CC"; then
2693          if test -n "$ac_tool_prefix"; then
2694    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2695set dummy ${ac_tool_prefix}cc; ac_word=$2
2696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2697printf %s "checking for $ac_word... " >&6; }
2698if test ${ac_cv_prog_CC+y}
2699then :
2700  printf %s "(cached) " >&6
2701else $as_nop
2702  if test -n "$CC"; then
2703  ac_cv_prog_CC="$CC" # Let the user override the test.
2704else
2705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH
2707do
2708  IFS=$as_save_IFS
2709  case $as_dir in #(((
2710    '') as_dir=./ ;;
2711    */) ;;
2712    *) as_dir=$as_dir/ ;;
2713  esac
2714    for ac_exec_ext in '' $ac_executable_extensions; do
2715  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2716    ac_cv_prog_CC="${ac_tool_prefix}cc"
2717    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2718    break 2
2719  fi
2720done
2721  done
2722IFS=$as_save_IFS
2723
2724fi
2725fi
2726CC=$ac_cv_prog_CC
2727if test -n "$CC"; then
2728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2729printf "%s\n" "$CC" >&6; }
2730else
2731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732printf "%s\n" "no" >&6; }
2733fi
2734
2735
2736  fi
2737fi
2738if test -z "$CC"; then
2739  # Extract the first word of "cc", so it can be a program name with args.
2740set dummy cc; ac_word=$2
2741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742printf %s "checking for $ac_word... " >&6; }
2743if test ${ac_cv_prog_CC+y}
2744then :
2745  printf %s "(cached) " >&6
2746else $as_nop
2747  if test -n "$CC"; then
2748  ac_cv_prog_CC="$CC" # Let the user override the test.
2749else
2750  ac_prog_rejected=no
2751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752for as_dir in $PATH
2753do
2754  IFS=$as_save_IFS
2755  case $as_dir in #(((
2756    '') as_dir=./ ;;
2757    */) ;;
2758    *) as_dir=$as_dir/ ;;
2759  esac
2760    for ac_exec_ext in '' $ac_executable_extensions; do
2761  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2762    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2763       ac_prog_rejected=yes
2764       continue
2765     fi
2766    ac_cv_prog_CC="cc"
2767    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2768    break 2
2769  fi
2770done
2771  done
2772IFS=$as_save_IFS
2773
2774if test $ac_prog_rejected = yes; then
2775  # We found a bogon in the path, so make sure we never use it.
2776  set dummy $ac_cv_prog_CC
2777  shift
2778  if test $# != 0; then
2779    # We chose a different compiler from the bogus one.
2780    # However, it has the same basename, so the bogon will be chosen
2781    # first if we set CC to just the basename; use the full file name.
2782    shift
2783    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2784  fi
2785fi
2786fi
2787fi
2788CC=$ac_cv_prog_CC
2789if test -n "$CC"; then
2790  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2791printf "%s\n" "$CC" >&6; }
2792else
2793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794printf "%s\n" "no" >&6; }
2795fi
2796
2797
2798fi
2799if test -z "$CC"; then
2800  if test -n "$ac_tool_prefix"; then
2801  for ac_prog in cl.exe
2802  do
2803    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2804set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806printf %s "checking for $ac_word... " >&6; }
2807if test ${ac_cv_prog_CC+y}
2808then :
2809  printf %s "(cached) " >&6
2810else $as_nop
2811  if test -n "$CC"; then
2812  ac_cv_prog_CC="$CC" # Let the user override the test.
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817  IFS=$as_save_IFS
2818  case $as_dir in #(((
2819    '') as_dir=./ ;;
2820    */) ;;
2821    *) as_dir=$as_dir/ ;;
2822  esac
2823    for ac_exec_ext in '' $ac_executable_extensions; do
2824  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2825    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2826    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2827    break 2
2828  fi
2829done
2830  done
2831IFS=$as_save_IFS
2832
2833fi
2834fi
2835CC=$ac_cv_prog_CC
2836if test -n "$CC"; then
2837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2838printf "%s\n" "$CC" >&6; }
2839else
2840  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841printf "%s\n" "no" >&6; }
2842fi
2843
2844
2845    test -n "$CC" && break
2846  done
2847fi
2848if test -z "$CC"; then
2849  ac_ct_CC=$CC
2850  for ac_prog in cl.exe
2851do
2852  # Extract the first word of "$ac_prog", so it can be a program name with args.
2853set dummy $ac_prog; ac_word=$2
2854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855printf %s "checking for $ac_word... " >&6; }
2856if test ${ac_cv_prog_ac_ct_CC+y}
2857then :
2858  printf %s "(cached) " >&6
2859else $as_nop
2860  if test -n "$ac_ct_CC"; then
2861  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2862else
2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH
2865do
2866  IFS=$as_save_IFS
2867  case $as_dir in #(((
2868    '') as_dir=./ ;;
2869    */) ;;
2870    *) as_dir=$as_dir/ ;;
2871  esac
2872    for ac_exec_ext in '' $ac_executable_extensions; do
2873  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2874    ac_cv_prog_ac_ct_CC="$ac_prog"
2875    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2876    break 2
2877  fi
2878done
2879  done
2880IFS=$as_save_IFS
2881
2882fi
2883fi
2884ac_ct_CC=$ac_cv_prog_ac_ct_CC
2885if test -n "$ac_ct_CC"; then
2886  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2887printf "%s\n" "$ac_ct_CC" >&6; }
2888else
2889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890printf "%s\n" "no" >&6; }
2891fi
2892
2893
2894  test -n "$ac_ct_CC" && break
2895done
2896
2897  if test "x$ac_ct_CC" = x; then
2898    CC=""
2899  else
2900    case $cross_compiling:$ac_tool_warned in
2901yes:)
2902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2903printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2904ac_tool_warned=yes ;;
2905esac
2906    CC=$ac_ct_CC
2907  fi
2908fi
2909
2910fi
2911if test -z "$CC"; then
2912  if test -n "$ac_tool_prefix"; then
2913  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2914set dummy ${ac_tool_prefix}clang; ac_word=$2
2915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916printf %s "checking for $ac_word... " >&6; }
2917if test ${ac_cv_prog_CC+y}
2918then :
2919  printf %s "(cached) " >&6
2920else $as_nop
2921  if test -n "$CC"; then
2922  ac_cv_prog_CC="$CC" # Let the user override the test.
2923else
2924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925for as_dir in $PATH
2926do
2927  IFS=$as_save_IFS
2928  case $as_dir in #(((
2929    '') as_dir=./ ;;
2930    */) ;;
2931    *) as_dir=$as_dir/ ;;
2932  esac
2933    for ac_exec_ext in '' $ac_executable_extensions; do
2934  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2935    ac_cv_prog_CC="${ac_tool_prefix}clang"
2936    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2937    break 2
2938  fi
2939done
2940  done
2941IFS=$as_save_IFS
2942
2943fi
2944fi
2945CC=$ac_cv_prog_CC
2946if test -n "$CC"; then
2947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2948printf "%s\n" "$CC" >&6; }
2949else
2950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951printf "%s\n" "no" >&6; }
2952fi
2953
2954
2955fi
2956if test -z "$ac_cv_prog_CC"; then
2957  ac_ct_CC=$CC
2958  # Extract the first word of "clang", so it can be a program name with args.
2959set dummy clang; ac_word=$2
2960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961printf %s "checking for $ac_word... " >&6; }
2962if test ${ac_cv_prog_ac_ct_CC+y}
2963then :
2964  printf %s "(cached) " >&6
2965else $as_nop
2966  if test -n "$ac_ct_CC"; then
2967  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968else
2969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970for as_dir in $PATH
2971do
2972  IFS=$as_save_IFS
2973  case $as_dir in #(((
2974    '') as_dir=./ ;;
2975    */) ;;
2976    *) as_dir=$as_dir/ ;;
2977  esac
2978    for ac_exec_ext in '' $ac_executable_extensions; do
2979  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2980    ac_cv_prog_ac_ct_CC="clang"
2981    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2982    break 2
2983  fi
2984done
2985  done
2986IFS=$as_save_IFS
2987
2988fi
2989fi
2990ac_ct_CC=$ac_cv_prog_ac_ct_CC
2991if test -n "$ac_ct_CC"; then
2992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2993printf "%s\n" "$ac_ct_CC" >&6; }
2994else
2995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996printf "%s\n" "no" >&6; }
2997fi
2998
2999  if test "x$ac_ct_CC" = x; then
3000    CC=""
3001  else
3002    case $cross_compiling:$ac_tool_warned in
3003yes:)
3004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3005printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3006ac_tool_warned=yes ;;
3007esac
3008    CC=$ac_ct_CC
3009  fi
3010else
3011  CC="$ac_cv_prog_CC"
3012fi
3013
3014fi
3015
3016
3017test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3019as_fn_error $? "no acceptable C compiler found in \$PATH
3020See \`config.log' for more details" "$LINENO" 5; }
3021
3022# Provide some information about the compiler.
3023printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3024set X $ac_compile
3025ac_compiler=$2
3026for ac_option in --version -v -V -qversion -version; do
3027  { { ac_try="$ac_compiler $ac_option >&5"
3028case "(($ac_try" in
3029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030  *) ac_try_echo=$ac_try;;
3031esac
3032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033printf "%s\n" "$ac_try_echo"; } >&5
3034  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3035  ac_status=$?
3036  if test -s conftest.err; then
3037    sed '10a\
3038... rest of stderr output deleted ...
3039         10q' conftest.err >conftest.er1
3040    cat conftest.er1 >&5
3041  fi
3042  rm -f conftest.er1 conftest.err
3043  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3044  test $ac_status = 0; }
3045done
3046
3047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3048/* end confdefs.h.  */
3049
3050int
3051main (void)
3052{
3053
3054  ;
3055  return 0;
3056}
3057_ACEOF
3058ac_clean_files_save=$ac_clean_files
3059ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3060# Try to create an executable without -o first, disregard a.out.
3061# It will help us diagnose broken compilers, and finding out an intuition
3062# of exeext.
3063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3064printf %s "checking whether the C compiler works... " >&6; }
3065ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3066
3067# The possible output files:
3068ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3069
3070ac_rmfiles=
3071for ac_file in $ac_files
3072do
3073  case $ac_file in
3074    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3075    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3076  esac
3077done
3078rm -f $ac_rmfiles
3079
3080if { { ac_try="$ac_link_default"
3081case "(($ac_try" in
3082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083  *) ac_try_echo=$ac_try;;
3084esac
3085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086printf "%s\n" "$ac_try_echo"; } >&5
3087  (eval "$ac_link_default") 2>&5
3088  ac_status=$?
3089  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3090  test $ac_status = 0; }
3091then :
3092  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3093# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3094# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3095# so that the user can short-circuit this test for compilers unknown to
3096# Autoconf.
3097for ac_file in $ac_files ''
3098do
3099  test -f "$ac_file" || continue
3100  case $ac_file in
3101    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3102	;;
3103    [ab].out )
3104	# We found the default executable, but exeext='' is most
3105	# certainly right.
3106	break;;
3107    *.* )
3108	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3109	then :; else
3110	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3111	fi
3112	# We set ac_cv_exeext here because the later test for it is not
3113	# safe: cross compilers may not add the suffix if given an `-o'
3114	# argument, so we may need to know it at that point already.
3115	# Even if this section looks crufty: it has the advantage of
3116	# actually working.
3117	break;;
3118    * )
3119	break;;
3120  esac
3121done
3122test "$ac_cv_exeext" = no && ac_cv_exeext=
3123
3124else $as_nop
3125  ac_file=''
3126fi
3127if test -z "$ac_file"
3128then :
3129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130printf "%s\n" "no" >&6; }
3131printf "%s\n" "$as_me: failed program was:" >&5
3132sed 's/^/| /' conftest.$ac_ext >&5
3133
3134{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3135printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3136as_fn_error 77 "C compiler cannot create executables
3137See \`config.log' for more details" "$LINENO" 5; }
3138else $as_nop
3139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3140printf "%s\n" "yes" >&6; }
3141fi
3142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3143printf %s "checking for C compiler default output file name... " >&6; }
3144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3145printf "%s\n" "$ac_file" >&6; }
3146ac_exeext=$ac_cv_exeext
3147
3148rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3149ac_clean_files=$ac_clean_files_save
3150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3151printf %s "checking for suffix of executables... " >&6; }
3152if { { ac_try="$ac_link"
3153case "(($ac_try" in
3154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155  *) ac_try_echo=$ac_try;;
3156esac
3157eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158printf "%s\n" "$ac_try_echo"; } >&5
3159  (eval "$ac_link") 2>&5
3160  ac_status=$?
3161  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162  test $ac_status = 0; }
3163then :
3164  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3165# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3166# work properly (i.e., refer to `conftest.exe'), while it won't with
3167# `rm'.
3168for ac_file in conftest.exe conftest conftest.*; do
3169  test -f "$ac_file" || continue
3170  case $ac_file in
3171    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3172    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3173	  break;;
3174    * ) break;;
3175  esac
3176done
3177else $as_nop
3178  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3179printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3180as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3181See \`config.log' for more details" "$LINENO" 5; }
3182fi
3183rm -f conftest conftest$ac_cv_exeext
3184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3185printf "%s\n" "$ac_cv_exeext" >&6; }
3186
3187rm -f conftest.$ac_ext
3188EXEEXT=$ac_cv_exeext
3189ac_exeext=$EXEEXT
3190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191/* end confdefs.h.  */
3192#include <stdio.h>
3193int
3194main (void)
3195{
3196FILE *f = fopen ("conftest.out", "w");
3197 return ferror (f) || fclose (f) != 0;
3198
3199  ;
3200  return 0;
3201}
3202_ACEOF
3203ac_clean_files="$ac_clean_files conftest.out"
3204# Check that the compiler produces executables we can run.  If not, either
3205# the compiler is broken, or we cross compile.
3206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3207printf %s "checking whether we are cross compiling... " >&6; }
3208if test "$cross_compiling" != yes; then
3209  { { ac_try="$ac_link"
3210case "(($ac_try" in
3211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212  *) ac_try_echo=$ac_try;;
3213esac
3214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215printf "%s\n" "$ac_try_echo"; } >&5
3216  (eval "$ac_link") 2>&5
3217  ac_status=$?
3218  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219  test $ac_status = 0; }
3220  if { ac_try='./conftest$ac_cv_exeext'
3221  { { case "(($ac_try" in
3222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223  *) ac_try_echo=$ac_try;;
3224esac
3225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226printf "%s\n" "$ac_try_echo"; } >&5
3227  (eval "$ac_try") 2>&5
3228  ac_status=$?
3229  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230  test $ac_status = 0; }; }; then
3231    cross_compiling=no
3232  else
3233    if test "$cross_compiling" = maybe; then
3234	cross_compiling=yes
3235    else
3236	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3237printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3238as_fn_error 77 "cannot run C compiled programs.
3239If you meant to cross compile, use \`--host'.
3240See \`config.log' for more details" "$LINENO" 5; }
3241    fi
3242  fi
3243fi
3244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3245printf "%s\n" "$cross_compiling" >&6; }
3246
3247rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3248ac_clean_files=$ac_clean_files_save
3249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3250printf %s "checking for suffix of object files... " >&6; }
3251if test ${ac_cv_objext+y}
3252then :
3253  printf %s "(cached) " >&6
3254else $as_nop
3255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256/* end confdefs.h.  */
3257
3258int
3259main (void)
3260{
3261
3262  ;
3263  return 0;
3264}
3265_ACEOF
3266rm -f conftest.o conftest.obj
3267if { { ac_try="$ac_compile"
3268case "(($ac_try" in
3269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270  *) ac_try_echo=$ac_try;;
3271esac
3272eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273printf "%s\n" "$ac_try_echo"; } >&5
3274  (eval "$ac_compile") 2>&5
3275  ac_status=$?
3276  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277  test $ac_status = 0; }
3278then :
3279  for ac_file in conftest.o conftest.obj conftest.*; do
3280  test -f "$ac_file" || continue;
3281  case $ac_file in
3282    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3283    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3284       break;;
3285  esac
3286done
3287else $as_nop
3288  printf "%s\n" "$as_me: failed program was:" >&5
3289sed 's/^/| /' conftest.$ac_ext >&5
3290
3291{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3293as_fn_error $? "cannot compute suffix of object files: cannot compile
3294See \`config.log' for more details" "$LINENO" 5; }
3295fi
3296rm -f conftest.$ac_cv_objext conftest.$ac_ext
3297fi
3298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3299printf "%s\n" "$ac_cv_objext" >&6; }
3300OBJEXT=$ac_cv_objext
3301ac_objext=$OBJEXT
3302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3303printf %s "checking whether the compiler supports GNU C... " >&6; }
3304if test ${ac_cv_c_compiler_gnu+y}
3305then :
3306  printf %s "(cached) " >&6
3307else $as_nop
3308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309/* end confdefs.h.  */
3310
3311int
3312main (void)
3313{
3314#ifndef __GNUC__
3315       choke me
3316#endif
3317
3318  ;
3319  return 0;
3320}
3321_ACEOF
3322if ac_fn_c_try_compile "$LINENO"
3323then :
3324  ac_compiler_gnu=yes
3325else $as_nop
3326  ac_compiler_gnu=no
3327fi
3328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3329ac_cv_c_compiler_gnu=$ac_compiler_gnu
3330
3331fi
3332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3333printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3334ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335
3336if test $ac_compiler_gnu = yes; then
3337  GCC=yes
3338else
3339  GCC=
3340fi
3341ac_test_CFLAGS=${CFLAGS+y}
3342ac_save_CFLAGS=$CFLAGS
3343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3344printf %s "checking whether $CC accepts -g... " >&6; }
3345if test ${ac_cv_prog_cc_g+y}
3346then :
3347  printf %s "(cached) " >&6
3348else $as_nop
3349  ac_save_c_werror_flag=$ac_c_werror_flag
3350   ac_c_werror_flag=yes
3351   ac_cv_prog_cc_g=no
3352   CFLAGS="-g"
3353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354/* end confdefs.h.  */
3355
3356int
3357main (void)
3358{
3359
3360  ;
3361  return 0;
3362}
3363_ACEOF
3364if ac_fn_c_try_compile "$LINENO"
3365then :
3366  ac_cv_prog_cc_g=yes
3367else $as_nop
3368  CFLAGS=""
3369      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370/* end confdefs.h.  */
3371
3372int
3373main (void)
3374{
3375
3376  ;
3377  return 0;
3378}
3379_ACEOF
3380if ac_fn_c_try_compile "$LINENO"
3381then :
3382
3383else $as_nop
3384  ac_c_werror_flag=$ac_save_c_werror_flag
3385	 CFLAGS="-g"
3386	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387/* end confdefs.h.  */
3388
3389int
3390main (void)
3391{
3392
3393  ;
3394  return 0;
3395}
3396_ACEOF
3397if ac_fn_c_try_compile "$LINENO"
3398then :
3399  ac_cv_prog_cc_g=yes
3400fi
3401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3402fi
3403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3404fi
3405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3406   ac_c_werror_flag=$ac_save_c_werror_flag
3407fi
3408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3409printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3410if test $ac_test_CFLAGS; then
3411  CFLAGS=$ac_save_CFLAGS
3412elif test $ac_cv_prog_cc_g = yes; then
3413  if test "$GCC" = yes; then
3414    CFLAGS="-g -O2"
3415  else
3416    CFLAGS="-g"
3417  fi
3418else
3419  if test "$GCC" = yes; then
3420    CFLAGS="-O2"
3421  else
3422    CFLAGS=
3423  fi
3424fi
3425ac_prog_cc_stdc=no
3426if test x$ac_prog_cc_stdc = xno
3427then :
3428  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3429printf %s "checking for $CC option to enable C11 features... " >&6; }
3430if test ${ac_cv_prog_cc_c11+y}
3431then :
3432  printf %s "(cached) " >&6
3433else $as_nop
3434  ac_cv_prog_cc_c11=no
3435ac_save_CC=$CC
3436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437/* end confdefs.h.  */
3438$ac_c_conftest_c11_program
3439_ACEOF
3440for ac_arg in '' -std=gnu11
3441do
3442  CC="$ac_save_CC $ac_arg"
3443  if ac_fn_c_try_compile "$LINENO"
3444then :
3445  ac_cv_prog_cc_c11=$ac_arg
3446fi
3447rm -f core conftest.err conftest.$ac_objext conftest.beam
3448  test "x$ac_cv_prog_cc_c11" != "xno" && break
3449done
3450rm -f conftest.$ac_ext
3451CC=$ac_save_CC
3452fi
3453
3454if test "x$ac_cv_prog_cc_c11" = xno
3455then :
3456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3457printf "%s\n" "unsupported" >&6; }
3458else $as_nop
3459  if test "x$ac_cv_prog_cc_c11" = x
3460then :
3461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3462printf "%s\n" "none needed" >&6; }
3463else $as_nop
3464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3465printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3466     CC="$CC $ac_cv_prog_cc_c11"
3467fi
3468  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3469  ac_prog_cc_stdc=c11
3470fi
3471fi
3472if test x$ac_prog_cc_stdc = xno
3473then :
3474  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3475printf %s "checking for $CC option to enable C99 features... " >&6; }
3476if test ${ac_cv_prog_cc_c99+y}
3477then :
3478  printf %s "(cached) " >&6
3479else $as_nop
3480  ac_cv_prog_cc_c99=no
3481ac_save_CC=$CC
3482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483/* end confdefs.h.  */
3484$ac_c_conftest_c99_program
3485_ACEOF
3486for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3487do
3488  CC="$ac_save_CC $ac_arg"
3489  if ac_fn_c_try_compile "$LINENO"
3490then :
3491  ac_cv_prog_cc_c99=$ac_arg
3492fi
3493rm -f core conftest.err conftest.$ac_objext conftest.beam
3494  test "x$ac_cv_prog_cc_c99" != "xno" && break
3495done
3496rm -f conftest.$ac_ext
3497CC=$ac_save_CC
3498fi
3499
3500if test "x$ac_cv_prog_cc_c99" = xno
3501then :
3502  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3503printf "%s\n" "unsupported" >&6; }
3504else $as_nop
3505  if test "x$ac_cv_prog_cc_c99" = x
3506then :
3507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3508printf "%s\n" "none needed" >&6; }
3509else $as_nop
3510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3511printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3512     CC="$CC $ac_cv_prog_cc_c99"
3513fi
3514  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3515  ac_prog_cc_stdc=c99
3516fi
3517fi
3518if test x$ac_prog_cc_stdc = xno
3519then :
3520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3521printf %s "checking for $CC option to enable C89 features... " >&6; }
3522if test ${ac_cv_prog_cc_c89+y}
3523then :
3524  printf %s "(cached) " >&6
3525else $as_nop
3526  ac_cv_prog_cc_c89=no
3527ac_save_CC=$CC
3528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529/* end confdefs.h.  */
3530$ac_c_conftest_c89_program
3531_ACEOF
3532for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3533do
3534  CC="$ac_save_CC $ac_arg"
3535  if ac_fn_c_try_compile "$LINENO"
3536then :
3537  ac_cv_prog_cc_c89=$ac_arg
3538fi
3539rm -f core conftest.err conftest.$ac_objext conftest.beam
3540  test "x$ac_cv_prog_cc_c89" != "xno" && break
3541done
3542rm -f conftest.$ac_ext
3543CC=$ac_save_CC
3544fi
3545
3546if test "x$ac_cv_prog_cc_c89" = xno
3547then :
3548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3549printf "%s\n" "unsupported" >&6; }
3550else $as_nop
3551  if test "x$ac_cv_prog_cc_c89" = x
3552then :
3553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3554printf "%s\n" "none needed" >&6; }
3555else $as_nop
3556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3557printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3558     CC="$CC $ac_cv_prog_cc_c89"
3559fi
3560  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3561  ac_prog_cc_stdc=c89
3562fi
3563fi
3564
3565ac_ext=c
3566ac_cpp='$CPP $CPPFLAGS'
3567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570
3571
3572  ac_ext=c
3573ac_cpp='$CPP $CPPFLAGS'
3574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3578printf %s "checking whether $CC understands -c and -o together... " >&6; }
3579if test ${am_cv_prog_cc_c_o+y}
3580then :
3581  printf %s "(cached) " >&6
3582else $as_nop
3583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h.  */
3585
3586int
3587main (void)
3588{
3589
3590  ;
3591  return 0;
3592}
3593_ACEOF
3594  # Make sure it works both with $CC and with simple cc.
3595  # Following AC_PROG_CC_C_O, we do the test twice because some
3596  # compilers refuse to overwrite an existing .o file with -o,
3597  # though they will create one.
3598  am_cv_prog_cc_c_o=yes
3599  for am_i in 1 2; do
3600    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3601   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3602   ac_status=$?
3603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604   (exit $ac_status); } \
3605         && test -f conftest2.$ac_objext; then
3606      : OK
3607    else
3608      am_cv_prog_cc_c_o=no
3609      break
3610    fi
3611  done
3612  rm -f core conftest*
3613  unset am_i
3614fi
3615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3616printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3617if test "$am_cv_prog_cc_c_o" != yes; then
3618   # Losing compiler, so override with the script.
3619   # FIXME: It is wrong to rewrite CC.
3620   # But if we don't then we get into trouble of one sort or another.
3621   # A longer-term fix would be to have automake use am__CC in this case,
3622   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3623   CC="$am_aux_dir/compile $CC"
3624fi
3625ac_ext=c
3626ac_cpp='$CPP $CPPFLAGS'
3627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630
3631
3632
3633ac_header= ac_cache=
3634for ac_item in $ac_header_c_list
3635do
3636  if test $ac_cache; then
3637    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3638    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3639      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3640    fi
3641    ac_header= ac_cache=
3642  elif test $ac_header; then
3643    ac_cache=$ac_item
3644  else
3645    ac_header=$ac_item
3646  fi
3647done
3648
3649
3650
3651
3652
3653
3654
3655
3656if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3657then :
3658
3659printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3660
3661fi
3662
3663
3664
3665
3666
3667
3668  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3669printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3670if test ${ac_cv_safe_to_define___extensions__+y}
3671then :
3672  printf %s "(cached) " >&6
3673else $as_nop
3674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675/* end confdefs.h.  */
3676
3677#         define __EXTENSIONS__ 1
3678          $ac_includes_default
3679int
3680main (void)
3681{
3682
3683  ;
3684  return 0;
3685}
3686_ACEOF
3687if ac_fn_c_try_compile "$LINENO"
3688then :
3689  ac_cv_safe_to_define___extensions__=yes
3690else $as_nop
3691  ac_cv_safe_to_define___extensions__=no
3692fi
3693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3694fi
3695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3696printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3697
3698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3699printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3700if test ${ac_cv_should_define__xopen_source+y}
3701then :
3702  printf %s "(cached) " >&6
3703else $as_nop
3704  ac_cv_should_define__xopen_source=no
3705    if test $ac_cv_header_wchar_h = yes
3706then :
3707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708/* end confdefs.h.  */
3709
3710          #include <wchar.h>
3711          mbstate_t x;
3712int
3713main (void)
3714{
3715
3716  ;
3717  return 0;
3718}
3719_ACEOF
3720if ac_fn_c_try_compile "$LINENO"
3721then :
3722
3723else $as_nop
3724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725/* end confdefs.h.  */
3726
3727            #define _XOPEN_SOURCE 500
3728            #include <wchar.h>
3729            mbstate_t x;
3730int
3731main (void)
3732{
3733
3734  ;
3735  return 0;
3736}
3737_ACEOF
3738if ac_fn_c_try_compile "$LINENO"
3739then :
3740  ac_cv_should_define__xopen_source=yes
3741fi
3742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3743fi
3744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3745fi
3746fi
3747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3748printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3749
3750  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3751
3752  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3753
3754  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3755
3756  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3757
3758  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3759
3760  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3761
3762  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3763
3764  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3765
3766  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3767
3768  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3769
3770  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3771
3772  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3773
3774  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3775
3776  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3777
3778  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3779
3780  if test $ac_cv_header_minix_config_h = yes
3781then :
3782  MINIX=yes
3783    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3784
3785    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3786
3787    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3788
3789else $as_nop
3790  MINIX=
3791fi
3792  if test $ac_cv_safe_to_define___extensions__ = yes
3793then :
3794  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3795
3796fi
3797  if test $ac_cv_should_define__xopen_source = yes
3798then :
3799  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3800
3801fi
3802
3803
3804# Initialize Automake
3805am__api_version='1.16'
3806
3807
3808  # Find a good install program.  We prefer a C program (faster),
3809# so one script is as good as another.  But avoid the broken or
3810# incompatible versions:
3811# SysV /etc/install, /usr/sbin/install
3812# SunOS /usr/etc/install
3813# IRIX /sbin/install
3814# AIX /bin/install
3815# AmigaOS /C/install, which installs bootblocks on floppy discs
3816# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3817# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3818# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3819# OS/2's system install, which has a completely different semantic
3820# ./install, which can be erroneously created by make from ./install.sh.
3821# Reject install programs that cannot install multiple files.
3822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3823printf %s "checking for a BSD-compatible install... " >&6; }
3824if test -z "$INSTALL"; then
3825if test ${ac_cv_path_install+y}
3826then :
3827  printf %s "(cached) " >&6
3828else $as_nop
3829  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830for as_dir in $PATH
3831do
3832  IFS=$as_save_IFS
3833  case $as_dir in #(((
3834    '') as_dir=./ ;;
3835    */) ;;
3836    *) as_dir=$as_dir/ ;;
3837  esac
3838    # Account for fact that we put trailing slashes in our PATH walk.
3839case $as_dir in #((
3840  ./ | /[cC]/* | \
3841  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3842  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3843  /usr/ucb/* ) ;;
3844  *)
3845    # OSF1 and SCO ODT 3.0 have their own names for install.
3846    # Don't use installbsd from OSF since it installs stuff as root
3847    # by default.
3848    for ac_prog in ginstall scoinst install; do
3849      for ac_exec_ext in '' $ac_executable_extensions; do
3850	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3851	  if test $ac_prog = install &&
3852	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3853	    # AIX install.  It has an incompatible calling convention.
3854	    :
3855	  elif test $ac_prog = install &&
3856	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3857	    # program-specific install script used by HP pwplus--don't use.
3858	    :
3859	  else
3860	    rm -rf conftest.one conftest.two conftest.dir
3861	    echo one > conftest.one
3862	    echo two > conftest.two
3863	    mkdir conftest.dir
3864	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3865	      test -s conftest.one && test -s conftest.two &&
3866	      test -s conftest.dir/conftest.one &&
3867	      test -s conftest.dir/conftest.two
3868	    then
3869	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3870	      break 3
3871	    fi
3872	  fi
3873	fi
3874      done
3875    done
3876    ;;
3877esac
3878
3879  done
3880IFS=$as_save_IFS
3881
3882rm -rf conftest.one conftest.two conftest.dir
3883
3884fi
3885  if test ${ac_cv_path_install+y}; then
3886    INSTALL=$ac_cv_path_install
3887  else
3888    # As a last resort, use the slow shell script.  Don't cache a
3889    # value for INSTALL within a source directory, because that will
3890    # break other packages using the cache if that directory is
3891    # removed, or if the value is a relative name.
3892    INSTALL=$ac_install_sh
3893  fi
3894fi
3895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3896printf "%s\n" "$INSTALL" >&6; }
3897
3898# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3899# It thinks the first close brace ends the variable substitution.
3900test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3901
3902test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3903
3904test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3905
3906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3907printf %s "checking whether build environment is sane... " >&6; }
3908# Reject unsafe characters in $srcdir or the absolute working directory
3909# name.  Accept space and tab only in the latter.
3910am_lf='
3911'
3912case `pwd` in
3913  *[\\\"\#\$\&\'\`$am_lf]*)
3914    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3915esac
3916case $srcdir in
3917  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3918    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3919esac
3920
3921# Do 'set' in a subshell so we don't clobber the current shell's
3922# arguments.  Must try -L first in case configure is actually a
3923# symlink; some systems play weird games with the mod time of symlinks
3924# (eg FreeBSD returns the mod time of the symlink's containing
3925# directory).
3926if (
3927   am_has_slept=no
3928   for am_try in 1 2; do
3929     echo "timestamp, slept: $am_has_slept" > conftest.file
3930     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3931     if test "$*" = "X"; then
3932	# -L didn't work.
3933	set X `ls -t "$srcdir/configure" conftest.file`
3934     fi
3935     if test "$*" != "X $srcdir/configure conftest.file" \
3936	&& test "$*" != "X conftest.file $srcdir/configure"; then
3937
3938	# If neither matched, then we have a broken ls.  This can happen
3939	# if, for instance, CONFIG_SHELL is bash and it inherits a
3940	# broken ls alias from the environment.  This has actually
3941	# happened.  Such a system could not be considered "sane".
3942	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3943  alias in your environment" "$LINENO" 5
3944     fi
3945     if test "$2" = conftest.file || test $am_try -eq 2; then
3946       break
3947     fi
3948     # Just in case.
3949     sleep 1
3950     am_has_slept=yes
3951   done
3952   test "$2" = conftest.file
3953   )
3954then
3955   # Ok.
3956   :
3957else
3958   as_fn_error $? "newly created file is older than distributed files!
3959Check your system clock" "$LINENO" 5
3960fi
3961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3962printf "%s\n" "yes" >&6; }
3963# If we didn't sleep, we still need to ensure time stamps of config.status and
3964# generated files are strictly newer.
3965am_sleep_pid=
3966if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3967  ( sleep 1 ) &
3968  am_sleep_pid=$!
3969fi
3970
3971rm -f conftest.file
3972
3973test "$program_prefix" != NONE &&
3974  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3975# Use a double $ so make ignores it.
3976test "$program_suffix" != NONE &&
3977  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3978# Double any \ or $.
3979# By default was `s,x,x', remove it if useless.
3980ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3981program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3982
3983
3984  if test x"${MISSING+set}" != xset; then
3985  MISSING="\${SHELL} '$am_aux_dir/missing'"
3986fi
3987# Use eval to expand $SHELL
3988if eval "$MISSING --is-lightweight"; then
3989  am_missing_run="$MISSING "
3990else
3991  am_missing_run=
3992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3993printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3994fi
3995
3996if test x"${install_sh+set}" != xset; then
3997  case $am_aux_dir in
3998  *\ * | *\	*)
3999    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4000  *)
4001    install_sh="\${SHELL} $am_aux_dir/install-sh"
4002  esac
4003fi
4004
4005# Installed binaries are usually stripped using 'strip' when the user
4006# run "make install-strip".  However 'strip' might not be the right
4007# tool to use in cross-compilation environments, therefore Automake
4008# will honor the 'STRIP' environment variable to overrule this program.
4009if test "$cross_compiling" != no; then
4010  if test -n "$ac_tool_prefix"; then
4011  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4012set dummy ${ac_tool_prefix}strip; ac_word=$2
4013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014printf %s "checking for $ac_word... " >&6; }
4015if test ${ac_cv_prog_STRIP+y}
4016then :
4017  printf %s "(cached) " >&6
4018else $as_nop
4019  if test -n "$STRIP"; then
4020  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4021else
4022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH
4024do
4025  IFS=$as_save_IFS
4026  case $as_dir in #(((
4027    '') as_dir=./ ;;
4028    */) ;;
4029    *) as_dir=$as_dir/ ;;
4030  esac
4031    for ac_exec_ext in '' $ac_executable_extensions; do
4032  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4033    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4034    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4035    break 2
4036  fi
4037done
4038  done
4039IFS=$as_save_IFS
4040
4041fi
4042fi
4043STRIP=$ac_cv_prog_STRIP
4044if test -n "$STRIP"; then
4045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4046printf "%s\n" "$STRIP" >&6; }
4047else
4048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049printf "%s\n" "no" >&6; }
4050fi
4051
4052
4053fi
4054if test -z "$ac_cv_prog_STRIP"; then
4055  ac_ct_STRIP=$STRIP
4056  # Extract the first word of "strip", so it can be a program name with args.
4057set dummy strip; ac_word=$2
4058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059printf %s "checking for $ac_word... " >&6; }
4060if test ${ac_cv_prog_ac_ct_STRIP+y}
4061then :
4062  printf %s "(cached) " >&6
4063else $as_nop
4064  if test -n "$ac_ct_STRIP"; then
4065  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4066else
4067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068for as_dir in $PATH
4069do
4070  IFS=$as_save_IFS
4071  case $as_dir in #(((
4072    '') as_dir=./ ;;
4073    */) ;;
4074    *) as_dir=$as_dir/ ;;
4075  esac
4076    for ac_exec_ext in '' $ac_executable_extensions; do
4077  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4078    ac_cv_prog_ac_ct_STRIP="strip"
4079    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4080    break 2
4081  fi
4082done
4083  done
4084IFS=$as_save_IFS
4085
4086fi
4087fi
4088ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4089if test -n "$ac_ct_STRIP"; then
4090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4091printf "%s\n" "$ac_ct_STRIP" >&6; }
4092else
4093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094printf "%s\n" "no" >&6; }
4095fi
4096
4097  if test "x$ac_ct_STRIP" = x; then
4098    STRIP=":"
4099  else
4100    case $cross_compiling:$ac_tool_warned in
4101yes:)
4102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4103printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4104ac_tool_warned=yes ;;
4105esac
4106    STRIP=$ac_ct_STRIP
4107  fi
4108else
4109  STRIP="$ac_cv_prog_STRIP"
4110fi
4111
4112fi
4113INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4114
4115
4116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4117printf %s "checking for a race-free mkdir -p... " >&6; }
4118if test -z "$MKDIR_P"; then
4119  if test ${ac_cv_path_mkdir+y}
4120then :
4121  printf %s "(cached) " >&6
4122else $as_nop
4123  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4125do
4126  IFS=$as_save_IFS
4127  case $as_dir in #(((
4128    '') as_dir=./ ;;
4129    */) ;;
4130    *) as_dir=$as_dir/ ;;
4131  esac
4132    for ac_prog in mkdir gmkdir; do
4133	 for ac_exec_ext in '' $ac_executable_extensions; do
4134	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4135	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4136	     'mkdir ('*'coreutils) '* | \
4137	     'BusyBox '* | \
4138	     'mkdir (fileutils) '4.1*)
4139	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4140	       break 3;;
4141	   esac
4142	 done
4143       done
4144  done
4145IFS=$as_save_IFS
4146
4147fi
4148
4149  test -d ./--version && rmdir ./--version
4150  if test ${ac_cv_path_mkdir+y}; then
4151    MKDIR_P="$ac_cv_path_mkdir -p"
4152  else
4153    # As a last resort, use the slow shell script.  Don't cache a
4154    # value for MKDIR_P within a source directory, because that will
4155    # break other packages using the cache if that directory is
4156    # removed, or if the value is a relative name.
4157    MKDIR_P="$ac_install_sh -d"
4158  fi
4159fi
4160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4161printf "%s\n" "$MKDIR_P" >&6; }
4162
4163for ac_prog in gawk mawk nawk awk
4164do
4165  # Extract the first word of "$ac_prog", so it can be a program name with args.
4166set dummy $ac_prog; ac_word=$2
4167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168printf %s "checking for $ac_word... " >&6; }
4169if test ${ac_cv_prog_AWK+y}
4170then :
4171  printf %s "(cached) " >&6
4172else $as_nop
4173  if test -n "$AWK"; then
4174  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4175else
4176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177for as_dir in $PATH
4178do
4179  IFS=$as_save_IFS
4180  case $as_dir in #(((
4181    '') as_dir=./ ;;
4182    */) ;;
4183    *) as_dir=$as_dir/ ;;
4184  esac
4185    for ac_exec_ext in '' $ac_executable_extensions; do
4186  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4187    ac_cv_prog_AWK="$ac_prog"
4188    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4189    break 2
4190  fi
4191done
4192  done
4193IFS=$as_save_IFS
4194
4195fi
4196fi
4197AWK=$ac_cv_prog_AWK
4198if test -n "$AWK"; then
4199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4200printf "%s\n" "$AWK" >&6; }
4201else
4202  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203printf "%s\n" "no" >&6; }
4204fi
4205
4206
4207  test -n "$AWK" && break
4208done
4209
4210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4211printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4212set x ${MAKE-make}
4213ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4214if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4215then :
4216  printf %s "(cached) " >&6
4217else $as_nop
4218  cat >conftest.make <<\_ACEOF
4219SHELL = /bin/sh
4220all:
4221	@echo '@@@%%%=$(MAKE)=@@@%%%'
4222_ACEOF
4223# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4224case `${MAKE-make} -f conftest.make 2>/dev/null` in
4225  *@@@%%%=?*=@@@%%%*)
4226    eval ac_cv_prog_make_${ac_make}_set=yes;;
4227  *)
4228    eval ac_cv_prog_make_${ac_make}_set=no;;
4229esac
4230rm -f conftest.make
4231fi
4232if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4234printf "%s\n" "yes" >&6; }
4235  SET_MAKE=
4236else
4237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238printf "%s\n" "no" >&6; }
4239  SET_MAKE="MAKE=${MAKE-make}"
4240fi
4241
4242rm -rf .tst 2>/dev/null
4243mkdir .tst 2>/dev/null
4244if test -d .tst; then
4245  am__leading_dot=.
4246else
4247  am__leading_dot=_
4248fi
4249rmdir .tst 2>/dev/null
4250
4251DEPDIR="${am__leading_dot}deps"
4252
4253ac_config_commands="$ac_config_commands depfiles"
4254
4255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4256printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4257cat > confinc.mk << 'END'
4258am__doit:
4259	@echo this is the am__doit target >confinc.out
4260.PHONY: am__doit
4261END
4262am__include="#"
4263am__quote=
4264# BSD make does it like this.
4265echo '.include "confinc.mk" # ignored' > confmf.BSD
4266# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4267echo 'include confinc.mk # ignored' > confmf.GNU
4268_am_result=no
4269for s in GNU BSD; do
4270  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4271   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); }
4275  case $?:`cat confinc.out 2>/dev/null` in #(
4276  '0:this is the am__doit target') :
4277    case $s in #(
4278  BSD) :
4279    am__include='.include' am__quote='"' ;; #(
4280  *) :
4281    am__include='include' am__quote='' ;;
4282esac ;; #(
4283  *) :
4284     ;;
4285esac
4286  if test "$am__include" != "#"; then
4287    _am_result="yes ($s style)"
4288    break
4289  fi
4290done
4291rm -f confinc.* confmf.*
4292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4293printf "%s\n" "${_am_result}" >&6; }
4294
4295# Check whether --enable-dependency-tracking was given.
4296if test ${enable_dependency_tracking+y}
4297then :
4298  enableval=$enable_dependency_tracking;
4299fi
4300
4301if test "x$enable_dependency_tracking" != xno; then
4302  am_depcomp="$ac_aux_dir/depcomp"
4303  AMDEPBACKSLASH='\'
4304  am__nodep='_no'
4305fi
4306 if test "x$enable_dependency_tracking" != xno; then
4307  AMDEP_TRUE=
4308  AMDEP_FALSE='#'
4309else
4310  AMDEP_TRUE='#'
4311  AMDEP_FALSE=
4312fi
4313
4314
4315# Check whether --enable-silent-rules was given.
4316if test ${enable_silent_rules+y}
4317then :
4318  enableval=$enable_silent_rules;
4319fi
4320
4321case $enable_silent_rules in # (((
4322  yes) AM_DEFAULT_VERBOSITY=0;;
4323   no) AM_DEFAULT_VERBOSITY=1;;
4324    *) AM_DEFAULT_VERBOSITY=1;;
4325esac
4326am_make=${MAKE-make}
4327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4328printf %s "checking whether $am_make supports nested variables... " >&6; }
4329if test ${am_cv_make_support_nested_variables+y}
4330then :
4331  printf %s "(cached) " >&6
4332else $as_nop
4333  if printf "%s\n" 'TRUE=$(BAR$(V))
4334BAR0=false
4335BAR1=true
4336V=1
4337am__doit:
4338	@$(TRUE)
4339.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4340  am_cv_make_support_nested_variables=yes
4341else
4342  am_cv_make_support_nested_variables=no
4343fi
4344fi
4345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4346printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4347if test $am_cv_make_support_nested_variables = yes; then
4348    AM_V='$(V)'
4349  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4350else
4351  AM_V=$AM_DEFAULT_VERBOSITY
4352  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4353fi
4354AM_BACKSLASH='\'
4355
4356if test "`cd $srcdir && pwd`" != "`pwd`"; then
4357  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4358  # is not polluted with repeated "-I."
4359  am__isrc=' -I$(srcdir)'
4360  # test to see if srcdir already configured
4361  if test -f $srcdir/config.status; then
4362    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4363  fi
4364fi
4365
4366# test whether we have cygpath
4367if test -z "$CYGPATH_W"; then
4368  if (cygpath --version) >/dev/null 2>/dev/null; then
4369    CYGPATH_W='cygpath -w'
4370  else
4371    CYGPATH_W=echo
4372  fi
4373fi
4374
4375
4376# Define the identity of the package.
4377 PACKAGE='twm'
4378 VERSION='1.0.13.1'
4379
4380
4381printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4382
4383
4384printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4385
4386# Some tools Automake needs.
4387
4388ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4389
4390
4391AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4392
4393
4394AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4395
4396
4397AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4398
4399
4400MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4401
4402# For better backward compatibility.  To be removed once Automake 1.9.x
4403# dies out for good.  For more background, see:
4404# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4405# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4406mkdir_p='$(MKDIR_P)'
4407
4408# We need awk for the "check" target (and possibly the TAP driver).  The
4409# system "awk" is bad on some platforms.
4410# Always define AMTAR for backward compatibility.  Yes, it's still used
4411# in the wild :-(  We should find a proper way to deprecate it ...
4412AMTAR='$${TAR-tar}'
4413
4414
4415# We'll loop over all known methods to create a tar archive until one works.
4416_am_tools='gnutar  pax cpio none'
4417
4418am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4419
4420
4421
4422
4423
4424depcc="$CC"   am_compiler_list=
4425
4426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4427printf %s "checking dependency style of $depcc... " >&6; }
4428if test ${am_cv_CC_dependencies_compiler_type+y}
4429then :
4430  printf %s "(cached) " >&6
4431else $as_nop
4432  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4433  # We make a subdir and do the tests there.  Otherwise we can end up
4434  # making bogus files that we don't know about and never remove.  For
4435  # instance it was reported that on HP-UX the gcc test will end up
4436  # making a dummy file named 'D' -- because '-MD' means "put the output
4437  # in D".
4438  rm -rf conftest.dir
4439  mkdir conftest.dir
4440  # Copy depcomp to subdir because otherwise we won't find it if we're
4441  # using a relative directory.
4442  cp "$am_depcomp" conftest.dir
4443  cd conftest.dir
4444  # We will build objects and dependencies in a subdirectory because
4445  # it helps to detect inapplicable dependency modes.  For instance
4446  # both Tru64's cc and ICC support -MD to output dependencies as a
4447  # side effect of compilation, but ICC will put the dependencies in
4448  # the current directory while Tru64 will put them in the object
4449  # directory.
4450  mkdir sub
4451
4452  am_cv_CC_dependencies_compiler_type=none
4453  if test "$am_compiler_list" = ""; then
4454     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4455  fi
4456  am__universal=false
4457  case " $depcc " in #(
4458     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4459     esac
4460
4461  for depmode in $am_compiler_list; do
4462    # Setup a source with many dependencies, because some compilers
4463    # like to wrap large dependency lists on column 80 (with \), and
4464    # we should not choose a depcomp mode which is confused by this.
4465    #
4466    # We need to recreate these files for each test, as the compiler may
4467    # overwrite some of them when testing with obscure command lines.
4468    # This happens at least with the AIX C compiler.
4469    : > sub/conftest.c
4470    for i in 1 2 3 4 5 6; do
4471      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4472      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4473      # Solaris 10 /bin/sh.
4474      echo '/* dummy */' > sub/conftst$i.h
4475    done
4476    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4477
4478    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4479    # mode.  It turns out that the SunPro C++ compiler does not properly
4480    # handle '-M -o', and we need to detect this.  Also, some Intel
4481    # versions had trouble with output in subdirs.
4482    am__obj=sub/conftest.${OBJEXT-o}
4483    am__minus_obj="-o $am__obj"
4484    case $depmode in
4485    gcc)
4486      # This depmode causes a compiler race in universal mode.
4487      test "$am__universal" = false || continue
4488      ;;
4489    nosideeffect)
4490      # After this tag, mechanisms are not by side-effect, so they'll
4491      # only be used when explicitly requested.
4492      if test "x$enable_dependency_tracking" = xyes; then
4493	continue
4494      else
4495	break
4496      fi
4497      ;;
4498    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4499      # This compiler won't grok '-c -o', but also, the minuso test has
4500      # not run yet.  These depmodes are late enough in the game, and
4501      # so weak that their functioning should not be impacted.
4502      am__obj=conftest.${OBJEXT-o}
4503      am__minus_obj=
4504      ;;
4505    none) break ;;
4506    esac
4507    if depmode=$depmode \
4508       source=sub/conftest.c object=$am__obj \
4509       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4510       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4511         >/dev/null 2>conftest.err &&
4512       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4513       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4514       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4515       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4516      # icc doesn't choke on unknown options, it will just issue warnings
4517      # or remarks (even with -Werror).  So we grep stderr for any message
4518      # that says an option was ignored or not supported.
4519      # When given -MP, icc 7.0 and 7.1 complain thusly:
4520      #   icc: Command line warning: ignoring option '-M'; no argument required
4521      # The diagnosis changed in icc 8.0:
4522      #   icc: Command line remark: option '-MP' not supported
4523      if (grep 'ignoring option' conftest.err ||
4524          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4525        am_cv_CC_dependencies_compiler_type=$depmode
4526        break
4527      fi
4528    fi
4529  done
4530
4531  cd ..
4532  rm -rf conftest.dir
4533else
4534  am_cv_CC_dependencies_compiler_type=none
4535fi
4536
4537fi
4538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4539printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4540CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4541
4542 if
4543  test "x$enable_dependency_tracking" != xno \
4544  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4545  am__fastdepCC_TRUE=
4546  am__fastdepCC_FALSE='#'
4547else
4548  am__fastdepCC_TRUE='#'
4549  am__fastdepCC_FALSE=
4550fi
4551
4552
4553# Variables for tags utilities; see am/tags.am
4554if test -z "$CTAGS"; then
4555  CTAGS=ctags
4556fi
4557
4558if test -z "$ETAGS"; then
4559  ETAGS=etags
4560fi
4561
4562if test -z "$CSCOPE"; then
4563  CSCOPE=cscope
4564fi
4565
4566
4567
4568# POSIX will say in a future version that running "rm -f" with no argument
4569# is OK; and we want to be able to make that assumption in our Makefile
4570# recipes.  So use an aggressive probe to check that the usage we want is
4571# actually supported "in the wild" to an acceptable degree.
4572# See automake bug#10828.
4573# To make any issue more visible, cause the running configure to be aborted
4574# by default if the 'rm' program in use doesn't match our expectations; the
4575# user can still override this though.
4576if rm -f && rm -fr && rm -rf; then : OK; else
4577  cat >&2 <<'END'
4578Oops!
4579
4580Your 'rm' program seems unable to run without file operands specified
4581on the command line, even when the '-f' option is present.  This is contrary
4582to the behaviour of most rm programs out there, and not conforming with
4583the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4584
4585Please tell bug-automake@gnu.org about your system, including the value
4586of your $PATH and any error possibly output before this message.  This
4587can help us improve future automake versions.
4588
4589END
4590  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4591    echo 'Configuration will proceed anyway, since you have set the' >&2
4592    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4593    echo >&2
4594  else
4595    cat >&2 <<'END'
4596Aborting the configuration process, to ensure you take notice of the issue.
4597
4598You can download and install GNU coreutils to get an 'rm' implementation
4599that behaves properly: <https://www.gnu.org/software/coreutils/>.
4600
4601If you want to complete the configuration process using your problematic
4602'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4603to "yes", and re-run configure.
4604
4605END
4606    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4607  fi
4608fi
4609
4610
4611# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4625printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4626if test ${ac_cv_c_undeclared_builtin_options+y}
4627then :
4628  printf %s "(cached) " >&6
4629else $as_nop
4630  ac_save_CFLAGS=$CFLAGS
4631   ac_cv_c_undeclared_builtin_options='cannot detect'
4632   for ac_arg in '' -fno-builtin; do
4633     CFLAGS="$ac_save_CFLAGS $ac_arg"
4634     # This test program should *not* compile successfully.
4635     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636/* end confdefs.h.  */
4637
4638int
4639main (void)
4640{
4641(void) strchr;
4642  ;
4643  return 0;
4644}
4645_ACEOF
4646if ac_fn_c_try_compile "$LINENO"
4647then :
4648
4649else $as_nop
4650  # This test program should compile successfully.
4651        # No library function is consistently available on
4652        # freestanding implementations, so test against a dummy
4653        # declaration.  Include always-available headers on the
4654        # off chance that they somehow elicit warnings.
4655        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656/* end confdefs.h.  */
4657#include <float.h>
4658#include <limits.h>
4659#include <stdarg.h>
4660#include <stddef.h>
4661extern void ac_decl (int, char *);
4662
4663int
4664main (void)
4665{
4666(void) ac_decl (0, (char *) 0);
4667  (void) ac_decl;
4668
4669  ;
4670  return 0;
4671}
4672_ACEOF
4673if ac_fn_c_try_compile "$LINENO"
4674then :
4675  if test x"$ac_arg" = x
4676then :
4677  ac_cv_c_undeclared_builtin_options='none needed'
4678else $as_nop
4679  ac_cv_c_undeclared_builtin_options=$ac_arg
4680fi
4681          break
4682fi
4683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4684fi
4685rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4686    done
4687    CFLAGS=$ac_save_CFLAGS
4688
4689fi
4690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4691printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4692  case $ac_cv_c_undeclared_builtin_options in #(
4693  'cannot detect') :
4694    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4695printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4696as_fn_error $? "cannot make $CC report undeclared builtins
4697See \`config.log' for more details" "$LINENO" 5; } ;; #(
4698  'none needed') :
4699    ac_c_undeclared_builtin_options='' ;; #(
4700  *) :
4701    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4702esac
4703
4704
4705
4706
4707
4708ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4709if test "x$ac_cv_have_decl___clang__" = xyes
4710then :
4711  CLANGCC="yes"
4712else $as_nop
4713  CLANGCC="no"
4714fi
4715ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4716if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4717then :
4718  INTELCC="yes"
4719else $as_nop
4720  INTELCC="no"
4721fi
4722ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4723if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4724then :
4725  SUNCC="yes"
4726else $as_nop
4727  SUNCC="no"
4728fi
4729
4730
4731
4732
4733
4734
4735
4736
4737if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4738	if test -n "$ac_tool_prefix"; then
4739  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4740set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742printf %s "checking for $ac_word... " >&6; }
4743if test ${ac_cv_path_PKG_CONFIG+y}
4744then :
4745  printf %s "(cached) " >&6
4746else $as_nop
4747  case $PKG_CONFIG in
4748  [\\/]* | ?:[\\/]*)
4749  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4750  ;;
4751  *)
4752  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH
4754do
4755  IFS=$as_save_IFS
4756  case $as_dir in #(((
4757    '') as_dir=./ ;;
4758    */) ;;
4759    *) as_dir=$as_dir/ ;;
4760  esac
4761    for ac_exec_ext in '' $ac_executable_extensions; do
4762  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4763    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4764    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4765    break 2
4766  fi
4767done
4768  done
4769IFS=$as_save_IFS
4770
4771  ;;
4772esac
4773fi
4774PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4775if test -n "$PKG_CONFIG"; then
4776  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4777printf "%s\n" "$PKG_CONFIG" >&6; }
4778else
4779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780printf "%s\n" "no" >&6; }
4781fi
4782
4783
4784fi
4785if test -z "$ac_cv_path_PKG_CONFIG"; then
4786  ac_pt_PKG_CONFIG=$PKG_CONFIG
4787  # Extract the first word of "pkg-config", so it can be a program name with args.
4788set dummy pkg-config; ac_word=$2
4789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790printf %s "checking for $ac_word... " >&6; }
4791if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4792then :
4793  printf %s "(cached) " >&6
4794else $as_nop
4795  case $ac_pt_PKG_CONFIG in
4796  [\\/]* | ?:[\\/]*)
4797  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4798  ;;
4799  *)
4800  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801for as_dir in $PATH
4802do
4803  IFS=$as_save_IFS
4804  case $as_dir in #(((
4805    '') as_dir=./ ;;
4806    */) ;;
4807    *) as_dir=$as_dir/ ;;
4808  esac
4809    for ac_exec_ext in '' $ac_executable_extensions; do
4810  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4811    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4812    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4813    break 2
4814  fi
4815done
4816  done
4817IFS=$as_save_IFS
4818
4819  ;;
4820esac
4821fi
4822ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4823if test -n "$ac_pt_PKG_CONFIG"; then
4824  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4825printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4826else
4827  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828printf "%s\n" "no" >&6; }
4829fi
4830
4831  if test "x$ac_pt_PKG_CONFIG" = x; then
4832    PKG_CONFIG=""
4833  else
4834    case $cross_compiling:$ac_tool_warned in
4835yes:)
4836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4837printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4838ac_tool_warned=yes ;;
4839esac
4840    PKG_CONFIG=$ac_pt_PKG_CONFIG
4841  fi
4842else
4843  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4844fi
4845
4846fi
4847if test -n "$PKG_CONFIG"; then
4848	_pkg_min_version=0.9.0
4849	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4850printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4851	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4852		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4853printf "%s\n" "yes" >&6; }
4854	else
4855		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856printf "%s\n" "no" >&6; }
4857		PKG_CONFIG=""
4858	fi
4859fi
4860
4861
4862  # Make sure we can run config.sub.
4863$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4864  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4865
4866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4867printf %s "checking build system type... " >&6; }
4868if test ${ac_cv_build+y}
4869then :
4870  printf %s "(cached) " >&6
4871else $as_nop
4872  ac_build_alias=$build_alias
4873test "x$ac_build_alias" = x &&
4874  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4875test "x$ac_build_alias" = x &&
4876  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4877ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4878  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4879
4880fi
4881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4882printf "%s\n" "$ac_cv_build" >&6; }
4883case $ac_cv_build in
4884*-*-*) ;;
4885*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4886esac
4887build=$ac_cv_build
4888ac_save_IFS=$IFS; IFS='-'
4889set x $ac_cv_build
4890shift
4891build_cpu=$1
4892build_vendor=$2
4893shift; shift
4894# Remember, the first character of IFS is used to create $*,
4895# except with old shells:
4896build_os=$*
4897IFS=$ac_save_IFS
4898case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4899
4900
4901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4902printf %s "checking host system type... " >&6; }
4903if test ${ac_cv_host+y}
4904then :
4905  printf %s "(cached) " >&6
4906else $as_nop
4907  if test "x$host_alias" = x; then
4908  ac_cv_host=$ac_cv_build
4909else
4910  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4911    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4912fi
4913
4914fi
4915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4916printf "%s\n" "$ac_cv_host" >&6; }
4917case $ac_cv_host in
4918*-*-*) ;;
4919*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4920esac
4921host=$ac_cv_host
4922ac_save_IFS=$IFS; IFS='-'
4923set x $ac_cv_host
4924shift
4925host_cpu=$1
4926host_vendor=$2
4927shift; shift
4928# Remember, the first character of IFS is used to create $*,
4929# except with old shells:
4930host_os=$*
4931IFS=$ac_save_IFS
4932case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4933
4934
4935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4936printf %s "checking for a sed that does not truncate output... " >&6; }
4937if test ${ac_cv_path_SED+y}
4938then :
4939  printf %s "(cached) " >&6
4940else $as_nop
4941            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4942     for ac_i in 1 2 3 4 5 6 7; do
4943       ac_script="$ac_script$as_nl$ac_script"
4944     done
4945     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4946     { ac_script=; unset ac_script;}
4947     if test -z "$SED"; then
4948  ac_path_SED_found=false
4949  # Loop through the user's path and test for each of PROGNAME-LIST
4950  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953  IFS=$as_save_IFS
4954  case $as_dir in #(((
4955    '') as_dir=./ ;;
4956    */) ;;
4957    *) as_dir=$as_dir/ ;;
4958  esac
4959    for ac_prog in sed gsed
4960   do
4961    for ac_exec_ext in '' $ac_executable_extensions; do
4962      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4963      as_fn_executable_p "$ac_path_SED" || continue
4964# Check for GNU ac_path_SED and select it if it is found.
4965  # Check for GNU $ac_path_SED
4966case `"$ac_path_SED" --version 2>&1` in
4967*GNU*)
4968  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4969*)
4970  ac_count=0
4971  printf %s 0123456789 >"conftest.in"
4972  while :
4973  do
4974    cat "conftest.in" "conftest.in" >"conftest.tmp"
4975    mv "conftest.tmp" "conftest.in"
4976    cp "conftest.in" "conftest.nl"
4977    printf "%s\n" '' >> "conftest.nl"
4978    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4979    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4980    as_fn_arith $ac_count + 1 && ac_count=$as_val
4981    if test $ac_count -gt ${ac_path_SED_max-0}; then
4982      # Best one so far, save it but keep looking for a better one
4983      ac_cv_path_SED="$ac_path_SED"
4984      ac_path_SED_max=$ac_count
4985    fi
4986    # 10*(2^10) chars as input seems more than enough
4987    test $ac_count -gt 10 && break
4988  done
4989  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4990esac
4991
4992      $ac_path_SED_found && break 3
4993    done
4994  done
4995  done
4996IFS=$as_save_IFS
4997  if test -z "$ac_cv_path_SED"; then
4998    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4999  fi
5000else
5001  ac_cv_path_SED=$SED
5002fi
5003
5004fi
5005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5006printf "%s\n" "$ac_cv_path_SED" >&6; }
5007 SED="$ac_cv_path_SED"
5008  rm -f conftest.sed
5009
5010
5011
5012
5013
5014
5015# Check whether --enable-selective-werror was given.
5016if test ${enable_selective_werror+y}
5017then :
5018  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5019else $as_nop
5020  SELECTIVE_WERROR=yes
5021fi
5022
5023
5024
5025
5026
5027# -v is too short to test reliably with XORG_TESTSET_CFLAG
5028if test "x$SUNCC" = "xyes"; then
5029    BASE_CFLAGS="-v"
5030else
5031    BASE_CFLAGS=""
5032fi
5033
5034# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048xorg_testset_save_CFLAGS="$CFLAGS"
5049
5050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5051	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5052	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5053printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5054if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5055then :
5056  printf %s "(cached) " >&6
5057else $as_nop
5058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059/* end confdefs.h.  */
5060int i;
5061_ACEOF
5062if ac_fn_c_try_compile "$LINENO"
5063then :
5064  xorg_cv_cc_flag_unknown_warning_option=yes
5065else $as_nop
5066  xorg_cv_cc_flag_unknown_warning_option=no
5067fi
5068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5069fi
5070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5071printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5072	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5073	CFLAGS="$xorg_testset_save_CFLAGS"
5074fi
5075
5076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5077	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5078		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5079	fi
5080	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5081	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5082printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5083if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5084then :
5085  printf %s "(cached) " >&6
5086else $as_nop
5087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088/* end confdefs.h.  */
5089int i;
5090_ACEOF
5091if ac_fn_c_try_compile "$LINENO"
5092then :
5093  xorg_cv_cc_flag_unused_command_line_argument=yes
5094else $as_nop
5095  xorg_cv_cc_flag_unused_command_line_argument=no
5096fi
5097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5098fi
5099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5100printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5101	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5102	CFLAGS="$xorg_testset_save_CFLAGS"
5103fi
5104
5105found="no"
5106
5107	if test $found = "no" ; then
5108		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5109			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5110		fi
5111
5112		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5113			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5114		fi
5115
5116		CFLAGS="$CFLAGS -Wall"
5117
5118		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5119printf %s "checking if $CC supports -Wall... " >&6; }
5120		cacheid=xorg_cv_cc_flag__Wall
5121		if eval test \${$cacheid+y}
5122then :
5123  printf %s "(cached) " >&6
5124else $as_nop
5125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126/* end confdefs.h.  */
5127int i;
5128int
5129main (void)
5130{
5131
5132  ;
5133  return 0;
5134}
5135_ACEOF
5136if ac_fn_c_try_link "$LINENO"
5137then :
5138  eval $cacheid=yes
5139else $as_nop
5140  eval $cacheid=no
5141fi
5142rm -f core conftest.err conftest.$ac_objext conftest.beam \
5143    conftest$ac_exeext conftest.$ac_ext
5144fi
5145
5146
5147		CFLAGS="$xorg_testset_save_CFLAGS"
5148
5149		eval supported=\$$cacheid
5150		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5151printf "%s\n" "$supported" >&6; }
5152		if test "$supported" = "yes" ; then
5153			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5154			found="yes"
5155		fi
5156	fi
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172xorg_testset_save_CFLAGS="$CFLAGS"
5173
5174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5175	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5176	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5177printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5178if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5179then :
5180  printf %s "(cached) " >&6
5181else $as_nop
5182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183/* end confdefs.h.  */
5184int i;
5185_ACEOF
5186if ac_fn_c_try_compile "$LINENO"
5187then :
5188  xorg_cv_cc_flag_unknown_warning_option=yes
5189else $as_nop
5190  xorg_cv_cc_flag_unknown_warning_option=no
5191fi
5192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5193fi
5194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5195printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5196	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5197	CFLAGS="$xorg_testset_save_CFLAGS"
5198fi
5199
5200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5201	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5202		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5203	fi
5204	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5205	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5206printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5207if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5208then :
5209  printf %s "(cached) " >&6
5210else $as_nop
5211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212/* end confdefs.h.  */
5213int i;
5214_ACEOF
5215if ac_fn_c_try_compile "$LINENO"
5216then :
5217  xorg_cv_cc_flag_unused_command_line_argument=yes
5218else $as_nop
5219  xorg_cv_cc_flag_unused_command_line_argument=no
5220fi
5221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5222fi
5223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5224printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5225	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5226	CFLAGS="$xorg_testset_save_CFLAGS"
5227fi
5228
5229found="no"
5230
5231	if test $found = "no" ; then
5232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5234		fi
5235
5236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5238		fi
5239
5240		CFLAGS="$CFLAGS -Wpointer-arith"
5241
5242		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5243printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5244		cacheid=xorg_cv_cc_flag__Wpointer_arith
5245		if eval test \${$cacheid+y}
5246then :
5247  printf %s "(cached) " >&6
5248else $as_nop
5249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250/* end confdefs.h.  */
5251int i;
5252int
5253main (void)
5254{
5255
5256  ;
5257  return 0;
5258}
5259_ACEOF
5260if ac_fn_c_try_link "$LINENO"
5261then :
5262  eval $cacheid=yes
5263else $as_nop
5264  eval $cacheid=no
5265fi
5266rm -f core conftest.err conftest.$ac_objext conftest.beam \
5267    conftest$ac_exeext conftest.$ac_ext
5268fi
5269
5270
5271		CFLAGS="$xorg_testset_save_CFLAGS"
5272
5273		eval supported=\$$cacheid
5274		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5275printf "%s\n" "$supported" >&6; }
5276		if test "$supported" = "yes" ; then
5277			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5278			found="yes"
5279		fi
5280	fi
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296xorg_testset_save_CFLAGS="$CFLAGS"
5297
5298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5299	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5300	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5301printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5302if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5303then :
5304  printf %s "(cached) " >&6
5305else $as_nop
5306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307/* end confdefs.h.  */
5308int i;
5309_ACEOF
5310if ac_fn_c_try_compile "$LINENO"
5311then :
5312  xorg_cv_cc_flag_unknown_warning_option=yes
5313else $as_nop
5314  xorg_cv_cc_flag_unknown_warning_option=no
5315fi
5316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5317fi
5318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5319printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5320	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5321	CFLAGS="$xorg_testset_save_CFLAGS"
5322fi
5323
5324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5325	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5326		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5327	fi
5328	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5329	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5330printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5331if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5332then :
5333  printf %s "(cached) " >&6
5334else $as_nop
5335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336/* end confdefs.h.  */
5337int i;
5338_ACEOF
5339if ac_fn_c_try_compile "$LINENO"
5340then :
5341  xorg_cv_cc_flag_unused_command_line_argument=yes
5342else $as_nop
5343  xorg_cv_cc_flag_unused_command_line_argument=no
5344fi
5345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5346fi
5347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5348printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5349	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5350	CFLAGS="$xorg_testset_save_CFLAGS"
5351fi
5352
5353found="no"
5354
5355	if test $found = "no" ; then
5356		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5358		fi
5359
5360		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5362		fi
5363
5364		CFLAGS="$CFLAGS -Wmissing-declarations"
5365
5366		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5367printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5368		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5369		if eval test \${$cacheid+y}
5370then :
5371  printf %s "(cached) " >&6
5372else $as_nop
5373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374/* end confdefs.h.  */
5375int i;
5376int
5377main (void)
5378{
5379
5380  ;
5381  return 0;
5382}
5383_ACEOF
5384if ac_fn_c_try_link "$LINENO"
5385then :
5386  eval $cacheid=yes
5387else $as_nop
5388  eval $cacheid=no
5389fi
5390rm -f core conftest.err conftest.$ac_objext conftest.beam \
5391    conftest$ac_exeext conftest.$ac_ext
5392fi
5393
5394
5395		CFLAGS="$xorg_testset_save_CFLAGS"
5396
5397		eval supported=\$$cacheid
5398		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5399printf "%s\n" "$supported" >&6; }
5400		if test "$supported" = "yes" ; then
5401			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5402			found="yes"
5403		fi
5404	fi
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420xorg_testset_save_CFLAGS="$CFLAGS"
5421
5422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5423	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5424	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5425printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5426if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5427then :
5428  printf %s "(cached) " >&6
5429else $as_nop
5430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431/* end confdefs.h.  */
5432int i;
5433_ACEOF
5434if ac_fn_c_try_compile "$LINENO"
5435then :
5436  xorg_cv_cc_flag_unknown_warning_option=yes
5437else $as_nop
5438  xorg_cv_cc_flag_unknown_warning_option=no
5439fi
5440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5441fi
5442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5443printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5444	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5445	CFLAGS="$xorg_testset_save_CFLAGS"
5446fi
5447
5448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5449	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5450		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5451	fi
5452	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5453	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5454printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5455if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5456then :
5457  printf %s "(cached) " >&6
5458else $as_nop
5459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460/* end confdefs.h.  */
5461int i;
5462_ACEOF
5463if ac_fn_c_try_compile "$LINENO"
5464then :
5465  xorg_cv_cc_flag_unused_command_line_argument=yes
5466else $as_nop
5467  xorg_cv_cc_flag_unused_command_line_argument=no
5468fi
5469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5470fi
5471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5472printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5473	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5474	CFLAGS="$xorg_testset_save_CFLAGS"
5475fi
5476
5477found="no"
5478
5479	if test $found = "no" ; then
5480		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5481			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5482		fi
5483
5484		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5485			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5486		fi
5487
5488		CFLAGS="$CFLAGS -Wformat=2"
5489
5490		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5491printf %s "checking if $CC supports -Wformat=2... " >&6; }
5492		cacheid=xorg_cv_cc_flag__Wformat_2
5493		if eval test \${$cacheid+y}
5494then :
5495  printf %s "(cached) " >&6
5496else $as_nop
5497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498/* end confdefs.h.  */
5499int i;
5500int
5501main (void)
5502{
5503
5504  ;
5505  return 0;
5506}
5507_ACEOF
5508if ac_fn_c_try_link "$LINENO"
5509then :
5510  eval $cacheid=yes
5511else $as_nop
5512  eval $cacheid=no
5513fi
5514rm -f core conftest.err conftest.$ac_objext conftest.beam \
5515    conftest$ac_exeext conftest.$ac_ext
5516fi
5517
5518
5519		CFLAGS="$xorg_testset_save_CFLAGS"
5520
5521		eval supported=\$$cacheid
5522		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5523printf "%s\n" "$supported" >&6; }
5524		if test "$supported" = "yes" ; then
5525			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5526			found="yes"
5527		fi
5528	fi
5529
5530	if test $found = "no" ; then
5531		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5532			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5533		fi
5534
5535		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5536			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5537		fi
5538
5539		CFLAGS="$CFLAGS -Wformat"
5540
5541		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5542printf %s "checking if $CC supports -Wformat... " >&6; }
5543		cacheid=xorg_cv_cc_flag__Wformat
5544		if eval test \${$cacheid+y}
5545then :
5546  printf %s "(cached) " >&6
5547else $as_nop
5548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549/* end confdefs.h.  */
5550int i;
5551int
5552main (void)
5553{
5554
5555  ;
5556  return 0;
5557}
5558_ACEOF
5559if ac_fn_c_try_link "$LINENO"
5560then :
5561  eval $cacheid=yes
5562else $as_nop
5563  eval $cacheid=no
5564fi
5565rm -f core conftest.err conftest.$ac_objext conftest.beam \
5566    conftest$ac_exeext conftest.$ac_ext
5567fi
5568
5569
5570		CFLAGS="$xorg_testset_save_CFLAGS"
5571
5572		eval supported=\$$cacheid
5573		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5574printf "%s\n" "$supported" >&6; }
5575		if test "$supported" = "yes" ; then
5576			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5577			found="yes"
5578		fi
5579	fi
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597xorg_testset_save_CFLAGS="$CFLAGS"
5598
5599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5600	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5601	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5602printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5603if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5604then :
5605  printf %s "(cached) " >&6
5606else $as_nop
5607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608/* end confdefs.h.  */
5609int i;
5610_ACEOF
5611if ac_fn_c_try_compile "$LINENO"
5612then :
5613  xorg_cv_cc_flag_unknown_warning_option=yes
5614else $as_nop
5615  xorg_cv_cc_flag_unknown_warning_option=no
5616fi
5617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5618fi
5619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5620printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5621	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5622	CFLAGS="$xorg_testset_save_CFLAGS"
5623fi
5624
5625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5626	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5627		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5628	fi
5629	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5630	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5631printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5632if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5633then :
5634  printf %s "(cached) " >&6
5635else $as_nop
5636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637/* end confdefs.h.  */
5638int i;
5639_ACEOF
5640if ac_fn_c_try_compile "$LINENO"
5641then :
5642  xorg_cv_cc_flag_unused_command_line_argument=yes
5643else $as_nop
5644  xorg_cv_cc_flag_unused_command_line_argument=no
5645fi
5646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5647fi
5648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5649printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5650	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5651	CFLAGS="$xorg_testset_save_CFLAGS"
5652fi
5653
5654found="no"
5655
5656	if test $found = "no" ; then
5657		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5658			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5659		fi
5660
5661		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5662			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5663		fi
5664
5665		CFLAGS="$CFLAGS -Wstrict-prototypes"
5666
5667		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5668printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5669		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5670		if eval test \${$cacheid+y}
5671then :
5672  printf %s "(cached) " >&6
5673else $as_nop
5674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675/* end confdefs.h.  */
5676int i;
5677int
5678main (void)
5679{
5680
5681  ;
5682  return 0;
5683}
5684_ACEOF
5685if ac_fn_c_try_link "$LINENO"
5686then :
5687  eval $cacheid=yes
5688else $as_nop
5689  eval $cacheid=no
5690fi
5691rm -f core conftest.err conftest.$ac_objext conftest.beam \
5692    conftest$ac_exeext conftest.$ac_ext
5693fi
5694
5695
5696		CFLAGS="$xorg_testset_save_CFLAGS"
5697
5698		eval supported=\$$cacheid
5699		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5700printf "%s\n" "$supported" >&6; }
5701		if test "$supported" = "yes" ; then
5702			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5703			found="yes"
5704		fi
5705	fi
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721xorg_testset_save_CFLAGS="$CFLAGS"
5722
5723if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5724	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5725	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5726printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5727if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5728then :
5729  printf %s "(cached) " >&6
5730else $as_nop
5731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732/* end confdefs.h.  */
5733int i;
5734_ACEOF
5735if ac_fn_c_try_compile "$LINENO"
5736then :
5737  xorg_cv_cc_flag_unknown_warning_option=yes
5738else $as_nop
5739  xorg_cv_cc_flag_unknown_warning_option=no
5740fi
5741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5742fi
5743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5744printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5745	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5746	CFLAGS="$xorg_testset_save_CFLAGS"
5747fi
5748
5749if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5750	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5751		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5752	fi
5753	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5754	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5755printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5756if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5757then :
5758  printf %s "(cached) " >&6
5759else $as_nop
5760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761/* end confdefs.h.  */
5762int i;
5763_ACEOF
5764if ac_fn_c_try_compile "$LINENO"
5765then :
5766  xorg_cv_cc_flag_unused_command_line_argument=yes
5767else $as_nop
5768  xorg_cv_cc_flag_unused_command_line_argument=no
5769fi
5770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5771fi
5772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5773printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5774	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5775	CFLAGS="$xorg_testset_save_CFLAGS"
5776fi
5777
5778found="no"
5779
5780	if test $found = "no" ; then
5781		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5782			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5783		fi
5784
5785		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5786			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5787		fi
5788
5789		CFLAGS="$CFLAGS -Wmissing-prototypes"
5790
5791		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5792printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5793		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5794		if eval test \${$cacheid+y}
5795then :
5796  printf %s "(cached) " >&6
5797else $as_nop
5798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799/* end confdefs.h.  */
5800int i;
5801int
5802main (void)
5803{
5804
5805  ;
5806  return 0;
5807}
5808_ACEOF
5809if ac_fn_c_try_link "$LINENO"
5810then :
5811  eval $cacheid=yes
5812else $as_nop
5813  eval $cacheid=no
5814fi
5815rm -f core conftest.err conftest.$ac_objext conftest.beam \
5816    conftest$ac_exeext conftest.$ac_ext
5817fi
5818
5819
5820		CFLAGS="$xorg_testset_save_CFLAGS"
5821
5822		eval supported=\$$cacheid
5823		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5824printf "%s\n" "$supported" >&6; }
5825		if test "$supported" = "yes" ; then
5826			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5827			found="yes"
5828		fi
5829	fi
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845xorg_testset_save_CFLAGS="$CFLAGS"
5846
5847if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5848	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5849	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5850printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5851if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5852then :
5853  printf %s "(cached) " >&6
5854else $as_nop
5855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856/* end confdefs.h.  */
5857int i;
5858_ACEOF
5859if ac_fn_c_try_compile "$LINENO"
5860then :
5861  xorg_cv_cc_flag_unknown_warning_option=yes
5862else $as_nop
5863  xorg_cv_cc_flag_unknown_warning_option=no
5864fi
5865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5866fi
5867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5868printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5869	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5870	CFLAGS="$xorg_testset_save_CFLAGS"
5871fi
5872
5873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5874	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5875		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5876	fi
5877	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5878	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5879printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5880if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5881then :
5882  printf %s "(cached) " >&6
5883else $as_nop
5884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885/* end confdefs.h.  */
5886int i;
5887_ACEOF
5888if ac_fn_c_try_compile "$LINENO"
5889then :
5890  xorg_cv_cc_flag_unused_command_line_argument=yes
5891else $as_nop
5892  xorg_cv_cc_flag_unused_command_line_argument=no
5893fi
5894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5895fi
5896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5897printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5898	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5899	CFLAGS="$xorg_testset_save_CFLAGS"
5900fi
5901
5902found="no"
5903
5904	if test $found = "no" ; then
5905		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5906			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5907		fi
5908
5909		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5910			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5911		fi
5912
5913		CFLAGS="$CFLAGS -Wnested-externs"
5914
5915		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5916printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5917		cacheid=xorg_cv_cc_flag__Wnested_externs
5918		if eval test \${$cacheid+y}
5919then :
5920  printf %s "(cached) " >&6
5921else $as_nop
5922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923/* end confdefs.h.  */
5924int i;
5925int
5926main (void)
5927{
5928
5929  ;
5930  return 0;
5931}
5932_ACEOF
5933if ac_fn_c_try_link "$LINENO"
5934then :
5935  eval $cacheid=yes
5936else $as_nop
5937  eval $cacheid=no
5938fi
5939rm -f core conftest.err conftest.$ac_objext conftest.beam \
5940    conftest$ac_exeext conftest.$ac_ext
5941fi
5942
5943
5944		CFLAGS="$xorg_testset_save_CFLAGS"
5945
5946		eval supported=\$$cacheid
5947		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5948printf "%s\n" "$supported" >&6; }
5949		if test "$supported" = "yes" ; then
5950			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5951			found="yes"
5952		fi
5953	fi
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969xorg_testset_save_CFLAGS="$CFLAGS"
5970
5971if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5972	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5973	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5974printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5975if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5976then :
5977  printf %s "(cached) " >&6
5978else $as_nop
5979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980/* end confdefs.h.  */
5981int i;
5982_ACEOF
5983if ac_fn_c_try_compile "$LINENO"
5984then :
5985  xorg_cv_cc_flag_unknown_warning_option=yes
5986else $as_nop
5987  xorg_cv_cc_flag_unknown_warning_option=no
5988fi
5989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5990fi
5991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5992printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5993	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5994	CFLAGS="$xorg_testset_save_CFLAGS"
5995fi
5996
5997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5998	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5999		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6000	fi
6001	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6002	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6003printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6004if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6005then :
6006  printf %s "(cached) " >&6
6007else $as_nop
6008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009/* end confdefs.h.  */
6010int i;
6011_ACEOF
6012if ac_fn_c_try_compile "$LINENO"
6013then :
6014  xorg_cv_cc_flag_unused_command_line_argument=yes
6015else $as_nop
6016  xorg_cv_cc_flag_unused_command_line_argument=no
6017fi
6018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6019fi
6020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6021printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6022	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6023	CFLAGS="$xorg_testset_save_CFLAGS"
6024fi
6025
6026found="no"
6027
6028	if test $found = "no" ; then
6029		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6030			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6031		fi
6032
6033		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6034			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6035		fi
6036
6037		CFLAGS="$CFLAGS -Wbad-function-cast"
6038
6039		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6040printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6041		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6042		if eval test \${$cacheid+y}
6043then :
6044  printf %s "(cached) " >&6
6045else $as_nop
6046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047/* end confdefs.h.  */
6048int i;
6049int
6050main (void)
6051{
6052
6053  ;
6054  return 0;
6055}
6056_ACEOF
6057if ac_fn_c_try_link "$LINENO"
6058then :
6059  eval $cacheid=yes
6060else $as_nop
6061  eval $cacheid=no
6062fi
6063rm -f core conftest.err conftest.$ac_objext conftest.beam \
6064    conftest$ac_exeext conftest.$ac_ext
6065fi
6066
6067
6068		CFLAGS="$xorg_testset_save_CFLAGS"
6069
6070		eval supported=\$$cacheid
6071		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6072printf "%s\n" "$supported" >&6; }
6073		if test "$supported" = "yes" ; then
6074			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6075			found="yes"
6076		fi
6077	fi
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093xorg_testset_save_CFLAGS="$CFLAGS"
6094
6095if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6096	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6097	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6098printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6099if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6100then :
6101  printf %s "(cached) " >&6
6102else $as_nop
6103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104/* end confdefs.h.  */
6105int i;
6106_ACEOF
6107if ac_fn_c_try_compile "$LINENO"
6108then :
6109  xorg_cv_cc_flag_unknown_warning_option=yes
6110else $as_nop
6111  xorg_cv_cc_flag_unknown_warning_option=no
6112fi
6113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6114fi
6115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6116printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6117	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6118	CFLAGS="$xorg_testset_save_CFLAGS"
6119fi
6120
6121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6122	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6123		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6124	fi
6125	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6126	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6127printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6128if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6129then :
6130  printf %s "(cached) " >&6
6131else $as_nop
6132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133/* end confdefs.h.  */
6134int i;
6135_ACEOF
6136if ac_fn_c_try_compile "$LINENO"
6137then :
6138  xorg_cv_cc_flag_unused_command_line_argument=yes
6139else $as_nop
6140  xorg_cv_cc_flag_unused_command_line_argument=no
6141fi
6142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6143fi
6144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6145printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6146	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6147	CFLAGS="$xorg_testset_save_CFLAGS"
6148fi
6149
6150found="no"
6151
6152	if test $found = "no" ; then
6153		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6154			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6155		fi
6156
6157		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6158			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6159		fi
6160
6161		CFLAGS="$CFLAGS -Wold-style-definition"
6162
6163		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6164printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6165		cacheid=xorg_cv_cc_flag__Wold_style_definition
6166		if eval test \${$cacheid+y}
6167then :
6168  printf %s "(cached) " >&6
6169else $as_nop
6170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171/* end confdefs.h.  */
6172int i;
6173int
6174main (void)
6175{
6176
6177  ;
6178  return 0;
6179}
6180_ACEOF
6181if ac_fn_c_try_link "$LINENO"
6182then :
6183  eval $cacheid=yes
6184else $as_nop
6185  eval $cacheid=no
6186fi
6187rm -f core conftest.err conftest.$ac_objext conftest.beam \
6188    conftest$ac_exeext conftest.$ac_ext
6189fi
6190
6191
6192		CFLAGS="$xorg_testset_save_CFLAGS"
6193
6194		eval supported=\$$cacheid
6195		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6196printf "%s\n" "$supported" >&6; }
6197		if test "$supported" = "yes" ; then
6198			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6199			found="yes"
6200		fi
6201	fi
6202
6203	if test $found = "no" ; then
6204		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6205			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6206		fi
6207
6208		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6209			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6210		fi
6211
6212		CFLAGS="$CFLAGS -fd"
6213
6214		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6215printf %s "checking if $CC supports -fd... " >&6; }
6216		cacheid=xorg_cv_cc_flag__fd
6217		if eval test \${$cacheid+y}
6218then :
6219  printf %s "(cached) " >&6
6220else $as_nop
6221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222/* end confdefs.h.  */
6223int i;
6224int
6225main (void)
6226{
6227
6228  ;
6229  return 0;
6230}
6231_ACEOF
6232if ac_fn_c_try_link "$LINENO"
6233then :
6234  eval $cacheid=yes
6235else $as_nop
6236  eval $cacheid=no
6237fi
6238rm -f core conftest.err conftest.$ac_objext conftest.beam \
6239    conftest$ac_exeext conftest.$ac_ext
6240fi
6241
6242
6243		CFLAGS="$xorg_testset_save_CFLAGS"
6244
6245		eval supported=\$$cacheid
6246		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6247printf "%s\n" "$supported" >&6; }
6248		if test "$supported" = "yes" ; then
6249			BASE_CFLAGS="$BASE_CFLAGS -fd"
6250			found="yes"
6251		fi
6252	fi
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268xorg_testset_save_CFLAGS="$CFLAGS"
6269
6270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6271	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6272	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6273printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6274if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6275then :
6276  printf %s "(cached) " >&6
6277else $as_nop
6278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279/* end confdefs.h.  */
6280int i;
6281_ACEOF
6282if ac_fn_c_try_compile "$LINENO"
6283then :
6284  xorg_cv_cc_flag_unknown_warning_option=yes
6285else $as_nop
6286  xorg_cv_cc_flag_unknown_warning_option=no
6287fi
6288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6289fi
6290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6291printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6292	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6293	CFLAGS="$xorg_testset_save_CFLAGS"
6294fi
6295
6296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6297	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6298		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6299	fi
6300	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6301	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6302printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6303if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6304then :
6305  printf %s "(cached) " >&6
6306else $as_nop
6307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308/* end confdefs.h.  */
6309int i;
6310_ACEOF
6311if ac_fn_c_try_compile "$LINENO"
6312then :
6313  xorg_cv_cc_flag_unused_command_line_argument=yes
6314else $as_nop
6315  xorg_cv_cc_flag_unused_command_line_argument=no
6316fi
6317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6318fi
6319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6320printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6321	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6322	CFLAGS="$xorg_testset_save_CFLAGS"
6323fi
6324
6325found="no"
6326
6327	if test $found = "no" ; then
6328		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6329			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6330		fi
6331
6332		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6333			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6334		fi
6335
6336		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6337
6338		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6339printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6340		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6341		if eval test \${$cacheid+y}
6342then :
6343  printf %s "(cached) " >&6
6344else $as_nop
6345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346/* end confdefs.h.  */
6347int i;
6348int
6349main (void)
6350{
6351
6352  ;
6353  return 0;
6354}
6355_ACEOF
6356if ac_fn_c_try_link "$LINENO"
6357then :
6358  eval $cacheid=yes
6359else $as_nop
6360  eval $cacheid=no
6361fi
6362rm -f core conftest.err conftest.$ac_objext conftest.beam \
6363    conftest$ac_exeext conftest.$ac_ext
6364fi
6365
6366
6367		CFLAGS="$xorg_testset_save_CFLAGS"
6368
6369		eval supported=\$$cacheid
6370		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6371printf "%s\n" "$supported" >&6; }
6372		if test "$supported" = "yes" ; then
6373			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6374			found="yes"
6375		fi
6376	fi
6377
6378
6379
6380
6381
6382# This chunk adds additional warnings that could catch undesired effects.
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396xorg_testset_save_CFLAGS="$CFLAGS"
6397
6398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6399	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6400	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6401printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6402if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6403then :
6404  printf %s "(cached) " >&6
6405else $as_nop
6406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407/* end confdefs.h.  */
6408int i;
6409_ACEOF
6410if ac_fn_c_try_compile "$LINENO"
6411then :
6412  xorg_cv_cc_flag_unknown_warning_option=yes
6413else $as_nop
6414  xorg_cv_cc_flag_unknown_warning_option=no
6415fi
6416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6417fi
6418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6419printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6420	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6421	CFLAGS="$xorg_testset_save_CFLAGS"
6422fi
6423
6424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6425	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6426		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6427	fi
6428	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6429	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6430printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6431if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6432then :
6433  printf %s "(cached) " >&6
6434else $as_nop
6435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436/* end confdefs.h.  */
6437int i;
6438_ACEOF
6439if ac_fn_c_try_compile "$LINENO"
6440then :
6441  xorg_cv_cc_flag_unused_command_line_argument=yes
6442else $as_nop
6443  xorg_cv_cc_flag_unused_command_line_argument=no
6444fi
6445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6446fi
6447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6448printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6449	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6450	CFLAGS="$xorg_testset_save_CFLAGS"
6451fi
6452
6453found="no"
6454
6455	if test $found = "no" ; then
6456		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6457			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6458		fi
6459
6460		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6461			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6462		fi
6463
6464		CFLAGS="$CFLAGS -Wunused"
6465
6466		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6467printf %s "checking if $CC supports -Wunused... " >&6; }
6468		cacheid=xorg_cv_cc_flag__Wunused
6469		if eval test \${$cacheid+y}
6470then :
6471  printf %s "(cached) " >&6
6472else $as_nop
6473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474/* end confdefs.h.  */
6475int i;
6476int
6477main (void)
6478{
6479
6480  ;
6481  return 0;
6482}
6483_ACEOF
6484if ac_fn_c_try_link "$LINENO"
6485then :
6486  eval $cacheid=yes
6487else $as_nop
6488  eval $cacheid=no
6489fi
6490rm -f core conftest.err conftest.$ac_objext conftest.beam \
6491    conftest$ac_exeext conftest.$ac_ext
6492fi
6493
6494
6495		CFLAGS="$xorg_testset_save_CFLAGS"
6496
6497		eval supported=\$$cacheid
6498		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6499printf "%s\n" "$supported" >&6; }
6500		if test "$supported" = "yes" ; then
6501			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6502			found="yes"
6503		fi
6504	fi
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520xorg_testset_save_CFLAGS="$CFLAGS"
6521
6522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6523	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6524	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6525printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6526if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6527then :
6528  printf %s "(cached) " >&6
6529else $as_nop
6530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531/* end confdefs.h.  */
6532int i;
6533_ACEOF
6534if ac_fn_c_try_compile "$LINENO"
6535then :
6536  xorg_cv_cc_flag_unknown_warning_option=yes
6537else $as_nop
6538  xorg_cv_cc_flag_unknown_warning_option=no
6539fi
6540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6541fi
6542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6543printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6544	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6545	CFLAGS="$xorg_testset_save_CFLAGS"
6546fi
6547
6548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6549	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6550		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6551	fi
6552	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6553	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6554printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6555if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6556then :
6557  printf %s "(cached) " >&6
6558else $as_nop
6559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560/* end confdefs.h.  */
6561int i;
6562_ACEOF
6563if ac_fn_c_try_compile "$LINENO"
6564then :
6565  xorg_cv_cc_flag_unused_command_line_argument=yes
6566else $as_nop
6567  xorg_cv_cc_flag_unused_command_line_argument=no
6568fi
6569rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6570fi
6571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6572printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6573	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6574	CFLAGS="$xorg_testset_save_CFLAGS"
6575fi
6576
6577found="no"
6578
6579	if test $found = "no" ; then
6580		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6581			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6582		fi
6583
6584		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6585			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6586		fi
6587
6588		CFLAGS="$CFLAGS -Wuninitialized"
6589
6590		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6591printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6592		cacheid=xorg_cv_cc_flag__Wuninitialized
6593		if eval test \${$cacheid+y}
6594then :
6595  printf %s "(cached) " >&6
6596else $as_nop
6597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598/* end confdefs.h.  */
6599int i;
6600int
6601main (void)
6602{
6603
6604  ;
6605  return 0;
6606}
6607_ACEOF
6608if ac_fn_c_try_link "$LINENO"
6609then :
6610  eval $cacheid=yes
6611else $as_nop
6612  eval $cacheid=no
6613fi
6614rm -f core conftest.err conftest.$ac_objext conftest.beam \
6615    conftest$ac_exeext conftest.$ac_ext
6616fi
6617
6618
6619		CFLAGS="$xorg_testset_save_CFLAGS"
6620
6621		eval supported=\$$cacheid
6622		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6623printf "%s\n" "$supported" >&6; }
6624		if test "$supported" = "yes" ; then
6625			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6626			found="yes"
6627		fi
6628	fi
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644xorg_testset_save_CFLAGS="$CFLAGS"
6645
6646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6647	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6648	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6649printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6650if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6651then :
6652  printf %s "(cached) " >&6
6653else $as_nop
6654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655/* end confdefs.h.  */
6656int i;
6657_ACEOF
6658if ac_fn_c_try_compile "$LINENO"
6659then :
6660  xorg_cv_cc_flag_unknown_warning_option=yes
6661else $as_nop
6662  xorg_cv_cc_flag_unknown_warning_option=no
6663fi
6664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6665fi
6666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6667printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6668	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6669	CFLAGS="$xorg_testset_save_CFLAGS"
6670fi
6671
6672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6673	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6674		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6675	fi
6676	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6677	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6678printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6679if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6680then :
6681  printf %s "(cached) " >&6
6682else $as_nop
6683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684/* end confdefs.h.  */
6685int i;
6686_ACEOF
6687if ac_fn_c_try_compile "$LINENO"
6688then :
6689  xorg_cv_cc_flag_unused_command_line_argument=yes
6690else $as_nop
6691  xorg_cv_cc_flag_unused_command_line_argument=no
6692fi
6693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6694fi
6695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6696printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6697	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6698	CFLAGS="$xorg_testset_save_CFLAGS"
6699fi
6700
6701found="no"
6702
6703	if test $found = "no" ; then
6704		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6705			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6706		fi
6707
6708		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6709			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6710		fi
6711
6712		CFLAGS="$CFLAGS -Wshadow"
6713
6714		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6715printf %s "checking if $CC supports -Wshadow... " >&6; }
6716		cacheid=xorg_cv_cc_flag__Wshadow
6717		if eval test \${$cacheid+y}
6718then :
6719  printf %s "(cached) " >&6
6720else $as_nop
6721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722/* end confdefs.h.  */
6723int i;
6724int
6725main (void)
6726{
6727
6728  ;
6729  return 0;
6730}
6731_ACEOF
6732if ac_fn_c_try_link "$LINENO"
6733then :
6734  eval $cacheid=yes
6735else $as_nop
6736  eval $cacheid=no
6737fi
6738rm -f core conftest.err conftest.$ac_objext conftest.beam \
6739    conftest$ac_exeext conftest.$ac_ext
6740fi
6741
6742
6743		CFLAGS="$xorg_testset_save_CFLAGS"
6744
6745		eval supported=\$$cacheid
6746		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6747printf "%s\n" "$supported" >&6; }
6748		if test "$supported" = "yes" ; then
6749			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6750			found="yes"
6751		fi
6752	fi
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768xorg_testset_save_CFLAGS="$CFLAGS"
6769
6770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6771	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6772	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6773printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6774if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6775then :
6776  printf %s "(cached) " >&6
6777else $as_nop
6778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779/* end confdefs.h.  */
6780int i;
6781_ACEOF
6782if ac_fn_c_try_compile "$LINENO"
6783then :
6784  xorg_cv_cc_flag_unknown_warning_option=yes
6785else $as_nop
6786  xorg_cv_cc_flag_unknown_warning_option=no
6787fi
6788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6789fi
6790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6791printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6792	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6793	CFLAGS="$xorg_testset_save_CFLAGS"
6794fi
6795
6796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6797	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6798		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6799	fi
6800	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6801	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6802printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6803if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6804then :
6805  printf %s "(cached) " >&6
6806else $as_nop
6807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808/* end confdefs.h.  */
6809int i;
6810_ACEOF
6811if ac_fn_c_try_compile "$LINENO"
6812then :
6813  xorg_cv_cc_flag_unused_command_line_argument=yes
6814else $as_nop
6815  xorg_cv_cc_flag_unused_command_line_argument=no
6816fi
6817rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6818fi
6819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6820printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6821	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6822	CFLAGS="$xorg_testset_save_CFLAGS"
6823fi
6824
6825found="no"
6826
6827	if test $found = "no" ; then
6828		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6829			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6830		fi
6831
6832		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6833			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6834		fi
6835
6836		CFLAGS="$CFLAGS -Wmissing-noreturn"
6837
6838		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6839printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6840		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6841		if eval test \${$cacheid+y}
6842then :
6843  printf %s "(cached) " >&6
6844else $as_nop
6845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846/* end confdefs.h.  */
6847int i;
6848int
6849main (void)
6850{
6851
6852  ;
6853  return 0;
6854}
6855_ACEOF
6856if ac_fn_c_try_link "$LINENO"
6857then :
6858  eval $cacheid=yes
6859else $as_nop
6860  eval $cacheid=no
6861fi
6862rm -f core conftest.err conftest.$ac_objext conftest.beam \
6863    conftest$ac_exeext conftest.$ac_ext
6864fi
6865
6866
6867		CFLAGS="$xorg_testset_save_CFLAGS"
6868
6869		eval supported=\$$cacheid
6870		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6871printf "%s\n" "$supported" >&6; }
6872		if test "$supported" = "yes" ; then
6873			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6874			found="yes"
6875		fi
6876	fi
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892xorg_testset_save_CFLAGS="$CFLAGS"
6893
6894if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6895	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6896	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6897printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6898if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6899then :
6900  printf %s "(cached) " >&6
6901else $as_nop
6902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903/* end confdefs.h.  */
6904int i;
6905_ACEOF
6906if ac_fn_c_try_compile "$LINENO"
6907then :
6908  xorg_cv_cc_flag_unknown_warning_option=yes
6909else $as_nop
6910  xorg_cv_cc_flag_unknown_warning_option=no
6911fi
6912rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6913fi
6914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6915printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6916	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6917	CFLAGS="$xorg_testset_save_CFLAGS"
6918fi
6919
6920if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6921	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6922		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923	fi
6924	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6925	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6926printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6927if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6928then :
6929  printf %s "(cached) " >&6
6930else $as_nop
6931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932/* end confdefs.h.  */
6933int i;
6934_ACEOF
6935if ac_fn_c_try_compile "$LINENO"
6936then :
6937  xorg_cv_cc_flag_unused_command_line_argument=yes
6938else $as_nop
6939  xorg_cv_cc_flag_unused_command_line_argument=no
6940fi
6941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6942fi
6943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6944printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6945	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6946	CFLAGS="$xorg_testset_save_CFLAGS"
6947fi
6948
6949found="no"
6950
6951	if test $found = "no" ; then
6952		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6953			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6954		fi
6955
6956		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6957			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6958		fi
6959
6960		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6961
6962		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6963printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6964		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6965		if eval test \${$cacheid+y}
6966then :
6967  printf %s "(cached) " >&6
6968else $as_nop
6969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970/* end confdefs.h.  */
6971int i;
6972int
6973main (void)
6974{
6975
6976  ;
6977  return 0;
6978}
6979_ACEOF
6980if ac_fn_c_try_link "$LINENO"
6981then :
6982  eval $cacheid=yes
6983else $as_nop
6984  eval $cacheid=no
6985fi
6986rm -f core conftest.err conftest.$ac_objext conftest.beam \
6987    conftest$ac_exeext conftest.$ac_ext
6988fi
6989
6990
6991		CFLAGS="$xorg_testset_save_CFLAGS"
6992
6993		eval supported=\$$cacheid
6994		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6995printf "%s\n" "$supported" >&6; }
6996		if test "$supported" = "yes" ; then
6997			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6998			found="yes"
6999		fi
7000	fi
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016xorg_testset_save_CFLAGS="$CFLAGS"
7017
7018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7019	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7020	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7021printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7022if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7023then :
7024  printf %s "(cached) " >&6
7025else $as_nop
7026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027/* end confdefs.h.  */
7028int i;
7029_ACEOF
7030if ac_fn_c_try_compile "$LINENO"
7031then :
7032  xorg_cv_cc_flag_unknown_warning_option=yes
7033else $as_nop
7034  xorg_cv_cc_flag_unknown_warning_option=no
7035fi
7036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7037fi
7038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7039printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7040	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7041	CFLAGS="$xorg_testset_save_CFLAGS"
7042fi
7043
7044if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7045	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7046		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7047	fi
7048	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7049	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7050printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7051if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7052then :
7053  printf %s "(cached) " >&6
7054else $as_nop
7055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056/* end confdefs.h.  */
7057int i;
7058_ACEOF
7059if ac_fn_c_try_compile "$LINENO"
7060then :
7061  xorg_cv_cc_flag_unused_command_line_argument=yes
7062else $as_nop
7063  xorg_cv_cc_flag_unused_command_line_argument=no
7064fi
7065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7066fi
7067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7068printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7069	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7070	CFLAGS="$xorg_testset_save_CFLAGS"
7071fi
7072
7073found="no"
7074
7075	if test $found = "no" ; then
7076		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7077			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7078		fi
7079
7080		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7081			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7082		fi
7083
7084		CFLAGS="$CFLAGS -Wredundant-decls"
7085
7086		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7087printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7088		cacheid=xorg_cv_cc_flag__Wredundant_decls
7089		if eval test \${$cacheid+y}
7090then :
7091  printf %s "(cached) " >&6
7092else $as_nop
7093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094/* end confdefs.h.  */
7095int i;
7096int
7097main (void)
7098{
7099
7100  ;
7101  return 0;
7102}
7103_ACEOF
7104if ac_fn_c_try_link "$LINENO"
7105then :
7106  eval $cacheid=yes
7107else $as_nop
7108  eval $cacheid=no
7109fi
7110rm -f core conftest.err conftest.$ac_objext conftest.beam \
7111    conftest$ac_exeext conftest.$ac_ext
7112fi
7113
7114
7115		CFLAGS="$xorg_testset_save_CFLAGS"
7116
7117		eval supported=\$$cacheid
7118		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7119printf "%s\n" "$supported" >&6; }
7120		if test "$supported" = "yes" ; then
7121			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7122			found="yes"
7123		fi
7124	fi
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140xorg_testset_save_CFLAGS="$CFLAGS"
7141
7142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7143	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7144	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7145printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7146if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7147then :
7148  printf %s "(cached) " >&6
7149else $as_nop
7150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151/* end confdefs.h.  */
7152int i;
7153_ACEOF
7154if ac_fn_c_try_compile "$LINENO"
7155then :
7156  xorg_cv_cc_flag_unknown_warning_option=yes
7157else $as_nop
7158  xorg_cv_cc_flag_unknown_warning_option=no
7159fi
7160rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7161fi
7162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7163printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7164	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7165	CFLAGS="$xorg_testset_save_CFLAGS"
7166fi
7167
7168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7169	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7170		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7171	fi
7172	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7173	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7174printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7175if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7176then :
7177  printf %s "(cached) " >&6
7178else $as_nop
7179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180/* end confdefs.h.  */
7181int i;
7182_ACEOF
7183if ac_fn_c_try_compile "$LINENO"
7184then :
7185  xorg_cv_cc_flag_unused_command_line_argument=yes
7186else $as_nop
7187  xorg_cv_cc_flag_unused_command_line_argument=no
7188fi
7189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7190fi
7191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7192printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7193	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7194	CFLAGS="$xorg_testset_save_CFLAGS"
7195fi
7196
7197found="no"
7198
7199	if test $found = "no" ; then
7200		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7201			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7202		fi
7203
7204		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7205			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7206		fi
7207
7208		CFLAGS="$CFLAGS -Wlogical-op"
7209
7210		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7211printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7212		cacheid=xorg_cv_cc_flag__Wlogical_op
7213		if eval test \${$cacheid+y}
7214then :
7215  printf %s "(cached) " >&6
7216else $as_nop
7217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218/* end confdefs.h.  */
7219int i;
7220int
7221main (void)
7222{
7223
7224  ;
7225  return 0;
7226}
7227_ACEOF
7228if ac_fn_c_try_link "$LINENO"
7229then :
7230  eval $cacheid=yes
7231else $as_nop
7232  eval $cacheid=no
7233fi
7234rm -f core conftest.err conftest.$ac_objext conftest.beam \
7235    conftest$ac_exeext conftest.$ac_ext
7236fi
7237
7238
7239		CFLAGS="$xorg_testset_save_CFLAGS"
7240
7241		eval supported=\$$cacheid
7242		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7243printf "%s\n" "$supported" >&6; }
7244		if test "$supported" = "yes" ; then
7245			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7246			found="yes"
7247		fi
7248	fi
7249
7250
7251
7252# These are currently disabled because they are noisy.  They will be enabled
7253# in the future once the codebase is sufficiently modernized to silence
7254# them.  For now, I don't want them to drown out the other warnings.
7255# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7256# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7257# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7258
7259# Turn some warnings into errors, so we don't accidently get successful builds
7260# when there are problems that should be fixed.
7261
7262if test "x$SELECTIVE_WERROR" = "xyes" ; then
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276xorg_testset_save_CFLAGS="$CFLAGS"
7277
7278if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7279	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7280	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7281printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7282if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7283then :
7284  printf %s "(cached) " >&6
7285else $as_nop
7286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287/* end confdefs.h.  */
7288int i;
7289_ACEOF
7290if ac_fn_c_try_compile "$LINENO"
7291then :
7292  xorg_cv_cc_flag_unknown_warning_option=yes
7293else $as_nop
7294  xorg_cv_cc_flag_unknown_warning_option=no
7295fi
7296rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7297fi
7298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7299printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7300	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7301	CFLAGS="$xorg_testset_save_CFLAGS"
7302fi
7303
7304if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7305	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7306		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7307	fi
7308	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7309	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7310printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7311if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7312then :
7313  printf %s "(cached) " >&6
7314else $as_nop
7315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316/* end confdefs.h.  */
7317int i;
7318_ACEOF
7319if ac_fn_c_try_compile "$LINENO"
7320then :
7321  xorg_cv_cc_flag_unused_command_line_argument=yes
7322else $as_nop
7323  xorg_cv_cc_flag_unused_command_line_argument=no
7324fi
7325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7326fi
7327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7328printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7329	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7330	CFLAGS="$xorg_testset_save_CFLAGS"
7331fi
7332
7333found="no"
7334
7335	if test $found = "no" ; then
7336		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7337			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338		fi
7339
7340		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7341			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7342		fi
7343
7344		CFLAGS="$CFLAGS -Werror=implicit"
7345
7346		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7347printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7348		cacheid=xorg_cv_cc_flag__Werror_implicit
7349		if eval test \${$cacheid+y}
7350then :
7351  printf %s "(cached) " >&6
7352else $as_nop
7353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354/* end confdefs.h.  */
7355int i;
7356int
7357main (void)
7358{
7359
7360  ;
7361  return 0;
7362}
7363_ACEOF
7364if ac_fn_c_try_link "$LINENO"
7365then :
7366  eval $cacheid=yes
7367else $as_nop
7368  eval $cacheid=no
7369fi
7370rm -f core conftest.err conftest.$ac_objext conftest.beam \
7371    conftest$ac_exeext conftest.$ac_ext
7372fi
7373
7374
7375		CFLAGS="$xorg_testset_save_CFLAGS"
7376
7377		eval supported=\$$cacheid
7378		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7379printf "%s\n" "$supported" >&6; }
7380		if test "$supported" = "yes" ; then
7381			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7382			found="yes"
7383		fi
7384	fi
7385
7386	if test $found = "no" ; then
7387		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7388			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7389		fi
7390
7391		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7392			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7393		fi
7394
7395		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7396
7397		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7398printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7399		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7400		if eval test \${$cacheid+y}
7401then :
7402  printf %s "(cached) " >&6
7403else $as_nop
7404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405/* end confdefs.h.  */
7406int i;
7407int
7408main (void)
7409{
7410
7411  ;
7412  return 0;
7413}
7414_ACEOF
7415if ac_fn_c_try_link "$LINENO"
7416then :
7417  eval $cacheid=yes
7418else $as_nop
7419  eval $cacheid=no
7420fi
7421rm -f core conftest.err conftest.$ac_objext conftest.beam \
7422    conftest$ac_exeext conftest.$ac_ext
7423fi
7424
7425
7426		CFLAGS="$xorg_testset_save_CFLAGS"
7427
7428		eval supported=\$$cacheid
7429		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7430printf "%s\n" "$supported" >&6; }
7431		if test "$supported" = "yes" ; then
7432			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7433			found="yes"
7434		fi
7435	fi
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451xorg_testset_save_CFLAGS="$CFLAGS"
7452
7453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7454	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7455	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7456printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7457if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7458then :
7459  printf %s "(cached) " >&6
7460else $as_nop
7461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462/* end confdefs.h.  */
7463int i;
7464_ACEOF
7465if ac_fn_c_try_compile "$LINENO"
7466then :
7467  xorg_cv_cc_flag_unknown_warning_option=yes
7468else $as_nop
7469  xorg_cv_cc_flag_unknown_warning_option=no
7470fi
7471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7472fi
7473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7474printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7475	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7476	CFLAGS="$xorg_testset_save_CFLAGS"
7477fi
7478
7479if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7480	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7481		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7482	fi
7483	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7484	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7485printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7486if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7487then :
7488  printf %s "(cached) " >&6
7489else $as_nop
7490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491/* end confdefs.h.  */
7492int i;
7493_ACEOF
7494if ac_fn_c_try_compile "$LINENO"
7495then :
7496  xorg_cv_cc_flag_unused_command_line_argument=yes
7497else $as_nop
7498  xorg_cv_cc_flag_unused_command_line_argument=no
7499fi
7500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7501fi
7502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7503printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7504	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7505	CFLAGS="$xorg_testset_save_CFLAGS"
7506fi
7507
7508found="no"
7509
7510	if test $found = "no" ; then
7511		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7512			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7513		fi
7514
7515		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7516			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7517		fi
7518
7519		CFLAGS="$CFLAGS -Werror=nonnull"
7520
7521		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7522printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7523		cacheid=xorg_cv_cc_flag__Werror_nonnull
7524		if eval test \${$cacheid+y}
7525then :
7526  printf %s "(cached) " >&6
7527else $as_nop
7528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529/* end confdefs.h.  */
7530int i;
7531int
7532main (void)
7533{
7534
7535  ;
7536  return 0;
7537}
7538_ACEOF
7539if ac_fn_c_try_link "$LINENO"
7540then :
7541  eval $cacheid=yes
7542else $as_nop
7543  eval $cacheid=no
7544fi
7545rm -f core conftest.err conftest.$ac_objext conftest.beam \
7546    conftest$ac_exeext conftest.$ac_ext
7547fi
7548
7549
7550		CFLAGS="$xorg_testset_save_CFLAGS"
7551
7552		eval supported=\$$cacheid
7553		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7554printf "%s\n" "$supported" >&6; }
7555		if test "$supported" = "yes" ; then
7556			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7557			found="yes"
7558		fi
7559	fi
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575xorg_testset_save_CFLAGS="$CFLAGS"
7576
7577if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7578	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7579	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7580printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7581if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7582then :
7583  printf %s "(cached) " >&6
7584else $as_nop
7585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586/* end confdefs.h.  */
7587int i;
7588_ACEOF
7589if ac_fn_c_try_compile "$LINENO"
7590then :
7591  xorg_cv_cc_flag_unknown_warning_option=yes
7592else $as_nop
7593  xorg_cv_cc_flag_unknown_warning_option=no
7594fi
7595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7596fi
7597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7598printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7599	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7600	CFLAGS="$xorg_testset_save_CFLAGS"
7601fi
7602
7603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7604	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7605		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7606	fi
7607	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7608	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7609printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7610if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7611then :
7612  printf %s "(cached) " >&6
7613else $as_nop
7614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615/* end confdefs.h.  */
7616int i;
7617_ACEOF
7618if ac_fn_c_try_compile "$LINENO"
7619then :
7620  xorg_cv_cc_flag_unused_command_line_argument=yes
7621else $as_nop
7622  xorg_cv_cc_flag_unused_command_line_argument=no
7623fi
7624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7625fi
7626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7627printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7628	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7629	CFLAGS="$xorg_testset_save_CFLAGS"
7630fi
7631
7632found="no"
7633
7634	if test $found = "no" ; then
7635		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7636			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7637		fi
7638
7639		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7640			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7641		fi
7642
7643		CFLAGS="$CFLAGS -Werror=init-self"
7644
7645		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7646printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7647		cacheid=xorg_cv_cc_flag__Werror_init_self
7648		if eval test \${$cacheid+y}
7649then :
7650  printf %s "(cached) " >&6
7651else $as_nop
7652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653/* end confdefs.h.  */
7654int i;
7655int
7656main (void)
7657{
7658
7659  ;
7660  return 0;
7661}
7662_ACEOF
7663if ac_fn_c_try_link "$LINENO"
7664then :
7665  eval $cacheid=yes
7666else $as_nop
7667  eval $cacheid=no
7668fi
7669rm -f core conftest.err conftest.$ac_objext conftest.beam \
7670    conftest$ac_exeext conftest.$ac_ext
7671fi
7672
7673
7674		CFLAGS="$xorg_testset_save_CFLAGS"
7675
7676		eval supported=\$$cacheid
7677		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7678printf "%s\n" "$supported" >&6; }
7679		if test "$supported" = "yes" ; then
7680			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7681			found="yes"
7682		fi
7683	fi
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699xorg_testset_save_CFLAGS="$CFLAGS"
7700
7701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7702	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7703	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7704printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7705if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7706then :
7707  printf %s "(cached) " >&6
7708else $as_nop
7709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710/* end confdefs.h.  */
7711int i;
7712_ACEOF
7713if ac_fn_c_try_compile "$LINENO"
7714then :
7715  xorg_cv_cc_flag_unknown_warning_option=yes
7716else $as_nop
7717  xorg_cv_cc_flag_unknown_warning_option=no
7718fi
7719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7720fi
7721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7722printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7723	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7724	CFLAGS="$xorg_testset_save_CFLAGS"
7725fi
7726
7727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7728	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7729		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7730	fi
7731	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7732	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7733printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7734if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7735then :
7736  printf %s "(cached) " >&6
7737else $as_nop
7738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739/* end confdefs.h.  */
7740int i;
7741_ACEOF
7742if ac_fn_c_try_compile "$LINENO"
7743then :
7744  xorg_cv_cc_flag_unused_command_line_argument=yes
7745else $as_nop
7746  xorg_cv_cc_flag_unused_command_line_argument=no
7747fi
7748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7749fi
7750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7751printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7752	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7753	CFLAGS="$xorg_testset_save_CFLAGS"
7754fi
7755
7756found="no"
7757
7758	if test $found = "no" ; then
7759		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7760			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7761		fi
7762
7763		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7764			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7765		fi
7766
7767		CFLAGS="$CFLAGS -Werror=main"
7768
7769		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7770printf %s "checking if $CC supports -Werror=main... " >&6; }
7771		cacheid=xorg_cv_cc_flag__Werror_main
7772		if eval test \${$cacheid+y}
7773then :
7774  printf %s "(cached) " >&6
7775else $as_nop
7776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777/* end confdefs.h.  */
7778int i;
7779int
7780main (void)
7781{
7782
7783  ;
7784  return 0;
7785}
7786_ACEOF
7787if ac_fn_c_try_link "$LINENO"
7788then :
7789  eval $cacheid=yes
7790else $as_nop
7791  eval $cacheid=no
7792fi
7793rm -f core conftest.err conftest.$ac_objext conftest.beam \
7794    conftest$ac_exeext conftest.$ac_ext
7795fi
7796
7797
7798		CFLAGS="$xorg_testset_save_CFLAGS"
7799
7800		eval supported=\$$cacheid
7801		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7802printf "%s\n" "$supported" >&6; }
7803		if test "$supported" = "yes" ; then
7804			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7805			found="yes"
7806		fi
7807	fi
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823xorg_testset_save_CFLAGS="$CFLAGS"
7824
7825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7826	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7827	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7828printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7829if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7830then :
7831  printf %s "(cached) " >&6
7832else $as_nop
7833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834/* end confdefs.h.  */
7835int i;
7836_ACEOF
7837if ac_fn_c_try_compile "$LINENO"
7838then :
7839  xorg_cv_cc_flag_unknown_warning_option=yes
7840else $as_nop
7841  xorg_cv_cc_flag_unknown_warning_option=no
7842fi
7843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7844fi
7845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7846printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7847	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7848	CFLAGS="$xorg_testset_save_CFLAGS"
7849fi
7850
7851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7852	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7853		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7854	fi
7855	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7856	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7857printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7858if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7859then :
7860  printf %s "(cached) " >&6
7861else $as_nop
7862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863/* end confdefs.h.  */
7864int i;
7865_ACEOF
7866if ac_fn_c_try_compile "$LINENO"
7867then :
7868  xorg_cv_cc_flag_unused_command_line_argument=yes
7869else $as_nop
7870  xorg_cv_cc_flag_unused_command_line_argument=no
7871fi
7872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7873fi
7874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7875printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7876	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7877	CFLAGS="$xorg_testset_save_CFLAGS"
7878fi
7879
7880found="no"
7881
7882	if test $found = "no" ; then
7883		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7884			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7885		fi
7886
7887		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7888			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7889		fi
7890
7891		CFLAGS="$CFLAGS -Werror=missing-braces"
7892
7893		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7894printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7895		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7896		if eval test \${$cacheid+y}
7897then :
7898  printf %s "(cached) " >&6
7899else $as_nop
7900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901/* end confdefs.h.  */
7902int i;
7903int
7904main (void)
7905{
7906
7907  ;
7908  return 0;
7909}
7910_ACEOF
7911if ac_fn_c_try_link "$LINENO"
7912then :
7913  eval $cacheid=yes
7914else $as_nop
7915  eval $cacheid=no
7916fi
7917rm -f core conftest.err conftest.$ac_objext conftest.beam \
7918    conftest$ac_exeext conftest.$ac_ext
7919fi
7920
7921
7922		CFLAGS="$xorg_testset_save_CFLAGS"
7923
7924		eval supported=\$$cacheid
7925		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7926printf "%s\n" "$supported" >&6; }
7927		if test "$supported" = "yes" ; then
7928			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7929			found="yes"
7930		fi
7931	fi
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947xorg_testset_save_CFLAGS="$CFLAGS"
7948
7949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7950	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7951	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7952printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7953if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7954then :
7955  printf %s "(cached) " >&6
7956else $as_nop
7957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958/* end confdefs.h.  */
7959int i;
7960_ACEOF
7961if ac_fn_c_try_compile "$LINENO"
7962then :
7963  xorg_cv_cc_flag_unknown_warning_option=yes
7964else $as_nop
7965  xorg_cv_cc_flag_unknown_warning_option=no
7966fi
7967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7968fi
7969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7970printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7971	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7972	CFLAGS="$xorg_testset_save_CFLAGS"
7973fi
7974
7975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7976	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7977		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7978	fi
7979	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7980	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7981printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7982if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7983then :
7984  printf %s "(cached) " >&6
7985else $as_nop
7986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987/* end confdefs.h.  */
7988int i;
7989_ACEOF
7990if ac_fn_c_try_compile "$LINENO"
7991then :
7992  xorg_cv_cc_flag_unused_command_line_argument=yes
7993else $as_nop
7994  xorg_cv_cc_flag_unused_command_line_argument=no
7995fi
7996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7997fi
7998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7999printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8000	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8001	CFLAGS="$xorg_testset_save_CFLAGS"
8002fi
8003
8004found="no"
8005
8006	if test $found = "no" ; then
8007		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8008			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8009		fi
8010
8011		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8012			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8013		fi
8014
8015		CFLAGS="$CFLAGS -Werror=sequence-point"
8016
8017		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8018printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8019		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8020		if eval test \${$cacheid+y}
8021then :
8022  printf %s "(cached) " >&6
8023else $as_nop
8024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025/* end confdefs.h.  */
8026int i;
8027int
8028main (void)
8029{
8030
8031  ;
8032  return 0;
8033}
8034_ACEOF
8035if ac_fn_c_try_link "$LINENO"
8036then :
8037  eval $cacheid=yes
8038else $as_nop
8039  eval $cacheid=no
8040fi
8041rm -f core conftest.err conftest.$ac_objext conftest.beam \
8042    conftest$ac_exeext conftest.$ac_ext
8043fi
8044
8045
8046		CFLAGS="$xorg_testset_save_CFLAGS"
8047
8048		eval supported=\$$cacheid
8049		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8050printf "%s\n" "$supported" >&6; }
8051		if test "$supported" = "yes" ; then
8052			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8053			found="yes"
8054		fi
8055	fi
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071xorg_testset_save_CFLAGS="$CFLAGS"
8072
8073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8074	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8075	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8076printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8077if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8078then :
8079  printf %s "(cached) " >&6
8080else $as_nop
8081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082/* end confdefs.h.  */
8083int i;
8084_ACEOF
8085if ac_fn_c_try_compile "$LINENO"
8086then :
8087  xorg_cv_cc_flag_unknown_warning_option=yes
8088else $as_nop
8089  xorg_cv_cc_flag_unknown_warning_option=no
8090fi
8091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8092fi
8093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8094printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8095	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8096	CFLAGS="$xorg_testset_save_CFLAGS"
8097fi
8098
8099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8100	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8101		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8102	fi
8103	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8104	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8105printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8106if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8107then :
8108  printf %s "(cached) " >&6
8109else $as_nop
8110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111/* end confdefs.h.  */
8112int i;
8113_ACEOF
8114if ac_fn_c_try_compile "$LINENO"
8115then :
8116  xorg_cv_cc_flag_unused_command_line_argument=yes
8117else $as_nop
8118  xorg_cv_cc_flag_unused_command_line_argument=no
8119fi
8120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8121fi
8122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8123printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8124	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8125	CFLAGS="$xorg_testset_save_CFLAGS"
8126fi
8127
8128found="no"
8129
8130	if test $found = "no" ; then
8131		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8132			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8133		fi
8134
8135		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8136			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8137		fi
8138
8139		CFLAGS="$CFLAGS -Werror=return-type"
8140
8141		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8142printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8143		cacheid=xorg_cv_cc_flag__Werror_return_type
8144		if eval test \${$cacheid+y}
8145then :
8146  printf %s "(cached) " >&6
8147else $as_nop
8148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149/* end confdefs.h.  */
8150int i;
8151int
8152main (void)
8153{
8154
8155  ;
8156  return 0;
8157}
8158_ACEOF
8159if ac_fn_c_try_link "$LINENO"
8160then :
8161  eval $cacheid=yes
8162else $as_nop
8163  eval $cacheid=no
8164fi
8165rm -f core conftest.err conftest.$ac_objext conftest.beam \
8166    conftest$ac_exeext conftest.$ac_ext
8167fi
8168
8169
8170		CFLAGS="$xorg_testset_save_CFLAGS"
8171
8172		eval supported=\$$cacheid
8173		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8174printf "%s\n" "$supported" >&6; }
8175		if test "$supported" = "yes" ; then
8176			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8177			found="yes"
8178		fi
8179	fi
8180
8181	if test $found = "no" ; then
8182		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8183			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8184		fi
8185
8186		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8187			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8188		fi
8189
8190		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8191
8192		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8193printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8194		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8195		if eval test \${$cacheid+y}
8196then :
8197  printf %s "(cached) " >&6
8198else $as_nop
8199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200/* end confdefs.h.  */
8201int i;
8202int
8203main (void)
8204{
8205
8206  ;
8207  return 0;
8208}
8209_ACEOF
8210if ac_fn_c_try_link "$LINENO"
8211then :
8212  eval $cacheid=yes
8213else $as_nop
8214  eval $cacheid=no
8215fi
8216rm -f core conftest.err conftest.$ac_objext conftest.beam \
8217    conftest$ac_exeext conftest.$ac_ext
8218fi
8219
8220
8221		CFLAGS="$xorg_testset_save_CFLAGS"
8222
8223		eval supported=\$$cacheid
8224		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8225printf "%s\n" "$supported" >&6; }
8226		if test "$supported" = "yes" ; then
8227			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8228			found="yes"
8229		fi
8230	fi
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246xorg_testset_save_CFLAGS="$CFLAGS"
8247
8248if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8249	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8250	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8251printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8252if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8253then :
8254  printf %s "(cached) " >&6
8255else $as_nop
8256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257/* end confdefs.h.  */
8258int i;
8259_ACEOF
8260if ac_fn_c_try_compile "$LINENO"
8261then :
8262  xorg_cv_cc_flag_unknown_warning_option=yes
8263else $as_nop
8264  xorg_cv_cc_flag_unknown_warning_option=no
8265fi
8266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8267fi
8268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8269printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8270	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8271	CFLAGS="$xorg_testset_save_CFLAGS"
8272fi
8273
8274if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8275	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8276		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8277	fi
8278	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8279	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8280printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8281if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8282then :
8283  printf %s "(cached) " >&6
8284else $as_nop
8285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286/* end confdefs.h.  */
8287int i;
8288_ACEOF
8289if ac_fn_c_try_compile "$LINENO"
8290then :
8291  xorg_cv_cc_flag_unused_command_line_argument=yes
8292else $as_nop
8293  xorg_cv_cc_flag_unused_command_line_argument=no
8294fi
8295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8296fi
8297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8298printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8299	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8300	CFLAGS="$xorg_testset_save_CFLAGS"
8301fi
8302
8303found="no"
8304
8305	if test $found = "no" ; then
8306		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8307			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8308		fi
8309
8310		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8311			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8312		fi
8313
8314		CFLAGS="$CFLAGS -Werror=trigraphs"
8315
8316		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8317printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8318		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8319		if eval test \${$cacheid+y}
8320then :
8321  printf %s "(cached) " >&6
8322else $as_nop
8323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324/* end confdefs.h.  */
8325int i;
8326int
8327main (void)
8328{
8329
8330  ;
8331  return 0;
8332}
8333_ACEOF
8334if ac_fn_c_try_link "$LINENO"
8335then :
8336  eval $cacheid=yes
8337else $as_nop
8338  eval $cacheid=no
8339fi
8340rm -f core conftest.err conftest.$ac_objext conftest.beam \
8341    conftest$ac_exeext conftest.$ac_ext
8342fi
8343
8344
8345		CFLAGS="$xorg_testset_save_CFLAGS"
8346
8347		eval supported=\$$cacheid
8348		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8349printf "%s\n" "$supported" >&6; }
8350		if test "$supported" = "yes" ; then
8351			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8352			found="yes"
8353		fi
8354	fi
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370xorg_testset_save_CFLAGS="$CFLAGS"
8371
8372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8373	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8374	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8375printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8376if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8377then :
8378  printf %s "(cached) " >&6
8379else $as_nop
8380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381/* end confdefs.h.  */
8382int i;
8383_ACEOF
8384if ac_fn_c_try_compile "$LINENO"
8385then :
8386  xorg_cv_cc_flag_unknown_warning_option=yes
8387else $as_nop
8388  xorg_cv_cc_flag_unknown_warning_option=no
8389fi
8390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8391fi
8392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8393printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8394	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8395	CFLAGS="$xorg_testset_save_CFLAGS"
8396fi
8397
8398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8399	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8400		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8401	fi
8402	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8403	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8404printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8405if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8406then :
8407  printf %s "(cached) " >&6
8408else $as_nop
8409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410/* end confdefs.h.  */
8411int i;
8412_ACEOF
8413if ac_fn_c_try_compile "$LINENO"
8414then :
8415  xorg_cv_cc_flag_unused_command_line_argument=yes
8416else $as_nop
8417  xorg_cv_cc_flag_unused_command_line_argument=no
8418fi
8419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8420fi
8421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8422printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8423	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8424	CFLAGS="$xorg_testset_save_CFLAGS"
8425fi
8426
8427found="no"
8428
8429	if test $found = "no" ; then
8430		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8431			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8432		fi
8433
8434		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8435			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8436		fi
8437
8438		CFLAGS="$CFLAGS -Werror=array-bounds"
8439
8440		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8441printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8442		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8443		if eval test \${$cacheid+y}
8444then :
8445  printf %s "(cached) " >&6
8446else $as_nop
8447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8448/* end confdefs.h.  */
8449int i;
8450int
8451main (void)
8452{
8453
8454  ;
8455  return 0;
8456}
8457_ACEOF
8458if ac_fn_c_try_link "$LINENO"
8459then :
8460  eval $cacheid=yes
8461else $as_nop
8462  eval $cacheid=no
8463fi
8464rm -f core conftest.err conftest.$ac_objext conftest.beam \
8465    conftest$ac_exeext conftest.$ac_ext
8466fi
8467
8468
8469		CFLAGS="$xorg_testset_save_CFLAGS"
8470
8471		eval supported=\$$cacheid
8472		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8473printf "%s\n" "$supported" >&6; }
8474		if test "$supported" = "yes" ; then
8475			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8476			found="yes"
8477		fi
8478	fi
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494xorg_testset_save_CFLAGS="$CFLAGS"
8495
8496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8497	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8498	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8499printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8500if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8501then :
8502  printf %s "(cached) " >&6
8503else $as_nop
8504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505/* end confdefs.h.  */
8506int i;
8507_ACEOF
8508if ac_fn_c_try_compile "$LINENO"
8509then :
8510  xorg_cv_cc_flag_unknown_warning_option=yes
8511else $as_nop
8512  xorg_cv_cc_flag_unknown_warning_option=no
8513fi
8514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8515fi
8516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8517printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8518	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8519	CFLAGS="$xorg_testset_save_CFLAGS"
8520fi
8521
8522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8523	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8524		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8525	fi
8526	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8527	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8528printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8529if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8530then :
8531  printf %s "(cached) " >&6
8532else $as_nop
8533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534/* end confdefs.h.  */
8535int i;
8536_ACEOF
8537if ac_fn_c_try_compile "$LINENO"
8538then :
8539  xorg_cv_cc_flag_unused_command_line_argument=yes
8540else $as_nop
8541  xorg_cv_cc_flag_unused_command_line_argument=no
8542fi
8543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8544fi
8545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8546printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8547	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8548	CFLAGS="$xorg_testset_save_CFLAGS"
8549fi
8550
8551found="no"
8552
8553	if test $found = "no" ; then
8554		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8555			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8556		fi
8557
8558		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8559			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8560		fi
8561
8562		CFLAGS="$CFLAGS -Werror=write-strings"
8563
8564		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8565printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8566		cacheid=xorg_cv_cc_flag__Werror_write_strings
8567		if eval test \${$cacheid+y}
8568then :
8569  printf %s "(cached) " >&6
8570else $as_nop
8571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572/* end confdefs.h.  */
8573int i;
8574int
8575main (void)
8576{
8577
8578  ;
8579  return 0;
8580}
8581_ACEOF
8582if ac_fn_c_try_link "$LINENO"
8583then :
8584  eval $cacheid=yes
8585else $as_nop
8586  eval $cacheid=no
8587fi
8588rm -f core conftest.err conftest.$ac_objext conftest.beam \
8589    conftest$ac_exeext conftest.$ac_ext
8590fi
8591
8592
8593		CFLAGS="$xorg_testset_save_CFLAGS"
8594
8595		eval supported=\$$cacheid
8596		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8597printf "%s\n" "$supported" >&6; }
8598		if test "$supported" = "yes" ; then
8599			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8600			found="yes"
8601		fi
8602	fi
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618xorg_testset_save_CFLAGS="$CFLAGS"
8619
8620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8621	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8622	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8623printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8624if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8625then :
8626  printf %s "(cached) " >&6
8627else $as_nop
8628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629/* end confdefs.h.  */
8630int i;
8631_ACEOF
8632if ac_fn_c_try_compile "$LINENO"
8633then :
8634  xorg_cv_cc_flag_unknown_warning_option=yes
8635else $as_nop
8636  xorg_cv_cc_flag_unknown_warning_option=no
8637fi
8638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8639fi
8640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8641printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8642	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8643	CFLAGS="$xorg_testset_save_CFLAGS"
8644fi
8645
8646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8647	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8648		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8649	fi
8650	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8651	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8652printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8653if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8654then :
8655  printf %s "(cached) " >&6
8656else $as_nop
8657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658/* end confdefs.h.  */
8659int i;
8660_ACEOF
8661if ac_fn_c_try_compile "$LINENO"
8662then :
8663  xorg_cv_cc_flag_unused_command_line_argument=yes
8664else $as_nop
8665  xorg_cv_cc_flag_unused_command_line_argument=no
8666fi
8667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8668fi
8669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8670printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8671	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8672	CFLAGS="$xorg_testset_save_CFLAGS"
8673fi
8674
8675found="no"
8676
8677	if test $found = "no" ; then
8678		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8679			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8680		fi
8681
8682		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8683			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8684		fi
8685
8686		CFLAGS="$CFLAGS -Werror=address"
8687
8688		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8689printf %s "checking if $CC supports -Werror=address... " >&6; }
8690		cacheid=xorg_cv_cc_flag__Werror_address
8691		if eval test \${$cacheid+y}
8692then :
8693  printf %s "(cached) " >&6
8694else $as_nop
8695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696/* end confdefs.h.  */
8697int i;
8698int
8699main (void)
8700{
8701
8702  ;
8703  return 0;
8704}
8705_ACEOF
8706if ac_fn_c_try_link "$LINENO"
8707then :
8708  eval $cacheid=yes
8709else $as_nop
8710  eval $cacheid=no
8711fi
8712rm -f core conftest.err conftest.$ac_objext conftest.beam \
8713    conftest$ac_exeext conftest.$ac_ext
8714fi
8715
8716
8717		CFLAGS="$xorg_testset_save_CFLAGS"
8718
8719		eval supported=\$$cacheid
8720		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8721printf "%s\n" "$supported" >&6; }
8722		if test "$supported" = "yes" ; then
8723			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8724			found="yes"
8725		fi
8726	fi
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742xorg_testset_save_CFLAGS="$CFLAGS"
8743
8744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8745	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8746	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8747printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8748if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8749then :
8750  printf %s "(cached) " >&6
8751else $as_nop
8752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753/* end confdefs.h.  */
8754int i;
8755_ACEOF
8756if ac_fn_c_try_compile "$LINENO"
8757then :
8758  xorg_cv_cc_flag_unknown_warning_option=yes
8759else $as_nop
8760  xorg_cv_cc_flag_unknown_warning_option=no
8761fi
8762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8763fi
8764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8765printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8766	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8767	CFLAGS="$xorg_testset_save_CFLAGS"
8768fi
8769
8770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8771	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8772		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8773	fi
8774	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8775	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8776printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8777if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8778then :
8779  printf %s "(cached) " >&6
8780else $as_nop
8781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782/* end confdefs.h.  */
8783int i;
8784_ACEOF
8785if ac_fn_c_try_compile "$LINENO"
8786then :
8787  xorg_cv_cc_flag_unused_command_line_argument=yes
8788else $as_nop
8789  xorg_cv_cc_flag_unused_command_line_argument=no
8790fi
8791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8792fi
8793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8794printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8795	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8796	CFLAGS="$xorg_testset_save_CFLAGS"
8797fi
8798
8799found="no"
8800
8801	if test $found = "no" ; then
8802		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8803			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8804		fi
8805
8806		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8807			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8808		fi
8809
8810		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8811
8812		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8813printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8814		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8815		if eval test \${$cacheid+y}
8816then :
8817  printf %s "(cached) " >&6
8818else $as_nop
8819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820/* end confdefs.h.  */
8821int i;
8822int
8823main (void)
8824{
8825
8826  ;
8827  return 0;
8828}
8829_ACEOF
8830if ac_fn_c_try_link "$LINENO"
8831then :
8832  eval $cacheid=yes
8833else $as_nop
8834  eval $cacheid=no
8835fi
8836rm -f core conftest.err conftest.$ac_objext conftest.beam \
8837    conftest$ac_exeext conftest.$ac_ext
8838fi
8839
8840
8841		CFLAGS="$xorg_testset_save_CFLAGS"
8842
8843		eval supported=\$$cacheid
8844		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8845printf "%s\n" "$supported" >&6; }
8846		if test "$supported" = "yes" ; then
8847			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8848			found="yes"
8849		fi
8850	fi
8851
8852	if test $found = "no" ; then
8853		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8854			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8855		fi
8856
8857		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8858			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8859		fi
8860
8861		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8862
8863		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8864printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8865		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8866		if eval test \${$cacheid+y}
8867then :
8868  printf %s "(cached) " >&6
8869else $as_nop
8870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871/* end confdefs.h.  */
8872int i;
8873int
8874main (void)
8875{
8876
8877  ;
8878  return 0;
8879}
8880_ACEOF
8881if ac_fn_c_try_link "$LINENO"
8882then :
8883  eval $cacheid=yes
8884else $as_nop
8885  eval $cacheid=no
8886fi
8887rm -f core conftest.err conftest.$ac_objext conftest.beam \
8888    conftest$ac_exeext conftest.$ac_ext
8889fi
8890
8891
8892		CFLAGS="$xorg_testset_save_CFLAGS"
8893
8894		eval supported=\$$cacheid
8895		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8896printf "%s\n" "$supported" >&6; }
8897		if test "$supported" = "yes" ; then
8898			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8899			found="yes"
8900		fi
8901	fi
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917xorg_testset_save_CFLAGS="$CFLAGS"
8918
8919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8920	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8921	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8922printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8923if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8924then :
8925  printf %s "(cached) " >&6
8926else $as_nop
8927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928/* end confdefs.h.  */
8929int i;
8930_ACEOF
8931if ac_fn_c_try_compile "$LINENO"
8932then :
8933  xorg_cv_cc_flag_unknown_warning_option=yes
8934else $as_nop
8935  xorg_cv_cc_flag_unknown_warning_option=no
8936fi
8937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8938fi
8939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8940printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8941	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8942	CFLAGS="$xorg_testset_save_CFLAGS"
8943fi
8944
8945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8946	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8947		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8948	fi
8949	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8950	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8951printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8952if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8953then :
8954  printf %s "(cached) " >&6
8955else $as_nop
8956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957/* end confdefs.h.  */
8958int i;
8959_ACEOF
8960if ac_fn_c_try_compile "$LINENO"
8961then :
8962  xorg_cv_cc_flag_unused_command_line_argument=yes
8963else $as_nop
8964  xorg_cv_cc_flag_unused_command_line_argument=no
8965fi
8966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8967fi
8968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8969printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8970	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8971	CFLAGS="$xorg_testset_save_CFLAGS"
8972fi
8973
8974found="no"
8975
8976	if test $found = "no" ; then
8977		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8978			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8979		fi
8980
8981		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8982			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8983		fi
8984
8985		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8986
8987		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8988printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8989		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8990		if eval test \${$cacheid+y}
8991then :
8992  printf %s "(cached) " >&6
8993else $as_nop
8994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995/* end confdefs.h.  */
8996int i;
8997int
8998main (void)
8999{
9000
9001  ;
9002  return 0;
9003}
9004_ACEOF
9005if ac_fn_c_try_link "$LINENO"
9006then :
9007  eval $cacheid=yes
9008else $as_nop
9009  eval $cacheid=no
9010fi
9011rm -f core conftest.err conftest.$ac_objext conftest.beam \
9012    conftest$ac_exeext conftest.$ac_ext
9013fi
9014
9015
9016		CFLAGS="$xorg_testset_save_CFLAGS"
9017
9018		eval supported=\$$cacheid
9019		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9020printf "%s\n" "$supported" >&6; }
9021		if test "$supported" = "yes" ; then
9022			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9023			found="yes"
9024		fi
9025	fi
9026
9027 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9028else
9029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
9030printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044xorg_testset_save_CFLAGS="$CFLAGS"
9045
9046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9047	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9048	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9049printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9050if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9051then :
9052  printf %s "(cached) " >&6
9053else $as_nop
9054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055/* end confdefs.h.  */
9056int i;
9057_ACEOF
9058if ac_fn_c_try_compile "$LINENO"
9059then :
9060  xorg_cv_cc_flag_unknown_warning_option=yes
9061else $as_nop
9062  xorg_cv_cc_flag_unknown_warning_option=no
9063fi
9064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9065fi
9066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9067printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9068	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9069	CFLAGS="$xorg_testset_save_CFLAGS"
9070fi
9071
9072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9073	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9074		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9075	fi
9076	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9077	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9078printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9079if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9080then :
9081  printf %s "(cached) " >&6
9082else $as_nop
9083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084/* end confdefs.h.  */
9085int i;
9086_ACEOF
9087if ac_fn_c_try_compile "$LINENO"
9088then :
9089  xorg_cv_cc_flag_unused_command_line_argument=yes
9090else $as_nop
9091  xorg_cv_cc_flag_unused_command_line_argument=no
9092fi
9093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9094fi
9095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9096printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9097	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9098	CFLAGS="$xorg_testset_save_CFLAGS"
9099fi
9100
9101found="no"
9102
9103	if test $found = "no" ; then
9104		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9105			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9106		fi
9107
9108		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9109			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9110		fi
9111
9112		CFLAGS="$CFLAGS -Wimplicit"
9113
9114		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9115printf %s "checking if $CC supports -Wimplicit... " >&6; }
9116		cacheid=xorg_cv_cc_flag__Wimplicit
9117		if eval test \${$cacheid+y}
9118then :
9119  printf %s "(cached) " >&6
9120else $as_nop
9121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122/* end confdefs.h.  */
9123int i;
9124int
9125main (void)
9126{
9127
9128  ;
9129  return 0;
9130}
9131_ACEOF
9132if ac_fn_c_try_link "$LINENO"
9133then :
9134  eval $cacheid=yes
9135else $as_nop
9136  eval $cacheid=no
9137fi
9138rm -f core conftest.err conftest.$ac_objext conftest.beam \
9139    conftest$ac_exeext conftest.$ac_ext
9140fi
9141
9142
9143		CFLAGS="$xorg_testset_save_CFLAGS"
9144
9145		eval supported=\$$cacheid
9146		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9147printf "%s\n" "$supported" >&6; }
9148		if test "$supported" = "yes" ; then
9149			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9150			found="yes"
9151		fi
9152	fi
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168xorg_testset_save_CFLAGS="$CFLAGS"
9169
9170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9171	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9172	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9173printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9174if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9175then :
9176  printf %s "(cached) " >&6
9177else $as_nop
9178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179/* end confdefs.h.  */
9180int i;
9181_ACEOF
9182if ac_fn_c_try_compile "$LINENO"
9183then :
9184  xorg_cv_cc_flag_unknown_warning_option=yes
9185else $as_nop
9186  xorg_cv_cc_flag_unknown_warning_option=no
9187fi
9188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9189fi
9190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9191printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9192	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9193	CFLAGS="$xorg_testset_save_CFLAGS"
9194fi
9195
9196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9197	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9198		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9199	fi
9200	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9201	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9202printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9203if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9204then :
9205  printf %s "(cached) " >&6
9206else $as_nop
9207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208/* end confdefs.h.  */
9209int i;
9210_ACEOF
9211if ac_fn_c_try_compile "$LINENO"
9212then :
9213  xorg_cv_cc_flag_unused_command_line_argument=yes
9214else $as_nop
9215  xorg_cv_cc_flag_unused_command_line_argument=no
9216fi
9217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9218fi
9219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9220printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9221	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9222	CFLAGS="$xorg_testset_save_CFLAGS"
9223fi
9224
9225found="no"
9226
9227	if test $found = "no" ; then
9228		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9229			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9230		fi
9231
9232		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9233			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9234		fi
9235
9236		CFLAGS="$CFLAGS -Wnonnull"
9237
9238		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9239printf %s "checking if $CC supports -Wnonnull... " >&6; }
9240		cacheid=xorg_cv_cc_flag__Wnonnull
9241		if eval test \${$cacheid+y}
9242then :
9243  printf %s "(cached) " >&6
9244else $as_nop
9245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246/* end confdefs.h.  */
9247int i;
9248int
9249main (void)
9250{
9251
9252  ;
9253  return 0;
9254}
9255_ACEOF
9256if ac_fn_c_try_link "$LINENO"
9257then :
9258  eval $cacheid=yes
9259else $as_nop
9260  eval $cacheid=no
9261fi
9262rm -f core conftest.err conftest.$ac_objext conftest.beam \
9263    conftest$ac_exeext conftest.$ac_ext
9264fi
9265
9266
9267		CFLAGS="$xorg_testset_save_CFLAGS"
9268
9269		eval supported=\$$cacheid
9270		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9271printf "%s\n" "$supported" >&6; }
9272		if test "$supported" = "yes" ; then
9273			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9274			found="yes"
9275		fi
9276	fi
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292xorg_testset_save_CFLAGS="$CFLAGS"
9293
9294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9295	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9296	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9297printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9298if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9299then :
9300  printf %s "(cached) " >&6
9301else $as_nop
9302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303/* end confdefs.h.  */
9304int i;
9305_ACEOF
9306if ac_fn_c_try_compile "$LINENO"
9307then :
9308  xorg_cv_cc_flag_unknown_warning_option=yes
9309else $as_nop
9310  xorg_cv_cc_flag_unknown_warning_option=no
9311fi
9312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9313fi
9314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9315printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9316	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9317	CFLAGS="$xorg_testset_save_CFLAGS"
9318fi
9319
9320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9321	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9322		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9323	fi
9324	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9325	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9326printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9327if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9328then :
9329  printf %s "(cached) " >&6
9330else $as_nop
9331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332/* end confdefs.h.  */
9333int i;
9334_ACEOF
9335if ac_fn_c_try_compile "$LINENO"
9336then :
9337  xorg_cv_cc_flag_unused_command_line_argument=yes
9338else $as_nop
9339  xorg_cv_cc_flag_unused_command_line_argument=no
9340fi
9341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9342fi
9343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9344printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9345	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9346	CFLAGS="$xorg_testset_save_CFLAGS"
9347fi
9348
9349found="no"
9350
9351	if test $found = "no" ; then
9352		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9353			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9354		fi
9355
9356		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9357			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9358		fi
9359
9360		CFLAGS="$CFLAGS -Winit-self"
9361
9362		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9363printf %s "checking if $CC supports -Winit-self... " >&6; }
9364		cacheid=xorg_cv_cc_flag__Winit_self
9365		if eval test \${$cacheid+y}
9366then :
9367  printf %s "(cached) " >&6
9368else $as_nop
9369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370/* end confdefs.h.  */
9371int i;
9372int
9373main (void)
9374{
9375
9376  ;
9377  return 0;
9378}
9379_ACEOF
9380if ac_fn_c_try_link "$LINENO"
9381then :
9382  eval $cacheid=yes
9383else $as_nop
9384  eval $cacheid=no
9385fi
9386rm -f core conftest.err conftest.$ac_objext conftest.beam \
9387    conftest$ac_exeext conftest.$ac_ext
9388fi
9389
9390
9391		CFLAGS="$xorg_testset_save_CFLAGS"
9392
9393		eval supported=\$$cacheid
9394		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9395printf "%s\n" "$supported" >&6; }
9396		if test "$supported" = "yes" ; then
9397			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9398			found="yes"
9399		fi
9400	fi
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416xorg_testset_save_CFLAGS="$CFLAGS"
9417
9418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9419	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9420	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9421printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9422if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9423then :
9424  printf %s "(cached) " >&6
9425else $as_nop
9426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427/* end confdefs.h.  */
9428int i;
9429_ACEOF
9430if ac_fn_c_try_compile "$LINENO"
9431then :
9432  xorg_cv_cc_flag_unknown_warning_option=yes
9433else $as_nop
9434  xorg_cv_cc_flag_unknown_warning_option=no
9435fi
9436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9437fi
9438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9439printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9440	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9441	CFLAGS="$xorg_testset_save_CFLAGS"
9442fi
9443
9444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9445	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9446		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9447	fi
9448	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9449	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9450printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9451if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9452then :
9453  printf %s "(cached) " >&6
9454else $as_nop
9455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456/* end confdefs.h.  */
9457int i;
9458_ACEOF
9459if ac_fn_c_try_compile "$LINENO"
9460then :
9461  xorg_cv_cc_flag_unused_command_line_argument=yes
9462else $as_nop
9463  xorg_cv_cc_flag_unused_command_line_argument=no
9464fi
9465rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9466fi
9467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9468printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9469	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9470	CFLAGS="$xorg_testset_save_CFLAGS"
9471fi
9472
9473found="no"
9474
9475	if test $found = "no" ; then
9476		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9477			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9478		fi
9479
9480		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9481			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9482		fi
9483
9484		CFLAGS="$CFLAGS -Wmain"
9485
9486		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9487printf %s "checking if $CC supports -Wmain... " >&6; }
9488		cacheid=xorg_cv_cc_flag__Wmain
9489		if eval test \${$cacheid+y}
9490then :
9491  printf %s "(cached) " >&6
9492else $as_nop
9493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9494/* end confdefs.h.  */
9495int i;
9496int
9497main (void)
9498{
9499
9500  ;
9501  return 0;
9502}
9503_ACEOF
9504if ac_fn_c_try_link "$LINENO"
9505then :
9506  eval $cacheid=yes
9507else $as_nop
9508  eval $cacheid=no
9509fi
9510rm -f core conftest.err conftest.$ac_objext conftest.beam \
9511    conftest$ac_exeext conftest.$ac_ext
9512fi
9513
9514
9515		CFLAGS="$xorg_testset_save_CFLAGS"
9516
9517		eval supported=\$$cacheid
9518		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9519printf "%s\n" "$supported" >&6; }
9520		if test "$supported" = "yes" ; then
9521			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9522			found="yes"
9523		fi
9524	fi
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540xorg_testset_save_CFLAGS="$CFLAGS"
9541
9542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9543	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9544	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9545printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9546if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9547then :
9548  printf %s "(cached) " >&6
9549else $as_nop
9550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551/* end confdefs.h.  */
9552int i;
9553_ACEOF
9554if ac_fn_c_try_compile "$LINENO"
9555then :
9556  xorg_cv_cc_flag_unknown_warning_option=yes
9557else $as_nop
9558  xorg_cv_cc_flag_unknown_warning_option=no
9559fi
9560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9561fi
9562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9563printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9564	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9565	CFLAGS="$xorg_testset_save_CFLAGS"
9566fi
9567
9568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9569	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9570		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9571	fi
9572	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9573	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9574printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9575if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9576then :
9577  printf %s "(cached) " >&6
9578else $as_nop
9579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580/* end confdefs.h.  */
9581int i;
9582_ACEOF
9583if ac_fn_c_try_compile "$LINENO"
9584then :
9585  xorg_cv_cc_flag_unused_command_line_argument=yes
9586else $as_nop
9587  xorg_cv_cc_flag_unused_command_line_argument=no
9588fi
9589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9590fi
9591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9592printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9593	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9594	CFLAGS="$xorg_testset_save_CFLAGS"
9595fi
9596
9597found="no"
9598
9599	if test $found = "no" ; then
9600		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9601			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9602		fi
9603
9604		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9605			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9606		fi
9607
9608		CFLAGS="$CFLAGS -Wmissing-braces"
9609
9610		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9611printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9612		cacheid=xorg_cv_cc_flag__Wmissing_braces
9613		if eval test \${$cacheid+y}
9614then :
9615  printf %s "(cached) " >&6
9616else $as_nop
9617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618/* end confdefs.h.  */
9619int i;
9620int
9621main (void)
9622{
9623
9624  ;
9625  return 0;
9626}
9627_ACEOF
9628if ac_fn_c_try_link "$LINENO"
9629then :
9630  eval $cacheid=yes
9631else $as_nop
9632  eval $cacheid=no
9633fi
9634rm -f core conftest.err conftest.$ac_objext conftest.beam \
9635    conftest$ac_exeext conftest.$ac_ext
9636fi
9637
9638
9639		CFLAGS="$xorg_testset_save_CFLAGS"
9640
9641		eval supported=\$$cacheid
9642		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9643printf "%s\n" "$supported" >&6; }
9644		if test "$supported" = "yes" ; then
9645			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9646			found="yes"
9647		fi
9648	fi
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664xorg_testset_save_CFLAGS="$CFLAGS"
9665
9666if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9667	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9668	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9669printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9670if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9671then :
9672  printf %s "(cached) " >&6
9673else $as_nop
9674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675/* end confdefs.h.  */
9676int i;
9677_ACEOF
9678if ac_fn_c_try_compile "$LINENO"
9679then :
9680  xorg_cv_cc_flag_unknown_warning_option=yes
9681else $as_nop
9682  xorg_cv_cc_flag_unknown_warning_option=no
9683fi
9684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9685fi
9686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9687printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9688	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9689	CFLAGS="$xorg_testset_save_CFLAGS"
9690fi
9691
9692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9693	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9694		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695	fi
9696	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9697	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9698printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9699if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9700then :
9701  printf %s "(cached) " >&6
9702else $as_nop
9703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704/* end confdefs.h.  */
9705int i;
9706_ACEOF
9707if ac_fn_c_try_compile "$LINENO"
9708then :
9709  xorg_cv_cc_flag_unused_command_line_argument=yes
9710else $as_nop
9711  xorg_cv_cc_flag_unused_command_line_argument=no
9712fi
9713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9714fi
9715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9716printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9717	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9718	CFLAGS="$xorg_testset_save_CFLAGS"
9719fi
9720
9721found="no"
9722
9723	if test $found = "no" ; then
9724		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9725			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9726		fi
9727
9728		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9729			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9730		fi
9731
9732		CFLAGS="$CFLAGS -Wsequence-point"
9733
9734		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9735printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9736		cacheid=xorg_cv_cc_flag__Wsequence_point
9737		if eval test \${$cacheid+y}
9738then :
9739  printf %s "(cached) " >&6
9740else $as_nop
9741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742/* end confdefs.h.  */
9743int i;
9744int
9745main (void)
9746{
9747
9748  ;
9749  return 0;
9750}
9751_ACEOF
9752if ac_fn_c_try_link "$LINENO"
9753then :
9754  eval $cacheid=yes
9755else $as_nop
9756  eval $cacheid=no
9757fi
9758rm -f core conftest.err conftest.$ac_objext conftest.beam \
9759    conftest$ac_exeext conftest.$ac_ext
9760fi
9761
9762
9763		CFLAGS="$xorg_testset_save_CFLAGS"
9764
9765		eval supported=\$$cacheid
9766		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9767printf "%s\n" "$supported" >&6; }
9768		if test "$supported" = "yes" ; then
9769			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9770			found="yes"
9771		fi
9772	fi
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788xorg_testset_save_CFLAGS="$CFLAGS"
9789
9790if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9791	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9792	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9793printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9794if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9795then :
9796  printf %s "(cached) " >&6
9797else $as_nop
9798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799/* end confdefs.h.  */
9800int i;
9801_ACEOF
9802if ac_fn_c_try_compile "$LINENO"
9803then :
9804  xorg_cv_cc_flag_unknown_warning_option=yes
9805else $as_nop
9806  xorg_cv_cc_flag_unknown_warning_option=no
9807fi
9808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9809fi
9810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9811printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9812	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9813	CFLAGS="$xorg_testset_save_CFLAGS"
9814fi
9815
9816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9817	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9818		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9819	fi
9820	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9821	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9822printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9823if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9824then :
9825  printf %s "(cached) " >&6
9826else $as_nop
9827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828/* end confdefs.h.  */
9829int i;
9830_ACEOF
9831if ac_fn_c_try_compile "$LINENO"
9832then :
9833  xorg_cv_cc_flag_unused_command_line_argument=yes
9834else $as_nop
9835  xorg_cv_cc_flag_unused_command_line_argument=no
9836fi
9837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9838fi
9839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9840printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9841	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9842	CFLAGS="$xorg_testset_save_CFLAGS"
9843fi
9844
9845found="no"
9846
9847	if test $found = "no" ; then
9848		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9849			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9850		fi
9851
9852		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9853			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9854		fi
9855
9856		CFLAGS="$CFLAGS -Wreturn-type"
9857
9858		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9859printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9860		cacheid=xorg_cv_cc_flag__Wreturn_type
9861		if eval test \${$cacheid+y}
9862then :
9863  printf %s "(cached) " >&6
9864else $as_nop
9865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866/* end confdefs.h.  */
9867int i;
9868int
9869main (void)
9870{
9871
9872  ;
9873  return 0;
9874}
9875_ACEOF
9876if ac_fn_c_try_link "$LINENO"
9877then :
9878  eval $cacheid=yes
9879else $as_nop
9880  eval $cacheid=no
9881fi
9882rm -f core conftest.err conftest.$ac_objext conftest.beam \
9883    conftest$ac_exeext conftest.$ac_ext
9884fi
9885
9886
9887		CFLAGS="$xorg_testset_save_CFLAGS"
9888
9889		eval supported=\$$cacheid
9890		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9891printf "%s\n" "$supported" >&6; }
9892		if test "$supported" = "yes" ; then
9893			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9894			found="yes"
9895		fi
9896	fi
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912xorg_testset_save_CFLAGS="$CFLAGS"
9913
9914if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9915	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9916	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9917printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9918if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9919then :
9920  printf %s "(cached) " >&6
9921else $as_nop
9922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923/* end confdefs.h.  */
9924int i;
9925_ACEOF
9926if ac_fn_c_try_compile "$LINENO"
9927then :
9928  xorg_cv_cc_flag_unknown_warning_option=yes
9929else $as_nop
9930  xorg_cv_cc_flag_unknown_warning_option=no
9931fi
9932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9933fi
9934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9935printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9936	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9937	CFLAGS="$xorg_testset_save_CFLAGS"
9938fi
9939
9940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9941	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9942		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9943	fi
9944	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9945	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9946printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9947if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9948then :
9949  printf %s "(cached) " >&6
9950else $as_nop
9951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952/* end confdefs.h.  */
9953int i;
9954_ACEOF
9955if ac_fn_c_try_compile "$LINENO"
9956then :
9957  xorg_cv_cc_flag_unused_command_line_argument=yes
9958else $as_nop
9959  xorg_cv_cc_flag_unused_command_line_argument=no
9960fi
9961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9962fi
9963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9964printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9965	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9966	CFLAGS="$xorg_testset_save_CFLAGS"
9967fi
9968
9969found="no"
9970
9971	if test $found = "no" ; then
9972		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9973			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9974		fi
9975
9976		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9977			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9978		fi
9979
9980		CFLAGS="$CFLAGS -Wtrigraphs"
9981
9982		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9983printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9984		cacheid=xorg_cv_cc_flag__Wtrigraphs
9985		if eval test \${$cacheid+y}
9986then :
9987  printf %s "(cached) " >&6
9988else $as_nop
9989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990/* end confdefs.h.  */
9991int i;
9992int
9993main (void)
9994{
9995
9996  ;
9997  return 0;
9998}
9999_ACEOF
10000if ac_fn_c_try_link "$LINENO"
10001then :
10002  eval $cacheid=yes
10003else $as_nop
10004  eval $cacheid=no
10005fi
10006rm -f core conftest.err conftest.$ac_objext conftest.beam \
10007    conftest$ac_exeext conftest.$ac_ext
10008fi
10009
10010
10011		CFLAGS="$xorg_testset_save_CFLAGS"
10012
10013		eval supported=\$$cacheid
10014		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10015printf "%s\n" "$supported" >&6; }
10016		if test "$supported" = "yes" ; then
10017			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10018			found="yes"
10019		fi
10020	fi
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036xorg_testset_save_CFLAGS="$CFLAGS"
10037
10038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10039	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10040	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10041printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10042if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10043then :
10044  printf %s "(cached) " >&6
10045else $as_nop
10046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047/* end confdefs.h.  */
10048int i;
10049_ACEOF
10050if ac_fn_c_try_compile "$LINENO"
10051then :
10052  xorg_cv_cc_flag_unknown_warning_option=yes
10053else $as_nop
10054  xorg_cv_cc_flag_unknown_warning_option=no
10055fi
10056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10057fi
10058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10059printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10060	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10061	CFLAGS="$xorg_testset_save_CFLAGS"
10062fi
10063
10064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10065	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10066		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10067	fi
10068	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10069	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10070printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10071if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10072then :
10073  printf %s "(cached) " >&6
10074else $as_nop
10075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076/* end confdefs.h.  */
10077int i;
10078_ACEOF
10079if ac_fn_c_try_compile "$LINENO"
10080then :
10081  xorg_cv_cc_flag_unused_command_line_argument=yes
10082else $as_nop
10083  xorg_cv_cc_flag_unused_command_line_argument=no
10084fi
10085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10086fi
10087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10088printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10089	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10090	CFLAGS="$xorg_testset_save_CFLAGS"
10091fi
10092
10093found="no"
10094
10095	if test $found = "no" ; then
10096		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10097			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10098		fi
10099
10100		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10101			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10102		fi
10103
10104		CFLAGS="$CFLAGS -Warray-bounds"
10105
10106		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10107printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10108		cacheid=xorg_cv_cc_flag__Warray_bounds
10109		if eval test \${$cacheid+y}
10110then :
10111  printf %s "(cached) " >&6
10112else $as_nop
10113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114/* end confdefs.h.  */
10115int i;
10116int
10117main (void)
10118{
10119
10120  ;
10121  return 0;
10122}
10123_ACEOF
10124if ac_fn_c_try_link "$LINENO"
10125then :
10126  eval $cacheid=yes
10127else $as_nop
10128  eval $cacheid=no
10129fi
10130rm -f core conftest.err conftest.$ac_objext conftest.beam \
10131    conftest$ac_exeext conftest.$ac_ext
10132fi
10133
10134
10135		CFLAGS="$xorg_testset_save_CFLAGS"
10136
10137		eval supported=\$$cacheid
10138		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10139printf "%s\n" "$supported" >&6; }
10140		if test "$supported" = "yes" ; then
10141			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10142			found="yes"
10143		fi
10144	fi
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160xorg_testset_save_CFLAGS="$CFLAGS"
10161
10162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10163	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10164	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10165printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10166if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10167then :
10168  printf %s "(cached) " >&6
10169else $as_nop
10170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171/* end confdefs.h.  */
10172int i;
10173_ACEOF
10174if ac_fn_c_try_compile "$LINENO"
10175then :
10176  xorg_cv_cc_flag_unknown_warning_option=yes
10177else $as_nop
10178  xorg_cv_cc_flag_unknown_warning_option=no
10179fi
10180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10181fi
10182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10183printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10184	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10185	CFLAGS="$xorg_testset_save_CFLAGS"
10186fi
10187
10188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10189	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10190		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10191	fi
10192	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10193	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10194printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10195if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10196then :
10197  printf %s "(cached) " >&6
10198else $as_nop
10199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200/* end confdefs.h.  */
10201int i;
10202_ACEOF
10203if ac_fn_c_try_compile "$LINENO"
10204then :
10205  xorg_cv_cc_flag_unused_command_line_argument=yes
10206else $as_nop
10207  xorg_cv_cc_flag_unused_command_line_argument=no
10208fi
10209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10210fi
10211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10212printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10213	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10214	CFLAGS="$xorg_testset_save_CFLAGS"
10215fi
10216
10217found="no"
10218
10219	if test $found = "no" ; then
10220		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10221			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10222		fi
10223
10224		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10225			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10226		fi
10227
10228		CFLAGS="$CFLAGS -Wwrite-strings"
10229
10230		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10231printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10232		cacheid=xorg_cv_cc_flag__Wwrite_strings
10233		if eval test \${$cacheid+y}
10234then :
10235  printf %s "(cached) " >&6
10236else $as_nop
10237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238/* end confdefs.h.  */
10239int i;
10240int
10241main (void)
10242{
10243
10244  ;
10245  return 0;
10246}
10247_ACEOF
10248if ac_fn_c_try_link "$LINENO"
10249then :
10250  eval $cacheid=yes
10251else $as_nop
10252  eval $cacheid=no
10253fi
10254rm -f core conftest.err conftest.$ac_objext conftest.beam \
10255    conftest$ac_exeext conftest.$ac_ext
10256fi
10257
10258
10259		CFLAGS="$xorg_testset_save_CFLAGS"
10260
10261		eval supported=\$$cacheid
10262		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10263printf "%s\n" "$supported" >&6; }
10264		if test "$supported" = "yes" ; then
10265			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10266			found="yes"
10267		fi
10268	fi
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284xorg_testset_save_CFLAGS="$CFLAGS"
10285
10286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10287	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10288	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10289printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10290if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10291then :
10292  printf %s "(cached) " >&6
10293else $as_nop
10294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295/* end confdefs.h.  */
10296int i;
10297_ACEOF
10298if ac_fn_c_try_compile "$LINENO"
10299then :
10300  xorg_cv_cc_flag_unknown_warning_option=yes
10301else $as_nop
10302  xorg_cv_cc_flag_unknown_warning_option=no
10303fi
10304rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10305fi
10306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10307printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10308	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10309	CFLAGS="$xorg_testset_save_CFLAGS"
10310fi
10311
10312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10313	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10314		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10315	fi
10316	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10317	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10318printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10319if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10320then :
10321  printf %s "(cached) " >&6
10322else $as_nop
10323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324/* end confdefs.h.  */
10325int i;
10326_ACEOF
10327if ac_fn_c_try_compile "$LINENO"
10328then :
10329  xorg_cv_cc_flag_unused_command_line_argument=yes
10330else $as_nop
10331  xorg_cv_cc_flag_unused_command_line_argument=no
10332fi
10333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10334fi
10335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10336printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10337	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10338	CFLAGS="$xorg_testset_save_CFLAGS"
10339fi
10340
10341found="no"
10342
10343	if test $found = "no" ; then
10344		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10346		fi
10347
10348		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10350		fi
10351
10352		CFLAGS="$CFLAGS -Waddress"
10353
10354		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10355printf %s "checking if $CC supports -Waddress... " >&6; }
10356		cacheid=xorg_cv_cc_flag__Waddress
10357		if eval test \${$cacheid+y}
10358then :
10359  printf %s "(cached) " >&6
10360else $as_nop
10361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362/* end confdefs.h.  */
10363int i;
10364int
10365main (void)
10366{
10367
10368  ;
10369  return 0;
10370}
10371_ACEOF
10372if ac_fn_c_try_link "$LINENO"
10373then :
10374  eval $cacheid=yes
10375else $as_nop
10376  eval $cacheid=no
10377fi
10378rm -f core conftest.err conftest.$ac_objext conftest.beam \
10379    conftest$ac_exeext conftest.$ac_ext
10380fi
10381
10382
10383		CFLAGS="$xorg_testset_save_CFLAGS"
10384
10385		eval supported=\$$cacheid
10386		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10387printf "%s\n" "$supported" >&6; }
10388		if test "$supported" = "yes" ; then
10389			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10390			found="yes"
10391		fi
10392	fi
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408xorg_testset_save_CFLAGS="$CFLAGS"
10409
10410if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10411	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10412	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10413printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10414if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10415then :
10416  printf %s "(cached) " >&6
10417else $as_nop
10418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419/* end confdefs.h.  */
10420int i;
10421_ACEOF
10422if ac_fn_c_try_compile "$LINENO"
10423then :
10424  xorg_cv_cc_flag_unknown_warning_option=yes
10425else $as_nop
10426  xorg_cv_cc_flag_unknown_warning_option=no
10427fi
10428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10429fi
10430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10431printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10432	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10433	CFLAGS="$xorg_testset_save_CFLAGS"
10434fi
10435
10436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10437	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10438		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10439	fi
10440	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10441	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10442printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10443if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10444then :
10445  printf %s "(cached) " >&6
10446else $as_nop
10447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448/* end confdefs.h.  */
10449int i;
10450_ACEOF
10451if ac_fn_c_try_compile "$LINENO"
10452then :
10453  xorg_cv_cc_flag_unused_command_line_argument=yes
10454else $as_nop
10455  xorg_cv_cc_flag_unused_command_line_argument=no
10456fi
10457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10458fi
10459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10460printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10461	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10462	CFLAGS="$xorg_testset_save_CFLAGS"
10463fi
10464
10465found="no"
10466
10467	if test $found = "no" ; then
10468		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10469			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10470		fi
10471
10472		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10473			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10474		fi
10475
10476		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10477
10478		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10479printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10480		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10481		if eval test \${$cacheid+y}
10482then :
10483  printf %s "(cached) " >&6
10484else $as_nop
10485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486/* end confdefs.h.  */
10487int i;
10488int
10489main (void)
10490{
10491
10492  ;
10493  return 0;
10494}
10495_ACEOF
10496if ac_fn_c_try_link "$LINENO"
10497then :
10498  eval $cacheid=yes
10499else $as_nop
10500  eval $cacheid=no
10501fi
10502rm -f core conftest.err conftest.$ac_objext conftest.beam \
10503    conftest$ac_exeext conftest.$ac_ext
10504fi
10505
10506
10507		CFLAGS="$xorg_testset_save_CFLAGS"
10508
10509		eval supported=\$$cacheid
10510		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10511printf "%s\n" "$supported" >&6; }
10512		if test "$supported" = "yes" ; then
10513			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10514			found="yes"
10515		fi
10516	fi
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532xorg_testset_save_CFLAGS="$CFLAGS"
10533
10534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10535	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10536	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10537printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10538if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10539then :
10540  printf %s "(cached) " >&6
10541else $as_nop
10542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543/* end confdefs.h.  */
10544int i;
10545_ACEOF
10546if ac_fn_c_try_compile "$LINENO"
10547then :
10548  xorg_cv_cc_flag_unknown_warning_option=yes
10549else $as_nop
10550  xorg_cv_cc_flag_unknown_warning_option=no
10551fi
10552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10553fi
10554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10555printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10556	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10557	CFLAGS="$xorg_testset_save_CFLAGS"
10558fi
10559
10560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10561	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10562		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10563	fi
10564	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10565	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10566printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10567if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10568then :
10569  printf %s "(cached) " >&6
10570else $as_nop
10571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572/* end confdefs.h.  */
10573int i;
10574_ACEOF
10575if ac_fn_c_try_compile "$LINENO"
10576then :
10577  xorg_cv_cc_flag_unused_command_line_argument=yes
10578else $as_nop
10579  xorg_cv_cc_flag_unused_command_line_argument=no
10580fi
10581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10582fi
10583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10584printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10585	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10586	CFLAGS="$xorg_testset_save_CFLAGS"
10587fi
10588
10589found="no"
10590
10591	if test $found = "no" ; then
10592		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10593			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10594		fi
10595
10596		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10597			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10598		fi
10599
10600		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10601
10602		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10603printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10604		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10605		if eval test \${$cacheid+y}
10606then :
10607  printf %s "(cached) " >&6
10608else $as_nop
10609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610/* end confdefs.h.  */
10611int i;
10612int
10613main (void)
10614{
10615
10616  ;
10617  return 0;
10618}
10619_ACEOF
10620if ac_fn_c_try_link "$LINENO"
10621then :
10622  eval $cacheid=yes
10623else $as_nop
10624  eval $cacheid=no
10625fi
10626rm -f core conftest.err conftest.$ac_objext conftest.beam \
10627    conftest$ac_exeext conftest.$ac_ext
10628fi
10629
10630
10631		CFLAGS="$xorg_testset_save_CFLAGS"
10632
10633		eval supported=\$$cacheid
10634		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10635printf "%s\n" "$supported" >&6; }
10636		if test "$supported" = "yes" ; then
10637			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10638			found="yes"
10639		fi
10640	fi
10641
10642
10643fi
10644
10645
10646
10647
10648
10649
10650
10651		CWARNFLAGS="$BASE_CFLAGS"
10652		if  test "x$GCC" = xyes ; then
10653		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10654		fi
10655
10656
10657
10658
10659
10660
10661
10662
10663# Check whether --enable-strict-compilation was given.
10664if test ${enable_strict_compilation+y}
10665then :
10666  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10667else $as_nop
10668  STRICT_COMPILE=no
10669fi
10670
10671
10672
10673
10674
10675
10676STRICT_CFLAGS=""
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690xorg_testset_save_CFLAGS="$CFLAGS"
10691
10692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10693	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10694	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10695printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10696if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10697then :
10698  printf %s "(cached) " >&6
10699else $as_nop
10700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701/* end confdefs.h.  */
10702int i;
10703_ACEOF
10704if ac_fn_c_try_compile "$LINENO"
10705then :
10706  xorg_cv_cc_flag_unknown_warning_option=yes
10707else $as_nop
10708  xorg_cv_cc_flag_unknown_warning_option=no
10709fi
10710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10711fi
10712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10713printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10714	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10715	CFLAGS="$xorg_testset_save_CFLAGS"
10716fi
10717
10718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10719	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10720		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10721	fi
10722	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10723	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10724printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10725if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10726then :
10727  printf %s "(cached) " >&6
10728else $as_nop
10729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730/* end confdefs.h.  */
10731int i;
10732_ACEOF
10733if ac_fn_c_try_compile "$LINENO"
10734then :
10735  xorg_cv_cc_flag_unused_command_line_argument=yes
10736else $as_nop
10737  xorg_cv_cc_flag_unused_command_line_argument=no
10738fi
10739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10740fi
10741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10742printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10743	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10744	CFLAGS="$xorg_testset_save_CFLAGS"
10745fi
10746
10747found="no"
10748
10749	if test $found = "no" ; then
10750		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10751			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10752		fi
10753
10754		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10755			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10756		fi
10757
10758		CFLAGS="$CFLAGS -pedantic"
10759
10760		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10761printf %s "checking if $CC supports -pedantic... " >&6; }
10762		cacheid=xorg_cv_cc_flag__pedantic
10763		if eval test \${$cacheid+y}
10764then :
10765  printf %s "(cached) " >&6
10766else $as_nop
10767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768/* end confdefs.h.  */
10769int i;
10770int
10771main (void)
10772{
10773
10774  ;
10775  return 0;
10776}
10777_ACEOF
10778if ac_fn_c_try_link "$LINENO"
10779then :
10780  eval $cacheid=yes
10781else $as_nop
10782  eval $cacheid=no
10783fi
10784rm -f core conftest.err conftest.$ac_objext conftest.beam \
10785    conftest$ac_exeext conftest.$ac_ext
10786fi
10787
10788
10789		CFLAGS="$xorg_testset_save_CFLAGS"
10790
10791		eval supported=\$$cacheid
10792		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10793printf "%s\n" "$supported" >&6; }
10794		if test "$supported" = "yes" ; then
10795			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10796			found="yes"
10797		fi
10798	fi
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814xorg_testset_save_CFLAGS="$CFLAGS"
10815
10816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10817	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10818	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10819printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10820if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10821then :
10822  printf %s "(cached) " >&6
10823else $as_nop
10824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825/* end confdefs.h.  */
10826int i;
10827_ACEOF
10828if ac_fn_c_try_compile "$LINENO"
10829then :
10830  xorg_cv_cc_flag_unknown_warning_option=yes
10831else $as_nop
10832  xorg_cv_cc_flag_unknown_warning_option=no
10833fi
10834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10835fi
10836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10837printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10838	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10839	CFLAGS="$xorg_testset_save_CFLAGS"
10840fi
10841
10842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10843	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10844		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10845	fi
10846	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10847	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10848printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10849if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10850then :
10851  printf %s "(cached) " >&6
10852else $as_nop
10853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854/* end confdefs.h.  */
10855int i;
10856_ACEOF
10857if ac_fn_c_try_compile "$LINENO"
10858then :
10859  xorg_cv_cc_flag_unused_command_line_argument=yes
10860else $as_nop
10861  xorg_cv_cc_flag_unused_command_line_argument=no
10862fi
10863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10864fi
10865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10866printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10867	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10868	CFLAGS="$xorg_testset_save_CFLAGS"
10869fi
10870
10871found="no"
10872
10873	if test $found = "no" ; then
10874		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10875			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10876		fi
10877
10878		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10879			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10880		fi
10881
10882		CFLAGS="$CFLAGS -Werror"
10883
10884		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10885printf %s "checking if $CC supports -Werror... " >&6; }
10886		cacheid=xorg_cv_cc_flag__Werror
10887		if eval test \${$cacheid+y}
10888then :
10889  printf %s "(cached) " >&6
10890else $as_nop
10891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892/* end confdefs.h.  */
10893int i;
10894int
10895main (void)
10896{
10897
10898  ;
10899  return 0;
10900}
10901_ACEOF
10902if ac_fn_c_try_link "$LINENO"
10903then :
10904  eval $cacheid=yes
10905else $as_nop
10906  eval $cacheid=no
10907fi
10908rm -f core conftest.err conftest.$ac_objext conftest.beam \
10909    conftest$ac_exeext conftest.$ac_ext
10910fi
10911
10912
10913		CFLAGS="$xorg_testset_save_CFLAGS"
10914
10915		eval supported=\$$cacheid
10916		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10917printf "%s\n" "$supported" >&6; }
10918		if test "$supported" = "yes" ; then
10919			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10920			found="yes"
10921		fi
10922	fi
10923
10924	if test $found = "no" ; then
10925		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10926			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10927		fi
10928
10929		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10930			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10931		fi
10932
10933		CFLAGS="$CFLAGS -errwarn"
10934
10935		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10936printf %s "checking if $CC supports -errwarn... " >&6; }
10937		cacheid=xorg_cv_cc_flag__errwarn
10938		if eval test \${$cacheid+y}
10939then :
10940  printf %s "(cached) " >&6
10941else $as_nop
10942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943/* end confdefs.h.  */
10944int i;
10945int
10946main (void)
10947{
10948
10949  ;
10950  return 0;
10951}
10952_ACEOF
10953if ac_fn_c_try_link "$LINENO"
10954then :
10955  eval $cacheid=yes
10956else $as_nop
10957  eval $cacheid=no
10958fi
10959rm -f core conftest.err conftest.$ac_objext conftest.beam \
10960    conftest$ac_exeext conftest.$ac_ext
10961fi
10962
10963
10964		CFLAGS="$xorg_testset_save_CFLAGS"
10965
10966		eval supported=\$$cacheid
10967		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10968printf "%s\n" "$supported" >&6; }
10969		if test "$supported" = "yes" ; then
10970			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10971			found="yes"
10972		fi
10973	fi
10974
10975
10976
10977# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10978# activate it with -Werror, so we add it here explicitly.
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992xorg_testset_save_CFLAGS="$CFLAGS"
10993
10994if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10995	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10996	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10997printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10998if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10999then :
11000  printf %s "(cached) " >&6
11001else $as_nop
11002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003/* end confdefs.h.  */
11004int i;
11005_ACEOF
11006if ac_fn_c_try_compile "$LINENO"
11007then :
11008  xorg_cv_cc_flag_unknown_warning_option=yes
11009else $as_nop
11010  xorg_cv_cc_flag_unknown_warning_option=no
11011fi
11012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11013fi
11014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11015printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11016	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11017	CFLAGS="$xorg_testset_save_CFLAGS"
11018fi
11019
11020if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11021	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11022		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11023	fi
11024	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11025	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11026printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11027if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11028then :
11029  printf %s "(cached) " >&6
11030else $as_nop
11031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032/* end confdefs.h.  */
11033int i;
11034_ACEOF
11035if ac_fn_c_try_compile "$LINENO"
11036then :
11037  xorg_cv_cc_flag_unused_command_line_argument=yes
11038else $as_nop
11039  xorg_cv_cc_flag_unused_command_line_argument=no
11040fi
11041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11042fi
11043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11044printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11045	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11046	CFLAGS="$xorg_testset_save_CFLAGS"
11047fi
11048
11049found="no"
11050
11051	if test $found = "no" ; then
11052		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11053			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11054		fi
11055
11056		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11057			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11058		fi
11059
11060		CFLAGS="$CFLAGS -Werror=attributes"
11061
11062		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11063printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11064		cacheid=xorg_cv_cc_flag__Werror_attributes
11065		if eval test \${$cacheid+y}
11066then :
11067  printf %s "(cached) " >&6
11068else $as_nop
11069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070/* end confdefs.h.  */
11071int i;
11072int
11073main (void)
11074{
11075
11076  ;
11077  return 0;
11078}
11079_ACEOF
11080if ac_fn_c_try_link "$LINENO"
11081then :
11082  eval $cacheid=yes
11083else $as_nop
11084  eval $cacheid=no
11085fi
11086rm -f core conftest.err conftest.$ac_objext conftest.beam \
11087    conftest$ac_exeext conftest.$ac_ext
11088fi
11089
11090
11091		CFLAGS="$xorg_testset_save_CFLAGS"
11092
11093		eval supported=\$$cacheid
11094		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11095printf "%s\n" "$supported" >&6; }
11096		if test "$supported" = "yes" ; then
11097			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11098			found="yes"
11099		fi
11100	fi
11101
11102
11103
11104if test "x$STRICT_COMPILE" = "xyes"; then
11105    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11106    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11107fi
11108
11109
11110
11111
11112
11113
11114cat >>confdefs.h <<_ACEOF
11115#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11116_ACEOF
11117
11118	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11119	if test "x$PVM" = "x"; then
11120		PVM="0"
11121	fi
11122
11123printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11124
11125	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11126	if test "x$PVP" = "x"; then
11127		PVP="0"
11128	fi
11129
11130printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11131
11132
11133
11134CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11135mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11136|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11137touch \$(top_srcdir)/ChangeLog; \
11138echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11139
11140
11141
11142
11143macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11144INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11145mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11146|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11147touch \$(top_srcdir)/INSTALL; \
11148echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11149
11150
11151
11152
11153
11154
11155case $host_os in
11156    solaris*)
11157        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11158        # check for a man page file found in later versions that use
11159        # traditional section numbers instead
11160        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11161printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11162if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11163then :
11164  printf %s "(cached) " >&6
11165else $as_nop
11166  test "$cross_compiling" = yes &&
11167  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11168if test -r "/usr/share/man/man7/attributes.7"; then
11169  ac_cv_file__usr_share_man_man7_attributes_7=yes
11170else
11171  ac_cv_file__usr_share_man_man7_attributes_7=no
11172fi
11173fi
11174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11175printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11176if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11177then :
11178  SYSV_MAN_SECTIONS=false
11179else $as_nop
11180  SYSV_MAN_SECTIONS=true
11181fi
11182
11183        ;;
11184    *) SYSV_MAN_SECTIONS=false ;;
11185esac
11186
11187if test x$APP_MAN_SUFFIX = x    ; then
11188    APP_MAN_SUFFIX=1
11189fi
11190if test x$APP_MAN_DIR = x    ; then
11191    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11192fi
11193
11194if test x$LIB_MAN_SUFFIX = x    ; then
11195    LIB_MAN_SUFFIX=3
11196fi
11197if test x$LIB_MAN_DIR = x    ; then
11198    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11199fi
11200
11201if test x$FILE_MAN_SUFFIX = x    ; then
11202    case $SYSV_MAN_SECTIONS in
11203	true)				FILE_MAN_SUFFIX=4  ;;
11204	*)				FILE_MAN_SUFFIX=5  ;;
11205    esac
11206fi
11207if test x$FILE_MAN_DIR = x    ; then
11208    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11209fi
11210
11211if test x$MISC_MAN_SUFFIX = x    ; then
11212    case $SYSV_MAN_SECTIONS in
11213	true)				MISC_MAN_SUFFIX=5  ;;
11214	*)				MISC_MAN_SUFFIX=7  ;;
11215    esac
11216fi
11217if test x$MISC_MAN_DIR = x    ; then
11218    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11219fi
11220
11221if test x$DRIVER_MAN_SUFFIX = x    ; then
11222    case $SYSV_MAN_SECTIONS in
11223	true)				DRIVER_MAN_SUFFIX=7  ;;
11224	*)				DRIVER_MAN_SUFFIX=4  ;;
11225    esac
11226fi
11227if test x$DRIVER_MAN_DIR = x    ; then
11228    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11229fi
11230
11231if test x$ADMIN_MAN_SUFFIX = x    ; then
11232    case $SYSV_MAN_SECTIONS in
11233	true)				ADMIN_MAN_SUFFIX=1m ;;
11234	*)				ADMIN_MAN_SUFFIX=8  ;;
11235    esac
11236fi
11237if test x$ADMIN_MAN_DIR = x    ; then
11238    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11239fi
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255XORG_MAN_PAGE="X Version 11"
11256
11257MAN_SUBSTS="\
11258	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11259	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11260	-e 's|__xservername__|Xorg|g' \
11261	-e 's|__xconfigfile__|xorg.conf|g' \
11262	-e 's|__projectroot__|\$(prefix)|g' \
11263	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11264	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11265	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11266	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11267	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11268	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11269	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11270
11271
11272
11273# Check whether --enable-silent-rules was given.
11274if test ${enable_silent_rules+y}
11275then :
11276  enableval=$enable_silent_rules;
11277fi
11278
11279case $enable_silent_rules in # (((
11280  yes) AM_DEFAULT_VERBOSITY=0;;
11281   no) AM_DEFAULT_VERBOSITY=1;;
11282    *) AM_DEFAULT_VERBOSITY=0;;
11283esac
11284am_make=${MAKE-make}
11285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11286printf %s "checking whether $am_make supports nested variables... " >&6; }
11287if test ${am_cv_make_support_nested_variables+y}
11288then :
11289  printf %s "(cached) " >&6
11290else $as_nop
11291  if printf "%s\n" 'TRUE=$(BAR$(V))
11292BAR0=false
11293BAR1=true
11294V=1
11295am__doit:
11296	@$(TRUE)
11297.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11298  am_cv_make_support_nested_variables=yes
11299else
11300  am_cv_make_support_nested_variables=no
11301fi
11302fi
11303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11304printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11305if test $am_cv_make_support_nested_variables = yes; then
11306    AM_V='$(V)'
11307  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11308else
11309  AM_V=$AM_DEFAULT_VERBOSITY
11310  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11311fi
11312AM_BACKSLASH='\'
11313
11314
11315
11316for ac_prog in 'bison -y' byacc
11317do
11318  # Extract the first word of "$ac_prog", so it can be a program name with args.
11319set dummy $ac_prog; ac_word=$2
11320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11321printf %s "checking for $ac_word... " >&6; }
11322if test ${ac_cv_prog_YACC+y}
11323then :
11324  printf %s "(cached) " >&6
11325else $as_nop
11326  if test -n "$YACC"; then
11327  ac_cv_prog_YACC="$YACC" # Let the user override the test.
11328else
11329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11330for as_dir in $PATH
11331do
11332  IFS=$as_save_IFS
11333  case $as_dir in #(((
11334    '') as_dir=./ ;;
11335    */) ;;
11336    *) as_dir=$as_dir/ ;;
11337  esac
11338    for ac_exec_ext in '' $ac_executable_extensions; do
11339  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11340    ac_cv_prog_YACC="$ac_prog"
11341    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11342    break 2
11343  fi
11344done
11345  done
11346IFS=$as_save_IFS
11347
11348fi
11349fi
11350YACC=$ac_cv_prog_YACC
11351if test -n "$YACC"; then
11352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11353printf "%s\n" "$YACC" >&6; }
11354else
11355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356printf "%s\n" "no" >&6; }
11357fi
11358
11359
11360  test -n "$YACC" && break
11361done
11362test -n "$YACC" || YACC="yacc"
11363
11364# Extract the first word of "$YACC", so it can be a program name with args.
11365set dummy $YACC; ac_word=$2
11366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11367printf %s "checking for $ac_word... " >&6; }
11368if test ${ac_cv_path_YACC_INST+y}
11369then :
11370  printf %s "(cached) " >&6
11371else $as_nop
11372  case $YACC_INST in
11373  [\\/]* | ?:[\\/]*)
11374  ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
11375  ;;
11376  *)
11377  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11378for as_dir in $PATH
11379do
11380  IFS=$as_save_IFS
11381  case $as_dir in #(((
11382    '') as_dir=./ ;;
11383    */) ;;
11384    *) as_dir=$as_dir/ ;;
11385  esac
11386    for ac_exec_ext in '' $ac_executable_extensions; do
11387  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11388    ac_cv_path_YACC_INST="$as_dir$ac_word$ac_exec_ext"
11389    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11390    break 2
11391  fi
11392done
11393  done
11394IFS=$as_save_IFS
11395
11396  ;;
11397esac
11398fi
11399YACC_INST=$ac_cv_path_YACC_INST
11400if test -n "$YACC_INST"; then
11401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
11402printf "%s\n" "$YACC_INST" >&6; }
11403else
11404  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405printf "%s\n" "no" >&6; }
11406fi
11407
11408
11409if test ! -f "$srcdir/gram.c"; then
11410   if test -z "$YACC_INST"; then
11411      as_fn_error $? "yacc not found - unable to compile gram.y" "$LINENO" 5
11412   fi
11413fi
11414for ac_prog in flex lex
11415do
11416  # Extract the first word of "$ac_prog", so it can be a program name with args.
11417set dummy $ac_prog; ac_word=$2
11418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11419printf %s "checking for $ac_word... " >&6; }
11420if test ${ac_cv_prog_LEX+y}
11421then :
11422  printf %s "(cached) " >&6
11423else $as_nop
11424  if test -n "$LEX"; then
11425  ac_cv_prog_LEX="$LEX" # Let the user override the test.
11426else
11427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428for as_dir in $PATH
11429do
11430  IFS=$as_save_IFS
11431  case $as_dir in #(((
11432    '') as_dir=./ ;;
11433    */) ;;
11434    *) as_dir=$as_dir/ ;;
11435  esac
11436    for ac_exec_ext in '' $ac_executable_extensions; do
11437  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11438    ac_cv_prog_LEX="$ac_prog"
11439    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11440    break 2
11441  fi
11442done
11443  done
11444IFS=$as_save_IFS
11445
11446fi
11447fi
11448LEX=$ac_cv_prog_LEX
11449if test -n "$LEX"; then
11450  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11451printf "%s\n" "$LEX" >&6; }
11452else
11453  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11454printf "%s\n" "no" >&6; }
11455fi
11456
11457
11458  test -n "$LEX" && break
11459done
11460test -n "$LEX" || LEX=":"
11461
11462  if test "x$LEX" != "x:"; then
11463    cat >conftest.l <<_ACEOF
11464%{
11465#ifdef __cplusplus
11466extern "C"
11467#endif
11468int yywrap(void);
11469%}
11470%%
11471a { ECHO; }
11472b { REJECT; }
11473c { yymore (); }
11474d { yyless (1); }
11475e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
11476#ifdef __cplusplus
11477    yyless ((yyinput () != 0));
11478#else
11479    yyless ((input () != 0));
11480#endif
11481  }
11482f { unput (yytext[0]); }
11483. { BEGIN INITIAL; }
11484%%
11485#ifdef YYTEXT_POINTER
11486extern char *yytext;
11487#endif
11488int
11489yywrap (void)
11490{
11491  return 1;
11492}
11493int
11494main (void)
11495{
11496  return ! yylex ();
11497}
11498_ACEOF
11499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
11500printf %s "checking for lex output file root... " >&6; }
11501if test ${ac_cv_prog_lex_root+y}
11502then :
11503  printf %s "(cached) " >&6
11504else $as_nop
11505
11506ac_cv_prog_lex_root=unknown
11507{ { ac_try="$LEX conftest.l"
11508case "(($ac_try" in
11509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510  *) ac_try_echo=$ac_try;;
11511esac
11512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11513printf "%s\n" "$ac_try_echo"; } >&5
11514  (eval "$LEX conftest.l") 2>&5
11515  ac_status=$?
11516  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11517  test $ac_status = 0; } &&
11518if test -f lex.yy.c; then
11519  ac_cv_prog_lex_root=lex.yy
11520elif test -f lexyy.c; then
11521  ac_cv_prog_lex_root=lexyy
11522fi
11523fi
11524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
11525printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
11526if test "$ac_cv_prog_lex_root" = unknown
11527then :
11528  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
11529printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
11530   LEX=: LEXLIB=
11531fi
11532LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11533
11534if test ${LEXLIB+y}
11535then :
11536
11537else $as_nop
11538
11539  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
11540printf %s "checking for lex library... " >&6; }
11541if test ${ac_cv_lib_lex+y}
11542then :
11543  printf %s "(cached) " >&6
11544else $as_nop
11545
11546    ac_save_LIBS="$LIBS"
11547    ac_found=false
11548    for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
11549      case $ac_cv_lib_lex in #(
11550  'none needed') :
11551     ;; #(
11552  'not found') :
11553    break ;; #(
11554  *) :
11555    LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
11556  *) :
11557     ;;
11558esac
11559
11560      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561/* end confdefs.h.  */
11562`cat $LEX_OUTPUT_ROOT.c`
11563_ACEOF
11564if ac_fn_c_try_link "$LINENO"
11565then :
11566  ac_found=:
11567fi
11568rm -f core conftest.err conftest.$ac_objext conftest.beam \
11569    conftest$ac_exeext conftest.$ac_ext
11570      if $ac_found; then
11571        break
11572      fi
11573    done
11574    LIBS="$ac_save_LIBS"
11575
11576fi
11577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
11578printf "%s\n" "$ac_cv_lib_lex" >&6; }
11579  if test "$ac_cv_lib_lex" = 'not found'
11580then :
11581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
11582printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
11583	 LEX=: LEXLIB=
11584elif test "$ac_cv_lib_lex" = 'none needed'
11585then :
11586  LEXLIB=''
11587else $as_nop
11588  LEXLIB=$ac_cv_lib_lex
11589fi
11590
11591fi
11592
11593
11594if test "$LEX" != :
11595then :
11596
11597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
11598printf %s "checking whether yytext is a pointer... " >&6; }
11599if test ${ac_cv_prog_lex_yytext_pointer+y}
11600then :
11601  printf %s "(cached) " >&6
11602else $as_nop
11603  # POSIX says lex can declare yytext either as a pointer or an array; the
11604# default is implementation-dependent.  Figure out which it is, since
11605# not all implementations provide the %pointer and %array declarations.
11606ac_cv_prog_lex_yytext_pointer=no
11607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608/* end confdefs.h.  */
11609
11610  #define YYTEXT_POINTER 1
11611`cat $LEX_OUTPUT_ROOT.c`
11612_ACEOF
11613if ac_fn_c_try_compile "$LINENO"
11614then :
11615  ac_cv_prog_lex_yytext_pointer=yes
11616fi
11617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11618
11619fi
11620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
11621printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
11622if test $ac_cv_prog_lex_yytext_pointer = yes; then
11623
11624printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
11625
11626fi
11627
11628fi
11629rm -f conftest.l $LEX_OUTPUT_ROOT.c
11630
11631fi
11632
11633ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11634if test "x$ac_cv_func_mkstemp" = xyes
11635then :
11636  printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
11637
11638fi
11639
11640
11641# Checks for pkg-config packages
11642
11643pkg_failed=no
11644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11 xext xt xmu ice sm xproto >= 7.0.17" >&5
11645printf %s "checking for x11 xext xt xmu ice sm xproto >= 7.0.17... " >&6; }
11646
11647if test -n "$TWM_CFLAGS"; then
11648    pkg_cv_TWM_CFLAGS="$TWM_CFLAGS"
11649 elif test -n "$PKG_CONFIG"; then
11650    if test -n "$PKG_CONFIG" && \
11651    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm xproto >= 7.0.17\""; } >&5
11652  ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17") 2>&5
11653  ac_status=$?
11654  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11655  test $ac_status = 0; }; then
11656  pkg_cv_TWM_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>/dev/null`
11657		      test "x$?" != "x0" && pkg_failed=yes
11658else
11659  pkg_failed=yes
11660fi
11661 else
11662    pkg_failed=untried
11663fi
11664if test -n "$TWM_LIBS"; then
11665    pkg_cv_TWM_LIBS="$TWM_LIBS"
11666 elif test -n "$PKG_CONFIG"; then
11667    if test -n "$PKG_CONFIG" && \
11668    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm xproto >= 7.0.17\""; } >&5
11669  ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17") 2>&5
11670  ac_status=$?
11671  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11672  test $ac_status = 0; }; then
11673  pkg_cv_TWM_LIBS=`$PKG_CONFIG --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>/dev/null`
11674		      test "x$?" != "x0" && pkg_failed=yes
11675else
11676  pkg_failed=yes
11677fi
11678 else
11679    pkg_failed=untried
11680fi
11681
11682
11683
11684if test $pkg_failed = yes; then
11685        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686printf "%s\n" "no" >&6; }
11687
11688if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11689        _pkg_short_errors_supported=yes
11690else
11691        _pkg_short_errors_supported=no
11692fi
11693        if test $_pkg_short_errors_supported = yes; then
11694                TWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>&1`
11695        else
11696                TWM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>&1`
11697        fi
11698        # Put the nasty error message in config.log where it belongs
11699        echo "$TWM_PKG_ERRORS" >&5
11700
11701        as_fn_error $? "Package requirements (x11 xext xt xmu ice sm xproto >= 7.0.17) were not met:
11702
11703$TWM_PKG_ERRORS
11704
11705Consider adjusting the PKG_CONFIG_PATH environment variable if you
11706installed software in a non-standard prefix.
11707
11708Alternatively, you may set the environment variables TWM_CFLAGS
11709and TWM_LIBS to avoid the need to call pkg-config.
11710See the pkg-config man page for more details." "$LINENO" 5
11711elif test $pkg_failed = untried; then
11712        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713printf "%s\n" "no" >&6; }
11714        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11715printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11716as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11717is in your PATH or set the PKG_CONFIG environment variable to the full
11718path to pkg-config.
11719
11720Alternatively, you may set the environment variables TWM_CFLAGS
11721and TWM_LIBS to avoid the need to call pkg-config.
11722See the pkg-config man page for more details.
11723
11724To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11725See \`config.log' for more details" "$LINENO" 5; }
11726else
11727        TWM_CFLAGS=$pkg_cv_TWM_CFLAGS
11728        TWM_LIBS=$pkg_cv_TWM_LIBS
11729        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11730printf "%s\n" "yes" >&6; }
11731
11732fi
11733
11734pkg_failed=no
11735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrandr" >&5
11736printf %s "checking for xrandr... " >&6; }
11737
11738if test -n "$XRANDR_CFLAGS"; then
11739    pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS"
11740 elif test -n "$PKG_CONFIG"; then
11741    if test -n "$PKG_CONFIG" && \
11742    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5
11743  ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5
11744  ac_status=$?
11745  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11746  test $ac_status = 0; }; then
11747  pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr" 2>/dev/null`
11748		      test "x$?" != "x0" && pkg_failed=yes
11749else
11750  pkg_failed=yes
11751fi
11752 else
11753    pkg_failed=untried
11754fi
11755if test -n "$XRANDR_LIBS"; then
11756    pkg_cv_XRANDR_LIBS="$XRANDR_LIBS"
11757 elif test -n "$PKG_CONFIG"; then
11758    if test -n "$PKG_CONFIG" && \
11759    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5
11760  ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5
11761  ac_status=$?
11762  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11763  test $ac_status = 0; }; then
11764  pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr" 2>/dev/null`
11765		      test "x$?" != "x0" && pkg_failed=yes
11766else
11767  pkg_failed=yes
11768fi
11769 else
11770    pkg_failed=untried
11771fi
11772
11773
11774
11775if test $pkg_failed = yes; then
11776        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777printf "%s\n" "no" >&6; }
11778
11779if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11780        _pkg_short_errors_supported=yes
11781else
11782        _pkg_short_errors_supported=no
11783fi
11784        if test $_pkg_short_errors_supported = yes; then
11785                XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr" 2>&1`
11786        else
11787                XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr" 2>&1`
11788        fi
11789        # Put the nasty error message in config.log where it belongs
11790        echo "$XRANDR_PKG_ERRORS" >&5
11791
11792        have_xrandr=no
11793elif test $pkg_failed = untried; then
11794        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11795printf "%s\n" "no" >&6; }
11796        have_xrandr=no
11797else
11798        XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS
11799        XRANDR_LIBS=$pkg_cv_XRANDR_LIBS
11800        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11801printf "%s\n" "yes" >&6; }
11802        have_xrandr=yes
11803fi
11804if test "$have_xrandr" = yes; then
11805
11806printf "%s\n" "#define HAVE_XRANDR 1" >>confdefs.h
11807
11808fi
11809
11810ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
11811
11812cat >confcache <<\_ACEOF
11813# This file is a shell script that caches the results of configure
11814# tests run on this system so they can be shared between configure
11815# scripts and configure runs, see configure's option --config-cache.
11816# It is not useful on other systems.  If it contains results you don't
11817# want to keep, you may remove or edit it.
11818#
11819# config.status only pays attention to the cache file if you give it
11820# the --recheck option to rerun configure.
11821#
11822# `ac_cv_env_foo' variables (set or unset) will be overridden when
11823# loading this file, other *unset* `ac_cv_foo' will be assigned the
11824# following values.
11825
11826_ACEOF
11827
11828# The following way of writing the cache mishandles newlines in values,
11829# but we know of no workaround that is simple, portable, and efficient.
11830# So, we kill variables containing newlines.
11831# Ultrix sh set writes to stderr and can't be redirected directly,
11832# and sets the high bit in the cache file unless we assign to the vars.
11833(
11834  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11835    eval ac_val=\$$ac_var
11836    case $ac_val in #(
11837    *${as_nl}*)
11838      case $ac_var in #(
11839      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11840printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11841      esac
11842      case $ac_var in #(
11843      _ | IFS | as_nl) ;; #(
11844      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11845      *) { eval $ac_var=; unset $ac_var;} ;;
11846      esac ;;
11847    esac
11848  done
11849
11850  (set) 2>&1 |
11851    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11852    *${as_nl}ac_space=\ *)
11853      # `set' does not quote correctly, so add quotes: double-quote
11854      # substitution turns \\\\ into \\, and sed turns \\ into \.
11855      sed -n \
11856	"s/'/'\\\\''/g;
11857	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11858      ;; #(
11859    *)
11860      # `set' quotes correctly as required by POSIX, so do not add quotes.
11861      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11862      ;;
11863    esac |
11864    sort
11865) |
11866  sed '
11867     /^ac_cv_env_/b end
11868     t clear
11869     :clear
11870     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11871     t end
11872     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11873     :end' >>confcache
11874if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11875  if test -w "$cache_file"; then
11876    if test "x$cache_file" != "x/dev/null"; then
11877      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11878printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11879      if test ! -f "$cache_file" || test -h "$cache_file"; then
11880	cat confcache >"$cache_file"
11881      else
11882        case $cache_file in #(
11883        */* | ?:*)
11884	  mv -f confcache "$cache_file"$$ &&
11885	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11886        *)
11887	  mv -f confcache "$cache_file" ;;
11888	esac
11889      fi
11890    fi
11891  else
11892    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11893printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11894  fi
11895fi
11896rm -f confcache
11897
11898test "x$prefix" = xNONE && prefix=$ac_default_prefix
11899# Let make expand exec_prefix.
11900test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11901
11902DEFS=-DHAVE_CONFIG_H
11903
11904ac_libobjs=
11905ac_ltlibobjs=
11906U=
11907for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11908  # 1. Remove the extension, and $U if already installed.
11909  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11910  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11911  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11912  #    will be set to the directory where LIBOBJS objects are built.
11913  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11914  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11915done
11916LIBOBJS=$ac_libobjs
11917
11918LTLIBOBJS=$ac_ltlibobjs
11919
11920
11921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11922printf %s "checking that generated files are newer than configure... " >&6; }
11923   if test -n "$am_sleep_pid"; then
11924     # Hide warnings about reused PIDs.
11925     wait $am_sleep_pid 2>/dev/null
11926   fi
11927   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11928printf "%s\n" "done" >&6; }
11929if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11930  as_fn_error $? "conditional \"AMDEP\" was never defined.
11931Usually this means the macro was only invoked conditionally." "$LINENO" 5
11932fi
11933if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11934  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11935Usually this means the macro was only invoked conditionally." "$LINENO" 5
11936fi
11937 if test -n "$EXEEXT"; then
11938  am__EXEEXT_TRUE=
11939  am__EXEEXT_FALSE='#'
11940else
11941  am__EXEEXT_TRUE='#'
11942  am__EXEEXT_FALSE=
11943fi
11944
11945
11946: "${CONFIG_STATUS=./config.status}"
11947ac_write_fail=0
11948ac_clean_files_save=$ac_clean_files
11949ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11951printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11952as_write_fail=0
11953cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11954#! $SHELL
11955# Generated by $as_me.
11956# Run this file to recreate the current configuration.
11957# Compiler output produced by configure, useful for debugging
11958# configure, is in config.log if it exists.
11959
11960debug=false
11961ac_cs_recheck=false
11962ac_cs_silent=false
11963
11964SHELL=\${CONFIG_SHELL-$SHELL}
11965export SHELL
11966_ASEOF
11967cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11968## -------------------- ##
11969## M4sh Initialization. ##
11970## -------------------- ##
11971
11972# Be more Bourne compatible
11973DUALCASE=1; export DUALCASE # for MKS sh
11974as_nop=:
11975if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11976then :
11977  emulate sh
11978  NULLCMD=:
11979  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11980  # is contrary to our usage.  Disable this feature.
11981  alias -g '${1+"$@"}'='"$@"'
11982  setopt NO_GLOB_SUBST
11983else $as_nop
11984  case `(set -o) 2>/dev/null` in #(
11985  *posix*) :
11986    set -o posix ;; #(
11987  *) :
11988     ;;
11989esac
11990fi
11991
11992
11993
11994# Reset variables that may have inherited troublesome values from
11995# the environment.
11996
11997# IFS needs to be set, to space, tab, and newline, in precisely that order.
11998# (If _AS_PATH_WALK were called with IFS unset, it would have the
11999# side effect of setting IFS to empty, thus disabling word splitting.)
12000# Quoting is to prevent editors from complaining about space-tab.
12001as_nl='
12002'
12003export as_nl
12004IFS=" ""	$as_nl"
12005
12006PS1='$ '
12007PS2='> '
12008PS4='+ '
12009
12010# Ensure predictable behavior from utilities with locale-dependent output.
12011LC_ALL=C
12012export LC_ALL
12013LANGUAGE=C
12014export LANGUAGE
12015
12016# We cannot yet rely on "unset" to work, but we need these variables
12017# to be unset--not just set to an empty or harmless value--now, to
12018# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12019# also avoids known problems related to "unset" and subshell syntax
12020# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12021for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12022do eval test \${$as_var+y} \
12023  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12024done
12025
12026# Ensure that fds 0, 1, and 2 are open.
12027if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12028if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12029if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12030
12031# The user is always right.
12032if ${PATH_SEPARATOR+false} :; then
12033  PATH_SEPARATOR=:
12034  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12035    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12036      PATH_SEPARATOR=';'
12037  }
12038fi
12039
12040
12041# Find who we are.  Look in the path if we contain no directory separator.
12042as_myself=
12043case $0 in #((
12044  *[\\/]* ) as_myself=$0 ;;
12045  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046for as_dir in $PATH
12047do
12048  IFS=$as_save_IFS
12049  case $as_dir in #(((
12050    '') as_dir=./ ;;
12051    */) ;;
12052    *) as_dir=$as_dir/ ;;
12053  esac
12054    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12055  done
12056IFS=$as_save_IFS
12057
12058     ;;
12059esac
12060# We did not find ourselves, most probably we were run as `sh COMMAND'
12061# in which case we are not to be found in the path.
12062if test "x$as_myself" = x; then
12063  as_myself=$0
12064fi
12065if test ! -f "$as_myself"; then
12066  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12067  exit 1
12068fi
12069
12070
12071
12072# as_fn_error STATUS ERROR [LINENO LOG_FD]
12073# ----------------------------------------
12074# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12075# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12076# script with STATUS, using 1 if that was 0.
12077as_fn_error ()
12078{
12079  as_status=$1; test $as_status -eq 0 && as_status=1
12080  if test "$4"; then
12081    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12082    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12083  fi
12084  printf "%s\n" "$as_me: error: $2" >&2
12085  as_fn_exit $as_status
12086} # as_fn_error
12087
12088
12089
12090# as_fn_set_status STATUS
12091# -----------------------
12092# Set $? to STATUS, without forking.
12093as_fn_set_status ()
12094{
12095  return $1
12096} # as_fn_set_status
12097
12098# as_fn_exit STATUS
12099# -----------------
12100# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12101as_fn_exit ()
12102{
12103  set +e
12104  as_fn_set_status $1
12105  exit $1
12106} # as_fn_exit
12107
12108# as_fn_unset VAR
12109# ---------------
12110# Portably unset VAR.
12111as_fn_unset ()
12112{
12113  { eval $1=; unset $1;}
12114}
12115as_unset=as_fn_unset
12116
12117# as_fn_append VAR VALUE
12118# ----------------------
12119# Append the text in VALUE to the end of the definition contained in VAR. Take
12120# advantage of any shell optimizations that allow amortized linear growth over
12121# repeated appends, instead of the typical quadratic growth present in naive
12122# implementations.
12123if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12124then :
12125  eval 'as_fn_append ()
12126  {
12127    eval $1+=\$2
12128  }'
12129else $as_nop
12130  as_fn_append ()
12131  {
12132    eval $1=\$$1\$2
12133  }
12134fi # as_fn_append
12135
12136# as_fn_arith ARG...
12137# ------------------
12138# Perform arithmetic evaluation on the ARGs, and store the result in the
12139# global $as_val. Take advantage of shells that can avoid forks. The arguments
12140# must be portable across $(()) and expr.
12141if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12142then :
12143  eval 'as_fn_arith ()
12144  {
12145    as_val=$(( $* ))
12146  }'
12147else $as_nop
12148  as_fn_arith ()
12149  {
12150    as_val=`expr "$@" || test $? -eq 1`
12151  }
12152fi # as_fn_arith
12153
12154
12155if expr a : '\(a\)' >/dev/null 2>&1 &&
12156   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12157  as_expr=expr
12158else
12159  as_expr=false
12160fi
12161
12162if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12163  as_basename=basename
12164else
12165  as_basename=false
12166fi
12167
12168if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12169  as_dirname=dirname
12170else
12171  as_dirname=false
12172fi
12173
12174as_me=`$as_basename -- "$0" ||
12175$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12176	 X"$0" : 'X\(//\)$' \| \
12177	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12178printf "%s\n" X/"$0" |
12179    sed '/^.*\/\([^/][^/]*\)\/*$/{
12180	    s//\1/
12181	    q
12182	  }
12183	  /^X\/\(\/\/\)$/{
12184	    s//\1/
12185	    q
12186	  }
12187	  /^X\/\(\/\).*/{
12188	    s//\1/
12189	    q
12190	  }
12191	  s/.*/./; q'`
12192
12193# Avoid depending upon Character Ranges.
12194as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12195as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12196as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12197as_cr_digits='0123456789'
12198as_cr_alnum=$as_cr_Letters$as_cr_digits
12199
12200
12201# Determine whether it's possible to make 'echo' print without a newline.
12202# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12203# for compatibility with existing Makefiles.
12204ECHO_C= ECHO_N= ECHO_T=
12205case `echo -n x` in #(((((
12206-n*)
12207  case `echo 'xy\c'` in
12208  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12209  xy)  ECHO_C='\c';;
12210  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12211       ECHO_T='	';;
12212  esac;;
12213*)
12214  ECHO_N='-n';;
12215esac
12216
12217# For backward compatibility with old third-party macros, we provide
12218# the shell variables $as_echo and $as_echo_n.  New code should use
12219# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12220as_echo='printf %s\n'
12221as_echo_n='printf %s'
12222
12223rm -f conf$$ conf$$.exe conf$$.file
12224if test -d conf$$.dir; then
12225  rm -f conf$$.dir/conf$$.file
12226else
12227  rm -f conf$$.dir
12228  mkdir conf$$.dir 2>/dev/null
12229fi
12230if (echo >conf$$.file) 2>/dev/null; then
12231  if ln -s conf$$.file conf$$ 2>/dev/null; then
12232    as_ln_s='ln -s'
12233    # ... but there are two gotchas:
12234    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12235    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12236    # In both cases, we have to default to `cp -pR'.
12237    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12238      as_ln_s='cp -pR'
12239  elif ln conf$$.file conf$$ 2>/dev/null; then
12240    as_ln_s=ln
12241  else
12242    as_ln_s='cp -pR'
12243  fi
12244else
12245  as_ln_s='cp -pR'
12246fi
12247rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12248rmdir conf$$.dir 2>/dev/null
12249
12250
12251# as_fn_mkdir_p
12252# -------------
12253# Create "$as_dir" as a directory, including parents if necessary.
12254as_fn_mkdir_p ()
12255{
12256
12257  case $as_dir in #(
12258  -*) as_dir=./$as_dir;;
12259  esac
12260  test -d "$as_dir" || eval $as_mkdir_p || {
12261    as_dirs=
12262    while :; do
12263      case $as_dir in #(
12264      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12265      *) as_qdir=$as_dir;;
12266      esac
12267      as_dirs="'$as_qdir' $as_dirs"
12268      as_dir=`$as_dirname -- "$as_dir" ||
12269$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12270	 X"$as_dir" : 'X\(//\)[^/]' \| \
12271	 X"$as_dir" : 'X\(//\)$' \| \
12272	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12273printf "%s\n" X"$as_dir" |
12274    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12275	    s//\1/
12276	    q
12277	  }
12278	  /^X\(\/\/\)[^/].*/{
12279	    s//\1/
12280	    q
12281	  }
12282	  /^X\(\/\/\)$/{
12283	    s//\1/
12284	    q
12285	  }
12286	  /^X\(\/\).*/{
12287	    s//\1/
12288	    q
12289	  }
12290	  s/.*/./; q'`
12291      test -d "$as_dir" && break
12292    done
12293    test -z "$as_dirs" || eval "mkdir $as_dirs"
12294  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12295
12296
12297} # as_fn_mkdir_p
12298if mkdir -p . 2>/dev/null; then
12299  as_mkdir_p='mkdir -p "$as_dir"'
12300else
12301  test -d ./-p && rmdir ./-p
12302  as_mkdir_p=false
12303fi
12304
12305
12306# as_fn_executable_p FILE
12307# -----------------------
12308# Test if FILE is an executable regular file.
12309as_fn_executable_p ()
12310{
12311  test -f "$1" && test -x "$1"
12312} # as_fn_executable_p
12313as_test_x='test -x'
12314as_executable_p=as_fn_executable_p
12315
12316# Sed expression to map a string onto a valid CPP name.
12317as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12318
12319# Sed expression to map a string onto a valid variable name.
12320as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12321
12322
12323exec 6>&1
12324## ----------------------------------- ##
12325## Main body of $CONFIG_STATUS script. ##
12326## ----------------------------------- ##
12327_ASEOF
12328test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12329
12330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12331# Save the log message, to keep $0 and so on meaningful, and to
12332# report actual input values of CONFIG_FILES etc. instead of their
12333# values after options handling.
12334ac_log="
12335This file was extended by twm $as_me 1.0.13.1, which was
12336generated by GNU Autoconf 2.71.  Invocation command line was
12337
12338  CONFIG_FILES    = $CONFIG_FILES
12339  CONFIG_HEADERS  = $CONFIG_HEADERS
12340  CONFIG_LINKS    = $CONFIG_LINKS
12341  CONFIG_COMMANDS = $CONFIG_COMMANDS
12342  $ $0 $@
12343
12344on `(hostname || uname -n) 2>/dev/null | sed 1q`
12345"
12346
12347_ACEOF
12348
12349case $ac_config_files in *"
12350"*) set x $ac_config_files; shift; ac_config_files=$*;;
12351esac
12352
12353case $ac_config_headers in *"
12354"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12355esac
12356
12357
12358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12359# Files that config.status was made for.
12360config_files="$ac_config_files"
12361config_headers="$ac_config_headers"
12362config_commands="$ac_config_commands"
12363
12364_ACEOF
12365
12366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12367ac_cs_usage="\
12368\`$as_me' instantiates files and other configuration actions
12369from templates according to the current configuration.  Unless the files
12370and actions are specified as TAGs, all are instantiated by default.
12371
12372Usage: $0 [OPTION]... [TAG]...
12373
12374  -h, --help       print this help, then exit
12375  -V, --version    print version number and configuration settings, then exit
12376      --config     print configuration, then exit
12377  -q, --quiet, --silent
12378                   do not print progress messages
12379  -d, --debug      don't remove temporary files
12380      --recheck    update $as_me by reconfiguring in the same conditions
12381      --file=FILE[:TEMPLATE]
12382                   instantiate the configuration file FILE
12383      --header=FILE[:TEMPLATE]
12384                   instantiate the configuration header FILE
12385
12386Configuration files:
12387$config_files
12388
12389Configuration headers:
12390$config_headers
12391
12392Configuration commands:
12393$config_commands
12394
12395Report bugs to <https://gitlab.freedesktop.org/xorg/app/twm/issues>."
12396
12397_ACEOF
12398ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12399ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12401ac_cs_config='$ac_cs_config_escaped'
12402ac_cs_version="\\
12403twm config.status 1.0.13.1
12404configured by $0, generated by GNU Autoconf 2.71,
12405  with options \\"\$ac_cs_config\\"
12406
12407Copyright (C) 2021 Free Software Foundation, Inc.
12408This config.status script is free software; the Free Software Foundation
12409gives unlimited permission to copy, distribute and modify it."
12410
12411ac_pwd='$ac_pwd'
12412srcdir='$srcdir'
12413INSTALL='$INSTALL'
12414MKDIR_P='$MKDIR_P'
12415AWK='$AWK'
12416test -n "\$AWK" || AWK=awk
12417_ACEOF
12418
12419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12420# The default lists apply if the user does not specify any file.
12421ac_need_defaults=:
12422while test $# != 0
12423do
12424  case $1 in
12425  --*=?*)
12426    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12427    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12428    ac_shift=:
12429    ;;
12430  --*=)
12431    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12432    ac_optarg=
12433    ac_shift=:
12434    ;;
12435  *)
12436    ac_option=$1
12437    ac_optarg=$2
12438    ac_shift=shift
12439    ;;
12440  esac
12441
12442  case $ac_option in
12443  # Handling of the options.
12444  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12445    ac_cs_recheck=: ;;
12446  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12447    printf "%s\n" "$ac_cs_version"; exit ;;
12448  --config | --confi | --conf | --con | --co | --c )
12449    printf "%s\n" "$ac_cs_config"; exit ;;
12450  --debug | --debu | --deb | --de | --d | -d )
12451    debug=: ;;
12452  --file | --fil | --fi | --f )
12453    $ac_shift
12454    case $ac_optarg in
12455    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12456    '') as_fn_error $? "missing file argument" ;;
12457    esac
12458    as_fn_append CONFIG_FILES " '$ac_optarg'"
12459    ac_need_defaults=false;;
12460  --header | --heade | --head | --hea )
12461    $ac_shift
12462    case $ac_optarg in
12463    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12464    esac
12465    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12466    ac_need_defaults=false;;
12467  --he | --h)
12468    # Conflict between --help and --header
12469    as_fn_error $? "ambiguous option: \`$1'
12470Try \`$0 --help' for more information.";;
12471  --help | --hel | -h )
12472    printf "%s\n" "$ac_cs_usage"; exit ;;
12473  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12474  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12475    ac_cs_silent=: ;;
12476
12477  # This is an error.
12478  -*) as_fn_error $? "unrecognized option: \`$1'
12479Try \`$0 --help' for more information." ;;
12480
12481  *) as_fn_append ac_config_targets " $1"
12482     ac_need_defaults=false ;;
12483
12484  esac
12485  shift
12486done
12487
12488ac_configure_extra_args=
12489
12490if $ac_cs_silent; then
12491  exec 6>/dev/null
12492  ac_configure_extra_args="$ac_configure_extra_args --silent"
12493fi
12494
12495_ACEOF
12496cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12497if \$ac_cs_recheck; then
12498  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12499  shift
12500  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12501  CONFIG_SHELL='$SHELL'
12502  export CONFIG_SHELL
12503  exec "\$@"
12504fi
12505
12506_ACEOF
12507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12508exec 5>>config.log
12509{
12510  echo
12511  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12512## Running $as_me. ##
12513_ASBOX
12514  printf "%s\n" "$ac_log"
12515} >&5
12516
12517_ACEOF
12518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12519#
12520# INIT-COMMANDS
12521#
12522AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12523
12524_ACEOF
12525
12526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12527
12528# Handling of arguments.
12529for ac_config_target in $ac_config_targets
12530do
12531  case $ac_config_target in
12532    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12533    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12534    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12535    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12536    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12537
12538  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12539  esac
12540done
12541
12542
12543# If the user did not use the arguments to specify the items to instantiate,
12544# then the envvar interface is used.  Set only those that are not.
12545# We use the long form for the default assignment because of an extremely
12546# bizarre bug on SunOS 4.1.3.
12547if $ac_need_defaults; then
12548  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12549  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12550  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12551fi
12552
12553# Have a temporary directory for convenience.  Make it in the build tree
12554# simply because there is no reason against having it here, and in addition,
12555# creating and moving files from /tmp can sometimes cause problems.
12556# Hook for its removal unless debugging.
12557# Note that there is a small window in which the directory will not be cleaned:
12558# after its creation but before its name has been assigned to `$tmp'.
12559$debug ||
12560{
12561  tmp= ac_tmp=
12562  trap 'exit_status=$?
12563  : "${ac_tmp:=$tmp}"
12564  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12565' 0
12566  trap 'as_fn_exit 1' 1 2 13 15
12567}
12568# Create a (secure) tmp directory for tmp files.
12569
12570{
12571  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12572  test -d "$tmp"
12573}  ||
12574{
12575  tmp=./conf$$-$RANDOM
12576  (umask 077 && mkdir "$tmp")
12577} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12578ac_tmp=$tmp
12579
12580# Set up the scripts for CONFIG_FILES section.
12581# No need to generate them if there are no CONFIG_FILES.
12582# This happens for instance with `./config.status config.h'.
12583if test -n "$CONFIG_FILES"; then
12584
12585
12586ac_cr=`echo X | tr X '\015'`
12587# On cygwin, bash can eat \r inside `` if the user requested igncr.
12588# But we know of no other shell where ac_cr would be empty at this
12589# point, so we can use a bashism as a fallback.
12590if test "x$ac_cr" = x; then
12591  eval ac_cr=\$\'\\r\'
12592fi
12593ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12594if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12595  ac_cs_awk_cr='\\r'
12596else
12597  ac_cs_awk_cr=$ac_cr
12598fi
12599
12600echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12601_ACEOF
12602
12603
12604{
12605  echo "cat >conf$$subs.awk <<_ACEOF" &&
12606  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12607  echo "_ACEOF"
12608} >conf$$subs.sh ||
12609  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12610ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12611ac_delim='%!_!# '
12612for ac_last_try in false false false false false :; do
12613  . ./conf$$subs.sh ||
12614    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12615
12616  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12617  if test $ac_delim_n = $ac_delim_num; then
12618    break
12619  elif $ac_last_try; then
12620    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12621  else
12622    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12623  fi
12624done
12625rm -f conf$$subs.sh
12626
12627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12628cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12629_ACEOF
12630sed -n '
12631h
12632s/^/S["/; s/!.*/"]=/
12633p
12634g
12635s/^[^!]*!//
12636:repl
12637t repl
12638s/'"$ac_delim"'$//
12639t delim
12640:nl
12641h
12642s/\(.\{148\}\)..*/\1/
12643t more1
12644s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12645p
12646n
12647b repl
12648:more1
12649s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12650p
12651g
12652s/.\{148\}//
12653t nl
12654:delim
12655h
12656s/\(.\{148\}\)..*/\1/
12657t more2
12658s/["\\]/\\&/g; s/^/"/; s/$/"/
12659p
12660b
12661:more2
12662s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12663p
12664g
12665s/.\{148\}//
12666t delim
12667' <conf$$subs.awk | sed '
12668/^[^""]/{
12669  N
12670  s/\n//
12671}
12672' >>$CONFIG_STATUS || ac_write_fail=1
12673rm -f conf$$subs.awk
12674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12675_ACAWK
12676cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12677  for (key in S) S_is_set[key] = 1
12678  FS = ""
12679
12680}
12681{
12682  line = $ 0
12683  nfields = split(line, field, "@")
12684  substed = 0
12685  len = length(field[1])
12686  for (i = 2; i < nfields; i++) {
12687    key = field[i]
12688    keylen = length(key)
12689    if (S_is_set[key]) {
12690      value = S[key]
12691      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12692      len += length(value) + length(field[++i])
12693      substed = 1
12694    } else
12695      len += 1 + keylen
12696  }
12697
12698  print line
12699}
12700
12701_ACAWK
12702_ACEOF
12703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12704if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12705  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12706else
12707  cat
12708fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12709  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12710_ACEOF
12711
12712# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12713# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12714# trailing colons and then remove the whole line if VPATH becomes empty
12715# (actually we leave an empty line to preserve line numbers).
12716if test "x$srcdir" = x.; then
12717  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12718h
12719s///
12720s/^/:/
12721s/[	 ]*$/:/
12722s/:\$(srcdir):/:/g
12723s/:\${srcdir}:/:/g
12724s/:@srcdir@:/:/g
12725s/^:*//
12726s/:*$//
12727x
12728s/\(=[	 ]*\).*/\1/
12729G
12730s/\n//
12731s/^[^=]*=[	 ]*$//
12732}'
12733fi
12734
12735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12736fi # test -n "$CONFIG_FILES"
12737
12738# Set up the scripts for CONFIG_HEADERS section.
12739# No need to generate them if there are no CONFIG_HEADERS.
12740# This happens for instance with `./config.status Makefile'.
12741if test -n "$CONFIG_HEADERS"; then
12742cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12743BEGIN {
12744_ACEOF
12745
12746# Transform confdefs.h into an awk script `defines.awk', embedded as
12747# here-document in config.status, that substitutes the proper values into
12748# config.h.in to produce config.h.
12749
12750# Create a delimiter string that does not exist in confdefs.h, to ease
12751# handling of long lines.
12752ac_delim='%!_!# '
12753for ac_last_try in false false :; do
12754  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12755  if test -z "$ac_tt"; then
12756    break
12757  elif $ac_last_try; then
12758    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12759  else
12760    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12761  fi
12762done
12763
12764# For the awk script, D is an array of macro values keyed by name,
12765# likewise P contains macro parameters if any.  Preserve backslash
12766# newline sequences.
12767
12768ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12769sed -n '
12770s/.\{148\}/&'"$ac_delim"'/g
12771t rset
12772:rset
12773s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12774t def
12775d
12776:def
12777s/\\$//
12778t bsnl
12779s/["\\]/\\&/g
12780s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12781D["\1"]=" \3"/p
12782s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12783d
12784:bsnl
12785s/["\\]/\\&/g
12786s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12787D["\1"]=" \3\\\\\\n"\\/p
12788t cont
12789s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12790t cont
12791d
12792:cont
12793n
12794s/.\{148\}/&'"$ac_delim"'/g
12795t clear
12796:clear
12797s/\\$//
12798t bsnlc
12799s/["\\]/\\&/g; s/^/"/; s/$/"/p
12800d
12801:bsnlc
12802s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12803b cont
12804' <confdefs.h | sed '
12805s/'"$ac_delim"'/"\\\
12806"/g' >>$CONFIG_STATUS || ac_write_fail=1
12807
12808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12809  for (key in D) D_is_set[key] = 1
12810  FS = ""
12811}
12812/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12813  line = \$ 0
12814  split(line, arg, " ")
12815  if (arg[1] == "#") {
12816    defundef = arg[2]
12817    mac1 = arg[3]
12818  } else {
12819    defundef = substr(arg[1], 2)
12820    mac1 = arg[2]
12821  }
12822  split(mac1, mac2, "(") #)
12823  macro = mac2[1]
12824  prefix = substr(line, 1, index(line, defundef) - 1)
12825  if (D_is_set[macro]) {
12826    # Preserve the white space surrounding the "#".
12827    print prefix "define", macro P[macro] D[macro]
12828    next
12829  } else {
12830    # Replace #undef with comments.  This is necessary, for example,
12831    # in the case of _POSIX_SOURCE, which is predefined and required
12832    # on some systems where configure will not decide to define it.
12833    if (defundef == "undef") {
12834      print "/*", prefix defundef, macro, "*/"
12835      next
12836    }
12837  }
12838}
12839{ print }
12840_ACAWK
12841_ACEOF
12842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12843  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12844fi # test -n "$CONFIG_HEADERS"
12845
12846
12847eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12848shift
12849for ac_tag
12850do
12851  case $ac_tag in
12852  :[FHLC]) ac_mode=$ac_tag; continue;;
12853  esac
12854  case $ac_mode$ac_tag in
12855  :[FHL]*:*);;
12856  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12857  :[FH]-) ac_tag=-:-;;
12858  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12859  esac
12860  ac_save_IFS=$IFS
12861  IFS=:
12862  set x $ac_tag
12863  IFS=$ac_save_IFS
12864  shift
12865  ac_file=$1
12866  shift
12867
12868  case $ac_mode in
12869  :L) ac_source=$1;;
12870  :[FH])
12871    ac_file_inputs=
12872    for ac_f
12873    do
12874      case $ac_f in
12875      -) ac_f="$ac_tmp/stdin";;
12876      *) # Look for the file first in the build tree, then in the source tree
12877	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12878	 # because $ac_f cannot contain `:'.
12879	 test -f "$ac_f" ||
12880	   case $ac_f in
12881	   [\\/$]*) false;;
12882	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12883	   esac ||
12884	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12885      esac
12886      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12887      as_fn_append ac_file_inputs " '$ac_f'"
12888    done
12889
12890    # Let's still pretend it is `configure' which instantiates (i.e., don't
12891    # use $as_me), people would be surprised to read:
12892    #    /* config.h.  Generated by config.status.  */
12893    configure_input='Generated from '`
12894	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12895	`' by configure.'
12896    if test x"$ac_file" != x-; then
12897      configure_input="$ac_file.  $configure_input"
12898      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12899printf "%s\n" "$as_me: creating $ac_file" >&6;}
12900    fi
12901    # Neutralize special characters interpreted by sed in replacement strings.
12902    case $configure_input in #(
12903    *\&* | *\|* | *\\* )
12904       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12905       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12906    *) ac_sed_conf_input=$configure_input;;
12907    esac
12908
12909    case $ac_tag in
12910    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12911      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12912    esac
12913    ;;
12914  esac
12915
12916  ac_dir=`$as_dirname -- "$ac_file" ||
12917$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12918	 X"$ac_file" : 'X\(//\)[^/]' \| \
12919	 X"$ac_file" : 'X\(//\)$' \| \
12920	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12921printf "%s\n" X"$ac_file" |
12922    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12923	    s//\1/
12924	    q
12925	  }
12926	  /^X\(\/\/\)[^/].*/{
12927	    s//\1/
12928	    q
12929	  }
12930	  /^X\(\/\/\)$/{
12931	    s//\1/
12932	    q
12933	  }
12934	  /^X\(\/\).*/{
12935	    s//\1/
12936	    q
12937	  }
12938	  s/.*/./; q'`
12939  as_dir="$ac_dir"; as_fn_mkdir_p
12940  ac_builddir=.
12941
12942case "$ac_dir" in
12943.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12944*)
12945  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12946  # A ".." for each directory in $ac_dir_suffix.
12947  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12948  case $ac_top_builddir_sub in
12949  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12950  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12951  esac ;;
12952esac
12953ac_abs_top_builddir=$ac_pwd
12954ac_abs_builddir=$ac_pwd$ac_dir_suffix
12955# for backward compatibility:
12956ac_top_builddir=$ac_top_build_prefix
12957
12958case $srcdir in
12959  .)  # We are building in place.
12960    ac_srcdir=.
12961    ac_top_srcdir=$ac_top_builddir_sub
12962    ac_abs_top_srcdir=$ac_pwd ;;
12963  [\\/]* | ?:[\\/]* )  # Absolute name.
12964    ac_srcdir=$srcdir$ac_dir_suffix;
12965    ac_top_srcdir=$srcdir
12966    ac_abs_top_srcdir=$srcdir ;;
12967  *) # Relative name.
12968    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12969    ac_top_srcdir=$ac_top_build_prefix$srcdir
12970    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12971esac
12972ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12973
12974
12975  case $ac_mode in
12976  :F)
12977  #
12978  # CONFIG_FILE
12979  #
12980
12981  case $INSTALL in
12982  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12983  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12984  esac
12985  ac_MKDIR_P=$MKDIR_P
12986  case $MKDIR_P in
12987  [\\/$]* | ?:[\\/]* ) ;;
12988  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12989  esac
12990_ACEOF
12991
12992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12993# If the template does not know about datarootdir, expand it.
12994# FIXME: This hack should be removed a few years after 2.60.
12995ac_datarootdir_hack=; ac_datarootdir_seen=
12996ac_sed_dataroot='
12997/datarootdir/ {
12998  p
12999  q
13000}
13001/@datadir@/p
13002/@docdir@/p
13003/@infodir@/p
13004/@localedir@/p
13005/@mandir@/p'
13006case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13007*datarootdir*) ac_datarootdir_seen=yes;;
13008*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13010printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13011_ACEOF
13012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13013  ac_datarootdir_hack='
13014  s&@datadir@&$datadir&g
13015  s&@docdir@&$docdir&g
13016  s&@infodir@&$infodir&g
13017  s&@localedir@&$localedir&g
13018  s&@mandir@&$mandir&g
13019  s&\\\${datarootdir}&$datarootdir&g' ;;
13020esac
13021_ACEOF
13022
13023# Neutralize VPATH when `$srcdir' = `.'.
13024# Shell code in configure.ac might set extrasub.
13025# FIXME: do we really want to maintain this feature?
13026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13027ac_sed_extra="$ac_vpsub
13028$extrasub
13029_ACEOF
13030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13031:t
13032/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13033s|@configure_input@|$ac_sed_conf_input|;t t
13034s&@top_builddir@&$ac_top_builddir_sub&;t t
13035s&@top_build_prefix@&$ac_top_build_prefix&;t t
13036s&@srcdir@&$ac_srcdir&;t t
13037s&@abs_srcdir@&$ac_abs_srcdir&;t t
13038s&@top_srcdir@&$ac_top_srcdir&;t t
13039s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13040s&@builddir@&$ac_builddir&;t t
13041s&@abs_builddir@&$ac_abs_builddir&;t t
13042s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13043s&@INSTALL@&$ac_INSTALL&;t t
13044s&@MKDIR_P@&$ac_MKDIR_P&;t t
13045$ac_datarootdir_hack
13046"
13047eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13048  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13049
13050test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13051  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13052  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13053      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13055which seems to be undefined.  Please make sure it is defined" >&5
13056printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13057which seems to be undefined.  Please make sure it is defined" >&2;}
13058
13059  rm -f "$ac_tmp/stdin"
13060  case $ac_file in
13061  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13062  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13063  esac \
13064  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13065 ;;
13066  :H)
13067  #
13068  # CONFIG_HEADER
13069  #
13070  if test x"$ac_file" != x-; then
13071    {
13072      printf "%s\n" "/* $configure_input  */" >&1 \
13073      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13074    } >"$ac_tmp/config.h" \
13075      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13076    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13077      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13078printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13079    else
13080      rm -f "$ac_file"
13081      mv "$ac_tmp/config.h" "$ac_file" \
13082	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13083    fi
13084  else
13085    printf "%s\n" "/* $configure_input  */" >&1 \
13086      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13087      || as_fn_error $? "could not create -" "$LINENO" 5
13088  fi
13089# Compute "$ac_file"'s index in $config_headers.
13090_am_arg="$ac_file"
13091_am_stamp_count=1
13092for _am_header in $config_headers :; do
13093  case $_am_header in
13094    $_am_arg | $_am_arg:* )
13095      break ;;
13096    * )
13097      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13098  esac
13099done
13100echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13101$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13102	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13103	 X"$_am_arg" : 'X\(//\)$' \| \
13104	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13105printf "%s\n" X"$_am_arg" |
13106    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13107	    s//\1/
13108	    q
13109	  }
13110	  /^X\(\/\/\)[^/].*/{
13111	    s//\1/
13112	    q
13113	  }
13114	  /^X\(\/\/\)$/{
13115	    s//\1/
13116	    q
13117	  }
13118	  /^X\(\/\).*/{
13119	    s//\1/
13120	    q
13121	  }
13122	  s/.*/./; q'`/stamp-h$_am_stamp_count
13123 ;;
13124
13125  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13126printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13127 ;;
13128  esac
13129
13130
13131  case $ac_file$ac_mode in
13132    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13133  # Older Autoconf quotes --file arguments for eval, but not when files
13134  # are listed without --file.  Let's play safe and only enable the eval
13135  # if we detect the quoting.
13136  # TODO: see whether this extra hack can be removed once we start
13137  # requiring Autoconf 2.70 or later.
13138  case $CONFIG_FILES in #(
13139  *\'*) :
13140    eval set x "$CONFIG_FILES" ;; #(
13141  *) :
13142    set x $CONFIG_FILES ;; #(
13143  *) :
13144     ;;
13145esac
13146  shift
13147  # Used to flag and report bootstrapping failures.
13148  am_rc=0
13149  for am_mf
13150  do
13151    # Strip MF so we end up with the name of the file.
13152    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13153    # Check whether this is an Automake generated Makefile which includes
13154    # dependency-tracking related rules and includes.
13155    # Grep'ing the whole file directly is not great: AIX grep has a line
13156    # limit of 2048, but all sed's we know have understand at least 4000.
13157    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13158      || continue
13159    am_dirpart=`$as_dirname -- "$am_mf" ||
13160$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13161	 X"$am_mf" : 'X\(//\)[^/]' \| \
13162	 X"$am_mf" : 'X\(//\)$' \| \
13163	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13164printf "%s\n" X"$am_mf" |
13165    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13166	    s//\1/
13167	    q
13168	  }
13169	  /^X\(\/\/\)[^/].*/{
13170	    s//\1/
13171	    q
13172	  }
13173	  /^X\(\/\/\)$/{
13174	    s//\1/
13175	    q
13176	  }
13177	  /^X\(\/\).*/{
13178	    s//\1/
13179	    q
13180	  }
13181	  s/.*/./; q'`
13182    am_filepart=`$as_basename -- "$am_mf" ||
13183$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13184	 X"$am_mf" : 'X\(//\)$' \| \
13185	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13186printf "%s\n" X/"$am_mf" |
13187    sed '/^.*\/\([^/][^/]*\)\/*$/{
13188	    s//\1/
13189	    q
13190	  }
13191	  /^X\/\(\/\/\)$/{
13192	    s//\1/
13193	    q
13194	  }
13195	  /^X\/\(\/\).*/{
13196	    s//\1/
13197	    q
13198	  }
13199	  s/.*/./; q'`
13200    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13201      && sed -e '/# am--include-marker/d' "$am_filepart" \
13202        | $MAKE -f - am--depfiles" >&5
13203   (cd "$am_dirpart" \
13204      && sed -e '/# am--include-marker/d' "$am_filepart" \
13205        | $MAKE -f - am--depfiles) >&5 2>&5
13206   ac_status=$?
13207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208   (exit $ac_status); } || am_rc=$?
13209  done
13210  if test $am_rc -ne 0; then
13211    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13212printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13213as_fn_error $? "Something went wrong bootstrapping makefile fragments
13214    for automatic dependency tracking.  If GNU make was not used, consider
13215    re-running the configure script with MAKE=\"gmake\" (or whatever is
13216    necessary).  You can also try re-running configure with the
13217    '--disable-dependency-tracking' option to at least be able to build
13218    the package (albeit without support for automatic dependency tracking).
13219See \`config.log' for more details" "$LINENO" 5; }
13220  fi
13221  { am_dirpart=; unset am_dirpart;}
13222  { am_filepart=; unset am_filepart;}
13223  { am_mf=; unset am_mf;}
13224  { am_rc=; unset am_rc;}
13225  rm -f conftest-deps.mk
13226}
13227 ;;
13228
13229  esac
13230done # for ac_tag
13231
13232
13233as_fn_exit 0
13234_ACEOF
13235ac_clean_files=$ac_clean_files_save
13236
13237test $ac_write_fail = 0 ||
13238  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13239
13240
13241# configure is writing to config.log, and then calls config.status.
13242# config.status does its own redirection, appending to config.log.
13243# Unfortunately, on DOS this fails, as config.log is still kept open
13244# by configure, so config.status won't be able to write to it; its
13245# output is simply discarded.  So we exec the FD to /dev/null,
13246# effectively closing config.log, so it can be properly (re)opened and
13247# appended to by config.status.  When coming back to configure, we
13248# need to make the FD available again.
13249if test "$no_create" != yes; then
13250  ac_cs_success=:
13251  ac_config_status_args=
13252  test "$silent" = yes &&
13253    ac_config_status_args="$ac_config_status_args --quiet"
13254  exec 5>/dev/null
13255  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13256  exec 5>>config.log
13257  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13258  # would make configure fail if this is the last instruction.
13259  $ac_cs_success || as_fn_exit 1
13260fi
13261if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13262  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13263printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13264fi
13265
13266
13267