1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xgc 1.0.6.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xgc/-/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/xgc/-/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='xgc'
614PACKAGE_TARNAME='xgc'
615PACKAGE_VERSION='1.0.6'
616PACKAGE_STRING='xgc 1.0.6'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xgc/-/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
657appdefaultdir
658XGC_LIBS
659XGC_CFLAGS
660YACC_INST
661YFLAGS
662YACC
663LEXLIB
664LEX_OUTPUT_ROOT
665LEX
666MAN_SUBSTS
667XORG_MAN_PAGE
668ADMIN_MAN_DIR
669DRIVER_MAN_DIR
670MISC_MAN_DIR
671FILE_MAN_DIR
672LIB_MAN_DIR
673APP_MAN_DIR
674ADMIN_MAN_SUFFIX
675DRIVER_MAN_SUFFIX
676MISC_MAN_SUFFIX
677FILE_MAN_SUFFIX
678LIB_MAN_SUFFIX
679APP_MAN_SUFFIX
680SED
681host_os
682host_vendor
683host_cpu
684host
685build_os
686build_vendor
687build_cpu
688build
689INSTALL_CMD
690PKG_CONFIG_LIBDIR
691PKG_CONFIG_PATH
692PKG_CONFIG
693CHANGELOG_CMD
694STRICT_CFLAGS
695CWARNFLAGS
696BASE_CFLAGS
697am__fastdepCC_FALSE
698am__fastdepCC_TRUE
699CCDEPMODE
700am__nodep
701AMDEPBACKSLASH
702AMDEP_FALSE
703AMDEP_TRUE
704am__include
705DEPDIR
706OBJEXT
707EXEEXT
708ac_ct_CC
709CPPFLAGS
710LDFLAGS
711CFLAGS
712CC
713AM_BACKSLASH
714AM_DEFAULT_VERBOSITY
715AM_DEFAULT_V
716AM_V
717CSCOPE
718ETAGS
719CTAGS
720am__untar
721am__tar
722AMTAR
723am__leading_dot
724SET_MAKE
725AWK
726mkdir_p
727MKDIR_P
728INSTALL_STRIP_PROGRAM
729STRIP
730install_sh
731MAKEINFO
732AUTOHEADER
733AUTOMAKE
734AUTOCONF
735ACLOCAL
736VERSION
737PACKAGE
738CYGPATH_W
739am__isrc
740INSTALL_DATA
741INSTALL_SCRIPT
742INSTALL_PROGRAM
743target_alias
744host_alias
745build_alias
746LIBS
747ECHO_T
748ECHO_N
749ECHO_C
750DEFS
751mandir
752localedir
753libdir
754psdir
755pdfdir
756dvidir
757htmldir
758infodir
759docdir
760oldincludedir
761includedir
762runstatedir
763localstatedir
764sharedstatedir
765sysconfdir
766datadir
767datarootdir
768libexecdir
769sbindir
770bindir
771program_transform_name
772prefix
773exec_prefix
774PACKAGE_URL
775PACKAGE_BUGREPORT
776PACKAGE_STRING
777PACKAGE_VERSION
778PACKAGE_TARNAME
779PACKAGE_NAME
780PATH_SEPARATOR
781SHELL
782am__quote'
783ac_subst_files=''
784ac_user_opts='
785enable_option_checking
786enable_silent_rules
787enable_dependency_tracking
788enable_selective_werror
789enable_strict_compilation
790with_appdefaultdir
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
805XGC_CFLAGS
806XGC_LIBS'
807
808
809# Initialize some variables set by options.
810ac_init_help=
811ac_init_version=false
812ac_unrecognized_opts=
813ac_unrecognized_sep=
814# The variables have the same names as the options, with
815# dashes changed to underlines.
816cache_file=/dev/null
817exec_prefix=NONE
818no_create=
819no_recursion=
820prefix=NONE
821program_prefix=NONE
822program_suffix=NONE
823program_transform_name=s,x,x,
824silent=
825site=
826srcdir=
827verbose=
828x_includes=NONE
829x_libraries=NONE
830
831# Installation directory options.
832# These are left unexpanded so users can "make install exec_prefix=/foo"
833# and all the variables that are supposed to be based on exec_prefix
834# by default will actually change.
835# Use braces instead of parens because sh, perl, etc. also accept them.
836# (The list follows the same order as the GNU Coding Standards.)
837bindir='${exec_prefix}/bin'
838sbindir='${exec_prefix}/sbin'
839libexecdir='${exec_prefix}/libexec'
840datarootdir='${prefix}/share'
841datadir='${datarootdir}'
842sysconfdir='${prefix}/etc'
843sharedstatedir='${prefix}/com'
844localstatedir='${prefix}/var'
845runstatedir='${localstatedir}/run'
846includedir='${prefix}/include'
847oldincludedir='/usr/include'
848docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849infodir='${datarootdir}/info'
850htmldir='${docdir}'
851dvidir='${docdir}'
852pdfdir='${docdir}'
853psdir='${docdir}'
854libdir='${exec_prefix}/lib'
855localedir='${datarootdir}/locale'
856mandir='${datarootdir}/man'
857
858ac_prev=
859ac_dashdash=
860for ac_option
861do
862  # If the previous option needs an argument, assign it.
863  if test -n "$ac_prev"; then
864    eval $ac_prev=\$ac_option
865    ac_prev=
866    continue
867  fi
868
869  case $ac_option in
870  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871  *=)   ac_optarg= ;;
872  *)    ac_optarg=yes ;;
873  esac
874
875  case $ac_dashdash$ac_option in
876  --)
877    ac_dashdash=yes ;;
878
879  -bindir | --bindir | --bindi | --bind | --bin | --bi)
880    ac_prev=bindir ;;
881  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882    bindir=$ac_optarg ;;
883
884  -build | --build | --buil | --bui | --bu)
885    ac_prev=build_alias ;;
886  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
887    build_alias=$ac_optarg ;;
888
889  -cache-file | --cache-file | --cache-fil | --cache-fi \
890  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891    ac_prev=cache_file ;;
892  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
894    cache_file=$ac_optarg ;;
895
896  --config-cache | -C)
897    cache_file=config.cache ;;
898
899  -datadir | --datadir | --datadi | --datad)
900    ac_prev=datadir ;;
901  -datadir=* | --datadir=* | --datadi=* | --datad=*)
902    datadir=$ac_optarg ;;
903
904  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905  | --dataroo | --dataro | --datar)
906    ac_prev=datarootdir ;;
907  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909    datarootdir=$ac_optarg ;;
910
911  -disable-* | --disable-*)
912    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913    # Reject names that are not valid shell variable names.
914    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915      as_fn_error $? "invalid feature name: \`$ac_useropt'"
916    ac_useropt_orig=$ac_useropt
917    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
918    case $ac_user_opts in
919      *"
920"enable_$ac_useropt"
921"*) ;;
922      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923	 ac_unrecognized_sep=', ';;
924    esac
925    eval enable_$ac_useropt=no ;;
926
927  -docdir | --docdir | --docdi | --doc | --do)
928    ac_prev=docdir ;;
929  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930    docdir=$ac_optarg ;;
931
932  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933    ac_prev=dvidir ;;
934  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935    dvidir=$ac_optarg ;;
936
937  -enable-* | --enable-*)
938    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939    # Reject names that are not valid shell variable names.
940    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941      as_fn_error $? "invalid feature name: \`$ac_useropt'"
942    ac_useropt_orig=$ac_useropt
943    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
944    case $ac_user_opts in
945      *"
946"enable_$ac_useropt"
947"*) ;;
948      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949	 ac_unrecognized_sep=', ';;
950    esac
951    eval enable_$ac_useropt=\$ac_optarg ;;
952
953  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955  | --exec | --exe | --ex)
956    ac_prev=exec_prefix ;;
957  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959  | --exec=* | --exe=* | --ex=*)
960    exec_prefix=$ac_optarg ;;
961
962  -gas | --gas | --ga | --g)
963    # Obsolete; use --with-gas.
964    with_gas=yes ;;
965
966  -help | --help | --hel | --he | -h)
967    ac_init_help=long ;;
968  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969    ac_init_help=recursive ;;
970  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971    ac_init_help=short ;;
972
973  -host | --host | --hos | --ho)
974    ac_prev=host_alias ;;
975  -host=* | --host=* | --hos=* | --ho=*)
976    host_alias=$ac_optarg ;;
977
978  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979    ac_prev=htmldir ;;
980  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981  | --ht=*)
982    htmldir=$ac_optarg ;;
983
984  -includedir | --includedir | --includedi | --included | --include \
985  | --includ | --inclu | --incl | --inc)
986    ac_prev=includedir ;;
987  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988  | --includ=* | --inclu=* | --incl=* | --inc=*)
989    includedir=$ac_optarg ;;
990
991  -infodir | --infodir | --infodi | --infod | --info | --inf)
992    ac_prev=infodir ;;
993  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994    infodir=$ac_optarg ;;
995
996  -libdir | --libdir | --libdi | --libd)
997    ac_prev=libdir ;;
998  -libdir=* | --libdir=* | --libdi=* | --libd=*)
999    libdir=$ac_optarg ;;
1000
1001  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002  | --libexe | --libex | --libe)
1003    ac_prev=libexecdir ;;
1004  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005  | --libexe=* | --libex=* | --libe=*)
1006    libexecdir=$ac_optarg ;;
1007
1008  -localedir | --localedir | --localedi | --localed | --locale)
1009    ac_prev=localedir ;;
1010  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011    localedir=$ac_optarg ;;
1012
1013  -localstatedir | --localstatedir | --localstatedi | --localstated \
1014  | --localstate | --localstat | --localsta | --localst | --locals)
1015    ac_prev=localstatedir ;;
1016  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018    localstatedir=$ac_optarg ;;
1019
1020  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021    ac_prev=mandir ;;
1022  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023    mandir=$ac_optarg ;;
1024
1025  -nfp | --nfp | --nf)
1026    # Obsolete; use --without-fp.
1027    with_fp=no ;;
1028
1029  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030  | --no-cr | --no-c | -n)
1031    no_create=yes ;;
1032
1033  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035    no_recursion=yes ;;
1036
1037  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039  | --oldin | --oldi | --old | --ol | --o)
1040    ac_prev=oldincludedir ;;
1041  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044    oldincludedir=$ac_optarg ;;
1045
1046  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047    ac_prev=prefix ;;
1048  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049    prefix=$ac_optarg ;;
1050
1051  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052  | --program-pre | --program-pr | --program-p)
1053    ac_prev=program_prefix ;;
1054  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056    program_prefix=$ac_optarg ;;
1057
1058  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059  | --program-suf | --program-su | --program-s)
1060    ac_prev=program_suffix ;;
1061  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063    program_suffix=$ac_optarg ;;
1064
1065  -program-transform-name | --program-transform-name \
1066  | --program-transform-nam | --program-transform-na \
1067  | --program-transform-n | --program-transform- \
1068  | --program-transform | --program-transfor \
1069  | --program-transfo | --program-transf \
1070  | --program-trans | --program-tran \
1071  | --progr-tra | --program-tr | --program-t)
1072    ac_prev=program_transform_name ;;
1073  -program-transform-name=* | --program-transform-name=* \
1074  | --program-transform-nam=* | --program-transform-na=* \
1075  | --program-transform-n=* | --program-transform-=* \
1076  | --program-transform=* | --program-transfor=* \
1077  | --program-transfo=* | --program-transf=* \
1078  | --program-trans=* | --program-tran=* \
1079  | --progr-tra=* | --program-tr=* | --program-t=*)
1080    program_transform_name=$ac_optarg ;;
1081
1082  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083    ac_prev=pdfdir ;;
1084  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085    pdfdir=$ac_optarg ;;
1086
1087  -psdir | --psdir | --psdi | --psd | --ps)
1088    ac_prev=psdir ;;
1089  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090    psdir=$ac_optarg ;;
1091
1092  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093  | -silent | --silent | --silen | --sile | --sil)
1094    silent=yes ;;
1095
1096  -runstatedir | --runstatedir | --runstatedi | --runstated \
1097  | --runstate | --runstat | --runsta | --runst | --runs \
1098  | --run | --ru | --r)
1099    ac_prev=runstatedir ;;
1100  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1101  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1102  | --run=* | --ru=* | --r=*)
1103    runstatedir=$ac_optarg ;;
1104
1105  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106    ac_prev=sbindir ;;
1107  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108  | --sbi=* | --sb=*)
1109    sbindir=$ac_optarg ;;
1110
1111  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113  | --sharedst | --shareds | --shared | --share | --shar \
1114  | --sha | --sh)
1115    ac_prev=sharedstatedir ;;
1116  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119  | --sha=* | --sh=*)
1120    sharedstatedir=$ac_optarg ;;
1121
1122  -site | --site | --sit)
1123    ac_prev=site ;;
1124  -site=* | --site=* | --sit=*)
1125    site=$ac_optarg ;;
1126
1127  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128    ac_prev=srcdir ;;
1129  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130    srcdir=$ac_optarg ;;
1131
1132  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133  | --syscon | --sysco | --sysc | --sys | --sy)
1134    ac_prev=sysconfdir ;;
1135  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137    sysconfdir=$ac_optarg ;;
1138
1139  -target | --target | --targe | --targ | --tar | --ta | --t)
1140    ac_prev=target_alias ;;
1141  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142    target_alias=$ac_optarg ;;
1143
1144  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145    verbose=yes ;;
1146
1147  -version | --version | --versio | --versi | --vers | -V)
1148    ac_init_version=: ;;
1149
1150  -with-* | --with-*)
1151    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152    # Reject names that are not valid shell variable names.
1153    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154      as_fn_error $? "invalid package name: \`$ac_useropt'"
1155    ac_useropt_orig=$ac_useropt
1156    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1157    case $ac_user_opts in
1158      *"
1159"with_$ac_useropt"
1160"*) ;;
1161      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162	 ac_unrecognized_sep=', ';;
1163    esac
1164    eval with_$ac_useropt=\$ac_optarg ;;
1165
1166  -without-* | --without-*)
1167    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168    # Reject names that are not valid shell variable names.
1169    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170      as_fn_error $? "invalid package name: \`$ac_useropt'"
1171    ac_useropt_orig=$ac_useropt
1172    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1173    case $ac_user_opts in
1174      *"
1175"with_$ac_useropt"
1176"*) ;;
1177      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178	 ac_unrecognized_sep=', ';;
1179    esac
1180    eval with_$ac_useropt=no ;;
1181
1182  --x)
1183    # Obsolete; use --with-x.
1184    with_x=yes ;;
1185
1186  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187  | --x-incl | --x-inc | --x-in | --x-i)
1188    ac_prev=x_includes ;;
1189  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191    x_includes=$ac_optarg ;;
1192
1193  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195    ac_prev=x_libraries ;;
1196  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198    x_libraries=$ac_optarg ;;
1199
1200  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1201Try \`$0 --help' for more information"
1202    ;;
1203
1204  *=*)
1205    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206    # Reject names that are not valid shell variable names.
1207    case $ac_envvar in #(
1208      '' | [0-9]* | *[!_$as_cr_alnum]* )
1209      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1210    esac
1211    eval $ac_envvar=\$ac_optarg
1212    export $ac_envvar ;;
1213
1214  *)
1215    # FIXME: should be removed in autoconf 3.0.
1216    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1217    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1219    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1220    ;;
1221
1222  esac
1223done
1224
1225if test -n "$ac_prev"; then
1226  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227  as_fn_error $? "missing argument to $ac_option"
1228fi
1229
1230if test -n "$ac_unrecognized_opts"; then
1231  case $enable_option_checking in
1232    no) ;;
1233    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1234    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235  esac
1236fi
1237
1238# Check all directory arguments for consistency.
1239for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240		datadir sysconfdir sharedstatedir localstatedir includedir \
1241		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242		libdir localedir mandir runstatedir
1243do
1244  eval ac_val=\$$ac_var
1245  # Remove trailing slashes.
1246  case $ac_val in
1247    */ )
1248      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249      eval $ac_var=\$ac_val;;
1250  esac
1251  # Be sure to have absolute directory names.
1252  case $ac_val in
1253    [\\/$]* | ?:[\\/]* )  continue;;
1254    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255  esac
1256  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1257done
1258
1259# There might be people who depend on the old broken behavior: `$host'
1260# used to hold the argument of --host etc.
1261# FIXME: To remove some day.
1262build=$build_alias
1263host=$host_alias
1264target=$target_alias
1265
1266# FIXME: To remove some day.
1267if test "x$host_alias" != x; then
1268  if test "x$build_alias" = x; then
1269    cross_compiling=maybe
1270  elif test "x$build_alias" != "x$host_alias"; then
1271    cross_compiling=yes
1272  fi
1273fi
1274
1275ac_tool_prefix=
1276test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277
1278test "$silent" = yes && exec 6>/dev/null
1279
1280
1281ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282ac_ls_di=`ls -di .` &&
1283ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284  as_fn_error $? "working directory cannot be determined"
1285test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286  as_fn_error $? "pwd does not report name of working directory"
1287
1288
1289# Find the source files, if location was not specified.
1290if test -z "$srcdir"; then
1291  ac_srcdir_defaulted=yes
1292  # Try the directory containing this script, then the parent directory.
1293  ac_confdir=`$as_dirname -- "$as_myself" ||
1294$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295	 X"$as_myself" : 'X\(//\)[^/]' \| \
1296	 X"$as_myself" : 'X\(//\)$' \| \
1297	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298printf "%s\n" X"$as_myself" |
1299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300	    s//\1/
1301	    q
1302	  }
1303	  /^X\(\/\/\)[^/].*/{
1304	    s//\1/
1305	    q
1306	  }
1307	  /^X\(\/\/\)$/{
1308	    s//\1/
1309	    q
1310	  }
1311	  /^X\(\/\).*/{
1312	    s//\1/
1313	    q
1314	  }
1315	  s/.*/./; q'`
1316  srcdir=$ac_confdir
1317  if test ! -r "$srcdir/$ac_unique_file"; then
1318    srcdir=..
1319  fi
1320else
1321  ac_srcdir_defaulted=no
1322fi
1323if test ! -r "$srcdir/$ac_unique_file"; then
1324  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1326fi
1327ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328ac_abs_confdir=`(
1329	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1330	pwd)`
1331# When building in place, set srcdir=.
1332if test "$ac_abs_confdir" = "$ac_pwd"; then
1333  srcdir=.
1334fi
1335# Remove unnecessary trailing slashes from srcdir.
1336# Double slashes in file names in object file debugging info
1337# mess up M-x gdb in Emacs.
1338case $srcdir in
1339*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340esac
1341for ac_var in $ac_precious_vars; do
1342  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343  eval ac_env_${ac_var}_value=\$${ac_var}
1344  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346done
1347
1348#
1349# Report the --help message.
1350#
1351if test "$ac_init_help" = "long"; then
1352  # Omit some internal or obsolete options to make the list less imposing.
1353  # This message is too long to be a string in the A/UX 3.1 sh.
1354  cat <<_ACEOF
1355\`configure' configures xgc 1.0.6 to adapt to many kinds of systems.
1356
1357Usage: $0 [OPTION]... [VAR=VALUE]...
1358
1359To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360VAR=VALUE.  See below for descriptions of some of the useful variables.
1361
1362Defaults for the options are specified in brackets.
1363
1364Configuration:
1365  -h, --help              display this help and exit
1366      --help=short        display options specific to this package
1367      --help=recursive    display the short help of all the included packages
1368  -V, --version           display version information and exit
1369  -q, --quiet, --silent   do not print \`checking ...' messages
1370      --cache-file=FILE   cache test results in FILE [disabled]
1371  -C, --config-cache      alias for \`--cache-file=config.cache'
1372  -n, --no-create         do not create output files
1373      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1374
1375Installation directories:
1376  --prefix=PREFIX         install architecture-independent files in PREFIX
1377                          [$ac_default_prefix]
1378  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1379                          [PREFIX]
1380
1381By default, \`make install' will install all the files in
1382\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1383an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384for instance \`--prefix=\$HOME'.
1385
1386For better control, use the options below.
1387
1388Fine tuning of the installation directories:
1389  --bindir=DIR            user executables [EPREFIX/bin]
1390  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1391  --libexecdir=DIR        program executables [EPREFIX/libexec]
1392  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1393  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1394  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1395  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1396  --libdir=DIR            object code libraries [EPREFIX/lib]
1397  --includedir=DIR        C header files [PREFIX/include]
1398  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1399  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1400  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1401  --infodir=DIR           info documentation [DATAROOTDIR/info]
1402  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1403  --mandir=DIR            man documentation [DATAROOTDIR/man]
1404  --docdir=DIR            documentation root [DATAROOTDIR/doc/xgc]
1405  --htmldir=DIR           html documentation [DOCDIR]
1406  --dvidir=DIR            dvi documentation [DOCDIR]
1407  --pdfdir=DIR            pdf documentation [DOCDIR]
1408  --psdir=DIR             ps documentation [DOCDIR]
1409_ACEOF
1410
1411  cat <<\_ACEOF
1412
1413Program names:
1414  --program-prefix=PREFIX            prepend PREFIX to installed program names
1415  --program-suffix=SUFFIX            append SUFFIX to installed program names
1416  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1417
1418System types:
1419  --build=BUILD     configure for building on BUILD [guessed]
1420  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1421_ACEOF
1422fi
1423
1424if test -n "$ac_init_help"; then
1425  case $ac_init_help in
1426     short | recursive ) echo "Configuration of xgc 1.0.6:";;
1427   esac
1428  cat <<\_ACEOF
1429
1430Optional Features:
1431  --disable-option-checking  ignore unrecognized --enable/--with options
1432  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1433  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1434  --enable-silent-rules   less verbose build output (undo: "make V=1")
1435  --disable-silent-rules  verbose build output (undo: "make V=0")
1436  --enable-dependency-tracking
1437                          do not reject slow dependency extractors
1438  --disable-dependency-tracking
1439                          speeds up one-time build
1440  --disable-selective-werror
1441                          Turn off selective compiler errors. (default:
1442                          enabled)
1443  --enable-strict-compilation
1444                          Enable all warnings from compiler and make them
1445                          errors (default: disabled)
1446
1447Optional Packages:
1448  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1449  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1450  --with-appdefaultdir=<pathname>
1451                          specify directory for app-defaults files (default is
1452                          autodetected)
1453
1454Some influential environment variables:
1455  CC          C compiler command
1456  CFLAGS      C compiler flags
1457  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1458              nonstandard directory <lib dir>
1459  LIBS        libraries to pass to the linker, e.g. -l<library>
1460  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1461              you have headers in a nonstandard directory <include dir>
1462  PKG_CONFIG  path to pkg-config utility
1463  PKG_CONFIG_PATH
1464              directories to add to pkg-config's search path
1465  PKG_CONFIG_LIBDIR
1466              path overriding pkg-config's built-in search path
1467  YACC        The `Yet Another Compiler Compiler' implementation to use.
1468              Defaults to the first program found out of: `bison -y', `byacc',
1469              `yacc'.
1470  YFLAGS      The list of arguments that will be passed by default to $YACC.
1471              This script will default YFLAGS to the empty string to avoid a
1472              default value of `-d' given by some make applications.
1473  XGC_CFLAGS  C compiler flags for XGC, overriding pkg-config
1474  XGC_LIBS    linker flags for XGC, overriding pkg-config
1475
1476Use these variables to override the choices made by `configure' or to help
1477it to find libraries and programs with nonstandard names/locations.
1478
1479Report bugs to <https://gitlab.freedesktop.org/xorg/app/xgc/-/issues>.
1480_ACEOF
1481ac_status=$?
1482fi
1483
1484if test "$ac_init_help" = "recursive"; then
1485  # If there are subdirs, report their specific --help.
1486  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487    test -d "$ac_dir" ||
1488      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489      continue
1490    ac_builddir=.
1491
1492case "$ac_dir" in
1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494*)
1495  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1496  # A ".." for each directory in $ac_dir_suffix.
1497  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498  case $ac_top_builddir_sub in
1499  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501  esac ;;
1502esac
1503ac_abs_top_builddir=$ac_pwd
1504ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505# for backward compatibility:
1506ac_top_builddir=$ac_top_build_prefix
1507
1508case $srcdir in
1509  .)  # We are building in place.
1510    ac_srcdir=.
1511    ac_top_srcdir=$ac_top_builddir_sub
1512    ac_abs_top_srcdir=$ac_pwd ;;
1513  [\\/]* | ?:[\\/]* )  # Absolute name.
1514    ac_srcdir=$srcdir$ac_dir_suffix;
1515    ac_top_srcdir=$srcdir
1516    ac_abs_top_srcdir=$srcdir ;;
1517  *) # Relative name.
1518    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519    ac_top_srcdir=$ac_top_build_prefix$srcdir
1520    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521esac
1522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524    cd "$ac_dir" || { ac_status=$?; continue; }
1525    # Check for configure.gnu first; this name is used for a wrapper for
1526    # Metaconfig's "Configure" on case-insensitive file systems.
1527    if test -f "$ac_srcdir/configure.gnu"; then
1528      echo &&
1529      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530    elif test -f "$ac_srcdir/configure"; then
1531      echo &&
1532      $SHELL "$ac_srcdir/configure" --help=recursive
1533    else
1534      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535    fi || ac_status=$?
1536    cd "$ac_pwd" || { ac_status=$?; break; }
1537  done
1538fi
1539
1540test -n "$ac_init_help" && exit $ac_status
1541if $ac_init_version; then
1542  cat <<\_ACEOF
1543xgc configure 1.0.6
1544generated by GNU Autoconf 2.71
1545
1546Copyright (C) 2021 Free Software Foundation, Inc.
1547This configure script is free software; the Free Software Foundation
1548gives unlimited permission to copy, distribute and modify it.
1549_ACEOF
1550  exit
1551fi
1552
1553## ------------------------ ##
1554## Autoconf initialization. ##
1555## ------------------------ ##
1556
1557# ac_fn_c_try_compile LINENO
1558# --------------------------
1559# Try to compile conftest.$ac_ext, and return whether this succeeded.
1560ac_fn_c_try_compile ()
1561{
1562  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563  rm -f conftest.$ac_objext conftest.beam
1564  if { { ac_try="$ac_compile"
1565case "(($ac_try" in
1566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567  *) ac_try_echo=$ac_try;;
1568esac
1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570printf "%s\n" "$ac_try_echo"; } >&5
1571  (eval "$ac_compile") 2>conftest.err
1572  ac_status=$?
1573  if test -s conftest.err; then
1574    grep -v '^ *+' conftest.err >conftest.er1
1575    cat conftest.er1 >&5
1576    mv -f conftest.er1 conftest.err
1577  fi
1578  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579  test $ac_status = 0; } && {
1580	 test -z "$ac_c_werror_flag" ||
1581	 test ! -s conftest.err
1582       } && test -s conftest.$ac_objext
1583then :
1584  ac_retval=0
1585else $as_nop
1586  printf "%s\n" "$as_me: failed program was:" >&5
1587sed 's/^/| /' conftest.$ac_ext >&5
1588
1589	ac_retval=1
1590fi
1591  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592  as_fn_set_status $ac_retval
1593
1594} # ac_fn_c_try_compile
1595
1596# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1597# ------------------------------------------------------------------
1598# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1599# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1600ac_fn_check_decl ()
1601{
1602  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603  as_decl_name=`echo $2|sed 's/ *(.*//'`
1604  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1605printf %s "checking whether $as_decl_name is declared... " >&6; }
1606if eval test \${$3+y}
1607then :
1608  printf %s "(cached) " >&6
1609else $as_nop
1610  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1611  eval ac_save_FLAGS=\$$6
1612  as_fn_append $6 " $5"
1613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614/* end confdefs.h.  */
1615$4
1616int
1617main (void)
1618{
1619#ifndef $as_decl_name
1620#ifdef __cplusplus
1621  (void) $as_decl_use;
1622#else
1623  (void) $as_decl_name;
1624#endif
1625#endif
1626
1627  ;
1628  return 0;
1629}
1630_ACEOF
1631if ac_fn_c_try_compile "$LINENO"
1632then :
1633  eval "$3=yes"
1634else $as_nop
1635  eval "$3=no"
1636fi
1637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1638  eval $6=\$ac_save_FLAGS
1639
1640fi
1641eval ac_res=\$$3
1642	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643printf "%s\n" "$ac_res" >&6; }
1644  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645
1646} # ac_fn_check_decl
1647
1648# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649# -------------------------------------------------------
1650# Tests whether HEADER exists and can be compiled using the include files in
1651# INCLUDES, setting the cache variable VAR accordingly.
1652ac_fn_c_check_header_compile ()
1653{
1654  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656printf %s "checking for $2... " >&6; }
1657if eval test \${$3+y}
1658then :
1659  printf %s "(cached) " >&6
1660else $as_nop
1661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662/* end confdefs.h.  */
1663$4
1664#include <$2>
1665_ACEOF
1666if ac_fn_c_try_compile "$LINENO"
1667then :
1668  eval "$3=yes"
1669else $as_nop
1670  eval "$3=no"
1671fi
1672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1673fi
1674eval ac_res=\$$3
1675	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676printf "%s\n" "$ac_res" >&6; }
1677  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678
1679} # ac_fn_c_check_header_compile
1680
1681# ac_fn_c_try_link LINENO
1682# -----------------------
1683# Try to link conftest.$ac_ext, and return whether this succeeded.
1684ac_fn_c_try_link ()
1685{
1686  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1688  if { { ac_try="$ac_link"
1689case "(($ac_try" in
1690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691  *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694printf "%s\n" "$ac_try_echo"; } >&5
1695  (eval "$ac_link") 2>conftest.err
1696  ac_status=$?
1697  if test -s conftest.err; then
1698    grep -v '^ *+' conftest.err >conftest.er1
1699    cat conftest.er1 >&5
1700    mv -f conftest.er1 conftest.err
1701  fi
1702  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703  test $ac_status = 0; } && {
1704	 test -z "$ac_c_werror_flag" ||
1705	 test ! -s conftest.err
1706       } && test -s conftest$ac_exeext && {
1707	 test "$cross_compiling" = yes ||
1708	 test -x conftest$ac_exeext
1709       }
1710then :
1711  ac_retval=0
1712else $as_nop
1713  printf "%s\n" "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
1715
1716	ac_retval=1
1717fi
1718  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720  # interfere with the next link command; also delete a directory that is
1721  # left behind by Apple's compiler.  We do this before executing the actions.
1722  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724  as_fn_set_status $ac_retval
1725
1726} # ac_fn_c_try_link
1727ac_configure_args_raw=
1728for ac_arg
1729do
1730  case $ac_arg in
1731  *\'*)
1732    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1733  esac
1734  as_fn_append ac_configure_args_raw " '$ac_arg'"
1735done
1736
1737case $ac_configure_args_raw in
1738  *$as_nl*)
1739    ac_safe_unquote= ;;
1740  *)
1741    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1742    ac_unsafe_a="$ac_unsafe_z#~"
1743    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1744    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1745esac
1746
1747cat >config.log <<_ACEOF
1748This file contains any messages produced by compilers while
1749running configure, to aid debugging if configure makes a mistake.
1750
1751It was created by xgc $as_me 1.0.6, which was
1752generated by GNU Autoconf 2.71.  Invocation command line was
1753
1754  $ $0$ac_configure_args_raw
1755
1756_ACEOF
1757exec 5>>config.log
1758{
1759cat <<_ASUNAME
1760## --------- ##
1761## Platform. ##
1762## --------- ##
1763
1764hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1765uname -m = `(uname -m) 2>/dev/null || echo unknown`
1766uname -r = `(uname -r) 2>/dev/null || echo unknown`
1767uname -s = `(uname -s) 2>/dev/null || echo unknown`
1768uname -v = `(uname -v) 2>/dev/null || echo unknown`
1769
1770/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1771/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1772
1773/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1774/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1775/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1776/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1777/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1778/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1779/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1780
1781_ASUNAME
1782
1783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784for as_dir in $PATH
1785do
1786  IFS=$as_save_IFS
1787  case $as_dir in #(((
1788    '') as_dir=./ ;;
1789    */) ;;
1790    *) as_dir=$as_dir/ ;;
1791  esac
1792    printf "%s\n" "PATH: $as_dir"
1793  done
1794IFS=$as_save_IFS
1795
1796} >&5
1797
1798cat >&5 <<_ACEOF
1799
1800
1801## ----------- ##
1802## Core tests. ##
1803## ----------- ##
1804
1805_ACEOF
1806
1807
1808# Keep a trace of the command line.
1809# Strip out --no-create and --no-recursion so they do not pile up.
1810# Strip out --silent because we don't want to record it for future runs.
1811# Also quote any args containing shell meta-characters.
1812# Make two passes to allow for proper duplicate-argument suppression.
1813ac_configure_args=
1814ac_configure_args0=
1815ac_configure_args1=
1816ac_must_keep_next=false
1817for ac_pass in 1 2
1818do
1819  for ac_arg
1820  do
1821    case $ac_arg in
1822    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1823    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1824    | -silent | --silent | --silen | --sile | --sil)
1825      continue ;;
1826    *\'*)
1827      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1828    esac
1829    case $ac_pass in
1830    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1831    2)
1832      as_fn_append ac_configure_args1 " '$ac_arg'"
1833      if test $ac_must_keep_next = true; then
1834	ac_must_keep_next=false # Got value, back to normal.
1835      else
1836	case $ac_arg in
1837	  *=* | --config-cache | -C | -disable-* | --disable-* \
1838	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1839	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1840	  | -with-* | --with-* | -without-* | --without-* | --x)
1841	    case "$ac_configure_args0 " in
1842	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1843	    esac
1844	    ;;
1845	  -* ) ac_must_keep_next=true ;;
1846	esac
1847      fi
1848      as_fn_append ac_configure_args " '$ac_arg'"
1849      ;;
1850    esac
1851  done
1852done
1853{ ac_configure_args0=; unset ac_configure_args0;}
1854{ ac_configure_args1=; unset ac_configure_args1;}
1855
1856# When interrupted or exit'd, cleanup temporary files, and complete
1857# config.log.  We remove comments because anyway the quotes in there
1858# would cause problems or look ugly.
1859# WARNING: Use '\'' to represent an apostrophe within the trap.
1860# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1861trap 'exit_status=$?
1862  # Sanitize IFS.
1863  IFS=" ""	$as_nl"
1864  # Save into config.log some information that might help in debugging.
1865  {
1866    echo
1867
1868    printf "%s\n" "## ---------------- ##
1869## Cache variables. ##
1870## ---------------- ##"
1871    echo
1872    # The following way of writing the cache mishandles newlines in values,
1873(
1874  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1875    eval ac_val=\$$ac_var
1876    case $ac_val in #(
1877    *${as_nl}*)
1878      case $ac_var in #(
1879      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1880printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1881      esac
1882      case $ac_var in #(
1883      _ | IFS | as_nl) ;; #(
1884      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1885      *) { eval $ac_var=; unset $ac_var;} ;;
1886      esac ;;
1887    esac
1888  done
1889  (set) 2>&1 |
1890    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1891    *${as_nl}ac_space=\ *)
1892      sed -n \
1893	"s/'\''/'\''\\\\'\'''\''/g;
1894	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1895      ;; #(
1896    *)
1897      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1898      ;;
1899    esac |
1900    sort
1901)
1902    echo
1903
1904    printf "%s\n" "## ----------------- ##
1905## Output variables. ##
1906## ----------------- ##"
1907    echo
1908    for ac_var in $ac_subst_vars
1909    do
1910      eval ac_val=\$$ac_var
1911      case $ac_val in
1912      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1913      esac
1914      printf "%s\n" "$ac_var='\''$ac_val'\''"
1915    done | sort
1916    echo
1917
1918    if test -n "$ac_subst_files"; then
1919      printf "%s\n" "## ------------------- ##
1920## File substitutions. ##
1921## ------------------- ##"
1922      echo
1923      for ac_var in $ac_subst_files
1924      do
1925	eval ac_val=\$$ac_var
1926	case $ac_val in
1927	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1928	esac
1929	printf "%s\n" "$ac_var='\''$ac_val'\''"
1930      done | sort
1931      echo
1932    fi
1933
1934    if test -s confdefs.h; then
1935      printf "%s\n" "## ----------- ##
1936## confdefs.h. ##
1937## ----------- ##"
1938      echo
1939      cat confdefs.h
1940      echo
1941    fi
1942    test "$ac_signal" != 0 &&
1943      printf "%s\n" "$as_me: caught signal $ac_signal"
1944    printf "%s\n" "$as_me: exit $exit_status"
1945  } >&5
1946  rm -f core *.core core.conftest.* &&
1947    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1948    exit $exit_status
1949' 0
1950for ac_signal in 1 2 13 15; do
1951  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1952done
1953ac_signal=0
1954
1955# confdefs.h avoids OS command line length limits that DEFS can exceed.
1956rm -f -r conftest* confdefs.h
1957
1958printf "%s\n" "/* confdefs.h */" > confdefs.h
1959
1960# Predefined preprocessor variables.
1961
1962printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1963
1964printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1965
1966printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1967
1968printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1969
1970printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1971
1972printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1973
1974
1975# Let the site file select an alternate cache file if it wants to.
1976# Prefer an explicitly selected file to automatically selected ones.
1977if test -n "$CONFIG_SITE"; then
1978  ac_site_files="$CONFIG_SITE"
1979elif test "x$prefix" != xNONE; then
1980  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1981else
1982  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1983fi
1984
1985for ac_site_file in $ac_site_files
1986do
1987  case $ac_site_file in #(
1988  */*) :
1989     ;; #(
1990  *) :
1991    ac_site_file=./$ac_site_file ;;
1992esac
1993  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1994    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1995printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1996    sed 's/^/| /' "$ac_site_file" >&5
1997    . "$ac_site_file" \
1998      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1999printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2000as_fn_error $? "failed to load site script $ac_site_file
2001See \`config.log' for more details" "$LINENO" 5; }
2002  fi
2003done
2004
2005if test -r "$cache_file"; then
2006  # Some versions of bash will fail to source /dev/null (special files
2007  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2008  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2009    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2010printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2011    case $cache_file in
2012      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2013      *)                      . "./$cache_file";;
2014    esac
2015  fi
2016else
2017  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2018printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2019  >$cache_file
2020fi
2021
2022# Test code for whether the C compiler supports C89 (global declarations)
2023ac_c_conftest_c89_globals='
2024/* Does the compiler advertise C89 conformance?
2025   Do not test the value of __STDC__, because some compilers set it to 0
2026   while being otherwise adequately conformant. */
2027#if !defined __STDC__
2028# error "Compiler does not advertise C89 conformance"
2029#endif
2030
2031#include <stddef.h>
2032#include <stdarg.h>
2033struct stat;
2034/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2035struct buf { int x; };
2036struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2037static char *e (p, i)
2038     char **p;
2039     int i;
2040{
2041  return p[i];
2042}
2043static char *f (char * (*g) (char **, int), char **p, ...)
2044{
2045  char *s;
2046  va_list v;
2047  va_start (v,p);
2048  s = g (p, va_arg (v,int));
2049  va_end (v);
2050  return s;
2051}
2052
2053/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2054   function prototypes and stuff, but not \xHH hex character constants.
2055   These do not provoke an error unfortunately, instead are silently treated
2056   as an "x".  The following induces an error, until -std is added to get
2057   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2058   array size at least.  It is necessary to write \x00 == 0 to get something
2059   that is true only with -std.  */
2060int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2061
2062/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2063   inside strings and character constants.  */
2064#define FOO(x) '\''x'\''
2065int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2066
2067int test (int i, double x);
2068struct s1 {int (*f) (int a);};
2069struct s2 {int (*f) (double a);};
2070int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2071               int, int);'
2072
2073# Test code for whether the C compiler supports C89 (body of main).
2074ac_c_conftest_c89_main='
2075ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2076'
2077
2078# Test code for whether the C compiler supports C99 (global declarations)
2079ac_c_conftest_c99_globals='
2080// Does the compiler advertise C99 conformance?
2081#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2082# error "Compiler does not advertise C99 conformance"
2083#endif
2084
2085#include <stdbool.h>
2086extern int puts (const char *);
2087extern int printf (const char *, ...);
2088extern int dprintf (int, const char *, ...);
2089extern void *malloc (size_t);
2090
2091// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2092// dprintf is used instead of fprintf to avoid needing to declare
2093// FILE and stderr.
2094#define debug(...) dprintf (2, __VA_ARGS__)
2095#define showlist(...) puts (#__VA_ARGS__)
2096#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2097static void
2098test_varargs_macros (void)
2099{
2100  int x = 1234;
2101  int y = 5678;
2102  debug ("Flag");
2103  debug ("X = %d\n", x);
2104  showlist (The first, second, and third items.);
2105  report (x>y, "x is %d but y is %d", x, y);
2106}
2107
2108// Check long long types.
2109#define BIG64 18446744073709551615ull
2110#define BIG32 4294967295ul
2111#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2112#if !BIG_OK
2113  #error "your preprocessor is broken"
2114#endif
2115#if BIG_OK
2116#else
2117  #error "your preprocessor is broken"
2118#endif
2119static long long int bignum = -9223372036854775807LL;
2120static unsigned long long int ubignum = BIG64;
2121
2122struct incomplete_array
2123{
2124  int datasize;
2125  double data[];
2126};
2127
2128struct named_init {
2129  int number;
2130  const wchar_t *name;
2131  double average;
2132};
2133
2134typedef const char *ccp;
2135
2136static inline int
2137test_restrict (ccp restrict text)
2138{
2139  // See if C++-style comments work.
2140  // Iterate through items via the restricted pointer.
2141  // Also check for declarations in for loops.
2142  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2143    continue;
2144  return 0;
2145}
2146
2147// Check varargs and va_copy.
2148static bool
2149test_varargs (const char *format, ...)
2150{
2151  va_list args;
2152  va_start (args, format);
2153  va_list args_copy;
2154  va_copy (args_copy, args);
2155
2156  const char *str = "";
2157  int number = 0;
2158  float fnumber = 0;
2159
2160  while (*format)
2161    {
2162      switch (*format++)
2163	{
2164	case '\''s'\'': // string
2165	  str = va_arg (args_copy, const char *);
2166	  break;
2167	case '\''d'\'': // int
2168	  number = va_arg (args_copy, int);
2169	  break;
2170	case '\''f'\'': // float
2171	  fnumber = va_arg (args_copy, double);
2172	  break;
2173	default:
2174	  break;
2175	}
2176    }
2177  va_end (args_copy);
2178  va_end (args);
2179
2180  return *str && number && fnumber;
2181}
2182'
2183
2184# Test code for whether the C compiler supports C99 (body of main).
2185ac_c_conftest_c99_main='
2186  // Check bool.
2187  _Bool success = false;
2188  success |= (argc != 0);
2189
2190  // Check restrict.
2191  if (test_restrict ("String literal") == 0)
2192    success = true;
2193  char *restrict newvar = "Another string";
2194
2195  // Check varargs.
2196  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2197  test_varargs_macros ();
2198
2199  // Check flexible array members.
2200  struct incomplete_array *ia =
2201    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2202  ia->datasize = 10;
2203  for (int i = 0; i < ia->datasize; ++i)
2204    ia->data[i] = i * 1.234;
2205
2206  // Check named initializers.
2207  struct named_init ni = {
2208    .number = 34,
2209    .name = L"Test wide string",
2210    .average = 543.34343,
2211  };
2212
2213  ni.number = 58;
2214
2215  int dynamic_array[ni.number];
2216  dynamic_array[0] = argv[0][0];
2217  dynamic_array[ni.number - 1] = 543;
2218
2219  // work around unused variable warnings
2220  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2221	 || dynamic_array[ni.number - 1] != 543);
2222'
2223
2224# Test code for whether the C compiler supports C11 (global declarations)
2225ac_c_conftest_c11_globals='
2226// Does the compiler advertise C11 conformance?
2227#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2228# error "Compiler does not advertise C11 conformance"
2229#endif
2230
2231// Check _Alignas.
2232char _Alignas (double) aligned_as_double;
2233char _Alignas (0) no_special_alignment;
2234extern char aligned_as_int;
2235char _Alignas (0) _Alignas (int) aligned_as_int;
2236
2237// Check _Alignof.
2238enum
2239{
2240  int_alignment = _Alignof (int),
2241  int_array_alignment = _Alignof (int[100]),
2242  char_alignment = _Alignof (char)
2243};
2244_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2245
2246// Check _Noreturn.
2247int _Noreturn does_not_return (void) { for (;;) continue; }
2248
2249// Check _Static_assert.
2250struct test_static_assert
2251{
2252  int x;
2253  _Static_assert (sizeof (int) <= sizeof (long int),
2254                  "_Static_assert does not work in struct");
2255  long int y;
2256};
2257
2258// Check UTF-8 literals.
2259#define u8 syntax error!
2260char const utf8_literal[] = u8"happens to be ASCII" "another string";
2261
2262// Check duplicate typedefs.
2263typedef long *long_ptr;
2264typedef long int *long_ptr;
2265typedef long_ptr long_ptr;
2266
2267// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2268struct anonymous
2269{
2270  union {
2271    struct { int i; int j; };
2272    struct { int k; long int l; } w;
2273  };
2274  int m;
2275} v1;
2276'
2277
2278# Test code for whether the C compiler supports C11 (body of main).
2279ac_c_conftest_c11_main='
2280  _Static_assert ((offsetof (struct anonymous, i)
2281		   == offsetof (struct anonymous, w.k)),
2282		  "Anonymous union alignment botch");
2283  v1.i = 2;
2284  v1.w.k = 5;
2285  ok |= v1.i != 5;
2286'
2287
2288# Test code for whether the C compiler supports C11 (complete).
2289ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2290${ac_c_conftest_c99_globals}
2291${ac_c_conftest_c11_globals}
2292
2293int
2294main (int argc, char **argv)
2295{
2296  int ok = 0;
2297  ${ac_c_conftest_c89_main}
2298  ${ac_c_conftest_c99_main}
2299  ${ac_c_conftest_c11_main}
2300  return ok;
2301}
2302"
2303
2304# Test code for whether the C compiler supports C99 (complete).
2305ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2306${ac_c_conftest_c99_globals}
2307
2308int
2309main (int argc, char **argv)
2310{
2311  int ok = 0;
2312  ${ac_c_conftest_c89_main}
2313  ${ac_c_conftest_c99_main}
2314  return ok;
2315}
2316"
2317
2318# Test code for whether the C compiler supports C89 (complete).
2319ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2320
2321int
2322main (int argc, char **argv)
2323{
2324  int ok = 0;
2325  ${ac_c_conftest_c89_main}
2326  return ok;
2327}
2328"
2329
2330as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2331as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2332as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2333as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2334as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2335as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2336as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2337as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2338as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2339
2340# Auxiliary files required by this configure script.
2341ac_aux_files="config.guess config.sub compile missing install-sh"
2342
2343# Locations in which to look for auxiliary files.
2344ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2345
2346# Search for a directory containing all of the required auxiliary files,
2347# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2348# If we don't find one directory that contains all the files we need,
2349# we report the set of missing files from the *first* directory in
2350# $ac_aux_dir_candidates and give up.
2351ac_missing_aux_files=""
2352ac_first_candidate=:
2353printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355as_found=false
2356for as_dir in $ac_aux_dir_candidates
2357do
2358  IFS=$as_save_IFS
2359  case $as_dir in #(((
2360    '') as_dir=./ ;;
2361    */) ;;
2362    *) as_dir=$as_dir/ ;;
2363  esac
2364  as_found=:
2365
2366  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2367  ac_aux_dir_found=yes
2368  ac_install_sh=
2369  for ac_aux in $ac_aux_files
2370  do
2371    # As a special case, if "install-sh" is required, that requirement
2372    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2373    # and $ac_install_sh is set appropriately for whichever one is found.
2374    if test x"$ac_aux" = x"install-sh"
2375    then
2376      if test -f "${as_dir}install-sh"; then
2377        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2378        ac_install_sh="${as_dir}install-sh -c"
2379      elif test -f "${as_dir}install.sh"; then
2380        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2381        ac_install_sh="${as_dir}install.sh -c"
2382      elif test -f "${as_dir}shtool"; then
2383        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2384        ac_install_sh="${as_dir}shtool install -c"
2385      else
2386        ac_aux_dir_found=no
2387        if $ac_first_candidate; then
2388          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2389        else
2390          break
2391        fi
2392      fi
2393    else
2394      if test -f "${as_dir}${ac_aux}"; then
2395        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2396      else
2397        ac_aux_dir_found=no
2398        if $ac_first_candidate; then
2399          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2400        else
2401          break
2402        fi
2403      fi
2404    fi
2405  done
2406  if test "$ac_aux_dir_found" = yes; then
2407    ac_aux_dir="$as_dir"
2408    break
2409  fi
2410  ac_first_candidate=false
2411
2412  as_found=false
2413done
2414IFS=$as_save_IFS
2415if $as_found
2416then :
2417
2418else $as_nop
2419  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2420fi
2421
2422
2423# These three variables are undocumented and unsupported,
2424# and are intended to be withdrawn in a future Autoconf release.
2425# They can cause serious problems if a builder's source tree is in a directory
2426# whose full name contains unusual characters.
2427if test -f "${ac_aux_dir}config.guess"; then
2428  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2429fi
2430if test -f "${ac_aux_dir}config.sub"; then
2431  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2432fi
2433if test -f "$ac_aux_dir/configure"; then
2434  ac_configure="$SHELL ${ac_aux_dir}configure"
2435fi
2436
2437# Check that the precious variables saved in the cache have kept the same
2438# value.
2439ac_cache_corrupted=false
2440for ac_var in $ac_precious_vars; do
2441  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2442  eval ac_new_set=\$ac_env_${ac_var}_set
2443  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2444  eval ac_new_val=\$ac_env_${ac_var}_value
2445  case $ac_old_set,$ac_new_set in
2446    set,)
2447      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2448printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2449      ac_cache_corrupted=: ;;
2450    ,set)
2451      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2452printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2453      ac_cache_corrupted=: ;;
2454    ,);;
2455    *)
2456      if test "x$ac_old_val" != "x$ac_new_val"; then
2457	# differences in whitespace do not lead to failure.
2458	ac_old_val_w=`echo x $ac_old_val`
2459	ac_new_val_w=`echo x $ac_new_val`
2460	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2461	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2462printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2463	  ac_cache_corrupted=:
2464	else
2465	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2466printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2467	  eval $ac_var=\$ac_old_val
2468	fi
2469	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2470printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2471	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2472printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2473      fi;;
2474  esac
2475  # Pass precious variables to config.status.
2476  if test "$ac_new_set" = set; then
2477    case $ac_new_val in
2478    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2479    *) ac_arg=$ac_var=$ac_new_val ;;
2480    esac
2481    case " $ac_configure_args " in
2482      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2483      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2484    esac
2485  fi
2486done
2487if $ac_cache_corrupted; then
2488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2489printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2490  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2491printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2492  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2493	    and start over" "$LINENO" 5
2494fi
2495## -------------------- ##
2496## Main body of script. ##
2497## -------------------- ##
2498
2499ac_ext=c
2500ac_cpp='$CPP $CPPFLAGS'
2501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503ac_compiler_gnu=$ac_cv_c_compiler_gnu
2504
2505
2506
2507ac_config_headers="$ac_config_headers config.h"
2508
2509
2510# Initialize Automake
2511am__api_version='1.16'
2512
2513
2514
2515  # Find a good install program.  We prefer a C program (faster),
2516# so one script is as good as another.  But avoid the broken or
2517# incompatible versions:
2518# SysV /etc/install, /usr/sbin/install
2519# SunOS /usr/etc/install
2520# IRIX /sbin/install
2521# AIX /bin/install
2522# AmigaOS /C/install, which installs bootblocks on floppy discs
2523# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2524# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2525# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2526# OS/2's system install, which has a completely different semantic
2527# ./install, which can be erroneously created by make from ./install.sh.
2528# Reject install programs that cannot install multiple files.
2529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2530printf %s "checking for a BSD-compatible install... " >&6; }
2531if test -z "$INSTALL"; then
2532if test ${ac_cv_path_install+y}
2533then :
2534  printf %s "(cached) " >&6
2535else $as_nop
2536  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539  IFS=$as_save_IFS
2540  case $as_dir in #(((
2541    '') as_dir=./ ;;
2542    */) ;;
2543    *) as_dir=$as_dir/ ;;
2544  esac
2545    # Account for fact that we put trailing slashes in our PATH walk.
2546case $as_dir in #((
2547  ./ | /[cC]/* | \
2548  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2549  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2550  /usr/ucb/* ) ;;
2551  *)
2552    # OSF1 and SCO ODT 3.0 have their own names for install.
2553    # Don't use installbsd from OSF since it installs stuff as root
2554    # by default.
2555    for ac_prog in ginstall scoinst install; do
2556      for ac_exec_ext in '' $ac_executable_extensions; do
2557	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2558	  if test $ac_prog = install &&
2559	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2560	    # AIX install.  It has an incompatible calling convention.
2561	    :
2562	  elif test $ac_prog = install &&
2563	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2564	    # program-specific install script used by HP pwplus--don't use.
2565	    :
2566	  else
2567	    rm -rf conftest.one conftest.two conftest.dir
2568	    echo one > conftest.one
2569	    echo two > conftest.two
2570	    mkdir conftest.dir
2571	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2572	      test -s conftest.one && test -s conftest.two &&
2573	      test -s conftest.dir/conftest.one &&
2574	      test -s conftest.dir/conftest.two
2575	    then
2576	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2577	      break 3
2578	    fi
2579	  fi
2580	fi
2581      done
2582    done
2583    ;;
2584esac
2585
2586  done
2587IFS=$as_save_IFS
2588
2589rm -rf conftest.one conftest.two conftest.dir
2590
2591fi
2592  if test ${ac_cv_path_install+y}; then
2593    INSTALL=$ac_cv_path_install
2594  else
2595    # As a last resort, use the slow shell script.  Don't cache a
2596    # value for INSTALL within a source directory, because that will
2597    # break other packages using the cache if that directory is
2598    # removed, or if the value is a relative name.
2599    INSTALL=$ac_install_sh
2600  fi
2601fi
2602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2603printf "%s\n" "$INSTALL" >&6; }
2604
2605# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2606# It thinks the first close brace ends the variable substitution.
2607test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2608
2609test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2610
2611test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2612
2613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2614printf %s "checking whether build environment is sane... " >&6; }
2615# Reject unsafe characters in $srcdir or the absolute working directory
2616# name.  Accept space and tab only in the latter.
2617am_lf='
2618'
2619case `pwd` in
2620  *[\\\"\#\$\&\'\`$am_lf]*)
2621    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2622esac
2623case $srcdir in
2624  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2625    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2626esac
2627
2628# Do 'set' in a subshell so we don't clobber the current shell's
2629# arguments.  Must try -L first in case configure is actually a
2630# symlink; some systems play weird games with the mod time of symlinks
2631# (eg FreeBSD returns the mod time of the symlink's containing
2632# directory).
2633if (
2634   am_has_slept=no
2635   for am_try in 1 2; do
2636     echo "timestamp, slept: $am_has_slept" > conftest.file
2637     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2638     if test "$*" = "X"; then
2639	# -L didn't work.
2640	set X `ls -t "$srcdir/configure" conftest.file`
2641     fi
2642     if test "$*" != "X $srcdir/configure conftest.file" \
2643	&& test "$*" != "X conftest.file $srcdir/configure"; then
2644
2645	# If neither matched, then we have a broken ls.  This can happen
2646	# if, for instance, CONFIG_SHELL is bash and it inherits a
2647	# broken ls alias from the environment.  This has actually
2648	# happened.  Such a system could not be considered "sane".
2649	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2650  alias in your environment" "$LINENO" 5
2651     fi
2652     if test "$2" = conftest.file || test $am_try -eq 2; then
2653       break
2654     fi
2655     # Just in case.
2656     sleep 1
2657     am_has_slept=yes
2658   done
2659   test "$2" = conftest.file
2660   )
2661then
2662   # Ok.
2663   :
2664else
2665   as_fn_error $? "newly created file is older than distributed files!
2666Check your system clock" "$LINENO" 5
2667fi
2668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2669printf "%s\n" "yes" >&6; }
2670# If we didn't sleep, we still need to ensure time stamps of config.status and
2671# generated files are strictly newer.
2672am_sleep_pid=
2673if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2674  ( sleep 1 ) &
2675  am_sleep_pid=$!
2676fi
2677
2678rm -f conftest.file
2679
2680test "$program_prefix" != NONE &&
2681  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2682# Use a double $ so make ignores it.
2683test "$program_suffix" != NONE &&
2684  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2685# Double any \ or $.
2686# By default was `s,x,x', remove it if useless.
2687ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2688program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2689
2690
2691# Expand $ac_aux_dir to an absolute path.
2692am_aux_dir=`cd "$ac_aux_dir" && pwd`
2693
2694
2695  if test x"${MISSING+set}" != xset; then
2696  MISSING="\${SHELL} '$am_aux_dir/missing'"
2697fi
2698# Use eval to expand $SHELL
2699if eval "$MISSING --is-lightweight"; then
2700  am_missing_run="$MISSING "
2701else
2702  am_missing_run=
2703  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2704printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2705fi
2706
2707if test x"${install_sh+set}" != xset; then
2708  case $am_aux_dir in
2709  *\ * | *\	*)
2710    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2711  *)
2712    install_sh="\${SHELL} $am_aux_dir/install-sh"
2713  esac
2714fi
2715
2716# Installed binaries are usually stripped using 'strip' when the user
2717# run "make install-strip".  However 'strip' might not be the right
2718# tool to use in cross-compilation environments, therefore Automake
2719# will honor the 'STRIP' environment variable to overrule this program.
2720if test "$cross_compiling" != no; then
2721  if test -n "$ac_tool_prefix"; then
2722  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2723set dummy ${ac_tool_prefix}strip; ac_word=$2
2724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725printf %s "checking for $ac_word... " >&6; }
2726if test ${ac_cv_prog_STRIP+y}
2727then :
2728  printf %s "(cached) " >&6
2729else $as_nop
2730  if test -n "$STRIP"; then
2731  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2732else
2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734for as_dir in $PATH
2735do
2736  IFS=$as_save_IFS
2737  case $as_dir in #(((
2738    '') as_dir=./ ;;
2739    */) ;;
2740    *) as_dir=$as_dir/ ;;
2741  esac
2742    for ac_exec_ext in '' $ac_executable_extensions; do
2743  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2744    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2745    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2746    break 2
2747  fi
2748done
2749  done
2750IFS=$as_save_IFS
2751
2752fi
2753fi
2754STRIP=$ac_cv_prog_STRIP
2755if test -n "$STRIP"; then
2756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2757printf "%s\n" "$STRIP" >&6; }
2758else
2759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760printf "%s\n" "no" >&6; }
2761fi
2762
2763
2764fi
2765if test -z "$ac_cv_prog_STRIP"; then
2766  ac_ct_STRIP=$STRIP
2767  # Extract the first word of "strip", so it can be a program name with args.
2768set dummy strip; ac_word=$2
2769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770printf %s "checking for $ac_word... " >&6; }
2771if test ${ac_cv_prog_ac_ct_STRIP+y}
2772then :
2773  printf %s "(cached) " >&6
2774else $as_nop
2775  if test -n "$ac_ct_STRIP"; then
2776  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2777else
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781  IFS=$as_save_IFS
2782  case $as_dir in #(((
2783    '') as_dir=./ ;;
2784    */) ;;
2785    *) as_dir=$as_dir/ ;;
2786  esac
2787    for ac_exec_ext in '' $ac_executable_extensions; do
2788  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2789    ac_cv_prog_ac_ct_STRIP="strip"
2790    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2791    break 2
2792  fi
2793done
2794  done
2795IFS=$as_save_IFS
2796
2797fi
2798fi
2799ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2800if test -n "$ac_ct_STRIP"; then
2801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2802printf "%s\n" "$ac_ct_STRIP" >&6; }
2803else
2804  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805printf "%s\n" "no" >&6; }
2806fi
2807
2808  if test "x$ac_ct_STRIP" = x; then
2809    STRIP=":"
2810  else
2811    case $cross_compiling:$ac_tool_warned in
2812yes:)
2813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2814printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2815ac_tool_warned=yes ;;
2816esac
2817    STRIP=$ac_ct_STRIP
2818  fi
2819else
2820  STRIP="$ac_cv_prog_STRIP"
2821fi
2822
2823fi
2824INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2825
2826
2827  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2828printf %s "checking for a race-free mkdir -p... " >&6; }
2829if test -z "$MKDIR_P"; then
2830  if test ${ac_cv_path_mkdir+y}
2831then :
2832  printf %s "(cached) " >&6
2833else $as_nop
2834  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2836do
2837  IFS=$as_save_IFS
2838  case $as_dir in #(((
2839    '') as_dir=./ ;;
2840    */) ;;
2841    *) as_dir=$as_dir/ ;;
2842  esac
2843    for ac_prog in mkdir gmkdir; do
2844	 for ac_exec_ext in '' $ac_executable_extensions; do
2845	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2846	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2847	     'mkdir ('*'coreutils) '* | \
2848	     'BusyBox '* | \
2849	     'mkdir (fileutils) '4.1*)
2850	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2851	       break 3;;
2852	   esac
2853	 done
2854       done
2855  done
2856IFS=$as_save_IFS
2857
2858fi
2859
2860  test -d ./--version && rmdir ./--version
2861  if test ${ac_cv_path_mkdir+y}; then
2862    MKDIR_P="$ac_cv_path_mkdir -p"
2863  else
2864    # As a last resort, use the slow shell script.  Don't cache a
2865    # value for MKDIR_P within a source directory, because that will
2866    # break other packages using the cache if that directory is
2867    # removed, or if the value is a relative name.
2868    MKDIR_P="$ac_install_sh -d"
2869  fi
2870fi
2871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2872printf "%s\n" "$MKDIR_P" >&6; }
2873
2874for ac_prog in gawk mawk nawk awk
2875do
2876  # Extract the first word of "$ac_prog", so it can be a program name with args.
2877set dummy $ac_prog; ac_word=$2
2878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879printf %s "checking for $ac_word... " >&6; }
2880if test ${ac_cv_prog_AWK+y}
2881then :
2882  printf %s "(cached) " >&6
2883else $as_nop
2884  if test -n "$AWK"; then
2885  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2886else
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890  IFS=$as_save_IFS
2891  case $as_dir in #(((
2892    '') as_dir=./ ;;
2893    */) ;;
2894    *) as_dir=$as_dir/ ;;
2895  esac
2896    for ac_exec_ext in '' $ac_executable_extensions; do
2897  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2898    ac_cv_prog_AWK="$ac_prog"
2899    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2900    break 2
2901  fi
2902done
2903  done
2904IFS=$as_save_IFS
2905
2906fi
2907fi
2908AWK=$ac_cv_prog_AWK
2909if test -n "$AWK"; then
2910  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2911printf "%s\n" "$AWK" >&6; }
2912else
2913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914printf "%s\n" "no" >&6; }
2915fi
2916
2917
2918  test -n "$AWK" && break
2919done
2920
2921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2922printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2923set x ${MAKE-make}
2924ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2925if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2926then :
2927  printf %s "(cached) " >&6
2928else $as_nop
2929  cat >conftest.make <<\_ACEOF
2930SHELL = /bin/sh
2931all:
2932	@echo '@@@%%%=$(MAKE)=@@@%%%'
2933_ACEOF
2934# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2935case `${MAKE-make} -f conftest.make 2>/dev/null` in
2936  *@@@%%%=?*=@@@%%%*)
2937    eval ac_cv_prog_make_${ac_make}_set=yes;;
2938  *)
2939    eval ac_cv_prog_make_${ac_make}_set=no;;
2940esac
2941rm -f conftest.make
2942fi
2943if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2945printf "%s\n" "yes" >&6; }
2946  SET_MAKE=
2947else
2948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949printf "%s\n" "no" >&6; }
2950  SET_MAKE="MAKE=${MAKE-make}"
2951fi
2952
2953rm -rf .tst 2>/dev/null
2954mkdir .tst 2>/dev/null
2955if test -d .tst; then
2956  am__leading_dot=.
2957else
2958  am__leading_dot=_
2959fi
2960rmdir .tst 2>/dev/null
2961
2962# Check whether --enable-silent-rules was given.
2963if test ${enable_silent_rules+y}
2964then :
2965  enableval=$enable_silent_rules;
2966fi
2967
2968case $enable_silent_rules in # (((
2969  yes) AM_DEFAULT_VERBOSITY=0;;
2970   no) AM_DEFAULT_VERBOSITY=1;;
2971    *) AM_DEFAULT_VERBOSITY=1;;
2972esac
2973am_make=${MAKE-make}
2974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2975printf %s "checking whether $am_make supports nested variables... " >&6; }
2976if test ${am_cv_make_support_nested_variables+y}
2977then :
2978  printf %s "(cached) " >&6
2979else $as_nop
2980  if printf "%s\n" 'TRUE=$(BAR$(V))
2981BAR0=false
2982BAR1=true
2983V=1
2984am__doit:
2985	@$(TRUE)
2986.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2987  am_cv_make_support_nested_variables=yes
2988else
2989  am_cv_make_support_nested_variables=no
2990fi
2991fi
2992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2993printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2994if test $am_cv_make_support_nested_variables = yes; then
2995    AM_V='$(V)'
2996  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2997else
2998  AM_V=$AM_DEFAULT_VERBOSITY
2999  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3000fi
3001AM_BACKSLASH='\'
3002
3003if test "`cd $srcdir && pwd`" != "`pwd`"; then
3004  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3005  # is not polluted with repeated "-I."
3006  am__isrc=' -I$(srcdir)'
3007  # test to see if srcdir already configured
3008  if test -f $srcdir/config.status; then
3009    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3010  fi
3011fi
3012
3013# test whether we have cygpath
3014if test -z "$CYGPATH_W"; then
3015  if (cygpath --version) >/dev/null 2>/dev/null; then
3016    CYGPATH_W='cygpath -w'
3017  else
3018    CYGPATH_W=echo
3019  fi
3020fi
3021
3022
3023# Define the identity of the package.
3024 PACKAGE='xgc'
3025 VERSION='1.0.6'
3026
3027
3028printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3029
3030
3031printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3032
3033# Some tools Automake needs.
3034
3035ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3036
3037
3038AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3039
3040
3041AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3042
3043
3044AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3045
3046
3047MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3048
3049# For better backward compatibility.  To be removed once Automake 1.9.x
3050# dies out for good.  For more background, see:
3051# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3052# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3053mkdir_p='$(MKDIR_P)'
3054
3055# We need awk for the "check" target (and possibly the TAP driver).  The
3056# system "awk" is bad on some platforms.
3057# Always define AMTAR for backward compatibility.  Yes, it's still used
3058# in the wild :-(  We should find a proper way to deprecate it ...
3059AMTAR='$${TAR-tar}'
3060
3061
3062# We'll loop over all known methods to create a tar archive until one works.
3063_am_tools='gnutar  pax cpio none'
3064
3065am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3066
3067
3068
3069
3070
3071# Variables for tags utilities; see am/tags.am
3072if test -z "$CTAGS"; then
3073  CTAGS=ctags
3074fi
3075
3076if test -z "$ETAGS"; then
3077  ETAGS=etags
3078fi
3079
3080if test -z "$CSCOPE"; then
3081  CSCOPE=cscope
3082fi
3083
3084
3085
3086# POSIX will say in a future version that running "rm -f" with no argument
3087# is OK; and we want to be able to make that assumption in our Makefile
3088# recipes.  So use an aggressive probe to check that the usage we want is
3089# actually supported "in the wild" to an acceptable degree.
3090# See automake bug#10828.
3091# To make any issue more visible, cause the running configure to be aborted
3092# by default if the 'rm' program in use doesn't match our expectations; the
3093# user can still override this though.
3094if rm -f && rm -fr && rm -rf; then : OK; else
3095  cat >&2 <<'END'
3096Oops!
3097
3098Your 'rm' program seems unable to run without file operands specified
3099on the command line, even when the '-f' option is present.  This is contrary
3100to the behaviour of most rm programs out there, and not conforming with
3101the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3102
3103Please tell bug-automake@gnu.org about your system, including the value
3104of your $PATH and any error possibly output before this message.  This
3105can help us improve future automake versions.
3106
3107END
3108  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3109    echo 'Configuration will proceed anyway, since you have set the' >&2
3110    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3111    echo >&2
3112  else
3113    cat >&2 <<'END'
3114Aborting the configuration process, to ensure you take notice of the issue.
3115
3116You can download and install GNU coreutils to get an 'rm' implementation
3117that behaves properly: <https://www.gnu.org/software/coreutils/>.
3118
3119If you want to complete the configuration process using your problematic
3120'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3121to "yes", and re-run configure.
3122
3123END
3124    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3125  fi
3126fi
3127
3128
3129# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150DEPDIR="${am__leading_dot}deps"
3151
3152ac_config_commands="$ac_config_commands depfiles"
3153
3154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3155printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3156cat > confinc.mk << 'END'
3157am__doit:
3158	@echo this is the am__doit target >confinc.out
3159.PHONY: am__doit
3160END
3161am__include="#"
3162am__quote=
3163# BSD make does it like this.
3164echo '.include "confinc.mk" # ignored' > confmf.BSD
3165# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3166echo 'include confinc.mk # ignored' > confmf.GNU
3167_am_result=no
3168for s in GNU BSD; do
3169  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3170   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3171   ac_status=$?
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); }
3174  case $?:`cat confinc.out 2>/dev/null` in #(
3175  '0:this is the am__doit target') :
3176    case $s in #(
3177  BSD) :
3178    am__include='.include' am__quote='"' ;; #(
3179  *) :
3180    am__include='include' am__quote='' ;;
3181esac ;; #(
3182  *) :
3183     ;;
3184esac
3185  if test "$am__include" != "#"; then
3186    _am_result="yes ($s style)"
3187    break
3188  fi
3189done
3190rm -f confinc.* confmf.*
3191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3192printf "%s\n" "${_am_result}" >&6; }
3193
3194# Check whether --enable-dependency-tracking was given.
3195if test ${enable_dependency_tracking+y}
3196then :
3197  enableval=$enable_dependency_tracking;
3198fi
3199
3200if test "x$enable_dependency_tracking" != xno; then
3201  am_depcomp="$ac_aux_dir/depcomp"
3202  AMDEPBACKSLASH='\'
3203  am__nodep='_no'
3204fi
3205 if test "x$enable_dependency_tracking" != xno; then
3206  AMDEP_TRUE=
3207  AMDEP_FALSE='#'
3208else
3209  AMDEP_TRUE='#'
3210  AMDEP_FALSE=
3211fi
3212
3213
3214ac_ext=c
3215ac_cpp='$CPP $CPPFLAGS'
3216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218ac_compiler_gnu=$ac_cv_c_compiler_gnu
3219if test -n "$ac_tool_prefix"; then
3220  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3221set dummy ${ac_tool_prefix}gcc; ac_word=$2
3222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223printf %s "checking for $ac_word... " >&6; }
3224if test ${ac_cv_prog_CC+y}
3225then :
3226  printf %s "(cached) " >&6
3227else $as_nop
3228  if test -n "$CC"; then
3229  ac_cv_prog_CC="$CC" # Let the user override the test.
3230else
3231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232for as_dir in $PATH
3233do
3234  IFS=$as_save_IFS
3235  case $as_dir in #(((
3236    '') as_dir=./ ;;
3237    */) ;;
3238    *) as_dir=$as_dir/ ;;
3239  esac
3240    for ac_exec_ext in '' $ac_executable_extensions; do
3241  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3242    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3243    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3244    break 2
3245  fi
3246done
3247  done
3248IFS=$as_save_IFS
3249
3250fi
3251fi
3252CC=$ac_cv_prog_CC
3253if test -n "$CC"; then
3254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3255printf "%s\n" "$CC" >&6; }
3256else
3257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258printf "%s\n" "no" >&6; }
3259fi
3260
3261
3262fi
3263if test -z "$ac_cv_prog_CC"; then
3264  ac_ct_CC=$CC
3265  # Extract the first word of "gcc", so it can be a program name with args.
3266set dummy gcc; ac_word=$2
3267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268printf %s "checking for $ac_word... " >&6; }
3269if test ${ac_cv_prog_ac_ct_CC+y}
3270then :
3271  printf %s "(cached) " >&6
3272else $as_nop
3273  if test -n "$ac_ct_CC"; then
3274  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3275else
3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277for as_dir in $PATH
3278do
3279  IFS=$as_save_IFS
3280  case $as_dir in #(((
3281    '') as_dir=./ ;;
3282    */) ;;
3283    *) as_dir=$as_dir/ ;;
3284  esac
3285    for ac_exec_ext in '' $ac_executable_extensions; do
3286  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3287    ac_cv_prog_ac_ct_CC="gcc"
3288    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3289    break 2
3290  fi
3291done
3292  done
3293IFS=$as_save_IFS
3294
3295fi
3296fi
3297ac_ct_CC=$ac_cv_prog_ac_ct_CC
3298if test -n "$ac_ct_CC"; then
3299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3300printf "%s\n" "$ac_ct_CC" >&6; }
3301else
3302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303printf "%s\n" "no" >&6; }
3304fi
3305
3306  if test "x$ac_ct_CC" = x; then
3307    CC=""
3308  else
3309    case $cross_compiling:$ac_tool_warned in
3310yes:)
3311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3312printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3313ac_tool_warned=yes ;;
3314esac
3315    CC=$ac_ct_CC
3316  fi
3317else
3318  CC="$ac_cv_prog_CC"
3319fi
3320
3321if test -z "$CC"; then
3322          if test -n "$ac_tool_prefix"; then
3323    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3324set dummy ${ac_tool_prefix}cc; ac_word=$2
3325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326printf %s "checking for $ac_word... " >&6; }
3327if test ${ac_cv_prog_CC+y}
3328then :
3329  printf %s "(cached) " >&6
3330else $as_nop
3331  if test -n "$CC"; then
3332  ac_cv_prog_CC="$CC" # Let the user override the test.
3333else
3334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335for as_dir in $PATH
3336do
3337  IFS=$as_save_IFS
3338  case $as_dir in #(((
3339    '') as_dir=./ ;;
3340    */) ;;
3341    *) as_dir=$as_dir/ ;;
3342  esac
3343    for ac_exec_ext in '' $ac_executable_extensions; do
3344  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3345    ac_cv_prog_CC="${ac_tool_prefix}cc"
3346    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3347    break 2
3348  fi
3349done
3350  done
3351IFS=$as_save_IFS
3352
3353fi
3354fi
3355CC=$ac_cv_prog_CC
3356if test -n "$CC"; then
3357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3358printf "%s\n" "$CC" >&6; }
3359else
3360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361printf "%s\n" "no" >&6; }
3362fi
3363
3364
3365  fi
3366fi
3367if test -z "$CC"; then
3368  # Extract the first word of "cc", so it can be a program name with args.
3369set dummy cc; ac_word=$2
3370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371printf %s "checking for $ac_word... " >&6; }
3372if test ${ac_cv_prog_CC+y}
3373then :
3374  printf %s "(cached) " >&6
3375else $as_nop
3376  if test -n "$CC"; then
3377  ac_cv_prog_CC="$CC" # Let the user override the test.
3378else
3379  ac_prog_rejected=no
3380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381for as_dir in $PATH
3382do
3383  IFS=$as_save_IFS
3384  case $as_dir in #(((
3385    '') as_dir=./ ;;
3386    */) ;;
3387    *) as_dir=$as_dir/ ;;
3388  esac
3389    for ac_exec_ext in '' $ac_executable_extensions; do
3390  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3391    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3392       ac_prog_rejected=yes
3393       continue
3394     fi
3395    ac_cv_prog_CC="cc"
3396    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3397    break 2
3398  fi
3399done
3400  done
3401IFS=$as_save_IFS
3402
3403if test $ac_prog_rejected = yes; then
3404  # We found a bogon in the path, so make sure we never use it.
3405  set dummy $ac_cv_prog_CC
3406  shift
3407  if test $# != 0; then
3408    # We chose a different compiler from the bogus one.
3409    # However, it has the same basename, so the bogon will be chosen
3410    # first if we set CC to just the basename; use the full file name.
3411    shift
3412    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3413  fi
3414fi
3415fi
3416fi
3417CC=$ac_cv_prog_CC
3418if test -n "$CC"; then
3419  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3420printf "%s\n" "$CC" >&6; }
3421else
3422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423printf "%s\n" "no" >&6; }
3424fi
3425
3426
3427fi
3428if test -z "$CC"; then
3429  if test -n "$ac_tool_prefix"; then
3430  for ac_prog in cl.exe
3431  do
3432    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3433set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435printf %s "checking for $ac_word... " >&6; }
3436if test ${ac_cv_prog_CC+y}
3437then :
3438  printf %s "(cached) " >&6
3439else $as_nop
3440  if test -n "$CC"; then
3441  ac_cv_prog_CC="$CC" # Let the user override the test.
3442else
3443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444for as_dir in $PATH
3445do
3446  IFS=$as_save_IFS
3447  case $as_dir in #(((
3448    '') as_dir=./ ;;
3449    */) ;;
3450    *) as_dir=$as_dir/ ;;
3451  esac
3452    for ac_exec_ext in '' $ac_executable_extensions; do
3453  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3454    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3455    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3456    break 2
3457  fi
3458done
3459  done
3460IFS=$as_save_IFS
3461
3462fi
3463fi
3464CC=$ac_cv_prog_CC
3465if test -n "$CC"; then
3466  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3467printf "%s\n" "$CC" >&6; }
3468else
3469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470printf "%s\n" "no" >&6; }
3471fi
3472
3473
3474    test -n "$CC" && break
3475  done
3476fi
3477if test -z "$CC"; then
3478  ac_ct_CC=$CC
3479  for ac_prog in cl.exe
3480do
3481  # Extract the first word of "$ac_prog", so it can be a program name with args.
3482set dummy $ac_prog; ac_word=$2
3483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484printf %s "checking for $ac_word... " >&6; }
3485if test ${ac_cv_prog_ac_ct_CC+y}
3486then :
3487  printf %s "(cached) " >&6
3488else $as_nop
3489  if test -n "$ac_ct_CC"; then
3490  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3491else
3492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493for as_dir in $PATH
3494do
3495  IFS=$as_save_IFS
3496  case $as_dir in #(((
3497    '') as_dir=./ ;;
3498    */) ;;
3499    *) as_dir=$as_dir/ ;;
3500  esac
3501    for ac_exec_ext in '' $ac_executable_extensions; do
3502  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3503    ac_cv_prog_ac_ct_CC="$ac_prog"
3504    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3505    break 2
3506  fi
3507done
3508  done
3509IFS=$as_save_IFS
3510
3511fi
3512fi
3513ac_ct_CC=$ac_cv_prog_ac_ct_CC
3514if test -n "$ac_ct_CC"; then
3515  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3516printf "%s\n" "$ac_ct_CC" >&6; }
3517else
3518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519printf "%s\n" "no" >&6; }
3520fi
3521
3522
3523  test -n "$ac_ct_CC" && break
3524done
3525
3526  if test "x$ac_ct_CC" = x; then
3527    CC=""
3528  else
3529    case $cross_compiling:$ac_tool_warned in
3530yes:)
3531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3532printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3533ac_tool_warned=yes ;;
3534esac
3535    CC=$ac_ct_CC
3536  fi
3537fi
3538
3539fi
3540if test -z "$CC"; then
3541  if test -n "$ac_tool_prefix"; then
3542  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3543set dummy ${ac_tool_prefix}clang; ac_word=$2
3544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545printf %s "checking for $ac_word... " >&6; }
3546if test ${ac_cv_prog_CC+y}
3547then :
3548  printf %s "(cached) " >&6
3549else $as_nop
3550  if test -n "$CC"; then
3551  ac_cv_prog_CC="$CC" # Let the user override the test.
3552else
3553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554for as_dir in $PATH
3555do
3556  IFS=$as_save_IFS
3557  case $as_dir in #(((
3558    '') as_dir=./ ;;
3559    */) ;;
3560    *) as_dir=$as_dir/ ;;
3561  esac
3562    for ac_exec_ext in '' $ac_executable_extensions; do
3563  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3564    ac_cv_prog_CC="${ac_tool_prefix}clang"
3565    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3566    break 2
3567  fi
3568done
3569  done
3570IFS=$as_save_IFS
3571
3572fi
3573fi
3574CC=$ac_cv_prog_CC
3575if test -n "$CC"; then
3576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3577printf "%s\n" "$CC" >&6; }
3578else
3579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580printf "%s\n" "no" >&6; }
3581fi
3582
3583
3584fi
3585if test -z "$ac_cv_prog_CC"; then
3586  ac_ct_CC=$CC
3587  # Extract the first word of "clang", so it can be a program name with args.
3588set dummy clang; ac_word=$2
3589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590printf %s "checking for $ac_word... " >&6; }
3591if test ${ac_cv_prog_ac_ct_CC+y}
3592then :
3593  printf %s "(cached) " >&6
3594else $as_nop
3595  if test -n "$ac_ct_CC"; then
3596  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3597else
3598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599for as_dir in $PATH
3600do
3601  IFS=$as_save_IFS
3602  case $as_dir in #(((
3603    '') as_dir=./ ;;
3604    */) ;;
3605    *) as_dir=$as_dir/ ;;
3606  esac
3607    for ac_exec_ext in '' $ac_executable_extensions; do
3608  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3609    ac_cv_prog_ac_ct_CC="clang"
3610    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3611    break 2
3612  fi
3613done
3614  done
3615IFS=$as_save_IFS
3616
3617fi
3618fi
3619ac_ct_CC=$ac_cv_prog_ac_ct_CC
3620if test -n "$ac_ct_CC"; then
3621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3622printf "%s\n" "$ac_ct_CC" >&6; }
3623else
3624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625printf "%s\n" "no" >&6; }
3626fi
3627
3628  if test "x$ac_ct_CC" = x; then
3629    CC=""
3630  else
3631    case $cross_compiling:$ac_tool_warned in
3632yes:)
3633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3634printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3635ac_tool_warned=yes ;;
3636esac
3637    CC=$ac_ct_CC
3638  fi
3639else
3640  CC="$ac_cv_prog_CC"
3641fi
3642
3643fi
3644
3645
3646test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3648as_fn_error $? "no acceptable C compiler found in \$PATH
3649See \`config.log' for more details" "$LINENO" 5; }
3650
3651# Provide some information about the compiler.
3652printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3653set X $ac_compile
3654ac_compiler=$2
3655for ac_option in --version -v -V -qversion -version; do
3656  { { ac_try="$ac_compiler $ac_option >&5"
3657case "(($ac_try" in
3658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659  *) ac_try_echo=$ac_try;;
3660esac
3661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662printf "%s\n" "$ac_try_echo"; } >&5
3663  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3664  ac_status=$?
3665  if test -s conftest.err; then
3666    sed '10a\
3667... rest of stderr output deleted ...
3668         10q' conftest.err >conftest.er1
3669    cat conftest.er1 >&5
3670  fi
3671  rm -f conftest.er1 conftest.err
3672  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673  test $ac_status = 0; }
3674done
3675
3676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677/* end confdefs.h.  */
3678
3679int
3680main (void)
3681{
3682
3683  ;
3684  return 0;
3685}
3686_ACEOF
3687ac_clean_files_save=$ac_clean_files
3688ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3689# Try to create an executable without -o first, disregard a.out.
3690# It will help us diagnose broken compilers, and finding out an intuition
3691# of exeext.
3692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3693printf %s "checking whether the C compiler works... " >&6; }
3694ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3695
3696# The possible output files:
3697ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3698
3699ac_rmfiles=
3700for ac_file in $ac_files
3701do
3702  case $ac_file in
3703    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3704    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3705  esac
3706done
3707rm -f $ac_rmfiles
3708
3709if { { ac_try="$ac_link_default"
3710case "(($ac_try" in
3711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712  *) ac_try_echo=$ac_try;;
3713esac
3714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3715printf "%s\n" "$ac_try_echo"; } >&5
3716  (eval "$ac_link_default") 2>&5
3717  ac_status=$?
3718  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3719  test $ac_status = 0; }
3720then :
3721  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3722# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3723# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3724# so that the user can short-circuit this test for compilers unknown to
3725# Autoconf.
3726for ac_file in $ac_files ''
3727do
3728  test -f "$ac_file" || continue
3729  case $ac_file in
3730    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3731	;;
3732    [ab].out )
3733	# We found the default executable, but exeext='' is most
3734	# certainly right.
3735	break;;
3736    *.* )
3737	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3738	then :; else
3739	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3740	fi
3741	# We set ac_cv_exeext here because the later test for it is not
3742	# safe: cross compilers may not add the suffix if given an `-o'
3743	# argument, so we may need to know it at that point already.
3744	# Even if this section looks crufty: it has the advantage of
3745	# actually working.
3746	break;;
3747    * )
3748	break;;
3749  esac
3750done
3751test "$ac_cv_exeext" = no && ac_cv_exeext=
3752
3753else $as_nop
3754  ac_file=''
3755fi
3756if test -z "$ac_file"
3757then :
3758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3759printf "%s\n" "no" >&6; }
3760printf "%s\n" "$as_me: failed program was:" >&5
3761sed 's/^/| /' conftest.$ac_ext >&5
3762
3763{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3764printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3765as_fn_error 77 "C compiler cannot create executables
3766See \`config.log' for more details" "$LINENO" 5; }
3767else $as_nop
3768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3769printf "%s\n" "yes" >&6; }
3770fi
3771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3772printf %s "checking for C compiler default output file name... " >&6; }
3773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3774printf "%s\n" "$ac_file" >&6; }
3775ac_exeext=$ac_cv_exeext
3776
3777rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3778ac_clean_files=$ac_clean_files_save
3779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3780printf %s "checking for suffix of executables... " >&6; }
3781if { { ac_try="$ac_link"
3782case "(($ac_try" in
3783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784  *) ac_try_echo=$ac_try;;
3785esac
3786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3787printf "%s\n" "$ac_try_echo"; } >&5
3788  (eval "$ac_link") 2>&5
3789  ac_status=$?
3790  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3791  test $ac_status = 0; }
3792then :
3793  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3794# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3795# work properly (i.e., refer to `conftest.exe'), while it won't with
3796# `rm'.
3797for ac_file in conftest.exe conftest conftest.*; do
3798  test -f "$ac_file" || continue
3799  case $ac_file in
3800    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3801    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3802	  break;;
3803    * ) break;;
3804  esac
3805done
3806else $as_nop
3807  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3809as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3810See \`config.log' for more details" "$LINENO" 5; }
3811fi
3812rm -f conftest conftest$ac_cv_exeext
3813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3814printf "%s\n" "$ac_cv_exeext" >&6; }
3815
3816rm -f conftest.$ac_ext
3817EXEEXT=$ac_cv_exeext
3818ac_exeext=$EXEEXT
3819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820/* end confdefs.h.  */
3821#include <stdio.h>
3822int
3823main (void)
3824{
3825FILE *f = fopen ("conftest.out", "w");
3826 return ferror (f) || fclose (f) != 0;
3827
3828  ;
3829  return 0;
3830}
3831_ACEOF
3832ac_clean_files="$ac_clean_files conftest.out"
3833# Check that the compiler produces executables we can run.  If not, either
3834# the compiler is broken, or we cross compile.
3835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3836printf %s "checking whether we are cross compiling... " >&6; }
3837if test "$cross_compiling" != yes; then
3838  { { ac_try="$ac_link"
3839case "(($ac_try" in
3840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841  *) ac_try_echo=$ac_try;;
3842esac
3843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844printf "%s\n" "$ac_try_echo"; } >&5
3845  (eval "$ac_link") 2>&5
3846  ac_status=$?
3847  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3848  test $ac_status = 0; }
3849  if { ac_try='./conftest$ac_cv_exeext'
3850  { { case "(($ac_try" in
3851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852  *) ac_try_echo=$ac_try;;
3853esac
3854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855printf "%s\n" "$ac_try_echo"; } >&5
3856  (eval "$ac_try") 2>&5
3857  ac_status=$?
3858  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859  test $ac_status = 0; }; }; then
3860    cross_compiling=no
3861  else
3862    if test "$cross_compiling" = maybe; then
3863	cross_compiling=yes
3864    else
3865	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3867as_fn_error 77 "cannot run C compiled programs.
3868If you meant to cross compile, use \`--host'.
3869See \`config.log' for more details" "$LINENO" 5; }
3870    fi
3871  fi
3872fi
3873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3874printf "%s\n" "$cross_compiling" >&6; }
3875
3876rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3877ac_clean_files=$ac_clean_files_save
3878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3879printf %s "checking for suffix of object files... " >&6; }
3880if test ${ac_cv_objext+y}
3881then :
3882  printf %s "(cached) " >&6
3883else $as_nop
3884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885/* end confdefs.h.  */
3886
3887int
3888main (void)
3889{
3890
3891  ;
3892  return 0;
3893}
3894_ACEOF
3895rm -f conftest.o conftest.obj
3896if { { ac_try="$ac_compile"
3897case "(($ac_try" in
3898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899  *) ac_try_echo=$ac_try;;
3900esac
3901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3902printf "%s\n" "$ac_try_echo"; } >&5
3903  (eval "$ac_compile") 2>&5
3904  ac_status=$?
3905  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3906  test $ac_status = 0; }
3907then :
3908  for ac_file in conftest.o conftest.obj conftest.*; do
3909  test -f "$ac_file" || continue;
3910  case $ac_file in
3911    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3912    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3913       break;;
3914  esac
3915done
3916else $as_nop
3917  printf "%s\n" "$as_me: failed program was:" >&5
3918sed 's/^/| /' conftest.$ac_ext >&5
3919
3920{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3921printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3922as_fn_error $? "cannot compute suffix of object files: cannot compile
3923See \`config.log' for more details" "$LINENO" 5; }
3924fi
3925rm -f conftest.$ac_cv_objext conftest.$ac_ext
3926fi
3927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3928printf "%s\n" "$ac_cv_objext" >&6; }
3929OBJEXT=$ac_cv_objext
3930ac_objext=$OBJEXT
3931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3932printf %s "checking whether the compiler supports GNU C... " >&6; }
3933if test ${ac_cv_c_compiler_gnu+y}
3934then :
3935  printf %s "(cached) " >&6
3936else $as_nop
3937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938/* end confdefs.h.  */
3939
3940int
3941main (void)
3942{
3943#ifndef __GNUC__
3944       choke me
3945#endif
3946
3947  ;
3948  return 0;
3949}
3950_ACEOF
3951if ac_fn_c_try_compile "$LINENO"
3952then :
3953  ac_compiler_gnu=yes
3954else $as_nop
3955  ac_compiler_gnu=no
3956fi
3957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3958ac_cv_c_compiler_gnu=$ac_compiler_gnu
3959
3960fi
3961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3962printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3963ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964
3965if test $ac_compiler_gnu = yes; then
3966  GCC=yes
3967else
3968  GCC=
3969fi
3970ac_test_CFLAGS=${CFLAGS+y}
3971ac_save_CFLAGS=$CFLAGS
3972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3973printf %s "checking whether $CC accepts -g... " >&6; }
3974if test ${ac_cv_prog_cc_g+y}
3975then :
3976  printf %s "(cached) " >&6
3977else $as_nop
3978  ac_save_c_werror_flag=$ac_c_werror_flag
3979   ac_c_werror_flag=yes
3980   ac_cv_prog_cc_g=no
3981   CFLAGS="-g"
3982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983/* end confdefs.h.  */
3984
3985int
3986main (void)
3987{
3988
3989  ;
3990  return 0;
3991}
3992_ACEOF
3993if ac_fn_c_try_compile "$LINENO"
3994then :
3995  ac_cv_prog_cc_g=yes
3996else $as_nop
3997  CFLAGS=""
3998      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999/* end confdefs.h.  */
4000
4001int
4002main (void)
4003{
4004
4005  ;
4006  return 0;
4007}
4008_ACEOF
4009if ac_fn_c_try_compile "$LINENO"
4010then :
4011
4012else $as_nop
4013  ac_c_werror_flag=$ac_save_c_werror_flag
4014	 CFLAGS="-g"
4015	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016/* end confdefs.h.  */
4017
4018int
4019main (void)
4020{
4021
4022  ;
4023  return 0;
4024}
4025_ACEOF
4026if ac_fn_c_try_compile "$LINENO"
4027then :
4028  ac_cv_prog_cc_g=yes
4029fi
4030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4031fi
4032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4033fi
4034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4035   ac_c_werror_flag=$ac_save_c_werror_flag
4036fi
4037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4038printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4039if test $ac_test_CFLAGS; then
4040  CFLAGS=$ac_save_CFLAGS
4041elif test $ac_cv_prog_cc_g = yes; then
4042  if test "$GCC" = yes; then
4043    CFLAGS="-g -O2"
4044  else
4045    CFLAGS="-g"
4046  fi
4047else
4048  if test "$GCC" = yes; then
4049    CFLAGS="-O2"
4050  else
4051    CFLAGS=
4052  fi
4053fi
4054ac_prog_cc_stdc=no
4055if test x$ac_prog_cc_stdc = xno
4056then :
4057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4058printf %s "checking for $CC option to enable C11 features... " >&6; }
4059if test ${ac_cv_prog_cc_c11+y}
4060then :
4061  printf %s "(cached) " >&6
4062else $as_nop
4063  ac_cv_prog_cc_c11=no
4064ac_save_CC=$CC
4065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066/* end confdefs.h.  */
4067$ac_c_conftest_c11_program
4068_ACEOF
4069for ac_arg in '' -std=gnu11
4070do
4071  CC="$ac_save_CC $ac_arg"
4072  if ac_fn_c_try_compile "$LINENO"
4073then :
4074  ac_cv_prog_cc_c11=$ac_arg
4075fi
4076rm -f core conftest.err conftest.$ac_objext conftest.beam
4077  test "x$ac_cv_prog_cc_c11" != "xno" && break
4078done
4079rm -f conftest.$ac_ext
4080CC=$ac_save_CC
4081fi
4082
4083if test "x$ac_cv_prog_cc_c11" = xno
4084then :
4085  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4086printf "%s\n" "unsupported" >&6; }
4087else $as_nop
4088  if test "x$ac_cv_prog_cc_c11" = x
4089then :
4090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4091printf "%s\n" "none needed" >&6; }
4092else $as_nop
4093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4094printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4095     CC="$CC $ac_cv_prog_cc_c11"
4096fi
4097  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4098  ac_prog_cc_stdc=c11
4099fi
4100fi
4101if test x$ac_prog_cc_stdc = xno
4102then :
4103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4104printf %s "checking for $CC option to enable C99 features... " >&6; }
4105if test ${ac_cv_prog_cc_c99+y}
4106then :
4107  printf %s "(cached) " >&6
4108else $as_nop
4109  ac_cv_prog_cc_c99=no
4110ac_save_CC=$CC
4111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112/* end confdefs.h.  */
4113$ac_c_conftest_c99_program
4114_ACEOF
4115for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4116do
4117  CC="$ac_save_CC $ac_arg"
4118  if ac_fn_c_try_compile "$LINENO"
4119then :
4120  ac_cv_prog_cc_c99=$ac_arg
4121fi
4122rm -f core conftest.err conftest.$ac_objext conftest.beam
4123  test "x$ac_cv_prog_cc_c99" != "xno" && break
4124done
4125rm -f conftest.$ac_ext
4126CC=$ac_save_CC
4127fi
4128
4129if test "x$ac_cv_prog_cc_c99" = xno
4130then :
4131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4132printf "%s\n" "unsupported" >&6; }
4133else $as_nop
4134  if test "x$ac_cv_prog_cc_c99" = x
4135then :
4136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4137printf "%s\n" "none needed" >&6; }
4138else $as_nop
4139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4140printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4141     CC="$CC $ac_cv_prog_cc_c99"
4142fi
4143  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4144  ac_prog_cc_stdc=c99
4145fi
4146fi
4147if test x$ac_prog_cc_stdc = xno
4148then :
4149  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4150printf %s "checking for $CC option to enable C89 features... " >&6; }
4151if test ${ac_cv_prog_cc_c89+y}
4152then :
4153  printf %s "(cached) " >&6
4154else $as_nop
4155  ac_cv_prog_cc_c89=no
4156ac_save_CC=$CC
4157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158/* end confdefs.h.  */
4159$ac_c_conftest_c89_program
4160_ACEOF
4161for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4162do
4163  CC="$ac_save_CC $ac_arg"
4164  if ac_fn_c_try_compile "$LINENO"
4165then :
4166  ac_cv_prog_cc_c89=$ac_arg
4167fi
4168rm -f core conftest.err conftest.$ac_objext conftest.beam
4169  test "x$ac_cv_prog_cc_c89" != "xno" && break
4170done
4171rm -f conftest.$ac_ext
4172CC=$ac_save_CC
4173fi
4174
4175if test "x$ac_cv_prog_cc_c89" = xno
4176then :
4177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4178printf "%s\n" "unsupported" >&6; }
4179else $as_nop
4180  if test "x$ac_cv_prog_cc_c89" = x
4181then :
4182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4183printf "%s\n" "none needed" >&6; }
4184else $as_nop
4185  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4186printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4187     CC="$CC $ac_cv_prog_cc_c89"
4188fi
4189  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4190  ac_prog_cc_stdc=c89
4191fi
4192fi
4193
4194ac_ext=c
4195ac_cpp='$CPP $CPPFLAGS'
4196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199
4200
4201  ac_ext=c
4202ac_cpp='$CPP $CPPFLAGS'
4203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4207printf %s "checking whether $CC understands -c and -o together... " >&6; }
4208if test ${am_cv_prog_cc_c_o+y}
4209then :
4210  printf %s "(cached) " >&6
4211else $as_nop
4212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213/* end confdefs.h.  */
4214
4215int
4216main (void)
4217{
4218
4219  ;
4220  return 0;
4221}
4222_ACEOF
4223  # Make sure it works both with $CC and with simple cc.
4224  # Following AC_PROG_CC_C_O, we do the test twice because some
4225  # compilers refuse to overwrite an existing .o file with -o,
4226  # though they will create one.
4227  am_cv_prog_cc_c_o=yes
4228  for am_i in 1 2; do
4229    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4230   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); } \
4234         && test -f conftest2.$ac_objext; then
4235      : OK
4236    else
4237      am_cv_prog_cc_c_o=no
4238      break
4239    fi
4240  done
4241  rm -f core conftest*
4242  unset am_i
4243fi
4244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4245printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4246if test "$am_cv_prog_cc_c_o" != yes; then
4247   # Losing compiler, so override with the script.
4248   # FIXME: It is wrong to rewrite CC.
4249   # But if we don't then we get into trouble of one sort or another.
4250   # A longer-term fix would be to have automake use am__CC in this case,
4251   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4252   CC="$am_aux_dir/compile $CC"
4253fi
4254ac_ext=c
4255ac_cpp='$CPP $CPPFLAGS'
4256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259
4260
4261depcc="$CC"   am_compiler_list=
4262
4263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4264printf %s "checking dependency style of $depcc... " >&6; }
4265if test ${am_cv_CC_dependencies_compiler_type+y}
4266then :
4267  printf %s "(cached) " >&6
4268else $as_nop
4269  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4270  # We make a subdir and do the tests there.  Otherwise we can end up
4271  # making bogus files that we don't know about and never remove.  For
4272  # instance it was reported that on HP-UX the gcc test will end up
4273  # making a dummy file named 'D' -- because '-MD' means "put the output
4274  # in D".
4275  rm -rf conftest.dir
4276  mkdir conftest.dir
4277  # Copy depcomp to subdir because otherwise we won't find it if we're
4278  # using a relative directory.
4279  cp "$am_depcomp" conftest.dir
4280  cd conftest.dir
4281  # We will build objects and dependencies in a subdirectory because
4282  # it helps to detect inapplicable dependency modes.  For instance
4283  # both Tru64's cc and ICC support -MD to output dependencies as a
4284  # side effect of compilation, but ICC will put the dependencies in
4285  # the current directory while Tru64 will put them in the object
4286  # directory.
4287  mkdir sub
4288
4289  am_cv_CC_dependencies_compiler_type=none
4290  if test "$am_compiler_list" = ""; then
4291     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4292  fi
4293  am__universal=false
4294  case " $depcc " in #(
4295     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4296     esac
4297
4298  for depmode in $am_compiler_list; do
4299    # Setup a source with many dependencies, because some compilers
4300    # like to wrap large dependency lists on column 80 (with \), and
4301    # we should not choose a depcomp mode which is confused by this.
4302    #
4303    # We need to recreate these files for each test, as the compiler may
4304    # overwrite some of them when testing with obscure command lines.
4305    # This happens at least with the AIX C compiler.
4306    : > sub/conftest.c
4307    for i in 1 2 3 4 5 6; do
4308      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4309      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4310      # Solaris 10 /bin/sh.
4311      echo '/* dummy */' > sub/conftst$i.h
4312    done
4313    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4314
4315    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4316    # mode.  It turns out that the SunPro C++ compiler does not properly
4317    # handle '-M -o', and we need to detect this.  Also, some Intel
4318    # versions had trouble with output in subdirs.
4319    am__obj=sub/conftest.${OBJEXT-o}
4320    am__minus_obj="-o $am__obj"
4321    case $depmode in
4322    gcc)
4323      # This depmode causes a compiler race in universal mode.
4324      test "$am__universal" = false || continue
4325      ;;
4326    nosideeffect)
4327      # After this tag, mechanisms are not by side-effect, so they'll
4328      # only be used when explicitly requested.
4329      if test "x$enable_dependency_tracking" = xyes; then
4330	continue
4331      else
4332	break
4333      fi
4334      ;;
4335    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4336      # This compiler won't grok '-c -o', but also, the minuso test has
4337      # not run yet.  These depmodes are late enough in the game, and
4338      # so weak that their functioning should not be impacted.
4339      am__obj=conftest.${OBJEXT-o}
4340      am__minus_obj=
4341      ;;
4342    none) break ;;
4343    esac
4344    if depmode=$depmode \
4345       source=sub/conftest.c object=$am__obj \
4346       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4347       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4348         >/dev/null 2>conftest.err &&
4349       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4350       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4351       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4352       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4353      # icc doesn't choke on unknown options, it will just issue warnings
4354      # or remarks (even with -Werror).  So we grep stderr for any message
4355      # that says an option was ignored or not supported.
4356      # When given -MP, icc 7.0 and 7.1 complain thusly:
4357      #   icc: Command line warning: ignoring option '-M'; no argument required
4358      # The diagnosis changed in icc 8.0:
4359      #   icc: Command line remark: option '-MP' not supported
4360      if (grep 'ignoring option' conftest.err ||
4361          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4362        am_cv_CC_dependencies_compiler_type=$depmode
4363        break
4364      fi
4365    fi
4366  done
4367
4368  cd ..
4369  rm -rf conftest.dir
4370else
4371  am_cv_CC_dependencies_compiler_type=none
4372fi
4373
4374fi
4375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4376printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4377CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4378
4379 if
4380  test "x$enable_dependency_tracking" != xno \
4381  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4382  am__fastdepCC_TRUE=
4383  am__fastdepCC_FALSE='#'
4384else
4385  am__fastdepCC_TRUE='#'
4386  am__fastdepCC_FALSE=
4387fi
4388
4389
4390
4391
4392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4393printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4394if test ${ac_cv_c_undeclared_builtin_options+y}
4395then :
4396  printf %s "(cached) " >&6
4397else $as_nop
4398  ac_save_CFLAGS=$CFLAGS
4399   ac_cv_c_undeclared_builtin_options='cannot detect'
4400   for ac_arg in '' -fno-builtin; do
4401     CFLAGS="$ac_save_CFLAGS $ac_arg"
4402     # This test program should *not* compile successfully.
4403     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404/* end confdefs.h.  */
4405
4406int
4407main (void)
4408{
4409(void) strchr;
4410  ;
4411  return 0;
4412}
4413_ACEOF
4414if ac_fn_c_try_compile "$LINENO"
4415then :
4416
4417else $as_nop
4418  # This test program should compile successfully.
4419        # No library function is consistently available on
4420        # freestanding implementations, so test against a dummy
4421        # declaration.  Include always-available headers on the
4422        # off chance that they somehow elicit warnings.
4423        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424/* end confdefs.h.  */
4425#include <float.h>
4426#include <limits.h>
4427#include <stdarg.h>
4428#include <stddef.h>
4429extern void ac_decl (int, char *);
4430
4431int
4432main (void)
4433{
4434(void) ac_decl (0, (char *) 0);
4435  (void) ac_decl;
4436
4437  ;
4438  return 0;
4439}
4440_ACEOF
4441if ac_fn_c_try_compile "$LINENO"
4442then :
4443  if test x"$ac_arg" = x
4444then :
4445  ac_cv_c_undeclared_builtin_options='none needed'
4446else $as_nop
4447  ac_cv_c_undeclared_builtin_options=$ac_arg
4448fi
4449          break
4450fi
4451rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4452fi
4453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4454    done
4455    CFLAGS=$ac_save_CFLAGS
4456
4457fi
4458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4459printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4460  case $ac_cv_c_undeclared_builtin_options in #(
4461  'cannot detect') :
4462    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4463printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4464as_fn_error $? "cannot make $CC report undeclared builtins
4465See \`config.log' for more details" "$LINENO" 5; } ;; #(
4466  'none needed') :
4467    ac_c_undeclared_builtin_options='' ;; #(
4468  *) :
4469    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4470esac
4471
4472ac_header= ac_cache=
4473for ac_item in $ac_header_c_list
4474do
4475  if test $ac_cache; then
4476    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4477    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4478      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4479    fi
4480    ac_header= ac_cache=
4481  elif test $ac_header; then
4482    ac_cache=$ac_item
4483  else
4484    ac_header=$ac_item
4485  fi
4486done
4487
4488
4489
4490
4491
4492
4493
4494
4495if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4496then :
4497
4498printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4499
4500fi
4501
4502
4503
4504
4505ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4506if test "x$ac_cv_have_decl___clang__" = xyes
4507then :
4508  CLANGCC="yes"
4509else $as_nop
4510  CLANGCC="no"
4511fi
4512ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4513if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4514then :
4515  INTELCC="yes"
4516else $as_nop
4517  INTELCC="no"
4518fi
4519ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4520if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4521then :
4522  SUNCC="yes"
4523else $as_nop
4524  SUNCC="no"
4525fi
4526
4527
4528
4529
4530
4531
4532
4533
4534if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4535	if test -n "$ac_tool_prefix"; then
4536  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4537set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539printf %s "checking for $ac_word... " >&6; }
4540if test ${ac_cv_path_PKG_CONFIG+y}
4541then :
4542  printf %s "(cached) " >&6
4543else $as_nop
4544  case $PKG_CONFIG in
4545  [\\/]* | ?:[\\/]*)
4546  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4547  ;;
4548  *)
4549  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550for as_dir in $PATH
4551do
4552  IFS=$as_save_IFS
4553  case $as_dir in #(((
4554    '') as_dir=./ ;;
4555    */) ;;
4556    *) as_dir=$as_dir/ ;;
4557  esac
4558    for ac_exec_ext in '' $ac_executable_extensions; do
4559  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4560    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4561    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4562    break 2
4563  fi
4564done
4565  done
4566IFS=$as_save_IFS
4567
4568  ;;
4569esac
4570fi
4571PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4572if test -n "$PKG_CONFIG"; then
4573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4574printf "%s\n" "$PKG_CONFIG" >&6; }
4575else
4576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577printf "%s\n" "no" >&6; }
4578fi
4579
4580
4581fi
4582if test -z "$ac_cv_path_PKG_CONFIG"; then
4583  ac_pt_PKG_CONFIG=$PKG_CONFIG
4584  # Extract the first word of "pkg-config", so it can be a program name with args.
4585set dummy pkg-config; ac_word=$2
4586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587printf %s "checking for $ac_word... " >&6; }
4588if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4589then :
4590  printf %s "(cached) " >&6
4591else $as_nop
4592  case $ac_pt_PKG_CONFIG in
4593  [\\/]* | ?:[\\/]*)
4594  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4595  ;;
4596  *)
4597  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598for as_dir in $PATH
4599do
4600  IFS=$as_save_IFS
4601  case $as_dir in #(((
4602    '') as_dir=./ ;;
4603    */) ;;
4604    *) as_dir=$as_dir/ ;;
4605  esac
4606    for ac_exec_ext in '' $ac_executable_extensions; do
4607  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4608    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4609    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4610    break 2
4611  fi
4612done
4613  done
4614IFS=$as_save_IFS
4615
4616  ;;
4617esac
4618fi
4619ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4620if test -n "$ac_pt_PKG_CONFIG"; then
4621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4622printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4623else
4624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625printf "%s\n" "no" >&6; }
4626fi
4627
4628  if test "x$ac_pt_PKG_CONFIG" = x; then
4629    PKG_CONFIG=""
4630  else
4631    case $cross_compiling:$ac_tool_warned in
4632yes:)
4633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4634printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4635ac_tool_warned=yes ;;
4636esac
4637    PKG_CONFIG=$ac_pt_PKG_CONFIG
4638  fi
4639else
4640  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4641fi
4642
4643fi
4644if test -n "$PKG_CONFIG"; then
4645	_pkg_min_version=0.9.0
4646	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4647printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4648	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4649		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4650printf "%s\n" "yes" >&6; }
4651	else
4652		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653printf "%s\n" "no" >&6; }
4654		PKG_CONFIG=""
4655	fi
4656fi
4657
4658
4659  # Make sure we can run config.sub.
4660$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4661  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4662
4663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4664printf %s "checking build system type... " >&6; }
4665if test ${ac_cv_build+y}
4666then :
4667  printf %s "(cached) " >&6
4668else $as_nop
4669  ac_build_alias=$build_alias
4670test "x$ac_build_alias" = x &&
4671  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4672test "x$ac_build_alias" = x &&
4673  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4674ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4675  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4676
4677fi
4678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4679printf "%s\n" "$ac_cv_build" >&6; }
4680case $ac_cv_build in
4681*-*-*) ;;
4682*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4683esac
4684build=$ac_cv_build
4685ac_save_IFS=$IFS; IFS='-'
4686set x $ac_cv_build
4687shift
4688build_cpu=$1
4689build_vendor=$2
4690shift; shift
4691# Remember, the first character of IFS is used to create $*,
4692# except with old shells:
4693build_os=$*
4694IFS=$ac_save_IFS
4695case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4696
4697
4698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4699printf %s "checking host system type... " >&6; }
4700if test ${ac_cv_host+y}
4701then :
4702  printf %s "(cached) " >&6
4703else $as_nop
4704  if test "x$host_alias" = x; then
4705  ac_cv_host=$ac_cv_build
4706else
4707  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4708    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4709fi
4710
4711fi
4712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4713printf "%s\n" "$ac_cv_host" >&6; }
4714case $ac_cv_host in
4715*-*-*) ;;
4716*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4717esac
4718host=$ac_cv_host
4719ac_save_IFS=$IFS; IFS='-'
4720set x $ac_cv_host
4721shift
4722host_cpu=$1
4723host_vendor=$2
4724shift; shift
4725# Remember, the first character of IFS is used to create $*,
4726# except with old shells:
4727host_os=$*
4728IFS=$ac_save_IFS
4729case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4730
4731
4732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4733printf %s "checking for a sed that does not truncate output... " >&6; }
4734if test ${ac_cv_path_SED+y}
4735then :
4736  printf %s "(cached) " >&6
4737else $as_nop
4738            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4739     for ac_i in 1 2 3 4 5 6 7; do
4740       ac_script="$ac_script$as_nl$ac_script"
4741     done
4742     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4743     { ac_script=; unset ac_script;}
4744     if test -z "$SED"; then
4745  ac_path_SED_found=false
4746  # Loop through the user's path and test for each of PROGNAME-LIST
4747  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748for as_dir in $PATH
4749do
4750  IFS=$as_save_IFS
4751  case $as_dir in #(((
4752    '') as_dir=./ ;;
4753    */) ;;
4754    *) as_dir=$as_dir/ ;;
4755  esac
4756    for ac_prog in sed gsed
4757   do
4758    for ac_exec_ext in '' $ac_executable_extensions; do
4759      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4760      as_fn_executable_p "$ac_path_SED" || continue
4761# Check for GNU ac_path_SED and select it if it is found.
4762  # Check for GNU $ac_path_SED
4763case `"$ac_path_SED" --version 2>&1` in
4764*GNU*)
4765  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4766*)
4767  ac_count=0
4768  printf %s 0123456789 >"conftest.in"
4769  while :
4770  do
4771    cat "conftest.in" "conftest.in" >"conftest.tmp"
4772    mv "conftest.tmp" "conftest.in"
4773    cp "conftest.in" "conftest.nl"
4774    printf "%s\n" '' >> "conftest.nl"
4775    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4776    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4777    as_fn_arith $ac_count + 1 && ac_count=$as_val
4778    if test $ac_count -gt ${ac_path_SED_max-0}; then
4779      # Best one so far, save it but keep looking for a better one
4780      ac_cv_path_SED="$ac_path_SED"
4781      ac_path_SED_max=$ac_count
4782    fi
4783    # 10*(2^10) chars as input seems more than enough
4784    test $ac_count -gt 10 && break
4785  done
4786  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4787esac
4788
4789      $ac_path_SED_found && break 3
4790    done
4791  done
4792  done
4793IFS=$as_save_IFS
4794  if test -z "$ac_cv_path_SED"; then
4795    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4796  fi
4797else
4798  ac_cv_path_SED=$SED
4799fi
4800
4801fi
4802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4803printf "%s\n" "$ac_cv_path_SED" >&6; }
4804 SED="$ac_cv_path_SED"
4805  rm -f conftest.sed
4806
4807
4808
4809
4810
4811
4812# Check whether --enable-selective-werror was given.
4813if test ${enable_selective_werror+y}
4814then :
4815  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4816else $as_nop
4817  SELECTIVE_WERROR=yes
4818fi
4819
4820
4821
4822
4823
4824# -v is too short to test reliably with XORG_TESTSET_CFLAG
4825if test "x$SUNCC" = "xyes"; then
4826    BASE_CFLAGS="-v"
4827else
4828    BASE_CFLAGS=""
4829fi
4830
4831# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845xorg_testset_save_CFLAGS="$CFLAGS"
4846
4847if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4848	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4849	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4850printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4851if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4852then :
4853  printf %s "(cached) " >&6
4854else $as_nop
4855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856/* end confdefs.h.  */
4857int i;
4858_ACEOF
4859if ac_fn_c_try_compile "$LINENO"
4860then :
4861  xorg_cv_cc_flag_unknown_warning_option=yes
4862else $as_nop
4863  xorg_cv_cc_flag_unknown_warning_option=no
4864fi
4865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4866fi
4867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4868printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4869	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4870	CFLAGS="$xorg_testset_save_CFLAGS"
4871fi
4872
4873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4874	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4875		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4876	fi
4877	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4878	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4879printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4880if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4881then :
4882  printf %s "(cached) " >&6
4883else $as_nop
4884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885/* end confdefs.h.  */
4886int i;
4887_ACEOF
4888if ac_fn_c_try_compile "$LINENO"
4889then :
4890  xorg_cv_cc_flag_unused_command_line_argument=yes
4891else $as_nop
4892  xorg_cv_cc_flag_unused_command_line_argument=no
4893fi
4894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4895fi
4896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4897printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4898	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4899	CFLAGS="$xorg_testset_save_CFLAGS"
4900fi
4901
4902found="no"
4903
4904	if test $found = "no" ; then
4905		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4906			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4907		fi
4908
4909		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4910			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4911		fi
4912
4913		CFLAGS="$CFLAGS -Wall"
4914
4915		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4916printf %s "checking if $CC supports -Wall... " >&6; }
4917		cacheid=xorg_cv_cc_flag__Wall
4918		if eval test \${$cacheid+y}
4919then :
4920  printf %s "(cached) " >&6
4921else $as_nop
4922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923/* end confdefs.h.  */
4924int i;
4925int
4926main (void)
4927{
4928
4929  ;
4930  return 0;
4931}
4932_ACEOF
4933if ac_fn_c_try_link "$LINENO"
4934then :
4935  eval $cacheid=yes
4936else $as_nop
4937  eval $cacheid=no
4938fi
4939rm -f core conftest.err conftest.$ac_objext conftest.beam \
4940    conftest$ac_exeext conftest.$ac_ext
4941fi
4942
4943
4944		CFLAGS="$xorg_testset_save_CFLAGS"
4945
4946		eval supported=\$$cacheid
4947		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4948printf "%s\n" "$supported" >&6; }
4949		if test "$supported" = "yes" ; then
4950			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4951			found="yes"
4952		fi
4953	fi
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969xorg_testset_save_CFLAGS="$CFLAGS"
4970
4971if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4972	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4973	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4974printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4975if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4976then :
4977  printf %s "(cached) " >&6
4978else $as_nop
4979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980/* end confdefs.h.  */
4981int i;
4982_ACEOF
4983if ac_fn_c_try_compile "$LINENO"
4984then :
4985  xorg_cv_cc_flag_unknown_warning_option=yes
4986else $as_nop
4987  xorg_cv_cc_flag_unknown_warning_option=no
4988fi
4989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4990fi
4991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4992printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4993	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4994	CFLAGS="$xorg_testset_save_CFLAGS"
4995fi
4996
4997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4998	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4999		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5000	fi
5001	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5002	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5003printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5004if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5005then :
5006  printf %s "(cached) " >&6
5007else $as_nop
5008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009/* end confdefs.h.  */
5010int i;
5011_ACEOF
5012if ac_fn_c_try_compile "$LINENO"
5013then :
5014  xorg_cv_cc_flag_unused_command_line_argument=yes
5015else $as_nop
5016  xorg_cv_cc_flag_unused_command_line_argument=no
5017fi
5018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5019fi
5020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5021printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5022	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5023	CFLAGS="$xorg_testset_save_CFLAGS"
5024fi
5025
5026found="no"
5027
5028	if test $found = "no" ; then
5029		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5030			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5031		fi
5032
5033		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5034			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5035		fi
5036
5037		CFLAGS="$CFLAGS -Wpointer-arith"
5038
5039		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5040printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5041		cacheid=xorg_cv_cc_flag__Wpointer_arith
5042		if eval test \${$cacheid+y}
5043then :
5044  printf %s "(cached) " >&6
5045else $as_nop
5046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047/* end confdefs.h.  */
5048int i;
5049int
5050main (void)
5051{
5052
5053  ;
5054  return 0;
5055}
5056_ACEOF
5057if ac_fn_c_try_link "$LINENO"
5058then :
5059  eval $cacheid=yes
5060else $as_nop
5061  eval $cacheid=no
5062fi
5063rm -f core conftest.err conftest.$ac_objext conftest.beam \
5064    conftest$ac_exeext conftest.$ac_ext
5065fi
5066
5067
5068		CFLAGS="$xorg_testset_save_CFLAGS"
5069
5070		eval supported=\$$cacheid
5071		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5072printf "%s\n" "$supported" >&6; }
5073		if test "$supported" = "yes" ; then
5074			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5075			found="yes"
5076		fi
5077	fi
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093xorg_testset_save_CFLAGS="$CFLAGS"
5094
5095if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5096	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5097	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5098printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5099if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5100then :
5101  printf %s "(cached) " >&6
5102else $as_nop
5103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104/* end confdefs.h.  */
5105int i;
5106_ACEOF
5107if ac_fn_c_try_compile "$LINENO"
5108then :
5109  xorg_cv_cc_flag_unknown_warning_option=yes
5110else $as_nop
5111  xorg_cv_cc_flag_unknown_warning_option=no
5112fi
5113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5114fi
5115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5116printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5117	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5118	CFLAGS="$xorg_testset_save_CFLAGS"
5119fi
5120
5121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5122	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5123		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5124	fi
5125	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5126	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5127printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5128if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5129then :
5130  printf %s "(cached) " >&6
5131else $as_nop
5132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133/* end confdefs.h.  */
5134int i;
5135_ACEOF
5136if ac_fn_c_try_compile "$LINENO"
5137then :
5138  xorg_cv_cc_flag_unused_command_line_argument=yes
5139else $as_nop
5140  xorg_cv_cc_flag_unused_command_line_argument=no
5141fi
5142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5143fi
5144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5145printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5146	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5147	CFLAGS="$xorg_testset_save_CFLAGS"
5148fi
5149
5150found="no"
5151
5152	if test $found = "no" ; then
5153		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5154			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5155		fi
5156
5157		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5158			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5159		fi
5160
5161		CFLAGS="$CFLAGS -Wmissing-declarations"
5162
5163		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5164printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5165		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5166		if eval test \${$cacheid+y}
5167then :
5168  printf %s "(cached) " >&6
5169else $as_nop
5170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171/* end confdefs.h.  */
5172int i;
5173int
5174main (void)
5175{
5176
5177  ;
5178  return 0;
5179}
5180_ACEOF
5181if ac_fn_c_try_link "$LINENO"
5182then :
5183  eval $cacheid=yes
5184else $as_nop
5185  eval $cacheid=no
5186fi
5187rm -f core conftest.err conftest.$ac_objext conftest.beam \
5188    conftest$ac_exeext conftest.$ac_ext
5189fi
5190
5191
5192		CFLAGS="$xorg_testset_save_CFLAGS"
5193
5194		eval supported=\$$cacheid
5195		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5196printf "%s\n" "$supported" >&6; }
5197		if test "$supported" = "yes" ; then
5198			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5199			found="yes"
5200		fi
5201	fi
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217xorg_testset_save_CFLAGS="$CFLAGS"
5218
5219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5220	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5221	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5222printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5223if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5224then :
5225  printf %s "(cached) " >&6
5226else $as_nop
5227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228/* end confdefs.h.  */
5229int i;
5230_ACEOF
5231if ac_fn_c_try_compile "$LINENO"
5232then :
5233  xorg_cv_cc_flag_unknown_warning_option=yes
5234else $as_nop
5235  xorg_cv_cc_flag_unknown_warning_option=no
5236fi
5237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5238fi
5239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5240printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5241	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5242	CFLAGS="$xorg_testset_save_CFLAGS"
5243fi
5244
5245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5246	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5247		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5248	fi
5249	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5250	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5251printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5252if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5253then :
5254  printf %s "(cached) " >&6
5255else $as_nop
5256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257/* end confdefs.h.  */
5258int i;
5259_ACEOF
5260if ac_fn_c_try_compile "$LINENO"
5261then :
5262  xorg_cv_cc_flag_unused_command_line_argument=yes
5263else $as_nop
5264  xorg_cv_cc_flag_unused_command_line_argument=no
5265fi
5266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5267fi
5268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5269printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5270	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5271	CFLAGS="$xorg_testset_save_CFLAGS"
5272fi
5273
5274found="no"
5275
5276	if test $found = "no" ; then
5277		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5278			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5279		fi
5280
5281		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5282			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5283		fi
5284
5285		CFLAGS="$CFLAGS -Wformat=2"
5286
5287		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5288printf %s "checking if $CC supports -Wformat=2... " >&6; }
5289		cacheid=xorg_cv_cc_flag__Wformat_2
5290		if eval test \${$cacheid+y}
5291then :
5292  printf %s "(cached) " >&6
5293else $as_nop
5294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295/* end confdefs.h.  */
5296int i;
5297int
5298main (void)
5299{
5300
5301  ;
5302  return 0;
5303}
5304_ACEOF
5305if ac_fn_c_try_link "$LINENO"
5306then :
5307  eval $cacheid=yes
5308else $as_nop
5309  eval $cacheid=no
5310fi
5311rm -f core conftest.err conftest.$ac_objext conftest.beam \
5312    conftest$ac_exeext conftest.$ac_ext
5313fi
5314
5315
5316		CFLAGS="$xorg_testset_save_CFLAGS"
5317
5318		eval supported=\$$cacheid
5319		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5320printf "%s\n" "$supported" >&6; }
5321		if test "$supported" = "yes" ; then
5322			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5323			found="yes"
5324		fi
5325	fi
5326
5327	if test $found = "no" ; then
5328		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5329			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5330		fi
5331
5332		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5333			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5334		fi
5335
5336		CFLAGS="$CFLAGS -Wformat"
5337
5338		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5339printf %s "checking if $CC supports -Wformat... " >&6; }
5340		cacheid=xorg_cv_cc_flag__Wformat
5341		if eval test \${$cacheid+y}
5342then :
5343  printf %s "(cached) " >&6
5344else $as_nop
5345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346/* end confdefs.h.  */
5347int i;
5348int
5349main (void)
5350{
5351
5352  ;
5353  return 0;
5354}
5355_ACEOF
5356if ac_fn_c_try_link "$LINENO"
5357then :
5358  eval $cacheid=yes
5359else $as_nop
5360  eval $cacheid=no
5361fi
5362rm -f core conftest.err conftest.$ac_objext conftest.beam \
5363    conftest$ac_exeext conftest.$ac_ext
5364fi
5365
5366
5367		CFLAGS="$xorg_testset_save_CFLAGS"
5368
5369		eval supported=\$$cacheid
5370		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5371printf "%s\n" "$supported" >&6; }
5372		if test "$supported" = "yes" ; then
5373			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5374			found="yes"
5375		fi
5376	fi
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394xorg_testset_save_CFLAGS="$CFLAGS"
5395
5396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5397	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5398	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5399printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5400if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5401then :
5402  printf %s "(cached) " >&6
5403else $as_nop
5404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405/* end confdefs.h.  */
5406int i;
5407_ACEOF
5408if ac_fn_c_try_compile "$LINENO"
5409then :
5410  xorg_cv_cc_flag_unknown_warning_option=yes
5411else $as_nop
5412  xorg_cv_cc_flag_unknown_warning_option=no
5413fi
5414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5415fi
5416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5417printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5418	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5419	CFLAGS="$xorg_testset_save_CFLAGS"
5420fi
5421
5422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5423	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5424		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5425	fi
5426	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5427	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5428printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5429if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5430then :
5431  printf %s "(cached) " >&6
5432else $as_nop
5433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434/* end confdefs.h.  */
5435int i;
5436_ACEOF
5437if ac_fn_c_try_compile "$LINENO"
5438then :
5439  xorg_cv_cc_flag_unused_command_line_argument=yes
5440else $as_nop
5441  xorg_cv_cc_flag_unused_command_line_argument=no
5442fi
5443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5444fi
5445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5446printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5447	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5448	CFLAGS="$xorg_testset_save_CFLAGS"
5449fi
5450
5451found="no"
5452
5453	if test $found = "no" ; then
5454		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5455			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5456		fi
5457
5458		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5459			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5460		fi
5461
5462		CFLAGS="$CFLAGS -Wstrict-prototypes"
5463
5464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5465printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5466		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5467		if eval test \${$cacheid+y}
5468then :
5469  printf %s "(cached) " >&6
5470else $as_nop
5471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472/* end confdefs.h.  */
5473int i;
5474int
5475main (void)
5476{
5477
5478  ;
5479  return 0;
5480}
5481_ACEOF
5482if ac_fn_c_try_link "$LINENO"
5483then :
5484  eval $cacheid=yes
5485else $as_nop
5486  eval $cacheid=no
5487fi
5488rm -f core conftest.err conftest.$ac_objext conftest.beam \
5489    conftest$ac_exeext conftest.$ac_ext
5490fi
5491
5492
5493		CFLAGS="$xorg_testset_save_CFLAGS"
5494
5495		eval supported=\$$cacheid
5496		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5497printf "%s\n" "$supported" >&6; }
5498		if test "$supported" = "yes" ; then
5499			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5500			found="yes"
5501		fi
5502	fi
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518xorg_testset_save_CFLAGS="$CFLAGS"
5519
5520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5521	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5522	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5523printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5524if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5525then :
5526  printf %s "(cached) " >&6
5527else $as_nop
5528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529/* end confdefs.h.  */
5530int i;
5531_ACEOF
5532if ac_fn_c_try_compile "$LINENO"
5533then :
5534  xorg_cv_cc_flag_unknown_warning_option=yes
5535else $as_nop
5536  xorg_cv_cc_flag_unknown_warning_option=no
5537fi
5538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5539fi
5540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5541printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5542	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5543	CFLAGS="$xorg_testset_save_CFLAGS"
5544fi
5545
5546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5547	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5548		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5549	fi
5550	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5551	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5552printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5553if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5554then :
5555  printf %s "(cached) " >&6
5556else $as_nop
5557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558/* end confdefs.h.  */
5559int i;
5560_ACEOF
5561if ac_fn_c_try_compile "$LINENO"
5562then :
5563  xorg_cv_cc_flag_unused_command_line_argument=yes
5564else $as_nop
5565  xorg_cv_cc_flag_unused_command_line_argument=no
5566fi
5567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5568fi
5569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5570printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5571	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5572	CFLAGS="$xorg_testset_save_CFLAGS"
5573fi
5574
5575found="no"
5576
5577	if test $found = "no" ; then
5578		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5579			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5580		fi
5581
5582		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5583			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5584		fi
5585
5586		CFLAGS="$CFLAGS -Wmissing-prototypes"
5587
5588		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5589printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5590		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5591		if eval test \${$cacheid+y}
5592then :
5593  printf %s "(cached) " >&6
5594else $as_nop
5595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596/* end confdefs.h.  */
5597int i;
5598int
5599main (void)
5600{
5601
5602  ;
5603  return 0;
5604}
5605_ACEOF
5606if ac_fn_c_try_link "$LINENO"
5607then :
5608  eval $cacheid=yes
5609else $as_nop
5610  eval $cacheid=no
5611fi
5612rm -f core conftest.err conftest.$ac_objext conftest.beam \
5613    conftest$ac_exeext conftest.$ac_ext
5614fi
5615
5616
5617		CFLAGS="$xorg_testset_save_CFLAGS"
5618
5619		eval supported=\$$cacheid
5620		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5621printf "%s\n" "$supported" >&6; }
5622		if test "$supported" = "yes" ; then
5623			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5624			found="yes"
5625		fi
5626	fi
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642xorg_testset_save_CFLAGS="$CFLAGS"
5643
5644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5645	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5646	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5647printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5648if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5649then :
5650  printf %s "(cached) " >&6
5651else $as_nop
5652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653/* end confdefs.h.  */
5654int i;
5655_ACEOF
5656if ac_fn_c_try_compile "$LINENO"
5657then :
5658  xorg_cv_cc_flag_unknown_warning_option=yes
5659else $as_nop
5660  xorg_cv_cc_flag_unknown_warning_option=no
5661fi
5662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5663fi
5664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5665printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5666	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5667	CFLAGS="$xorg_testset_save_CFLAGS"
5668fi
5669
5670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5671	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5672		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5673	fi
5674	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5675	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5676printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5677if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5678then :
5679  printf %s "(cached) " >&6
5680else $as_nop
5681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682/* end confdefs.h.  */
5683int i;
5684_ACEOF
5685if ac_fn_c_try_compile "$LINENO"
5686then :
5687  xorg_cv_cc_flag_unused_command_line_argument=yes
5688else $as_nop
5689  xorg_cv_cc_flag_unused_command_line_argument=no
5690fi
5691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5692fi
5693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5694printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5695	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5696	CFLAGS="$xorg_testset_save_CFLAGS"
5697fi
5698
5699found="no"
5700
5701	if test $found = "no" ; then
5702		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5703			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5704		fi
5705
5706		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5707			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5708		fi
5709
5710		CFLAGS="$CFLAGS -Wnested-externs"
5711
5712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5713printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5714		cacheid=xorg_cv_cc_flag__Wnested_externs
5715		if eval test \${$cacheid+y}
5716then :
5717  printf %s "(cached) " >&6
5718else $as_nop
5719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720/* end confdefs.h.  */
5721int i;
5722int
5723main (void)
5724{
5725
5726  ;
5727  return 0;
5728}
5729_ACEOF
5730if ac_fn_c_try_link "$LINENO"
5731then :
5732  eval $cacheid=yes
5733else $as_nop
5734  eval $cacheid=no
5735fi
5736rm -f core conftest.err conftest.$ac_objext conftest.beam \
5737    conftest$ac_exeext conftest.$ac_ext
5738fi
5739
5740
5741		CFLAGS="$xorg_testset_save_CFLAGS"
5742
5743		eval supported=\$$cacheid
5744		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5745printf "%s\n" "$supported" >&6; }
5746		if test "$supported" = "yes" ; then
5747			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5748			found="yes"
5749		fi
5750	fi
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766xorg_testset_save_CFLAGS="$CFLAGS"
5767
5768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5770	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5771printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5772if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5773then :
5774  printf %s "(cached) " >&6
5775else $as_nop
5776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777/* end confdefs.h.  */
5778int i;
5779_ACEOF
5780if ac_fn_c_try_compile "$LINENO"
5781then :
5782  xorg_cv_cc_flag_unknown_warning_option=yes
5783else $as_nop
5784  xorg_cv_cc_flag_unknown_warning_option=no
5785fi
5786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5787fi
5788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5789printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5790	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5791	CFLAGS="$xorg_testset_save_CFLAGS"
5792fi
5793
5794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5795	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5796		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5797	fi
5798	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5799	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5800printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5801if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5802then :
5803  printf %s "(cached) " >&6
5804else $as_nop
5805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806/* end confdefs.h.  */
5807int i;
5808_ACEOF
5809if ac_fn_c_try_compile "$LINENO"
5810then :
5811  xorg_cv_cc_flag_unused_command_line_argument=yes
5812else $as_nop
5813  xorg_cv_cc_flag_unused_command_line_argument=no
5814fi
5815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5816fi
5817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5818printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5819	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5820	CFLAGS="$xorg_testset_save_CFLAGS"
5821fi
5822
5823found="no"
5824
5825	if test $found = "no" ; then
5826		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5827			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5828		fi
5829
5830		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5831			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5832		fi
5833
5834		CFLAGS="$CFLAGS -Wbad-function-cast"
5835
5836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5837printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5838		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5839		if eval test \${$cacheid+y}
5840then :
5841  printf %s "(cached) " >&6
5842else $as_nop
5843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844/* end confdefs.h.  */
5845int i;
5846int
5847main (void)
5848{
5849
5850  ;
5851  return 0;
5852}
5853_ACEOF
5854if ac_fn_c_try_link "$LINENO"
5855then :
5856  eval $cacheid=yes
5857else $as_nop
5858  eval $cacheid=no
5859fi
5860rm -f core conftest.err conftest.$ac_objext conftest.beam \
5861    conftest$ac_exeext conftest.$ac_ext
5862fi
5863
5864
5865		CFLAGS="$xorg_testset_save_CFLAGS"
5866
5867		eval supported=\$$cacheid
5868		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5869printf "%s\n" "$supported" >&6; }
5870		if test "$supported" = "yes" ; then
5871			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5872			found="yes"
5873		fi
5874	fi
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890xorg_testset_save_CFLAGS="$CFLAGS"
5891
5892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5893	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5894	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5895printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5896if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5897then :
5898  printf %s "(cached) " >&6
5899else $as_nop
5900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901/* end confdefs.h.  */
5902int i;
5903_ACEOF
5904if ac_fn_c_try_compile "$LINENO"
5905then :
5906  xorg_cv_cc_flag_unknown_warning_option=yes
5907else $as_nop
5908  xorg_cv_cc_flag_unknown_warning_option=no
5909fi
5910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5911fi
5912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5913printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5914	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5915	CFLAGS="$xorg_testset_save_CFLAGS"
5916fi
5917
5918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5919	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5920		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5921	fi
5922	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5923	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5924printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5925if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5926then :
5927  printf %s "(cached) " >&6
5928else $as_nop
5929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930/* end confdefs.h.  */
5931int i;
5932_ACEOF
5933if ac_fn_c_try_compile "$LINENO"
5934then :
5935  xorg_cv_cc_flag_unused_command_line_argument=yes
5936else $as_nop
5937  xorg_cv_cc_flag_unused_command_line_argument=no
5938fi
5939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5940fi
5941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5942printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5943	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5944	CFLAGS="$xorg_testset_save_CFLAGS"
5945fi
5946
5947found="no"
5948
5949	if test $found = "no" ; then
5950		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5951			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5952		fi
5953
5954		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5955			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5956		fi
5957
5958		CFLAGS="$CFLAGS -Wold-style-definition"
5959
5960		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5961printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5962		cacheid=xorg_cv_cc_flag__Wold_style_definition
5963		if eval test \${$cacheid+y}
5964then :
5965  printf %s "(cached) " >&6
5966else $as_nop
5967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968/* end confdefs.h.  */
5969int i;
5970int
5971main (void)
5972{
5973
5974  ;
5975  return 0;
5976}
5977_ACEOF
5978if ac_fn_c_try_link "$LINENO"
5979then :
5980  eval $cacheid=yes
5981else $as_nop
5982  eval $cacheid=no
5983fi
5984rm -f core conftest.err conftest.$ac_objext conftest.beam \
5985    conftest$ac_exeext conftest.$ac_ext
5986fi
5987
5988
5989		CFLAGS="$xorg_testset_save_CFLAGS"
5990
5991		eval supported=\$$cacheid
5992		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5993printf "%s\n" "$supported" >&6; }
5994		if test "$supported" = "yes" ; then
5995			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5996			found="yes"
5997		fi
5998	fi
5999
6000	if test $found = "no" ; then
6001		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6002			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6003		fi
6004
6005		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6006			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6007		fi
6008
6009		CFLAGS="$CFLAGS -fd"
6010
6011		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6012printf %s "checking if $CC supports -fd... " >&6; }
6013		cacheid=xorg_cv_cc_flag__fd
6014		if eval test \${$cacheid+y}
6015then :
6016  printf %s "(cached) " >&6
6017else $as_nop
6018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019/* end confdefs.h.  */
6020int i;
6021int
6022main (void)
6023{
6024
6025  ;
6026  return 0;
6027}
6028_ACEOF
6029if ac_fn_c_try_link "$LINENO"
6030then :
6031  eval $cacheid=yes
6032else $as_nop
6033  eval $cacheid=no
6034fi
6035rm -f core conftest.err conftest.$ac_objext conftest.beam \
6036    conftest$ac_exeext conftest.$ac_ext
6037fi
6038
6039
6040		CFLAGS="$xorg_testset_save_CFLAGS"
6041
6042		eval supported=\$$cacheid
6043		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6044printf "%s\n" "$supported" >&6; }
6045		if test "$supported" = "yes" ; then
6046			BASE_CFLAGS="$BASE_CFLAGS -fd"
6047			found="yes"
6048		fi
6049	fi
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065xorg_testset_save_CFLAGS="$CFLAGS"
6066
6067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6068	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6069	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6070printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6071if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6072then :
6073  printf %s "(cached) " >&6
6074else $as_nop
6075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076/* end confdefs.h.  */
6077int i;
6078_ACEOF
6079if ac_fn_c_try_compile "$LINENO"
6080then :
6081  xorg_cv_cc_flag_unknown_warning_option=yes
6082else $as_nop
6083  xorg_cv_cc_flag_unknown_warning_option=no
6084fi
6085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6086fi
6087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6088printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6089	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6090	CFLAGS="$xorg_testset_save_CFLAGS"
6091fi
6092
6093if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6094	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6095		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6096	fi
6097	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6098	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6099printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6100if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6101then :
6102  printf %s "(cached) " >&6
6103else $as_nop
6104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105/* end confdefs.h.  */
6106int i;
6107_ACEOF
6108if ac_fn_c_try_compile "$LINENO"
6109then :
6110  xorg_cv_cc_flag_unused_command_line_argument=yes
6111else $as_nop
6112  xorg_cv_cc_flag_unused_command_line_argument=no
6113fi
6114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6115fi
6116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6117printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6118	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6119	CFLAGS="$xorg_testset_save_CFLAGS"
6120fi
6121
6122found="no"
6123
6124	if test $found = "no" ; then
6125		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6126			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6127		fi
6128
6129		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6130			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6131		fi
6132
6133		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6134
6135		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6136printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6137		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6138		if eval test \${$cacheid+y}
6139then :
6140  printf %s "(cached) " >&6
6141else $as_nop
6142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143/* end confdefs.h.  */
6144int i;
6145int
6146main (void)
6147{
6148
6149  ;
6150  return 0;
6151}
6152_ACEOF
6153if ac_fn_c_try_link "$LINENO"
6154then :
6155  eval $cacheid=yes
6156else $as_nop
6157  eval $cacheid=no
6158fi
6159rm -f core conftest.err conftest.$ac_objext conftest.beam \
6160    conftest$ac_exeext conftest.$ac_ext
6161fi
6162
6163
6164		CFLAGS="$xorg_testset_save_CFLAGS"
6165
6166		eval supported=\$$cacheid
6167		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6168printf "%s\n" "$supported" >&6; }
6169		if test "$supported" = "yes" ; then
6170			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6171			found="yes"
6172		fi
6173	fi
6174
6175
6176
6177
6178
6179# This chunk adds additional warnings that could catch undesired effects.
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193xorg_testset_save_CFLAGS="$CFLAGS"
6194
6195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6196	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6197	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6198printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6199if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6200then :
6201  printf %s "(cached) " >&6
6202else $as_nop
6203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204/* end confdefs.h.  */
6205int i;
6206_ACEOF
6207if ac_fn_c_try_compile "$LINENO"
6208then :
6209  xorg_cv_cc_flag_unknown_warning_option=yes
6210else $as_nop
6211  xorg_cv_cc_flag_unknown_warning_option=no
6212fi
6213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6214fi
6215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6216printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6217	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6218	CFLAGS="$xorg_testset_save_CFLAGS"
6219fi
6220
6221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6222	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6223		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6224	fi
6225	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6226	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6227printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6228if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6229then :
6230  printf %s "(cached) " >&6
6231else $as_nop
6232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233/* end confdefs.h.  */
6234int i;
6235_ACEOF
6236if ac_fn_c_try_compile "$LINENO"
6237then :
6238  xorg_cv_cc_flag_unused_command_line_argument=yes
6239else $as_nop
6240  xorg_cv_cc_flag_unused_command_line_argument=no
6241fi
6242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6243fi
6244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6245printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6246	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6247	CFLAGS="$xorg_testset_save_CFLAGS"
6248fi
6249
6250found="no"
6251
6252	if test $found = "no" ; then
6253		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6254			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6255		fi
6256
6257		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6258			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6259		fi
6260
6261		CFLAGS="$CFLAGS -Wunused"
6262
6263		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6264printf %s "checking if $CC supports -Wunused... " >&6; }
6265		cacheid=xorg_cv_cc_flag__Wunused
6266		if eval test \${$cacheid+y}
6267then :
6268  printf %s "(cached) " >&6
6269else $as_nop
6270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271/* end confdefs.h.  */
6272int i;
6273int
6274main (void)
6275{
6276
6277  ;
6278  return 0;
6279}
6280_ACEOF
6281if ac_fn_c_try_link "$LINENO"
6282then :
6283  eval $cacheid=yes
6284else $as_nop
6285  eval $cacheid=no
6286fi
6287rm -f core conftest.err conftest.$ac_objext conftest.beam \
6288    conftest$ac_exeext conftest.$ac_ext
6289fi
6290
6291
6292		CFLAGS="$xorg_testset_save_CFLAGS"
6293
6294		eval supported=\$$cacheid
6295		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6296printf "%s\n" "$supported" >&6; }
6297		if test "$supported" = "yes" ; then
6298			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6299			found="yes"
6300		fi
6301	fi
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317xorg_testset_save_CFLAGS="$CFLAGS"
6318
6319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6320	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6321	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6322printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6323if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6324then :
6325  printf %s "(cached) " >&6
6326else $as_nop
6327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328/* end confdefs.h.  */
6329int i;
6330_ACEOF
6331if ac_fn_c_try_compile "$LINENO"
6332then :
6333  xorg_cv_cc_flag_unknown_warning_option=yes
6334else $as_nop
6335  xorg_cv_cc_flag_unknown_warning_option=no
6336fi
6337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6338fi
6339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6340printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6341	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6342	CFLAGS="$xorg_testset_save_CFLAGS"
6343fi
6344
6345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6346	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6347		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6348	fi
6349	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6350	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6351printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6352if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6353then :
6354  printf %s "(cached) " >&6
6355else $as_nop
6356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357/* end confdefs.h.  */
6358int i;
6359_ACEOF
6360if ac_fn_c_try_compile "$LINENO"
6361then :
6362  xorg_cv_cc_flag_unused_command_line_argument=yes
6363else $as_nop
6364  xorg_cv_cc_flag_unused_command_line_argument=no
6365fi
6366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6367fi
6368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6369printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6370	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6371	CFLAGS="$xorg_testset_save_CFLAGS"
6372fi
6373
6374found="no"
6375
6376	if test $found = "no" ; then
6377		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6378			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6379		fi
6380
6381		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6382			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6383		fi
6384
6385		CFLAGS="$CFLAGS -Wuninitialized"
6386
6387		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6388printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6389		cacheid=xorg_cv_cc_flag__Wuninitialized
6390		if eval test \${$cacheid+y}
6391then :
6392  printf %s "(cached) " >&6
6393else $as_nop
6394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395/* end confdefs.h.  */
6396int i;
6397int
6398main (void)
6399{
6400
6401  ;
6402  return 0;
6403}
6404_ACEOF
6405if ac_fn_c_try_link "$LINENO"
6406then :
6407  eval $cacheid=yes
6408else $as_nop
6409  eval $cacheid=no
6410fi
6411rm -f core conftest.err conftest.$ac_objext conftest.beam \
6412    conftest$ac_exeext conftest.$ac_ext
6413fi
6414
6415
6416		CFLAGS="$xorg_testset_save_CFLAGS"
6417
6418		eval supported=\$$cacheid
6419		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6420printf "%s\n" "$supported" >&6; }
6421		if test "$supported" = "yes" ; then
6422			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6423			found="yes"
6424		fi
6425	fi
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441xorg_testset_save_CFLAGS="$CFLAGS"
6442
6443if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6444	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6445	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6446printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6447if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6448then :
6449  printf %s "(cached) " >&6
6450else $as_nop
6451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452/* end confdefs.h.  */
6453int i;
6454_ACEOF
6455if ac_fn_c_try_compile "$LINENO"
6456then :
6457  xorg_cv_cc_flag_unknown_warning_option=yes
6458else $as_nop
6459  xorg_cv_cc_flag_unknown_warning_option=no
6460fi
6461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6462fi
6463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6464printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6465	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6466	CFLAGS="$xorg_testset_save_CFLAGS"
6467fi
6468
6469if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6470	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6471		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6472	fi
6473	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6474	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6475printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6476if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6477then :
6478  printf %s "(cached) " >&6
6479else $as_nop
6480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481/* end confdefs.h.  */
6482int i;
6483_ACEOF
6484if ac_fn_c_try_compile "$LINENO"
6485then :
6486  xorg_cv_cc_flag_unused_command_line_argument=yes
6487else $as_nop
6488  xorg_cv_cc_flag_unused_command_line_argument=no
6489fi
6490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6491fi
6492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6493printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6494	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6495	CFLAGS="$xorg_testset_save_CFLAGS"
6496fi
6497
6498found="no"
6499
6500	if test $found = "no" ; then
6501		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6502			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6503		fi
6504
6505		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6506			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6507		fi
6508
6509		CFLAGS="$CFLAGS -Wshadow"
6510
6511		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6512printf %s "checking if $CC supports -Wshadow... " >&6; }
6513		cacheid=xorg_cv_cc_flag__Wshadow
6514		if eval test \${$cacheid+y}
6515then :
6516  printf %s "(cached) " >&6
6517else $as_nop
6518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519/* end confdefs.h.  */
6520int i;
6521int
6522main (void)
6523{
6524
6525  ;
6526  return 0;
6527}
6528_ACEOF
6529if ac_fn_c_try_link "$LINENO"
6530then :
6531  eval $cacheid=yes
6532else $as_nop
6533  eval $cacheid=no
6534fi
6535rm -f core conftest.err conftest.$ac_objext conftest.beam \
6536    conftest$ac_exeext conftest.$ac_ext
6537fi
6538
6539
6540		CFLAGS="$xorg_testset_save_CFLAGS"
6541
6542		eval supported=\$$cacheid
6543		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6544printf "%s\n" "$supported" >&6; }
6545		if test "$supported" = "yes" ; then
6546			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6547			found="yes"
6548		fi
6549	fi
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565xorg_testset_save_CFLAGS="$CFLAGS"
6566
6567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6568	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6569	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6570printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6571if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6572then :
6573  printf %s "(cached) " >&6
6574else $as_nop
6575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576/* end confdefs.h.  */
6577int i;
6578_ACEOF
6579if ac_fn_c_try_compile "$LINENO"
6580then :
6581  xorg_cv_cc_flag_unknown_warning_option=yes
6582else $as_nop
6583  xorg_cv_cc_flag_unknown_warning_option=no
6584fi
6585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6586fi
6587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6588printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6589	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6590	CFLAGS="$xorg_testset_save_CFLAGS"
6591fi
6592
6593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6594	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6595		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6596	fi
6597	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6598	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6599printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6600if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6601then :
6602  printf %s "(cached) " >&6
6603else $as_nop
6604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605/* end confdefs.h.  */
6606int i;
6607_ACEOF
6608if ac_fn_c_try_compile "$LINENO"
6609then :
6610  xorg_cv_cc_flag_unused_command_line_argument=yes
6611else $as_nop
6612  xorg_cv_cc_flag_unused_command_line_argument=no
6613fi
6614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6615fi
6616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6617printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6618	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6619	CFLAGS="$xorg_testset_save_CFLAGS"
6620fi
6621
6622found="no"
6623
6624	if test $found = "no" ; then
6625		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6626			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6627		fi
6628
6629		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6630			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6631		fi
6632
6633		CFLAGS="$CFLAGS -Wmissing-noreturn"
6634
6635		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6636printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6637		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6638		if eval test \${$cacheid+y}
6639then :
6640  printf %s "(cached) " >&6
6641else $as_nop
6642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643/* end confdefs.h.  */
6644int i;
6645int
6646main (void)
6647{
6648
6649  ;
6650  return 0;
6651}
6652_ACEOF
6653if ac_fn_c_try_link "$LINENO"
6654then :
6655  eval $cacheid=yes
6656else $as_nop
6657  eval $cacheid=no
6658fi
6659rm -f core conftest.err conftest.$ac_objext conftest.beam \
6660    conftest$ac_exeext conftest.$ac_ext
6661fi
6662
6663
6664		CFLAGS="$xorg_testset_save_CFLAGS"
6665
6666		eval supported=\$$cacheid
6667		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6668printf "%s\n" "$supported" >&6; }
6669		if test "$supported" = "yes" ; then
6670			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6671			found="yes"
6672		fi
6673	fi
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689xorg_testset_save_CFLAGS="$CFLAGS"
6690
6691if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6692	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6693	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6694printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6695if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6696then :
6697  printf %s "(cached) " >&6
6698else $as_nop
6699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700/* end confdefs.h.  */
6701int i;
6702_ACEOF
6703if ac_fn_c_try_compile "$LINENO"
6704then :
6705  xorg_cv_cc_flag_unknown_warning_option=yes
6706else $as_nop
6707  xorg_cv_cc_flag_unknown_warning_option=no
6708fi
6709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6710fi
6711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6712printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6713	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6714	CFLAGS="$xorg_testset_save_CFLAGS"
6715fi
6716
6717if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6718	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6719		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6720	fi
6721	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6722	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6723printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6724if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6725then :
6726  printf %s "(cached) " >&6
6727else $as_nop
6728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729/* end confdefs.h.  */
6730int i;
6731_ACEOF
6732if ac_fn_c_try_compile "$LINENO"
6733then :
6734  xorg_cv_cc_flag_unused_command_line_argument=yes
6735else $as_nop
6736  xorg_cv_cc_flag_unused_command_line_argument=no
6737fi
6738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6739fi
6740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6741printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6742	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6743	CFLAGS="$xorg_testset_save_CFLAGS"
6744fi
6745
6746found="no"
6747
6748	if test $found = "no" ; then
6749		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6750			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6751		fi
6752
6753		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6754			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6755		fi
6756
6757		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6758
6759		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6760printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6761		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6762		if eval test \${$cacheid+y}
6763then :
6764  printf %s "(cached) " >&6
6765else $as_nop
6766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767/* end confdefs.h.  */
6768int i;
6769int
6770main (void)
6771{
6772
6773  ;
6774  return 0;
6775}
6776_ACEOF
6777if ac_fn_c_try_link "$LINENO"
6778then :
6779  eval $cacheid=yes
6780else $as_nop
6781  eval $cacheid=no
6782fi
6783rm -f core conftest.err conftest.$ac_objext conftest.beam \
6784    conftest$ac_exeext conftest.$ac_ext
6785fi
6786
6787
6788		CFLAGS="$xorg_testset_save_CFLAGS"
6789
6790		eval supported=\$$cacheid
6791		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6792printf "%s\n" "$supported" >&6; }
6793		if test "$supported" = "yes" ; then
6794			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6795			found="yes"
6796		fi
6797	fi
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813xorg_testset_save_CFLAGS="$CFLAGS"
6814
6815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6816	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6817	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6818printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6819if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6820then :
6821  printf %s "(cached) " >&6
6822else $as_nop
6823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824/* end confdefs.h.  */
6825int i;
6826_ACEOF
6827if ac_fn_c_try_compile "$LINENO"
6828then :
6829  xorg_cv_cc_flag_unknown_warning_option=yes
6830else $as_nop
6831  xorg_cv_cc_flag_unknown_warning_option=no
6832fi
6833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6834fi
6835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6836printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6837	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6838	CFLAGS="$xorg_testset_save_CFLAGS"
6839fi
6840
6841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6842	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6843		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6844	fi
6845	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6846	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6847printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6848if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6849then :
6850  printf %s "(cached) " >&6
6851else $as_nop
6852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853/* end confdefs.h.  */
6854int i;
6855_ACEOF
6856if ac_fn_c_try_compile "$LINENO"
6857then :
6858  xorg_cv_cc_flag_unused_command_line_argument=yes
6859else $as_nop
6860  xorg_cv_cc_flag_unused_command_line_argument=no
6861fi
6862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6863fi
6864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6865printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6866	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6867	CFLAGS="$xorg_testset_save_CFLAGS"
6868fi
6869
6870found="no"
6871
6872	if test $found = "no" ; then
6873		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6875		fi
6876
6877		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6879		fi
6880
6881		CFLAGS="$CFLAGS -Wredundant-decls"
6882
6883		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6884printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6885		cacheid=xorg_cv_cc_flag__Wredundant_decls
6886		if eval test \${$cacheid+y}
6887then :
6888  printf %s "(cached) " >&6
6889else $as_nop
6890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891/* end confdefs.h.  */
6892int i;
6893int
6894main (void)
6895{
6896
6897  ;
6898  return 0;
6899}
6900_ACEOF
6901if ac_fn_c_try_link "$LINENO"
6902then :
6903  eval $cacheid=yes
6904else $as_nop
6905  eval $cacheid=no
6906fi
6907rm -f core conftest.err conftest.$ac_objext conftest.beam \
6908    conftest$ac_exeext conftest.$ac_ext
6909fi
6910
6911
6912		CFLAGS="$xorg_testset_save_CFLAGS"
6913
6914		eval supported=\$$cacheid
6915		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6916printf "%s\n" "$supported" >&6; }
6917		if test "$supported" = "yes" ; then
6918			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6919			found="yes"
6920		fi
6921	fi
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937xorg_testset_save_CFLAGS="$CFLAGS"
6938
6939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6940	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6941	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6942printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6943if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6944then :
6945  printf %s "(cached) " >&6
6946else $as_nop
6947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948/* end confdefs.h.  */
6949int i;
6950_ACEOF
6951if ac_fn_c_try_compile "$LINENO"
6952then :
6953  xorg_cv_cc_flag_unknown_warning_option=yes
6954else $as_nop
6955  xorg_cv_cc_flag_unknown_warning_option=no
6956fi
6957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6958fi
6959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6960printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6961	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6962	CFLAGS="$xorg_testset_save_CFLAGS"
6963fi
6964
6965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6966	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6967		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6968	fi
6969	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6970	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6971printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6972if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6973then :
6974  printf %s "(cached) " >&6
6975else $as_nop
6976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977/* end confdefs.h.  */
6978int i;
6979_ACEOF
6980if ac_fn_c_try_compile "$LINENO"
6981then :
6982  xorg_cv_cc_flag_unused_command_line_argument=yes
6983else $as_nop
6984  xorg_cv_cc_flag_unused_command_line_argument=no
6985fi
6986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6987fi
6988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6989printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6990	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6991	CFLAGS="$xorg_testset_save_CFLAGS"
6992fi
6993
6994found="no"
6995
6996	if test $found = "no" ; then
6997		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6998			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6999		fi
7000
7001		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7002			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7003		fi
7004
7005		CFLAGS="$CFLAGS -Wlogical-op"
7006
7007		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7008printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7009		cacheid=xorg_cv_cc_flag__Wlogical_op
7010		if eval test \${$cacheid+y}
7011then :
7012  printf %s "(cached) " >&6
7013else $as_nop
7014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015/* end confdefs.h.  */
7016int i;
7017int
7018main (void)
7019{
7020
7021  ;
7022  return 0;
7023}
7024_ACEOF
7025if ac_fn_c_try_link "$LINENO"
7026then :
7027  eval $cacheid=yes
7028else $as_nop
7029  eval $cacheid=no
7030fi
7031rm -f core conftest.err conftest.$ac_objext conftest.beam \
7032    conftest$ac_exeext conftest.$ac_ext
7033fi
7034
7035
7036		CFLAGS="$xorg_testset_save_CFLAGS"
7037
7038		eval supported=\$$cacheid
7039		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7040printf "%s\n" "$supported" >&6; }
7041		if test "$supported" = "yes" ; then
7042			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7043			found="yes"
7044		fi
7045	fi
7046
7047
7048
7049# These are currently disabled because they are noisy.  They will be enabled
7050# in the future once the codebase is sufficiently modernized to silence
7051# them.  For now, I don't want them to drown out the other warnings.
7052# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7053# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7054# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7055
7056# Turn some warnings into errors, so we don't accidently get successful builds
7057# when there are problems that should be fixed.
7058
7059if test "x$SELECTIVE_WERROR" = "xyes" ; then
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073xorg_testset_save_CFLAGS="$CFLAGS"
7074
7075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7076	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7077	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7078printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7079if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7080then :
7081  printf %s "(cached) " >&6
7082else $as_nop
7083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084/* end confdefs.h.  */
7085int i;
7086_ACEOF
7087if ac_fn_c_try_compile "$LINENO"
7088then :
7089  xorg_cv_cc_flag_unknown_warning_option=yes
7090else $as_nop
7091  xorg_cv_cc_flag_unknown_warning_option=no
7092fi
7093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7094fi
7095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7096printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7097	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7098	CFLAGS="$xorg_testset_save_CFLAGS"
7099fi
7100
7101if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7102	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7103		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7104	fi
7105	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7106	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7107printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7108if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7109then :
7110  printf %s "(cached) " >&6
7111else $as_nop
7112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113/* end confdefs.h.  */
7114int i;
7115_ACEOF
7116if ac_fn_c_try_compile "$LINENO"
7117then :
7118  xorg_cv_cc_flag_unused_command_line_argument=yes
7119else $as_nop
7120  xorg_cv_cc_flag_unused_command_line_argument=no
7121fi
7122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7123fi
7124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7125printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7126	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7127	CFLAGS="$xorg_testset_save_CFLAGS"
7128fi
7129
7130found="no"
7131
7132	if test $found = "no" ; then
7133		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7134			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7135		fi
7136
7137		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7138			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7139		fi
7140
7141		CFLAGS="$CFLAGS -Werror=implicit"
7142
7143		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7144printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7145		cacheid=xorg_cv_cc_flag__Werror_implicit
7146		if eval test \${$cacheid+y}
7147then :
7148  printf %s "(cached) " >&6
7149else $as_nop
7150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151/* end confdefs.h.  */
7152int i;
7153int
7154main (void)
7155{
7156
7157  ;
7158  return 0;
7159}
7160_ACEOF
7161if ac_fn_c_try_link "$LINENO"
7162then :
7163  eval $cacheid=yes
7164else $as_nop
7165  eval $cacheid=no
7166fi
7167rm -f core conftest.err conftest.$ac_objext conftest.beam \
7168    conftest$ac_exeext conftest.$ac_ext
7169fi
7170
7171
7172		CFLAGS="$xorg_testset_save_CFLAGS"
7173
7174		eval supported=\$$cacheid
7175		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7176printf "%s\n" "$supported" >&6; }
7177		if test "$supported" = "yes" ; then
7178			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7179			found="yes"
7180		fi
7181	fi
7182
7183	if test $found = "no" ; then
7184		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7185			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7186		fi
7187
7188		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7189			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7190		fi
7191
7192		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7193
7194		{ 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
7195printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7196		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7197		if eval test \${$cacheid+y}
7198then :
7199  printf %s "(cached) " >&6
7200else $as_nop
7201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202/* end confdefs.h.  */
7203int i;
7204int
7205main (void)
7206{
7207
7208  ;
7209  return 0;
7210}
7211_ACEOF
7212if ac_fn_c_try_link "$LINENO"
7213then :
7214  eval $cacheid=yes
7215else $as_nop
7216  eval $cacheid=no
7217fi
7218rm -f core conftest.err conftest.$ac_objext conftest.beam \
7219    conftest$ac_exeext conftest.$ac_ext
7220fi
7221
7222
7223		CFLAGS="$xorg_testset_save_CFLAGS"
7224
7225		eval supported=\$$cacheid
7226		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7227printf "%s\n" "$supported" >&6; }
7228		if test "$supported" = "yes" ; then
7229			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7230			found="yes"
7231		fi
7232	fi
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248xorg_testset_save_CFLAGS="$CFLAGS"
7249
7250if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7251	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7252	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7253printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7254if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7255then :
7256  printf %s "(cached) " >&6
7257else $as_nop
7258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259/* end confdefs.h.  */
7260int i;
7261_ACEOF
7262if ac_fn_c_try_compile "$LINENO"
7263then :
7264  xorg_cv_cc_flag_unknown_warning_option=yes
7265else $as_nop
7266  xorg_cv_cc_flag_unknown_warning_option=no
7267fi
7268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7269fi
7270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7271printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7272	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7273	CFLAGS="$xorg_testset_save_CFLAGS"
7274fi
7275
7276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7277	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7278		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7279	fi
7280	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7281	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7282printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7283if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7284then :
7285  printf %s "(cached) " >&6
7286else $as_nop
7287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288/* end confdefs.h.  */
7289int i;
7290_ACEOF
7291if ac_fn_c_try_compile "$LINENO"
7292then :
7293  xorg_cv_cc_flag_unused_command_line_argument=yes
7294else $as_nop
7295  xorg_cv_cc_flag_unused_command_line_argument=no
7296fi
7297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7298fi
7299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7300printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7301	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7302	CFLAGS="$xorg_testset_save_CFLAGS"
7303fi
7304
7305found="no"
7306
7307	if test $found = "no" ; then
7308		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7309			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7310		fi
7311
7312		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7313			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7314		fi
7315
7316		CFLAGS="$CFLAGS -Werror=nonnull"
7317
7318		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7319printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7320		cacheid=xorg_cv_cc_flag__Werror_nonnull
7321		if eval test \${$cacheid+y}
7322then :
7323  printf %s "(cached) " >&6
7324else $as_nop
7325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326/* end confdefs.h.  */
7327int i;
7328int
7329main (void)
7330{
7331
7332  ;
7333  return 0;
7334}
7335_ACEOF
7336if ac_fn_c_try_link "$LINENO"
7337then :
7338  eval $cacheid=yes
7339else $as_nop
7340  eval $cacheid=no
7341fi
7342rm -f core conftest.err conftest.$ac_objext conftest.beam \
7343    conftest$ac_exeext conftest.$ac_ext
7344fi
7345
7346
7347		CFLAGS="$xorg_testset_save_CFLAGS"
7348
7349		eval supported=\$$cacheid
7350		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7351printf "%s\n" "$supported" >&6; }
7352		if test "$supported" = "yes" ; then
7353			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7354			found="yes"
7355		fi
7356	fi
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372xorg_testset_save_CFLAGS="$CFLAGS"
7373
7374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7375	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7376	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7377printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7378if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7379then :
7380  printf %s "(cached) " >&6
7381else $as_nop
7382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383/* end confdefs.h.  */
7384int i;
7385_ACEOF
7386if ac_fn_c_try_compile "$LINENO"
7387then :
7388  xorg_cv_cc_flag_unknown_warning_option=yes
7389else $as_nop
7390  xorg_cv_cc_flag_unknown_warning_option=no
7391fi
7392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7393fi
7394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7395printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7396	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7397	CFLAGS="$xorg_testset_save_CFLAGS"
7398fi
7399
7400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7401	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7402		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7403	fi
7404	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7405	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7406printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7407if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7408then :
7409  printf %s "(cached) " >&6
7410else $as_nop
7411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412/* end confdefs.h.  */
7413int i;
7414_ACEOF
7415if ac_fn_c_try_compile "$LINENO"
7416then :
7417  xorg_cv_cc_flag_unused_command_line_argument=yes
7418else $as_nop
7419  xorg_cv_cc_flag_unused_command_line_argument=no
7420fi
7421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7422fi
7423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7424printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7425	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7426	CFLAGS="$xorg_testset_save_CFLAGS"
7427fi
7428
7429found="no"
7430
7431	if test $found = "no" ; then
7432		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7433			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7434		fi
7435
7436		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7437			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7438		fi
7439
7440		CFLAGS="$CFLAGS -Werror=init-self"
7441
7442		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7443printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7444		cacheid=xorg_cv_cc_flag__Werror_init_self
7445		if eval test \${$cacheid+y}
7446then :
7447  printf %s "(cached) " >&6
7448else $as_nop
7449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450/* end confdefs.h.  */
7451int i;
7452int
7453main (void)
7454{
7455
7456  ;
7457  return 0;
7458}
7459_ACEOF
7460if ac_fn_c_try_link "$LINENO"
7461then :
7462  eval $cacheid=yes
7463else $as_nop
7464  eval $cacheid=no
7465fi
7466rm -f core conftest.err conftest.$ac_objext conftest.beam \
7467    conftest$ac_exeext conftest.$ac_ext
7468fi
7469
7470
7471		CFLAGS="$xorg_testset_save_CFLAGS"
7472
7473		eval supported=\$$cacheid
7474		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7475printf "%s\n" "$supported" >&6; }
7476		if test "$supported" = "yes" ; then
7477			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7478			found="yes"
7479		fi
7480	fi
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496xorg_testset_save_CFLAGS="$CFLAGS"
7497
7498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7499	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7500	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7501printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7502if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7503then :
7504  printf %s "(cached) " >&6
7505else $as_nop
7506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507/* end confdefs.h.  */
7508int i;
7509_ACEOF
7510if ac_fn_c_try_compile "$LINENO"
7511then :
7512  xorg_cv_cc_flag_unknown_warning_option=yes
7513else $as_nop
7514  xorg_cv_cc_flag_unknown_warning_option=no
7515fi
7516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7517fi
7518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7519printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7520	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7521	CFLAGS="$xorg_testset_save_CFLAGS"
7522fi
7523
7524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7525	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7526		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7527	fi
7528	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7529	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7530printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7531if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7532then :
7533  printf %s "(cached) " >&6
7534else $as_nop
7535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536/* end confdefs.h.  */
7537int i;
7538_ACEOF
7539if ac_fn_c_try_compile "$LINENO"
7540then :
7541  xorg_cv_cc_flag_unused_command_line_argument=yes
7542else $as_nop
7543  xorg_cv_cc_flag_unused_command_line_argument=no
7544fi
7545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7546fi
7547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7548printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7549	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7550	CFLAGS="$xorg_testset_save_CFLAGS"
7551fi
7552
7553found="no"
7554
7555	if test $found = "no" ; then
7556		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7557			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7558		fi
7559
7560		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7561			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7562		fi
7563
7564		CFLAGS="$CFLAGS -Werror=main"
7565
7566		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7567printf %s "checking if $CC supports -Werror=main... " >&6; }
7568		cacheid=xorg_cv_cc_flag__Werror_main
7569		if eval test \${$cacheid+y}
7570then :
7571  printf %s "(cached) " >&6
7572else $as_nop
7573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574/* end confdefs.h.  */
7575int i;
7576int
7577main (void)
7578{
7579
7580  ;
7581  return 0;
7582}
7583_ACEOF
7584if ac_fn_c_try_link "$LINENO"
7585then :
7586  eval $cacheid=yes
7587else $as_nop
7588  eval $cacheid=no
7589fi
7590rm -f core conftest.err conftest.$ac_objext conftest.beam \
7591    conftest$ac_exeext conftest.$ac_ext
7592fi
7593
7594
7595		CFLAGS="$xorg_testset_save_CFLAGS"
7596
7597		eval supported=\$$cacheid
7598		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7599printf "%s\n" "$supported" >&6; }
7600		if test "$supported" = "yes" ; then
7601			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7602			found="yes"
7603		fi
7604	fi
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620xorg_testset_save_CFLAGS="$CFLAGS"
7621
7622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7623	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7624	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7625printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7626if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7627then :
7628  printf %s "(cached) " >&6
7629else $as_nop
7630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631/* end confdefs.h.  */
7632int i;
7633_ACEOF
7634if ac_fn_c_try_compile "$LINENO"
7635then :
7636  xorg_cv_cc_flag_unknown_warning_option=yes
7637else $as_nop
7638  xorg_cv_cc_flag_unknown_warning_option=no
7639fi
7640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7641fi
7642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7643printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7644	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7645	CFLAGS="$xorg_testset_save_CFLAGS"
7646fi
7647
7648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7649	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7650		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7651	fi
7652	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7653	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7654printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7655if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7656then :
7657  printf %s "(cached) " >&6
7658else $as_nop
7659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660/* end confdefs.h.  */
7661int i;
7662_ACEOF
7663if ac_fn_c_try_compile "$LINENO"
7664then :
7665  xorg_cv_cc_flag_unused_command_line_argument=yes
7666else $as_nop
7667  xorg_cv_cc_flag_unused_command_line_argument=no
7668fi
7669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7670fi
7671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7672printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7673	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7674	CFLAGS="$xorg_testset_save_CFLAGS"
7675fi
7676
7677found="no"
7678
7679	if test $found = "no" ; then
7680		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7681			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7682		fi
7683
7684		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7685			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7686		fi
7687
7688		CFLAGS="$CFLAGS -Werror=missing-braces"
7689
7690		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7691printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7692		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7693		if eval test \${$cacheid+y}
7694then :
7695  printf %s "(cached) " >&6
7696else $as_nop
7697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698/* end confdefs.h.  */
7699int i;
7700int
7701main (void)
7702{
7703
7704  ;
7705  return 0;
7706}
7707_ACEOF
7708if ac_fn_c_try_link "$LINENO"
7709then :
7710  eval $cacheid=yes
7711else $as_nop
7712  eval $cacheid=no
7713fi
7714rm -f core conftest.err conftest.$ac_objext conftest.beam \
7715    conftest$ac_exeext conftest.$ac_ext
7716fi
7717
7718
7719		CFLAGS="$xorg_testset_save_CFLAGS"
7720
7721		eval supported=\$$cacheid
7722		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7723printf "%s\n" "$supported" >&6; }
7724		if test "$supported" = "yes" ; then
7725			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7726			found="yes"
7727		fi
7728	fi
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744xorg_testset_save_CFLAGS="$CFLAGS"
7745
7746if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7747	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7748	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7749printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7750if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7751then :
7752  printf %s "(cached) " >&6
7753else $as_nop
7754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755/* end confdefs.h.  */
7756int i;
7757_ACEOF
7758if ac_fn_c_try_compile "$LINENO"
7759then :
7760  xorg_cv_cc_flag_unknown_warning_option=yes
7761else $as_nop
7762  xorg_cv_cc_flag_unknown_warning_option=no
7763fi
7764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7765fi
7766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7767printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7768	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7769	CFLAGS="$xorg_testset_save_CFLAGS"
7770fi
7771
7772if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7773	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7774		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7775	fi
7776	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7777	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7778printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7779if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7780then :
7781  printf %s "(cached) " >&6
7782else $as_nop
7783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784/* end confdefs.h.  */
7785int i;
7786_ACEOF
7787if ac_fn_c_try_compile "$LINENO"
7788then :
7789  xorg_cv_cc_flag_unused_command_line_argument=yes
7790else $as_nop
7791  xorg_cv_cc_flag_unused_command_line_argument=no
7792fi
7793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7794fi
7795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7796printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7797	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7798	CFLAGS="$xorg_testset_save_CFLAGS"
7799fi
7800
7801found="no"
7802
7803	if test $found = "no" ; then
7804		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7805			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7806		fi
7807
7808		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7809			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7810		fi
7811
7812		CFLAGS="$CFLAGS -Werror=sequence-point"
7813
7814		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7815printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7816		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7817		if eval test \${$cacheid+y}
7818then :
7819  printf %s "(cached) " >&6
7820else $as_nop
7821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822/* end confdefs.h.  */
7823int i;
7824int
7825main (void)
7826{
7827
7828  ;
7829  return 0;
7830}
7831_ACEOF
7832if ac_fn_c_try_link "$LINENO"
7833then :
7834  eval $cacheid=yes
7835else $as_nop
7836  eval $cacheid=no
7837fi
7838rm -f core conftest.err conftest.$ac_objext conftest.beam \
7839    conftest$ac_exeext conftest.$ac_ext
7840fi
7841
7842
7843		CFLAGS="$xorg_testset_save_CFLAGS"
7844
7845		eval supported=\$$cacheid
7846		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7847printf "%s\n" "$supported" >&6; }
7848		if test "$supported" = "yes" ; then
7849			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7850			found="yes"
7851		fi
7852	fi
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868xorg_testset_save_CFLAGS="$CFLAGS"
7869
7870if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7871	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7872	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7873printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7874if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7875then :
7876  printf %s "(cached) " >&6
7877else $as_nop
7878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879/* end confdefs.h.  */
7880int i;
7881_ACEOF
7882if ac_fn_c_try_compile "$LINENO"
7883then :
7884  xorg_cv_cc_flag_unknown_warning_option=yes
7885else $as_nop
7886  xorg_cv_cc_flag_unknown_warning_option=no
7887fi
7888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7889fi
7890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7891printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7892	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7893	CFLAGS="$xorg_testset_save_CFLAGS"
7894fi
7895
7896if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7897	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7898		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7899	fi
7900	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7901	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7902printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7903if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7904then :
7905  printf %s "(cached) " >&6
7906else $as_nop
7907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908/* end confdefs.h.  */
7909int i;
7910_ACEOF
7911if ac_fn_c_try_compile "$LINENO"
7912then :
7913  xorg_cv_cc_flag_unused_command_line_argument=yes
7914else $as_nop
7915  xorg_cv_cc_flag_unused_command_line_argument=no
7916fi
7917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7918fi
7919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7920printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7921	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7922	CFLAGS="$xorg_testset_save_CFLAGS"
7923fi
7924
7925found="no"
7926
7927	if test $found = "no" ; then
7928		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7929			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7930		fi
7931
7932		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7933			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7934		fi
7935
7936		CFLAGS="$CFLAGS -Werror=return-type"
7937
7938		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7939printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7940		cacheid=xorg_cv_cc_flag__Werror_return_type
7941		if eval test \${$cacheid+y}
7942then :
7943  printf %s "(cached) " >&6
7944else $as_nop
7945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946/* end confdefs.h.  */
7947int i;
7948int
7949main (void)
7950{
7951
7952  ;
7953  return 0;
7954}
7955_ACEOF
7956if ac_fn_c_try_link "$LINENO"
7957then :
7958  eval $cacheid=yes
7959else $as_nop
7960  eval $cacheid=no
7961fi
7962rm -f core conftest.err conftest.$ac_objext conftest.beam \
7963    conftest$ac_exeext conftest.$ac_ext
7964fi
7965
7966
7967		CFLAGS="$xorg_testset_save_CFLAGS"
7968
7969		eval supported=\$$cacheid
7970		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7971printf "%s\n" "$supported" >&6; }
7972		if test "$supported" = "yes" ; then
7973			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7974			found="yes"
7975		fi
7976	fi
7977
7978	if test $found = "no" ; then
7979		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7980			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7981		fi
7982
7983		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7984			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7985		fi
7986
7987		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7988
7989		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7990printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7991		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7992		if eval test \${$cacheid+y}
7993then :
7994  printf %s "(cached) " >&6
7995else $as_nop
7996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997/* end confdefs.h.  */
7998int i;
7999int
8000main (void)
8001{
8002
8003  ;
8004  return 0;
8005}
8006_ACEOF
8007if ac_fn_c_try_link "$LINENO"
8008then :
8009  eval $cacheid=yes
8010else $as_nop
8011  eval $cacheid=no
8012fi
8013rm -f core conftest.err conftest.$ac_objext conftest.beam \
8014    conftest$ac_exeext conftest.$ac_ext
8015fi
8016
8017
8018		CFLAGS="$xorg_testset_save_CFLAGS"
8019
8020		eval supported=\$$cacheid
8021		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8022printf "%s\n" "$supported" >&6; }
8023		if test "$supported" = "yes" ; then
8024			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8025			found="yes"
8026		fi
8027	fi
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043xorg_testset_save_CFLAGS="$CFLAGS"
8044
8045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8046	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8047	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8048printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8049if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8050then :
8051  printf %s "(cached) " >&6
8052else $as_nop
8053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054/* end confdefs.h.  */
8055int i;
8056_ACEOF
8057if ac_fn_c_try_compile "$LINENO"
8058then :
8059  xorg_cv_cc_flag_unknown_warning_option=yes
8060else $as_nop
8061  xorg_cv_cc_flag_unknown_warning_option=no
8062fi
8063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8064fi
8065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8066printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8067	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8068	CFLAGS="$xorg_testset_save_CFLAGS"
8069fi
8070
8071if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8072	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8073		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8074	fi
8075	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8076	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8077printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8078if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8079then :
8080  printf %s "(cached) " >&6
8081else $as_nop
8082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083/* end confdefs.h.  */
8084int i;
8085_ACEOF
8086if ac_fn_c_try_compile "$LINENO"
8087then :
8088  xorg_cv_cc_flag_unused_command_line_argument=yes
8089else $as_nop
8090  xorg_cv_cc_flag_unused_command_line_argument=no
8091fi
8092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8093fi
8094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8095printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8096	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8097	CFLAGS="$xorg_testset_save_CFLAGS"
8098fi
8099
8100found="no"
8101
8102	if test $found = "no" ; then
8103		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8104			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8105		fi
8106
8107		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8108			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8109		fi
8110
8111		CFLAGS="$CFLAGS -Werror=trigraphs"
8112
8113		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8114printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8115		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8116		if eval test \${$cacheid+y}
8117then :
8118  printf %s "(cached) " >&6
8119else $as_nop
8120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121/* end confdefs.h.  */
8122int i;
8123int
8124main (void)
8125{
8126
8127  ;
8128  return 0;
8129}
8130_ACEOF
8131if ac_fn_c_try_link "$LINENO"
8132then :
8133  eval $cacheid=yes
8134else $as_nop
8135  eval $cacheid=no
8136fi
8137rm -f core conftest.err conftest.$ac_objext conftest.beam \
8138    conftest$ac_exeext conftest.$ac_ext
8139fi
8140
8141
8142		CFLAGS="$xorg_testset_save_CFLAGS"
8143
8144		eval supported=\$$cacheid
8145		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8146printf "%s\n" "$supported" >&6; }
8147		if test "$supported" = "yes" ; then
8148			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8149			found="yes"
8150		fi
8151	fi
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167xorg_testset_save_CFLAGS="$CFLAGS"
8168
8169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8170	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8171	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8172printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8173if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8174then :
8175  printf %s "(cached) " >&6
8176else $as_nop
8177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178/* end confdefs.h.  */
8179int i;
8180_ACEOF
8181if ac_fn_c_try_compile "$LINENO"
8182then :
8183  xorg_cv_cc_flag_unknown_warning_option=yes
8184else $as_nop
8185  xorg_cv_cc_flag_unknown_warning_option=no
8186fi
8187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8188fi
8189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8190printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8191	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8192	CFLAGS="$xorg_testset_save_CFLAGS"
8193fi
8194
8195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8196	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8197		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8198	fi
8199	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8200	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8201printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8202if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8203then :
8204  printf %s "(cached) " >&6
8205else $as_nop
8206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207/* end confdefs.h.  */
8208int i;
8209_ACEOF
8210if ac_fn_c_try_compile "$LINENO"
8211then :
8212  xorg_cv_cc_flag_unused_command_line_argument=yes
8213else $as_nop
8214  xorg_cv_cc_flag_unused_command_line_argument=no
8215fi
8216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8217fi
8218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8219printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8220	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8221	CFLAGS="$xorg_testset_save_CFLAGS"
8222fi
8223
8224found="no"
8225
8226	if test $found = "no" ; then
8227		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8228			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8229		fi
8230
8231		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8232			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8233		fi
8234
8235		CFLAGS="$CFLAGS -Werror=array-bounds"
8236
8237		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8238printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8239		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8240		if eval test \${$cacheid+y}
8241then :
8242  printf %s "(cached) " >&6
8243else $as_nop
8244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245/* end confdefs.h.  */
8246int i;
8247int
8248main (void)
8249{
8250
8251  ;
8252  return 0;
8253}
8254_ACEOF
8255if ac_fn_c_try_link "$LINENO"
8256then :
8257  eval $cacheid=yes
8258else $as_nop
8259  eval $cacheid=no
8260fi
8261rm -f core conftest.err conftest.$ac_objext conftest.beam \
8262    conftest$ac_exeext conftest.$ac_ext
8263fi
8264
8265
8266		CFLAGS="$xorg_testset_save_CFLAGS"
8267
8268		eval supported=\$$cacheid
8269		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8270printf "%s\n" "$supported" >&6; }
8271		if test "$supported" = "yes" ; then
8272			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8273			found="yes"
8274		fi
8275	fi
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291xorg_testset_save_CFLAGS="$CFLAGS"
8292
8293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8294	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8295	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8296printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8297if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8298then :
8299  printf %s "(cached) " >&6
8300else $as_nop
8301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302/* end confdefs.h.  */
8303int i;
8304_ACEOF
8305if ac_fn_c_try_compile "$LINENO"
8306then :
8307  xorg_cv_cc_flag_unknown_warning_option=yes
8308else $as_nop
8309  xorg_cv_cc_flag_unknown_warning_option=no
8310fi
8311rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8312fi
8313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8314printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8315	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8316	CFLAGS="$xorg_testset_save_CFLAGS"
8317fi
8318
8319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8320	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8321		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8322	fi
8323	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8324	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8325printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8326if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8327then :
8328  printf %s "(cached) " >&6
8329else $as_nop
8330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331/* end confdefs.h.  */
8332int i;
8333_ACEOF
8334if ac_fn_c_try_compile "$LINENO"
8335then :
8336  xorg_cv_cc_flag_unused_command_line_argument=yes
8337else $as_nop
8338  xorg_cv_cc_flag_unused_command_line_argument=no
8339fi
8340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8341fi
8342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8343printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8344	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8345	CFLAGS="$xorg_testset_save_CFLAGS"
8346fi
8347
8348found="no"
8349
8350	if test $found = "no" ; then
8351		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8352			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8353		fi
8354
8355		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8356			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8357		fi
8358
8359		CFLAGS="$CFLAGS -Werror=write-strings"
8360
8361		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8362printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8363		cacheid=xorg_cv_cc_flag__Werror_write_strings
8364		if eval test \${$cacheid+y}
8365then :
8366  printf %s "(cached) " >&6
8367else $as_nop
8368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369/* end confdefs.h.  */
8370int i;
8371int
8372main (void)
8373{
8374
8375  ;
8376  return 0;
8377}
8378_ACEOF
8379if ac_fn_c_try_link "$LINENO"
8380then :
8381  eval $cacheid=yes
8382else $as_nop
8383  eval $cacheid=no
8384fi
8385rm -f core conftest.err conftest.$ac_objext conftest.beam \
8386    conftest$ac_exeext conftest.$ac_ext
8387fi
8388
8389
8390		CFLAGS="$xorg_testset_save_CFLAGS"
8391
8392		eval supported=\$$cacheid
8393		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8394printf "%s\n" "$supported" >&6; }
8395		if test "$supported" = "yes" ; then
8396			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8397			found="yes"
8398		fi
8399	fi
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415xorg_testset_save_CFLAGS="$CFLAGS"
8416
8417if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8418	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8419	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8420printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8421if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8422then :
8423  printf %s "(cached) " >&6
8424else $as_nop
8425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426/* end confdefs.h.  */
8427int i;
8428_ACEOF
8429if ac_fn_c_try_compile "$LINENO"
8430then :
8431  xorg_cv_cc_flag_unknown_warning_option=yes
8432else $as_nop
8433  xorg_cv_cc_flag_unknown_warning_option=no
8434fi
8435rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8436fi
8437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8438printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8439	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8440	CFLAGS="$xorg_testset_save_CFLAGS"
8441fi
8442
8443if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8444	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8445		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8446	fi
8447	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8448	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8449printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8450if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8451then :
8452  printf %s "(cached) " >&6
8453else $as_nop
8454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455/* end confdefs.h.  */
8456int i;
8457_ACEOF
8458if ac_fn_c_try_compile "$LINENO"
8459then :
8460  xorg_cv_cc_flag_unused_command_line_argument=yes
8461else $as_nop
8462  xorg_cv_cc_flag_unused_command_line_argument=no
8463fi
8464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8465fi
8466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8467printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8468	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8469	CFLAGS="$xorg_testset_save_CFLAGS"
8470fi
8471
8472found="no"
8473
8474	if test $found = "no" ; then
8475		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8476			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8477		fi
8478
8479		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8480			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8481		fi
8482
8483		CFLAGS="$CFLAGS -Werror=address"
8484
8485		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8486printf %s "checking if $CC supports -Werror=address... " >&6; }
8487		cacheid=xorg_cv_cc_flag__Werror_address
8488		if eval test \${$cacheid+y}
8489then :
8490  printf %s "(cached) " >&6
8491else $as_nop
8492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493/* end confdefs.h.  */
8494int i;
8495int
8496main (void)
8497{
8498
8499  ;
8500  return 0;
8501}
8502_ACEOF
8503if ac_fn_c_try_link "$LINENO"
8504then :
8505  eval $cacheid=yes
8506else $as_nop
8507  eval $cacheid=no
8508fi
8509rm -f core conftest.err conftest.$ac_objext conftest.beam \
8510    conftest$ac_exeext conftest.$ac_ext
8511fi
8512
8513
8514		CFLAGS="$xorg_testset_save_CFLAGS"
8515
8516		eval supported=\$$cacheid
8517		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8518printf "%s\n" "$supported" >&6; }
8519		if test "$supported" = "yes" ; then
8520			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8521			found="yes"
8522		fi
8523	fi
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539xorg_testset_save_CFLAGS="$CFLAGS"
8540
8541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8542	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8543	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8544printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8545if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8546then :
8547  printf %s "(cached) " >&6
8548else $as_nop
8549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550/* end confdefs.h.  */
8551int i;
8552_ACEOF
8553if ac_fn_c_try_compile "$LINENO"
8554then :
8555  xorg_cv_cc_flag_unknown_warning_option=yes
8556else $as_nop
8557  xorg_cv_cc_flag_unknown_warning_option=no
8558fi
8559rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8560fi
8561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8562printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8563	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8564	CFLAGS="$xorg_testset_save_CFLAGS"
8565fi
8566
8567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8568	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8569		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8570	fi
8571	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8572	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8573printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8574if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8575then :
8576  printf %s "(cached) " >&6
8577else $as_nop
8578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579/* end confdefs.h.  */
8580int i;
8581_ACEOF
8582if ac_fn_c_try_compile "$LINENO"
8583then :
8584  xorg_cv_cc_flag_unused_command_line_argument=yes
8585else $as_nop
8586  xorg_cv_cc_flag_unused_command_line_argument=no
8587fi
8588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8589fi
8590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8591printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8592	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8593	CFLAGS="$xorg_testset_save_CFLAGS"
8594fi
8595
8596found="no"
8597
8598	if test $found = "no" ; then
8599		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8600			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8601		fi
8602
8603		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8604			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8605		fi
8606
8607		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8608
8609		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8610printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8611		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8612		if eval test \${$cacheid+y}
8613then :
8614  printf %s "(cached) " >&6
8615else $as_nop
8616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617/* end confdefs.h.  */
8618int i;
8619int
8620main (void)
8621{
8622
8623  ;
8624  return 0;
8625}
8626_ACEOF
8627if ac_fn_c_try_link "$LINENO"
8628then :
8629  eval $cacheid=yes
8630else $as_nop
8631  eval $cacheid=no
8632fi
8633rm -f core conftest.err conftest.$ac_objext conftest.beam \
8634    conftest$ac_exeext conftest.$ac_ext
8635fi
8636
8637
8638		CFLAGS="$xorg_testset_save_CFLAGS"
8639
8640		eval supported=\$$cacheid
8641		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8642printf "%s\n" "$supported" >&6; }
8643		if test "$supported" = "yes" ; then
8644			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8645			found="yes"
8646		fi
8647	fi
8648
8649	if test $found = "no" ; then
8650		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8651			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8652		fi
8653
8654		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8655			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8656		fi
8657
8658		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8659
8660		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8661printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8662		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8663		if eval test \${$cacheid+y}
8664then :
8665  printf %s "(cached) " >&6
8666else $as_nop
8667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668/* end confdefs.h.  */
8669int i;
8670int
8671main (void)
8672{
8673
8674  ;
8675  return 0;
8676}
8677_ACEOF
8678if ac_fn_c_try_link "$LINENO"
8679then :
8680  eval $cacheid=yes
8681else $as_nop
8682  eval $cacheid=no
8683fi
8684rm -f core conftest.err conftest.$ac_objext conftest.beam \
8685    conftest$ac_exeext conftest.$ac_ext
8686fi
8687
8688
8689		CFLAGS="$xorg_testset_save_CFLAGS"
8690
8691		eval supported=\$$cacheid
8692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8693printf "%s\n" "$supported" >&6; }
8694		if test "$supported" = "yes" ; then
8695			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8696			found="yes"
8697		fi
8698	fi
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714xorg_testset_save_CFLAGS="$CFLAGS"
8715
8716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8717	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8718	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8719printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8720if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8721then :
8722  printf %s "(cached) " >&6
8723else $as_nop
8724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725/* end confdefs.h.  */
8726int i;
8727_ACEOF
8728if ac_fn_c_try_compile "$LINENO"
8729then :
8730  xorg_cv_cc_flag_unknown_warning_option=yes
8731else $as_nop
8732  xorg_cv_cc_flag_unknown_warning_option=no
8733fi
8734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8735fi
8736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8737printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8738	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8739	CFLAGS="$xorg_testset_save_CFLAGS"
8740fi
8741
8742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8743	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8744		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8745	fi
8746	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8747	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8748printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8749if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8750then :
8751  printf %s "(cached) " >&6
8752else $as_nop
8753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754/* end confdefs.h.  */
8755int i;
8756_ACEOF
8757if ac_fn_c_try_compile "$LINENO"
8758then :
8759  xorg_cv_cc_flag_unused_command_line_argument=yes
8760else $as_nop
8761  xorg_cv_cc_flag_unused_command_line_argument=no
8762fi
8763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8764fi
8765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8766printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8767	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8768	CFLAGS="$xorg_testset_save_CFLAGS"
8769fi
8770
8771found="no"
8772
8773	if test $found = "no" ; then
8774		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8775			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8776		fi
8777
8778		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8779			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8780		fi
8781
8782		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8783
8784		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8785printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8786		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8787		if eval test \${$cacheid+y}
8788then :
8789  printf %s "(cached) " >&6
8790else $as_nop
8791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8792/* end confdefs.h.  */
8793int i;
8794int
8795main (void)
8796{
8797
8798  ;
8799  return 0;
8800}
8801_ACEOF
8802if ac_fn_c_try_link "$LINENO"
8803then :
8804  eval $cacheid=yes
8805else $as_nop
8806  eval $cacheid=no
8807fi
8808rm -f core conftest.err conftest.$ac_objext conftest.beam \
8809    conftest$ac_exeext conftest.$ac_ext
8810fi
8811
8812
8813		CFLAGS="$xorg_testset_save_CFLAGS"
8814
8815		eval supported=\$$cacheid
8816		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8817printf "%s\n" "$supported" >&6; }
8818		if test "$supported" = "yes" ; then
8819			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8820			found="yes"
8821		fi
8822	fi
8823
8824 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8825else
8826{ 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
8827printf "%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;}
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841xorg_testset_save_CFLAGS="$CFLAGS"
8842
8843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8844	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8845	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8846printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8847if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8848then :
8849  printf %s "(cached) " >&6
8850else $as_nop
8851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852/* end confdefs.h.  */
8853int i;
8854_ACEOF
8855if ac_fn_c_try_compile "$LINENO"
8856then :
8857  xorg_cv_cc_flag_unknown_warning_option=yes
8858else $as_nop
8859  xorg_cv_cc_flag_unknown_warning_option=no
8860fi
8861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8862fi
8863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8864printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8865	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8866	CFLAGS="$xorg_testset_save_CFLAGS"
8867fi
8868
8869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8870	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8871		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8872	fi
8873	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8874	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8875printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8876if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8877then :
8878  printf %s "(cached) " >&6
8879else $as_nop
8880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881/* end confdefs.h.  */
8882int i;
8883_ACEOF
8884if ac_fn_c_try_compile "$LINENO"
8885then :
8886  xorg_cv_cc_flag_unused_command_line_argument=yes
8887else $as_nop
8888  xorg_cv_cc_flag_unused_command_line_argument=no
8889fi
8890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8891fi
8892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8893printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8894	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8895	CFLAGS="$xorg_testset_save_CFLAGS"
8896fi
8897
8898found="no"
8899
8900	if test $found = "no" ; then
8901		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8903		fi
8904
8905		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8907		fi
8908
8909		CFLAGS="$CFLAGS -Wimplicit"
8910
8911		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8912printf %s "checking if $CC supports -Wimplicit... " >&6; }
8913		cacheid=xorg_cv_cc_flag__Wimplicit
8914		if eval test \${$cacheid+y}
8915then :
8916  printf %s "(cached) " >&6
8917else $as_nop
8918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919/* end confdefs.h.  */
8920int i;
8921int
8922main (void)
8923{
8924
8925  ;
8926  return 0;
8927}
8928_ACEOF
8929if ac_fn_c_try_link "$LINENO"
8930then :
8931  eval $cacheid=yes
8932else $as_nop
8933  eval $cacheid=no
8934fi
8935rm -f core conftest.err conftest.$ac_objext conftest.beam \
8936    conftest$ac_exeext conftest.$ac_ext
8937fi
8938
8939
8940		CFLAGS="$xorg_testset_save_CFLAGS"
8941
8942		eval supported=\$$cacheid
8943		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8944printf "%s\n" "$supported" >&6; }
8945		if test "$supported" = "yes" ; then
8946			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8947			found="yes"
8948		fi
8949	fi
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965xorg_testset_save_CFLAGS="$CFLAGS"
8966
8967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8968	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8969	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8970printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8971if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8972then :
8973  printf %s "(cached) " >&6
8974else $as_nop
8975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976/* end confdefs.h.  */
8977int i;
8978_ACEOF
8979if ac_fn_c_try_compile "$LINENO"
8980then :
8981  xorg_cv_cc_flag_unknown_warning_option=yes
8982else $as_nop
8983  xorg_cv_cc_flag_unknown_warning_option=no
8984fi
8985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8986fi
8987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8988printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8990	CFLAGS="$xorg_testset_save_CFLAGS"
8991fi
8992
8993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8996	fi
8997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8998	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8999printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9000if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9001then :
9002  printf %s "(cached) " >&6
9003else $as_nop
9004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005/* end confdefs.h.  */
9006int i;
9007_ACEOF
9008if ac_fn_c_try_compile "$LINENO"
9009then :
9010  xorg_cv_cc_flag_unused_command_line_argument=yes
9011else $as_nop
9012  xorg_cv_cc_flag_unused_command_line_argument=no
9013fi
9014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9015fi
9016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9017printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9018	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9019	CFLAGS="$xorg_testset_save_CFLAGS"
9020fi
9021
9022found="no"
9023
9024	if test $found = "no" ; then
9025		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9026			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9027		fi
9028
9029		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9030			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9031		fi
9032
9033		CFLAGS="$CFLAGS -Wnonnull"
9034
9035		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9036printf %s "checking if $CC supports -Wnonnull... " >&6; }
9037		cacheid=xorg_cv_cc_flag__Wnonnull
9038		if eval test \${$cacheid+y}
9039then :
9040  printf %s "(cached) " >&6
9041else $as_nop
9042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043/* end confdefs.h.  */
9044int i;
9045int
9046main (void)
9047{
9048
9049  ;
9050  return 0;
9051}
9052_ACEOF
9053if ac_fn_c_try_link "$LINENO"
9054then :
9055  eval $cacheid=yes
9056else $as_nop
9057  eval $cacheid=no
9058fi
9059rm -f core conftest.err conftest.$ac_objext conftest.beam \
9060    conftest$ac_exeext conftest.$ac_ext
9061fi
9062
9063
9064		CFLAGS="$xorg_testset_save_CFLAGS"
9065
9066		eval supported=\$$cacheid
9067		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9068printf "%s\n" "$supported" >&6; }
9069		if test "$supported" = "yes" ; then
9070			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9071			found="yes"
9072		fi
9073	fi
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089xorg_testset_save_CFLAGS="$CFLAGS"
9090
9091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9092	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9093	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9094printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9095if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9096then :
9097  printf %s "(cached) " >&6
9098else $as_nop
9099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100/* end confdefs.h.  */
9101int i;
9102_ACEOF
9103if ac_fn_c_try_compile "$LINENO"
9104then :
9105  xorg_cv_cc_flag_unknown_warning_option=yes
9106else $as_nop
9107  xorg_cv_cc_flag_unknown_warning_option=no
9108fi
9109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9110fi
9111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9112printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9113	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9114	CFLAGS="$xorg_testset_save_CFLAGS"
9115fi
9116
9117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9118	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9119		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9120	fi
9121	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9122	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9123printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9124if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9125then :
9126  printf %s "(cached) " >&6
9127else $as_nop
9128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129/* end confdefs.h.  */
9130int i;
9131_ACEOF
9132if ac_fn_c_try_compile "$LINENO"
9133then :
9134  xorg_cv_cc_flag_unused_command_line_argument=yes
9135else $as_nop
9136  xorg_cv_cc_flag_unused_command_line_argument=no
9137fi
9138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9139fi
9140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9141printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9142	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9143	CFLAGS="$xorg_testset_save_CFLAGS"
9144fi
9145
9146found="no"
9147
9148	if test $found = "no" ; then
9149		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9150			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9151		fi
9152
9153		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9154			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9155		fi
9156
9157		CFLAGS="$CFLAGS -Winit-self"
9158
9159		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9160printf %s "checking if $CC supports -Winit-self... " >&6; }
9161		cacheid=xorg_cv_cc_flag__Winit_self
9162		if eval test \${$cacheid+y}
9163then :
9164  printf %s "(cached) " >&6
9165else $as_nop
9166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167/* end confdefs.h.  */
9168int i;
9169int
9170main (void)
9171{
9172
9173  ;
9174  return 0;
9175}
9176_ACEOF
9177if ac_fn_c_try_link "$LINENO"
9178then :
9179  eval $cacheid=yes
9180else $as_nop
9181  eval $cacheid=no
9182fi
9183rm -f core conftest.err conftest.$ac_objext conftest.beam \
9184    conftest$ac_exeext conftest.$ac_ext
9185fi
9186
9187
9188		CFLAGS="$xorg_testset_save_CFLAGS"
9189
9190		eval supported=\$$cacheid
9191		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9192printf "%s\n" "$supported" >&6; }
9193		if test "$supported" = "yes" ; then
9194			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9195			found="yes"
9196		fi
9197	fi
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213xorg_testset_save_CFLAGS="$CFLAGS"
9214
9215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9216	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9217	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9218printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9219if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9220then :
9221  printf %s "(cached) " >&6
9222else $as_nop
9223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224/* end confdefs.h.  */
9225int i;
9226_ACEOF
9227if ac_fn_c_try_compile "$LINENO"
9228then :
9229  xorg_cv_cc_flag_unknown_warning_option=yes
9230else $as_nop
9231  xorg_cv_cc_flag_unknown_warning_option=no
9232fi
9233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9234fi
9235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9236printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9237	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9238	CFLAGS="$xorg_testset_save_CFLAGS"
9239fi
9240
9241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9242	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9243		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9244	fi
9245	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9246	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9247printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9248if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9249then :
9250  printf %s "(cached) " >&6
9251else $as_nop
9252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253/* end confdefs.h.  */
9254int i;
9255_ACEOF
9256if ac_fn_c_try_compile "$LINENO"
9257then :
9258  xorg_cv_cc_flag_unused_command_line_argument=yes
9259else $as_nop
9260  xorg_cv_cc_flag_unused_command_line_argument=no
9261fi
9262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9263fi
9264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9265printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9266	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9267	CFLAGS="$xorg_testset_save_CFLAGS"
9268fi
9269
9270found="no"
9271
9272	if test $found = "no" ; then
9273		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9274			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9275		fi
9276
9277		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9278			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9279		fi
9280
9281		CFLAGS="$CFLAGS -Wmain"
9282
9283		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9284printf %s "checking if $CC supports -Wmain... " >&6; }
9285		cacheid=xorg_cv_cc_flag__Wmain
9286		if eval test \${$cacheid+y}
9287then :
9288  printf %s "(cached) " >&6
9289else $as_nop
9290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291/* end confdefs.h.  */
9292int i;
9293int
9294main (void)
9295{
9296
9297  ;
9298  return 0;
9299}
9300_ACEOF
9301if ac_fn_c_try_link "$LINENO"
9302then :
9303  eval $cacheid=yes
9304else $as_nop
9305  eval $cacheid=no
9306fi
9307rm -f core conftest.err conftest.$ac_objext conftest.beam \
9308    conftest$ac_exeext conftest.$ac_ext
9309fi
9310
9311
9312		CFLAGS="$xorg_testset_save_CFLAGS"
9313
9314		eval supported=\$$cacheid
9315		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9316printf "%s\n" "$supported" >&6; }
9317		if test "$supported" = "yes" ; then
9318			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9319			found="yes"
9320		fi
9321	fi
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337xorg_testset_save_CFLAGS="$CFLAGS"
9338
9339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9340	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9341	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9342printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9343if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9344then :
9345  printf %s "(cached) " >&6
9346else $as_nop
9347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348/* end confdefs.h.  */
9349int i;
9350_ACEOF
9351if ac_fn_c_try_compile "$LINENO"
9352then :
9353  xorg_cv_cc_flag_unknown_warning_option=yes
9354else $as_nop
9355  xorg_cv_cc_flag_unknown_warning_option=no
9356fi
9357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9358fi
9359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9360printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9361	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9362	CFLAGS="$xorg_testset_save_CFLAGS"
9363fi
9364
9365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9366	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9367		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9368	fi
9369	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9370	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9371printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9372if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9373then :
9374  printf %s "(cached) " >&6
9375else $as_nop
9376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377/* end confdefs.h.  */
9378int i;
9379_ACEOF
9380if ac_fn_c_try_compile "$LINENO"
9381then :
9382  xorg_cv_cc_flag_unused_command_line_argument=yes
9383else $as_nop
9384  xorg_cv_cc_flag_unused_command_line_argument=no
9385fi
9386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9387fi
9388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9389printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9390	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9391	CFLAGS="$xorg_testset_save_CFLAGS"
9392fi
9393
9394found="no"
9395
9396	if test $found = "no" ; then
9397		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9398			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9399		fi
9400
9401		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9402			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9403		fi
9404
9405		CFLAGS="$CFLAGS -Wmissing-braces"
9406
9407		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9408printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9409		cacheid=xorg_cv_cc_flag__Wmissing_braces
9410		if eval test \${$cacheid+y}
9411then :
9412  printf %s "(cached) " >&6
9413else $as_nop
9414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415/* end confdefs.h.  */
9416int i;
9417int
9418main (void)
9419{
9420
9421  ;
9422  return 0;
9423}
9424_ACEOF
9425if ac_fn_c_try_link "$LINENO"
9426then :
9427  eval $cacheid=yes
9428else $as_nop
9429  eval $cacheid=no
9430fi
9431rm -f core conftest.err conftest.$ac_objext conftest.beam \
9432    conftest$ac_exeext conftest.$ac_ext
9433fi
9434
9435
9436		CFLAGS="$xorg_testset_save_CFLAGS"
9437
9438		eval supported=\$$cacheid
9439		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9440printf "%s\n" "$supported" >&6; }
9441		if test "$supported" = "yes" ; then
9442			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9443			found="yes"
9444		fi
9445	fi
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461xorg_testset_save_CFLAGS="$CFLAGS"
9462
9463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9464	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9465	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9466printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9467if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9468then :
9469  printf %s "(cached) " >&6
9470else $as_nop
9471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472/* end confdefs.h.  */
9473int i;
9474_ACEOF
9475if ac_fn_c_try_compile "$LINENO"
9476then :
9477  xorg_cv_cc_flag_unknown_warning_option=yes
9478else $as_nop
9479  xorg_cv_cc_flag_unknown_warning_option=no
9480fi
9481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9482fi
9483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9484printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9485	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9486	CFLAGS="$xorg_testset_save_CFLAGS"
9487fi
9488
9489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9490	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9491		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9492	fi
9493	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9494	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9495printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9496if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9497then :
9498  printf %s "(cached) " >&6
9499else $as_nop
9500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501/* end confdefs.h.  */
9502int i;
9503_ACEOF
9504if ac_fn_c_try_compile "$LINENO"
9505then :
9506  xorg_cv_cc_flag_unused_command_line_argument=yes
9507else $as_nop
9508  xorg_cv_cc_flag_unused_command_line_argument=no
9509fi
9510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9511fi
9512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9513printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9514	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9515	CFLAGS="$xorg_testset_save_CFLAGS"
9516fi
9517
9518found="no"
9519
9520	if test $found = "no" ; then
9521		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9522			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9523		fi
9524
9525		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9526			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9527		fi
9528
9529		CFLAGS="$CFLAGS -Wsequence-point"
9530
9531		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9532printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9533		cacheid=xorg_cv_cc_flag__Wsequence_point
9534		if eval test \${$cacheid+y}
9535then :
9536  printf %s "(cached) " >&6
9537else $as_nop
9538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539/* end confdefs.h.  */
9540int i;
9541int
9542main (void)
9543{
9544
9545  ;
9546  return 0;
9547}
9548_ACEOF
9549if ac_fn_c_try_link "$LINENO"
9550then :
9551  eval $cacheid=yes
9552else $as_nop
9553  eval $cacheid=no
9554fi
9555rm -f core conftest.err conftest.$ac_objext conftest.beam \
9556    conftest$ac_exeext conftest.$ac_ext
9557fi
9558
9559
9560		CFLAGS="$xorg_testset_save_CFLAGS"
9561
9562		eval supported=\$$cacheid
9563		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9564printf "%s\n" "$supported" >&6; }
9565		if test "$supported" = "yes" ; then
9566			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9567			found="yes"
9568		fi
9569	fi
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585xorg_testset_save_CFLAGS="$CFLAGS"
9586
9587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9588	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9589	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9590printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9591if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9592then :
9593  printf %s "(cached) " >&6
9594else $as_nop
9595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596/* end confdefs.h.  */
9597int i;
9598_ACEOF
9599if ac_fn_c_try_compile "$LINENO"
9600then :
9601  xorg_cv_cc_flag_unknown_warning_option=yes
9602else $as_nop
9603  xorg_cv_cc_flag_unknown_warning_option=no
9604fi
9605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9606fi
9607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9608printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9609	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9610	CFLAGS="$xorg_testset_save_CFLAGS"
9611fi
9612
9613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9614	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9615		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9616	fi
9617	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9618	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9619printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9620if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9621then :
9622  printf %s "(cached) " >&6
9623else $as_nop
9624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625/* end confdefs.h.  */
9626int i;
9627_ACEOF
9628if ac_fn_c_try_compile "$LINENO"
9629then :
9630  xorg_cv_cc_flag_unused_command_line_argument=yes
9631else $as_nop
9632  xorg_cv_cc_flag_unused_command_line_argument=no
9633fi
9634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9635fi
9636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9637printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9638	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9639	CFLAGS="$xorg_testset_save_CFLAGS"
9640fi
9641
9642found="no"
9643
9644	if test $found = "no" ; then
9645		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9646			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9647		fi
9648
9649		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9650			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9651		fi
9652
9653		CFLAGS="$CFLAGS -Wreturn-type"
9654
9655		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9656printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9657		cacheid=xorg_cv_cc_flag__Wreturn_type
9658		if eval test \${$cacheid+y}
9659then :
9660  printf %s "(cached) " >&6
9661else $as_nop
9662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663/* end confdefs.h.  */
9664int i;
9665int
9666main (void)
9667{
9668
9669  ;
9670  return 0;
9671}
9672_ACEOF
9673if ac_fn_c_try_link "$LINENO"
9674then :
9675  eval $cacheid=yes
9676else $as_nop
9677  eval $cacheid=no
9678fi
9679rm -f core conftest.err conftest.$ac_objext conftest.beam \
9680    conftest$ac_exeext conftest.$ac_ext
9681fi
9682
9683
9684		CFLAGS="$xorg_testset_save_CFLAGS"
9685
9686		eval supported=\$$cacheid
9687		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9688printf "%s\n" "$supported" >&6; }
9689		if test "$supported" = "yes" ; then
9690			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9691			found="yes"
9692		fi
9693	fi
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709xorg_testset_save_CFLAGS="$CFLAGS"
9710
9711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9712	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9713	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9714printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9715if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9716then :
9717  printf %s "(cached) " >&6
9718else $as_nop
9719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720/* end confdefs.h.  */
9721int i;
9722_ACEOF
9723if ac_fn_c_try_compile "$LINENO"
9724then :
9725  xorg_cv_cc_flag_unknown_warning_option=yes
9726else $as_nop
9727  xorg_cv_cc_flag_unknown_warning_option=no
9728fi
9729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9730fi
9731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9732printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9733	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9734	CFLAGS="$xorg_testset_save_CFLAGS"
9735fi
9736
9737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9738	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9739		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9740	fi
9741	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9742	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9743printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9744if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9745then :
9746  printf %s "(cached) " >&6
9747else $as_nop
9748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749/* end confdefs.h.  */
9750int i;
9751_ACEOF
9752if ac_fn_c_try_compile "$LINENO"
9753then :
9754  xorg_cv_cc_flag_unused_command_line_argument=yes
9755else $as_nop
9756  xorg_cv_cc_flag_unused_command_line_argument=no
9757fi
9758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9759fi
9760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9761printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9762	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9763	CFLAGS="$xorg_testset_save_CFLAGS"
9764fi
9765
9766found="no"
9767
9768	if test $found = "no" ; then
9769		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9770			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9771		fi
9772
9773		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9774			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9775		fi
9776
9777		CFLAGS="$CFLAGS -Wtrigraphs"
9778
9779		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9780printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9781		cacheid=xorg_cv_cc_flag__Wtrigraphs
9782		if eval test \${$cacheid+y}
9783then :
9784  printf %s "(cached) " >&6
9785else $as_nop
9786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787/* end confdefs.h.  */
9788int i;
9789int
9790main (void)
9791{
9792
9793  ;
9794  return 0;
9795}
9796_ACEOF
9797if ac_fn_c_try_link "$LINENO"
9798then :
9799  eval $cacheid=yes
9800else $as_nop
9801  eval $cacheid=no
9802fi
9803rm -f core conftest.err conftest.$ac_objext conftest.beam \
9804    conftest$ac_exeext conftest.$ac_ext
9805fi
9806
9807
9808		CFLAGS="$xorg_testset_save_CFLAGS"
9809
9810		eval supported=\$$cacheid
9811		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9812printf "%s\n" "$supported" >&6; }
9813		if test "$supported" = "yes" ; then
9814			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9815			found="yes"
9816		fi
9817	fi
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833xorg_testset_save_CFLAGS="$CFLAGS"
9834
9835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9836	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9837	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9838printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9839if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9840then :
9841  printf %s "(cached) " >&6
9842else $as_nop
9843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844/* end confdefs.h.  */
9845int i;
9846_ACEOF
9847if ac_fn_c_try_compile "$LINENO"
9848then :
9849  xorg_cv_cc_flag_unknown_warning_option=yes
9850else $as_nop
9851  xorg_cv_cc_flag_unknown_warning_option=no
9852fi
9853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9854fi
9855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9856printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9857	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9858	CFLAGS="$xorg_testset_save_CFLAGS"
9859fi
9860
9861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9862	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9863		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9864	fi
9865	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9866	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9867printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9868if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9869then :
9870  printf %s "(cached) " >&6
9871else $as_nop
9872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873/* end confdefs.h.  */
9874int i;
9875_ACEOF
9876if ac_fn_c_try_compile "$LINENO"
9877then :
9878  xorg_cv_cc_flag_unused_command_line_argument=yes
9879else $as_nop
9880  xorg_cv_cc_flag_unused_command_line_argument=no
9881fi
9882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9883fi
9884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9885printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9886	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9887	CFLAGS="$xorg_testset_save_CFLAGS"
9888fi
9889
9890found="no"
9891
9892	if test $found = "no" ; then
9893		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9894			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9895		fi
9896
9897		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9898			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9899		fi
9900
9901		CFLAGS="$CFLAGS -Warray-bounds"
9902
9903		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9904printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9905		cacheid=xorg_cv_cc_flag__Warray_bounds
9906		if eval test \${$cacheid+y}
9907then :
9908  printf %s "(cached) " >&6
9909else $as_nop
9910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911/* end confdefs.h.  */
9912int i;
9913int
9914main (void)
9915{
9916
9917  ;
9918  return 0;
9919}
9920_ACEOF
9921if ac_fn_c_try_link "$LINENO"
9922then :
9923  eval $cacheid=yes
9924else $as_nop
9925  eval $cacheid=no
9926fi
9927rm -f core conftest.err conftest.$ac_objext conftest.beam \
9928    conftest$ac_exeext conftest.$ac_ext
9929fi
9930
9931
9932		CFLAGS="$xorg_testset_save_CFLAGS"
9933
9934		eval supported=\$$cacheid
9935		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9936printf "%s\n" "$supported" >&6; }
9937		if test "$supported" = "yes" ; then
9938			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9939			found="yes"
9940		fi
9941	fi
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957xorg_testset_save_CFLAGS="$CFLAGS"
9958
9959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9960	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9961	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9962printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9963if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9964then :
9965  printf %s "(cached) " >&6
9966else $as_nop
9967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968/* end confdefs.h.  */
9969int i;
9970_ACEOF
9971if ac_fn_c_try_compile "$LINENO"
9972then :
9973  xorg_cv_cc_flag_unknown_warning_option=yes
9974else $as_nop
9975  xorg_cv_cc_flag_unknown_warning_option=no
9976fi
9977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9978fi
9979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9980printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9981	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9982	CFLAGS="$xorg_testset_save_CFLAGS"
9983fi
9984
9985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9986	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9987		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9988	fi
9989	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9990	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9991printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9992if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9993then :
9994  printf %s "(cached) " >&6
9995else $as_nop
9996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997/* end confdefs.h.  */
9998int i;
9999_ACEOF
10000if ac_fn_c_try_compile "$LINENO"
10001then :
10002  xorg_cv_cc_flag_unused_command_line_argument=yes
10003else $as_nop
10004  xorg_cv_cc_flag_unused_command_line_argument=no
10005fi
10006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10007fi
10008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10009printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10010	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10011	CFLAGS="$xorg_testset_save_CFLAGS"
10012fi
10013
10014found="no"
10015
10016	if test $found = "no" ; then
10017		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10018			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10019		fi
10020
10021		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10022			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10023		fi
10024
10025		CFLAGS="$CFLAGS -Wwrite-strings"
10026
10027		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10028printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10029		cacheid=xorg_cv_cc_flag__Wwrite_strings
10030		if eval test \${$cacheid+y}
10031then :
10032  printf %s "(cached) " >&6
10033else $as_nop
10034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035/* end confdefs.h.  */
10036int i;
10037int
10038main (void)
10039{
10040
10041  ;
10042  return 0;
10043}
10044_ACEOF
10045if ac_fn_c_try_link "$LINENO"
10046then :
10047  eval $cacheid=yes
10048else $as_nop
10049  eval $cacheid=no
10050fi
10051rm -f core conftest.err conftest.$ac_objext conftest.beam \
10052    conftest$ac_exeext conftest.$ac_ext
10053fi
10054
10055
10056		CFLAGS="$xorg_testset_save_CFLAGS"
10057
10058		eval supported=\$$cacheid
10059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10060printf "%s\n" "$supported" >&6; }
10061		if test "$supported" = "yes" ; then
10062			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10063			found="yes"
10064		fi
10065	fi
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081xorg_testset_save_CFLAGS="$CFLAGS"
10082
10083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10084	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10085	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10086printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10087if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10088then :
10089  printf %s "(cached) " >&6
10090else $as_nop
10091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10092/* end confdefs.h.  */
10093int i;
10094_ACEOF
10095if ac_fn_c_try_compile "$LINENO"
10096then :
10097  xorg_cv_cc_flag_unknown_warning_option=yes
10098else $as_nop
10099  xorg_cv_cc_flag_unknown_warning_option=no
10100fi
10101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10102fi
10103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10104printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10105	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10106	CFLAGS="$xorg_testset_save_CFLAGS"
10107fi
10108
10109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10110	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10111		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10112	fi
10113	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10114	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10115printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10116if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10117then :
10118  printf %s "(cached) " >&6
10119else $as_nop
10120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121/* end confdefs.h.  */
10122int i;
10123_ACEOF
10124if ac_fn_c_try_compile "$LINENO"
10125then :
10126  xorg_cv_cc_flag_unused_command_line_argument=yes
10127else $as_nop
10128  xorg_cv_cc_flag_unused_command_line_argument=no
10129fi
10130rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10131fi
10132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10133printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10134	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10135	CFLAGS="$xorg_testset_save_CFLAGS"
10136fi
10137
10138found="no"
10139
10140	if test $found = "no" ; then
10141		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10142			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10143		fi
10144
10145		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10146			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10147		fi
10148
10149		CFLAGS="$CFLAGS -Waddress"
10150
10151		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10152printf %s "checking if $CC supports -Waddress... " >&6; }
10153		cacheid=xorg_cv_cc_flag__Waddress
10154		if eval test \${$cacheid+y}
10155then :
10156  printf %s "(cached) " >&6
10157else $as_nop
10158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10159/* end confdefs.h.  */
10160int i;
10161int
10162main (void)
10163{
10164
10165  ;
10166  return 0;
10167}
10168_ACEOF
10169if ac_fn_c_try_link "$LINENO"
10170then :
10171  eval $cacheid=yes
10172else $as_nop
10173  eval $cacheid=no
10174fi
10175rm -f core conftest.err conftest.$ac_objext conftest.beam \
10176    conftest$ac_exeext conftest.$ac_ext
10177fi
10178
10179
10180		CFLAGS="$xorg_testset_save_CFLAGS"
10181
10182		eval supported=\$$cacheid
10183		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10184printf "%s\n" "$supported" >&6; }
10185		if test "$supported" = "yes" ; then
10186			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10187			found="yes"
10188		fi
10189	fi
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205xorg_testset_save_CFLAGS="$CFLAGS"
10206
10207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10208	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10209	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10210printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10211if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10212then :
10213  printf %s "(cached) " >&6
10214else $as_nop
10215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216/* end confdefs.h.  */
10217int i;
10218_ACEOF
10219if ac_fn_c_try_compile "$LINENO"
10220then :
10221  xorg_cv_cc_flag_unknown_warning_option=yes
10222else $as_nop
10223  xorg_cv_cc_flag_unknown_warning_option=no
10224fi
10225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10226fi
10227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10228printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10229	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10230	CFLAGS="$xorg_testset_save_CFLAGS"
10231fi
10232
10233if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10234	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10235		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10236	fi
10237	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10238	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10239printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10240if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10241then :
10242  printf %s "(cached) " >&6
10243else $as_nop
10244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245/* end confdefs.h.  */
10246int i;
10247_ACEOF
10248if ac_fn_c_try_compile "$LINENO"
10249then :
10250  xorg_cv_cc_flag_unused_command_line_argument=yes
10251else $as_nop
10252  xorg_cv_cc_flag_unused_command_line_argument=no
10253fi
10254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10255fi
10256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10257printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10258	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10259	CFLAGS="$xorg_testset_save_CFLAGS"
10260fi
10261
10262found="no"
10263
10264	if test $found = "no" ; then
10265		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10266			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10267		fi
10268
10269		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10270			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10271		fi
10272
10273		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10274
10275		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10276printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10277		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10278		if eval test \${$cacheid+y}
10279then :
10280  printf %s "(cached) " >&6
10281else $as_nop
10282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283/* end confdefs.h.  */
10284int i;
10285int
10286main (void)
10287{
10288
10289  ;
10290  return 0;
10291}
10292_ACEOF
10293if ac_fn_c_try_link "$LINENO"
10294then :
10295  eval $cacheid=yes
10296else $as_nop
10297  eval $cacheid=no
10298fi
10299rm -f core conftest.err conftest.$ac_objext conftest.beam \
10300    conftest$ac_exeext conftest.$ac_ext
10301fi
10302
10303
10304		CFLAGS="$xorg_testset_save_CFLAGS"
10305
10306		eval supported=\$$cacheid
10307		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10308printf "%s\n" "$supported" >&6; }
10309		if test "$supported" = "yes" ; then
10310			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10311			found="yes"
10312		fi
10313	fi
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329xorg_testset_save_CFLAGS="$CFLAGS"
10330
10331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10332	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10333	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10334printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10335if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10336then :
10337  printf %s "(cached) " >&6
10338else $as_nop
10339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10340/* end confdefs.h.  */
10341int i;
10342_ACEOF
10343if ac_fn_c_try_compile "$LINENO"
10344then :
10345  xorg_cv_cc_flag_unknown_warning_option=yes
10346else $as_nop
10347  xorg_cv_cc_flag_unknown_warning_option=no
10348fi
10349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10350fi
10351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10352printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10353	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10354	CFLAGS="$xorg_testset_save_CFLAGS"
10355fi
10356
10357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10358	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10359		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10360	fi
10361	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10362	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10363printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10364if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10365then :
10366  printf %s "(cached) " >&6
10367else $as_nop
10368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10369/* end confdefs.h.  */
10370int i;
10371_ACEOF
10372if ac_fn_c_try_compile "$LINENO"
10373then :
10374  xorg_cv_cc_flag_unused_command_line_argument=yes
10375else $as_nop
10376  xorg_cv_cc_flag_unused_command_line_argument=no
10377fi
10378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10379fi
10380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10381printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10382	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10383	CFLAGS="$xorg_testset_save_CFLAGS"
10384fi
10385
10386found="no"
10387
10388	if test $found = "no" ; then
10389		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10390			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10391		fi
10392
10393		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10394			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10395		fi
10396
10397		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10398
10399		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10400printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10401		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10402		if eval test \${$cacheid+y}
10403then :
10404  printf %s "(cached) " >&6
10405else $as_nop
10406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10407/* end confdefs.h.  */
10408int i;
10409int
10410main (void)
10411{
10412
10413  ;
10414  return 0;
10415}
10416_ACEOF
10417if ac_fn_c_try_link "$LINENO"
10418then :
10419  eval $cacheid=yes
10420else $as_nop
10421  eval $cacheid=no
10422fi
10423rm -f core conftest.err conftest.$ac_objext conftest.beam \
10424    conftest$ac_exeext conftest.$ac_ext
10425fi
10426
10427
10428		CFLAGS="$xorg_testset_save_CFLAGS"
10429
10430		eval supported=\$$cacheid
10431		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10432printf "%s\n" "$supported" >&6; }
10433		if test "$supported" = "yes" ; then
10434			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10435			found="yes"
10436		fi
10437	fi
10438
10439
10440fi
10441
10442
10443
10444
10445
10446
10447
10448		CWARNFLAGS="$BASE_CFLAGS"
10449		if  test "x$GCC" = xyes ; then
10450		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10451		fi
10452
10453
10454
10455
10456
10457
10458
10459
10460# Check whether --enable-strict-compilation was given.
10461if test ${enable_strict_compilation+y}
10462then :
10463  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10464else $as_nop
10465  STRICT_COMPILE=no
10466fi
10467
10468
10469
10470
10471
10472
10473STRICT_CFLAGS=""
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487xorg_testset_save_CFLAGS="$CFLAGS"
10488
10489if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10490	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10491	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10492printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10493if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10494then :
10495  printf %s "(cached) " >&6
10496else $as_nop
10497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498/* end confdefs.h.  */
10499int i;
10500_ACEOF
10501if ac_fn_c_try_compile "$LINENO"
10502then :
10503  xorg_cv_cc_flag_unknown_warning_option=yes
10504else $as_nop
10505  xorg_cv_cc_flag_unknown_warning_option=no
10506fi
10507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10508fi
10509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10510printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10511	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10512	CFLAGS="$xorg_testset_save_CFLAGS"
10513fi
10514
10515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10516	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10517		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10518	fi
10519	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10520	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10521printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10522if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10523then :
10524  printf %s "(cached) " >&6
10525else $as_nop
10526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527/* end confdefs.h.  */
10528int i;
10529_ACEOF
10530if ac_fn_c_try_compile "$LINENO"
10531then :
10532  xorg_cv_cc_flag_unused_command_line_argument=yes
10533else $as_nop
10534  xorg_cv_cc_flag_unused_command_line_argument=no
10535fi
10536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10537fi
10538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10539printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10540	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10541	CFLAGS="$xorg_testset_save_CFLAGS"
10542fi
10543
10544found="no"
10545
10546	if test $found = "no" ; then
10547		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10548			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10549		fi
10550
10551		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10552			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10553		fi
10554
10555		CFLAGS="$CFLAGS -pedantic"
10556
10557		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10558printf %s "checking if $CC supports -pedantic... " >&6; }
10559		cacheid=xorg_cv_cc_flag__pedantic
10560		if eval test \${$cacheid+y}
10561then :
10562  printf %s "(cached) " >&6
10563else $as_nop
10564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10565/* end confdefs.h.  */
10566int i;
10567int
10568main (void)
10569{
10570
10571  ;
10572  return 0;
10573}
10574_ACEOF
10575if ac_fn_c_try_link "$LINENO"
10576then :
10577  eval $cacheid=yes
10578else $as_nop
10579  eval $cacheid=no
10580fi
10581rm -f core conftest.err conftest.$ac_objext conftest.beam \
10582    conftest$ac_exeext conftest.$ac_ext
10583fi
10584
10585
10586		CFLAGS="$xorg_testset_save_CFLAGS"
10587
10588		eval supported=\$$cacheid
10589		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10590printf "%s\n" "$supported" >&6; }
10591		if test "$supported" = "yes" ; then
10592			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10593			found="yes"
10594		fi
10595	fi
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611xorg_testset_save_CFLAGS="$CFLAGS"
10612
10613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10614	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10615	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10616printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10617if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10618then :
10619  printf %s "(cached) " >&6
10620else $as_nop
10621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622/* end confdefs.h.  */
10623int i;
10624_ACEOF
10625if ac_fn_c_try_compile "$LINENO"
10626then :
10627  xorg_cv_cc_flag_unknown_warning_option=yes
10628else $as_nop
10629  xorg_cv_cc_flag_unknown_warning_option=no
10630fi
10631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10632fi
10633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10634printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10635	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10636	CFLAGS="$xorg_testset_save_CFLAGS"
10637fi
10638
10639if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10640	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10641		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10642	fi
10643	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10644	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10645printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10646if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10647then :
10648  printf %s "(cached) " >&6
10649else $as_nop
10650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651/* end confdefs.h.  */
10652int i;
10653_ACEOF
10654if ac_fn_c_try_compile "$LINENO"
10655then :
10656  xorg_cv_cc_flag_unused_command_line_argument=yes
10657else $as_nop
10658  xorg_cv_cc_flag_unused_command_line_argument=no
10659fi
10660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10661fi
10662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10663printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10664	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10665	CFLAGS="$xorg_testset_save_CFLAGS"
10666fi
10667
10668found="no"
10669
10670	if test $found = "no" ; then
10671		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10672			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10673		fi
10674
10675		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10676			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10677		fi
10678
10679		CFLAGS="$CFLAGS -Werror"
10680
10681		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10682printf %s "checking if $CC supports -Werror... " >&6; }
10683		cacheid=xorg_cv_cc_flag__Werror
10684		if eval test \${$cacheid+y}
10685then :
10686  printf %s "(cached) " >&6
10687else $as_nop
10688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10689/* end confdefs.h.  */
10690int i;
10691int
10692main (void)
10693{
10694
10695  ;
10696  return 0;
10697}
10698_ACEOF
10699if ac_fn_c_try_link "$LINENO"
10700then :
10701  eval $cacheid=yes
10702else $as_nop
10703  eval $cacheid=no
10704fi
10705rm -f core conftest.err conftest.$ac_objext conftest.beam \
10706    conftest$ac_exeext conftest.$ac_ext
10707fi
10708
10709
10710		CFLAGS="$xorg_testset_save_CFLAGS"
10711
10712		eval supported=\$$cacheid
10713		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10714printf "%s\n" "$supported" >&6; }
10715		if test "$supported" = "yes" ; then
10716			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10717			found="yes"
10718		fi
10719	fi
10720
10721	if test $found = "no" ; then
10722		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10724		fi
10725
10726		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10728		fi
10729
10730		CFLAGS="$CFLAGS -errwarn"
10731
10732		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10733printf %s "checking if $CC supports -errwarn... " >&6; }
10734		cacheid=xorg_cv_cc_flag__errwarn
10735		if eval test \${$cacheid+y}
10736then :
10737  printf %s "(cached) " >&6
10738else $as_nop
10739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740/* end confdefs.h.  */
10741int i;
10742int
10743main (void)
10744{
10745
10746  ;
10747  return 0;
10748}
10749_ACEOF
10750if ac_fn_c_try_link "$LINENO"
10751then :
10752  eval $cacheid=yes
10753else $as_nop
10754  eval $cacheid=no
10755fi
10756rm -f core conftest.err conftest.$ac_objext conftest.beam \
10757    conftest$ac_exeext conftest.$ac_ext
10758fi
10759
10760
10761		CFLAGS="$xorg_testset_save_CFLAGS"
10762
10763		eval supported=\$$cacheid
10764		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10765printf "%s\n" "$supported" >&6; }
10766		if test "$supported" = "yes" ; then
10767			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10768			found="yes"
10769		fi
10770	fi
10771
10772
10773
10774# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10775# activate it with -Werror, so we add it here explicitly.
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789xorg_testset_save_CFLAGS="$CFLAGS"
10790
10791if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10792	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10793	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10794printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10795if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10796then :
10797  printf %s "(cached) " >&6
10798else $as_nop
10799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800/* end confdefs.h.  */
10801int i;
10802_ACEOF
10803if ac_fn_c_try_compile "$LINENO"
10804then :
10805  xorg_cv_cc_flag_unknown_warning_option=yes
10806else $as_nop
10807  xorg_cv_cc_flag_unknown_warning_option=no
10808fi
10809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10810fi
10811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10812printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10813	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10814	CFLAGS="$xorg_testset_save_CFLAGS"
10815fi
10816
10817if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10818	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10819		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10820	fi
10821	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10822	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10823printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10824if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10825then :
10826  printf %s "(cached) " >&6
10827else $as_nop
10828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829/* end confdefs.h.  */
10830int i;
10831_ACEOF
10832if ac_fn_c_try_compile "$LINENO"
10833then :
10834  xorg_cv_cc_flag_unused_command_line_argument=yes
10835else $as_nop
10836  xorg_cv_cc_flag_unused_command_line_argument=no
10837fi
10838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10839fi
10840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10841printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10842	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10843	CFLAGS="$xorg_testset_save_CFLAGS"
10844fi
10845
10846found="no"
10847
10848	if test $found = "no" ; then
10849		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10850			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10851		fi
10852
10853		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10854			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10855		fi
10856
10857		CFLAGS="$CFLAGS -Werror=attributes"
10858
10859		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10860printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10861		cacheid=xorg_cv_cc_flag__Werror_attributes
10862		if eval test \${$cacheid+y}
10863then :
10864  printf %s "(cached) " >&6
10865else $as_nop
10866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867/* end confdefs.h.  */
10868int i;
10869int
10870main (void)
10871{
10872
10873  ;
10874  return 0;
10875}
10876_ACEOF
10877if ac_fn_c_try_link "$LINENO"
10878then :
10879  eval $cacheid=yes
10880else $as_nop
10881  eval $cacheid=no
10882fi
10883rm -f core conftest.err conftest.$ac_objext conftest.beam \
10884    conftest$ac_exeext conftest.$ac_ext
10885fi
10886
10887
10888		CFLAGS="$xorg_testset_save_CFLAGS"
10889
10890		eval supported=\$$cacheid
10891		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10892printf "%s\n" "$supported" >&6; }
10893		if test "$supported" = "yes" ; then
10894			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10895			found="yes"
10896		fi
10897	fi
10898
10899
10900
10901if test "x$STRICT_COMPILE" = "xyes"; then
10902    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10903    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10904fi
10905
10906
10907
10908
10909
10910
10911cat >>confdefs.h <<_ACEOF
10912#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10913_ACEOF
10914
10915	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10916	if test "x$PVM" = "x"; then
10917		PVM="0"
10918	fi
10919
10920printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10921
10922	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10923	if test "x$PVP" = "x"; then
10924		PVP="0"
10925	fi
10926
10927printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10928
10929
10930
10931CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10932mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10933|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10934touch \$(top_srcdir)/ChangeLog; \
10935echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10936
10937
10938
10939
10940macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10941INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10942mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10943|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10944touch \$(top_srcdir)/INSTALL; \
10945echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10946
10947
10948
10949
10950
10951
10952case $host_os in
10953    solaris*)
10954        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10955        # check for a man page file found in later versions that use
10956        # traditional section numbers instead
10957        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10958printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10959if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10960then :
10961  printf %s "(cached) " >&6
10962else $as_nop
10963  test "$cross_compiling" = yes &&
10964  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10965if test -r "/usr/share/man/man7/attributes.7"; then
10966  ac_cv_file__usr_share_man_man7_attributes_7=yes
10967else
10968  ac_cv_file__usr_share_man_man7_attributes_7=no
10969fi
10970fi
10971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10972printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10973if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10974then :
10975  SYSV_MAN_SECTIONS=false
10976else $as_nop
10977  SYSV_MAN_SECTIONS=true
10978fi
10979
10980        ;;
10981    *) SYSV_MAN_SECTIONS=false ;;
10982esac
10983
10984if test x$APP_MAN_SUFFIX = x    ; then
10985    APP_MAN_SUFFIX=1
10986fi
10987if test x$APP_MAN_DIR = x    ; then
10988    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10989fi
10990
10991if test x$LIB_MAN_SUFFIX = x    ; then
10992    LIB_MAN_SUFFIX=3
10993fi
10994if test x$LIB_MAN_DIR = x    ; then
10995    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10996fi
10997
10998if test x$FILE_MAN_SUFFIX = x    ; then
10999    case $SYSV_MAN_SECTIONS in
11000	true)				FILE_MAN_SUFFIX=4  ;;
11001	*)				FILE_MAN_SUFFIX=5  ;;
11002    esac
11003fi
11004if test x$FILE_MAN_DIR = x    ; then
11005    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11006fi
11007
11008if test x$MISC_MAN_SUFFIX = x    ; then
11009    case $SYSV_MAN_SECTIONS in
11010	true)				MISC_MAN_SUFFIX=5  ;;
11011	*)				MISC_MAN_SUFFIX=7  ;;
11012    esac
11013fi
11014if test x$MISC_MAN_DIR = x    ; then
11015    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11016fi
11017
11018if test x$DRIVER_MAN_SUFFIX = x    ; then
11019    case $SYSV_MAN_SECTIONS in
11020	true)				DRIVER_MAN_SUFFIX=7  ;;
11021	*)				DRIVER_MAN_SUFFIX=4  ;;
11022    esac
11023fi
11024if test x$DRIVER_MAN_DIR = x    ; then
11025    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11026fi
11027
11028if test x$ADMIN_MAN_SUFFIX = x    ; then
11029    case $SYSV_MAN_SECTIONS in
11030	true)				ADMIN_MAN_SUFFIX=1m ;;
11031	*)				ADMIN_MAN_SUFFIX=8  ;;
11032    esac
11033fi
11034if test x$ADMIN_MAN_DIR = x    ; then
11035    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11036fi
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052XORG_MAN_PAGE="X Version 11"
11053
11054MAN_SUBSTS="\
11055	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11056	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11057	-e 's|__xservername__|Xorg|g' \
11058	-e 's|__xconfigfile__|xorg.conf|g' \
11059	-e 's|__projectroot__|\$(prefix)|g' \
11060	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11061	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11062	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11063	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11064	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11065	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11066	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11067
11068
11069
11070# Check whether --enable-silent-rules was given.
11071if test ${enable_silent_rules+y}
11072then :
11073  enableval=$enable_silent_rules;
11074fi
11075
11076case $enable_silent_rules in # (((
11077  yes) AM_DEFAULT_VERBOSITY=0;;
11078   no) AM_DEFAULT_VERBOSITY=1;;
11079    *) AM_DEFAULT_VERBOSITY=0;;
11080esac
11081am_make=${MAKE-make}
11082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11083printf %s "checking whether $am_make supports nested variables... " >&6; }
11084if test ${am_cv_make_support_nested_variables+y}
11085then :
11086  printf %s "(cached) " >&6
11087else $as_nop
11088  if printf "%s\n" 'TRUE=$(BAR$(V))
11089BAR0=false
11090BAR1=true
11091V=1
11092am__doit:
11093	@$(TRUE)
11094.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11095  am_cv_make_support_nested_variables=yes
11096else
11097  am_cv_make_support_nested_variables=no
11098fi
11099fi
11100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11101printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11102if test $am_cv_make_support_nested_variables = yes; then
11103    AM_V='$(V)'
11104  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11105else
11106  AM_V=$AM_DEFAULT_VERBOSITY
11107  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11108fi
11109AM_BACKSLASH='\'
11110
11111
11112
11113for ac_prog in flex lex
11114do
11115  # Extract the first word of "$ac_prog", so it can be a program name with args.
11116set dummy $ac_prog; ac_word=$2
11117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11118printf %s "checking for $ac_word... " >&6; }
11119if test ${ac_cv_prog_LEX+y}
11120then :
11121  printf %s "(cached) " >&6
11122else $as_nop
11123  if test -n "$LEX"; then
11124  ac_cv_prog_LEX="$LEX" # Let the user override the test.
11125else
11126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11127for as_dir in $PATH
11128do
11129  IFS=$as_save_IFS
11130  case $as_dir in #(((
11131    '') as_dir=./ ;;
11132    */) ;;
11133    *) as_dir=$as_dir/ ;;
11134  esac
11135    for ac_exec_ext in '' $ac_executable_extensions; do
11136  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11137    ac_cv_prog_LEX="$ac_prog"
11138    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11139    break 2
11140  fi
11141done
11142  done
11143IFS=$as_save_IFS
11144
11145fi
11146fi
11147LEX=$ac_cv_prog_LEX
11148if test -n "$LEX"; then
11149  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11150printf "%s\n" "$LEX" >&6; }
11151else
11152  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11153printf "%s\n" "no" >&6; }
11154fi
11155
11156
11157  test -n "$LEX" && break
11158done
11159test -n "$LEX" || LEX=":"
11160
11161  if test "x$LEX" != "x:"; then
11162    cat >conftest.l <<_ACEOF
11163%{
11164#ifdef __cplusplus
11165extern "C"
11166#endif
11167int yywrap(void);
11168%}
11169%%
11170a { ECHO; }
11171b { REJECT; }
11172c { yymore (); }
11173d { yyless (1); }
11174e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
11175#ifdef __cplusplus
11176    yyless ((yyinput () != 0));
11177#else
11178    yyless ((input () != 0));
11179#endif
11180  }
11181f { unput (yytext[0]); }
11182. { BEGIN INITIAL; }
11183%%
11184#ifdef YYTEXT_POINTER
11185extern char *yytext;
11186#endif
11187int
11188yywrap (void)
11189{
11190  return 1;
11191}
11192int
11193main (void)
11194{
11195  return ! yylex ();
11196}
11197_ACEOF
11198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
11199printf %s "checking for lex output file root... " >&6; }
11200if test ${ac_cv_prog_lex_root+y}
11201then :
11202  printf %s "(cached) " >&6
11203else $as_nop
11204
11205ac_cv_prog_lex_root=unknown
11206{ { ac_try="$LEX conftest.l"
11207case "(($ac_try" in
11208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209  *) ac_try_echo=$ac_try;;
11210esac
11211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11212printf "%s\n" "$ac_try_echo"; } >&5
11213  (eval "$LEX conftest.l") 2>&5
11214  ac_status=$?
11215  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11216  test $ac_status = 0; } &&
11217if test -f lex.yy.c; then
11218  ac_cv_prog_lex_root=lex.yy
11219elif test -f lexyy.c; then
11220  ac_cv_prog_lex_root=lexyy
11221fi
11222fi
11223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
11224printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
11225if test "$ac_cv_prog_lex_root" = unknown
11226then :
11227  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
11228printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
11229   LEX=: LEXLIB=
11230fi
11231LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11232
11233if test ${LEXLIB+y}
11234then :
11235
11236else $as_nop
11237
11238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
11239printf %s "checking for lex library... " >&6; }
11240if test ${ac_cv_lib_lex+y}
11241then :
11242  printf %s "(cached) " >&6
11243else $as_nop
11244
11245    ac_save_LIBS="$LIBS"
11246    ac_found=false
11247    for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
11248      case $ac_cv_lib_lex in #(
11249  'none needed') :
11250     ;; #(
11251  'not found') :
11252    break ;; #(
11253  *) :
11254    LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
11255  *) :
11256     ;;
11257esac
11258
11259      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260/* end confdefs.h.  */
11261`cat $LEX_OUTPUT_ROOT.c`
11262_ACEOF
11263if ac_fn_c_try_link "$LINENO"
11264then :
11265  ac_found=:
11266fi
11267rm -f core conftest.err conftest.$ac_objext conftest.beam \
11268    conftest$ac_exeext conftest.$ac_ext
11269      if $ac_found; then
11270        break
11271      fi
11272    done
11273    LIBS="$ac_save_LIBS"
11274
11275fi
11276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
11277printf "%s\n" "$ac_cv_lib_lex" >&6; }
11278  if test "$ac_cv_lib_lex" = 'not found'
11279then :
11280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
11281printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
11282	 LEX=: LEXLIB=
11283elif test "$ac_cv_lib_lex" = 'none needed'
11284then :
11285  LEXLIB=''
11286else $as_nop
11287  LEXLIB=$ac_cv_lib_lex
11288fi
11289  ac_save_LIBS="$LIBS"
11290      LIBS=
11291      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5
11292printf %s "checking for library containing yywrap... " >&6; }
11293if test ${ac_cv_search_yywrap+y}
11294then :
11295  printf %s "(cached) " >&6
11296else $as_nop
11297  ac_func_search_save_LIBS=$LIBS
11298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299/* end confdefs.h.  */
11300
11301/* Override any GCC internal prototype to avoid an error.
11302   Use char because int might match the return type of a GCC
11303   builtin and then its argument prototype would still apply.  */
11304char yywrap ();
11305int
11306main (void)
11307{
11308return yywrap ();
11309  ;
11310  return 0;
11311}
11312_ACEOF
11313for ac_lib in '' fl l
11314do
11315  if test -z "$ac_lib"; then
11316    ac_res="none required"
11317  else
11318    ac_res=-l$ac_lib
11319    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11320  fi
11321  if ac_fn_c_try_link "$LINENO"
11322then :
11323  ac_cv_search_yywrap=$ac_res
11324fi
11325rm -f core conftest.err conftest.$ac_objext conftest.beam \
11326    conftest$ac_exeext
11327  if test ${ac_cv_search_yywrap+y}
11328then :
11329  break
11330fi
11331done
11332if test ${ac_cv_search_yywrap+y}
11333then :
11334
11335else $as_nop
11336  ac_cv_search_yywrap=no
11337fi
11338rm conftest.$ac_ext
11339LIBS=$ac_func_search_save_LIBS
11340fi
11341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5
11342printf "%s\n" "$ac_cv_search_yywrap" >&6; }
11343ac_res=$ac_cv_search_yywrap
11344if test "$ac_res" != no
11345then :
11346  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11347  LEXLIB="$LIBS"
11348fi
11349
11350      LIBS="$ac_save_LIBS"
11351fi
11352
11353
11354if test "$LEX" != :
11355then :
11356
11357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
11358printf %s "checking whether yytext is a pointer... " >&6; }
11359if test ${ac_cv_prog_lex_yytext_pointer+y}
11360then :
11361  printf %s "(cached) " >&6
11362else $as_nop
11363  # POSIX says lex can declare yytext either as a pointer or an array; the
11364# default is implementation-dependent.  Figure out which it is, since
11365# not all implementations provide the %pointer and %array declarations.
11366ac_cv_prog_lex_yytext_pointer=no
11367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11368/* end confdefs.h.  */
11369
11370  #define YYTEXT_POINTER 1
11371`cat $LEX_OUTPUT_ROOT.c`
11372_ACEOF
11373if ac_fn_c_try_compile "$LINENO"
11374then :
11375  ac_cv_prog_lex_yytext_pointer=yes
11376fi
11377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11378
11379fi
11380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
11381printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
11382if test $ac_cv_prog_lex_yytext_pointer = yes; then
11383
11384printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
11385
11386fi
11387
11388fi
11389rm -f conftest.l $LEX_OUTPUT_ROOT.c
11390
11391fi
11392for ac_prog in 'bison -y' byacc
11393do
11394  # Extract the first word of "$ac_prog", so it can be a program name with args.
11395set dummy $ac_prog; ac_word=$2
11396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11397printf %s "checking for $ac_word... " >&6; }
11398if test ${ac_cv_prog_YACC+y}
11399then :
11400  printf %s "(cached) " >&6
11401else $as_nop
11402  if test -n "$YACC"; then
11403  ac_cv_prog_YACC="$YACC" # Let the user override the test.
11404else
11405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406for as_dir in $PATH
11407do
11408  IFS=$as_save_IFS
11409  case $as_dir in #(((
11410    '') as_dir=./ ;;
11411    */) ;;
11412    *) as_dir=$as_dir/ ;;
11413  esac
11414    for ac_exec_ext in '' $ac_executable_extensions; do
11415  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11416    ac_cv_prog_YACC="$ac_prog"
11417    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11418    break 2
11419  fi
11420done
11421  done
11422IFS=$as_save_IFS
11423
11424fi
11425fi
11426YACC=$ac_cv_prog_YACC
11427if test -n "$YACC"; then
11428  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11429printf "%s\n" "$YACC" >&6; }
11430else
11431  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432printf "%s\n" "no" >&6; }
11433fi
11434
11435
11436  test -n "$YACC" && break
11437done
11438test -n "$YACC" || YACC="yacc"
11439
11440# Extract the first word of "$YACC", so it can be a program name with args.
11441set dummy $YACC; ac_word=$2
11442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443printf %s "checking for $ac_word... " >&6; }
11444if test ${ac_cv_path_YACC_INST+y}
11445then :
11446  printf %s "(cached) " >&6
11447else $as_nop
11448  case $YACC_INST in
11449  [\\/]* | ?:[\\/]*)
11450  ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
11451  ;;
11452  *)
11453  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11454for as_dir in $PATH
11455do
11456  IFS=$as_save_IFS
11457  case $as_dir in #(((
11458    '') as_dir=./ ;;
11459    */) ;;
11460    *) as_dir=$as_dir/ ;;
11461  esac
11462    for ac_exec_ext in '' $ac_executable_extensions; do
11463  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11464    ac_cv_path_YACC_INST="$as_dir$ac_word$ac_exec_ext"
11465    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11466    break 2
11467  fi
11468done
11469  done
11470IFS=$as_save_IFS
11471
11472  ;;
11473esac
11474fi
11475YACC_INST=$ac_cv_path_YACC_INST
11476if test -n "$YACC_INST"; then
11477  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
11478printf "%s\n" "$YACC_INST" >&6; }
11479else
11480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11481printf "%s\n" "no" >&6; }
11482fi
11483
11484
11485if ! test -f "$srcdir/gram.c"; then
11486   if test -z "$YACC_INST"; then
11487      as_fn_error $? "yacc not found - unable to compile gram.y" "$LINENO" 5
11488   fi
11489fi
11490
11491
11492pkg_failed=no
11493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGC" >&5
11494printf %s "checking for XGC... " >&6; }
11495
11496if test -n "$XGC_CFLAGS"; then
11497    pkg_cv_XGC_CFLAGS="$XGC_CFLAGS"
11498 elif test -n "$PKG_CONFIG"; then
11499    if test -n "$PKG_CONFIG" && \
11500    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt\""; } >&5
11501  ($PKG_CONFIG --exists --print-errors "xaw7 xt") 2>&5
11502  ac_status=$?
11503  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11504  test $ac_status = 0; }; then
11505  pkg_cv_XGC_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xt" 2>/dev/null`
11506		      test "x$?" != "x0" && pkg_failed=yes
11507else
11508  pkg_failed=yes
11509fi
11510 else
11511    pkg_failed=untried
11512fi
11513if test -n "$XGC_LIBS"; then
11514    pkg_cv_XGC_LIBS="$XGC_LIBS"
11515 elif test -n "$PKG_CONFIG"; then
11516    if test -n "$PKG_CONFIG" && \
11517    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt\""; } >&5
11518  ($PKG_CONFIG --exists --print-errors "xaw7 xt") 2>&5
11519  ac_status=$?
11520  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11521  test $ac_status = 0; }; then
11522  pkg_cv_XGC_LIBS=`$PKG_CONFIG --libs "xaw7 xt" 2>/dev/null`
11523		      test "x$?" != "x0" && pkg_failed=yes
11524else
11525  pkg_failed=yes
11526fi
11527 else
11528    pkg_failed=untried
11529fi
11530
11531
11532
11533if test $pkg_failed = yes; then
11534   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535printf "%s\n" "no" >&6; }
11536
11537if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11538        _pkg_short_errors_supported=yes
11539else
11540        _pkg_short_errors_supported=no
11541fi
11542        if test $_pkg_short_errors_supported = yes; then
11543	        XGC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xt" 2>&1`
11544        else
11545	        XGC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xt" 2>&1`
11546        fi
11547	# Put the nasty error message in config.log where it belongs
11548	echo "$XGC_PKG_ERRORS" >&5
11549
11550	as_fn_error $? "Package requirements (xaw7 xt) were not met:
11551
11552$XGC_PKG_ERRORS
11553
11554Consider adjusting the PKG_CONFIG_PATH environment variable if you
11555installed software in a non-standard prefix.
11556
11557Alternatively, you may set the environment variables XGC_CFLAGS
11558and XGC_LIBS to avoid the need to call pkg-config.
11559See the pkg-config man page for more details." "$LINENO" 5
11560elif test $pkg_failed = untried; then
11561     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11562printf "%s\n" "no" >&6; }
11563	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11564printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11565as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11566is in your PATH or set the PKG_CONFIG environment variable to the full
11567path to pkg-config.
11568
11569Alternatively, you may set the environment variables XGC_CFLAGS
11570and XGC_LIBS to avoid the need to call pkg-config.
11571See the pkg-config man page for more details.
11572
11573To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11574See \`config.log' for more details" "$LINENO" 5; }
11575else
11576	XGC_CFLAGS=$pkg_cv_XGC_CFLAGS
11577	XGC_LIBS=$pkg_cv_XGC_LIBS
11578        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11579printf "%s\n" "yes" >&6; }
11580
11581fi
11582xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11583
11584# Check whether --with-appdefaultdir was given.
11585if test ${with_appdefaultdir+y}
11586then :
11587  withval=$with_appdefaultdir; appdefaultdir="$withval"
11588else $as_nop
11589  appdefaultdir="${xt_appdefaultdir}"
11590fi
11591
11592
11593
11594ac_config_files="$ac_config_files Makefile man/Makefile"
11595
11596cat >confcache <<\_ACEOF
11597# This file is a shell script that caches the results of configure
11598# tests run on this system so they can be shared between configure
11599# scripts and configure runs, see configure's option --config-cache.
11600# It is not useful on other systems.  If it contains results you don't
11601# want to keep, you may remove or edit it.
11602#
11603# config.status only pays attention to the cache file if you give it
11604# the --recheck option to rerun configure.
11605#
11606# `ac_cv_env_foo' variables (set or unset) will be overridden when
11607# loading this file, other *unset* `ac_cv_foo' will be assigned the
11608# following values.
11609
11610_ACEOF
11611
11612# The following way of writing the cache mishandles newlines in values,
11613# but we know of no workaround that is simple, portable, and efficient.
11614# So, we kill variables containing newlines.
11615# Ultrix sh set writes to stderr and can't be redirected directly,
11616# and sets the high bit in the cache file unless we assign to the vars.
11617(
11618  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11619    eval ac_val=\$$ac_var
11620    case $ac_val in #(
11621    *${as_nl}*)
11622      case $ac_var in #(
11623      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11624printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11625      esac
11626      case $ac_var in #(
11627      _ | IFS | as_nl) ;; #(
11628      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11629      *) { eval $ac_var=; unset $ac_var;} ;;
11630      esac ;;
11631    esac
11632  done
11633
11634  (set) 2>&1 |
11635    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11636    *${as_nl}ac_space=\ *)
11637      # `set' does not quote correctly, so add quotes: double-quote
11638      # substitution turns \\\\ into \\, and sed turns \\ into \.
11639      sed -n \
11640	"s/'/'\\\\''/g;
11641	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11642      ;; #(
11643    *)
11644      # `set' quotes correctly as required by POSIX, so do not add quotes.
11645      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11646      ;;
11647    esac |
11648    sort
11649) |
11650  sed '
11651     /^ac_cv_env_/b end
11652     t clear
11653     :clear
11654     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11655     t end
11656     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11657     :end' >>confcache
11658if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11659  if test -w "$cache_file"; then
11660    if test "x$cache_file" != "x/dev/null"; then
11661      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11662printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11663      if test ! -f "$cache_file" || test -h "$cache_file"; then
11664	cat confcache >"$cache_file"
11665      else
11666        case $cache_file in #(
11667        */* | ?:*)
11668	  mv -f confcache "$cache_file"$$ &&
11669	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11670        *)
11671	  mv -f confcache "$cache_file" ;;
11672	esac
11673      fi
11674    fi
11675  else
11676    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11677printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11678  fi
11679fi
11680rm -f confcache
11681
11682test "x$prefix" = xNONE && prefix=$ac_default_prefix
11683# Let make expand exec_prefix.
11684test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11685
11686DEFS=-DHAVE_CONFIG_H
11687
11688ac_libobjs=
11689ac_ltlibobjs=
11690U=
11691for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11692  # 1. Remove the extension, and $U if already installed.
11693  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11694  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11695  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11696  #    will be set to the directory where LIBOBJS objects are built.
11697  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11698  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11699done
11700LIBOBJS=$ac_libobjs
11701
11702LTLIBOBJS=$ac_ltlibobjs
11703
11704
11705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11706printf %s "checking that generated files are newer than configure... " >&6; }
11707   if test -n "$am_sleep_pid"; then
11708     # Hide warnings about reused PIDs.
11709     wait $am_sleep_pid 2>/dev/null
11710   fi
11711   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11712printf "%s\n" "done" >&6; }
11713 if test -n "$EXEEXT"; then
11714  am__EXEEXT_TRUE=
11715  am__EXEEXT_FALSE='#'
11716else
11717  am__EXEEXT_TRUE='#'
11718  am__EXEEXT_FALSE=
11719fi
11720
11721if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11722  as_fn_error $? "conditional \"AMDEP\" was never defined.
11723Usually this means the macro was only invoked conditionally." "$LINENO" 5
11724fi
11725if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11726  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11727Usually this means the macro was only invoked conditionally." "$LINENO" 5
11728fi
11729
11730: "${CONFIG_STATUS=./config.status}"
11731ac_write_fail=0
11732ac_clean_files_save=$ac_clean_files
11733ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11735printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11736as_write_fail=0
11737cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11738#! $SHELL
11739# Generated by $as_me.
11740# Run this file to recreate the current configuration.
11741# Compiler output produced by configure, useful for debugging
11742# configure, is in config.log if it exists.
11743
11744debug=false
11745ac_cs_recheck=false
11746ac_cs_silent=false
11747
11748SHELL=\${CONFIG_SHELL-$SHELL}
11749export SHELL
11750_ASEOF
11751cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11752## -------------------- ##
11753## M4sh Initialization. ##
11754## -------------------- ##
11755
11756# Be more Bourne compatible
11757DUALCASE=1; export DUALCASE # for MKS sh
11758as_nop=:
11759if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11760then :
11761  emulate sh
11762  NULLCMD=:
11763  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11764  # is contrary to our usage.  Disable this feature.
11765  alias -g '${1+"$@"}'='"$@"'
11766  setopt NO_GLOB_SUBST
11767else $as_nop
11768  case `(set -o) 2>/dev/null` in #(
11769  *posix*) :
11770    set -o posix ;; #(
11771  *) :
11772     ;;
11773esac
11774fi
11775
11776
11777
11778# Reset variables that may have inherited troublesome values from
11779# the environment.
11780
11781# IFS needs to be set, to space, tab, and newline, in precisely that order.
11782# (If _AS_PATH_WALK were called with IFS unset, it would have the
11783# side effect of setting IFS to empty, thus disabling word splitting.)
11784# Quoting is to prevent editors from complaining about space-tab.
11785as_nl='
11786'
11787export as_nl
11788IFS=" ""	$as_nl"
11789
11790PS1='$ '
11791PS2='> '
11792PS4='+ '
11793
11794# Ensure predictable behavior from utilities with locale-dependent output.
11795LC_ALL=C
11796export LC_ALL
11797LANGUAGE=C
11798export LANGUAGE
11799
11800# We cannot yet rely on "unset" to work, but we need these variables
11801# to be unset--not just set to an empty or harmless value--now, to
11802# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11803# also avoids known problems related to "unset" and subshell syntax
11804# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11805for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11806do eval test \${$as_var+y} \
11807  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11808done
11809
11810# Ensure that fds 0, 1, and 2 are open.
11811if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11812if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11813if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11814
11815# The user is always right.
11816if ${PATH_SEPARATOR+false} :; then
11817  PATH_SEPARATOR=:
11818  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11819    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11820      PATH_SEPARATOR=';'
11821  }
11822fi
11823
11824
11825# Find who we are.  Look in the path if we contain no directory separator.
11826as_myself=
11827case $0 in #((
11828  *[\\/]* ) as_myself=$0 ;;
11829  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830for as_dir in $PATH
11831do
11832  IFS=$as_save_IFS
11833  case $as_dir in #(((
11834    '') as_dir=./ ;;
11835    */) ;;
11836    *) as_dir=$as_dir/ ;;
11837  esac
11838    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11839  done
11840IFS=$as_save_IFS
11841
11842     ;;
11843esac
11844# We did not find ourselves, most probably we were run as `sh COMMAND'
11845# in which case we are not to be found in the path.
11846if test "x$as_myself" = x; then
11847  as_myself=$0
11848fi
11849if test ! -f "$as_myself"; then
11850  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11851  exit 1
11852fi
11853
11854
11855
11856# as_fn_error STATUS ERROR [LINENO LOG_FD]
11857# ----------------------------------------
11858# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11859# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11860# script with STATUS, using 1 if that was 0.
11861as_fn_error ()
11862{
11863  as_status=$1; test $as_status -eq 0 && as_status=1
11864  if test "$4"; then
11865    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11866    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11867  fi
11868  printf "%s\n" "$as_me: error: $2" >&2
11869  as_fn_exit $as_status
11870} # as_fn_error
11871
11872
11873
11874# as_fn_set_status STATUS
11875# -----------------------
11876# Set $? to STATUS, without forking.
11877as_fn_set_status ()
11878{
11879  return $1
11880} # as_fn_set_status
11881
11882# as_fn_exit STATUS
11883# -----------------
11884# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11885as_fn_exit ()
11886{
11887  set +e
11888  as_fn_set_status $1
11889  exit $1
11890} # as_fn_exit
11891
11892# as_fn_unset VAR
11893# ---------------
11894# Portably unset VAR.
11895as_fn_unset ()
11896{
11897  { eval $1=; unset $1;}
11898}
11899as_unset=as_fn_unset
11900
11901# as_fn_append VAR VALUE
11902# ----------------------
11903# Append the text in VALUE to the end of the definition contained in VAR. Take
11904# advantage of any shell optimizations that allow amortized linear growth over
11905# repeated appends, instead of the typical quadratic growth present in naive
11906# implementations.
11907if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11908then :
11909  eval 'as_fn_append ()
11910  {
11911    eval $1+=\$2
11912  }'
11913else $as_nop
11914  as_fn_append ()
11915  {
11916    eval $1=\$$1\$2
11917  }
11918fi # as_fn_append
11919
11920# as_fn_arith ARG...
11921# ------------------
11922# Perform arithmetic evaluation on the ARGs, and store the result in the
11923# global $as_val. Take advantage of shells that can avoid forks. The arguments
11924# must be portable across $(()) and expr.
11925if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11926then :
11927  eval 'as_fn_arith ()
11928  {
11929    as_val=$(( $* ))
11930  }'
11931else $as_nop
11932  as_fn_arith ()
11933  {
11934    as_val=`expr "$@" || test $? -eq 1`
11935  }
11936fi # as_fn_arith
11937
11938
11939if expr a : '\(a\)' >/dev/null 2>&1 &&
11940   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11941  as_expr=expr
11942else
11943  as_expr=false
11944fi
11945
11946if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11947  as_basename=basename
11948else
11949  as_basename=false
11950fi
11951
11952if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11953  as_dirname=dirname
11954else
11955  as_dirname=false
11956fi
11957
11958as_me=`$as_basename -- "$0" ||
11959$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11960	 X"$0" : 'X\(//\)$' \| \
11961	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11962printf "%s\n" X/"$0" |
11963    sed '/^.*\/\([^/][^/]*\)\/*$/{
11964	    s//\1/
11965	    q
11966	  }
11967	  /^X\/\(\/\/\)$/{
11968	    s//\1/
11969	    q
11970	  }
11971	  /^X\/\(\/\).*/{
11972	    s//\1/
11973	    q
11974	  }
11975	  s/.*/./; q'`
11976
11977# Avoid depending upon Character Ranges.
11978as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11979as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11980as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11981as_cr_digits='0123456789'
11982as_cr_alnum=$as_cr_Letters$as_cr_digits
11983
11984
11985# Determine whether it's possible to make 'echo' print without a newline.
11986# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11987# for compatibility with existing Makefiles.
11988ECHO_C= ECHO_N= ECHO_T=
11989case `echo -n x` in #(((((
11990-n*)
11991  case `echo 'xy\c'` in
11992  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11993  xy)  ECHO_C='\c';;
11994  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11995       ECHO_T='	';;
11996  esac;;
11997*)
11998  ECHO_N='-n';;
11999esac
12000
12001# For backward compatibility with old third-party macros, we provide
12002# the shell variables $as_echo and $as_echo_n.  New code should use
12003# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12004as_echo='printf %s\n'
12005as_echo_n='printf %s'
12006
12007rm -f conf$$ conf$$.exe conf$$.file
12008if test -d conf$$.dir; then
12009  rm -f conf$$.dir/conf$$.file
12010else
12011  rm -f conf$$.dir
12012  mkdir conf$$.dir 2>/dev/null
12013fi
12014if (echo >conf$$.file) 2>/dev/null; then
12015  if ln -s conf$$.file conf$$ 2>/dev/null; then
12016    as_ln_s='ln -s'
12017    # ... but there are two gotchas:
12018    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12019    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12020    # In both cases, we have to default to `cp -pR'.
12021    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12022      as_ln_s='cp -pR'
12023  elif ln conf$$.file conf$$ 2>/dev/null; then
12024    as_ln_s=ln
12025  else
12026    as_ln_s='cp -pR'
12027  fi
12028else
12029  as_ln_s='cp -pR'
12030fi
12031rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12032rmdir conf$$.dir 2>/dev/null
12033
12034
12035# as_fn_mkdir_p
12036# -------------
12037# Create "$as_dir" as a directory, including parents if necessary.
12038as_fn_mkdir_p ()
12039{
12040
12041  case $as_dir in #(
12042  -*) as_dir=./$as_dir;;
12043  esac
12044  test -d "$as_dir" || eval $as_mkdir_p || {
12045    as_dirs=
12046    while :; do
12047      case $as_dir in #(
12048      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12049      *) as_qdir=$as_dir;;
12050      esac
12051      as_dirs="'$as_qdir' $as_dirs"
12052      as_dir=`$as_dirname -- "$as_dir" ||
12053$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12054	 X"$as_dir" : 'X\(//\)[^/]' \| \
12055	 X"$as_dir" : 'X\(//\)$' \| \
12056	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12057printf "%s\n" X"$as_dir" |
12058    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12059	    s//\1/
12060	    q
12061	  }
12062	  /^X\(\/\/\)[^/].*/{
12063	    s//\1/
12064	    q
12065	  }
12066	  /^X\(\/\/\)$/{
12067	    s//\1/
12068	    q
12069	  }
12070	  /^X\(\/\).*/{
12071	    s//\1/
12072	    q
12073	  }
12074	  s/.*/./; q'`
12075      test -d "$as_dir" && break
12076    done
12077    test -z "$as_dirs" || eval "mkdir $as_dirs"
12078  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12079
12080
12081} # as_fn_mkdir_p
12082if mkdir -p . 2>/dev/null; then
12083  as_mkdir_p='mkdir -p "$as_dir"'
12084else
12085  test -d ./-p && rmdir ./-p
12086  as_mkdir_p=false
12087fi
12088
12089
12090# as_fn_executable_p FILE
12091# -----------------------
12092# Test if FILE is an executable regular file.
12093as_fn_executable_p ()
12094{
12095  test -f "$1" && test -x "$1"
12096} # as_fn_executable_p
12097as_test_x='test -x'
12098as_executable_p=as_fn_executable_p
12099
12100# Sed expression to map a string onto a valid CPP name.
12101as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12102
12103# Sed expression to map a string onto a valid variable name.
12104as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12105
12106
12107exec 6>&1
12108## ----------------------------------- ##
12109## Main body of $CONFIG_STATUS script. ##
12110## ----------------------------------- ##
12111_ASEOF
12112test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12113
12114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12115# Save the log message, to keep $0 and so on meaningful, and to
12116# report actual input values of CONFIG_FILES etc. instead of their
12117# values after options handling.
12118ac_log="
12119This file was extended by xgc $as_me 1.0.6, which was
12120generated by GNU Autoconf 2.71.  Invocation command line was
12121
12122  CONFIG_FILES    = $CONFIG_FILES
12123  CONFIG_HEADERS  = $CONFIG_HEADERS
12124  CONFIG_LINKS    = $CONFIG_LINKS
12125  CONFIG_COMMANDS = $CONFIG_COMMANDS
12126  $ $0 $@
12127
12128on `(hostname || uname -n) 2>/dev/null | sed 1q`
12129"
12130
12131_ACEOF
12132
12133case $ac_config_files in *"
12134"*) set x $ac_config_files; shift; ac_config_files=$*;;
12135esac
12136
12137case $ac_config_headers in *"
12138"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12139esac
12140
12141
12142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12143# Files that config.status was made for.
12144config_files="$ac_config_files"
12145config_headers="$ac_config_headers"
12146config_commands="$ac_config_commands"
12147
12148_ACEOF
12149
12150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12151ac_cs_usage="\
12152\`$as_me' instantiates files and other configuration actions
12153from templates according to the current configuration.  Unless the files
12154and actions are specified as TAGs, all are instantiated by default.
12155
12156Usage: $0 [OPTION]... [TAG]...
12157
12158  -h, --help       print this help, then exit
12159  -V, --version    print version number and configuration settings, then exit
12160      --config     print configuration, then exit
12161  -q, --quiet, --silent
12162                   do not print progress messages
12163  -d, --debug      don't remove temporary files
12164      --recheck    update $as_me by reconfiguring in the same conditions
12165      --file=FILE[:TEMPLATE]
12166                   instantiate the configuration file FILE
12167      --header=FILE[:TEMPLATE]
12168                   instantiate the configuration header FILE
12169
12170Configuration files:
12171$config_files
12172
12173Configuration headers:
12174$config_headers
12175
12176Configuration commands:
12177$config_commands
12178
12179Report bugs to <https://gitlab.freedesktop.org/xorg/app/xgc/-/issues>."
12180
12181_ACEOF
12182ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12183ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12185ac_cs_config='$ac_cs_config_escaped'
12186ac_cs_version="\\
12187xgc config.status 1.0.6
12188configured by $0, generated by GNU Autoconf 2.71,
12189  with options \\"\$ac_cs_config\\"
12190
12191Copyright (C) 2021 Free Software Foundation, Inc.
12192This config.status script is free software; the Free Software Foundation
12193gives unlimited permission to copy, distribute and modify it."
12194
12195ac_pwd='$ac_pwd'
12196srcdir='$srcdir'
12197INSTALL='$INSTALL'
12198MKDIR_P='$MKDIR_P'
12199AWK='$AWK'
12200test -n "\$AWK" || AWK=awk
12201_ACEOF
12202
12203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12204# The default lists apply if the user does not specify any file.
12205ac_need_defaults=:
12206while test $# != 0
12207do
12208  case $1 in
12209  --*=?*)
12210    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12211    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12212    ac_shift=:
12213    ;;
12214  --*=)
12215    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12216    ac_optarg=
12217    ac_shift=:
12218    ;;
12219  *)
12220    ac_option=$1
12221    ac_optarg=$2
12222    ac_shift=shift
12223    ;;
12224  esac
12225
12226  case $ac_option in
12227  # Handling of the options.
12228  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12229    ac_cs_recheck=: ;;
12230  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12231    printf "%s\n" "$ac_cs_version"; exit ;;
12232  --config | --confi | --conf | --con | --co | --c )
12233    printf "%s\n" "$ac_cs_config"; exit ;;
12234  --debug | --debu | --deb | --de | --d | -d )
12235    debug=: ;;
12236  --file | --fil | --fi | --f )
12237    $ac_shift
12238    case $ac_optarg in
12239    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12240    '') as_fn_error $? "missing file argument" ;;
12241    esac
12242    as_fn_append CONFIG_FILES " '$ac_optarg'"
12243    ac_need_defaults=false;;
12244  --header | --heade | --head | --hea )
12245    $ac_shift
12246    case $ac_optarg in
12247    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12248    esac
12249    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12250    ac_need_defaults=false;;
12251  --he | --h)
12252    # Conflict between --help and --header
12253    as_fn_error $? "ambiguous option: \`$1'
12254Try \`$0 --help' for more information.";;
12255  --help | --hel | -h )
12256    printf "%s\n" "$ac_cs_usage"; exit ;;
12257  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12258  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12259    ac_cs_silent=: ;;
12260
12261  # This is an error.
12262  -*) as_fn_error $? "unrecognized option: \`$1'
12263Try \`$0 --help' for more information." ;;
12264
12265  *) as_fn_append ac_config_targets " $1"
12266     ac_need_defaults=false ;;
12267
12268  esac
12269  shift
12270done
12271
12272ac_configure_extra_args=
12273
12274if $ac_cs_silent; then
12275  exec 6>/dev/null
12276  ac_configure_extra_args="$ac_configure_extra_args --silent"
12277fi
12278
12279_ACEOF
12280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12281if \$ac_cs_recheck; then
12282  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12283  shift
12284  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12285  CONFIG_SHELL='$SHELL'
12286  export CONFIG_SHELL
12287  exec "\$@"
12288fi
12289
12290_ACEOF
12291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12292exec 5>>config.log
12293{
12294  echo
12295  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12296## Running $as_me. ##
12297_ASBOX
12298  printf "%s\n" "$ac_log"
12299} >&5
12300
12301_ACEOF
12302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12303#
12304# INIT-COMMANDS
12305#
12306AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12307
12308_ACEOF
12309
12310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12311
12312# Handling of arguments.
12313for ac_config_target in $ac_config_targets
12314do
12315  case $ac_config_target in
12316    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12317    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12318    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12319    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12320
12321  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12322  esac
12323done
12324
12325
12326# If the user did not use the arguments to specify the items to instantiate,
12327# then the envvar interface is used.  Set only those that are not.
12328# We use the long form for the default assignment because of an extremely
12329# bizarre bug on SunOS 4.1.3.
12330if $ac_need_defaults; then
12331  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12332  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12333  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12334fi
12335
12336# Have a temporary directory for convenience.  Make it in the build tree
12337# simply because there is no reason against having it here, and in addition,
12338# creating and moving files from /tmp can sometimes cause problems.
12339# Hook for its removal unless debugging.
12340# Note that there is a small window in which the directory will not be cleaned:
12341# after its creation but before its name has been assigned to `$tmp'.
12342$debug ||
12343{
12344  tmp= ac_tmp=
12345  trap 'exit_status=$?
12346  : "${ac_tmp:=$tmp}"
12347  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12348' 0
12349  trap 'as_fn_exit 1' 1 2 13 15
12350}
12351# Create a (secure) tmp directory for tmp files.
12352
12353{
12354  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12355  test -d "$tmp"
12356}  ||
12357{
12358  tmp=./conf$$-$RANDOM
12359  (umask 077 && mkdir "$tmp")
12360} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12361ac_tmp=$tmp
12362
12363# Set up the scripts for CONFIG_FILES section.
12364# No need to generate them if there are no CONFIG_FILES.
12365# This happens for instance with `./config.status config.h'.
12366if test -n "$CONFIG_FILES"; then
12367
12368
12369ac_cr=`echo X | tr X '\015'`
12370# On cygwin, bash can eat \r inside `` if the user requested igncr.
12371# But we know of no other shell where ac_cr would be empty at this
12372# point, so we can use a bashism as a fallback.
12373if test "x$ac_cr" = x; then
12374  eval ac_cr=\$\'\\r\'
12375fi
12376ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12377if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12378  ac_cs_awk_cr='\\r'
12379else
12380  ac_cs_awk_cr=$ac_cr
12381fi
12382
12383echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12384_ACEOF
12385
12386
12387{
12388  echo "cat >conf$$subs.awk <<_ACEOF" &&
12389  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12390  echo "_ACEOF"
12391} >conf$$subs.sh ||
12392  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12393ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12394ac_delim='%!_!# '
12395for ac_last_try in false false false false false :; do
12396  . ./conf$$subs.sh ||
12397    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12398
12399  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12400  if test $ac_delim_n = $ac_delim_num; then
12401    break
12402  elif $ac_last_try; then
12403    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12404  else
12405    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12406  fi
12407done
12408rm -f conf$$subs.sh
12409
12410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12411cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12412_ACEOF
12413sed -n '
12414h
12415s/^/S["/; s/!.*/"]=/
12416p
12417g
12418s/^[^!]*!//
12419:repl
12420t repl
12421s/'"$ac_delim"'$//
12422t delim
12423:nl
12424h
12425s/\(.\{148\}\)..*/\1/
12426t more1
12427s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12428p
12429n
12430b repl
12431:more1
12432s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12433p
12434g
12435s/.\{148\}//
12436t nl
12437:delim
12438h
12439s/\(.\{148\}\)..*/\1/
12440t more2
12441s/["\\]/\\&/g; s/^/"/; s/$/"/
12442p
12443b
12444:more2
12445s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12446p
12447g
12448s/.\{148\}//
12449t delim
12450' <conf$$subs.awk | sed '
12451/^[^""]/{
12452  N
12453  s/\n//
12454}
12455' >>$CONFIG_STATUS || ac_write_fail=1
12456rm -f conf$$subs.awk
12457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12458_ACAWK
12459cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12460  for (key in S) S_is_set[key] = 1
12461  FS = ""
12462
12463}
12464{
12465  line = $ 0
12466  nfields = split(line, field, "@")
12467  substed = 0
12468  len = length(field[1])
12469  for (i = 2; i < nfields; i++) {
12470    key = field[i]
12471    keylen = length(key)
12472    if (S_is_set[key]) {
12473      value = S[key]
12474      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12475      len += length(value) + length(field[++i])
12476      substed = 1
12477    } else
12478      len += 1 + keylen
12479  }
12480
12481  print line
12482}
12483
12484_ACAWK
12485_ACEOF
12486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12487if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12488  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12489else
12490  cat
12491fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12492  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12493_ACEOF
12494
12495# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12496# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12497# trailing colons and then remove the whole line if VPATH becomes empty
12498# (actually we leave an empty line to preserve line numbers).
12499if test "x$srcdir" = x.; then
12500  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12501h
12502s///
12503s/^/:/
12504s/[	 ]*$/:/
12505s/:\$(srcdir):/:/g
12506s/:\${srcdir}:/:/g
12507s/:@srcdir@:/:/g
12508s/^:*//
12509s/:*$//
12510x
12511s/\(=[	 ]*\).*/\1/
12512G
12513s/\n//
12514s/^[^=]*=[	 ]*$//
12515}'
12516fi
12517
12518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12519fi # test -n "$CONFIG_FILES"
12520
12521# Set up the scripts for CONFIG_HEADERS section.
12522# No need to generate them if there are no CONFIG_HEADERS.
12523# This happens for instance with `./config.status Makefile'.
12524if test -n "$CONFIG_HEADERS"; then
12525cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12526BEGIN {
12527_ACEOF
12528
12529# Transform confdefs.h into an awk script `defines.awk', embedded as
12530# here-document in config.status, that substitutes the proper values into
12531# config.h.in to produce config.h.
12532
12533# Create a delimiter string that does not exist in confdefs.h, to ease
12534# handling of long lines.
12535ac_delim='%!_!# '
12536for ac_last_try in false false :; do
12537  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12538  if test -z "$ac_tt"; then
12539    break
12540  elif $ac_last_try; then
12541    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12542  else
12543    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12544  fi
12545done
12546
12547# For the awk script, D is an array of macro values keyed by name,
12548# likewise P contains macro parameters if any.  Preserve backslash
12549# newline sequences.
12550
12551ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12552sed -n '
12553s/.\{148\}/&'"$ac_delim"'/g
12554t rset
12555:rset
12556s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12557t def
12558d
12559:def
12560s/\\$//
12561t bsnl
12562s/["\\]/\\&/g
12563s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12564D["\1"]=" \3"/p
12565s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12566d
12567:bsnl
12568s/["\\]/\\&/g
12569s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12570D["\1"]=" \3\\\\\\n"\\/p
12571t cont
12572s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12573t cont
12574d
12575:cont
12576n
12577s/.\{148\}/&'"$ac_delim"'/g
12578t clear
12579:clear
12580s/\\$//
12581t bsnlc
12582s/["\\]/\\&/g; s/^/"/; s/$/"/p
12583d
12584:bsnlc
12585s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12586b cont
12587' <confdefs.h | sed '
12588s/'"$ac_delim"'/"\\\
12589"/g' >>$CONFIG_STATUS || ac_write_fail=1
12590
12591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12592  for (key in D) D_is_set[key] = 1
12593  FS = ""
12594}
12595/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12596  line = \$ 0
12597  split(line, arg, " ")
12598  if (arg[1] == "#") {
12599    defundef = arg[2]
12600    mac1 = arg[3]
12601  } else {
12602    defundef = substr(arg[1], 2)
12603    mac1 = arg[2]
12604  }
12605  split(mac1, mac2, "(") #)
12606  macro = mac2[1]
12607  prefix = substr(line, 1, index(line, defundef) - 1)
12608  if (D_is_set[macro]) {
12609    # Preserve the white space surrounding the "#".
12610    print prefix "define", macro P[macro] D[macro]
12611    next
12612  } else {
12613    # Replace #undef with comments.  This is necessary, for example,
12614    # in the case of _POSIX_SOURCE, which is predefined and required
12615    # on some systems where configure will not decide to define it.
12616    if (defundef == "undef") {
12617      print "/*", prefix defundef, macro, "*/"
12618      next
12619    }
12620  }
12621}
12622{ print }
12623_ACAWK
12624_ACEOF
12625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12626  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12627fi # test -n "$CONFIG_HEADERS"
12628
12629
12630eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12631shift
12632for ac_tag
12633do
12634  case $ac_tag in
12635  :[FHLC]) ac_mode=$ac_tag; continue;;
12636  esac
12637  case $ac_mode$ac_tag in
12638  :[FHL]*:*);;
12639  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12640  :[FH]-) ac_tag=-:-;;
12641  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12642  esac
12643  ac_save_IFS=$IFS
12644  IFS=:
12645  set x $ac_tag
12646  IFS=$ac_save_IFS
12647  shift
12648  ac_file=$1
12649  shift
12650
12651  case $ac_mode in
12652  :L) ac_source=$1;;
12653  :[FH])
12654    ac_file_inputs=
12655    for ac_f
12656    do
12657      case $ac_f in
12658      -) ac_f="$ac_tmp/stdin";;
12659      *) # Look for the file first in the build tree, then in the source tree
12660	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12661	 # because $ac_f cannot contain `:'.
12662	 test -f "$ac_f" ||
12663	   case $ac_f in
12664	   [\\/$]*) false;;
12665	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12666	   esac ||
12667	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12668      esac
12669      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12670      as_fn_append ac_file_inputs " '$ac_f'"
12671    done
12672
12673    # Let's still pretend it is `configure' which instantiates (i.e., don't
12674    # use $as_me), people would be surprised to read:
12675    #    /* config.h.  Generated by config.status.  */
12676    configure_input='Generated from '`
12677	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12678	`' by configure.'
12679    if test x"$ac_file" != x-; then
12680      configure_input="$ac_file.  $configure_input"
12681      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12682printf "%s\n" "$as_me: creating $ac_file" >&6;}
12683    fi
12684    # Neutralize special characters interpreted by sed in replacement strings.
12685    case $configure_input in #(
12686    *\&* | *\|* | *\\* )
12687       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12688       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12689    *) ac_sed_conf_input=$configure_input;;
12690    esac
12691
12692    case $ac_tag in
12693    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12694      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12695    esac
12696    ;;
12697  esac
12698
12699  ac_dir=`$as_dirname -- "$ac_file" ||
12700$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12701	 X"$ac_file" : 'X\(//\)[^/]' \| \
12702	 X"$ac_file" : 'X\(//\)$' \| \
12703	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12704printf "%s\n" X"$ac_file" |
12705    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12706	    s//\1/
12707	    q
12708	  }
12709	  /^X\(\/\/\)[^/].*/{
12710	    s//\1/
12711	    q
12712	  }
12713	  /^X\(\/\/\)$/{
12714	    s//\1/
12715	    q
12716	  }
12717	  /^X\(\/\).*/{
12718	    s//\1/
12719	    q
12720	  }
12721	  s/.*/./; q'`
12722  as_dir="$ac_dir"; as_fn_mkdir_p
12723  ac_builddir=.
12724
12725case "$ac_dir" in
12726.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12727*)
12728  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12729  # A ".." for each directory in $ac_dir_suffix.
12730  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12731  case $ac_top_builddir_sub in
12732  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12733  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12734  esac ;;
12735esac
12736ac_abs_top_builddir=$ac_pwd
12737ac_abs_builddir=$ac_pwd$ac_dir_suffix
12738# for backward compatibility:
12739ac_top_builddir=$ac_top_build_prefix
12740
12741case $srcdir in
12742  .)  # We are building in place.
12743    ac_srcdir=.
12744    ac_top_srcdir=$ac_top_builddir_sub
12745    ac_abs_top_srcdir=$ac_pwd ;;
12746  [\\/]* | ?:[\\/]* )  # Absolute name.
12747    ac_srcdir=$srcdir$ac_dir_suffix;
12748    ac_top_srcdir=$srcdir
12749    ac_abs_top_srcdir=$srcdir ;;
12750  *) # Relative name.
12751    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12752    ac_top_srcdir=$ac_top_build_prefix$srcdir
12753    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12754esac
12755ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12756
12757
12758  case $ac_mode in
12759  :F)
12760  #
12761  # CONFIG_FILE
12762  #
12763
12764  case $INSTALL in
12765  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12766  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12767  esac
12768  ac_MKDIR_P=$MKDIR_P
12769  case $MKDIR_P in
12770  [\\/$]* | ?:[\\/]* ) ;;
12771  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12772  esac
12773_ACEOF
12774
12775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12776# If the template does not know about datarootdir, expand it.
12777# FIXME: This hack should be removed a few years after 2.60.
12778ac_datarootdir_hack=; ac_datarootdir_seen=
12779ac_sed_dataroot='
12780/datarootdir/ {
12781  p
12782  q
12783}
12784/@datadir@/p
12785/@docdir@/p
12786/@infodir@/p
12787/@localedir@/p
12788/@mandir@/p'
12789case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12790*datarootdir*) ac_datarootdir_seen=yes;;
12791*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12793printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12794_ACEOF
12795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12796  ac_datarootdir_hack='
12797  s&@datadir@&$datadir&g
12798  s&@docdir@&$docdir&g
12799  s&@infodir@&$infodir&g
12800  s&@localedir@&$localedir&g
12801  s&@mandir@&$mandir&g
12802  s&\\\${datarootdir}&$datarootdir&g' ;;
12803esac
12804_ACEOF
12805
12806# Neutralize VPATH when `$srcdir' = `.'.
12807# Shell code in configure.ac might set extrasub.
12808# FIXME: do we really want to maintain this feature?
12809cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12810ac_sed_extra="$ac_vpsub
12811$extrasub
12812_ACEOF
12813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12814:t
12815/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12816s|@configure_input@|$ac_sed_conf_input|;t t
12817s&@top_builddir@&$ac_top_builddir_sub&;t t
12818s&@top_build_prefix@&$ac_top_build_prefix&;t t
12819s&@srcdir@&$ac_srcdir&;t t
12820s&@abs_srcdir@&$ac_abs_srcdir&;t t
12821s&@top_srcdir@&$ac_top_srcdir&;t t
12822s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12823s&@builddir@&$ac_builddir&;t t
12824s&@abs_builddir@&$ac_abs_builddir&;t t
12825s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12826s&@INSTALL@&$ac_INSTALL&;t t
12827s&@MKDIR_P@&$ac_MKDIR_P&;t t
12828$ac_datarootdir_hack
12829"
12830eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12831  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12832
12833test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12834  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12835  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12836      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12838which seems to be undefined.  Please make sure it is defined" >&5
12839printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12840which seems to be undefined.  Please make sure it is defined" >&2;}
12841
12842  rm -f "$ac_tmp/stdin"
12843  case $ac_file in
12844  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12845  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12846  esac \
12847  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12848 ;;
12849  :H)
12850  #
12851  # CONFIG_HEADER
12852  #
12853  if test x"$ac_file" != x-; then
12854    {
12855      printf "%s\n" "/* $configure_input  */" >&1 \
12856      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12857    } >"$ac_tmp/config.h" \
12858      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12859    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12860      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12861printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12862    else
12863      rm -f "$ac_file"
12864      mv "$ac_tmp/config.h" "$ac_file" \
12865	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12866    fi
12867  else
12868    printf "%s\n" "/* $configure_input  */" >&1 \
12869      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12870      || as_fn_error $? "could not create -" "$LINENO" 5
12871  fi
12872# Compute "$ac_file"'s index in $config_headers.
12873_am_arg="$ac_file"
12874_am_stamp_count=1
12875for _am_header in $config_headers :; do
12876  case $_am_header in
12877    $_am_arg | $_am_arg:* )
12878      break ;;
12879    * )
12880      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12881  esac
12882done
12883echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12884$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12885	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12886	 X"$_am_arg" : 'X\(//\)$' \| \
12887	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12888printf "%s\n" X"$_am_arg" |
12889    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12890	    s//\1/
12891	    q
12892	  }
12893	  /^X\(\/\/\)[^/].*/{
12894	    s//\1/
12895	    q
12896	  }
12897	  /^X\(\/\/\)$/{
12898	    s//\1/
12899	    q
12900	  }
12901	  /^X\(\/\).*/{
12902	    s//\1/
12903	    q
12904	  }
12905	  s/.*/./; q'`/stamp-h$_am_stamp_count
12906 ;;
12907
12908  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12909printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12910 ;;
12911  esac
12912
12913
12914  case $ac_file$ac_mode in
12915    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12916  # Older Autoconf quotes --file arguments for eval, but not when files
12917  # are listed without --file.  Let's play safe and only enable the eval
12918  # if we detect the quoting.
12919  # TODO: see whether this extra hack can be removed once we start
12920  # requiring Autoconf 2.70 or later.
12921  case $CONFIG_FILES in #(
12922  *\'*) :
12923    eval set x "$CONFIG_FILES" ;; #(
12924  *) :
12925    set x $CONFIG_FILES ;; #(
12926  *) :
12927     ;;
12928esac
12929  shift
12930  # Used to flag and report bootstrapping failures.
12931  am_rc=0
12932  for am_mf
12933  do
12934    # Strip MF so we end up with the name of the file.
12935    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12936    # Check whether this is an Automake generated Makefile which includes
12937    # dependency-tracking related rules and includes.
12938    # Grep'ing the whole file directly is not great: AIX grep has a line
12939    # limit of 2048, but all sed's we know have understand at least 4000.
12940    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12941      || continue
12942    am_dirpart=`$as_dirname -- "$am_mf" ||
12943$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12944	 X"$am_mf" : 'X\(//\)[^/]' \| \
12945	 X"$am_mf" : 'X\(//\)$' \| \
12946	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12947printf "%s\n" X"$am_mf" |
12948    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12949	    s//\1/
12950	    q
12951	  }
12952	  /^X\(\/\/\)[^/].*/{
12953	    s//\1/
12954	    q
12955	  }
12956	  /^X\(\/\/\)$/{
12957	    s//\1/
12958	    q
12959	  }
12960	  /^X\(\/\).*/{
12961	    s//\1/
12962	    q
12963	  }
12964	  s/.*/./; q'`
12965    am_filepart=`$as_basename -- "$am_mf" ||
12966$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12967	 X"$am_mf" : 'X\(//\)$' \| \
12968	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12969printf "%s\n" X/"$am_mf" |
12970    sed '/^.*\/\([^/][^/]*\)\/*$/{
12971	    s//\1/
12972	    q
12973	  }
12974	  /^X\/\(\/\/\)$/{
12975	    s//\1/
12976	    q
12977	  }
12978	  /^X\/\(\/\).*/{
12979	    s//\1/
12980	    q
12981	  }
12982	  s/.*/./; q'`
12983    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12984      && sed -e '/# am--include-marker/d' "$am_filepart" \
12985        | $MAKE -f - am--depfiles" >&5
12986   (cd "$am_dirpart" \
12987      && sed -e '/# am--include-marker/d' "$am_filepart" \
12988        | $MAKE -f - am--depfiles) >&5 2>&5
12989   ac_status=$?
12990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991   (exit $ac_status); } || am_rc=$?
12992  done
12993  if test $am_rc -ne 0; then
12994    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12995printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12996as_fn_error $? "Something went wrong bootstrapping makefile fragments
12997    for automatic dependency tracking.  If GNU make was not used, consider
12998    re-running the configure script with MAKE=\"gmake\" (or whatever is
12999    necessary).  You can also try re-running configure with the
13000    '--disable-dependency-tracking' option to at least be able to build
13001    the package (albeit without support for automatic dependency tracking).
13002See \`config.log' for more details" "$LINENO" 5; }
13003  fi
13004  { am_dirpart=; unset am_dirpart;}
13005  { am_filepart=; unset am_filepart;}
13006  { am_mf=; unset am_mf;}
13007  { am_rc=; unset am_rc;}
13008  rm -f conftest-deps.mk
13009}
13010 ;;
13011
13012  esac
13013done # for ac_tag
13014
13015
13016as_fn_exit 0
13017_ACEOF
13018ac_clean_files=$ac_clean_files_save
13019
13020test $ac_write_fail = 0 ||
13021  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13022
13023
13024# configure is writing to config.log, and then calls config.status.
13025# config.status does its own redirection, appending to config.log.
13026# Unfortunately, on DOS this fails, as config.log is still kept open
13027# by configure, so config.status won't be able to write to it; its
13028# output is simply discarded.  So we exec the FD to /dev/null,
13029# effectively closing config.log, so it can be properly (re)opened and
13030# appended to by config.status.  When coming back to configure, we
13031# need to make the FD available again.
13032if test "$no_create" != yes; then
13033  ac_cs_success=:
13034  ac_config_status_args=
13035  test "$silent" = yes &&
13036    ac_config_status_args="$ac_config_status_args --quiet"
13037  exec 5>/dev/null
13038  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13039  exec 5>>config.log
13040  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13041  # would make configure fail if this is the last instruction.
13042  $ac_cs_success || as_fn_exit 1
13043fi
13044if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13046printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13047fi
13048
13049
13050