configure revision d5e55f73
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for xconsole 1.1.0.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xconsole/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else case e in #(
29  e) case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145  emulate sh
146  NULLCMD=:
147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148  # is contrary to our usage.  Disable this feature.
149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150  setopt NO_GLOB_SUBST
151else case e in #(
152  e) case \`(set -o) 2>/dev/null\` in #(
153  *posix*) :
154    set -o posix ;; #(
155  *) :
156     ;;
157esac ;;
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 case e in #(
176  e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187test \$(( 1 + 1 )) = 2 || exit 1"
188  if (eval "$as_required") 2>/dev/null
189then :
190  as_have_required=yes
191else case e in #(
192  e) as_have_required=no ;;
193esac
194fi
195  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196then :
197
198else case e in #(
199  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200as_found=false
201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202do
203  IFS=$as_save_IFS
204  case $as_dir in #(((
205    '') as_dir=./ ;;
206    */) ;;
207    *) as_dir=$as_dir/ ;;
208  esac
209  as_found=:
210  case $as_dir in #(
211	 /*)
212	   for as_base in sh bash ksh sh5; do
213	     # Try only shells that exist, to save several forks.
214	     as_shell=$as_dir$as_base
215	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217then :
218  CONFIG_SHELL=$as_shell as_have_required=yes
219		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220then :
221  break 2
222fi
223fi
224	   done;;
225       esac
226  as_found=false
227done
228IFS=$as_save_IFS
229if $as_found
230then :
231
232else case e in #(
233  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235then :
236  CONFIG_SHELL=$SHELL as_have_required=yes
237fi ;;
238esac
239fi
240
241
242      if test "x$CONFIG_SHELL" != x
243then :
244  export CONFIG_SHELL
245             # We cannot yet assume a decent shell, so we have to provide a
246# neutralization value for shells without unset; and this also
247# works around shells that cannot unset nonexistent variables.
248# Preserve -v and -x to the replacement shell.
249BASH_ENV=/dev/null
250ENV=/dev/null
251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252case $- in # ((((
253  *v*x* | *x*v* ) as_opts=-vx ;;
254  *v* ) as_opts=-v ;;
255  *x* ) as_opts=-x ;;
256  * ) as_opts= ;;
257esac
258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259# Admittedly, this is quite paranoid, since all the known shells bail
260# out after a failed 'exec'.
261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262exit 255
263fi
264
265    if test x$as_have_required = xno
266then :
267  printf "%s\n" "$0: This script requires a shell more modern than all"
268  printf "%s\n" "$0: the shells that I found on your system."
269  if test ${ZSH_VERSION+y} ; then
270    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272  else
273    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
274$0: https://gitlab.freedesktop.org/xorg/app/xconsole/-/issues
275$0: about your system, including any error possibly output
276$0: before this message. Then install a modern shell, or
277$0: manually run the script under such a shell if you do
278$0: have one."
279  fi
280  exit 1
281fi ;;
282esac
283fi
284fi
285SHELL=${CONFIG_SHELL-/bin/sh}
286export SHELL
287# Unset more variables known to interfere with behavior of common tools.
288CLICOLOR_FORCE= GREP_OPTIONS=
289unset CLICOLOR_FORCE GREP_OPTIONS
290
291## --------------------- ##
292## M4sh Shell Functions. ##
293## --------------------- ##
294# as_fn_unset VAR
295# ---------------
296# Portably unset VAR.
297as_fn_unset ()
298{
299  { eval $1=; unset $1;}
300}
301as_unset=as_fn_unset
302
303
304# as_fn_set_status STATUS
305# -----------------------
306# Set $? to STATUS, without forking.
307as_fn_set_status ()
308{
309  return $1
310} # as_fn_set_status
311
312# as_fn_exit STATUS
313# -----------------
314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315as_fn_exit ()
316{
317  set +e
318  as_fn_set_status $1
319  exit $1
320} # as_fn_exit
321
322# as_fn_mkdir_p
323# -------------
324# Create "$as_dir" as a directory, including parents if necessary.
325as_fn_mkdir_p ()
326{
327
328  case $as_dir in #(
329  -*) as_dir=./$as_dir;;
330  esac
331  test -d "$as_dir" || eval $as_mkdir_p || {
332    as_dirs=
333    while :; do
334      case $as_dir in #(
335      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336      *) as_qdir=$as_dir;;
337      esac
338      as_dirs="'$as_qdir' $as_dirs"
339      as_dir=`$as_dirname -- "$as_dir" ||
340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341	 X"$as_dir" : 'X\(//\)[^/]' \| \
342	 X"$as_dir" : 'X\(//\)$' \| \
343	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344printf "%s\n" X"$as_dir" |
345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346	    s//\1/
347	    q
348	  }
349	  /^X\(\/\/\)[^/].*/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\).*/{
358	    s//\1/
359	    q
360	  }
361	  s/.*/./; q'`
362      test -d "$as_dir" && break
363    done
364    test -z "$as_dirs" || eval "mkdir $as_dirs"
365  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368} # as_fn_mkdir_p
369
370# as_fn_executable_p FILE
371# -----------------------
372# Test if FILE is an executable regular file.
373as_fn_executable_p ()
374{
375  test -f "$1" && test -x "$1"
376} # as_fn_executable_p
377# as_fn_append VAR VALUE
378# ----------------------
379# Append the text in VALUE to the end of the definition contained in VAR. Take
380# advantage of any shell optimizations that allow amortized linear growth over
381# repeated appends, instead of the typical quadratic growth present in naive
382# implementations.
383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else case e in #(
390  e) as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  } ;;
394esac
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403then :
404  eval 'as_fn_arith ()
405  {
406    as_val=$(( $* ))
407  }'
408else case e in #(
409  e) as_fn_arith ()
410  {
411    as_val=`expr "$@" || test $? -eq 1`
412  } ;;
413esac
414fi # as_fn_arith
415
416
417# as_fn_error STATUS ERROR [LINENO LOG_FD]
418# ----------------------------------------
419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421# script with STATUS, using 1 if that was 0.
422as_fn_error ()
423{
424  as_status=$1; test $as_status -eq 0 && as_status=1
425  if test "$4"; then
426    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428  fi
429  printf "%s\n" "$as_me: error: $2" >&2
430  as_fn_exit $as_status
431} # as_fn_error
432
433if expr a : '\(a\)' >/dev/null 2>&1 &&
434   test "X`expr 00001 : '.*\(...\)'`" = X001; then
435  as_expr=expr
436else
437  as_expr=false
438fi
439
440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441  as_basename=basename
442else
443  as_basename=false
444fi
445
446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447  as_dirname=dirname
448else
449  as_dirname=false
450fi
451
452as_me=`$as_basename -- "$0" ||
453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454	 X"$0" : 'X\(//\)$' \| \
455	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456printf "%s\n" X/"$0" |
457    sed '/^.*\/\([^/][^/]*\)\/*$/{
458	    s//\1/
459	    q
460	  }
461	  /^X\/\(\/\/\)$/{
462	    s//\1/
463	    q
464	  }
465	  /^X\/\(\/\).*/{
466	    s//\1/
467	    q
468	  }
469	  s/.*/./; q'`
470
471# Avoid depending upon Character Ranges.
472as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475as_cr_digits='0123456789'
476as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479  as_lineno_1=$LINENO as_lineno_1a=$LINENO
480  as_lineno_2=$LINENO as_lineno_2a=$LINENO
481  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
484  sed -n '
485    p
486    /[$]LINENO/=
487  ' <$as_myself |
488    sed '
489      t clear
490      :clear
491      s/[$]LINENO.*/&-/
492      t lineno
493      b
494      :lineno
495      N
496      :loop
497      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498      t loop
499      s/-\n.*//
500    ' >$as_me.lineno &&
501  chmod +x "$as_me.lineno" ||
502    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505  # already done that, so ensure we don't try to do so again and fall
506  # in an infinite loop.  This has already happened in practice.
507  _as_can_reexec=no; export _as_can_reexec
508  # Don't try to exec as it changes $[0], causing all sort of problems
509  # (the dirname of $[0] is not the place where we might find the
510  # original and so on.  Autoconf is especially sensitive to this).
511  . "./$as_me.lineno"
512  # Exit status is that of the last command.
513  exit
514}
515
516
517# Determine whether it's possible to make 'echo' print without a newline.
518# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519# for compatibility with existing Makefiles.
520ECHO_C= ECHO_N= ECHO_T=
521case `echo -n x` in #(((((
522-n*)
523  case `echo 'xy\c'` in
524  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
525  xy)  ECHO_C='\c';;
526  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
527       ECHO_T='	';;
528  esac;;
529*)
530  ECHO_N='-n';;
531esac
532
533# For backward compatibility with old third-party macros, we provide
534# the shell variables $as_echo and $as_echo_n.  New code should use
535# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536as_echo='printf %s\n'
537as_echo_n='printf %s'
538
539rm -f conf$$ conf$$.exe conf$$.file
540if test -d conf$$.dir; then
541  rm -f conf$$.dir/conf$$.file
542else
543  rm -f conf$$.dir
544  mkdir conf$$.dir 2>/dev/null
545fi
546if (echo >conf$$.file) 2>/dev/null; then
547  if ln -s conf$$.file conf$$ 2>/dev/null; then
548    as_ln_s='ln -s'
549    # ... but there are two gotchas:
550    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552    # In both cases, we have to default to 'cp -pR'.
553    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554      as_ln_s='cp -pR'
555  elif ln conf$$.file conf$$ 2>/dev/null; then
556    as_ln_s=ln
557  else
558    as_ln_s='cp -pR'
559  fi
560else
561  as_ln_s='cp -pR'
562fi
563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564rmdir conf$$.dir 2>/dev/null
565
566if mkdir -p . 2>/dev/null; then
567  as_mkdir_p='mkdir -p "$as_dir"'
568else
569  test -d ./-p && rmdir ./-p
570  as_mkdir_p=false
571fi
572
573as_test_x='test -x'
574as_executable_p=as_fn_executable_p
575
576# Sed expression to map a string onto a valid CPP name.
577as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579
580# Sed expression to map a string onto a valid variable name.
581as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583
584
585test -n "$DJDIR" || exec 7<&0 </dev/null
586exec 6>&1
587
588# Name of the host.
589# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590# so uname gets run too.
591ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592
593#
594# Initializations.
595#
596ac_default_prefix=/usr/local
597ac_clean_files=
598ac_config_libobj_dir=.
599LIBOBJS=
600cross_compiling=no
601subdirs=
602MFLAGS=
603MAKEFLAGS=
604
605# Identity of this package.
606PACKAGE_NAME='xconsole'
607PACKAGE_TARNAME='xconsole'
608PACKAGE_VERSION='1.1.0'
609PACKAGE_STRING='xconsole 1.1.0'
610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xconsole/-/issues'
611PACKAGE_URL=''
612
613ac_unique_file="Makefile.am"
614# Factoring default headers for most tests.
615ac_includes_default="\
616#include <stddef.h>
617#ifdef HAVE_STDIO_H
618# include <stdio.h>
619#endif
620#ifdef HAVE_STDLIB_H
621# include <stdlib.h>
622#endif
623#ifdef HAVE_STRING_H
624# include <string.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_STRINGS_H
633# include <strings.h>
634#endif
635#ifdef HAVE_SYS_TYPES_H
636# include <sys/types.h>
637#endif
638#ifdef HAVE_SYS_STAT_H
639# include <sys/stat.h>
640#endif
641#ifdef HAVE_UNISTD_H
642# include <unistd.h>
643#endif"
644
645ac_header_c_list=
646enable_year2038=no
647ac_subst_vars='am__EXEEXT_FALSE
648am__EXEEXT_TRUE
649LTLIBOBJS
650LIBOBJS
651appdefaultdir
652APPDEFS_LIBS
653APPDEFS_CFLAGS
654XCONSOLE_LIBS
655XCONSOLE_CFLAGS
656MAN_SUBSTS
657XORG_MAN_PAGE
658ADMIN_MAN_DIR
659DRIVER_MAN_DIR
660MISC_MAN_DIR
661FILE_MAN_DIR
662LIB_MAN_DIR
663APP_MAN_DIR
664ADMIN_MAN_SUFFIX
665DRIVER_MAN_SUFFIX
666MISC_MAN_SUFFIX
667FILE_MAN_SUFFIX
668LIB_MAN_SUFFIX
669APP_MAN_SUFFIX
670SED
671host_os
672host_vendor
673host_cpu
674host
675build_os
676build_vendor
677build_cpu
678build
679INSTALL_CMD
680PKG_CONFIG_LIBDIR
681PKG_CONFIG_PATH
682PKG_CONFIG
683CHANGELOG_CMD
684STRICT_CFLAGS
685CWARNFLAGS
686BASE_CFLAGS
687AM_BACKSLASH
688AM_DEFAULT_VERBOSITY
689AM_DEFAULT_V
690AM_V
691CSCOPE
692ETAGS
693CTAGS
694am__fastdepCC_FALSE
695am__fastdepCC_TRUE
696CCDEPMODE
697am__nodep
698AMDEPBACKSLASH
699AMDEP_FALSE
700AMDEP_TRUE
701am__include
702DEPDIR
703am__untar
704am__tar
705AMTAR
706am__leading_dot
707SET_MAKE
708AWK
709mkdir_p
710MKDIR_P
711INSTALL_STRIP_PROGRAM
712STRIP
713install_sh
714MAKEINFO
715AUTOHEADER
716AUTOMAKE
717AUTOCONF
718ACLOCAL
719VERSION
720PACKAGE
721CYGPATH_W
722am__isrc
723INSTALL_DATA
724INSTALL_SCRIPT
725INSTALL_PROGRAM
726OBJEXT
727EXEEXT
728ac_ct_CC
729CPPFLAGS
730LDFLAGS
731CFLAGS
732CC
733target_alias
734host_alias
735build_alias
736LIBS
737ECHO_T
738ECHO_N
739ECHO_C
740DEFS
741mandir
742localedir
743libdir
744psdir
745pdfdir
746dvidir
747htmldir
748infodir
749docdir
750oldincludedir
751includedir
752runstatedir
753localstatedir
754sharedstatedir
755sysconfdir
756datadir
757datarootdir
758libexecdir
759sbindir
760bindir
761program_transform_name
762prefix
763exec_prefix
764PACKAGE_URL
765PACKAGE_BUGREPORT
766PACKAGE_STRING
767PACKAGE_VERSION
768PACKAGE_TARNAME
769PACKAGE_NAME
770PATH_SEPARATOR
771SHELL
772am__quote'
773ac_subst_files=''
774ac_user_opts='
775enable_option_checking
776enable_dependency_tracking
777enable_silent_rules
778enable_selective_werror
779enable_strict_compilation
780with_appdefaultdir
781enable_largefile
782enable_year2038
783'
784      ac_precious_vars='build_alias
785host_alias
786target_alias
787CC
788CFLAGS
789LDFLAGS
790LIBS
791CPPFLAGS
792PKG_CONFIG
793PKG_CONFIG_PATH
794PKG_CONFIG_LIBDIR
795XCONSOLE_CFLAGS
796XCONSOLE_LIBS
797APPDEFS_CFLAGS
798APPDEFS_LIBS'
799
800
801# Initialize some variables set by options.
802ac_init_help=
803ac_init_version=false
804ac_unrecognized_opts=
805ac_unrecognized_sep=
806# The variables have the same names as the options, with
807# dashes changed to underlines.
808cache_file=/dev/null
809exec_prefix=NONE
810no_create=
811no_recursion=
812prefix=NONE
813program_prefix=NONE
814program_suffix=NONE
815program_transform_name=s,x,x,
816silent=
817site=
818srcdir=
819verbose=
820x_includes=NONE
821x_libraries=NONE
822
823# Installation directory options.
824# These are left unexpanded so users can "make install exec_prefix=/foo"
825# and all the variables that are supposed to be based on exec_prefix
826# by default will actually change.
827# Use braces instead of parens because sh, perl, etc. also accept them.
828# (The list follows the same order as the GNU Coding Standards.)
829bindir='${exec_prefix}/bin'
830sbindir='${exec_prefix}/sbin'
831libexecdir='${exec_prefix}/libexec'
832datarootdir='${prefix}/share'
833datadir='${datarootdir}'
834sysconfdir='${prefix}/etc'
835sharedstatedir='${prefix}/com'
836localstatedir='${prefix}/var'
837runstatedir='${localstatedir}/run'
838includedir='${prefix}/include'
839oldincludedir='/usr/include'
840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841infodir='${datarootdir}/info'
842htmldir='${docdir}'
843dvidir='${docdir}'
844pdfdir='${docdir}'
845psdir='${docdir}'
846libdir='${exec_prefix}/lib'
847localedir='${datarootdir}/locale'
848mandir='${datarootdir}/man'
849
850ac_prev=
851ac_dashdash=
852for ac_option
853do
854  # If the previous option needs an argument, assign it.
855  if test -n "$ac_prev"; then
856    eval $ac_prev=\$ac_option
857    ac_prev=
858    continue
859  fi
860
861  case $ac_option in
862  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863  *=)   ac_optarg= ;;
864  *)    ac_optarg=yes ;;
865  esac
866
867  case $ac_dashdash$ac_option in
868  --)
869    ac_dashdash=yes ;;
870
871  -bindir | --bindir | --bindi | --bind | --bin | --bi)
872    ac_prev=bindir ;;
873  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874    bindir=$ac_optarg ;;
875
876  -build | --build | --buil | --bui | --bu)
877    ac_prev=build_alias ;;
878  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879    build_alias=$ac_optarg ;;
880
881  -cache-file | --cache-file | --cache-fil | --cache-fi \
882  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883    ac_prev=cache_file ;;
884  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886    cache_file=$ac_optarg ;;
887
888  --config-cache | -C)
889    cache_file=config.cache ;;
890
891  -datadir | --datadir | --datadi | --datad)
892    ac_prev=datadir ;;
893  -datadir=* | --datadir=* | --datadi=* | --datad=*)
894    datadir=$ac_optarg ;;
895
896  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897  | --dataroo | --dataro | --datar)
898    ac_prev=datarootdir ;;
899  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901    datarootdir=$ac_optarg ;;
902
903  -disable-* | --disable-*)
904    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905    # Reject names that are not valid shell variable names.
906    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907      as_fn_error $? "invalid feature name: '$ac_useropt'"
908    ac_useropt_orig=$ac_useropt
909    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
910    case $ac_user_opts in
911      *"
912"enable_$ac_useropt"
913"*) ;;
914      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915	 ac_unrecognized_sep=', ';;
916    esac
917    eval enable_$ac_useropt=no ;;
918
919  -docdir | --docdir | --docdi | --doc | --do)
920    ac_prev=docdir ;;
921  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922    docdir=$ac_optarg ;;
923
924  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925    ac_prev=dvidir ;;
926  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927    dvidir=$ac_optarg ;;
928
929  -enable-* | --enable-*)
930    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931    # Reject names that are not valid shell variable names.
932    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933      as_fn_error $? "invalid feature name: '$ac_useropt'"
934    ac_useropt_orig=$ac_useropt
935    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
936    case $ac_user_opts in
937      *"
938"enable_$ac_useropt"
939"*) ;;
940      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941	 ac_unrecognized_sep=', ';;
942    esac
943    eval enable_$ac_useropt=\$ac_optarg ;;
944
945  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947  | --exec | --exe | --ex)
948    ac_prev=exec_prefix ;;
949  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951  | --exec=* | --exe=* | --ex=*)
952    exec_prefix=$ac_optarg ;;
953
954  -gas | --gas | --ga | --g)
955    # Obsolete; use --with-gas.
956    with_gas=yes ;;
957
958  -help | --help | --hel | --he | -h)
959    ac_init_help=long ;;
960  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961    ac_init_help=recursive ;;
962  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963    ac_init_help=short ;;
964
965  -host | --host | --hos | --ho)
966    ac_prev=host_alias ;;
967  -host=* | --host=* | --hos=* | --ho=*)
968    host_alias=$ac_optarg ;;
969
970  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971    ac_prev=htmldir ;;
972  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973  | --ht=*)
974    htmldir=$ac_optarg ;;
975
976  -includedir | --includedir | --includedi | --included | --include \
977  | --includ | --inclu | --incl | --inc)
978    ac_prev=includedir ;;
979  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980  | --includ=* | --inclu=* | --incl=* | --inc=*)
981    includedir=$ac_optarg ;;
982
983  -infodir | --infodir | --infodi | --infod | --info | --inf)
984    ac_prev=infodir ;;
985  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986    infodir=$ac_optarg ;;
987
988  -libdir | --libdir | --libdi | --libd)
989    ac_prev=libdir ;;
990  -libdir=* | --libdir=* | --libdi=* | --libd=*)
991    libdir=$ac_optarg ;;
992
993  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994  | --libexe | --libex | --libe)
995    ac_prev=libexecdir ;;
996  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997  | --libexe=* | --libex=* | --libe=*)
998    libexecdir=$ac_optarg ;;
999
1000  -localedir | --localedir | --localedi | --localed | --locale)
1001    ac_prev=localedir ;;
1002  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003    localedir=$ac_optarg ;;
1004
1005  -localstatedir | --localstatedir | --localstatedi | --localstated \
1006  | --localstate | --localstat | --localsta | --localst | --locals)
1007    ac_prev=localstatedir ;;
1008  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010    localstatedir=$ac_optarg ;;
1011
1012  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013    ac_prev=mandir ;;
1014  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015    mandir=$ac_optarg ;;
1016
1017  -nfp | --nfp | --nf)
1018    # Obsolete; use --without-fp.
1019    with_fp=no ;;
1020
1021  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022  | --no-cr | --no-c | -n)
1023    no_create=yes ;;
1024
1025  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027    no_recursion=yes ;;
1028
1029  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031  | --oldin | --oldi | --old | --ol | --o)
1032    ac_prev=oldincludedir ;;
1033  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036    oldincludedir=$ac_optarg ;;
1037
1038  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039    ac_prev=prefix ;;
1040  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041    prefix=$ac_optarg ;;
1042
1043  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044  | --program-pre | --program-pr | --program-p)
1045    ac_prev=program_prefix ;;
1046  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048    program_prefix=$ac_optarg ;;
1049
1050  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051  | --program-suf | --program-su | --program-s)
1052    ac_prev=program_suffix ;;
1053  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055    program_suffix=$ac_optarg ;;
1056
1057  -program-transform-name | --program-transform-name \
1058  | --program-transform-nam | --program-transform-na \
1059  | --program-transform-n | --program-transform- \
1060  | --program-transform | --program-transfor \
1061  | --program-transfo | --program-transf \
1062  | --program-trans | --program-tran \
1063  | --progr-tra | --program-tr | --program-t)
1064    ac_prev=program_transform_name ;;
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    program_transform_name=$ac_optarg ;;
1073
1074  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075    ac_prev=pdfdir ;;
1076  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077    pdfdir=$ac_optarg ;;
1078
1079  -psdir | --psdir | --psdi | --psd | --ps)
1080    ac_prev=psdir ;;
1081  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082    psdir=$ac_optarg ;;
1083
1084  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085  | -silent | --silent | --silen | --sile | --sil)
1086    silent=yes ;;
1087
1088  -runstatedir | --runstatedir | --runstatedi | --runstated \
1089  | --runstate | --runstat | --runsta | --runst | --runs \
1090  | --run | --ru | --r)
1091    ac_prev=runstatedir ;;
1092  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1093  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1094  | --run=* | --ru=* | --r=*)
1095    runstatedir=$ac_optarg ;;
1096
1097  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098    ac_prev=sbindir ;;
1099  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100  | --sbi=* | --sb=*)
1101    sbindir=$ac_optarg ;;
1102
1103  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105  | --sharedst | --shareds | --shared | --share | --shar \
1106  | --sha | --sh)
1107    ac_prev=sharedstatedir ;;
1108  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111  | --sha=* | --sh=*)
1112    sharedstatedir=$ac_optarg ;;
1113
1114  -site | --site | --sit)
1115    ac_prev=site ;;
1116  -site=* | --site=* | --sit=*)
1117    site=$ac_optarg ;;
1118
1119  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120    ac_prev=srcdir ;;
1121  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122    srcdir=$ac_optarg ;;
1123
1124  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125  | --syscon | --sysco | --sysc | --sys | --sy)
1126    ac_prev=sysconfdir ;;
1127  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129    sysconfdir=$ac_optarg ;;
1130
1131  -target | --target | --targe | --targ | --tar | --ta | --t)
1132    ac_prev=target_alias ;;
1133  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134    target_alias=$ac_optarg ;;
1135
1136  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137    verbose=yes ;;
1138
1139  -version | --version | --versio | --versi | --vers | -V)
1140    ac_init_version=: ;;
1141
1142  -with-* | --with-*)
1143    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144    # Reject names that are not valid shell variable names.
1145    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146      as_fn_error $? "invalid package name: '$ac_useropt'"
1147    ac_useropt_orig=$ac_useropt
1148    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1149    case $ac_user_opts in
1150      *"
1151"with_$ac_useropt"
1152"*) ;;
1153      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154	 ac_unrecognized_sep=', ';;
1155    esac
1156    eval with_$ac_useropt=\$ac_optarg ;;
1157
1158  -without-* | --without-*)
1159    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160    # Reject names that are not valid shell variable names.
1161    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162      as_fn_error $? "invalid package name: '$ac_useropt'"
1163    ac_useropt_orig=$ac_useropt
1164    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1165    case $ac_user_opts in
1166      *"
1167"with_$ac_useropt"
1168"*) ;;
1169      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170	 ac_unrecognized_sep=', ';;
1171    esac
1172    eval with_$ac_useropt=no ;;
1173
1174  --x)
1175    # Obsolete; use --with-x.
1176    with_x=yes ;;
1177
1178  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179  | --x-incl | --x-inc | --x-in | --x-i)
1180    ac_prev=x_includes ;;
1181  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183    x_includes=$ac_optarg ;;
1184
1185  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187    ac_prev=x_libraries ;;
1188  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190    x_libraries=$ac_optarg ;;
1191
1192  -*) as_fn_error $? "unrecognized option: '$ac_option'
1193Try '$0 --help' for more information"
1194    ;;
1195
1196  *=*)
1197    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198    # Reject names that are not valid shell variable names.
1199    case $ac_envvar in #(
1200      '' | [0-9]* | *[!_$as_cr_alnum]* )
1201      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1202    esac
1203    eval $ac_envvar=\$ac_optarg
1204    export $ac_envvar ;;
1205
1206  *)
1207    # FIXME: should be removed in autoconf 3.0.
1208    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1209    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1211    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212    ;;
1213
1214  esac
1215done
1216
1217if test -n "$ac_prev"; then
1218  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219  as_fn_error $? "missing argument to $ac_option"
1220fi
1221
1222if test -n "$ac_unrecognized_opts"; then
1223  case $enable_option_checking in
1224    no) ;;
1225    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227  esac
1228fi
1229
1230# Check all directory arguments for consistency.
1231for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232		datadir sysconfdir sharedstatedir localstatedir includedir \
1233		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234		libdir localedir mandir runstatedir
1235do
1236  eval ac_val=\$$ac_var
1237  # Remove trailing slashes.
1238  case $ac_val in
1239    */ )
1240      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241      eval $ac_var=\$ac_val;;
1242  esac
1243  # Be sure to have absolute directory names.
1244  case $ac_val in
1245    [\\/$]* | ?:[\\/]* )  continue;;
1246    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247  esac
1248  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249done
1250
1251# There might be people who depend on the old broken behavior: '$host'
1252# used to hold the argument of --host etc.
1253# FIXME: To remove some day.
1254build=$build_alias
1255host=$host_alias
1256target=$target_alias
1257
1258# FIXME: To remove some day.
1259if test "x$host_alias" != x; then
1260  if test "x$build_alias" = x; then
1261    cross_compiling=maybe
1262  elif test "x$build_alias" != "x$host_alias"; then
1263    cross_compiling=yes
1264  fi
1265fi
1266
1267ac_tool_prefix=
1268test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270test "$silent" = yes && exec 6>/dev/null
1271
1272
1273ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274ac_ls_di=`ls -di .` &&
1275ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276  as_fn_error $? "working directory cannot be determined"
1277test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278  as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281# Find the source files, if location was not specified.
1282if test -z "$srcdir"; then
1283  ac_srcdir_defaulted=yes
1284  # Try the directory containing this script, then the parent directory.
1285  ac_confdir=`$as_dirname -- "$as_myself" ||
1286$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287	 X"$as_myself" : 'X\(//\)[^/]' \| \
1288	 X"$as_myself" : 'X\(//\)$' \| \
1289	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290printf "%s\n" X"$as_myself" |
1291    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292	    s//\1/
1293	    q
1294	  }
1295	  /^X\(\/\/\)[^/].*/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\/\)$/{
1300	    s//\1/
1301	    q
1302	  }
1303	  /^X\(\/\).*/{
1304	    s//\1/
1305	    q
1306	  }
1307	  s/.*/./; q'`
1308  srcdir=$ac_confdir
1309  if test ! -r "$srcdir/$ac_unique_file"; then
1310    srcdir=..
1311  fi
1312else
1313  ac_srcdir_defaulted=no
1314fi
1315if test ! -r "$srcdir/$ac_unique_file"; then
1316  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318fi
1319ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1320ac_abs_confdir=`(
1321	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322	pwd)`
1323# When building in place, set srcdir=.
1324if test "$ac_abs_confdir" = "$ac_pwd"; then
1325  srcdir=.
1326fi
1327# Remove unnecessary trailing slashes from srcdir.
1328# Double slashes in file names in object file debugging info
1329# mess up M-x gdb in Emacs.
1330case $srcdir in
1331*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332esac
1333for ac_var in $ac_precious_vars; do
1334  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335  eval ac_env_${ac_var}_value=\$${ac_var}
1336  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338done
1339
1340#
1341# Report the --help message.
1342#
1343if test "$ac_init_help" = "long"; then
1344  # Omit some internal or obsolete options to make the list less imposing.
1345  # This message is too long to be a string in the A/UX 3.1 sh.
1346  cat <<_ACEOF
1347'configure' configures xconsole 1.1.0 to adapt to many kinds of systems.
1348
1349Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352VAR=VALUE.  See below for descriptions of some of the useful variables.
1353
1354Defaults for the options are specified in brackets.
1355
1356Configuration:
1357  -h, --help              display this help and exit
1358      --help=short        display options specific to this package
1359      --help=recursive    display the short help of all the included packages
1360  -V, --version           display version information and exit
1361  -q, --quiet, --silent   do not print 'checking ...' messages
1362      --cache-file=FILE   cache test results in FILE [disabled]
1363  -C, --config-cache      alias for '--cache-file=config.cache'
1364  -n, --no-create         do not create output files
1365      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1366
1367Installation directories:
1368  --prefix=PREFIX         install architecture-independent files in PREFIX
1369                          [$ac_default_prefix]
1370  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1371                          [PREFIX]
1372
1373By default, 'make install' will install all the files in
1374'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1375an installation prefix other than '$ac_default_prefix' using '--prefix',
1376for instance '--prefix=\$HOME'.
1377
1378For better control, use the options below.
1379
1380Fine tuning of the installation directories:
1381  --bindir=DIR            user executables [EPREFIX/bin]
1382  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1383  --libexecdir=DIR        program executables [EPREFIX/libexec]
1384  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1385  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1386  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1387  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1388  --libdir=DIR            object code libraries [EPREFIX/lib]
1389  --includedir=DIR        C header files [PREFIX/include]
1390  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1391  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1392  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1393  --infodir=DIR           info documentation [DATAROOTDIR/info]
1394  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1395  --mandir=DIR            man documentation [DATAROOTDIR/man]
1396  --docdir=DIR            documentation root [DATAROOTDIR/doc/xconsole]
1397  --htmldir=DIR           html documentation [DOCDIR]
1398  --dvidir=DIR            dvi documentation [DOCDIR]
1399  --pdfdir=DIR            pdf documentation [DOCDIR]
1400  --psdir=DIR             ps documentation [DOCDIR]
1401_ACEOF
1402
1403  cat <<\_ACEOF
1404
1405Program names:
1406  --program-prefix=PREFIX            prepend PREFIX to installed program names
1407  --program-suffix=SUFFIX            append SUFFIX to installed program names
1408  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1409
1410System types:
1411  --build=BUILD     configure for building on BUILD [guessed]
1412  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1413_ACEOF
1414fi
1415
1416if test -n "$ac_init_help"; then
1417  case $ac_init_help in
1418     short | recursive ) echo "Configuration of xconsole 1.1.0:";;
1419   esac
1420  cat <<\_ACEOF
1421
1422Optional Features:
1423  --disable-option-checking  ignore unrecognized --enable/--with options
1424  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1425  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1426  --enable-dependency-tracking
1427                          do not reject slow dependency extractors
1428  --disable-dependency-tracking
1429                          speeds up one-time build
1430  --enable-silent-rules   less verbose build output (undo: "make V=1")
1431  --disable-silent-rules  verbose build output (undo: "make V=0")
1432  --disable-selective-werror
1433                          Turn off selective compiler errors. (default:
1434                          enabled)
1435  --enable-strict-compilation
1436                          Enable all warnings from compiler and make them
1437                          errors (default: disabled)
1438  --disable-largefile     omit support for large files
1439  --enable-year2038       support timestamps after 2038
1440
1441Optional Packages:
1442  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1443  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1444  --with-appdefaultdir=<pathname>
1445                          specify directory for app-defaults files (default is
1446                          autodetected)
1447
1448Some influential environment variables:
1449  CC          C compiler command
1450  CFLAGS      C compiler flags
1451  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1452              nonstandard directory <lib dir>
1453  LIBS        libraries to pass to the linker, e.g. -l<library>
1454  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1455              you have headers in a nonstandard directory <include dir>
1456  PKG_CONFIG  path to pkg-config utility
1457  PKG_CONFIG_PATH
1458              directories to add to pkg-config's search path
1459  PKG_CONFIG_LIBDIR
1460              path overriding pkg-config's built-in search path
1461  XCONSOLE_CFLAGS
1462              C compiler flags for XCONSOLE, overriding pkg-config
1463  XCONSOLE_LIBS
1464              linker flags for XCONSOLE, overriding pkg-config
1465  APPDEFS_CFLAGS
1466              C compiler flags for APPDEFS, overriding pkg-config
1467  APPDEFS_LIBS
1468              linker flags for APPDEFS, overriding pkg-config
1469
1470Use these variables to override the choices made by 'configure' or to help
1471it to find libraries and programs with nonstandard names/locations.
1472
1473Report bugs to <https://gitlab.freedesktop.org/xorg/app/xconsole/-/issues>.
1474_ACEOF
1475ac_status=$?
1476fi
1477
1478if test "$ac_init_help" = "recursive"; then
1479  # If there are subdirs, report their specific --help.
1480  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481    test -d "$ac_dir" ||
1482      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483      continue
1484    ac_builddir=.
1485
1486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
1489  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1490  # A ".." for each directory in $ac_dir_suffix.
1491  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492  case $ac_top_builddir_sub in
1493  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495  esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
1501
1502case $srcdir in
1503  .)  # We are building in place.
1504    ac_srcdir=.
1505    ac_top_srcdir=$ac_top_builddir_sub
1506    ac_abs_top_srcdir=$ac_pwd ;;
1507  [\\/]* | ?:[\\/]* )  # Absolute name.
1508    ac_srcdir=$srcdir$ac_dir_suffix;
1509    ac_top_srcdir=$srcdir
1510    ac_abs_top_srcdir=$srcdir ;;
1511  *) # Relative name.
1512    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513    ac_top_srcdir=$ac_top_build_prefix$srcdir
1514    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515esac
1516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518    cd "$ac_dir" || { ac_status=$?; continue; }
1519    # Check for configure.gnu first; this name is used for a wrapper for
1520    # Metaconfig's "Configure" on case-insensitive file systems.
1521    if test -f "$ac_srcdir/configure.gnu"; then
1522      echo &&
1523      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524    elif test -f "$ac_srcdir/configure"; then
1525      echo &&
1526      $SHELL "$ac_srcdir/configure" --help=recursive
1527    else
1528      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529    fi || ac_status=$?
1530    cd "$ac_pwd" || { ac_status=$?; break; }
1531  done
1532fi
1533
1534test -n "$ac_init_help" && exit $ac_status
1535if $ac_init_version; then
1536  cat <<\_ACEOF
1537xconsole configure 1.1.0
1538generated by GNU Autoconf 2.72
1539
1540Copyright (C) 2023 Free Software Foundation, Inc.
1541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
1543_ACEOF
1544  exit
1545fi
1546
1547## ------------------------ ##
1548## Autoconf initialization. ##
1549## ------------------------ ##
1550
1551# ac_fn_c_try_compile LINENO
1552# --------------------------
1553# Try to compile conftest.$ac_ext, and return whether this succeeded.
1554ac_fn_c_try_compile ()
1555{
1556  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557  rm -f conftest.$ac_objext conftest.beam
1558  if { { ac_try="$ac_compile"
1559case "(($ac_try" in
1560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561  *) ac_try_echo=$ac_try;;
1562esac
1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564printf "%s\n" "$ac_try_echo"; } >&5
1565  (eval "$ac_compile") 2>conftest.err
1566  ac_status=$?
1567  if test -s conftest.err; then
1568    grep -v '^ *+' conftest.err >conftest.er1
1569    cat conftest.er1 >&5
1570    mv -f conftest.er1 conftest.err
1571  fi
1572  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573  test $ac_status = 0; } && {
1574	 test -z "$ac_c_werror_flag" ||
1575	 test ! -s conftest.err
1576       } && test -s conftest.$ac_objext
1577then :
1578  ac_retval=0
1579else case e in #(
1580  e) printf "%s\n" "$as_me: failed program was:" >&5
1581sed 's/^/| /' conftest.$ac_ext >&5
1582
1583	ac_retval=1 ;;
1584esac
1585fi
1586  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587  as_fn_set_status $ac_retval
1588
1589} # ac_fn_c_try_compile
1590
1591# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1592# -------------------------------------------------------
1593# Tests whether HEADER exists and can be compiled using the include files in
1594# INCLUDES, setting the cache variable VAR accordingly.
1595ac_fn_c_check_header_compile ()
1596{
1597  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1599printf %s "checking for $2... " >&6; }
1600if eval test \${$3+y}
1601then :
1602  printf %s "(cached) " >&6
1603else case e in #(
1604  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605/* end confdefs.h.  */
1606$4
1607#include <$2>
1608_ACEOF
1609if ac_fn_c_try_compile "$LINENO"
1610then :
1611  eval "$3=yes"
1612else case e in #(
1613  e) eval "$3=no" ;;
1614esac
1615fi
1616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1617esac
1618fi
1619eval ac_res=\$$3
1620	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621printf "%s\n" "$ac_res" >&6; }
1622  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623
1624} # ac_fn_c_check_header_compile
1625
1626# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1627# ------------------------------------------------------------------
1628# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1629# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1630ac_fn_check_decl ()
1631{
1632  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633  as_decl_name=`echo $2|sed 's/ *(.*//'`
1634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1635printf %s "checking whether $as_decl_name is declared... " >&6; }
1636if eval test \${$3+y}
1637then :
1638  printf %s "(cached) " >&6
1639else case e in #(
1640  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1641  eval ac_save_FLAGS=\$$6
1642  as_fn_append $6 " $5"
1643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644/* end confdefs.h.  */
1645$4
1646int
1647main (void)
1648{
1649#ifndef $as_decl_name
1650#ifdef __cplusplus
1651  (void) $as_decl_use;
1652#else
1653  (void) $as_decl_name;
1654#endif
1655#endif
1656
1657  ;
1658  return 0;
1659}
1660_ACEOF
1661if ac_fn_c_try_compile "$LINENO"
1662then :
1663  eval "$3=yes"
1664else case e in #(
1665  e) eval "$3=no" ;;
1666esac
1667fi
1668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1669  eval $6=\$ac_save_FLAGS
1670 ;;
1671esac
1672fi
1673eval ac_res=\$$3
1674	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675printf "%s\n" "$ac_res" >&6; }
1676  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677
1678} # ac_fn_check_decl
1679
1680# ac_fn_c_try_link LINENO
1681# -----------------------
1682# Try to link conftest.$ac_ext, and return whether this succeeded.
1683ac_fn_c_try_link ()
1684{
1685  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1687  if { { ac_try="$ac_link"
1688case "(($ac_try" in
1689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690  *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693printf "%s\n" "$ac_try_echo"; } >&5
1694  (eval "$ac_link") 2>conftest.err
1695  ac_status=$?
1696  if test -s conftest.err; then
1697    grep -v '^ *+' conftest.err >conftest.er1
1698    cat conftest.er1 >&5
1699    mv -f conftest.er1 conftest.err
1700  fi
1701  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702  test $ac_status = 0; } && {
1703	 test -z "$ac_c_werror_flag" ||
1704	 test ! -s conftest.err
1705       } && test -s conftest$ac_exeext && {
1706	 test "$cross_compiling" = yes ||
1707	 test -x conftest$ac_exeext
1708       }
1709then :
1710  ac_retval=0
1711else case e in #(
1712  e) printf "%s\n" "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
1715	ac_retval=1 ;;
1716esac
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
1727
1728# ac_fn_c_check_func LINENO FUNC VAR
1729# ----------------------------------
1730# Tests whether FUNC exists, setting the cache variable VAR accordingly
1731ac_fn_c_check_func ()
1732{
1733  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735printf %s "checking for $2... " >&6; }
1736if eval test \${$3+y}
1737then :
1738  printf %s "(cached) " >&6
1739else case e in #(
1740  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741/* end confdefs.h.  */
1742/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1743   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1744#define $2 innocuous_$2
1745
1746/* System header to define __stub macros and hopefully few prototypes,
1747   which can conflict with char $2 (void); below.  */
1748
1749#include <limits.h>
1750#undef $2
1751
1752/* Override any GCC internal prototype to avoid an error.
1753   Use char because int might match the return type of a GCC
1754   builtin and then its argument prototype would still apply.  */
1755#ifdef __cplusplus
1756extern "C"
1757#endif
1758char $2 (void);
1759/* The GNU C library defines this for functions which it implements
1760    to always fail with ENOSYS.  Some functions are actually named
1761    something starting with __ and the normal name is an alias.  */
1762#if defined __stub_$2 || defined __stub___$2
1763choke me
1764#endif
1765
1766int
1767main (void)
1768{
1769return $2 ();
1770  ;
1771  return 0;
1772}
1773_ACEOF
1774if ac_fn_c_try_link "$LINENO"
1775then :
1776  eval "$3=yes"
1777else case e in #(
1778  e) eval "$3=no" ;;
1779esac
1780fi
1781rm -f core conftest.err conftest.$ac_objext conftest.beam \
1782    conftest$ac_exeext conftest.$ac_ext ;;
1783esac
1784fi
1785eval ac_res=\$$3
1786	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787printf "%s\n" "$ac_res" >&6; }
1788  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790} # ac_fn_c_check_func
1791ac_configure_args_raw=
1792for ac_arg
1793do
1794  case $ac_arg in
1795  *\'*)
1796    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1797  esac
1798  as_fn_append ac_configure_args_raw " '$ac_arg'"
1799done
1800
1801case $ac_configure_args_raw in
1802  *$as_nl*)
1803    ac_safe_unquote= ;;
1804  *)
1805    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1806    ac_unsafe_a="$ac_unsafe_z#~"
1807    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1808    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1809esac
1810
1811cat >config.log <<_ACEOF
1812This file contains any messages produced by compilers while
1813running configure, to aid debugging if configure makes a mistake.
1814
1815It was created by xconsole $as_me 1.1.0, which was
1816generated by GNU Autoconf 2.72.  Invocation command line was
1817
1818  $ $0$ac_configure_args_raw
1819
1820_ACEOF
1821exec 5>>config.log
1822{
1823cat <<_ASUNAME
1824## --------- ##
1825## Platform. ##
1826## --------- ##
1827
1828hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1829uname -m = `(uname -m) 2>/dev/null || echo unknown`
1830uname -r = `(uname -r) 2>/dev/null || echo unknown`
1831uname -s = `(uname -s) 2>/dev/null || echo unknown`
1832uname -v = `(uname -v) 2>/dev/null || echo unknown`
1833
1834/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1835/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1836
1837/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1838/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1839/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1840/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1841/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1842/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1843/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1844
1845_ASUNAME
1846
1847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848for as_dir in $PATH
1849do
1850  IFS=$as_save_IFS
1851  case $as_dir in #(((
1852    '') as_dir=./ ;;
1853    */) ;;
1854    *) as_dir=$as_dir/ ;;
1855  esac
1856    printf "%s\n" "PATH: $as_dir"
1857  done
1858IFS=$as_save_IFS
1859
1860} >&5
1861
1862cat >&5 <<_ACEOF
1863
1864
1865## ----------- ##
1866## Core tests. ##
1867## ----------- ##
1868
1869_ACEOF
1870
1871
1872# Keep a trace of the command line.
1873# Strip out --no-create and --no-recursion so they do not pile up.
1874# Strip out --silent because we don't want to record it for future runs.
1875# Also quote any args containing shell meta-characters.
1876# Make two passes to allow for proper duplicate-argument suppression.
1877ac_configure_args=
1878ac_configure_args0=
1879ac_configure_args1=
1880ac_must_keep_next=false
1881for ac_pass in 1 2
1882do
1883  for ac_arg
1884  do
1885    case $ac_arg in
1886    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1887    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1888    | -silent | --silent | --silen | --sile | --sil)
1889      continue ;;
1890    *\'*)
1891      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1892    esac
1893    case $ac_pass in
1894    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1895    2)
1896      as_fn_append ac_configure_args1 " '$ac_arg'"
1897      if test $ac_must_keep_next = true; then
1898	ac_must_keep_next=false # Got value, back to normal.
1899      else
1900	case $ac_arg in
1901	  *=* | --config-cache | -C | -disable-* | --disable-* \
1902	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1903	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1904	  | -with-* | --with-* | -without-* | --without-* | --x)
1905	    case "$ac_configure_args0 " in
1906	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1907	    esac
1908	    ;;
1909	  -* ) ac_must_keep_next=true ;;
1910	esac
1911      fi
1912      as_fn_append ac_configure_args " '$ac_arg'"
1913      ;;
1914    esac
1915  done
1916done
1917{ ac_configure_args0=; unset ac_configure_args0;}
1918{ ac_configure_args1=; unset ac_configure_args1;}
1919
1920# When interrupted or exit'd, cleanup temporary files, and complete
1921# config.log.  We remove comments because anyway the quotes in there
1922# would cause problems or look ugly.
1923# WARNING: Use '\'' to represent an apostrophe within the trap.
1924# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1925trap 'exit_status=$?
1926  # Sanitize IFS.
1927  IFS=" ""	$as_nl"
1928  # Save into config.log some information that might help in debugging.
1929  {
1930    echo
1931
1932    printf "%s\n" "## ---------------- ##
1933## Cache variables. ##
1934## ---------------- ##"
1935    echo
1936    # The following way of writing the cache mishandles newlines in values,
1937(
1938  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1939    eval ac_val=\$$ac_var
1940    case $ac_val in #(
1941    *${as_nl}*)
1942      case $ac_var in #(
1943      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1944printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1945      esac
1946      case $ac_var in #(
1947      _ | IFS | as_nl) ;; #(
1948      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1949      *) { eval $ac_var=; unset $ac_var;} ;;
1950      esac ;;
1951    esac
1952  done
1953  (set) 2>&1 |
1954    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1955    *${as_nl}ac_space=\ *)
1956      sed -n \
1957	"s/'\''/'\''\\\\'\'''\''/g;
1958	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1959      ;; #(
1960    *)
1961      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1962      ;;
1963    esac |
1964    sort
1965)
1966    echo
1967
1968    printf "%s\n" "## ----------------- ##
1969## Output variables. ##
1970## ----------------- ##"
1971    echo
1972    for ac_var in $ac_subst_vars
1973    do
1974      eval ac_val=\$$ac_var
1975      case $ac_val in
1976      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1977      esac
1978      printf "%s\n" "$ac_var='\''$ac_val'\''"
1979    done | sort
1980    echo
1981
1982    if test -n "$ac_subst_files"; then
1983      printf "%s\n" "## ------------------- ##
1984## File substitutions. ##
1985## ------------------- ##"
1986      echo
1987      for ac_var in $ac_subst_files
1988      do
1989	eval ac_val=\$$ac_var
1990	case $ac_val in
1991	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1992	esac
1993	printf "%s\n" "$ac_var='\''$ac_val'\''"
1994      done | sort
1995      echo
1996    fi
1997
1998    if test -s confdefs.h; then
1999      printf "%s\n" "## ----------- ##
2000## confdefs.h. ##
2001## ----------- ##"
2002      echo
2003      cat confdefs.h
2004      echo
2005    fi
2006    test "$ac_signal" != 0 &&
2007      printf "%s\n" "$as_me: caught signal $ac_signal"
2008    printf "%s\n" "$as_me: exit $exit_status"
2009  } >&5
2010  rm -f core *.core core.conftest.* &&
2011    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2012    exit $exit_status
2013' 0
2014for ac_signal in 1 2 13 15; do
2015  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2016done
2017ac_signal=0
2018
2019# confdefs.h avoids OS command line length limits that DEFS can exceed.
2020rm -f -r conftest* confdefs.h
2021
2022printf "%s\n" "/* confdefs.h */" > confdefs.h
2023
2024# Predefined preprocessor variables.
2025
2026printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2027
2028printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2029
2030printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2031
2032printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2033
2034printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2035
2036printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2037
2038
2039# Let the site file select an alternate cache file if it wants to.
2040# Prefer an explicitly selected file to automatically selected ones.
2041if test -n "$CONFIG_SITE"; then
2042  ac_site_files="$CONFIG_SITE"
2043elif test "x$prefix" != xNONE; then
2044  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2045else
2046  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2047fi
2048
2049for ac_site_file in $ac_site_files
2050do
2051  case $ac_site_file in #(
2052  */*) :
2053     ;; #(
2054  *) :
2055    ac_site_file=./$ac_site_file ;;
2056esac
2057  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2058    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2059printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2060    sed 's/^/| /' "$ac_site_file" >&5
2061    . "$ac_site_file" \
2062      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2063printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2064as_fn_error $? "failed to load site script $ac_site_file
2065See 'config.log' for more details" "$LINENO" 5; }
2066  fi
2067done
2068
2069if test -r "$cache_file"; then
2070  # Some versions of bash will fail to source /dev/null (special files
2071  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2072  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2073    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2074printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2075    case $cache_file in
2076      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2077      *)                      . "./$cache_file";;
2078    esac
2079  fi
2080else
2081  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2082printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2083  >$cache_file
2084fi
2085
2086as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2087# Test code for whether the C compiler supports C89 (global declarations)
2088ac_c_conftest_c89_globals='
2089/* Does the compiler advertise C89 conformance?
2090   Do not test the value of __STDC__, because some compilers set it to 0
2091   while being otherwise adequately conformant. */
2092#if !defined __STDC__
2093# error "Compiler does not advertise C89 conformance"
2094#endif
2095
2096#include <stddef.h>
2097#include <stdarg.h>
2098struct stat;
2099/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2100struct buf { int x; };
2101struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2102static char *e (char **p, int i)
2103{
2104  return p[i];
2105}
2106static char *f (char * (*g) (char **, int), char **p, ...)
2107{
2108  char *s;
2109  va_list v;
2110  va_start (v,p);
2111  s = g (p, va_arg (v,int));
2112  va_end (v);
2113  return s;
2114}
2115
2116/* C89 style stringification. */
2117#define noexpand_stringify(a) #a
2118const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2119
2120/* C89 style token pasting.  Exercises some of the corner cases that
2121   e.g. old MSVC gets wrong, but not very hard. */
2122#define noexpand_concat(a,b) a##b
2123#define expand_concat(a,b) noexpand_concat(a,b)
2124extern int vA;
2125extern int vbee;
2126#define aye A
2127#define bee B
2128int *pvA = &expand_concat(v,aye);
2129int *pvbee = &noexpand_concat(v,bee);
2130
2131/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2132   function prototypes and stuff, but not \xHH hex character constants.
2133   These do not provoke an error unfortunately, instead are silently treated
2134   as an "x".  The following induces an error, until -std is added to get
2135   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2136   array size at least.  It is necessary to write \x00 == 0 to get something
2137   that is true only with -std.  */
2138int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2139
2140/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2141   inside strings and character constants.  */
2142#define FOO(x) '\''x'\''
2143int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2144
2145int test (int i, double x);
2146struct s1 {int (*f) (int a);};
2147struct s2 {int (*f) (double a);};
2148int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2149               int, int);'
2150
2151# Test code for whether the C compiler supports C89 (body of main).
2152ac_c_conftest_c89_main='
2153ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2154'
2155
2156# Test code for whether the C compiler supports C99 (global declarations)
2157ac_c_conftest_c99_globals='
2158/* Does the compiler advertise C99 conformance? */
2159#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2160# error "Compiler does not advertise C99 conformance"
2161#endif
2162
2163// See if C++-style comments work.
2164
2165#include <stdbool.h>
2166extern int puts (const char *);
2167extern int printf (const char *, ...);
2168extern int dprintf (int, const char *, ...);
2169extern void *malloc (size_t);
2170extern void free (void *);
2171
2172// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2173// dprintf is used instead of fprintf to avoid needing to declare
2174// FILE and stderr.
2175#define debug(...) dprintf (2, __VA_ARGS__)
2176#define showlist(...) puts (#__VA_ARGS__)
2177#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2178static void
2179test_varargs_macros (void)
2180{
2181  int x = 1234;
2182  int y = 5678;
2183  debug ("Flag");
2184  debug ("X = %d\n", x);
2185  showlist (The first, second, and third items.);
2186  report (x>y, "x is %d but y is %d", x, y);
2187}
2188
2189// Check long long types.
2190#define BIG64 18446744073709551615ull
2191#define BIG32 4294967295ul
2192#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2193#if !BIG_OK
2194  #error "your preprocessor is broken"
2195#endif
2196#if BIG_OK
2197#else
2198  #error "your preprocessor is broken"
2199#endif
2200static long long int bignum = -9223372036854775807LL;
2201static unsigned long long int ubignum = BIG64;
2202
2203struct incomplete_array
2204{
2205  int datasize;
2206  double data[];
2207};
2208
2209struct named_init {
2210  int number;
2211  const wchar_t *name;
2212  double average;
2213};
2214
2215typedef const char *ccp;
2216
2217static inline int
2218test_restrict (ccp restrict text)
2219{
2220  // Iterate through items via the restricted pointer.
2221  // Also check for declarations in for loops.
2222  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2223    continue;
2224  return 0;
2225}
2226
2227// Check varargs and va_copy.
2228static bool
2229test_varargs (const char *format, ...)
2230{
2231  va_list args;
2232  va_start (args, format);
2233  va_list args_copy;
2234  va_copy (args_copy, args);
2235
2236  const char *str = "";
2237  int number = 0;
2238  float fnumber = 0;
2239
2240  while (*format)
2241    {
2242      switch (*format++)
2243	{
2244	case '\''s'\'': // string
2245	  str = va_arg (args_copy, const char *);
2246	  break;
2247	case '\''d'\'': // int
2248	  number = va_arg (args_copy, int);
2249	  break;
2250	case '\''f'\'': // float
2251	  fnumber = va_arg (args_copy, double);
2252	  break;
2253	default:
2254	  break;
2255	}
2256    }
2257  va_end (args_copy);
2258  va_end (args);
2259
2260  return *str && number && fnumber;
2261}
2262'
2263
2264# Test code for whether the C compiler supports C99 (body of main).
2265ac_c_conftest_c99_main='
2266  // Check bool.
2267  _Bool success = false;
2268  success |= (argc != 0);
2269
2270  // Check restrict.
2271  if (test_restrict ("String literal") == 0)
2272    success = true;
2273  char *restrict newvar = "Another string";
2274
2275  // Check varargs.
2276  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2277  test_varargs_macros ();
2278
2279  // Check flexible array members.
2280  struct incomplete_array *ia =
2281    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2282  ia->datasize = 10;
2283  for (int i = 0; i < ia->datasize; ++i)
2284    ia->data[i] = i * 1.234;
2285  // Work around memory leak warnings.
2286  free (ia);
2287
2288  // Check named initializers.
2289  struct named_init ni = {
2290    .number = 34,
2291    .name = L"Test wide string",
2292    .average = 543.34343,
2293  };
2294
2295  ni.number = 58;
2296
2297  int dynamic_array[ni.number];
2298  dynamic_array[0] = argv[0][0];
2299  dynamic_array[ni.number - 1] = 543;
2300
2301  // work around unused variable warnings
2302  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2303	 || dynamic_array[ni.number - 1] != 543);
2304'
2305
2306# Test code for whether the C compiler supports C11 (global declarations)
2307ac_c_conftest_c11_globals='
2308/* Does the compiler advertise C11 conformance? */
2309#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2310# error "Compiler does not advertise C11 conformance"
2311#endif
2312
2313// Check _Alignas.
2314char _Alignas (double) aligned_as_double;
2315char _Alignas (0) no_special_alignment;
2316extern char aligned_as_int;
2317char _Alignas (0) _Alignas (int) aligned_as_int;
2318
2319// Check _Alignof.
2320enum
2321{
2322  int_alignment = _Alignof (int),
2323  int_array_alignment = _Alignof (int[100]),
2324  char_alignment = _Alignof (char)
2325};
2326_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2327
2328// Check _Noreturn.
2329int _Noreturn does_not_return (void) { for (;;) continue; }
2330
2331// Check _Static_assert.
2332struct test_static_assert
2333{
2334  int x;
2335  _Static_assert (sizeof (int) <= sizeof (long int),
2336                  "_Static_assert does not work in struct");
2337  long int y;
2338};
2339
2340// Check UTF-8 literals.
2341#define u8 syntax error!
2342char const utf8_literal[] = u8"happens to be ASCII" "another string";
2343
2344// Check duplicate typedefs.
2345typedef long *long_ptr;
2346typedef long int *long_ptr;
2347typedef long_ptr long_ptr;
2348
2349// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2350struct anonymous
2351{
2352  union {
2353    struct { int i; int j; };
2354    struct { int k; long int l; } w;
2355  };
2356  int m;
2357} v1;
2358'
2359
2360# Test code for whether the C compiler supports C11 (body of main).
2361ac_c_conftest_c11_main='
2362  _Static_assert ((offsetof (struct anonymous, i)
2363		   == offsetof (struct anonymous, w.k)),
2364		  "Anonymous union alignment botch");
2365  v1.i = 2;
2366  v1.w.k = 5;
2367  ok |= v1.i != 5;
2368'
2369
2370# Test code for whether the C compiler supports C11 (complete).
2371ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2372${ac_c_conftest_c99_globals}
2373${ac_c_conftest_c11_globals}
2374
2375int
2376main (int argc, char **argv)
2377{
2378  int ok = 0;
2379  ${ac_c_conftest_c89_main}
2380  ${ac_c_conftest_c99_main}
2381  ${ac_c_conftest_c11_main}
2382  return ok;
2383}
2384"
2385
2386# Test code for whether the C compiler supports C99 (complete).
2387ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2388${ac_c_conftest_c99_globals}
2389
2390int
2391main (int argc, char **argv)
2392{
2393  int ok = 0;
2394  ${ac_c_conftest_c89_main}
2395  ${ac_c_conftest_c99_main}
2396  return ok;
2397}
2398"
2399
2400# Test code for whether the C compiler supports C89 (complete).
2401ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2402
2403int
2404main (int argc, char **argv)
2405{
2406  int ok = 0;
2407  ${ac_c_conftest_c89_main}
2408  return ok;
2409}
2410"
2411
2412as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2413as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2414as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2415as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2416as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2417as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2418as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2419as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2420as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2421as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2422
2423# Auxiliary files required by this configure script.
2424ac_aux_files="config.guess config.sub missing install-sh compile"
2425
2426# Locations in which to look for auxiliary files.
2427ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2428
2429# Search for a directory containing all of the required auxiliary files,
2430# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2431# If we don't find one directory that contains all the files we need,
2432# we report the set of missing files from the *first* directory in
2433# $ac_aux_dir_candidates and give up.
2434ac_missing_aux_files=""
2435ac_first_candidate=:
2436printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438as_found=false
2439for as_dir in $ac_aux_dir_candidates
2440do
2441  IFS=$as_save_IFS
2442  case $as_dir in #(((
2443    '') as_dir=./ ;;
2444    */) ;;
2445    *) as_dir=$as_dir/ ;;
2446  esac
2447  as_found=:
2448
2449  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2450  ac_aux_dir_found=yes
2451  ac_install_sh=
2452  for ac_aux in $ac_aux_files
2453  do
2454    # As a special case, if "install-sh" is required, that requirement
2455    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2456    # and $ac_install_sh is set appropriately for whichever one is found.
2457    if test x"$ac_aux" = x"install-sh"
2458    then
2459      if test -f "${as_dir}install-sh"; then
2460        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2461        ac_install_sh="${as_dir}install-sh -c"
2462      elif test -f "${as_dir}install.sh"; then
2463        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2464        ac_install_sh="${as_dir}install.sh -c"
2465      elif test -f "${as_dir}shtool"; then
2466        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2467        ac_install_sh="${as_dir}shtool install -c"
2468      else
2469        ac_aux_dir_found=no
2470        if $ac_first_candidate; then
2471          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2472        else
2473          break
2474        fi
2475      fi
2476    else
2477      if test -f "${as_dir}${ac_aux}"; then
2478        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2479      else
2480        ac_aux_dir_found=no
2481        if $ac_first_candidate; then
2482          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2483        else
2484          break
2485        fi
2486      fi
2487    fi
2488  done
2489  if test "$ac_aux_dir_found" = yes; then
2490    ac_aux_dir="$as_dir"
2491    break
2492  fi
2493  ac_first_candidate=false
2494
2495  as_found=false
2496done
2497IFS=$as_save_IFS
2498if $as_found
2499then :
2500
2501else case e in #(
2502  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2503esac
2504fi
2505
2506
2507# These three variables are undocumented and unsupported,
2508# and are intended to be withdrawn in a future Autoconf release.
2509# They can cause serious problems if a builder's source tree is in a directory
2510# whose full name contains unusual characters.
2511if test -f "${ac_aux_dir}config.guess"; then
2512  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2513fi
2514if test -f "${ac_aux_dir}config.sub"; then
2515  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2516fi
2517if test -f "$ac_aux_dir/configure"; then
2518  ac_configure="$SHELL ${ac_aux_dir}configure"
2519fi
2520
2521# Check that the precious variables saved in the cache have kept the same
2522# value.
2523ac_cache_corrupted=false
2524for ac_var in $ac_precious_vars; do
2525  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2526  eval ac_new_set=\$ac_env_${ac_var}_set
2527  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2528  eval ac_new_val=\$ac_env_${ac_var}_value
2529  case $ac_old_set,$ac_new_set in
2530    set,)
2531      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2532printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2533      ac_cache_corrupted=: ;;
2534    ,set)
2535      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2536printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2537      ac_cache_corrupted=: ;;
2538    ,);;
2539    *)
2540      if test "x$ac_old_val" != "x$ac_new_val"; then
2541	# differences in whitespace do not lead to failure.
2542	ac_old_val_w=`echo x $ac_old_val`
2543	ac_new_val_w=`echo x $ac_new_val`
2544	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2545	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2546printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2547	  ac_cache_corrupted=:
2548	else
2549	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2550printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2551	  eval $ac_var=\$ac_old_val
2552	fi
2553	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2554printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2555	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2556printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2557      fi;;
2558  esac
2559  # Pass precious variables to config.status.
2560  if test "$ac_new_set" = set; then
2561    case $ac_new_val in
2562    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2563    *) ac_arg=$ac_var=$ac_new_val ;;
2564    esac
2565    case " $ac_configure_args " in
2566      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2567      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2568    esac
2569  fi
2570done
2571if $ac_cache_corrupted; then
2572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2573printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2574  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2575printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2576  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2577	    and start over" "$LINENO" 5
2578fi
2579## -------------------- ##
2580## Main body of script. ##
2581## -------------------- ##
2582
2583ac_ext=c
2584ac_cpp='$CPP $CPPFLAGS'
2585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588
2589
2590
2591ac_config_headers="$ac_config_headers config.h"
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604# Expand $ac_aux_dir to an absolute path.
2605am_aux_dir=`cd "$ac_aux_dir" && pwd`
2606
2607ac_ext=c
2608ac_cpp='$CPP $CPPFLAGS'
2609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611ac_compiler_gnu=$ac_cv_c_compiler_gnu
2612if test -n "$ac_tool_prefix"; then
2613  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2614set dummy ${ac_tool_prefix}gcc; ac_word=$2
2615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616printf %s "checking for $ac_word... " >&6; }
2617if test ${ac_cv_prog_CC+y}
2618then :
2619  printf %s "(cached) " >&6
2620else case e in #(
2621  e) if test -n "$CC"; then
2622  ac_cv_prog_CC="$CC" # Let the user override the test.
2623else
2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625for as_dir in $PATH
2626do
2627  IFS=$as_save_IFS
2628  case $as_dir in #(((
2629    '') as_dir=./ ;;
2630    */) ;;
2631    *) as_dir=$as_dir/ ;;
2632  esac
2633    for ac_exec_ext in '' $ac_executable_extensions; do
2634  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2635    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2636    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2637    break 2
2638  fi
2639done
2640  done
2641IFS=$as_save_IFS
2642
2643fi ;;
2644esac
2645fi
2646CC=$ac_cv_prog_CC
2647if test -n "$CC"; then
2648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2649printf "%s\n" "$CC" >&6; }
2650else
2651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652printf "%s\n" "no" >&6; }
2653fi
2654
2655
2656fi
2657if test -z "$ac_cv_prog_CC"; then
2658  ac_ct_CC=$CC
2659  # Extract the first word of "gcc", so it can be a program name with args.
2660set dummy gcc; ac_word=$2
2661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662printf %s "checking for $ac_word... " >&6; }
2663if test ${ac_cv_prog_ac_ct_CC+y}
2664then :
2665  printf %s "(cached) " >&6
2666else case e in #(
2667  e) if test -n "$ac_ct_CC"; then
2668  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2669else
2670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671for as_dir in $PATH
2672do
2673  IFS=$as_save_IFS
2674  case $as_dir in #(((
2675    '') as_dir=./ ;;
2676    */) ;;
2677    *) as_dir=$as_dir/ ;;
2678  esac
2679    for ac_exec_ext in '' $ac_executable_extensions; do
2680  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2681    ac_cv_prog_ac_ct_CC="gcc"
2682    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2683    break 2
2684  fi
2685done
2686  done
2687IFS=$as_save_IFS
2688
2689fi ;;
2690esac
2691fi
2692ac_ct_CC=$ac_cv_prog_ac_ct_CC
2693if test -n "$ac_ct_CC"; then
2694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2695printf "%s\n" "$ac_ct_CC" >&6; }
2696else
2697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698printf "%s\n" "no" >&6; }
2699fi
2700
2701  if test "x$ac_ct_CC" = x; then
2702    CC=""
2703  else
2704    case $cross_compiling:$ac_tool_warned in
2705yes:)
2706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2707printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2708ac_tool_warned=yes ;;
2709esac
2710    CC=$ac_ct_CC
2711  fi
2712else
2713  CC="$ac_cv_prog_CC"
2714fi
2715
2716if test -z "$CC"; then
2717          if test -n "$ac_tool_prefix"; then
2718    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2719set dummy ${ac_tool_prefix}cc; ac_word=$2
2720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721printf %s "checking for $ac_word... " >&6; }
2722if test ${ac_cv_prog_CC+y}
2723then :
2724  printf %s "(cached) " >&6
2725else case e in #(
2726  e) if test -n "$CC"; then
2727  ac_cv_prog_CC="$CC" # Let the user override the test.
2728else
2729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730for as_dir in $PATH
2731do
2732  IFS=$as_save_IFS
2733  case $as_dir in #(((
2734    '') as_dir=./ ;;
2735    */) ;;
2736    *) as_dir=$as_dir/ ;;
2737  esac
2738    for ac_exec_ext in '' $ac_executable_extensions; do
2739  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2740    ac_cv_prog_CC="${ac_tool_prefix}cc"
2741    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2742    break 2
2743  fi
2744done
2745  done
2746IFS=$as_save_IFS
2747
2748fi ;;
2749esac
2750fi
2751CC=$ac_cv_prog_CC
2752if test -n "$CC"; then
2753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2754printf "%s\n" "$CC" >&6; }
2755else
2756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757printf "%s\n" "no" >&6; }
2758fi
2759
2760
2761  fi
2762fi
2763if test -z "$CC"; then
2764  # Extract the first word of "cc", so it can be a program name with args.
2765set dummy cc; ac_word=$2
2766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767printf %s "checking for $ac_word... " >&6; }
2768if test ${ac_cv_prog_CC+y}
2769then :
2770  printf %s "(cached) " >&6
2771else case e in #(
2772  e) if test -n "$CC"; then
2773  ac_cv_prog_CC="$CC" # Let the user override the test.
2774else
2775  ac_prog_rejected=no
2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777for as_dir in $PATH
2778do
2779  IFS=$as_save_IFS
2780  case $as_dir in #(((
2781    '') as_dir=./ ;;
2782    */) ;;
2783    *) as_dir=$as_dir/ ;;
2784  esac
2785    for ac_exec_ext in '' $ac_executable_extensions; do
2786  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2787    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2788       ac_prog_rejected=yes
2789       continue
2790     fi
2791    ac_cv_prog_CC="cc"
2792    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2793    break 2
2794  fi
2795done
2796  done
2797IFS=$as_save_IFS
2798
2799if test $ac_prog_rejected = yes; then
2800  # We found a bogon in the path, so make sure we never use it.
2801  set dummy $ac_cv_prog_CC
2802  shift
2803  if test $# != 0; then
2804    # We chose a different compiler from the bogus one.
2805    # However, it has the same basename, so the bogon will be chosen
2806    # first if we set CC to just the basename; use the full file name.
2807    shift
2808    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2809  fi
2810fi
2811fi ;;
2812esac
2813fi
2814CC=$ac_cv_prog_CC
2815if test -n "$CC"; then
2816  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2817printf "%s\n" "$CC" >&6; }
2818else
2819  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820printf "%s\n" "no" >&6; }
2821fi
2822
2823
2824fi
2825if test -z "$CC"; then
2826  if test -n "$ac_tool_prefix"; then
2827  for ac_prog in cl.exe
2828  do
2829    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2830set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832printf %s "checking for $ac_word... " >&6; }
2833if test ${ac_cv_prog_CC+y}
2834then :
2835  printf %s "(cached) " >&6
2836else case e in #(
2837  e) if test -n "$CC"; then
2838  ac_cv_prog_CC="$CC" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843  IFS=$as_save_IFS
2844  case $as_dir in #(((
2845    '') as_dir=./ ;;
2846    */) ;;
2847    *) as_dir=$as_dir/ ;;
2848  esac
2849    for ac_exec_ext in '' $ac_executable_extensions; do
2850  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2851    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2852    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2853    break 2
2854  fi
2855done
2856  done
2857IFS=$as_save_IFS
2858
2859fi ;;
2860esac
2861fi
2862CC=$ac_cv_prog_CC
2863if test -n "$CC"; then
2864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865printf "%s\n" "$CC" >&6; }
2866else
2867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868printf "%s\n" "no" >&6; }
2869fi
2870
2871
2872    test -n "$CC" && break
2873  done
2874fi
2875if test -z "$CC"; then
2876  ac_ct_CC=$CC
2877  for ac_prog in cl.exe
2878do
2879  # Extract the first word of "$ac_prog", so it can be a program name with args.
2880set dummy $ac_prog; ac_word=$2
2881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882printf %s "checking for $ac_word... " >&6; }
2883if test ${ac_cv_prog_ac_ct_CC+y}
2884then :
2885  printf %s "(cached) " >&6
2886else case e in #(
2887  e) if test -n "$ac_ct_CC"; then
2888  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2889else
2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH
2892do
2893  IFS=$as_save_IFS
2894  case $as_dir in #(((
2895    '') as_dir=./ ;;
2896    */) ;;
2897    *) as_dir=$as_dir/ ;;
2898  esac
2899    for ac_exec_ext in '' $ac_executable_extensions; do
2900  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2901    ac_cv_prog_ac_ct_CC="$ac_prog"
2902    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2903    break 2
2904  fi
2905done
2906  done
2907IFS=$as_save_IFS
2908
2909fi ;;
2910esac
2911fi
2912ac_ct_CC=$ac_cv_prog_ac_ct_CC
2913if test -n "$ac_ct_CC"; then
2914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2915printf "%s\n" "$ac_ct_CC" >&6; }
2916else
2917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918printf "%s\n" "no" >&6; }
2919fi
2920
2921
2922  test -n "$ac_ct_CC" && break
2923done
2924
2925  if test "x$ac_ct_CC" = x; then
2926    CC=""
2927  else
2928    case $cross_compiling:$ac_tool_warned in
2929yes:)
2930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932ac_tool_warned=yes ;;
2933esac
2934    CC=$ac_ct_CC
2935  fi
2936fi
2937
2938fi
2939if test -z "$CC"; then
2940  if test -n "$ac_tool_prefix"; then
2941  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2942set dummy ${ac_tool_prefix}clang; ac_word=$2
2943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944printf %s "checking for $ac_word... " >&6; }
2945if test ${ac_cv_prog_CC+y}
2946then :
2947  printf %s "(cached) " >&6
2948else case e in #(
2949  e) if test -n "$CC"; then
2950  ac_cv_prog_CC="$CC" # Let the user override the test.
2951else
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955  IFS=$as_save_IFS
2956  case $as_dir in #(((
2957    '') as_dir=./ ;;
2958    */) ;;
2959    *) as_dir=$as_dir/ ;;
2960  esac
2961    for ac_exec_ext in '' $ac_executable_extensions; do
2962  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2963    ac_cv_prog_CC="${ac_tool_prefix}clang"
2964    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2965    break 2
2966  fi
2967done
2968  done
2969IFS=$as_save_IFS
2970
2971fi ;;
2972esac
2973fi
2974CC=$ac_cv_prog_CC
2975if test -n "$CC"; then
2976  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2977printf "%s\n" "$CC" >&6; }
2978else
2979  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980printf "%s\n" "no" >&6; }
2981fi
2982
2983
2984fi
2985if test -z "$ac_cv_prog_CC"; then
2986  ac_ct_CC=$CC
2987  # Extract the first word of "clang", so it can be a program name with args.
2988set dummy clang; ac_word=$2
2989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990printf %s "checking for $ac_word... " >&6; }
2991if test ${ac_cv_prog_ac_ct_CC+y}
2992then :
2993  printf %s "(cached) " >&6
2994else case e in #(
2995  e) if test -n "$ac_ct_CC"; then
2996  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2997else
2998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999for as_dir in $PATH
3000do
3001  IFS=$as_save_IFS
3002  case $as_dir in #(((
3003    '') as_dir=./ ;;
3004    */) ;;
3005    *) as_dir=$as_dir/ ;;
3006  esac
3007    for ac_exec_ext in '' $ac_executable_extensions; do
3008  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3009    ac_cv_prog_ac_ct_CC="clang"
3010    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3011    break 2
3012  fi
3013done
3014  done
3015IFS=$as_save_IFS
3016
3017fi ;;
3018esac
3019fi
3020ac_ct_CC=$ac_cv_prog_ac_ct_CC
3021if test -n "$ac_ct_CC"; then
3022  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3023printf "%s\n" "$ac_ct_CC" >&6; }
3024else
3025  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026printf "%s\n" "no" >&6; }
3027fi
3028
3029  if test "x$ac_ct_CC" = x; then
3030    CC=""
3031  else
3032    case $cross_compiling:$ac_tool_warned in
3033yes:)
3034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3036ac_tool_warned=yes ;;
3037esac
3038    CC=$ac_ct_CC
3039  fi
3040else
3041  CC="$ac_cv_prog_CC"
3042fi
3043
3044fi
3045
3046
3047test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3048printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3049as_fn_error $? "no acceptable C compiler found in \$PATH
3050See 'config.log' for more details" "$LINENO" 5; }
3051
3052# Provide some information about the compiler.
3053printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3054set X $ac_compile
3055ac_compiler=$2
3056for ac_option in --version -v -V -qversion -version; do
3057  { { ac_try="$ac_compiler $ac_option >&5"
3058case "(($ac_try" in
3059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060  *) ac_try_echo=$ac_try;;
3061esac
3062eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3063printf "%s\n" "$ac_try_echo"; } >&5
3064  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3065  ac_status=$?
3066  if test -s conftest.err; then
3067    sed '10a\
3068... rest of stderr output deleted ...
3069         10q' conftest.err >conftest.er1
3070    cat conftest.er1 >&5
3071  fi
3072  rm -f conftest.er1 conftest.err
3073  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3074  test $ac_status = 0; }
3075done
3076
3077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078/* end confdefs.h.  */
3079
3080int
3081main (void)
3082{
3083
3084  ;
3085  return 0;
3086}
3087_ACEOF
3088ac_clean_files_save=$ac_clean_files
3089ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3090# Try to create an executable without -o first, disregard a.out.
3091# It will help us diagnose broken compilers, and finding out an intuition
3092# of exeext.
3093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3094printf %s "checking whether the C compiler works... " >&6; }
3095ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3096
3097# The possible output files:
3098ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3099
3100ac_rmfiles=
3101for ac_file in $ac_files
3102do
3103  case $ac_file in
3104    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3105    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3106  esac
3107done
3108rm -f $ac_rmfiles
3109
3110if { { ac_try="$ac_link_default"
3111case "(($ac_try" in
3112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113  *) ac_try_echo=$ac_try;;
3114esac
3115eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116printf "%s\n" "$ac_try_echo"; } >&5
3117  (eval "$ac_link_default") 2>&5
3118  ac_status=$?
3119  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120  test $ac_status = 0; }
3121then :
3122  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3123# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3124# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3125# so that the user can short-circuit this test for compilers unknown to
3126# Autoconf.
3127for ac_file in $ac_files ''
3128do
3129  test -f "$ac_file" || continue
3130  case $ac_file in
3131    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3132	;;
3133    [ab].out )
3134	# We found the default executable, but exeext='' is most
3135	# certainly right.
3136	break;;
3137    *.* )
3138	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3139	then :; else
3140	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3141	fi
3142	# We set ac_cv_exeext here because the later test for it is not
3143	# safe: cross compilers may not add the suffix if given an '-o'
3144	# argument, so we may need to know it at that point already.
3145	# Even if this section looks crufty: it has the advantage of
3146	# actually working.
3147	break;;
3148    * )
3149	break;;
3150  esac
3151done
3152test "$ac_cv_exeext" = no && ac_cv_exeext=
3153
3154else case e in #(
3155  e) ac_file='' ;;
3156esac
3157fi
3158if test -z "$ac_file"
3159then :
3160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161printf "%s\n" "no" >&6; }
3162printf "%s\n" "$as_me: failed program was:" >&5
3163sed 's/^/| /' conftest.$ac_ext >&5
3164
3165{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3166printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3167as_fn_error 77 "C compiler cannot create executables
3168See 'config.log' for more details" "$LINENO" 5; }
3169else case e in #(
3170  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3171printf "%s\n" "yes" >&6; } ;;
3172esac
3173fi
3174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3175printf %s "checking for C compiler default output file name... " >&6; }
3176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3177printf "%s\n" "$ac_file" >&6; }
3178ac_exeext=$ac_cv_exeext
3179
3180rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3181ac_clean_files=$ac_clean_files_save
3182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3183printf %s "checking for suffix of executables... " >&6; }
3184if { { ac_try="$ac_link"
3185case "(($ac_try" in
3186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187  *) ac_try_echo=$ac_try;;
3188esac
3189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190printf "%s\n" "$ac_try_echo"; } >&5
3191  (eval "$ac_link") 2>&5
3192  ac_status=$?
3193  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194  test $ac_status = 0; }
3195then :
3196  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3197# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3198# work properly (i.e., refer to 'conftest.exe'), while it won't with
3199# 'rm'.
3200for ac_file in conftest.exe conftest conftest.*; do
3201  test -f "$ac_file" || continue
3202  case $ac_file in
3203    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3204    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3205	  break;;
3206    * ) break;;
3207  esac
3208done
3209else case e in #(
3210  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3211printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3212as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3213See 'config.log' for more details" "$LINENO" 5; } ;;
3214esac
3215fi
3216rm -f conftest conftest$ac_cv_exeext
3217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3218printf "%s\n" "$ac_cv_exeext" >&6; }
3219
3220rm -f conftest.$ac_ext
3221EXEEXT=$ac_cv_exeext
3222ac_exeext=$EXEEXT
3223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224/* end confdefs.h.  */
3225#include <stdio.h>
3226int
3227main (void)
3228{
3229FILE *f = fopen ("conftest.out", "w");
3230 if (!f)
3231  return 1;
3232 return ferror (f) || fclose (f) != 0;
3233
3234  ;
3235  return 0;
3236}
3237_ACEOF
3238ac_clean_files="$ac_clean_files conftest.out"
3239# Check that the compiler produces executables we can run.  If not, either
3240# the compiler is broken, or we cross compile.
3241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3242printf %s "checking whether we are cross compiling... " >&6; }
3243if test "$cross_compiling" != yes; then
3244  { { ac_try="$ac_link"
3245case "(($ac_try" in
3246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247  *) ac_try_echo=$ac_try;;
3248esac
3249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250printf "%s\n" "$ac_try_echo"; } >&5
3251  (eval "$ac_link") 2>&5
3252  ac_status=$?
3253  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254  test $ac_status = 0; }
3255  if { ac_try='./conftest$ac_cv_exeext'
3256  { { case "(($ac_try" in
3257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258  *) ac_try_echo=$ac_try;;
3259esac
3260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261printf "%s\n" "$ac_try_echo"; } >&5
3262  (eval "$ac_try") 2>&5
3263  ac_status=$?
3264  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265  test $ac_status = 0; }; }; then
3266    cross_compiling=no
3267  else
3268    if test "$cross_compiling" = maybe; then
3269	cross_compiling=yes
3270    else
3271	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3272printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3273as_fn_error 77 "cannot run C compiled programs.
3274If you meant to cross compile, use '--host'.
3275See 'config.log' for more details" "$LINENO" 5; }
3276    fi
3277  fi
3278fi
3279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3280printf "%s\n" "$cross_compiling" >&6; }
3281
3282rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3283  conftest.o conftest.obj conftest.out
3284ac_clean_files=$ac_clean_files_save
3285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3286printf %s "checking for suffix of object files... " >&6; }
3287if test ${ac_cv_objext+y}
3288then :
3289  printf %s "(cached) " >&6
3290else case e in #(
3291  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292/* end confdefs.h.  */
3293
3294int
3295main (void)
3296{
3297
3298  ;
3299  return 0;
3300}
3301_ACEOF
3302rm -f conftest.o conftest.obj
3303if { { ac_try="$ac_compile"
3304case "(($ac_try" in
3305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306  *) ac_try_echo=$ac_try;;
3307esac
3308eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309printf "%s\n" "$ac_try_echo"; } >&5
3310  (eval "$ac_compile") 2>&5
3311  ac_status=$?
3312  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3313  test $ac_status = 0; }
3314then :
3315  for ac_file in conftest.o conftest.obj conftest.*; do
3316  test -f "$ac_file" || continue;
3317  case $ac_file in
3318    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3319    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3320       break;;
3321  esac
3322done
3323else case e in #(
3324  e) printf "%s\n" "$as_me: failed program was:" >&5
3325sed 's/^/| /' conftest.$ac_ext >&5
3326
3327{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3328printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3329as_fn_error $? "cannot compute suffix of object files: cannot compile
3330See 'config.log' for more details" "$LINENO" 5; } ;;
3331esac
3332fi
3333rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3334esac
3335fi
3336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3337printf "%s\n" "$ac_cv_objext" >&6; }
3338OBJEXT=$ac_cv_objext
3339ac_objext=$OBJEXT
3340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3341printf %s "checking whether the compiler supports GNU C... " >&6; }
3342if test ${ac_cv_c_compiler_gnu+y}
3343then :
3344  printf %s "(cached) " >&6
3345else case e in #(
3346  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347/* end confdefs.h.  */
3348
3349int
3350main (void)
3351{
3352#ifndef __GNUC__
3353       choke me
3354#endif
3355
3356  ;
3357  return 0;
3358}
3359_ACEOF
3360if ac_fn_c_try_compile "$LINENO"
3361then :
3362  ac_compiler_gnu=yes
3363else case e in #(
3364  e) ac_compiler_gnu=no ;;
3365esac
3366fi
3367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3368ac_cv_c_compiler_gnu=$ac_compiler_gnu
3369 ;;
3370esac
3371fi
3372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3373printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3374ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375
3376if test $ac_compiler_gnu = yes; then
3377  GCC=yes
3378else
3379  GCC=
3380fi
3381ac_test_CFLAGS=${CFLAGS+y}
3382ac_save_CFLAGS=$CFLAGS
3383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3384printf %s "checking whether $CC accepts -g... " >&6; }
3385if test ${ac_cv_prog_cc_g+y}
3386then :
3387  printf %s "(cached) " >&6
3388else case e in #(
3389  e) ac_save_c_werror_flag=$ac_c_werror_flag
3390   ac_c_werror_flag=yes
3391   ac_cv_prog_cc_g=no
3392   CFLAGS="-g"
3393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394/* end confdefs.h.  */
3395
3396int
3397main (void)
3398{
3399
3400  ;
3401  return 0;
3402}
3403_ACEOF
3404if ac_fn_c_try_compile "$LINENO"
3405then :
3406  ac_cv_prog_cc_g=yes
3407else case e in #(
3408  e) CFLAGS=""
3409      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410/* end confdefs.h.  */
3411
3412int
3413main (void)
3414{
3415
3416  ;
3417  return 0;
3418}
3419_ACEOF
3420if ac_fn_c_try_compile "$LINENO"
3421then :
3422
3423else case e in #(
3424  e) ac_c_werror_flag=$ac_save_c_werror_flag
3425	 CFLAGS="-g"
3426	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427/* end confdefs.h.  */
3428
3429int
3430main (void)
3431{
3432
3433  ;
3434  return 0;
3435}
3436_ACEOF
3437if ac_fn_c_try_compile "$LINENO"
3438then :
3439  ac_cv_prog_cc_g=yes
3440fi
3441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3442esac
3443fi
3444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3445esac
3446fi
3447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3448   ac_c_werror_flag=$ac_save_c_werror_flag ;;
3449esac
3450fi
3451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3452printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3453if test $ac_test_CFLAGS; then
3454  CFLAGS=$ac_save_CFLAGS
3455elif test $ac_cv_prog_cc_g = yes; then
3456  if test "$GCC" = yes; then
3457    CFLAGS="-g -O2"
3458  else
3459    CFLAGS="-g"
3460  fi
3461else
3462  if test "$GCC" = yes; then
3463    CFLAGS="-O2"
3464  else
3465    CFLAGS=
3466  fi
3467fi
3468ac_prog_cc_stdc=no
3469if test x$ac_prog_cc_stdc = xno
3470then :
3471  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3472printf %s "checking for $CC option to enable C11 features... " >&6; }
3473if test ${ac_cv_prog_cc_c11+y}
3474then :
3475  printf %s "(cached) " >&6
3476else case e in #(
3477  e) ac_cv_prog_cc_c11=no
3478ac_save_CC=$CC
3479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480/* end confdefs.h.  */
3481$ac_c_conftest_c11_program
3482_ACEOF
3483for ac_arg in '' -std=gnu11
3484do
3485  CC="$ac_save_CC $ac_arg"
3486  if ac_fn_c_try_compile "$LINENO"
3487then :
3488  ac_cv_prog_cc_c11=$ac_arg
3489fi
3490rm -f core conftest.err conftest.$ac_objext conftest.beam
3491  test "x$ac_cv_prog_cc_c11" != "xno" && break
3492done
3493rm -f conftest.$ac_ext
3494CC=$ac_save_CC ;;
3495esac
3496fi
3497
3498if test "x$ac_cv_prog_cc_c11" = xno
3499then :
3500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3501printf "%s\n" "unsupported" >&6; }
3502else case e in #(
3503  e) if test "x$ac_cv_prog_cc_c11" = x
3504then :
3505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3506printf "%s\n" "none needed" >&6; }
3507else case e in #(
3508  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3509printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3510     CC="$CC $ac_cv_prog_cc_c11" ;;
3511esac
3512fi
3513  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3514  ac_prog_cc_stdc=c11 ;;
3515esac
3516fi
3517fi
3518if test x$ac_prog_cc_stdc = xno
3519then :
3520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3521printf %s "checking for $CC option to enable C99 features... " >&6; }
3522if test ${ac_cv_prog_cc_c99+y}
3523then :
3524  printf %s "(cached) " >&6
3525else case e in #(
3526  e) ac_cv_prog_cc_c99=no
3527ac_save_CC=$CC
3528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529/* end confdefs.h.  */
3530$ac_c_conftest_c99_program
3531_ACEOF
3532for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3533do
3534  CC="$ac_save_CC $ac_arg"
3535  if ac_fn_c_try_compile "$LINENO"
3536then :
3537  ac_cv_prog_cc_c99=$ac_arg
3538fi
3539rm -f core conftest.err conftest.$ac_objext conftest.beam
3540  test "x$ac_cv_prog_cc_c99" != "xno" && break
3541done
3542rm -f conftest.$ac_ext
3543CC=$ac_save_CC ;;
3544esac
3545fi
3546
3547if test "x$ac_cv_prog_cc_c99" = xno
3548then :
3549  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3550printf "%s\n" "unsupported" >&6; }
3551else case e in #(
3552  e) if test "x$ac_cv_prog_cc_c99" = x
3553then :
3554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3555printf "%s\n" "none needed" >&6; }
3556else case e in #(
3557  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3558printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3559     CC="$CC $ac_cv_prog_cc_c99" ;;
3560esac
3561fi
3562  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3563  ac_prog_cc_stdc=c99 ;;
3564esac
3565fi
3566fi
3567if test x$ac_prog_cc_stdc = xno
3568then :
3569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3570printf %s "checking for $CC option to enable C89 features... " >&6; }
3571if test ${ac_cv_prog_cc_c89+y}
3572then :
3573  printf %s "(cached) " >&6
3574else case e in #(
3575  e) ac_cv_prog_cc_c89=no
3576ac_save_CC=$CC
3577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578/* end confdefs.h.  */
3579$ac_c_conftest_c89_program
3580_ACEOF
3581for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3582do
3583  CC="$ac_save_CC $ac_arg"
3584  if ac_fn_c_try_compile "$LINENO"
3585then :
3586  ac_cv_prog_cc_c89=$ac_arg
3587fi
3588rm -f core conftest.err conftest.$ac_objext conftest.beam
3589  test "x$ac_cv_prog_cc_c89" != "xno" && break
3590done
3591rm -f conftest.$ac_ext
3592CC=$ac_save_CC ;;
3593esac
3594fi
3595
3596if test "x$ac_cv_prog_cc_c89" = xno
3597then :
3598  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3599printf "%s\n" "unsupported" >&6; }
3600else case e in #(
3601  e) if test "x$ac_cv_prog_cc_c89" = x
3602then :
3603  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3604printf "%s\n" "none needed" >&6; }
3605else case e in #(
3606  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3607printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3608     CC="$CC $ac_cv_prog_cc_c89" ;;
3609esac
3610fi
3611  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3612  ac_prog_cc_stdc=c89 ;;
3613esac
3614fi
3615fi
3616
3617ac_ext=c
3618ac_cpp='$CPP $CPPFLAGS'
3619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622
3623
3624  ac_ext=c
3625ac_cpp='$CPP $CPPFLAGS'
3626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3630printf %s "checking whether $CC understands -c and -o together... " >&6; }
3631if test ${am_cv_prog_cc_c_o+y}
3632then :
3633  printf %s "(cached) " >&6
3634else case e in #(
3635  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636/* end confdefs.h.  */
3637
3638int
3639main (void)
3640{
3641
3642  ;
3643  return 0;
3644}
3645_ACEOF
3646  # Make sure it works both with $CC and with simple cc.
3647  # Following AC_PROG_CC_C_O, we do the test twice because some
3648  # compilers refuse to overwrite an existing .o file with -o,
3649  # though they will create one.
3650  am_cv_prog_cc_c_o=yes
3651  for am_i in 1 2; do
3652    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3653   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3654   ac_status=$?
3655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656   (exit $ac_status); } \
3657         && test -f conftest2.$ac_objext; then
3658      : OK
3659    else
3660      am_cv_prog_cc_c_o=no
3661      break
3662    fi
3663  done
3664  rm -f core conftest*
3665  unset am_i ;;
3666esac
3667fi
3668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3669printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3670if test "$am_cv_prog_cc_c_o" != yes; then
3671   # Losing compiler, so override with the script.
3672   # FIXME: It is wrong to rewrite CC.
3673   # But if we don't then we get into trouble of one sort or another.
3674   # A longer-term fix would be to have automake use am__CC in this case,
3675   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3676   CC="$am_aux_dir/compile $CC"
3677fi
3678ac_ext=c
3679ac_cpp='$CPP $CPPFLAGS'
3680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683
3684
3685
3686ac_header= ac_cache=
3687for ac_item in $ac_header_c_list
3688do
3689  if test $ac_cache; then
3690    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3691    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3692      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3693    fi
3694    ac_header= ac_cache=
3695  elif test $ac_header; then
3696    ac_cache=$ac_item
3697  else
3698    ac_header=$ac_item
3699  fi
3700done
3701
3702
3703
3704
3705
3706
3707
3708
3709if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3710then :
3711
3712printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3713
3714fi
3715
3716
3717
3718
3719
3720
3721  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3722printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3723if test ${ac_cv_safe_to_define___extensions__+y}
3724then :
3725  printf %s "(cached) " >&6
3726else case e in #(
3727  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728/* end confdefs.h.  */
3729
3730#         define __EXTENSIONS__ 1
3731          $ac_includes_default
3732int
3733main (void)
3734{
3735
3736  ;
3737  return 0;
3738}
3739_ACEOF
3740if ac_fn_c_try_compile "$LINENO"
3741then :
3742  ac_cv_safe_to_define___extensions__=yes
3743else case e in #(
3744  e) ac_cv_safe_to_define___extensions__=no ;;
3745esac
3746fi
3747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3748esac
3749fi
3750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3751printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3752
3753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3754printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3755if test ${ac_cv_should_define__xopen_source+y}
3756then :
3757  printf %s "(cached) " >&6
3758else case e in #(
3759  e) ac_cv_should_define__xopen_source=no
3760    if test $ac_cv_header_wchar_h = yes
3761then :
3762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763/* end confdefs.h.  */
3764
3765          #include <wchar.h>
3766          mbstate_t x;
3767int
3768main (void)
3769{
3770
3771  ;
3772  return 0;
3773}
3774_ACEOF
3775if ac_fn_c_try_compile "$LINENO"
3776then :
3777
3778else case e in #(
3779  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780/* end confdefs.h.  */
3781
3782            #define _XOPEN_SOURCE 500
3783            #include <wchar.h>
3784            mbstate_t x;
3785int
3786main (void)
3787{
3788
3789  ;
3790  return 0;
3791}
3792_ACEOF
3793if ac_fn_c_try_compile "$LINENO"
3794then :
3795  ac_cv_should_define__xopen_source=yes
3796fi
3797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3798esac
3799fi
3800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3801fi ;;
3802esac
3803fi
3804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3805printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3806
3807  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3808
3809  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3810
3811  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3812
3813  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3814
3815  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3816
3817  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3818
3819  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3820
3821  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3822
3823  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3824
3825  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3826
3827  printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3828
3829  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3830
3831  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3832
3833  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3834
3835  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3836
3837  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3838
3839  if test $ac_cv_header_minix_config_h = yes
3840then :
3841  MINIX=yes
3842    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3843
3844    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3845
3846    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3847
3848else case e in #(
3849  e) MINIX= ;;
3850esac
3851fi
3852  if test $ac_cv_safe_to_define___extensions__ = yes
3853then :
3854  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3855
3856fi
3857  if test $ac_cv_should_define__xopen_source = yes
3858then :
3859  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3860
3861fi
3862
3863
3864# Initialize Automake
3865am__api_version='1.16'
3866
3867
3868  # Find a good install program.  We prefer a C program (faster),
3869# so one script is as good as another.  But avoid the broken or
3870# incompatible versions:
3871# SysV /etc/install, /usr/sbin/install
3872# SunOS /usr/etc/install
3873# IRIX /sbin/install
3874# AIX /bin/install
3875# AmigaOS /C/install, which installs bootblocks on floppy discs
3876# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3877# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3878# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3879# OS/2's system install, which has a completely different semantic
3880# ./install, which can be erroneously created by make from ./install.sh.
3881# Reject install programs that cannot install multiple files.
3882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3883printf %s "checking for a BSD-compatible install... " >&6; }
3884if test -z "$INSTALL"; then
3885if test ${ac_cv_path_install+y}
3886then :
3887  printf %s "(cached) " >&6
3888else case e in #(
3889  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890for as_dir in $PATH
3891do
3892  IFS=$as_save_IFS
3893  case $as_dir in #(((
3894    '') as_dir=./ ;;
3895    */) ;;
3896    *) as_dir=$as_dir/ ;;
3897  esac
3898    # Account for fact that we put trailing slashes in our PATH walk.
3899case $as_dir in #((
3900  ./ | /[cC]/* | \
3901  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3902  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3903  /usr/ucb/* ) ;;
3904  *)
3905    # OSF1 and SCO ODT 3.0 have their own names for install.
3906    # Don't use installbsd from OSF since it installs stuff as root
3907    # by default.
3908    for ac_prog in ginstall scoinst install; do
3909      for ac_exec_ext in '' $ac_executable_extensions; do
3910	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3911	  if test $ac_prog = install &&
3912	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3913	    # AIX install.  It has an incompatible calling convention.
3914	    :
3915	  elif test $ac_prog = install &&
3916	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3917	    # program-specific install script used by HP pwplus--don't use.
3918	    :
3919	  else
3920	    rm -rf conftest.one conftest.two conftest.dir
3921	    echo one > conftest.one
3922	    echo two > conftest.two
3923	    mkdir conftest.dir
3924	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3925	      test -s conftest.one && test -s conftest.two &&
3926	      test -s conftest.dir/conftest.one &&
3927	      test -s conftest.dir/conftest.two
3928	    then
3929	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3930	      break 3
3931	    fi
3932	  fi
3933	fi
3934      done
3935    done
3936    ;;
3937esac
3938
3939  done
3940IFS=$as_save_IFS
3941
3942rm -rf conftest.one conftest.two conftest.dir
3943 ;;
3944esac
3945fi
3946  if test ${ac_cv_path_install+y}; then
3947    INSTALL=$ac_cv_path_install
3948  else
3949    # As a last resort, use the slow shell script.  Don't cache a
3950    # value for INSTALL within a source directory, because that will
3951    # break other packages using the cache if that directory is
3952    # removed, or if the value is a relative name.
3953    INSTALL=$ac_install_sh
3954  fi
3955fi
3956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3957printf "%s\n" "$INSTALL" >&6; }
3958
3959# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3960# It thinks the first close brace ends the variable substitution.
3961test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3962
3963test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3964
3965test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3966
3967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3968printf %s "checking whether build environment is sane... " >&6; }
3969# Reject unsafe characters in $srcdir or the absolute working directory
3970# name.  Accept space and tab only in the latter.
3971am_lf='
3972'
3973case `pwd` in
3974  *[\\\"\#\$\&\'\`$am_lf]*)
3975    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3976esac
3977case $srcdir in
3978  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3979    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3980esac
3981
3982# Do 'set' in a subshell so we don't clobber the current shell's
3983# arguments.  Must try -L first in case configure is actually a
3984# symlink; some systems play weird games with the mod time of symlinks
3985# (eg FreeBSD returns the mod time of the symlink's containing
3986# directory).
3987if (
3988   am_has_slept=no
3989   for am_try in 1 2; do
3990     echo "timestamp, slept: $am_has_slept" > conftest.file
3991     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3992     if test "$*" = "X"; then
3993	# -L didn't work.
3994	set X `ls -t "$srcdir/configure" conftest.file`
3995     fi
3996     if test "$*" != "X $srcdir/configure conftest.file" \
3997	&& test "$*" != "X conftest.file $srcdir/configure"; then
3998
3999	# If neither matched, then we have a broken ls.  This can happen
4000	# if, for instance, CONFIG_SHELL is bash and it inherits a
4001	# broken ls alias from the environment.  This has actually
4002	# happened.  Such a system could not be considered "sane".
4003	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4004  alias in your environment" "$LINENO" 5
4005     fi
4006     if test "$2" = conftest.file || test $am_try -eq 2; then
4007       break
4008     fi
4009     # Just in case.
4010     sleep 1
4011     am_has_slept=yes
4012   done
4013   test "$2" = conftest.file
4014   )
4015then
4016   # Ok.
4017   :
4018else
4019   as_fn_error $? "newly created file is older than distributed files!
4020Check your system clock" "$LINENO" 5
4021fi
4022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4023printf "%s\n" "yes" >&6; }
4024# If we didn't sleep, we still need to ensure time stamps of config.status and
4025# generated files are strictly newer.
4026am_sleep_pid=
4027if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4028  ( sleep 1 ) &
4029  am_sleep_pid=$!
4030fi
4031
4032rm -f conftest.file
4033
4034test "$program_prefix" != NONE &&
4035  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4036# Use a double $ so make ignores it.
4037test "$program_suffix" != NONE &&
4038  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4039# Double any \ or $.
4040# By default was 's,x,x', remove it if useless.
4041ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4042program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4043
4044
4045  if test x"${MISSING+set}" != xset; then
4046  MISSING="\${SHELL} '$am_aux_dir/missing'"
4047fi
4048# Use eval to expand $SHELL
4049if eval "$MISSING --is-lightweight"; then
4050  am_missing_run="$MISSING "
4051else
4052  am_missing_run=
4053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4054printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4055fi
4056
4057if test x"${install_sh+set}" != xset; then
4058  case $am_aux_dir in
4059  *\ * | *\	*)
4060    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4061  *)
4062    install_sh="\${SHELL} $am_aux_dir/install-sh"
4063  esac
4064fi
4065
4066# Installed binaries are usually stripped using 'strip' when the user
4067# run "make install-strip".  However 'strip' might not be the right
4068# tool to use in cross-compilation environments, therefore Automake
4069# will honor the 'STRIP' environment variable to overrule this program.
4070if test "$cross_compiling" != no; then
4071  if test -n "$ac_tool_prefix"; then
4072  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4073set dummy ${ac_tool_prefix}strip; ac_word=$2
4074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4075printf %s "checking for $ac_word... " >&6; }
4076if test ${ac_cv_prog_STRIP+y}
4077then :
4078  printf %s "(cached) " >&6
4079else case e in #(
4080  e) if test -n "$STRIP"; then
4081  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4082else
4083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084for as_dir in $PATH
4085do
4086  IFS=$as_save_IFS
4087  case $as_dir in #(((
4088    '') as_dir=./ ;;
4089    */) ;;
4090    *) as_dir=$as_dir/ ;;
4091  esac
4092    for ac_exec_ext in '' $ac_executable_extensions; do
4093  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4094    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4095    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4096    break 2
4097  fi
4098done
4099  done
4100IFS=$as_save_IFS
4101
4102fi ;;
4103esac
4104fi
4105STRIP=$ac_cv_prog_STRIP
4106if test -n "$STRIP"; then
4107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4108printf "%s\n" "$STRIP" >&6; }
4109else
4110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111printf "%s\n" "no" >&6; }
4112fi
4113
4114
4115fi
4116if test -z "$ac_cv_prog_STRIP"; then
4117  ac_ct_STRIP=$STRIP
4118  # Extract the first word of "strip", so it can be a program name with args.
4119set dummy strip; ac_word=$2
4120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121printf %s "checking for $ac_word... " >&6; }
4122if test ${ac_cv_prog_ac_ct_STRIP+y}
4123then :
4124  printf %s "(cached) " >&6
4125else case e in #(
4126  e) if test -n "$ac_ct_STRIP"; then
4127  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4128else
4129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130for as_dir in $PATH
4131do
4132  IFS=$as_save_IFS
4133  case $as_dir in #(((
4134    '') as_dir=./ ;;
4135    */) ;;
4136    *) as_dir=$as_dir/ ;;
4137  esac
4138    for ac_exec_ext in '' $ac_executable_extensions; do
4139  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4140    ac_cv_prog_ac_ct_STRIP="strip"
4141    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4142    break 2
4143  fi
4144done
4145  done
4146IFS=$as_save_IFS
4147
4148fi ;;
4149esac
4150fi
4151ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4152if test -n "$ac_ct_STRIP"; then
4153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4154printf "%s\n" "$ac_ct_STRIP" >&6; }
4155else
4156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157printf "%s\n" "no" >&6; }
4158fi
4159
4160  if test "x$ac_ct_STRIP" = x; then
4161    STRIP=":"
4162  else
4163    case $cross_compiling:$ac_tool_warned in
4164yes:)
4165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4166printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4167ac_tool_warned=yes ;;
4168esac
4169    STRIP=$ac_ct_STRIP
4170  fi
4171else
4172  STRIP="$ac_cv_prog_STRIP"
4173fi
4174
4175fi
4176INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4177
4178
4179  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4180printf %s "checking for a race-free mkdir -p... " >&6; }
4181if test -z "$MKDIR_P"; then
4182  if test ${ac_cv_path_mkdir+y}
4183then :
4184  printf %s "(cached) " >&6
4185else case e in #(
4186  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4188do
4189  IFS=$as_save_IFS
4190  case $as_dir in #(((
4191    '') as_dir=./ ;;
4192    */) ;;
4193    *) as_dir=$as_dir/ ;;
4194  esac
4195    for ac_prog in mkdir gmkdir; do
4196	 for ac_exec_ext in '' $ac_executable_extensions; do
4197	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4198	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4199	     'mkdir ('*'coreutils) '* | \
4200	     *'BusyBox '* | \
4201	     'mkdir (fileutils) '4.1*)
4202	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4203	       break 3;;
4204	   esac
4205	 done
4206       done
4207  done
4208IFS=$as_save_IFS
4209 ;;
4210esac
4211fi
4212
4213  test -d ./--version && rmdir ./--version
4214  if test ${ac_cv_path_mkdir+y}; then
4215    MKDIR_P="$ac_cv_path_mkdir -p"
4216  else
4217    # As a last resort, use plain mkdir -p,
4218    # in the hope it doesn't have the bugs of ancient mkdir.
4219    MKDIR_P='mkdir -p'
4220  fi
4221fi
4222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4223printf "%s\n" "$MKDIR_P" >&6; }
4224
4225for ac_prog in gawk mawk nawk awk
4226do
4227  # Extract the first word of "$ac_prog", so it can be a program name with args.
4228set dummy $ac_prog; ac_word=$2
4229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230printf %s "checking for $ac_word... " >&6; }
4231if test ${ac_cv_prog_AWK+y}
4232then :
4233  printf %s "(cached) " >&6
4234else case e in #(
4235  e) if test -n "$AWK"; then
4236  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4237else
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241  IFS=$as_save_IFS
4242  case $as_dir in #(((
4243    '') as_dir=./ ;;
4244    */) ;;
4245    *) as_dir=$as_dir/ ;;
4246  esac
4247    for ac_exec_ext in '' $ac_executable_extensions; do
4248  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4249    ac_cv_prog_AWK="$ac_prog"
4250    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4251    break 2
4252  fi
4253done
4254  done
4255IFS=$as_save_IFS
4256
4257fi ;;
4258esac
4259fi
4260AWK=$ac_cv_prog_AWK
4261if test -n "$AWK"; then
4262  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4263printf "%s\n" "$AWK" >&6; }
4264else
4265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266printf "%s\n" "no" >&6; }
4267fi
4268
4269
4270  test -n "$AWK" && break
4271done
4272
4273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4274printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4275set x ${MAKE-make}
4276ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4277if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4278then :
4279  printf %s "(cached) " >&6
4280else case e in #(
4281  e) cat >conftest.make <<\_ACEOF
4282SHELL = /bin/sh
4283all:
4284	@echo '@@@%%%=$(MAKE)=@@@%%%'
4285_ACEOF
4286# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4287case `${MAKE-make} -f conftest.make 2>/dev/null` in
4288  *@@@%%%=?*=@@@%%%*)
4289    eval ac_cv_prog_make_${ac_make}_set=yes;;
4290  *)
4291    eval ac_cv_prog_make_${ac_make}_set=no;;
4292esac
4293rm -f conftest.make ;;
4294esac
4295fi
4296if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4298printf "%s\n" "yes" >&6; }
4299  SET_MAKE=
4300else
4301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302printf "%s\n" "no" >&6; }
4303  SET_MAKE="MAKE=${MAKE-make}"
4304fi
4305
4306rm -rf .tst 2>/dev/null
4307mkdir .tst 2>/dev/null
4308if test -d .tst; then
4309  am__leading_dot=.
4310else
4311  am__leading_dot=_
4312fi
4313rmdir .tst 2>/dev/null
4314
4315DEPDIR="${am__leading_dot}deps"
4316
4317ac_config_commands="$ac_config_commands depfiles"
4318
4319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4320printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4321cat > confinc.mk << 'END'
4322am__doit:
4323	@echo this is the am__doit target >confinc.out
4324.PHONY: am__doit
4325END
4326am__include="#"
4327am__quote=
4328# BSD make does it like this.
4329echo '.include "confinc.mk" # ignored' > confmf.BSD
4330# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4331echo 'include confinc.mk # ignored' > confmf.GNU
4332_am_result=no
4333for s in GNU BSD; do
4334  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4335   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4336   ac_status=$?
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); }
4339  case $?:`cat confinc.out 2>/dev/null` in #(
4340  '0:this is the am__doit target') :
4341    case $s in #(
4342  BSD) :
4343    am__include='.include' am__quote='"' ;; #(
4344  *) :
4345    am__include='include' am__quote='' ;;
4346esac ;; #(
4347  *) :
4348     ;;
4349esac
4350  if test "$am__include" != "#"; then
4351    _am_result="yes ($s style)"
4352    break
4353  fi
4354done
4355rm -f confinc.* confmf.*
4356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4357printf "%s\n" "${_am_result}" >&6; }
4358
4359# Check whether --enable-dependency-tracking was given.
4360if test ${enable_dependency_tracking+y}
4361then :
4362  enableval=$enable_dependency_tracking;
4363fi
4364
4365if test "x$enable_dependency_tracking" != xno; then
4366  am_depcomp="$ac_aux_dir/depcomp"
4367  AMDEPBACKSLASH='\'
4368  am__nodep='_no'
4369fi
4370 if test "x$enable_dependency_tracking" != xno; then
4371  AMDEP_TRUE=
4372  AMDEP_FALSE='#'
4373else
4374  AMDEP_TRUE='#'
4375  AMDEP_FALSE=
4376fi
4377
4378
4379# Check whether --enable-silent-rules was given.
4380if test ${enable_silent_rules+y}
4381then :
4382  enableval=$enable_silent_rules;
4383fi
4384
4385case $enable_silent_rules in # (((
4386  yes) AM_DEFAULT_VERBOSITY=0;;
4387   no) AM_DEFAULT_VERBOSITY=1;;
4388    *) AM_DEFAULT_VERBOSITY=1;;
4389esac
4390am_make=${MAKE-make}
4391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4392printf %s "checking whether $am_make supports nested variables... " >&6; }
4393if test ${am_cv_make_support_nested_variables+y}
4394then :
4395  printf %s "(cached) " >&6
4396else case e in #(
4397  e) if printf "%s\n" 'TRUE=$(BAR$(V))
4398BAR0=false
4399BAR1=true
4400V=1
4401am__doit:
4402	@$(TRUE)
4403.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4404  am_cv_make_support_nested_variables=yes
4405else
4406  am_cv_make_support_nested_variables=no
4407fi ;;
4408esac
4409fi
4410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4411printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4412if test $am_cv_make_support_nested_variables = yes; then
4413    AM_V='$(V)'
4414  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4415else
4416  AM_V=$AM_DEFAULT_VERBOSITY
4417  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4418fi
4419AM_BACKSLASH='\'
4420
4421if test "`cd $srcdir && pwd`" != "`pwd`"; then
4422  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4423  # is not polluted with repeated "-I."
4424  am__isrc=' -I$(srcdir)'
4425  # test to see if srcdir already configured
4426  if test -f $srcdir/config.status; then
4427    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4428  fi
4429fi
4430
4431# test whether we have cygpath
4432if test -z "$CYGPATH_W"; then
4433  if (cygpath --version) >/dev/null 2>/dev/null; then
4434    CYGPATH_W='cygpath -w'
4435  else
4436    CYGPATH_W=echo
4437  fi
4438fi
4439
4440
4441# Define the identity of the package.
4442 PACKAGE='xconsole'
4443 VERSION='1.1.0'
4444
4445
4446printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4447
4448
4449printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4450
4451# Some tools Automake needs.
4452
4453ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4454
4455
4456AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4457
4458
4459AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4460
4461
4462AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4463
4464
4465MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4466
4467# For better backward compatibility.  To be removed once Automake 1.9.x
4468# dies out for good.  For more background, see:
4469# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4470# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4471mkdir_p='$(MKDIR_P)'
4472
4473# We need awk for the "check" target (and possibly the TAP driver).  The
4474# system "awk" is bad on some platforms.
4475# Always define AMTAR for backward compatibility.  Yes, it's still used
4476# in the wild :-(  We should find a proper way to deprecate it ...
4477AMTAR='$${TAR-tar}'
4478
4479
4480# We'll loop over all known methods to create a tar archive until one works.
4481_am_tools='gnutar  pax cpio none'
4482
4483am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4484
4485
4486
4487
4488
4489depcc="$CC"   am_compiler_list=
4490
4491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4492printf %s "checking dependency style of $depcc... " >&6; }
4493if test ${am_cv_CC_dependencies_compiler_type+y}
4494then :
4495  printf %s "(cached) " >&6
4496else case e in #(
4497  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4498  # We make a subdir and do the tests there.  Otherwise we can end up
4499  # making bogus files that we don't know about and never remove.  For
4500  # instance it was reported that on HP-UX the gcc test will end up
4501  # making a dummy file named 'D' -- because '-MD' means "put the output
4502  # in D".
4503  rm -rf conftest.dir
4504  mkdir conftest.dir
4505  # Copy depcomp to subdir because otherwise we won't find it if we're
4506  # using a relative directory.
4507  cp "$am_depcomp" conftest.dir
4508  cd conftest.dir
4509  # We will build objects and dependencies in a subdirectory because
4510  # it helps to detect inapplicable dependency modes.  For instance
4511  # both Tru64's cc and ICC support -MD to output dependencies as a
4512  # side effect of compilation, but ICC will put the dependencies in
4513  # the current directory while Tru64 will put them in the object
4514  # directory.
4515  mkdir sub
4516
4517  am_cv_CC_dependencies_compiler_type=none
4518  if test "$am_compiler_list" = ""; then
4519     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4520  fi
4521  am__universal=false
4522  case " $depcc " in #(
4523     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4524     esac
4525
4526  for depmode in $am_compiler_list; do
4527    # Setup a source with many dependencies, because some compilers
4528    # like to wrap large dependency lists on column 80 (with \), and
4529    # we should not choose a depcomp mode which is confused by this.
4530    #
4531    # We need to recreate these files for each test, as the compiler may
4532    # overwrite some of them when testing with obscure command lines.
4533    # This happens at least with the AIX C compiler.
4534    : > sub/conftest.c
4535    for i in 1 2 3 4 5 6; do
4536      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4537      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4538      # Solaris 10 /bin/sh.
4539      echo '/* dummy */' > sub/conftst$i.h
4540    done
4541    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4542
4543    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4544    # mode.  It turns out that the SunPro C++ compiler does not properly
4545    # handle '-M -o', and we need to detect this.  Also, some Intel
4546    # versions had trouble with output in subdirs.
4547    am__obj=sub/conftest.${OBJEXT-o}
4548    am__minus_obj="-o $am__obj"
4549    case $depmode in
4550    gcc)
4551      # This depmode causes a compiler race in universal mode.
4552      test "$am__universal" = false || continue
4553      ;;
4554    nosideeffect)
4555      # After this tag, mechanisms are not by side-effect, so they'll
4556      # only be used when explicitly requested.
4557      if test "x$enable_dependency_tracking" = xyes; then
4558	continue
4559      else
4560	break
4561      fi
4562      ;;
4563    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4564      # This compiler won't grok '-c -o', but also, the minuso test has
4565      # not run yet.  These depmodes are late enough in the game, and
4566      # so weak that their functioning should not be impacted.
4567      am__obj=conftest.${OBJEXT-o}
4568      am__minus_obj=
4569      ;;
4570    none) break ;;
4571    esac
4572    if depmode=$depmode \
4573       source=sub/conftest.c object=$am__obj \
4574       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4575       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4576         >/dev/null 2>conftest.err &&
4577       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4578       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4579       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4580       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4581      # icc doesn't choke on unknown options, it will just issue warnings
4582      # or remarks (even with -Werror).  So we grep stderr for any message
4583      # that says an option was ignored or not supported.
4584      # When given -MP, icc 7.0 and 7.1 complain thusly:
4585      #   icc: Command line warning: ignoring option '-M'; no argument required
4586      # The diagnosis changed in icc 8.0:
4587      #   icc: Command line remark: option '-MP' not supported
4588      if (grep 'ignoring option' conftest.err ||
4589          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4590        am_cv_CC_dependencies_compiler_type=$depmode
4591        break
4592      fi
4593    fi
4594  done
4595
4596  cd ..
4597  rm -rf conftest.dir
4598else
4599  am_cv_CC_dependencies_compiler_type=none
4600fi
4601 ;;
4602esac
4603fi
4604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4605printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4606CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4607
4608 if
4609  test "x$enable_dependency_tracking" != xno \
4610  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4611  am__fastdepCC_TRUE=
4612  am__fastdepCC_FALSE='#'
4613else
4614  am__fastdepCC_TRUE='#'
4615  am__fastdepCC_FALSE=
4616fi
4617
4618
4619# Variables for tags utilities; see am/tags.am
4620if test -z "$CTAGS"; then
4621  CTAGS=ctags
4622fi
4623
4624if test -z "$ETAGS"; then
4625  ETAGS=etags
4626fi
4627
4628if test -z "$CSCOPE"; then
4629  CSCOPE=cscope
4630fi
4631
4632
4633
4634# POSIX will say in a future version that running "rm -f" with no argument
4635# is OK; and we want to be able to make that assumption in our Makefile
4636# recipes.  So use an aggressive probe to check that the usage we want is
4637# actually supported "in the wild" to an acceptable degree.
4638# See automake bug#10828.
4639# To make any issue more visible, cause the running configure to be aborted
4640# by default if the 'rm' program in use doesn't match our expectations; the
4641# user can still override this though.
4642if rm -f && rm -fr && rm -rf; then : OK; else
4643  cat >&2 <<'END'
4644Oops!
4645
4646Your 'rm' program seems unable to run without file operands specified
4647on the command line, even when the '-f' option is present.  This is contrary
4648to the behaviour of most rm programs out there, and not conforming with
4649the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4650
4651Please tell bug-automake@gnu.org about your system, including the value
4652of your $PATH and any error possibly output before this message.  This
4653can help us improve future automake versions.
4654
4655END
4656  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4657    echo 'Configuration will proceed anyway, since you have set the' >&2
4658    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4659    echo >&2
4660  else
4661    cat >&2 <<'END'
4662Aborting the configuration process, to ensure you take notice of the issue.
4663
4664You can download and install GNU coreutils to get an 'rm' implementation
4665that behaves properly: <https://www.gnu.org/software/coreutils/>.
4666
4667If you want to complete the configuration process using your problematic
4668'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4669to "yes", and re-run configure.
4670
4671END
4672    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4673  fi
4674fi
4675
4676
4677# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4690printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4691if test ${ac_cv_c_undeclared_builtin_options+y}
4692then :
4693  printf %s "(cached) " >&6
4694else case e in #(
4695  e) ac_save_CFLAGS=$CFLAGS
4696   ac_cv_c_undeclared_builtin_options='cannot detect'
4697   for ac_arg in '' -fno-builtin; do
4698     CFLAGS="$ac_save_CFLAGS $ac_arg"
4699     # This test program should *not* compile successfully.
4700     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701/* end confdefs.h.  */
4702
4703int
4704main (void)
4705{
4706(void) strchr;
4707  ;
4708  return 0;
4709}
4710_ACEOF
4711if ac_fn_c_try_compile "$LINENO"
4712then :
4713
4714else case e in #(
4715  e) # This test program should compile successfully.
4716        # No library function is consistently available on
4717        # freestanding implementations, so test against a dummy
4718        # declaration.  Include always-available headers on the
4719        # off chance that they somehow elicit warnings.
4720        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721/* end confdefs.h.  */
4722#include <float.h>
4723#include <limits.h>
4724#include <stdarg.h>
4725#include <stddef.h>
4726extern void ac_decl (int, char *);
4727
4728int
4729main (void)
4730{
4731(void) ac_decl (0, (char *) 0);
4732  (void) ac_decl;
4733
4734  ;
4735  return 0;
4736}
4737_ACEOF
4738if ac_fn_c_try_compile "$LINENO"
4739then :
4740  if test x"$ac_arg" = x
4741then :
4742  ac_cv_c_undeclared_builtin_options='none needed'
4743else case e in #(
4744  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4745esac
4746fi
4747          break
4748fi
4749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4750esac
4751fi
4752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4753    done
4754    CFLAGS=$ac_save_CFLAGS
4755   ;;
4756esac
4757fi
4758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4759printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4760  case $ac_cv_c_undeclared_builtin_options in #(
4761  'cannot detect') :
4762    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4763printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4764as_fn_error $? "cannot make $CC report undeclared builtins
4765See 'config.log' for more details" "$LINENO" 5; } ;; #(
4766  'none needed') :
4767    ac_c_undeclared_builtin_options='' ;; #(
4768  *) :
4769    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4770esac
4771
4772
4773
4774
4775
4776ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4777if test "x$ac_cv_have_decl___clang__" = xyes
4778then :
4779  CLANGCC="yes"
4780else case e in #(
4781  e) CLANGCC="no" ;;
4782esac
4783fi
4784ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4785if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4786then :
4787  INTELCC="yes"
4788else case e in #(
4789  e) INTELCC="no" ;;
4790esac
4791fi
4792ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4793if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4794then :
4795  SUNCC="yes"
4796else case e in #(
4797  e) SUNCC="no" ;;
4798esac
4799fi
4800
4801
4802
4803
4804
4805
4806
4807
4808if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4809	if test -n "$ac_tool_prefix"; then
4810  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4811set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813printf %s "checking for $ac_word... " >&6; }
4814if test ${ac_cv_path_PKG_CONFIG+y}
4815then :
4816  printf %s "(cached) " >&6
4817else case e in #(
4818  e) case $PKG_CONFIG in
4819  [\\/]* | ?:[\\/]*)
4820  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4821  ;;
4822  *)
4823  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824for as_dir in $PATH
4825do
4826  IFS=$as_save_IFS
4827  case $as_dir in #(((
4828    '') as_dir=./ ;;
4829    */) ;;
4830    *) as_dir=$as_dir/ ;;
4831  esac
4832    for ac_exec_ext in '' $ac_executable_extensions; do
4833  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4834    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4835    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4836    break 2
4837  fi
4838done
4839  done
4840IFS=$as_save_IFS
4841
4842  ;;
4843esac ;;
4844esac
4845fi
4846PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4847if test -n "$PKG_CONFIG"; then
4848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4849printf "%s\n" "$PKG_CONFIG" >&6; }
4850else
4851  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852printf "%s\n" "no" >&6; }
4853fi
4854
4855
4856fi
4857if test -z "$ac_cv_path_PKG_CONFIG"; then
4858  ac_pt_PKG_CONFIG=$PKG_CONFIG
4859  # Extract the first word of "pkg-config", so it can be a program name with args.
4860set dummy pkg-config; ac_word=$2
4861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862printf %s "checking for $ac_word... " >&6; }
4863if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4864then :
4865  printf %s "(cached) " >&6
4866else case e in #(
4867  e) case $ac_pt_PKG_CONFIG in
4868  [\\/]* | ?:[\\/]*)
4869  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4870  ;;
4871  *)
4872  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873for as_dir in $PATH
4874do
4875  IFS=$as_save_IFS
4876  case $as_dir in #(((
4877    '') as_dir=./ ;;
4878    */) ;;
4879    *) as_dir=$as_dir/ ;;
4880  esac
4881    for ac_exec_ext in '' $ac_executable_extensions; do
4882  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4883    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4884    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4885    break 2
4886  fi
4887done
4888  done
4889IFS=$as_save_IFS
4890
4891  ;;
4892esac ;;
4893esac
4894fi
4895ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4896if test -n "$ac_pt_PKG_CONFIG"; then
4897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4898printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4899else
4900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901printf "%s\n" "no" >&6; }
4902fi
4903
4904  if test "x$ac_pt_PKG_CONFIG" = x; then
4905    PKG_CONFIG=""
4906  else
4907    case $cross_compiling:$ac_tool_warned in
4908yes:)
4909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911ac_tool_warned=yes ;;
4912esac
4913    PKG_CONFIG=$ac_pt_PKG_CONFIG
4914  fi
4915else
4916  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4917fi
4918
4919fi
4920if test -n "$PKG_CONFIG"; then
4921	_pkg_min_version=0.9.0
4922	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4923printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4924	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4925		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4926printf "%s\n" "yes" >&6; }
4927	else
4928		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929printf "%s\n" "no" >&6; }
4930		PKG_CONFIG=""
4931	fi
4932fi
4933
4934
4935  # Make sure we can run config.sub.
4936$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4937  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4938
4939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4940printf %s "checking build system type... " >&6; }
4941if test ${ac_cv_build+y}
4942then :
4943  printf %s "(cached) " >&6
4944else case e in #(
4945  e) ac_build_alias=$build_alias
4946test "x$ac_build_alias" = x &&
4947  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4948test "x$ac_build_alias" = x &&
4949  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4950ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4951  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4952 ;;
4953esac
4954fi
4955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4956printf "%s\n" "$ac_cv_build" >&6; }
4957case $ac_cv_build in
4958*-*-*) ;;
4959*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4960esac
4961build=$ac_cv_build
4962ac_save_IFS=$IFS; IFS='-'
4963set x $ac_cv_build
4964shift
4965build_cpu=$1
4966build_vendor=$2
4967shift; shift
4968# Remember, the first character of IFS is used to create $*,
4969# except with old shells:
4970build_os=$*
4971IFS=$ac_save_IFS
4972case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4973
4974
4975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4976printf %s "checking host system type... " >&6; }
4977if test ${ac_cv_host+y}
4978then :
4979  printf %s "(cached) " >&6
4980else case e in #(
4981  e) if test "x$host_alias" = x; then
4982  ac_cv_host=$ac_cv_build
4983else
4984  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4985    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4986fi
4987 ;;
4988esac
4989fi
4990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4991printf "%s\n" "$ac_cv_host" >&6; }
4992case $ac_cv_host in
4993*-*-*) ;;
4994*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4995esac
4996host=$ac_cv_host
4997ac_save_IFS=$IFS; IFS='-'
4998set x $ac_cv_host
4999shift
5000host_cpu=$1
5001host_vendor=$2
5002shift; shift
5003# Remember, the first character of IFS is used to create $*,
5004# except with old shells:
5005host_os=$*
5006IFS=$ac_save_IFS
5007case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5008
5009
5010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5011printf %s "checking for a sed that does not truncate output... " >&6; }
5012if test ${ac_cv_path_SED+y}
5013then :
5014  printf %s "(cached) " >&6
5015else case e in #(
5016  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5017     for ac_i in 1 2 3 4 5 6 7; do
5018       ac_script="$ac_script$as_nl$ac_script"
5019     done
5020     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5021     { ac_script=; unset ac_script;}
5022     if test -z "$SED"; then
5023  ac_path_SED_found=false
5024  # Loop through the user's path and test for each of PROGNAME-LIST
5025  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026for as_dir in $PATH
5027do
5028  IFS=$as_save_IFS
5029  case $as_dir in #(((
5030    '') as_dir=./ ;;
5031    */) ;;
5032    *) as_dir=$as_dir/ ;;
5033  esac
5034    for ac_prog in sed gsed
5035   do
5036    for ac_exec_ext in '' $ac_executable_extensions; do
5037      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5038      as_fn_executable_p "$ac_path_SED" || continue
5039# Check for GNU ac_path_SED and select it if it is found.
5040  # Check for GNU $ac_path_SED
5041case `"$ac_path_SED" --version 2>&1` in #(
5042*GNU*)
5043  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5044#(
5045*)
5046  ac_count=0
5047  printf %s 0123456789 >"conftest.in"
5048  while :
5049  do
5050    cat "conftest.in" "conftest.in" >"conftest.tmp"
5051    mv "conftest.tmp" "conftest.in"
5052    cp "conftest.in" "conftest.nl"
5053    printf "%s\n" '' >> "conftest.nl"
5054    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5055    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5056    as_fn_arith $ac_count + 1 && ac_count=$as_val
5057    if test $ac_count -gt ${ac_path_SED_max-0}; then
5058      # Best one so far, save it but keep looking for a better one
5059      ac_cv_path_SED="$ac_path_SED"
5060      ac_path_SED_max=$ac_count
5061    fi
5062    # 10*(2^10) chars as input seems more than enough
5063    test $ac_count -gt 10 && break
5064  done
5065  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5066esac
5067
5068      $ac_path_SED_found && break 3
5069    done
5070  done
5071  done
5072IFS=$as_save_IFS
5073  if test -z "$ac_cv_path_SED"; then
5074    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5075  fi
5076else
5077  ac_cv_path_SED=$SED
5078fi
5079 ;;
5080esac
5081fi
5082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5083printf "%s\n" "$ac_cv_path_SED" >&6; }
5084 SED="$ac_cv_path_SED"
5085  rm -f conftest.sed
5086
5087
5088
5089
5090
5091
5092# Check whether --enable-selective-werror was given.
5093if test ${enable_selective_werror+y}
5094then :
5095  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5096else case e in #(
5097  e) SELECTIVE_WERROR=yes ;;
5098esac
5099fi
5100
5101
5102
5103
5104
5105# -v is too short to test reliably with XORG_TESTSET_CFLAG
5106if test "x$SUNCC" = "xyes"; then
5107    BASE_CFLAGS="-v"
5108else
5109    BASE_CFLAGS=""
5110fi
5111
5112# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126xorg_testset_save_CFLAGS="$CFLAGS"
5127
5128if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5129	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5130	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5131printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5132if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5133then :
5134  printf %s "(cached) " >&6
5135else case e in #(
5136  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137/* end confdefs.h.  */
5138int i;
5139_ACEOF
5140if ac_fn_c_try_compile "$LINENO"
5141then :
5142  xorg_cv_cc_flag_unknown_warning_option=yes
5143else case e in #(
5144  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5145esac
5146fi
5147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5148esac
5149fi
5150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5151printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5152	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5153	CFLAGS="$xorg_testset_save_CFLAGS"
5154fi
5155
5156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5157	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5158		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5159	fi
5160	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5161	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5162printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5163if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5164then :
5165  printf %s "(cached) " >&6
5166else case e in #(
5167  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168/* end confdefs.h.  */
5169int i;
5170_ACEOF
5171if ac_fn_c_try_compile "$LINENO"
5172then :
5173  xorg_cv_cc_flag_unused_command_line_argument=yes
5174else case e in #(
5175  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5176esac
5177fi
5178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5179esac
5180fi
5181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5182printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5183	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5184	CFLAGS="$xorg_testset_save_CFLAGS"
5185fi
5186
5187found="no"
5188
5189	if test $found = "no" ; then
5190		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5191			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5192		fi
5193
5194		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5195			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5196		fi
5197
5198		CFLAGS="$CFLAGS -Wall"
5199
5200		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5201printf %s "checking if $CC supports -Wall... " >&6; }
5202		cacheid=xorg_cv_cc_flag__Wall
5203		if eval test \${$cacheid+y}
5204then :
5205  printf %s "(cached) " >&6
5206else case e in #(
5207  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208/* end confdefs.h.  */
5209int i;
5210int
5211main (void)
5212{
5213
5214  ;
5215  return 0;
5216}
5217_ACEOF
5218if ac_fn_c_try_link "$LINENO"
5219then :
5220  eval $cacheid=yes
5221else case e in #(
5222  e) eval $cacheid=no ;;
5223esac
5224fi
5225rm -f core conftest.err conftest.$ac_objext conftest.beam \
5226    conftest$ac_exeext conftest.$ac_ext ;;
5227esac
5228fi
5229
5230
5231		CFLAGS="$xorg_testset_save_CFLAGS"
5232
5233		eval supported=\$$cacheid
5234		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5235printf "%s\n" "$supported" >&6; }
5236		if test "$supported" = "yes" ; then
5237			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5238			found="yes"
5239		fi
5240	fi
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256xorg_testset_save_CFLAGS="$CFLAGS"
5257
5258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5259	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5260	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5261printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5262if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5263then :
5264  printf %s "(cached) " >&6
5265else case e in #(
5266  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267/* end confdefs.h.  */
5268int i;
5269_ACEOF
5270if ac_fn_c_try_compile "$LINENO"
5271then :
5272  xorg_cv_cc_flag_unknown_warning_option=yes
5273else case e in #(
5274  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5275esac
5276fi
5277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5278esac
5279fi
5280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5281printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5282	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5283	CFLAGS="$xorg_testset_save_CFLAGS"
5284fi
5285
5286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5287	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5288		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5289	fi
5290	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5291	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5292printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5293if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5294then :
5295  printf %s "(cached) " >&6
5296else case e in #(
5297  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298/* end confdefs.h.  */
5299int i;
5300_ACEOF
5301if ac_fn_c_try_compile "$LINENO"
5302then :
5303  xorg_cv_cc_flag_unused_command_line_argument=yes
5304else case e in #(
5305  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5306esac
5307fi
5308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5309esac
5310fi
5311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5312printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5313	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5314	CFLAGS="$xorg_testset_save_CFLAGS"
5315fi
5316
5317found="no"
5318
5319	if test $found = "no" ; then
5320		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5321			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5322		fi
5323
5324		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5325			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5326		fi
5327
5328		CFLAGS="$CFLAGS -Wpointer-arith"
5329
5330		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5331printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5332		cacheid=xorg_cv_cc_flag__Wpointer_arith
5333		if eval test \${$cacheid+y}
5334then :
5335  printf %s "(cached) " >&6
5336else case e in #(
5337  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338/* end confdefs.h.  */
5339int i;
5340int
5341main (void)
5342{
5343
5344  ;
5345  return 0;
5346}
5347_ACEOF
5348if ac_fn_c_try_link "$LINENO"
5349then :
5350  eval $cacheid=yes
5351else case e in #(
5352  e) eval $cacheid=no ;;
5353esac
5354fi
5355rm -f core conftest.err conftest.$ac_objext conftest.beam \
5356    conftest$ac_exeext conftest.$ac_ext ;;
5357esac
5358fi
5359
5360
5361		CFLAGS="$xorg_testset_save_CFLAGS"
5362
5363		eval supported=\$$cacheid
5364		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5365printf "%s\n" "$supported" >&6; }
5366		if test "$supported" = "yes" ; then
5367			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5368			found="yes"
5369		fi
5370	fi
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386xorg_testset_save_CFLAGS="$CFLAGS"
5387
5388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5389	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5390	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5391printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5392if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5393then :
5394  printf %s "(cached) " >&6
5395else case e in #(
5396  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397/* end confdefs.h.  */
5398int i;
5399_ACEOF
5400if ac_fn_c_try_compile "$LINENO"
5401then :
5402  xorg_cv_cc_flag_unknown_warning_option=yes
5403else case e in #(
5404  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5405esac
5406fi
5407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5408esac
5409fi
5410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5411printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5412	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5413	CFLAGS="$xorg_testset_save_CFLAGS"
5414fi
5415
5416if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5417	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5418		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5419	fi
5420	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5421	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5422printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5423if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5424then :
5425  printf %s "(cached) " >&6
5426else case e in #(
5427  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428/* end confdefs.h.  */
5429int i;
5430_ACEOF
5431if ac_fn_c_try_compile "$LINENO"
5432then :
5433  xorg_cv_cc_flag_unused_command_line_argument=yes
5434else case e in #(
5435  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5436esac
5437fi
5438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5439esac
5440fi
5441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5442printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5443	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5444	CFLAGS="$xorg_testset_save_CFLAGS"
5445fi
5446
5447found="no"
5448
5449	if test $found = "no" ; then
5450		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5451			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5452		fi
5453
5454		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5455			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5456		fi
5457
5458		CFLAGS="$CFLAGS -Wmissing-declarations"
5459
5460		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5461printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5462		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5463		if eval test \${$cacheid+y}
5464then :
5465  printf %s "(cached) " >&6
5466else case e in #(
5467  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468/* end confdefs.h.  */
5469int i;
5470int
5471main (void)
5472{
5473
5474  ;
5475  return 0;
5476}
5477_ACEOF
5478if ac_fn_c_try_link "$LINENO"
5479then :
5480  eval $cacheid=yes
5481else case e in #(
5482  e) eval $cacheid=no ;;
5483esac
5484fi
5485rm -f core conftest.err conftest.$ac_objext conftest.beam \
5486    conftest$ac_exeext conftest.$ac_ext ;;
5487esac
5488fi
5489
5490
5491		CFLAGS="$xorg_testset_save_CFLAGS"
5492
5493		eval supported=\$$cacheid
5494		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5495printf "%s\n" "$supported" >&6; }
5496		if test "$supported" = "yes" ; then
5497			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5498			found="yes"
5499		fi
5500	fi
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516xorg_testset_save_CFLAGS="$CFLAGS"
5517
5518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5519	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5520	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5521printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5522if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5523then :
5524  printf %s "(cached) " >&6
5525else case e in #(
5526  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527/* end confdefs.h.  */
5528int i;
5529_ACEOF
5530if ac_fn_c_try_compile "$LINENO"
5531then :
5532  xorg_cv_cc_flag_unknown_warning_option=yes
5533else case e in #(
5534  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5535esac
5536fi
5537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5538esac
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 case e in #(
5557  e) 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 case e in #(
5565  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5566esac
5567fi
5568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5569esac
5570fi
5571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5572printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5573	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5574	CFLAGS="$xorg_testset_save_CFLAGS"
5575fi
5576
5577found="no"
5578
5579	if test $found = "no" ; then
5580		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5581			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5582		fi
5583
5584		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5585			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5586		fi
5587
5588		CFLAGS="$CFLAGS -Wformat=2"
5589
5590		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5591printf %s "checking if $CC supports -Wformat=2... " >&6; }
5592		cacheid=xorg_cv_cc_flag__Wformat_2
5593		if eval test \${$cacheid+y}
5594then :
5595  printf %s "(cached) " >&6
5596else case e in #(
5597  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598/* end confdefs.h.  */
5599int i;
5600int
5601main (void)
5602{
5603
5604  ;
5605  return 0;
5606}
5607_ACEOF
5608if ac_fn_c_try_link "$LINENO"
5609then :
5610  eval $cacheid=yes
5611else case e in #(
5612  e) eval $cacheid=no ;;
5613esac
5614fi
5615rm -f core conftest.err conftest.$ac_objext conftest.beam \
5616    conftest$ac_exeext conftest.$ac_ext ;;
5617esac
5618fi
5619
5620
5621		CFLAGS="$xorg_testset_save_CFLAGS"
5622
5623		eval supported=\$$cacheid
5624		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5625printf "%s\n" "$supported" >&6; }
5626		if test "$supported" = "yes" ; then
5627			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5628			found="yes"
5629		fi
5630	fi
5631
5632	if test $found = "no" ; then
5633		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5634			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5635		fi
5636
5637		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5638			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5639		fi
5640
5641		CFLAGS="$CFLAGS -Wformat"
5642
5643		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5644printf %s "checking if $CC supports -Wformat... " >&6; }
5645		cacheid=xorg_cv_cc_flag__Wformat
5646		if eval test \${$cacheid+y}
5647then :
5648  printf %s "(cached) " >&6
5649else case e in #(
5650  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651/* end confdefs.h.  */
5652int i;
5653int
5654main (void)
5655{
5656
5657  ;
5658  return 0;
5659}
5660_ACEOF
5661if ac_fn_c_try_link "$LINENO"
5662then :
5663  eval $cacheid=yes
5664else case e in #(
5665  e) eval $cacheid=no ;;
5666esac
5667fi
5668rm -f core conftest.err conftest.$ac_objext conftest.beam \
5669    conftest$ac_exeext conftest.$ac_ext ;;
5670esac
5671fi
5672
5673
5674		CFLAGS="$xorg_testset_save_CFLAGS"
5675
5676		eval supported=\$$cacheid
5677		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5678printf "%s\n" "$supported" >&6; }
5679		if test "$supported" = "yes" ; then
5680			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5681			found="yes"
5682		fi
5683	fi
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701xorg_testset_save_CFLAGS="$CFLAGS"
5702
5703if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5704	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5705	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5706printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5707if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5708then :
5709  printf %s "(cached) " >&6
5710else case e in #(
5711  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712/* end confdefs.h.  */
5713int i;
5714_ACEOF
5715if ac_fn_c_try_compile "$LINENO"
5716then :
5717  xorg_cv_cc_flag_unknown_warning_option=yes
5718else case e in #(
5719  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5720esac
5721fi
5722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5723esac
5724fi
5725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5726printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5727	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5728	CFLAGS="$xorg_testset_save_CFLAGS"
5729fi
5730
5731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5732	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5733		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5734	fi
5735	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5736	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5737printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5738if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5739then :
5740  printf %s "(cached) " >&6
5741else case e in #(
5742  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743/* end confdefs.h.  */
5744int i;
5745_ACEOF
5746if ac_fn_c_try_compile "$LINENO"
5747then :
5748  xorg_cv_cc_flag_unused_command_line_argument=yes
5749else case e in #(
5750  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5751esac
5752fi
5753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5754esac
5755fi
5756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5757printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5758	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5759	CFLAGS="$xorg_testset_save_CFLAGS"
5760fi
5761
5762found="no"
5763
5764	if test $found = "no" ; then
5765		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5766			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5767		fi
5768
5769		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5770			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5771		fi
5772
5773		CFLAGS="$CFLAGS -Wstrict-prototypes"
5774
5775		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5776printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5777		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5778		if eval test \${$cacheid+y}
5779then :
5780  printf %s "(cached) " >&6
5781else case e in #(
5782  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783/* end confdefs.h.  */
5784int i;
5785int
5786main (void)
5787{
5788
5789  ;
5790  return 0;
5791}
5792_ACEOF
5793if ac_fn_c_try_link "$LINENO"
5794then :
5795  eval $cacheid=yes
5796else case e in #(
5797  e) eval $cacheid=no ;;
5798esac
5799fi
5800rm -f core conftest.err conftest.$ac_objext conftest.beam \
5801    conftest$ac_exeext conftest.$ac_ext ;;
5802esac
5803fi
5804
5805
5806		CFLAGS="$xorg_testset_save_CFLAGS"
5807
5808		eval supported=\$$cacheid
5809		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5810printf "%s\n" "$supported" >&6; }
5811		if test "$supported" = "yes" ; then
5812			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5813			found="yes"
5814		fi
5815	fi
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831xorg_testset_save_CFLAGS="$CFLAGS"
5832
5833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5834	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5835	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5836printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5837if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5838then :
5839  printf %s "(cached) " >&6
5840else case e in #(
5841  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842/* end confdefs.h.  */
5843int i;
5844_ACEOF
5845if ac_fn_c_try_compile "$LINENO"
5846then :
5847  xorg_cv_cc_flag_unknown_warning_option=yes
5848else case e in #(
5849  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5850esac
5851fi
5852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5853esac
5854fi
5855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5856printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5857	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5858	CFLAGS="$xorg_testset_save_CFLAGS"
5859fi
5860
5861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5862	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5863		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5864	fi
5865	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5866	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5867printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5868if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5869then :
5870  printf %s "(cached) " >&6
5871else case e in #(
5872  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873/* end confdefs.h.  */
5874int i;
5875_ACEOF
5876if ac_fn_c_try_compile "$LINENO"
5877then :
5878  xorg_cv_cc_flag_unused_command_line_argument=yes
5879else case e in #(
5880  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5881esac
5882fi
5883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5884esac
5885fi
5886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5887printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5888	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5889	CFLAGS="$xorg_testset_save_CFLAGS"
5890fi
5891
5892found="no"
5893
5894	if test $found = "no" ; then
5895		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5896			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5897		fi
5898
5899		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5900			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5901		fi
5902
5903		CFLAGS="$CFLAGS -Wmissing-prototypes"
5904
5905		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5906printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5907		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5908		if eval test \${$cacheid+y}
5909then :
5910  printf %s "(cached) " >&6
5911else case e in #(
5912  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913/* end confdefs.h.  */
5914int i;
5915int
5916main (void)
5917{
5918
5919  ;
5920  return 0;
5921}
5922_ACEOF
5923if ac_fn_c_try_link "$LINENO"
5924then :
5925  eval $cacheid=yes
5926else case e in #(
5927  e) eval $cacheid=no ;;
5928esac
5929fi
5930rm -f core conftest.err conftest.$ac_objext conftest.beam \
5931    conftest$ac_exeext conftest.$ac_ext ;;
5932esac
5933fi
5934
5935
5936		CFLAGS="$xorg_testset_save_CFLAGS"
5937
5938		eval supported=\$$cacheid
5939		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5940printf "%s\n" "$supported" >&6; }
5941		if test "$supported" = "yes" ; then
5942			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5943			found="yes"
5944		fi
5945	fi
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961xorg_testset_save_CFLAGS="$CFLAGS"
5962
5963if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5964	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5965	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5966printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5967if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5968then :
5969  printf %s "(cached) " >&6
5970else case e in #(
5971  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972/* end confdefs.h.  */
5973int i;
5974_ACEOF
5975if ac_fn_c_try_compile "$LINENO"
5976then :
5977  xorg_cv_cc_flag_unknown_warning_option=yes
5978else case e in #(
5979  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5980esac
5981fi
5982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5983esac
5984fi
5985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5986printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5987	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5988	CFLAGS="$xorg_testset_save_CFLAGS"
5989fi
5990
5991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5992	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5993		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5994	fi
5995	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5996	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5997printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5998if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5999then :
6000  printf %s "(cached) " >&6
6001else case e in #(
6002  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003/* end confdefs.h.  */
6004int i;
6005_ACEOF
6006if ac_fn_c_try_compile "$LINENO"
6007then :
6008  xorg_cv_cc_flag_unused_command_line_argument=yes
6009else case e in #(
6010  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6011esac
6012fi
6013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6014esac
6015fi
6016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6017printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6018	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6019	CFLAGS="$xorg_testset_save_CFLAGS"
6020fi
6021
6022found="no"
6023
6024	if test $found = "no" ; then
6025		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6026			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6027		fi
6028
6029		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6030			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6031		fi
6032
6033		CFLAGS="$CFLAGS -Wnested-externs"
6034
6035		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6036printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6037		cacheid=xorg_cv_cc_flag__Wnested_externs
6038		if eval test \${$cacheid+y}
6039then :
6040  printf %s "(cached) " >&6
6041else case e in #(
6042  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043/* end confdefs.h.  */
6044int i;
6045int
6046main (void)
6047{
6048
6049  ;
6050  return 0;
6051}
6052_ACEOF
6053if ac_fn_c_try_link "$LINENO"
6054then :
6055  eval $cacheid=yes
6056else case e in #(
6057  e) eval $cacheid=no ;;
6058esac
6059fi
6060rm -f core conftest.err conftest.$ac_objext conftest.beam \
6061    conftest$ac_exeext conftest.$ac_ext ;;
6062esac
6063fi
6064
6065
6066		CFLAGS="$xorg_testset_save_CFLAGS"
6067
6068		eval supported=\$$cacheid
6069		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6070printf "%s\n" "$supported" >&6; }
6071		if test "$supported" = "yes" ; then
6072			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6073			found="yes"
6074		fi
6075	fi
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091xorg_testset_save_CFLAGS="$CFLAGS"
6092
6093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6094	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6095	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6096printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6097if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6098then :
6099  printf %s "(cached) " >&6
6100else case e in #(
6101  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6102/* end confdefs.h.  */
6103int i;
6104_ACEOF
6105if ac_fn_c_try_compile "$LINENO"
6106then :
6107  xorg_cv_cc_flag_unknown_warning_option=yes
6108else case e in #(
6109  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6110esac
6111fi
6112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6113esac
6114fi
6115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6116printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6117	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6118	CFLAGS="$xorg_testset_save_CFLAGS"
6119fi
6120
6121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6122	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6123		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6124	fi
6125	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6126	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6127printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6128if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6129then :
6130  printf %s "(cached) " >&6
6131else case e in #(
6132  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133/* end confdefs.h.  */
6134int i;
6135_ACEOF
6136if ac_fn_c_try_compile "$LINENO"
6137then :
6138  xorg_cv_cc_flag_unused_command_line_argument=yes
6139else case e in #(
6140  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6141esac
6142fi
6143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6144esac
6145fi
6146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6147printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6148	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6149	CFLAGS="$xorg_testset_save_CFLAGS"
6150fi
6151
6152found="no"
6153
6154	if test $found = "no" ; then
6155		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6156			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6157		fi
6158
6159		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6160			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6161		fi
6162
6163		CFLAGS="$CFLAGS -Wbad-function-cast"
6164
6165		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6166printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6167		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6168		if eval test \${$cacheid+y}
6169then :
6170  printf %s "(cached) " >&6
6171else case e in #(
6172  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173/* end confdefs.h.  */
6174int i;
6175int
6176main (void)
6177{
6178
6179  ;
6180  return 0;
6181}
6182_ACEOF
6183if ac_fn_c_try_link "$LINENO"
6184then :
6185  eval $cacheid=yes
6186else case e in #(
6187  e) eval $cacheid=no ;;
6188esac
6189fi
6190rm -f core conftest.err conftest.$ac_objext conftest.beam \
6191    conftest$ac_exeext conftest.$ac_ext ;;
6192esac
6193fi
6194
6195
6196		CFLAGS="$xorg_testset_save_CFLAGS"
6197
6198		eval supported=\$$cacheid
6199		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6200printf "%s\n" "$supported" >&6; }
6201		if test "$supported" = "yes" ; then
6202			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6203			found="yes"
6204		fi
6205	fi
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221xorg_testset_save_CFLAGS="$CFLAGS"
6222
6223if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6224	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6226printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6227if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6228then :
6229  printf %s "(cached) " >&6
6230else case e in #(
6231  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232/* end confdefs.h.  */
6233int i;
6234_ACEOF
6235if ac_fn_c_try_compile "$LINENO"
6236then :
6237  xorg_cv_cc_flag_unknown_warning_option=yes
6238else case e in #(
6239  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6240esac
6241fi
6242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6243esac
6244fi
6245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6246printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6247	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6248	CFLAGS="$xorg_testset_save_CFLAGS"
6249fi
6250
6251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6252	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6253		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6254	fi
6255	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6256	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6257printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6258if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6259then :
6260  printf %s "(cached) " >&6
6261else case e in #(
6262  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263/* end confdefs.h.  */
6264int i;
6265_ACEOF
6266if ac_fn_c_try_compile "$LINENO"
6267then :
6268  xorg_cv_cc_flag_unused_command_line_argument=yes
6269else case e in #(
6270  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6271esac
6272fi
6273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6274esac
6275fi
6276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6277printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6278	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6279	CFLAGS="$xorg_testset_save_CFLAGS"
6280fi
6281
6282found="no"
6283
6284	if test $found = "no" ; then
6285		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6286			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6287		fi
6288
6289		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6290			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6291		fi
6292
6293		CFLAGS="$CFLAGS -Wold-style-definition"
6294
6295		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6296printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6297		cacheid=xorg_cv_cc_flag__Wold_style_definition
6298		if eval test \${$cacheid+y}
6299then :
6300  printf %s "(cached) " >&6
6301else case e in #(
6302  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303/* end confdefs.h.  */
6304int i;
6305int
6306main (void)
6307{
6308
6309  ;
6310  return 0;
6311}
6312_ACEOF
6313if ac_fn_c_try_link "$LINENO"
6314then :
6315  eval $cacheid=yes
6316else case e in #(
6317  e) eval $cacheid=no ;;
6318esac
6319fi
6320rm -f core conftest.err conftest.$ac_objext conftest.beam \
6321    conftest$ac_exeext conftest.$ac_ext ;;
6322esac
6323fi
6324
6325
6326		CFLAGS="$xorg_testset_save_CFLAGS"
6327
6328		eval supported=\$$cacheid
6329		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6330printf "%s\n" "$supported" >&6; }
6331		if test "$supported" = "yes" ; then
6332			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6333			found="yes"
6334		fi
6335	fi
6336
6337	if test $found = "no" ; then
6338		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6339			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6340		fi
6341
6342		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6343			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6344		fi
6345
6346		CFLAGS="$CFLAGS -fd"
6347
6348		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6349printf %s "checking if $CC supports -fd... " >&6; }
6350		cacheid=xorg_cv_cc_flag__fd
6351		if eval test \${$cacheid+y}
6352then :
6353  printf %s "(cached) " >&6
6354else case e in #(
6355  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356/* end confdefs.h.  */
6357int i;
6358int
6359main (void)
6360{
6361
6362  ;
6363  return 0;
6364}
6365_ACEOF
6366if ac_fn_c_try_link "$LINENO"
6367then :
6368  eval $cacheid=yes
6369else case e in #(
6370  e) eval $cacheid=no ;;
6371esac
6372fi
6373rm -f core conftest.err conftest.$ac_objext conftest.beam \
6374    conftest$ac_exeext conftest.$ac_ext ;;
6375esac
6376fi
6377
6378
6379		CFLAGS="$xorg_testset_save_CFLAGS"
6380
6381		eval supported=\$$cacheid
6382		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6383printf "%s\n" "$supported" >&6; }
6384		if test "$supported" = "yes" ; then
6385			BASE_CFLAGS="$BASE_CFLAGS -fd"
6386			found="yes"
6387		fi
6388	fi
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404xorg_testset_save_CFLAGS="$CFLAGS"
6405
6406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6407	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6408	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6409printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6410if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6411then :
6412  printf %s "(cached) " >&6
6413else case e in #(
6414  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415/* end confdefs.h.  */
6416int i;
6417_ACEOF
6418if ac_fn_c_try_compile "$LINENO"
6419then :
6420  xorg_cv_cc_flag_unknown_warning_option=yes
6421else case e in #(
6422  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6423esac
6424fi
6425rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6426esac
6427fi
6428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6429printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6430	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6431	CFLAGS="$xorg_testset_save_CFLAGS"
6432fi
6433
6434if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6435	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6436		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6437	fi
6438	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6439	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6440printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6441if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6442then :
6443  printf %s "(cached) " >&6
6444else case e in #(
6445  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446/* end confdefs.h.  */
6447int i;
6448_ACEOF
6449if ac_fn_c_try_compile "$LINENO"
6450then :
6451  xorg_cv_cc_flag_unused_command_line_argument=yes
6452else case e in #(
6453  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6454esac
6455fi
6456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6457esac
6458fi
6459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6460printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6461	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6462	CFLAGS="$xorg_testset_save_CFLAGS"
6463fi
6464
6465found="no"
6466
6467	if test $found = "no" ; then
6468		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6469			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6470		fi
6471
6472		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6473			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6474		fi
6475
6476		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6477
6478		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6479printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6480		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6481		if eval test \${$cacheid+y}
6482then :
6483  printf %s "(cached) " >&6
6484else case e in #(
6485  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486/* end confdefs.h.  */
6487int i;
6488int
6489main (void)
6490{
6491
6492  ;
6493  return 0;
6494}
6495_ACEOF
6496if ac_fn_c_try_link "$LINENO"
6497then :
6498  eval $cacheid=yes
6499else case e in #(
6500  e) eval $cacheid=no ;;
6501esac
6502fi
6503rm -f core conftest.err conftest.$ac_objext conftest.beam \
6504    conftest$ac_exeext conftest.$ac_ext ;;
6505esac
6506fi
6507
6508
6509		CFLAGS="$xorg_testset_save_CFLAGS"
6510
6511		eval supported=\$$cacheid
6512		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6513printf "%s\n" "$supported" >&6; }
6514		if test "$supported" = "yes" ; then
6515			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6516			found="yes"
6517		fi
6518	fi
6519
6520
6521
6522
6523
6524# This chunk adds additional warnings that could catch undesired effects.
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538xorg_testset_save_CFLAGS="$CFLAGS"
6539
6540if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6541	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6542	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6543printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6544if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6545then :
6546  printf %s "(cached) " >&6
6547else case e in #(
6548  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549/* end confdefs.h.  */
6550int i;
6551_ACEOF
6552if ac_fn_c_try_compile "$LINENO"
6553then :
6554  xorg_cv_cc_flag_unknown_warning_option=yes
6555else case e in #(
6556  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6557esac
6558fi
6559rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6560esac
6561fi
6562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6563printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6564	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6565	CFLAGS="$xorg_testset_save_CFLAGS"
6566fi
6567
6568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6569	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6570		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6571	fi
6572	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6573	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6574printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6575if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6576then :
6577  printf %s "(cached) " >&6
6578else case e in #(
6579  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580/* end confdefs.h.  */
6581int i;
6582_ACEOF
6583if ac_fn_c_try_compile "$LINENO"
6584then :
6585  xorg_cv_cc_flag_unused_command_line_argument=yes
6586else case e in #(
6587  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6588esac
6589fi
6590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6591esac
6592fi
6593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6594printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6595	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6596	CFLAGS="$xorg_testset_save_CFLAGS"
6597fi
6598
6599found="no"
6600
6601	if test $found = "no" ; then
6602		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6603			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6604		fi
6605
6606		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6607			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6608		fi
6609
6610		CFLAGS="$CFLAGS -Wunused"
6611
6612		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6613printf %s "checking if $CC supports -Wunused... " >&6; }
6614		cacheid=xorg_cv_cc_flag__Wunused
6615		if eval test \${$cacheid+y}
6616then :
6617  printf %s "(cached) " >&6
6618else case e in #(
6619  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h.  */
6621int i;
6622int
6623main (void)
6624{
6625
6626  ;
6627  return 0;
6628}
6629_ACEOF
6630if ac_fn_c_try_link "$LINENO"
6631then :
6632  eval $cacheid=yes
6633else case e in #(
6634  e) eval $cacheid=no ;;
6635esac
6636fi
6637rm -f core conftest.err conftest.$ac_objext conftest.beam \
6638    conftest$ac_exeext conftest.$ac_ext ;;
6639esac
6640fi
6641
6642
6643		CFLAGS="$xorg_testset_save_CFLAGS"
6644
6645		eval supported=\$$cacheid
6646		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6647printf "%s\n" "$supported" >&6; }
6648		if test "$supported" = "yes" ; then
6649			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6650			found="yes"
6651		fi
6652	fi
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668xorg_testset_save_CFLAGS="$CFLAGS"
6669
6670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6671	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6672	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6673printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6674if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6675then :
6676  printf %s "(cached) " >&6
6677else case e in #(
6678  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679/* end confdefs.h.  */
6680int i;
6681_ACEOF
6682if ac_fn_c_try_compile "$LINENO"
6683then :
6684  xorg_cv_cc_flag_unknown_warning_option=yes
6685else case e in #(
6686  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6687esac
6688fi
6689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6690esac
6691fi
6692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6693printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6694	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6695	CFLAGS="$xorg_testset_save_CFLAGS"
6696fi
6697
6698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6699	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6700		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6701	fi
6702	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6703	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6704printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6705if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6706then :
6707  printf %s "(cached) " >&6
6708else case e in #(
6709  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710/* end confdefs.h.  */
6711int i;
6712_ACEOF
6713if ac_fn_c_try_compile "$LINENO"
6714then :
6715  xorg_cv_cc_flag_unused_command_line_argument=yes
6716else case e in #(
6717  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6718esac
6719fi
6720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6721esac
6722fi
6723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6724printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6725	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6726	CFLAGS="$xorg_testset_save_CFLAGS"
6727fi
6728
6729found="no"
6730
6731	if test $found = "no" ; then
6732		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6733			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6734		fi
6735
6736		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6737			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6738		fi
6739
6740		CFLAGS="$CFLAGS -Wuninitialized"
6741
6742		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6743printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6744		cacheid=xorg_cv_cc_flag__Wuninitialized
6745		if eval test \${$cacheid+y}
6746then :
6747  printf %s "(cached) " >&6
6748else case e in #(
6749  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750/* end confdefs.h.  */
6751int i;
6752int
6753main (void)
6754{
6755
6756  ;
6757  return 0;
6758}
6759_ACEOF
6760if ac_fn_c_try_link "$LINENO"
6761then :
6762  eval $cacheid=yes
6763else case e in #(
6764  e) eval $cacheid=no ;;
6765esac
6766fi
6767rm -f core conftest.err conftest.$ac_objext conftest.beam \
6768    conftest$ac_exeext conftest.$ac_ext ;;
6769esac
6770fi
6771
6772
6773		CFLAGS="$xorg_testset_save_CFLAGS"
6774
6775		eval supported=\$$cacheid
6776		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6777printf "%s\n" "$supported" >&6; }
6778		if test "$supported" = "yes" ; then
6779			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6780			found="yes"
6781		fi
6782	fi
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798xorg_testset_save_CFLAGS="$CFLAGS"
6799
6800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6801	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6802	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6803printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6804if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6805then :
6806  printf %s "(cached) " >&6
6807else case e in #(
6808  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809/* end confdefs.h.  */
6810int i;
6811_ACEOF
6812if ac_fn_c_try_compile "$LINENO"
6813then :
6814  xorg_cv_cc_flag_unknown_warning_option=yes
6815else case e in #(
6816  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6817esac
6818fi
6819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6820esac
6821fi
6822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6823printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6824	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6825	CFLAGS="$xorg_testset_save_CFLAGS"
6826fi
6827
6828if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6829	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6830		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6831	fi
6832	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6833	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6834printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6835if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6836then :
6837  printf %s "(cached) " >&6
6838else case e in #(
6839  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840/* end confdefs.h.  */
6841int i;
6842_ACEOF
6843if ac_fn_c_try_compile "$LINENO"
6844then :
6845  xorg_cv_cc_flag_unused_command_line_argument=yes
6846else case e in #(
6847  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6848esac
6849fi
6850rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6851esac
6852fi
6853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6854printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6855	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6856	CFLAGS="$xorg_testset_save_CFLAGS"
6857fi
6858
6859found="no"
6860
6861	if test $found = "no" ; then
6862		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6863			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6864		fi
6865
6866		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6867			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6868		fi
6869
6870		CFLAGS="$CFLAGS -Wshadow"
6871
6872		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6873printf %s "checking if $CC supports -Wshadow... " >&6; }
6874		cacheid=xorg_cv_cc_flag__Wshadow
6875		if eval test \${$cacheid+y}
6876then :
6877  printf %s "(cached) " >&6
6878else case e in #(
6879  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880/* end confdefs.h.  */
6881int i;
6882int
6883main (void)
6884{
6885
6886  ;
6887  return 0;
6888}
6889_ACEOF
6890if ac_fn_c_try_link "$LINENO"
6891then :
6892  eval $cacheid=yes
6893else case e in #(
6894  e) eval $cacheid=no ;;
6895esac
6896fi
6897rm -f core conftest.err conftest.$ac_objext conftest.beam \
6898    conftest$ac_exeext conftest.$ac_ext ;;
6899esac
6900fi
6901
6902
6903		CFLAGS="$xorg_testset_save_CFLAGS"
6904
6905		eval supported=\$$cacheid
6906		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6907printf "%s\n" "$supported" >&6; }
6908		if test "$supported" = "yes" ; then
6909			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6910			found="yes"
6911		fi
6912	fi
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928xorg_testset_save_CFLAGS="$CFLAGS"
6929
6930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6931	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6932	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6933printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6934if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6935then :
6936  printf %s "(cached) " >&6
6937else case e in #(
6938  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939/* end confdefs.h.  */
6940int i;
6941_ACEOF
6942if ac_fn_c_try_compile "$LINENO"
6943then :
6944  xorg_cv_cc_flag_unknown_warning_option=yes
6945else case e in #(
6946  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6947esac
6948fi
6949rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6950esac
6951fi
6952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6953printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6954	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6955	CFLAGS="$xorg_testset_save_CFLAGS"
6956fi
6957
6958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6959	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6960		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6961	fi
6962	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6963	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6964printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6965if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6966then :
6967  printf %s "(cached) " >&6
6968else case e in #(
6969  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970/* end confdefs.h.  */
6971int i;
6972_ACEOF
6973if ac_fn_c_try_compile "$LINENO"
6974then :
6975  xorg_cv_cc_flag_unused_command_line_argument=yes
6976else case e in #(
6977  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6978esac
6979fi
6980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6981esac
6982fi
6983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6984printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6985	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6986	CFLAGS="$xorg_testset_save_CFLAGS"
6987fi
6988
6989found="no"
6990
6991	if test $found = "no" ; then
6992		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6993			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6994		fi
6995
6996		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6997			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6998		fi
6999
7000		CFLAGS="$CFLAGS -Wmissing-noreturn"
7001
7002		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7003printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7004		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7005		if eval test \${$cacheid+y}
7006then :
7007  printf %s "(cached) " >&6
7008else case e in #(
7009  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010/* end confdefs.h.  */
7011int i;
7012int
7013main (void)
7014{
7015
7016  ;
7017  return 0;
7018}
7019_ACEOF
7020if ac_fn_c_try_link "$LINENO"
7021then :
7022  eval $cacheid=yes
7023else case e in #(
7024  e) eval $cacheid=no ;;
7025esac
7026fi
7027rm -f core conftest.err conftest.$ac_objext conftest.beam \
7028    conftest$ac_exeext conftest.$ac_ext ;;
7029esac
7030fi
7031
7032
7033		CFLAGS="$xorg_testset_save_CFLAGS"
7034
7035		eval supported=\$$cacheid
7036		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7037printf "%s\n" "$supported" >&6; }
7038		if test "$supported" = "yes" ; then
7039			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7040			found="yes"
7041		fi
7042	fi
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058xorg_testset_save_CFLAGS="$CFLAGS"
7059
7060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7061	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7062	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7063printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7064if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7065then :
7066  printf %s "(cached) " >&6
7067else case e in #(
7068  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069/* end confdefs.h.  */
7070int i;
7071_ACEOF
7072if ac_fn_c_try_compile "$LINENO"
7073then :
7074  xorg_cv_cc_flag_unknown_warning_option=yes
7075else case e in #(
7076  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7077esac
7078fi
7079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7080esac
7081fi
7082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7083printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7084	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7085	CFLAGS="$xorg_testset_save_CFLAGS"
7086fi
7087
7088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7089	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7090		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7091	fi
7092	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7093	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7094printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7095if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7096then :
7097  printf %s "(cached) " >&6
7098else case e in #(
7099  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100/* end confdefs.h.  */
7101int i;
7102_ACEOF
7103if ac_fn_c_try_compile "$LINENO"
7104then :
7105  xorg_cv_cc_flag_unused_command_line_argument=yes
7106else case e in #(
7107  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7108esac
7109fi
7110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7111esac
7112fi
7113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7114printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7115	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7116	CFLAGS="$xorg_testset_save_CFLAGS"
7117fi
7118
7119found="no"
7120
7121	if test $found = "no" ; then
7122		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7123			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7124		fi
7125
7126		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7127			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7128		fi
7129
7130		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7131
7132		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7133printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7134		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7135		if eval test \${$cacheid+y}
7136then :
7137  printf %s "(cached) " >&6
7138else case e in #(
7139  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140/* end confdefs.h.  */
7141int i;
7142int
7143main (void)
7144{
7145
7146  ;
7147  return 0;
7148}
7149_ACEOF
7150if ac_fn_c_try_link "$LINENO"
7151then :
7152  eval $cacheid=yes
7153else case e in #(
7154  e) eval $cacheid=no ;;
7155esac
7156fi
7157rm -f core conftest.err conftest.$ac_objext conftest.beam \
7158    conftest$ac_exeext conftest.$ac_ext ;;
7159esac
7160fi
7161
7162
7163		CFLAGS="$xorg_testset_save_CFLAGS"
7164
7165		eval supported=\$$cacheid
7166		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7167printf "%s\n" "$supported" >&6; }
7168		if test "$supported" = "yes" ; then
7169			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7170			found="yes"
7171		fi
7172	fi
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188xorg_testset_save_CFLAGS="$CFLAGS"
7189
7190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7191	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7192	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7193printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7194if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7195then :
7196  printf %s "(cached) " >&6
7197else case e in #(
7198  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199/* end confdefs.h.  */
7200int i;
7201_ACEOF
7202if ac_fn_c_try_compile "$LINENO"
7203then :
7204  xorg_cv_cc_flag_unknown_warning_option=yes
7205else case e in #(
7206  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7207esac
7208fi
7209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7210esac
7211fi
7212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7213printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7214	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7215	CFLAGS="$xorg_testset_save_CFLAGS"
7216fi
7217
7218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7219	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7220		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7221	fi
7222	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7223	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7224printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7225if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7226then :
7227  printf %s "(cached) " >&6
7228else case e in #(
7229  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230/* end confdefs.h.  */
7231int i;
7232_ACEOF
7233if ac_fn_c_try_compile "$LINENO"
7234then :
7235  xorg_cv_cc_flag_unused_command_line_argument=yes
7236else case e in #(
7237  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7238esac
7239fi
7240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7241esac
7242fi
7243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7244printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7245	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7246	CFLAGS="$xorg_testset_save_CFLAGS"
7247fi
7248
7249found="no"
7250
7251	if test $found = "no" ; then
7252		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7253			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7254		fi
7255
7256		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7257			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7258		fi
7259
7260		CFLAGS="$CFLAGS -Wredundant-decls"
7261
7262		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7263printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7264		cacheid=xorg_cv_cc_flag__Wredundant_decls
7265		if eval test \${$cacheid+y}
7266then :
7267  printf %s "(cached) " >&6
7268else case e in #(
7269  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270/* end confdefs.h.  */
7271int i;
7272int
7273main (void)
7274{
7275
7276  ;
7277  return 0;
7278}
7279_ACEOF
7280if ac_fn_c_try_link "$LINENO"
7281then :
7282  eval $cacheid=yes
7283else case e in #(
7284  e) eval $cacheid=no ;;
7285esac
7286fi
7287rm -f core conftest.err conftest.$ac_objext conftest.beam \
7288    conftest$ac_exeext conftest.$ac_ext ;;
7289esac
7290fi
7291
7292
7293		CFLAGS="$xorg_testset_save_CFLAGS"
7294
7295		eval supported=\$$cacheid
7296		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7297printf "%s\n" "$supported" >&6; }
7298		if test "$supported" = "yes" ; then
7299			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7300			found="yes"
7301		fi
7302	fi
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318xorg_testset_save_CFLAGS="$CFLAGS"
7319
7320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7321	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7322	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7323printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7324if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7325then :
7326  printf %s "(cached) " >&6
7327else case e in #(
7328  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329/* end confdefs.h.  */
7330int i;
7331_ACEOF
7332if ac_fn_c_try_compile "$LINENO"
7333then :
7334  xorg_cv_cc_flag_unknown_warning_option=yes
7335else case e in #(
7336  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7337esac
7338fi
7339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7340esac
7341fi
7342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7343printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7344	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7345	CFLAGS="$xorg_testset_save_CFLAGS"
7346fi
7347
7348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7349	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7350		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7351	fi
7352	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7353	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7354printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7355if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7356then :
7357  printf %s "(cached) " >&6
7358else case e in #(
7359  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360/* end confdefs.h.  */
7361int i;
7362_ACEOF
7363if ac_fn_c_try_compile "$LINENO"
7364then :
7365  xorg_cv_cc_flag_unused_command_line_argument=yes
7366else case e in #(
7367  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7368esac
7369fi
7370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7371esac
7372fi
7373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7374printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7375	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7376	CFLAGS="$xorg_testset_save_CFLAGS"
7377fi
7378
7379found="no"
7380
7381	if test $found = "no" ; then
7382		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7383			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7384		fi
7385
7386		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7387			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7388		fi
7389
7390		CFLAGS="$CFLAGS -Wlogical-op"
7391
7392		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7393printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7394		cacheid=xorg_cv_cc_flag__Wlogical_op
7395		if eval test \${$cacheid+y}
7396then :
7397  printf %s "(cached) " >&6
7398else case e in #(
7399  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400/* end confdefs.h.  */
7401int i;
7402int
7403main (void)
7404{
7405
7406  ;
7407  return 0;
7408}
7409_ACEOF
7410if ac_fn_c_try_link "$LINENO"
7411then :
7412  eval $cacheid=yes
7413else case e in #(
7414  e) eval $cacheid=no ;;
7415esac
7416fi
7417rm -f core conftest.err conftest.$ac_objext conftest.beam \
7418    conftest$ac_exeext conftest.$ac_ext ;;
7419esac
7420fi
7421
7422
7423		CFLAGS="$xorg_testset_save_CFLAGS"
7424
7425		eval supported=\$$cacheid
7426		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7427printf "%s\n" "$supported" >&6; }
7428		if test "$supported" = "yes" ; then
7429			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7430			found="yes"
7431		fi
7432	fi
7433
7434
7435
7436# These are currently disabled because they are noisy.  They will be enabled
7437# in the future once the codebase is sufficiently modernized to silence
7438# them.  For now, I don't want them to drown out the other warnings.
7439# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7440# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7441# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7442
7443# Turn some warnings into errors, so we don't accidentally get successful builds
7444# when there are problems that should be fixed.
7445
7446if test "x$SELECTIVE_WERROR" = "xyes" ; then
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460xorg_testset_save_CFLAGS="$CFLAGS"
7461
7462if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7463	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7464	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7465printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7466if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7467then :
7468  printf %s "(cached) " >&6
7469else case e in #(
7470  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471/* end confdefs.h.  */
7472int i;
7473_ACEOF
7474if ac_fn_c_try_compile "$LINENO"
7475then :
7476  xorg_cv_cc_flag_unknown_warning_option=yes
7477else case e in #(
7478  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7479esac
7480fi
7481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7482esac
7483fi
7484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7485printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7486	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7487	CFLAGS="$xorg_testset_save_CFLAGS"
7488fi
7489
7490if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7491	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7492		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7493	fi
7494	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7495	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7496printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7497if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7498then :
7499  printf %s "(cached) " >&6
7500else case e in #(
7501  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502/* end confdefs.h.  */
7503int i;
7504_ACEOF
7505if ac_fn_c_try_compile "$LINENO"
7506then :
7507  xorg_cv_cc_flag_unused_command_line_argument=yes
7508else case e in #(
7509  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7510esac
7511fi
7512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7513esac
7514fi
7515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7516printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7517	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7518	CFLAGS="$xorg_testset_save_CFLAGS"
7519fi
7520
7521found="no"
7522
7523	if test $found = "no" ; then
7524		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7525			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7526		fi
7527
7528		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7529			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7530		fi
7531
7532		CFLAGS="$CFLAGS -Werror=implicit"
7533
7534		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7535printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7536		cacheid=xorg_cv_cc_flag__Werror_implicit
7537		if eval test \${$cacheid+y}
7538then :
7539  printf %s "(cached) " >&6
7540else case e in #(
7541  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542/* end confdefs.h.  */
7543int i;
7544int
7545main (void)
7546{
7547
7548  ;
7549  return 0;
7550}
7551_ACEOF
7552if ac_fn_c_try_link "$LINENO"
7553then :
7554  eval $cacheid=yes
7555else case e in #(
7556  e) eval $cacheid=no ;;
7557esac
7558fi
7559rm -f core conftest.err conftest.$ac_objext conftest.beam \
7560    conftest$ac_exeext conftest.$ac_ext ;;
7561esac
7562fi
7563
7564
7565		CFLAGS="$xorg_testset_save_CFLAGS"
7566
7567		eval supported=\$$cacheid
7568		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7569printf "%s\n" "$supported" >&6; }
7570		if test "$supported" = "yes" ; then
7571			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7572			found="yes"
7573		fi
7574	fi
7575
7576	if test $found = "no" ; then
7577		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7578			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7579		fi
7580
7581		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7582			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7583		fi
7584
7585		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7586
7587		{ 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
7588printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7589		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7590		if eval test \${$cacheid+y}
7591then :
7592  printf %s "(cached) " >&6
7593else case e in #(
7594  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595/* end confdefs.h.  */
7596int i;
7597int
7598main (void)
7599{
7600
7601  ;
7602  return 0;
7603}
7604_ACEOF
7605if ac_fn_c_try_link "$LINENO"
7606then :
7607  eval $cacheid=yes
7608else case e in #(
7609  e) eval $cacheid=no ;;
7610esac
7611fi
7612rm -f core conftest.err conftest.$ac_objext conftest.beam \
7613    conftest$ac_exeext conftest.$ac_ext ;;
7614esac
7615fi
7616
7617
7618		CFLAGS="$xorg_testset_save_CFLAGS"
7619
7620		eval supported=\$$cacheid
7621		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7622printf "%s\n" "$supported" >&6; }
7623		if test "$supported" = "yes" ; then
7624			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7625			found="yes"
7626		fi
7627	fi
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643xorg_testset_save_CFLAGS="$CFLAGS"
7644
7645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7646	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7647	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7648printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7649if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7650then :
7651  printf %s "(cached) " >&6
7652else case e in #(
7653  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654/* end confdefs.h.  */
7655int i;
7656_ACEOF
7657if ac_fn_c_try_compile "$LINENO"
7658then :
7659  xorg_cv_cc_flag_unknown_warning_option=yes
7660else case e in #(
7661  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7662esac
7663fi
7664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7665esac
7666fi
7667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7668printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7669	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7670	CFLAGS="$xorg_testset_save_CFLAGS"
7671fi
7672
7673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7674	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7675		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7676	fi
7677	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7678	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7679printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7680if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7681then :
7682  printf %s "(cached) " >&6
7683else case e in #(
7684  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685/* end confdefs.h.  */
7686int i;
7687_ACEOF
7688if ac_fn_c_try_compile "$LINENO"
7689then :
7690  xorg_cv_cc_flag_unused_command_line_argument=yes
7691else case e in #(
7692  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7693esac
7694fi
7695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7696esac
7697fi
7698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7699printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7700	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7701	CFLAGS="$xorg_testset_save_CFLAGS"
7702fi
7703
7704found="no"
7705
7706	if test $found = "no" ; then
7707		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7708			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7709		fi
7710
7711		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7712			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7713		fi
7714
7715		CFLAGS="$CFLAGS -Werror=nonnull"
7716
7717		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7718printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7719		cacheid=xorg_cv_cc_flag__Werror_nonnull
7720		if eval test \${$cacheid+y}
7721then :
7722  printf %s "(cached) " >&6
7723else case e in #(
7724  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725/* end confdefs.h.  */
7726int i;
7727int
7728main (void)
7729{
7730
7731  ;
7732  return 0;
7733}
7734_ACEOF
7735if ac_fn_c_try_link "$LINENO"
7736then :
7737  eval $cacheid=yes
7738else case e in #(
7739  e) eval $cacheid=no ;;
7740esac
7741fi
7742rm -f core conftest.err conftest.$ac_objext conftest.beam \
7743    conftest$ac_exeext conftest.$ac_ext ;;
7744esac
7745fi
7746
7747
7748		CFLAGS="$xorg_testset_save_CFLAGS"
7749
7750		eval supported=\$$cacheid
7751		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7752printf "%s\n" "$supported" >&6; }
7753		if test "$supported" = "yes" ; then
7754			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7755			found="yes"
7756		fi
7757	fi
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773xorg_testset_save_CFLAGS="$CFLAGS"
7774
7775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7776	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7777	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7778printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7779if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7780then :
7781  printf %s "(cached) " >&6
7782else case e in #(
7783  e) 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_unknown_warning_option=yes
7790else case e in #(
7791  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7792esac
7793fi
7794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7795esac
7796fi
7797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7798printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7799	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7800	CFLAGS="$xorg_testset_save_CFLAGS"
7801fi
7802
7803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7804	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7805		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7806	fi
7807	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7808	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7809printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7810if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7811then :
7812  printf %s "(cached) " >&6
7813else case e in #(
7814  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815/* end confdefs.h.  */
7816int i;
7817_ACEOF
7818if ac_fn_c_try_compile "$LINENO"
7819then :
7820  xorg_cv_cc_flag_unused_command_line_argument=yes
7821else case e in #(
7822  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7823esac
7824fi
7825rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7826esac
7827fi
7828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7829printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7830	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7831	CFLAGS="$xorg_testset_save_CFLAGS"
7832fi
7833
7834found="no"
7835
7836	if test $found = "no" ; then
7837		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7838			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7839		fi
7840
7841		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7842			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7843		fi
7844
7845		CFLAGS="$CFLAGS -Werror=init-self"
7846
7847		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7848printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7849		cacheid=xorg_cv_cc_flag__Werror_init_self
7850		if eval test \${$cacheid+y}
7851then :
7852  printf %s "(cached) " >&6
7853else case e in #(
7854  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855/* end confdefs.h.  */
7856int i;
7857int
7858main (void)
7859{
7860
7861  ;
7862  return 0;
7863}
7864_ACEOF
7865if ac_fn_c_try_link "$LINENO"
7866then :
7867  eval $cacheid=yes
7868else case e in #(
7869  e) eval $cacheid=no ;;
7870esac
7871fi
7872rm -f core conftest.err conftest.$ac_objext conftest.beam \
7873    conftest$ac_exeext conftest.$ac_ext ;;
7874esac
7875fi
7876
7877
7878		CFLAGS="$xorg_testset_save_CFLAGS"
7879
7880		eval supported=\$$cacheid
7881		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7882printf "%s\n" "$supported" >&6; }
7883		if test "$supported" = "yes" ; then
7884			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7885			found="yes"
7886		fi
7887	fi
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903xorg_testset_save_CFLAGS="$CFLAGS"
7904
7905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7906	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7907	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7908printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7909if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7910then :
7911  printf %s "(cached) " >&6
7912else case e in #(
7913  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914/* end confdefs.h.  */
7915int i;
7916_ACEOF
7917if ac_fn_c_try_compile "$LINENO"
7918then :
7919  xorg_cv_cc_flag_unknown_warning_option=yes
7920else case e in #(
7921  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7922esac
7923fi
7924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7925esac
7926fi
7927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7928printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7929	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7930	CFLAGS="$xorg_testset_save_CFLAGS"
7931fi
7932
7933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7934	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7935		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7936	fi
7937	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7938	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7939printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7940if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7941then :
7942  printf %s "(cached) " >&6
7943else case e in #(
7944  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945/* end confdefs.h.  */
7946int i;
7947_ACEOF
7948if ac_fn_c_try_compile "$LINENO"
7949then :
7950  xorg_cv_cc_flag_unused_command_line_argument=yes
7951else case e in #(
7952  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7953esac
7954fi
7955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7956esac
7957fi
7958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7959printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7960	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7961	CFLAGS="$xorg_testset_save_CFLAGS"
7962fi
7963
7964found="no"
7965
7966	if test $found = "no" ; then
7967		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7968			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7969		fi
7970
7971		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7972			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7973		fi
7974
7975		CFLAGS="$CFLAGS -Werror=main"
7976
7977		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7978printf %s "checking if $CC supports -Werror=main... " >&6; }
7979		cacheid=xorg_cv_cc_flag__Werror_main
7980		if eval test \${$cacheid+y}
7981then :
7982  printf %s "(cached) " >&6
7983else case e in #(
7984  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985/* end confdefs.h.  */
7986int i;
7987int
7988main (void)
7989{
7990
7991  ;
7992  return 0;
7993}
7994_ACEOF
7995if ac_fn_c_try_link "$LINENO"
7996then :
7997  eval $cacheid=yes
7998else case e in #(
7999  e) eval $cacheid=no ;;
8000esac
8001fi
8002rm -f core conftest.err conftest.$ac_objext conftest.beam \
8003    conftest$ac_exeext conftest.$ac_ext ;;
8004esac
8005fi
8006
8007
8008		CFLAGS="$xorg_testset_save_CFLAGS"
8009
8010		eval supported=\$$cacheid
8011		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8012printf "%s\n" "$supported" >&6; }
8013		if test "$supported" = "yes" ; then
8014			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8015			found="yes"
8016		fi
8017	fi
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033xorg_testset_save_CFLAGS="$CFLAGS"
8034
8035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8036	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8037	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8038printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8039if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8040then :
8041  printf %s "(cached) " >&6
8042else case e in #(
8043  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044/* end confdefs.h.  */
8045int i;
8046_ACEOF
8047if ac_fn_c_try_compile "$LINENO"
8048then :
8049  xorg_cv_cc_flag_unknown_warning_option=yes
8050else case e in #(
8051  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8052esac
8053fi
8054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8055esac
8056fi
8057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8058printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8059	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8060	CFLAGS="$xorg_testset_save_CFLAGS"
8061fi
8062
8063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8064	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8065		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8066	fi
8067	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8068	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8069printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8070if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8071then :
8072  printf %s "(cached) " >&6
8073else case e in #(
8074  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075/* end confdefs.h.  */
8076int i;
8077_ACEOF
8078if ac_fn_c_try_compile "$LINENO"
8079then :
8080  xorg_cv_cc_flag_unused_command_line_argument=yes
8081else case e in #(
8082  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8083esac
8084fi
8085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8086esac
8087fi
8088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8089printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8090	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8091	CFLAGS="$xorg_testset_save_CFLAGS"
8092fi
8093
8094found="no"
8095
8096	if test $found = "no" ; then
8097		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8098			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8099		fi
8100
8101		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8102			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8103		fi
8104
8105		CFLAGS="$CFLAGS -Werror=missing-braces"
8106
8107		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8108printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8109		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8110		if eval test \${$cacheid+y}
8111then :
8112  printf %s "(cached) " >&6
8113else case e in #(
8114  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115/* end confdefs.h.  */
8116int i;
8117int
8118main (void)
8119{
8120
8121  ;
8122  return 0;
8123}
8124_ACEOF
8125if ac_fn_c_try_link "$LINENO"
8126then :
8127  eval $cacheid=yes
8128else case e in #(
8129  e) eval $cacheid=no ;;
8130esac
8131fi
8132rm -f core conftest.err conftest.$ac_objext conftest.beam \
8133    conftest$ac_exeext conftest.$ac_ext ;;
8134esac
8135fi
8136
8137
8138		CFLAGS="$xorg_testset_save_CFLAGS"
8139
8140		eval supported=\$$cacheid
8141		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8142printf "%s\n" "$supported" >&6; }
8143		if test "$supported" = "yes" ; then
8144			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8145			found="yes"
8146		fi
8147	fi
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163xorg_testset_save_CFLAGS="$CFLAGS"
8164
8165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8166	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8167	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8168printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8169if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8170then :
8171  printf %s "(cached) " >&6
8172else case e in #(
8173  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174/* end confdefs.h.  */
8175int i;
8176_ACEOF
8177if ac_fn_c_try_compile "$LINENO"
8178then :
8179  xorg_cv_cc_flag_unknown_warning_option=yes
8180else case e in #(
8181  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8182esac
8183fi
8184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8185esac
8186fi
8187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8188printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8189	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8190	CFLAGS="$xorg_testset_save_CFLAGS"
8191fi
8192
8193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8194	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8195		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8196	fi
8197	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8198	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8199printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8200if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8201then :
8202  printf %s "(cached) " >&6
8203else case e in #(
8204  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205/* end confdefs.h.  */
8206int i;
8207_ACEOF
8208if ac_fn_c_try_compile "$LINENO"
8209then :
8210  xorg_cv_cc_flag_unused_command_line_argument=yes
8211else case e in #(
8212  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8213esac
8214fi
8215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8216esac
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=sequence-point"
8236
8237		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8238printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8239		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8240		if eval test \${$cacheid+y}
8241then :
8242  printf %s "(cached) " >&6
8243else case e in #(
8244  e) 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 case e in #(
8259  e) eval $cacheid=no ;;
8260esac
8261fi
8262rm -f core conftest.err conftest.$ac_objext conftest.beam \
8263    conftest$ac_exeext conftest.$ac_ext ;;
8264esac
8265fi
8266
8267
8268		CFLAGS="$xorg_testset_save_CFLAGS"
8269
8270		eval supported=\$$cacheid
8271		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8272printf "%s\n" "$supported" >&6; }
8273		if test "$supported" = "yes" ; then
8274			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8275			found="yes"
8276		fi
8277	fi
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293xorg_testset_save_CFLAGS="$CFLAGS"
8294
8295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8296	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8297	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8298printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8299if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8300then :
8301  printf %s "(cached) " >&6
8302else case e in #(
8303  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304/* end confdefs.h.  */
8305int i;
8306_ACEOF
8307if ac_fn_c_try_compile "$LINENO"
8308then :
8309  xorg_cv_cc_flag_unknown_warning_option=yes
8310else case e in #(
8311  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8312esac
8313fi
8314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8315esac
8316fi
8317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8318printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8319	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8320	CFLAGS="$xorg_testset_save_CFLAGS"
8321fi
8322
8323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8324	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8325		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8326	fi
8327	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8328	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8329printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8330if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8331then :
8332  printf %s "(cached) " >&6
8333else case e in #(
8334  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335/* end confdefs.h.  */
8336int i;
8337_ACEOF
8338if ac_fn_c_try_compile "$LINENO"
8339then :
8340  xorg_cv_cc_flag_unused_command_line_argument=yes
8341else case e in #(
8342  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8343esac
8344fi
8345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8346esac
8347fi
8348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8349printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8350	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8351	CFLAGS="$xorg_testset_save_CFLAGS"
8352fi
8353
8354found="no"
8355
8356	if test $found = "no" ; then
8357		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8358			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8359		fi
8360
8361		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8362			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8363		fi
8364
8365		CFLAGS="$CFLAGS -Werror=return-type"
8366
8367		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8368printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8369		cacheid=xorg_cv_cc_flag__Werror_return_type
8370		if eval test \${$cacheid+y}
8371then :
8372  printf %s "(cached) " >&6
8373else case e in #(
8374  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375/* end confdefs.h.  */
8376int i;
8377int
8378main (void)
8379{
8380
8381  ;
8382  return 0;
8383}
8384_ACEOF
8385if ac_fn_c_try_link "$LINENO"
8386then :
8387  eval $cacheid=yes
8388else case e in #(
8389  e) eval $cacheid=no ;;
8390esac
8391fi
8392rm -f core conftest.err conftest.$ac_objext conftest.beam \
8393    conftest$ac_exeext conftest.$ac_ext ;;
8394esac
8395fi
8396
8397
8398		CFLAGS="$xorg_testset_save_CFLAGS"
8399
8400		eval supported=\$$cacheid
8401		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8402printf "%s\n" "$supported" >&6; }
8403		if test "$supported" = "yes" ; then
8404			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8405			found="yes"
8406		fi
8407	fi
8408
8409	if test $found = "no" ; then
8410		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8411			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8412		fi
8413
8414		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8415			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8416		fi
8417
8418		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8419
8420		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8421printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8422		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8423		if eval test \${$cacheid+y}
8424then :
8425  printf %s "(cached) " >&6
8426else case e in #(
8427  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428/* end confdefs.h.  */
8429int i;
8430int
8431main (void)
8432{
8433
8434  ;
8435  return 0;
8436}
8437_ACEOF
8438if ac_fn_c_try_link "$LINENO"
8439then :
8440  eval $cacheid=yes
8441else case e in #(
8442  e) eval $cacheid=no ;;
8443esac
8444fi
8445rm -f core conftest.err conftest.$ac_objext conftest.beam \
8446    conftest$ac_exeext conftest.$ac_ext ;;
8447esac
8448fi
8449
8450
8451		CFLAGS="$xorg_testset_save_CFLAGS"
8452
8453		eval supported=\$$cacheid
8454		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8455printf "%s\n" "$supported" >&6; }
8456		if test "$supported" = "yes" ; then
8457			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8458			found="yes"
8459		fi
8460	fi
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476xorg_testset_save_CFLAGS="$CFLAGS"
8477
8478if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8479	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8480	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8481printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8482if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8483then :
8484  printf %s "(cached) " >&6
8485else case e in #(
8486  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487/* end confdefs.h.  */
8488int i;
8489_ACEOF
8490if ac_fn_c_try_compile "$LINENO"
8491then :
8492  xorg_cv_cc_flag_unknown_warning_option=yes
8493else case e in #(
8494  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8495esac
8496fi
8497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8498esac
8499fi
8500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8501printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8502	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8503	CFLAGS="$xorg_testset_save_CFLAGS"
8504fi
8505
8506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8507	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8508		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8509	fi
8510	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8511	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8512printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8513if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8514then :
8515  printf %s "(cached) " >&6
8516else case e in #(
8517  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518/* end confdefs.h.  */
8519int i;
8520_ACEOF
8521if ac_fn_c_try_compile "$LINENO"
8522then :
8523  xorg_cv_cc_flag_unused_command_line_argument=yes
8524else case e in #(
8525  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8526esac
8527fi
8528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8529esac
8530fi
8531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8532printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8533	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8534	CFLAGS="$xorg_testset_save_CFLAGS"
8535fi
8536
8537found="no"
8538
8539	if test $found = "no" ; then
8540		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8541			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8542		fi
8543
8544		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8545			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8546		fi
8547
8548		CFLAGS="$CFLAGS -Werror=trigraphs"
8549
8550		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8551printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8552		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8553		if eval test \${$cacheid+y}
8554then :
8555  printf %s "(cached) " >&6
8556else case e in #(
8557  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558/* end confdefs.h.  */
8559int i;
8560int
8561main (void)
8562{
8563
8564  ;
8565  return 0;
8566}
8567_ACEOF
8568if ac_fn_c_try_link "$LINENO"
8569then :
8570  eval $cacheid=yes
8571else case e in #(
8572  e) eval $cacheid=no ;;
8573esac
8574fi
8575rm -f core conftest.err conftest.$ac_objext conftest.beam \
8576    conftest$ac_exeext conftest.$ac_ext ;;
8577esac
8578fi
8579
8580
8581		CFLAGS="$xorg_testset_save_CFLAGS"
8582
8583		eval supported=\$$cacheid
8584		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8585printf "%s\n" "$supported" >&6; }
8586		if test "$supported" = "yes" ; then
8587			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8588			found="yes"
8589		fi
8590	fi
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606xorg_testset_save_CFLAGS="$CFLAGS"
8607
8608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8609	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8610	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8611printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8612if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8613then :
8614  printf %s "(cached) " >&6
8615else case e in #(
8616  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617/* end confdefs.h.  */
8618int i;
8619_ACEOF
8620if ac_fn_c_try_compile "$LINENO"
8621then :
8622  xorg_cv_cc_flag_unknown_warning_option=yes
8623else case e in #(
8624  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8625esac
8626fi
8627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8628esac
8629fi
8630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8631printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8632	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8633	CFLAGS="$xorg_testset_save_CFLAGS"
8634fi
8635
8636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8637	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8638		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8639	fi
8640	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8641	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8642printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8643if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8644then :
8645  printf %s "(cached) " >&6
8646else case e in #(
8647  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648/* end confdefs.h.  */
8649int i;
8650_ACEOF
8651if ac_fn_c_try_compile "$LINENO"
8652then :
8653  xorg_cv_cc_flag_unused_command_line_argument=yes
8654else case e in #(
8655  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8656esac
8657fi
8658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8659esac
8660fi
8661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8662printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8663	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8664	CFLAGS="$xorg_testset_save_CFLAGS"
8665fi
8666
8667found="no"
8668
8669	if test $found = "no" ; then
8670		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8671			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8672		fi
8673
8674		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8675			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8676		fi
8677
8678		CFLAGS="$CFLAGS -Werror=array-bounds"
8679
8680		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8681printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8682		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8683		if eval test \${$cacheid+y}
8684then :
8685  printf %s "(cached) " >&6
8686else case e in #(
8687  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688/* end confdefs.h.  */
8689int i;
8690int
8691main (void)
8692{
8693
8694  ;
8695  return 0;
8696}
8697_ACEOF
8698if ac_fn_c_try_link "$LINENO"
8699then :
8700  eval $cacheid=yes
8701else case e in #(
8702  e) eval $cacheid=no ;;
8703esac
8704fi
8705rm -f core conftest.err conftest.$ac_objext conftest.beam \
8706    conftest$ac_exeext conftest.$ac_ext ;;
8707esac
8708fi
8709
8710
8711		CFLAGS="$xorg_testset_save_CFLAGS"
8712
8713		eval supported=\$$cacheid
8714		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8715printf "%s\n" "$supported" >&6; }
8716		if test "$supported" = "yes" ; then
8717			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8718			found="yes"
8719		fi
8720	fi
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736xorg_testset_save_CFLAGS="$CFLAGS"
8737
8738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8739	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8740	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8741printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8742if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8743then :
8744  printf %s "(cached) " >&6
8745else case e in #(
8746  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747/* end confdefs.h.  */
8748int i;
8749_ACEOF
8750if ac_fn_c_try_compile "$LINENO"
8751then :
8752  xorg_cv_cc_flag_unknown_warning_option=yes
8753else case e in #(
8754  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8755esac
8756fi
8757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8758esac
8759fi
8760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8761printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8762	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8763	CFLAGS="$xorg_testset_save_CFLAGS"
8764fi
8765
8766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8767	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8768		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8769	fi
8770	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8771	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8772printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8773if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8774then :
8775  printf %s "(cached) " >&6
8776else case e in #(
8777  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778/* end confdefs.h.  */
8779int i;
8780_ACEOF
8781if ac_fn_c_try_compile "$LINENO"
8782then :
8783  xorg_cv_cc_flag_unused_command_line_argument=yes
8784else case e in #(
8785  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8786esac
8787fi
8788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8789esac
8790fi
8791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8792printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8793	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8794	CFLAGS="$xorg_testset_save_CFLAGS"
8795fi
8796
8797found="no"
8798
8799	if test $found = "no" ; then
8800		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8801			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8802		fi
8803
8804		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8805			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8806		fi
8807
8808		CFLAGS="$CFLAGS -Werror=write-strings"
8809
8810		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8811printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8812		cacheid=xorg_cv_cc_flag__Werror_write_strings
8813		if eval test \${$cacheid+y}
8814then :
8815  printf %s "(cached) " >&6
8816else case e in #(
8817  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818/* end confdefs.h.  */
8819int i;
8820int
8821main (void)
8822{
8823
8824  ;
8825  return 0;
8826}
8827_ACEOF
8828if ac_fn_c_try_link "$LINENO"
8829then :
8830  eval $cacheid=yes
8831else case e in #(
8832  e) eval $cacheid=no ;;
8833esac
8834fi
8835rm -f core conftest.err conftest.$ac_objext conftest.beam \
8836    conftest$ac_exeext conftest.$ac_ext ;;
8837esac
8838fi
8839
8840
8841		CFLAGS="$xorg_testset_save_CFLAGS"
8842
8843		eval supported=\$$cacheid
8844		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8845printf "%s\n" "$supported" >&6; }
8846		if test "$supported" = "yes" ; then
8847			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8848			found="yes"
8849		fi
8850	fi
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866xorg_testset_save_CFLAGS="$CFLAGS"
8867
8868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8869	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8870	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8871printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8872if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8873then :
8874  printf %s "(cached) " >&6
8875else case e in #(
8876  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877/* end confdefs.h.  */
8878int i;
8879_ACEOF
8880if ac_fn_c_try_compile "$LINENO"
8881then :
8882  xorg_cv_cc_flag_unknown_warning_option=yes
8883else case e in #(
8884  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8885esac
8886fi
8887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8888esac
8889fi
8890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8891printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8892	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8893	CFLAGS="$xorg_testset_save_CFLAGS"
8894fi
8895
8896if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8897	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8898		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8899	fi
8900	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8901	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8902printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8903if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8904then :
8905  printf %s "(cached) " >&6
8906else case e in #(
8907  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908/* end confdefs.h.  */
8909int i;
8910_ACEOF
8911if ac_fn_c_try_compile "$LINENO"
8912then :
8913  xorg_cv_cc_flag_unused_command_line_argument=yes
8914else case e in #(
8915  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8916esac
8917fi
8918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8919esac
8920fi
8921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8922printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8923	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8924	CFLAGS="$xorg_testset_save_CFLAGS"
8925fi
8926
8927found="no"
8928
8929	if test $found = "no" ; then
8930		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8931			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8932		fi
8933
8934		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8935			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8936		fi
8937
8938		CFLAGS="$CFLAGS -Werror=address"
8939
8940		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8941printf %s "checking if $CC supports -Werror=address... " >&6; }
8942		cacheid=xorg_cv_cc_flag__Werror_address
8943		if eval test \${$cacheid+y}
8944then :
8945  printf %s "(cached) " >&6
8946else case e in #(
8947  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948/* end confdefs.h.  */
8949int i;
8950int
8951main (void)
8952{
8953
8954  ;
8955  return 0;
8956}
8957_ACEOF
8958if ac_fn_c_try_link "$LINENO"
8959then :
8960  eval $cacheid=yes
8961else case e in #(
8962  e) eval $cacheid=no ;;
8963esac
8964fi
8965rm -f core conftest.err conftest.$ac_objext conftest.beam \
8966    conftest$ac_exeext conftest.$ac_ext ;;
8967esac
8968fi
8969
8970
8971		CFLAGS="$xorg_testset_save_CFLAGS"
8972
8973		eval supported=\$$cacheid
8974		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8975printf "%s\n" "$supported" >&6; }
8976		if test "$supported" = "yes" ; then
8977			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8978			found="yes"
8979		fi
8980	fi
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996xorg_testset_save_CFLAGS="$CFLAGS"
8997
8998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8999	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9000	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9001printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9002if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9003then :
9004  printf %s "(cached) " >&6
9005else case e in #(
9006  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007/* end confdefs.h.  */
9008int i;
9009_ACEOF
9010if ac_fn_c_try_compile "$LINENO"
9011then :
9012  xorg_cv_cc_flag_unknown_warning_option=yes
9013else case e in #(
9014  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9015esac
9016fi
9017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9018esac
9019fi
9020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9021printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9022	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9023	CFLAGS="$xorg_testset_save_CFLAGS"
9024fi
9025
9026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9027	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9028		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9029	fi
9030	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9031	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9032printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9033if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9034then :
9035  printf %s "(cached) " >&6
9036else case e in #(
9037  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038/* end confdefs.h.  */
9039int i;
9040_ACEOF
9041if ac_fn_c_try_compile "$LINENO"
9042then :
9043  xorg_cv_cc_flag_unused_command_line_argument=yes
9044else case e in #(
9045  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9046esac
9047fi
9048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9049esac
9050fi
9051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9052printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9053	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9054	CFLAGS="$xorg_testset_save_CFLAGS"
9055fi
9056
9057found="no"
9058
9059	if test $found = "no" ; then
9060		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9061			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9062		fi
9063
9064		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9065			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9066		fi
9067
9068		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9069
9070		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9071printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9072		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9073		if eval test \${$cacheid+y}
9074then :
9075  printf %s "(cached) " >&6
9076else case e in #(
9077  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078/* end confdefs.h.  */
9079int i;
9080int
9081main (void)
9082{
9083
9084  ;
9085  return 0;
9086}
9087_ACEOF
9088if ac_fn_c_try_link "$LINENO"
9089then :
9090  eval $cacheid=yes
9091else case e in #(
9092  e) eval $cacheid=no ;;
9093esac
9094fi
9095rm -f core conftest.err conftest.$ac_objext conftest.beam \
9096    conftest$ac_exeext conftest.$ac_ext ;;
9097esac
9098fi
9099
9100
9101		CFLAGS="$xorg_testset_save_CFLAGS"
9102
9103		eval supported=\$$cacheid
9104		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9105printf "%s\n" "$supported" >&6; }
9106		if test "$supported" = "yes" ; then
9107			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9108			found="yes"
9109		fi
9110	fi
9111
9112	if test $found = "no" ; then
9113		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9114			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9115		fi
9116
9117		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9118			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9119		fi
9120
9121		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9122
9123		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9124printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9125		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9126		if eval test \${$cacheid+y}
9127then :
9128  printf %s "(cached) " >&6
9129else case e in #(
9130  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131/* end confdefs.h.  */
9132int i;
9133int
9134main (void)
9135{
9136
9137  ;
9138  return 0;
9139}
9140_ACEOF
9141if ac_fn_c_try_link "$LINENO"
9142then :
9143  eval $cacheid=yes
9144else case e in #(
9145  e) eval $cacheid=no ;;
9146esac
9147fi
9148rm -f core conftest.err conftest.$ac_objext conftest.beam \
9149    conftest$ac_exeext conftest.$ac_ext ;;
9150esac
9151fi
9152
9153
9154		CFLAGS="$xorg_testset_save_CFLAGS"
9155
9156		eval supported=\$$cacheid
9157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9158printf "%s\n" "$supported" >&6; }
9159		if test "$supported" = "yes" ; then
9160			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9161			found="yes"
9162		fi
9163	fi
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179xorg_testset_save_CFLAGS="$CFLAGS"
9180
9181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9182	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9183	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9184printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9185if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9186then :
9187  printf %s "(cached) " >&6
9188else case e in #(
9189  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190/* end confdefs.h.  */
9191int i;
9192_ACEOF
9193if ac_fn_c_try_compile "$LINENO"
9194then :
9195  xorg_cv_cc_flag_unknown_warning_option=yes
9196else case e in #(
9197  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9198esac
9199fi
9200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9201esac
9202fi
9203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9204printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9205	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9206	CFLAGS="$xorg_testset_save_CFLAGS"
9207fi
9208
9209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9210	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9211		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9212	fi
9213	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9214	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9215printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9216if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9217then :
9218  printf %s "(cached) " >&6
9219else case e in #(
9220  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221/* end confdefs.h.  */
9222int i;
9223_ACEOF
9224if ac_fn_c_try_compile "$LINENO"
9225then :
9226  xorg_cv_cc_flag_unused_command_line_argument=yes
9227else case e in #(
9228  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9229esac
9230fi
9231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9232esac
9233fi
9234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9235printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9236	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9237	CFLAGS="$xorg_testset_save_CFLAGS"
9238fi
9239
9240found="no"
9241
9242	if test $found = "no" ; then
9243		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9244			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9245		fi
9246
9247		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9248			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9249		fi
9250
9251		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9252
9253		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9254printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9255		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9256		if eval test \${$cacheid+y}
9257then :
9258  printf %s "(cached) " >&6
9259else case e in #(
9260  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9261/* end confdefs.h.  */
9262int i;
9263int
9264main (void)
9265{
9266
9267  ;
9268  return 0;
9269}
9270_ACEOF
9271if ac_fn_c_try_link "$LINENO"
9272then :
9273  eval $cacheid=yes
9274else case e in #(
9275  e) eval $cacheid=no ;;
9276esac
9277fi
9278rm -f core conftest.err conftest.$ac_objext conftest.beam \
9279    conftest$ac_exeext conftest.$ac_ext ;;
9280esac
9281fi
9282
9283
9284		CFLAGS="$xorg_testset_save_CFLAGS"
9285
9286		eval supported=\$$cacheid
9287		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9288printf "%s\n" "$supported" >&6; }
9289		if test "$supported" = "yes" ; then
9290			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9291			found="yes"
9292		fi
9293	fi
9294
9295 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9296else
9297{ 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
9298printf "%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;}
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312xorg_testset_save_CFLAGS="$CFLAGS"
9313
9314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9315	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9316	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9317printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9318if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9319then :
9320  printf %s "(cached) " >&6
9321else case e in #(
9322  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323/* end confdefs.h.  */
9324int i;
9325_ACEOF
9326if ac_fn_c_try_compile "$LINENO"
9327then :
9328  xorg_cv_cc_flag_unknown_warning_option=yes
9329else case e in #(
9330  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9331esac
9332fi
9333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9334esac
9335fi
9336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9337printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9338	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9339	CFLAGS="$xorg_testset_save_CFLAGS"
9340fi
9341
9342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9343	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9344		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9345	fi
9346	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9347	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9348printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9349if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9350then :
9351  printf %s "(cached) " >&6
9352else case e in #(
9353  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354/* end confdefs.h.  */
9355int i;
9356_ACEOF
9357if ac_fn_c_try_compile "$LINENO"
9358then :
9359  xorg_cv_cc_flag_unused_command_line_argument=yes
9360else case e in #(
9361  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9362esac
9363fi
9364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9365esac
9366fi
9367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9368printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9369	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9370	CFLAGS="$xorg_testset_save_CFLAGS"
9371fi
9372
9373found="no"
9374
9375	if test $found = "no" ; then
9376		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9378		fi
9379
9380		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9382		fi
9383
9384		CFLAGS="$CFLAGS -Wimplicit"
9385
9386		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9387printf %s "checking if $CC supports -Wimplicit... " >&6; }
9388		cacheid=xorg_cv_cc_flag__Wimplicit
9389		if eval test \${$cacheid+y}
9390then :
9391  printf %s "(cached) " >&6
9392else case e in #(
9393  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394/* end confdefs.h.  */
9395int i;
9396int
9397main (void)
9398{
9399
9400  ;
9401  return 0;
9402}
9403_ACEOF
9404if ac_fn_c_try_link "$LINENO"
9405then :
9406  eval $cacheid=yes
9407else case e in #(
9408  e) eval $cacheid=no ;;
9409esac
9410fi
9411rm -f core conftest.err conftest.$ac_objext conftest.beam \
9412    conftest$ac_exeext conftest.$ac_ext ;;
9413esac
9414fi
9415
9416
9417		CFLAGS="$xorg_testset_save_CFLAGS"
9418
9419		eval supported=\$$cacheid
9420		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9421printf "%s\n" "$supported" >&6; }
9422		if test "$supported" = "yes" ; then
9423			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9424			found="yes"
9425		fi
9426	fi
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442xorg_testset_save_CFLAGS="$CFLAGS"
9443
9444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9445	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9446	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9447printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9448if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9449then :
9450  printf %s "(cached) " >&6
9451else case e in #(
9452  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453/* end confdefs.h.  */
9454int i;
9455_ACEOF
9456if ac_fn_c_try_compile "$LINENO"
9457then :
9458  xorg_cv_cc_flag_unknown_warning_option=yes
9459else case e in #(
9460  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9461esac
9462fi
9463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9464esac
9465fi
9466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9467printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9468	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9469	CFLAGS="$xorg_testset_save_CFLAGS"
9470fi
9471
9472if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9473	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9474		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9475	fi
9476	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9477	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9478printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9479if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9480then :
9481  printf %s "(cached) " >&6
9482else case e in #(
9483  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484/* end confdefs.h.  */
9485int i;
9486_ACEOF
9487if ac_fn_c_try_compile "$LINENO"
9488then :
9489  xorg_cv_cc_flag_unused_command_line_argument=yes
9490else case e in #(
9491  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9492esac
9493fi
9494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9495esac
9496fi
9497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9498printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9499	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9500	CFLAGS="$xorg_testset_save_CFLAGS"
9501fi
9502
9503found="no"
9504
9505	if test $found = "no" ; then
9506		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9507			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9508		fi
9509
9510		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9511			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9512		fi
9513
9514		CFLAGS="$CFLAGS -Wnonnull"
9515
9516		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9517printf %s "checking if $CC supports -Wnonnull... " >&6; }
9518		cacheid=xorg_cv_cc_flag__Wnonnull
9519		if eval test \${$cacheid+y}
9520then :
9521  printf %s "(cached) " >&6
9522else case e in #(
9523  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524/* end confdefs.h.  */
9525int i;
9526int
9527main (void)
9528{
9529
9530  ;
9531  return 0;
9532}
9533_ACEOF
9534if ac_fn_c_try_link "$LINENO"
9535then :
9536  eval $cacheid=yes
9537else case e in #(
9538  e) eval $cacheid=no ;;
9539esac
9540fi
9541rm -f core conftest.err conftest.$ac_objext conftest.beam \
9542    conftest$ac_exeext conftest.$ac_ext ;;
9543esac
9544fi
9545
9546
9547		CFLAGS="$xorg_testset_save_CFLAGS"
9548
9549		eval supported=\$$cacheid
9550		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9551printf "%s\n" "$supported" >&6; }
9552		if test "$supported" = "yes" ; then
9553			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9554			found="yes"
9555		fi
9556	fi
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572xorg_testset_save_CFLAGS="$CFLAGS"
9573
9574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9575	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9576	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9577printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9578if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9579then :
9580  printf %s "(cached) " >&6
9581else case e in #(
9582  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583/* end confdefs.h.  */
9584int i;
9585_ACEOF
9586if ac_fn_c_try_compile "$LINENO"
9587then :
9588  xorg_cv_cc_flag_unknown_warning_option=yes
9589else case e in #(
9590  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9591esac
9592fi
9593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9594esac
9595fi
9596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9597printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9598	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9599	CFLAGS="$xorg_testset_save_CFLAGS"
9600fi
9601
9602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9603	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9604		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9605	fi
9606	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9607	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9608printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9609if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9610then :
9611  printf %s "(cached) " >&6
9612else case e in #(
9613  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614/* end confdefs.h.  */
9615int i;
9616_ACEOF
9617if ac_fn_c_try_compile "$LINENO"
9618then :
9619  xorg_cv_cc_flag_unused_command_line_argument=yes
9620else case e in #(
9621  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9622esac
9623fi
9624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9625esac
9626fi
9627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9628printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9629	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9630	CFLAGS="$xorg_testset_save_CFLAGS"
9631fi
9632
9633found="no"
9634
9635	if test $found = "no" ; then
9636		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9637			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9638		fi
9639
9640		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9641			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9642		fi
9643
9644		CFLAGS="$CFLAGS -Winit-self"
9645
9646		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9647printf %s "checking if $CC supports -Winit-self... " >&6; }
9648		cacheid=xorg_cv_cc_flag__Winit_self
9649		if eval test \${$cacheid+y}
9650then :
9651  printf %s "(cached) " >&6
9652else case e in #(
9653  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654/* end confdefs.h.  */
9655int i;
9656int
9657main (void)
9658{
9659
9660  ;
9661  return 0;
9662}
9663_ACEOF
9664if ac_fn_c_try_link "$LINENO"
9665then :
9666  eval $cacheid=yes
9667else case e in #(
9668  e) eval $cacheid=no ;;
9669esac
9670fi
9671rm -f core conftest.err conftest.$ac_objext conftest.beam \
9672    conftest$ac_exeext conftest.$ac_ext ;;
9673esac
9674fi
9675
9676
9677		CFLAGS="$xorg_testset_save_CFLAGS"
9678
9679		eval supported=\$$cacheid
9680		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9681printf "%s\n" "$supported" >&6; }
9682		if test "$supported" = "yes" ; then
9683			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9684			found="yes"
9685		fi
9686	fi
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702xorg_testset_save_CFLAGS="$CFLAGS"
9703
9704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9705	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9706	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9707printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9708if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9709then :
9710  printf %s "(cached) " >&6
9711else case e in #(
9712  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9713/* end confdefs.h.  */
9714int i;
9715_ACEOF
9716if ac_fn_c_try_compile "$LINENO"
9717then :
9718  xorg_cv_cc_flag_unknown_warning_option=yes
9719else case e in #(
9720  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9721esac
9722fi
9723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9724esac
9725fi
9726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9727printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9728	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9729	CFLAGS="$xorg_testset_save_CFLAGS"
9730fi
9731
9732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9733	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9734		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9735	fi
9736	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9737	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9738printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9739if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9740then :
9741  printf %s "(cached) " >&6
9742else case e in #(
9743  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744/* end confdefs.h.  */
9745int i;
9746_ACEOF
9747if ac_fn_c_try_compile "$LINENO"
9748then :
9749  xorg_cv_cc_flag_unused_command_line_argument=yes
9750else case e in #(
9751  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9752esac
9753fi
9754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9755esac
9756fi
9757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9758printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9759	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9760	CFLAGS="$xorg_testset_save_CFLAGS"
9761fi
9762
9763found="no"
9764
9765	if test $found = "no" ; then
9766		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9767			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9768		fi
9769
9770		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9771			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9772		fi
9773
9774		CFLAGS="$CFLAGS -Wmain"
9775
9776		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9777printf %s "checking if $CC supports -Wmain... " >&6; }
9778		cacheid=xorg_cv_cc_flag__Wmain
9779		if eval test \${$cacheid+y}
9780then :
9781  printf %s "(cached) " >&6
9782else case e in #(
9783  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784/* end confdefs.h.  */
9785int i;
9786int
9787main (void)
9788{
9789
9790  ;
9791  return 0;
9792}
9793_ACEOF
9794if ac_fn_c_try_link "$LINENO"
9795then :
9796  eval $cacheid=yes
9797else case e in #(
9798  e) eval $cacheid=no ;;
9799esac
9800fi
9801rm -f core conftest.err conftest.$ac_objext conftest.beam \
9802    conftest$ac_exeext conftest.$ac_ext ;;
9803esac
9804fi
9805
9806
9807		CFLAGS="$xorg_testset_save_CFLAGS"
9808
9809		eval supported=\$$cacheid
9810		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9811printf "%s\n" "$supported" >&6; }
9812		if test "$supported" = "yes" ; then
9813			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9814			found="yes"
9815		fi
9816	fi
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832xorg_testset_save_CFLAGS="$CFLAGS"
9833
9834if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9835	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9836	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9837printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9838if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9839then :
9840  printf %s "(cached) " >&6
9841else case e in #(
9842  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843/* end confdefs.h.  */
9844int i;
9845_ACEOF
9846if ac_fn_c_try_compile "$LINENO"
9847then :
9848  xorg_cv_cc_flag_unknown_warning_option=yes
9849else case e in #(
9850  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9851esac
9852fi
9853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9854esac
9855fi
9856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9857printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9858	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9859	CFLAGS="$xorg_testset_save_CFLAGS"
9860fi
9861
9862if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9863	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9864		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9865	fi
9866	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9867	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9868printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9869if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9870then :
9871  printf %s "(cached) " >&6
9872else case e in #(
9873  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874/* end confdefs.h.  */
9875int i;
9876_ACEOF
9877if ac_fn_c_try_compile "$LINENO"
9878then :
9879  xorg_cv_cc_flag_unused_command_line_argument=yes
9880else case e in #(
9881  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9882esac
9883fi
9884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9885esac
9886fi
9887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9888printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9889	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9890	CFLAGS="$xorg_testset_save_CFLAGS"
9891fi
9892
9893found="no"
9894
9895	if test $found = "no" ; then
9896		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9897			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9898		fi
9899
9900		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9901			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9902		fi
9903
9904		CFLAGS="$CFLAGS -Wmissing-braces"
9905
9906		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9907printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9908		cacheid=xorg_cv_cc_flag__Wmissing_braces
9909		if eval test \${$cacheid+y}
9910then :
9911  printf %s "(cached) " >&6
9912else case e in #(
9913  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914/* end confdefs.h.  */
9915int i;
9916int
9917main (void)
9918{
9919
9920  ;
9921  return 0;
9922}
9923_ACEOF
9924if ac_fn_c_try_link "$LINENO"
9925then :
9926  eval $cacheid=yes
9927else case e in #(
9928  e) eval $cacheid=no ;;
9929esac
9930fi
9931rm -f core conftest.err conftest.$ac_objext conftest.beam \
9932    conftest$ac_exeext conftest.$ac_ext ;;
9933esac
9934fi
9935
9936
9937		CFLAGS="$xorg_testset_save_CFLAGS"
9938
9939		eval supported=\$$cacheid
9940		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9941printf "%s\n" "$supported" >&6; }
9942		if test "$supported" = "yes" ; then
9943			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9944			found="yes"
9945		fi
9946	fi
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962xorg_testset_save_CFLAGS="$CFLAGS"
9963
9964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9965	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9966	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9967printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9968if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9969then :
9970  printf %s "(cached) " >&6
9971else case e in #(
9972  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973/* end confdefs.h.  */
9974int i;
9975_ACEOF
9976if ac_fn_c_try_compile "$LINENO"
9977then :
9978  xorg_cv_cc_flag_unknown_warning_option=yes
9979else case e in #(
9980  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9981esac
9982fi
9983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9984esac
9985fi
9986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9987printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9988	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9989	CFLAGS="$xorg_testset_save_CFLAGS"
9990fi
9991
9992if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9993	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9994		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9995	fi
9996	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9997	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9998printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9999if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10000then :
10001  printf %s "(cached) " >&6
10002else case e in #(
10003  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004/* end confdefs.h.  */
10005int i;
10006_ACEOF
10007if ac_fn_c_try_compile "$LINENO"
10008then :
10009  xorg_cv_cc_flag_unused_command_line_argument=yes
10010else case e in #(
10011  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10012esac
10013fi
10014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10015esac
10016fi
10017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10018printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10019	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10020	CFLAGS="$xorg_testset_save_CFLAGS"
10021fi
10022
10023found="no"
10024
10025	if test $found = "no" ; then
10026		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10027			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10028		fi
10029
10030		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10031			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10032		fi
10033
10034		CFLAGS="$CFLAGS -Wsequence-point"
10035
10036		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10037printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10038		cacheid=xorg_cv_cc_flag__Wsequence_point
10039		if eval test \${$cacheid+y}
10040then :
10041  printf %s "(cached) " >&6
10042else case e in #(
10043  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044/* end confdefs.h.  */
10045int i;
10046int
10047main (void)
10048{
10049
10050  ;
10051  return 0;
10052}
10053_ACEOF
10054if ac_fn_c_try_link "$LINENO"
10055then :
10056  eval $cacheid=yes
10057else case e in #(
10058  e) eval $cacheid=no ;;
10059esac
10060fi
10061rm -f core conftest.err conftest.$ac_objext conftest.beam \
10062    conftest$ac_exeext conftest.$ac_ext ;;
10063esac
10064fi
10065
10066
10067		CFLAGS="$xorg_testset_save_CFLAGS"
10068
10069		eval supported=\$$cacheid
10070		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10071printf "%s\n" "$supported" >&6; }
10072		if test "$supported" = "yes" ; then
10073			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10074			found="yes"
10075		fi
10076	fi
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092xorg_testset_save_CFLAGS="$CFLAGS"
10093
10094if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10095	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10096	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10097printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10098if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10099then :
10100  printf %s "(cached) " >&6
10101else case e in #(
10102  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103/* end confdefs.h.  */
10104int i;
10105_ACEOF
10106if ac_fn_c_try_compile "$LINENO"
10107then :
10108  xorg_cv_cc_flag_unknown_warning_option=yes
10109else case e in #(
10110  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10111esac
10112fi
10113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10114esac
10115fi
10116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10117printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10118	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10119	CFLAGS="$xorg_testset_save_CFLAGS"
10120fi
10121
10122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10123	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10124		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10125	fi
10126	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10127	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10128printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10129if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10130then :
10131  printf %s "(cached) " >&6
10132else case e in #(
10133  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134/* end confdefs.h.  */
10135int i;
10136_ACEOF
10137if ac_fn_c_try_compile "$LINENO"
10138then :
10139  xorg_cv_cc_flag_unused_command_line_argument=yes
10140else case e in #(
10141  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10142esac
10143fi
10144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10145esac
10146fi
10147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10148printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10149	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10150	CFLAGS="$xorg_testset_save_CFLAGS"
10151fi
10152
10153found="no"
10154
10155	if test $found = "no" ; then
10156		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10157			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10158		fi
10159
10160		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10161			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10162		fi
10163
10164		CFLAGS="$CFLAGS -Wreturn-type"
10165
10166		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10167printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10168		cacheid=xorg_cv_cc_flag__Wreturn_type
10169		if eval test \${$cacheid+y}
10170then :
10171  printf %s "(cached) " >&6
10172else case e in #(
10173  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174/* end confdefs.h.  */
10175int i;
10176int
10177main (void)
10178{
10179
10180  ;
10181  return 0;
10182}
10183_ACEOF
10184if ac_fn_c_try_link "$LINENO"
10185then :
10186  eval $cacheid=yes
10187else case e in #(
10188  e) eval $cacheid=no ;;
10189esac
10190fi
10191rm -f core conftest.err conftest.$ac_objext conftest.beam \
10192    conftest$ac_exeext conftest.$ac_ext ;;
10193esac
10194fi
10195
10196
10197		CFLAGS="$xorg_testset_save_CFLAGS"
10198
10199		eval supported=\$$cacheid
10200		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10201printf "%s\n" "$supported" >&6; }
10202		if test "$supported" = "yes" ; then
10203			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10204			found="yes"
10205		fi
10206	fi
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222xorg_testset_save_CFLAGS="$CFLAGS"
10223
10224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10225	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10226	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10227printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10228if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10229then :
10230  printf %s "(cached) " >&6
10231else case e in #(
10232  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233/* end confdefs.h.  */
10234int i;
10235_ACEOF
10236if ac_fn_c_try_compile "$LINENO"
10237then :
10238  xorg_cv_cc_flag_unknown_warning_option=yes
10239else case e in #(
10240  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10241esac
10242fi
10243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10244esac
10245fi
10246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10247printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10248	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10249	CFLAGS="$xorg_testset_save_CFLAGS"
10250fi
10251
10252if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10253	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10254		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10255	fi
10256	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10257	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10258printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10259if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10260then :
10261  printf %s "(cached) " >&6
10262else case e in #(
10263  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264/* end confdefs.h.  */
10265int i;
10266_ACEOF
10267if ac_fn_c_try_compile "$LINENO"
10268then :
10269  xorg_cv_cc_flag_unused_command_line_argument=yes
10270else case e in #(
10271  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10272esac
10273fi
10274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10275esac
10276fi
10277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10278printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10279	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10280	CFLAGS="$xorg_testset_save_CFLAGS"
10281fi
10282
10283found="no"
10284
10285	if test $found = "no" ; then
10286		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10287			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10288		fi
10289
10290		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10291			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10292		fi
10293
10294		CFLAGS="$CFLAGS -Wtrigraphs"
10295
10296		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10297printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10298		cacheid=xorg_cv_cc_flag__Wtrigraphs
10299		if eval test \${$cacheid+y}
10300then :
10301  printf %s "(cached) " >&6
10302else case e in #(
10303  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10304/* end confdefs.h.  */
10305int i;
10306int
10307main (void)
10308{
10309
10310  ;
10311  return 0;
10312}
10313_ACEOF
10314if ac_fn_c_try_link "$LINENO"
10315then :
10316  eval $cacheid=yes
10317else case e in #(
10318  e) eval $cacheid=no ;;
10319esac
10320fi
10321rm -f core conftest.err conftest.$ac_objext conftest.beam \
10322    conftest$ac_exeext conftest.$ac_ext ;;
10323esac
10324fi
10325
10326
10327		CFLAGS="$xorg_testset_save_CFLAGS"
10328
10329		eval supported=\$$cacheid
10330		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10331printf "%s\n" "$supported" >&6; }
10332		if test "$supported" = "yes" ; then
10333			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10334			found="yes"
10335		fi
10336	fi
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352xorg_testset_save_CFLAGS="$CFLAGS"
10353
10354if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10355	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10356	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10357printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10358if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10359then :
10360  printf %s "(cached) " >&6
10361else case e in #(
10362  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363/* end confdefs.h.  */
10364int i;
10365_ACEOF
10366if ac_fn_c_try_compile "$LINENO"
10367then :
10368  xorg_cv_cc_flag_unknown_warning_option=yes
10369else case e in #(
10370  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10371esac
10372fi
10373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10374esac
10375fi
10376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10377printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10378	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10379	CFLAGS="$xorg_testset_save_CFLAGS"
10380fi
10381
10382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10383	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10384		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10385	fi
10386	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10387	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10388printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10389if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10390then :
10391  printf %s "(cached) " >&6
10392else case e in #(
10393  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394/* end confdefs.h.  */
10395int i;
10396_ACEOF
10397if ac_fn_c_try_compile "$LINENO"
10398then :
10399  xorg_cv_cc_flag_unused_command_line_argument=yes
10400else case e in #(
10401  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10402esac
10403fi
10404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10405esac
10406fi
10407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10408printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10409	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10410	CFLAGS="$xorg_testset_save_CFLAGS"
10411fi
10412
10413found="no"
10414
10415	if test $found = "no" ; then
10416		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10417			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10418		fi
10419
10420		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10421			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10422		fi
10423
10424		CFLAGS="$CFLAGS -Warray-bounds"
10425
10426		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10427printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10428		cacheid=xorg_cv_cc_flag__Warray_bounds
10429		if eval test \${$cacheid+y}
10430then :
10431  printf %s "(cached) " >&6
10432else case e in #(
10433  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434/* end confdefs.h.  */
10435int i;
10436int
10437main (void)
10438{
10439
10440  ;
10441  return 0;
10442}
10443_ACEOF
10444if ac_fn_c_try_link "$LINENO"
10445then :
10446  eval $cacheid=yes
10447else case e in #(
10448  e) eval $cacheid=no ;;
10449esac
10450fi
10451rm -f core conftest.err conftest.$ac_objext conftest.beam \
10452    conftest$ac_exeext conftest.$ac_ext ;;
10453esac
10454fi
10455
10456
10457		CFLAGS="$xorg_testset_save_CFLAGS"
10458
10459		eval supported=\$$cacheid
10460		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10461printf "%s\n" "$supported" >&6; }
10462		if test "$supported" = "yes" ; then
10463			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10464			found="yes"
10465		fi
10466	fi
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482xorg_testset_save_CFLAGS="$CFLAGS"
10483
10484if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10485	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10486	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10487printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10488if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10489then :
10490  printf %s "(cached) " >&6
10491else case e in #(
10492  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493/* end confdefs.h.  */
10494int i;
10495_ACEOF
10496if ac_fn_c_try_compile "$LINENO"
10497then :
10498  xorg_cv_cc_flag_unknown_warning_option=yes
10499else case e in #(
10500  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10501esac
10502fi
10503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10504esac
10505fi
10506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10507printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10508	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10509	CFLAGS="$xorg_testset_save_CFLAGS"
10510fi
10511
10512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10513	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10514		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10515	fi
10516	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10517	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10518printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10519if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10520then :
10521  printf %s "(cached) " >&6
10522else case e in #(
10523  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524/* end confdefs.h.  */
10525int i;
10526_ACEOF
10527if ac_fn_c_try_compile "$LINENO"
10528then :
10529  xorg_cv_cc_flag_unused_command_line_argument=yes
10530else case e in #(
10531  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10532esac
10533fi
10534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10535esac
10536fi
10537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10538printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10539	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10540	CFLAGS="$xorg_testset_save_CFLAGS"
10541fi
10542
10543found="no"
10544
10545	if test $found = "no" ; then
10546		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10547			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10548		fi
10549
10550		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10551			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10552		fi
10553
10554		CFLAGS="$CFLAGS -Wwrite-strings"
10555
10556		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10557printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10558		cacheid=xorg_cv_cc_flag__Wwrite_strings
10559		if eval test \${$cacheid+y}
10560then :
10561  printf %s "(cached) " >&6
10562else case e in #(
10563  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564/* end confdefs.h.  */
10565int i;
10566int
10567main (void)
10568{
10569
10570  ;
10571  return 0;
10572}
10573_ACEOF
10574if ac_fn_c_try_link "$LINENO"
10575then :
10576  eval $cacheid=yes
10577else case e in #(
10578  e) eval $cacheid=no ;;
10579esac
10580fi
10581rm -f core conftest.err conftest.$ac_objext conftest.beam \
10582    conftest$ac_exeext conftest.$ac_ext ;;
10583esac
10584fi
10585
10586
10587		CFLAGS="$xorg_testset_save_CFLAGS"
10588
10589		eval supported=\$$cacheid
10590		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10591printf "%s\n" "$supported" >&6; }
10592		if test "$supported" = "yes" ; then
10593			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10594			found="yes"
10595		fi
10596	fi
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612xorg_testset_save_CFLAGS="$CFLAGS"
10613
10614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10615	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10616	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10617printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10618if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10619then :
10620  printf %s "(cached) " >&6
10621else case e in #(
10622  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623/* end confdefs.h.  */
10624int i;
10625_ACEOF
10626if ac_fn_c_try_compile "$LINENO"
10627then :
10628  xorg_cv_cc_flag_unknown_warning_option=yes
10629else case e in #(
10630  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10631esac
10632fi
10633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10634esac
10635fi
10636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10637printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10638	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10639	CFLAGS="$xorg_testset_save_CFLAGS"
10640fi
10641
10642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10643	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10644		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10645	fi
10646	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10647	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10648printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10649if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10650then :
10651  printf %s "(cached) " >&6
10652else case e in #(
10653  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654/* end confdefs.h.  */
10655int i;
10656_ACEOF
10657if ac_fn_c_try_compile "$LINENO"
10658then :
10659  xorg_cv_cc_flag_unused_command_line_argument=yes
10660else case e in #(
10661  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10662esac
10663fi
10664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10665esac
10666fi
10667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10668printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10670	CFLAGS="$xorg_testset_save_CFLAGS"
10671fi
10672
10673found="no"
10674
10675	if test $found = "no" ; then
10676		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10678		fi
10679
10680		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10682		fi
10683
10684		CFLAGS="$CFLAGS -Waddress"
10685
10686		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10687printf %s "checking if $CC supports -Waddress... " >&6; }
10688		cacheid=xorg_cv_cc_flag__Waddress
10689		if eval test \${$cacheid+y}
10690then :
10691  printf %s "(cached) " >&6
10692else case e in #(
10693  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694/* end confdefs.h.  */
10695int i;
10696int
10697main (void)
10698{
10699
10700  ;
10701  return 0;
10702}
10703_ACEOF
10704if ac_fn_c_try_link "$LINENO"
10705then :
10706  eval $cacheid=yes
10707else case e in #(
10708  e) eval $cacheid=no ;;
10709esac
10710fi
10711rm -f core conftest.err conftest.$ac_objext conftest.beam \
10712    conftest$ac_exeext conftest.$ac_ext ;;
10713esac
10714fi
10715
10716
10717		CFLAGS="$xorg_testset_save_CFLAGS"
10718
10719		eval supported=\$$cacheid
10720		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10721printf "%s\n" "$supported" >&6; }
10722		if test "$supported" = "yes" ; then
10723			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10724			found="yes"
10725		fi
10726	fi
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742xorg_testset_save_CFLAGS="$CFLAGS"
10743
10744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10745	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10746	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10747printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10748if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10749then :
10750  printf %s "(cached) " >&6
10751else case e in #(
10752  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753/* end confdefs.h.  */
10754int i;
10755_ACEOF
10756if ac_fn_c_try_compile "$LINENO"
10757then :
10758  xorg_cv_cc_flag_unknown_warning_option=yes
10759else case e in #(
10760  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10761esac
10762fi
10763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10764esac
10765fi
10766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10767printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10768	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10769	CFLAGS="$xorg_testset_save_CFLAGS"
10770fi
10771
10772if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10773	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10774		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10775	fi
10776	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10777	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10778printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10779if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10780then :
10781  printf %s "(cached) " >&6
10782else case e in #(
10783  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784/* end confdefs.h.  */
10785int i;
10786_ACEOF
10787if ac_fn_c_try_compile "$LINENO"
10788then :
10789  xorg_cv_cc_flag_unused_command_line_argument=yes
10790else case e in #(
10791  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10792esac
10793fi
10794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10795esac
10796fi
10797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10798printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10799	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10800	CFLAGS="$xorg_testset_save_CFLAGS"
10801fi
10802
10803found="no"
10804
10805	if test $found = "no" ; then
10806		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10807			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10808		fi
10809
10810		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10811			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10812		fi
10813
10814		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10815
10816		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10817printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10818		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10819		if eval test \${$cacheid+y}
10820then :
10821  printf %s "(cached) " >&6
10822else case e in #(
10823  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824/* end confdefs.h.  */
10825int i;
10826int
10827main (void)
10828{
10829
10830  ;
10831  return 0;
10832}
10833_ACEOF
10834if ac_fn_c_try_link "$LINENO"
10835then :
10836  eval $cacheid=yes
10837else case e in #(
10838  e) eval $cacheid=no ;;
10839esac
10840fi
10841rm -f core conftest.err conftest.$ac_objext conftest.beam \
10842    conftest$ac_exeext conftest.$ac_ext ;;
10843esac
10844fi
10845
10846
10847		CFLAGS="$xorg_testset_save_CFLAGS"
10848
10849		eval supported=\$$cacheid
10850		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10851printf "%s\n" "$supported" >&6; }
10852		if test "$supported" = "yes" ; then
10853			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10854			found="yes"
10855		fi
10856	fi
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872xorg_testset_save_CFLAGS="$CFLAGS"
10873
10874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10875	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10876	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10877printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10878if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10879then :
10880  printf %s "(cached) " >&6
10881else case e in #(
10882  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883/* end confdefs.h.  */
10884int i;
10885_ACEOF
10886if ac_fn_c_try_compile "$LINENO"
10887then :
10888  xorg_cv_cc_flag_unknown_warning_option=yes
10889else case e in #(
10890  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10891esac
10892fi
10893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10894esac
10895fi
10896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10897printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10898	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10899	CFLAGS="$xorg_testset_save_CFLAGS"
10900fi
10901
10902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10903	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10904		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10905	fi
10906	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10907	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10908printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10909if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10910then :
10911  printf %s "(cached) " >&6
10912else case e in #(
10913  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10914/* end confdefs.h.  */
10915int i;
10916_ACEOF
10917if ac_fn_c_try_compile "$LINENO"
10918then :
10919  xorg_cv_cc_flag_unused_command_line_argument=yes
10920else case e in #(
10921  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10922esac
10923fi
10924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10925esac
10926fi
10927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10928printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10929	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10930	CFLAGS="$xorg_testset_save_CFLAGS"
10931fi
10932
10933found="no"
10934
10935	if test $found = "no" ; then
10936		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10937			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10938		fi
10939
10940		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10941			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10942		fi
10943
10944		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10945
10946		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10947printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10948		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10949		if eval test \${$cacheid+y}
10950then :
10951  printf %s "(cached) " >&6
10952else case e in #(
10953  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954/* end confdefs.h.  */
10955int i;
10956int
10957main (void)
10958{
10959
10960  ;
10961  return 0;
10962}
10963_ACEOF
10964if ac_fn_c_try_link "$LINENO"
10965then :
10966  eval $cacheid=yes
10967else case e in #(
10968  e) eval $cacheid=no ;;
10969esac
10970fi
10971rm -f core conftest.err conftest.$ac_objext conftest.beam \
10972    conftest$ac_exeext conftest.$ac_ext ;;
10973esac
10974fi
10975
10976
10977		CFLAGS="$xorg_testset_save_CFLAGS"
10978
10979		eval supported=\$$cacheid
10980		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10981printf "%s\n" "$supported" >&6; }
10982		if test "$supported" = "yes" ; then
10983			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10984			found="yes"
10985		fi
10986	fi
10987
10988
10989fi
10990
10991
10992
10993
10994
10995
10996
10997		CWARNFLAGS="$BASE_CFLAGS"
10998		if  test "x$GCC" = xyes ; then
10999		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11000		fi
11001
11002
11003
11004
11005
11006
11007
11008
11009# Check whether --enable-strict-compilation was given.
11010if test ${enable_strict_compilation+y}
11011then :
11012  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11013else case e in #(
11014  e) STRICT_COMPILE=no ;;
11015esac
11016fi
11017
11018
11019
11020
11021
11022
11023STRICT_CFLAGS=""
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037xorg_testset_save_CFLAGS="$CFLAGS"
11038
11039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11040	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11041	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11042printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11043if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11044then :
11045  printf %s "(cached) " >&6
11046else case e in #(
11047  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048/* end confdefs.h.  */
11049int i;
11050_ACEOF
11051if ac_fn_c_try_compile "$LINENO"
11052then :
11053  xorg_cv_cc_flag_unknown_warning_option=yes
11054else case e in #(
11055  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11056esac
11057fi
11058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11059esac
11060fi
11061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11062printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11063	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11064	CFLAGS="$xorg_testset_save_CFLAGS"
11065fi
11066
11067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11068	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11069		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11070	fi
11071	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11072	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11073printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11074if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11075then :
11076  printf %s "(cached) " >&6
11077else case e in #(
11078  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079/* end confdefs.h.  */
11080int i;
11081_ACEOF
11082if ac_fn_c_try_compile "$LINENO"
11083then :
11084  xorg_cv_cc_flag_unused_command_line_argument=yes
11085else case e in #(
11086  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11087esac
11088fi
11089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11090esac
11091fi
11092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11093printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11094	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11095	CFLAGS="$xorg_testset_save_CFLAGS"
11096fi
11097
11098found="no"
11099
11100	if test $found = "no" ; then
11101		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11102			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11103		fi
11104
11105		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11106			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11107		fi
11108
11109		CFLAGS="$CFLAGS -pedantic"
11110
11111		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11112printf %s "checking if $CC supports -pedantic... " >&6; }
11113		cacheid=xorg_cv_cc_flag__pedantic
11114		if eval test \${$cacheid+y}
11115then :
11116  printf %s "(cached) " >&6
11117else case e in #(
11118  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119/* end confdefs.h.  */
11120int i;
11121int
11122main (void)
11123{
11124
11125  ;
11126  return 0;
11127}
11128_ACEOF
11129if ac_fn_c_try_link "$LINENO"
11130then :
11131  eval $cacheid=yes
11132else case e in #(
11133  e) eval $cacheid=no ;;
11134esac
11135fi
11136rm -f core conftest.err conftest.$ac_objext conftest.beam \
11137    conftest$ac_exeext conftest.$ac_ext ;;
11138esac
11139fi
11140
11141
11142		CFLAGS="$xorg_testset_save_CFLAGS"
11143
11144		eval supported=\$$cacheid
11145		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11146printf "%s\n" "$supported" >&6; }
11147		if test "$supported" = "yes" ; then
11148			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11149			found="yes"
11150		fi
11151	fi
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167xorg_testset_save_CFLAGS="$CFLAGS"
11168
11169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11170	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11171	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11172printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11173if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11174then :
11175  printf %s "(cached) " >&6
11176else case e in #(
11177  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11178/* end confdefs.h.  */
11179int i;
11180_ACEOF
11181if ac_fn_c_try_compile "$LINENO"
11182then :
11183  xorg_cv_cc_flag_unknown_warning_option=yes
11184else case e in #(
11185  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11186esac
11187fi
11188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11189esac
11190fi
11191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11192printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11193	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11194	CFLAGS="$xorg_testset_save_CFLAGS"
11195fi
11196
11197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11198	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11199		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11200	fi
11201	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11202	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11203printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11204if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11205then :
11206  printf %s "(cached) " >&6
11207else case e in #(
11208  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209/* end confdefs.h.  */
11210int i;
11211_ACEOF
11212if ac_fn_c_try_compile "$LINENO"
11213then :
11214  xorg_cv_cc_flag_unused_command_line_argument=yes
11215else case e in #(
11216  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11217esac
11218fi
11219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11220esac
11221fi
11222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11223printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11224	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11225	CFLAGS="$xorg_testset_save_CFLAGS"
11226fi
11227
11228found="no"
11229
11230	if test $found = "no" ; then
11231		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11232			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11233		fi
11234
11235		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11236			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11237		fi
11238
11239		CFLAGS="$CFLAGS -Werror"
11240
11241		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11242printf %s "checking if $CC supports -Werror... " >&6; }
11243		cacheid=xorg_cv_cc_flag__Werror
11244		if eval test \${$cacheid+y}
11245then :
11246  printf %s "(cached) " >&6
11247else case e in #(
11248  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249/* end confdefs.h.  */
11250int i;
11251int
11252main (void)
11253{
11254
11255  ;
11256  return 0;
11257}
11258_ACEOF
11259if ac_fn_c_try_link "$LINENO"
11260then :
11261  eval $cacheid=yes
11262else case e in #(
11263  e) eval $cacheid=no ;;
11264esac
11265fi
11266rm -f core conftest.err conftest.$ac_objext conftest.beam \
11267    conftest$ac_exeext conftest.$ac_ext ;;
11268esac
11269fi
11270
11271
11272		CFLAGS="$xorg_testset_save_CFLAGS"
11273
11274		eval supported=\$$cacheid
11275		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11276printf "%s\n" "$supported" >&6; }
11277		if test "$supported" = "yes" ; then
11278			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11279			found="yes"
11280		fi
11281	fi
11282
11283	if test $found = "no" ; then
11284		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11285			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11286		fi
11287
11288		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11289			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11290		fi
11291
11292		CFLAGS="$CFLAGS -errwarn"
11293
11294		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11295printf %s "checking if $CC supports -errwarn... " >&6; }
11296		cacheid=xorg_cv_cc_flag__errwarn
11297		if eval test \${$cacheid+y}
11298then :
11299  printf %s "(cached) " >&6
11300else case e in #(
11301  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302/* end confdefs.h.  */
11303int i;
11304int
11305main (void)
11306{
11307
11308  ;
11309  return 0;
11310}
11311_ACEOF
11312if ac_fn_c_try_link "$LINENO"
11313then :
11314  eval $cacheid=yes
11315else case e in #(
11316  e) eval $cacheid=no ;;
11317esac
11318fi
11319rm -f core conftest.err conftest.$ac_objext conftest.beam \
11320    conftest$ac_exeext conftest.$ac_ext ;;
11321esac
11322fi
11323
11324
11325		CFLAGS="$xorg_testset_save_CFLAGS"
11326
11327		eval supported=\$$cacheid
11328		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11329printf "%s\n" "$supported" >&6; }
11330		if test "$supported" = "yes" ; then
11331			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11332			found="yes"
11333		fi
11334	fi
11335
11336
11337
11338# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11339# activate it with -Werror, so we add it here explicitly.
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353xorg_testset_save_CFLAGS="$CFLAGS"
11354
11355if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11356	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11357	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11358printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11359if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11360then :
11361  printf %s "(cached) " >&6
11362else case e in #(
11363  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364/* end confdefs.h.  */
11365int i;
11366_ACEOF
11367if ac_fn_c_try_compile "$LINENO"
11368then :
11369  xorg_cv_cc_flag_unknown_warning_option=yes
11370else case e in #(
11371  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11372esac
11373fi
11374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11375esac
11376fi
11377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11378printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11379	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11380	CFLAGS="$xorg_testset_save_CFLAGS"
11381fi
11382
11383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11384	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11385		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11386	fi
11387	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11388	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11389printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11390if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11391then :
11392  printf %s "(cached) " >&6
11393else case e in #(
11394  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395/* end confdefs.h.  */
11396int i;
11397_ACEOF
11398if ac_fn_c_try_compile "$LINENO"
11399then :
11400  xorg_cv_cc_flag_unused_command_line_argument=yes
11401else case e in #(
11402  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11403esac
11404fi
11405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11406esac
11407fi
11408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11409printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11410	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11411	CFLAGS="$xorg_testset_save_CFLAGS"
11412fi
11413
11414found="no"
11415
11416	if test $found = "no" ; then
11417		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11418			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11419		fi
11420
11421		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11422			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11423		fi
11424
11425		CFLAGS="$CFLAGS -Werror=attributes"
11426
11427		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11428printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11429		cacheid=xorg_cv_cc_flag__Werror_attributes
11430		if eval test \${$cacheid+y}
11431then :
11432  printf %s "(cached) " >&6
11433else case e in #(
11434  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11435/* end confdefs.h.  */
11436int i;
11437int
11438main (void)
11439{
11440
11441  ;
11442  return 0;
11443}
11444_ACEOF
11445if ac_fn_c_try_link "$LINENO"
11446then :
11447  eval $cacheid=yes
11448else case e in #(
11449  e) eval $cacheid=no ;;
11450esac
11451fi
11452rm -f core conftest.err conftest.$ac_objext conftest.beam \
11453    conftest$ac_exeext conftest.$ac_ext ;;
11454esac
11455fi
11456
11457
11458		CFLAGS="$xorg_testset_save_CFLAGS"
11459
11460		eval supported=\$$cacheid
11461		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11462printf "%s\n" "$supported" >&6; }
11463		if test "$supported" = "yes" ; then
11464			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11465			found="yes"
11466		fi
11467	fi
11468
11469
11470
11471if test "x$STRICT_COMPILE" = "xyes"; then
11472    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11473    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11474fi
11475
11476
11477
11478
11479
11480
11481
11482
11483cat >>confdefs.h <<_ACEOF
11484#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11485_ACEOF
11486
11487	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11488	if test "x$PVM" = "x"; then
11489		PVM="0"
11490	fi
11491
11492printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11493
11494	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11495	if test "x$PVP" = "x"; then
11496		PVP="0"
11497	fi
11498
11499printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11500
11501
11502
11503CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11504mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11505|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11506touch \$(top_srcdir)/ChangeLog; \
11507echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11508
11509
11510
11511
11512macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11513INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11514mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11515|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11516touch \$(top_srcdir)/INSTALL; \
11517echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11518
11519
11520
11521
11522
11523
11524case $host_os in
11525    solaris*)
11526        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11527        # check for a man page file found in later versions that use
11528        # traditional section numbers instead
11529        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11530printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11531if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11532then :
11533  printf %s "(cached) " >&6
11534else case e in #(
11535  e) test "$cross_compiling" = yes &&
11536  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11537if test -r "/usr/share/man/man7/attributes.7"; then
11538  ac_cv_file__usr_share_man_man7_attributes_7=yes
11539else
11540  ac_cv_file__usr_share_man_man7_attributes_7=no
11541fi ;;
11542esac
11543fi
11544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11545printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11546if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11547then :
11548  SYSV_MAN_SECTIONS=false
11549else case e in #(
11550  e) SYSV_MAN_SECTIONS=true ;;
11551esac
11552fi
11553
11554        ;;
11555    *) SYSV_MAN_SECTIONS=false ;;
11556esac
11557
11558if test x$APP_MAN_SUFFIX = x    ; then
11559    APP_MAN_SUFFIX=1
11560fi
11561if test x$APP_MAN_DIR = x    ; then
11562    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11563fi
11564
11565if test x$LIB_MAN_SUFFIX = x    ; then
11566    LIB_MAN_SUFFIX=3
11567fi
11568if test x$LIB_MAN_DIR = x    ; then
11569    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11570fi
11571
11572if test x$FILE_MAN_SUFFIX = x    ; then
11573    case $SYSV_MAN_SECTIONS in
11574	true)				FILE_MAN_SUFFIX=4  ;;
11575	*)				FILE_MAN_SUFFIX=5  ;;
11576    esac
11577fi
11578if test x$FILE_MAN_DIR = x    ; then
11579    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11580fi
11581
11582if test x$MISC_MAN_SUFFIX = x    ; then
11583    case $SYSV_MAN_SECTIONS in
11584	true)				MISC_MAN_SUFFIX=5  ;;
11585	*)				MISC_MAN_SUFFIX=7  ;;
11586    esac
11587fi
11588if test x$MISC_MAN_DIR = x    ; then
11589    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11590fi
11591
11592if test x$DRIVER_MAN_SUFFIX = x    ; then
11593    case $SYSV_MAN_SECTIONS in
11594	true)				DRIVER_MAN_SUFFIX=7  ;;
11595	*)				DRIVER_MAN_SUFFIX=4  ;;
11596    esac
11597fi
11598if test x$DRIVER_MAN_DIR = x    ; then
11599    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11600fi
11601
11602if test x$ADMIN_MAN_SUFFIX = x    ; then
11603    case $SYSV_MAN_SECTIONS in
11604	true)				ADMIN_MAN_SUFFIX=1m ;;
11605	*)				ADMIN_MAN_SUFFIX=8  ;;
11606    esac
11607fi
11608if test x$ADMIN_MAN_DIR = x    ; then
11609    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11610fi
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626XORG_MAN_PAGE="X Version 11"
11627
11628MAN_SUBSTS="\
11629	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11630	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11631	-e 's|__xservername__|Xorg|g' \
11632	-e 's|__xconfigfile__|xorg.conf|g' \
11633	-e 's|__projectroot__|\$(prefix)|g' \
11634	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11635	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11636	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11637	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11638	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11639	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11640	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11641
11642
11643
11644# Check whether --enable-silent-rules was given.
11645if test ${enable_silent_rules+y}
11646then :
11647  enableval=$enable_silent_rules;
11648fi
11649
11650case $enable_silent_rules in # (((
11651  yes) AM_DEFAULT_VERBOSITY=0;;
11652   no) AM_DEFAULT_VERBOSITY=1;;
11653    *) AM_DEFAULT_VERBOSITY=0;;
11654esac
11655am_make=${MAKE-make}
11656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11657printf %s "checking whether $am_make supports nested variables... " >&6; }
11658if test ${am_cv_make_support_nested_variables+y}
11659then :
11660  printf %s "(cached) " >&6
11661else case e in #(
11662  e) if printf "%s\n" 'TRUE=$(BAR$(V))
11663BAR0=false
11664BAR1=true
11665V=1
11666am__doit:
11667	@$(TRUE)
11668.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11669  am_cv_make_support_nested_variables=yes
11670else
11671  am_cv_make_support_nested_variables=no
11672fi ;;
11673esac
11674fi
11675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11676printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11677if test $am_cv_make_support_nested_variables = yes; then
11678    AM_V='$(V)'
11679  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11680else
11681  AM_V=$AM_DEFAULT_VERBOSITY
11682  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11683fi
11684AM_BACKSLASH='\'
11685
11686
11687
11688
11689# Checks for pkg-config packages
11690
11691pkg_failed=no
11692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCONSOLE" >&5
11693printf %s "checking for XCONSOLE... " >&6; }
11694
11695if test -n "$XCONSOLE_CFLAGS"; then
11696    pkg_cv_XCONSOLE_CFLAGS="$XCONSOLE_CFLAGS"
11697 elif test -n "$PKG_CONFIG"; then
11698    if test -n "$PKG_CONFIG" && \
11699    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17\""; } >&5
11700  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17") 2>&5
11701  ac_status=$?
11702  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11703  test $ac_status = 0; }; then
11704  pkg_cv_XCONSOLE_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>/dev/null`
11705		      test "x$?" != "x0" && pkg_failed=yes
11706else
11707  pkg_failed=yes
11708fi
11709 else
11710    pkg_failed=untried
11711fi
11712if test -n "$XCONSOLE_LIBS"; then
11713    pkg_cv_XCONSOLE_LIBS="$XCONSOLE_LIBS"
11714 elif test -n "$PKG_CONFIG"; then
11715    if test -n "$PKG_CONFIG" && \
11716    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17\""; } >&5
11717  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17") 2>&5
11718  ac_status=$?
11719  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11720  test $ac_status = 0; }; then
11721  pkg_cv_XCONSOLE_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>/dev/null`
11722		      test "x$?" != "x0" && pkg_failed=yes
11723else
11724  pkg_failed=yes
11725fi
11726 else
11727    pkg_failed=untried
11728fi
11729
11730
11731
11732if test $pkg_failed = yes; then
11733   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734printf "%s\n" "no" >&6; }
11735
11736if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11737        _pkg_short_errors_supported=yes
11738else
11739        _pkg_short_errors_supported=no
11740fi
11741        if test $_pkg_short_errors_supported = yes; then
11742	        XCONSOLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>&1`
11743        else
11744	        XCONSOLE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>&1`
11745        fi
11746	# Put the nasty error message in config.log where it belongs
11747	echo "$XCONSOLE_PKG_ERRORS" >&5
11748
11749	as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17) were not met:
11750
11751$XCONSOLE_PKG_ERRORS
11752
11753Consider adjusting the PKG_CONFIG_PATH environment variable if you
11754installed software in a non-standard prefix.
11755
11756Alternatively, you may set the environment variables XCONSOLE_CFLAGS
11757and XCONSOLE_LIBS to avoid the need to call pkg-config.
11758See the pkg-config man page for more details." "$LINENO" 5
11759elif test $pkg_failed = untried; then
11760     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761printf "%s\n" "no" >&6; }
11762	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11763printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11764as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11765is in your PATH or set the PKG_CONFIG environment variable to the full
11766path to pkg-config.
11767
11768Alternatively, you may set the environment variables XCONSOLE_CFLAGS
11769and XCONSOLE_LIBS to avoid the need to call pkg-config.
11770See the pkg-config man page for more details.
11771
11772To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11773See 'config.log' for more details" "$LINENO" 5; }
11774else
11775	XCONSOLE_CFLAGS=$pkg_cv_XCONSOLE_CFLAGS
11776	XCONSOLE_LIBS=$pkg_cv_XCONSOLE_LIBS
11777        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11778printf "%s\n" "yes" >&6; }
11779
11780fi
11781
11782
11783pkg_failed=no
11784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11785printf %s "checking for APPDEFS... " >&6; }
11786
11787if test -n "$APPDEFS_CFLAGS"; then
11788    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11789 elif test -n "$PKG_CONFIG"; then
11790    if test -n "$PKG_CONFIG" && \
11791    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11792  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11793  ac_status=$?
11794  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11795  test $ac_status = 0; }; then
11796  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11797		      test "x$?" != "x0" && pkg_failed=yes
11798else
11799  pkg_failed=yes
11800fi
11801 else
11802    pkg_failed=untried
11803fi
11804if test -n "$APPDEFS_LIBS"; then
11805    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11806 elif test -n "$PKG_CONFIG"; then
11807    if test -n "$PKG_CONFIG" && \
11808    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11809  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11810  ac_status=$?
11811  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11812  test $ac_status = 0; }; then
11813  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11814		      test "x$?" != "x0" && pkg_failed=yes
11815else
11816  pkg_failed=yes
11817fi
11818 else
11819    pkg_failed=untried
11820fi
11821
11822
11823
11824if test $pkg_failed = yes; then
11825   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826printf "%s\n" "no" >&6; }
11827
11828if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11829        _pkg_short_errors_supported=yes
11830else
11831        _pkg_short_errors_supported=no
11832fi
11833        if test $_pkg_short_errors_supported = yes; then
11834	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11835        else
11836	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11837        fi
11838	# Put the nasty error message in config.log where it belongs
11839	echo "$APPDEFS_PKG_ERRORS" >&5
11840
11841	as_fn_error $? "Package requirements (xt) were not met:
11842
11843$APPDEFS_PKG_ERRORS
11844
11845Consider adjusting the PKG_CONFIG_PATH environment variable if you
11846installed software in a non-standard prefix.
11847
11848Alternatively, you may set the environment variables APPDEFS_CFLAGS
11849and APPDEFS_LIBS to avoid the need to call pkg-config.
11850See the pkg-config man page for more details." "$LINENO" 5
11851elif test $pkg_failed = untried; then
11852     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853printf "%s\n" "no" >&6; }
11854	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11855printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11856as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11857is in your PATH or set the PKG_CONFIG environment variable to the full
11858path to pkg-config.
11859
11860Alternatively, you may set the environment variables APPDEFS_CFLAGS
11861and APPDEFS_LIBS to avoid the need to call pkg-config.
11862See the pkg-config man page for more details.
11863
11864To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11865See 'config.log' for more details" "$LINENO" 5; }
11866else
11867	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11868	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11869        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11870printf "%s\n" "yes" >&6; }
11871
11872fi
11873xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11874
11875# Check whether --with-appdefaultdir was given.
11876if test ${with_appdefaultdir+y}
11877then :
11878  withval=$with_appdefaultdir; appdefaultdir="$withval"
11879else case e in #(
11880  e) appdefaultdir="${xt_appdefaultdir}" ;;
11881esac
11882fi
11883
11884
11885
11886# Checks for typedefs, structures, and compiler characteristics.
11887# Check whether --enable-largefile was given.
11888if test ${enable_largefile+y}
11889then :
11890  enableval=$enable_largefile;
11891fi
11892if test "$enable_largefile,$enable_year2038" != no,no
11893then :
11894  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
11895printf %s "checking for $CC option to enable large file support... " >&6; }
11896if test ${ac_cv_sys_largefile_opts+y}
11897then :
11898  printf %s "(cached) " >&6
11899else case e in #(
11900  e) ac_save_CC="$CC"
11901  ac_opt_found=no
11902  for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
11903    if test x"$ac_opt" != x"none needed"
11904then :
11905  CC="$ac_save_CC $ac_opt"
11906fi
11907    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908/* end confdefs.h.  */
11909#include <sys/types.h>
11910#ifndef FTYPE
11911# define FTYPE off_t
11912#endif
11913 /* Check that FTYPE can represent 2**63 - 1 correctly.
11914    We can't simply define LARGE_FTYPE to be 9223372036854775807,
11915    since some C++ compilers masquerading as C compilers
11916    incorrectly reject 9223372036854775807.  */
11917#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
11918  int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
11919		       && LARGE_FTYPE % 2147483647 == 1)
11920		      ? 1 : -1];
11921int
11922main (void)
11923{
11924
11925  ;
11926  return 0;
11927}
11928_ACEOF
11929if ac_fn_c_try_compile "$LINENO"
11930then :
11931  if test x"$ac_opt" = x"none needed"
11932then :
11933  # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
11934	 CC="$CC -DFTYPE=ino_t"
11935	 if ac_fn_c_try_compile "$LINENO"
11936then :
11937
11938else case e in #(
11939  e) CC="$CC -D_FILE_OFFSET_BITS=64"
11940	    if ac_fn_c_try_compile "$LINENO"
11941then :
11942  ac_opt='-D_FILE_OFFSET_BITS=64'
11943fi
11944rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
11945esac
11946fi
11947rm -f core conftest.err conftest.$ac_objext conftest.beam
11948fi
11949      ac_cv_sys_largefile_opts=$ac_opt
11950      ac_opt_found=yes
11951fi
11952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11953    test $ac_opt_found = no || break
11954  done
11955  CC="$ac_save_CC"
11956
11957  test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
11958esac
11959fi
11960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
11961printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
11962
11963ac_have_largefile=yes
11964case $ac_cv_sys_largefile_opts in #(
11965  "none needed") :
11966     ;; #(
11967  "supported through gnulib") :
11968     ;; #(
11969  "support not detected") :
11970    ac_have_largefile=no ;; #(
11971  "-D_FILE_OFFSET_BITS=64") :
11972
11973printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11974 ;; #(
11975  "-D_LARGE_FILES=1") :
11976
11977printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11978 ;; #(
11979  "-n32") :
11980    CC="$CC -n32" ;; #(
11981  *) :
11982    as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
11983esac
11984
11985if test "$enable_year2038" != no
11986then :
11987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
11988printf %s "checking for $CC option for timestamps after 2038... " >&6; }
11989if test ${ac_cv_sys_year2038_opts+y}
11990then :
11991  printf %s "(cached) " >&6
11992else case e in #(
11993  e) ac_save_CPPFLAGS="$CPPFLAGS"
11994  ac_opt_found=no
11995  for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
11996    if test x"$ac_opt" != x"none needed"
11997then :
11998  CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
11999fi
12000    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001/* end confdefs.h.  */
12002
12003  #include <time.h>
12004  /* Check that time_t can represent 2**32 - 1 correctly.  */
12005  #define LARGE_TIME_T \\
12006    ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
12007  int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
12008                           && LARGE_TIME_T % 65537 == 0)
12009                          ? 1 : -1];
12010
12011int
12012main (void)
12013{
12014
12015  ;
12016  return 0;
12017}
12018_ACEOF
12019if ac_fn_c_try_compile "$LINENO"
12020then :
12021  ac_cv_sys_year2038_opts="$ac_opt"
12022      ac_opt_found=yes
12023fi
12024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12025    test $ac_opt_found = no || break
12026  done
12027  CPPFLAGS="$ac_save_CPPFLAGS"
12028  test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
12029esac
12030fi
12031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
12032printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
12033
12034ac_have_year2038=yes
12035case $ac_cv_sys_year2038_opts in #(
12036  "none needed") :
12037     ;; #(
12038  "support not detected") :
12039    ac_have_year2038=no ;; #(
12040  "-D_TIME_BITS=64") :
12041
12042printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
12043 ;; #(
12044  "-D__MINGW_USE_VC2005_COMPAT") :
12045
12046printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
12047 ;; #(
12048  "-U_USE_32_BIT_TIME_T"*) :
12049    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12050printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12051as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
12052will stop working after mid-January 2038. Remove
12053_USE_32BIT_TIME_T from the compiler flags.
12054See 'config.log' for more details" "$LINENO" 5; } ;; #(
12055  *) :
12056    as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
12057esac
12058
12059fi
12060
12061fi
12062
12063# Checks for library functions.
12064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
12065printf %s "checking for library containing openpty... " >&6; }
12066if test ${ac_cv_search_openpty+y}
12067then :
12068  printf %s "(cached) " >&6
12069else case e in #(
12070  e) ac_func_search_save_LIBS=$LIBS
12071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072/* end confdefs.h.  */
12073
12074/* Override any GCC internal prototype to avoid an error.
12075   Use char because int might match the return type of a GCC
12076   builtin and then its argument prototype would still apply.
12077   The 'extern "C"' is for builds by C++ compilers;
12078   although this is not generally supported in C code supporting it here
12079   has little cost and some practical benefit (sr 110532).  */
12080#ifdef __cplusplus
12081extern "C"
12082#endif
12083char openpty (void);
12084int
12085main (void)
12086{
12087return openpty ();
12088  ;
12089  return 0;
12090}
12091_ACEOF
12092for ac_lib in '' util
12093do
12094  if test -z "$ac_lib"; then
12095    ac_res="none required"
12096  else
12097    ac_res=-l$ac_lib
12098    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12099  fi
12100  if ac_fn_c_try_link "$LINENO"
12101then :
12102  ac_cv_search_openpty=$ac_res
12103fi
12104rm -f core conftest.err conftest.$ac_objext conftest.beam \
12105    conftest$ac_exeext
12106  if test ${ac_cv_search_openpty+y}
12107then :
12108  break
12109fi
12110done
12111if test ${ac_cv_search_openpty+y}
12112then :
12113
12114else case e in #(
12115  e) ac_cv_search_openpty=no ;;
12116esac
12117fi
12118rm conftest.$ac_ext
12119LIBS=$ac_func_search_save_LIBS ;;
12120esac
12121fi
12122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
12123printf "%s\n" "$ac_cv_search_openpty" >&6; }
12124ac_res=$ac_cv_search_openpty
12125if test "$ac_res" != no
12126then :
12127  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12128
12129fi
12130
12131ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
12132if test "x$ac_cv_func_openpty" = xyes
12133then :
12134  HAS_OPENPTY="yes"
12135fi
12136
12137if test "x$HAS_OPENPTY" = "xyes" ; then
12138
12139printf "%s\n" "#define HAS_OPENPTY 1" >>confdefs.h
12140
12141	       for ac_header in util.h libutil.h pty.h
12142do :
12143  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
12144ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12145if eval test \"x\$"$as_ac_Header"\" = x"yes"
12146then :
12147  cat >>confdefs.h <<_ACEOF
12148#define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
12149_ACEOF
12150 break
12151fi
12152
12153done
12154fi
12155
12156
12157ac_config_files="$ac_config_files Makefile man/Makefile"
12158
12159cat >confcache <<\_ACEOF
12160# This file is a shell script that caches the results of configure
12161# tests run on this system so they can be shared between configure
12162# scripts and configure runs, see configure's option --config-cache.
12163# It is not useful on other systems.  If it contains results you don't
12164# want to keep, you may remove or edit it.
12165#
12166# config.status only pays attention to the cache file if you give it
12167# the --recheck option to rerun configure.
12168#
12169# 'ac_cv_env_foo' variables (set or unset) will be overridden when
12170# loading this file, other *unset* 'ac_cv_foo' will be assigned the
12171# following values.
12172
12173_ACEOF
12174
12175# The following way of writing the cache mishandles newlines in values,
12176# but we know of no workaround that is simple, portable, and efficient.
12177# So, we kill variables containing newlines.
12178# Ultrix sh set writes to stderr and can't be redirected directly,
12179# and sets the high bit in the cache file unless we assign to the vars.
12180(
12181  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12182    eval ac_val=\$$ac_var
12183    case $ac_val in #(
12184    *${as_nl}*)
12185      case $ac_var in #(
12186      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12187printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12188      esac
12189      case $ac_var in #(
12190      _ | IFS | as_nl) ;; #(
12191      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12192      *) { eval $ac_var=; unset $ac_var;} ;;
12193      esac ;;
12194    esac
12195  done
12196
12197  (set) 2>&1 |
12198    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12199    *${as_nl}ac_space=\ *)
12200      # 'set' does not quote correctly, so add quotes: double-quote
12201      # substitution turns \\\\ into \\, and sed turns \\ into \.
12202      sed -n \
12203	"s/'/'\\\\''/g;
12204	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12205      ;; #(
12206    *)
12207      # 'set' quotes correctly as required by POSIX, so do not add quotes.
12208      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12209      ;;
12210    esac |
12211    sort
12212) |
12213  sed '
12214     /^ac_cv_env_/b end
12215     t clear
12216     :clear
12217     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12218     t end
12219     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12220     :end' >>confcache
12221if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12222  if test -w "$cache_file"; then
12223    if test "x$cache_file" != "x/dev/null"; then
12224      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12225printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12226      if test ! -f "$cache_file" || test -h "$cache_file"; then
12227	cat confcache >"$cache_file"
12228      else
12229        case $cache_file in #(
12230        */* | ?:*)
12231	  mv -f confcache "$cache_file"$$ &&
12232	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12233        *)
12234	  mv -f confcache "$cache_file" ;;
12235	esac
12236      fi
12237    fi
12238  else
12239    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12240printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12241  fi
12242fi
12243rm -f confcache
12244
12245test "x$prefix" = xNONE && prefix=$ac_default_prefix
12246# Let make expand exec_prefix.
12247test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12248
12249DEFS=-DHAVE_CONFIG_H
12250
12251ac_libobjs=
12252ac_ltlibobjs=
12253U=
12254for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12255  # 1. Remove the extension, and $U if already installed.
12256  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12257  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12258  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12259  #    will be set to the directory where LIBOBJS objects are built.
12260  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12261  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12262done
12263LIBOBJS=$ac_libobjs
12264
12265LTLIBOBJS=$ac_ltlibobjs
12266
12267
12268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12269printf %s "checking that generated files are newer than configure... " >&6; }
12270   if test -n "$am_sleep_pid"; then
12271     # Hide warnings about reused PIDs.
12272     wait $am_sleep_pid 2>/dev/null
12273   fi
12274   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12275printf "%s\n" "done" >&6; }
12276if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12277  as_fn_error $? "conditional \"AMDEP\" was never defined.
12278Usually this means the macro was only invoked conditionally." "$LINENO" 5
12279fi
12280if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12281  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12282Usually this means the macro was only invoked conditionally." "$LINENO" 5
12283fi
12284 if test -n "$EXEEXT"; then
12285  am__EXEEXT_TRUE=
12286  am__EXEEXT_FALSE='#'
12287else
12288  am__EXEEXT_TRUE='#'
12289  am__EXEEXT_FALSE=
12290fi
12291
12292# Check whether --enable-year2038 was given.
12293if test ${enable_year2038+y}
12294then :
12295  enableval=$enable_year2038;
12296fi
12297
12298
12299: "${CONFIG_STATUS=./config.status}"
12300ac_write_fail=0
12301ac_clean_files_save=$ac_clean_files
12302ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12304printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12305as_write_fail=0
12306cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12307#! $SHELL
12308# Generated by $as_me.
12309# Run this file to recreate the current configuration.
12310# Compiler output produced by configure, useful for debugging
12311# configure, is in config.log if it exists.
12312
12313debug=false
12314ac_cs_recheck=false
12315ac_cs_silent=false
12316
12317SHELL=\${CONFIG_SHELL-$SHELL}
12318export SHELL
12319_ASEOF
12320cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12321## -------------------- ##
12322## M4sh Initialization. ##
12323## -------------------- ##
12324
12325# Be more Bourne compatible
12326DUALCASE=1; export DUALCASE # for MKS sh
12327if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12328then :
12329  emulate sh
12330  NULLCMD=:
12331  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12332  # is contrary to our usage.  Disable this feature.
12333  alias -g '${1+"$@"}'='"$@"'
12334  setopt NO_GLOB_SUBST
12335else case e in #(
12336  e) case `(set -o) 2>/dev/null` in #(
12337  *posix*) :
12338    set -o posix ;; #(
12339  *) :
12340     ;;
12341esac ;;
12342esac
12343fi
12344
12345
12346
12347# Reset variables that may have inherited troublesome values from
12348# the environment.
12349
12350# IFS needs to be set, to space, tab, and newline, in precisely that order.
12351# (If _AS_PATH_WALK were called with IFS unset, it would have the
12352# side effect of setting IFS to empty, thus disabling word splitting.)
12353# Quoting is to prevent editors from complaining about space-tab.
12354as_nl='
12355'
12356export as_nl
12357IFS=" ""	$as_nl"
12358
12359PS1='$ '
12360PS2='> '
12361PS4='+ '
12362
12363# Ensure predictable behavior from utilities with locale-dependent output.
12364LC_ALL=C
12365export LC_ALL
12366LANGUAGE=C
12367export LANGUAGE
12368
12369# We cannot yet rely on "unset" to work, but we need these variables
12370# to be unset--not just set to an empty or harmless value--now, to
12371# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12372# also avoids known problems related to "unset" and subshell syntax
12373# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12374for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12375do eval test \${$as_var+y} \
12376  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12377done
12378
12379# Ensure that fds 0, 1, and 2 are open.
12380if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12381if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12382if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12383
12384# The user is always right.
12385if ${PATH_SEPARATOR+false} :; then
12386  PATH_SEPARATOR=:
12387  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12388    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12389      PATH_SEPARATOR=';'
12390  }
12391fi
12392
12393
12394# Find who we are.  Look in the path if we contain no directory separator.
12395as_myself=
12396case $0 in #((
12397  *[\\/]* ) as_myself=$0 ;;
12398  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399for as_dir in $PATH
12400do
12401  IFS=$as_save_IFS
12402  case $as_dir in #(((
12403    '') as_dir=./ ;;
12404    */) ;;
12405    *) as_dir=$as_dir/ ;;
12406  esac
12407    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12408  done
12409IFS=$as_save_IFS
12410
12411     ;;
12412esac
12413# We did not find ourselves, most probably we were run as 'sh COMMAND'
12414# in which case we are not to be found in the path.
12415if test "x$as_myself" = x; then
12416  as_myself=$0
12417fi
12418if test ! -f "$as_myself"; then
12419  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12420  exit 1
12421fi
12422
12423
12424
12425# as_fn_error STATUS ERROR [LINENO LOG_FD]
12426# ----------------------------------------
12427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12429# script with STATUS, using 1 if that was 0.
12430as_fn_error ()
12431{
12432  as_status=$1; test $as_status -eq 0 && as_status=1
12433  if test "$4"; then
12434    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12435    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12436  fi
12437  printf "%s\n" "$as_me: error: $2" >&2
12438  as_fn_exit $as_status
12439} # as_fn_error
12440
12441
12442# as_fn_set_status STATUS
12443# -----------------------
12444# Set $? to STATUS, without forking.
12445as_fn_set_status ()
12446{
12447  return $1
12448} # as_fn_set_status
12449
12450# as_fn_exit STATUS
12451# -----------------
12452# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12453as_fn_exit ()
12454{
12455  set +e
12456  as_fn_set_status $1
12457  exit $1
12458} # as_fn_exit
12459
12460# as_fn_unset VAR
12461# ---------------
12462# Portably unset VAR.
12463as_fn_unset ()
12464{
12465  { eval $1=; unset $1;}
12466}
12467as_unset=as_fn_unset
12468
12469# as_fn_append VAR VALUE
12470# ----------------------
12471# Append the text in VALUE to the end of the definition contained in VAR. Take
12472# advantage of any shell optimizations that allow amortized linear growth over
12473# repeated appends, instead of the typical quadratic growth present in naive
12474# implementations.
12475if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12476then :
12477  eval 'as_fn_append ()
12478  {
12479    eval $1+=\$2
12480  }'
12481else case e in #(
12482  e) as_fn_append ()
12483  {
12484    eval $1=\$$1\$2
12485  } ;;
12486esac
12487fi # as_fn_append
12488
12489# as_fn_arith ARG...
12490# ------------------
12491# Perform arithmetic evaluation on the ARGs, and store the result in the
12492# global $as_val. Take advantage of shells that can avoid forks. The arguments
12493# must be portable across $(()) and expr.
12494if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12495then :
12496  eval 'as_fn_arith ()
12497  {
12498    as_val=$(( $* ))
12499  }'
12500else case e in #(
12501  e) as_fn_arith ()
12502  {
12503    as_val=`expr "$@" || test $? -eq 1`
12504  } ;;
12505esac
12506fi # as_fn_arith
12507
12508
12509if expr a : '\(a\)' >/dev/null 2>&1 &&
12510   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12511  as_expr=expr
12512else
12513  as_expr=false
12514fi
12515
12516if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12517  as_basename=basename
12518else
12519  as_basename=false
12520fi
12521
12522if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12523  as_dirname=dirname
12524else
12525  as_dirname=false
12526fi
12527
12528as_me=`$as_basename -- "$0" ||
12529$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12530	 X"$0" : 'X\(//\)$' \| \
12531	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12532printf "%s\n" X/"$0" |
12533    sed '/^.*\/\([^/][^/]*\)\/*$/{
12534	    s//\1/
12535	    q
12536	  }
12537	  /^X\/\(\/\/\)$/{
12538	    s//\1/
12539	    q
12540	  }
12541	  /^X\/\(\/\).*/{
12542	    s//\1/
12543	    q
12544	  }
12545	  s/.*/./; q'`
12546
12547# Avoid depending upon Character Ranges.
12548as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12549as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12550as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12551as_cr_digits='0123456789'
12552as_cr_alnum=$as_cr_Letters$as_cr_digits
12553
12554
12555# Determine whether it's possible to make 'echo' print without a newline.
12556# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12557# for compatibility with existing Makefiles.
12558ECHO_C= ECHO_N= ECHO_T=
12559case `echo -n x` in #(((((
12560-n*)
12561  case `echo 'xy\c'` in
12562  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12563  xy)  ECHO_C='\c';;
12564  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12565       ECHO_T='	';;
12566  esac;;
12567*)
12568  ECHO_N='-n';;
12569esac
12570
12571# For backward compatibility with old third-party macros, we provide
12572# the shell variables $as_echo and $as_echo_n.  New code should use
12573# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12574as_echo='printf %s\n'
12575as_echo_n='printf %s'
12576
12577rm -f conf$$ conf$$.exe conf$$.file
12578if test -d conf$$.dir; then
12579  rm -f conf$$.dir/conf$$.file
12580else
12581  rm -f conf$$.dir
12582  mkdir conf$$.dir 2>/dev/null
12583fi
12584if (echo >conf$$.file) 2>/dev/null; then
12585  if ln -s conf$$.file conf$$ 2>/dev/null; then
12586    as_ln_s='ln -s'
12587    # ... but there are two gotchas:
12588    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12589    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12590    # In both cases, we have to default to 'cp -pR'.
12591    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12592      as_ln_s='cp -pR'
12593  elif ln conf$$.file conf$$ 2>/dev/null; then
12594    as_ln_s=ln
12595  else
12596    as_ln_s='cp -pR'
12597  fi
12598else
12599  as_ln_s='cp -pR'
12600fi
12601rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12602rmdir conf$$.dir 2>/dev/null
12603
12604
12605# as_fn_mkdir_p
12606# -------------
12607# Create "$as_dir" as a directory, including parents if necessary.
12608as_fn_mkdir_p ()
12609{
12610
12611  case $as_dir in #(
12612  -*) as_dir=./$as_dir;;
12613  esac
12614  test -d "$as_dir" || eval $as_mkdir_p || {
12615    as_dirs=
12616    while :; do
12617      case $as_dir in #(
12618      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12619      *) as_qdir=$as_dir;;
12620      esac
12621      as_dirs="'$as_qdir' $as_dirs"
12622      as_dir=`$as_dirname -- "$as_dir" ||
12623$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12624	 X"$as_dir" : 'X\(//\)[^/]' \| \
12625	 X"$as_dir" : 'X\(//\)$' \| \
12626	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12627printf "%s\n" X"$as_dir" |
12628    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12629	    s//\1/
12630	    q
12631	  }
12632	  /^X\(\/\/\)[^/].*/{
12633	    s//\1/
12634	    q
12635	  }
12636	  /^X\(\/\/\)$/{
12637	    s//\1/
12638	    q
12639	  }
12640	  /^X\(\/\).*/{
12641	    s//\1/
12642	    q
12643	  }
12644	  s/.*/./; q'`
12645      test -d "$as_dir" && break
12646    done
12647    test -z "$as_dirs" || eval "mkdir $as_dirs"
12648  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12649
12650
12651} # as_fn_mkdir_p
12652if mkdir -p . 2>/dev/null; then
12653  as_mkdir_p='mkdir -p "$as_dir"'
12654else
12655  test -d ./-p && rmdir ./-p
12656  as_mkdir_p=false
12657fi
12658
12659
12660# as_fn_executable_p FILE
12661# -----------------------
12662# Test if FILE is an executable regular file.
12663as_fn_executable_p ()
12664{
12665  test -f "$1" && test -x "$1"
12666} # as_fn_executable_p
12667as_test_x='test -x'
12668as_executable_p=as_fn_executable_p
12669
12670# Sed expression to map a string onto a valid CPP name.
12671as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12672as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12673
12674# Sed expression to map a string onto a valid variable name.
12675as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12676as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12677
12678
12679exec 6>&1
12680## ----------------------------------- ##
12681## Main body of $CONFIG_STATUS script. ##
12682## ----------------------------------- ##
12683_ASEOF
12684test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12685
12686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12687# Save the log message, to keep $0 and so on meaningful, and to
12688# report actual input values of CONFIG_FILES etc. instead of their
12689# values after options handling.
12690ac_log="
12691This file was extended by xconsole $as_me 1.1.0, which was
12692generated by GNU Autoconf 2.72.  Invocation command line was
12693
12694  CONFIG_FILES    = $CONFIG_FILES
12695  CONFIG_HEADERS  = $CONFIG_HEADERS
12696  CONFIG_LINKS    = $CONFIG_LINKS
12697  CONFIG_COMMANDS = $CONFIG_COMMANDS
12698  $ $0 $@
12699
12700on `(hostname || uname -n) 2>/dev/null | sed 1q`
12701"
12702
12703_ACEOF
12704
12705case $ac_config_files in *"
12706"*) set x $ac_config_files; shift; ac_config_files=$*;;
12707esac
12708
12709case $ac_config_headers in *"
12710"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12711esac
12712
12713
12714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12715# Files that config.status was made for.
12716config_files="$ac_config_files"
12717config_headers="$ac_config_headers"
12718config_commands="$ac_config_commands"
12719
12720_ACEOF
12721
12722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12723ac_cs_usage="\
12724'$as_me' instantiates files and other configuration actions
12725from templates according to the current configuration.  Unless the files
12726and actions are specified as TAGs, all are instantiated by default.
12727
12728Usage: $0 [OPTION]... [TAG]...
12729
12730  -h, --help       print this help, then exit
12731  -V, --version    print version number and configuration settings, then exit
12732      --config     print configuration, then exit
12733  -q, --quiet, --silent
12734                   do not print progress messages
12735  -d, --debug      don't remove temporary files
12736      --recheck    update $as_me by reconfiguring in the same conditions
12737      --file=FILE[:TEMPLATE]
12738                   instantiate the configuration file FILE
12739      --header=FILE[:TEMPLATE]
12740                   instantiate the configuration header FILE
12741
12742Configuration files:
12743$config_files
12744
12745Configuration headers:
12746$config_headers
12747
12748Configuration commands:
12749$config_commands
12750
12751Report bugs to <https://gitlab.freedesktop.org/xorg/app/xconsole/-/issues>."
12752
12753_ACEOF
12754ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12755ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12757ac_cs_config='$ac_cs_config_escaped'
12758ac_cs_version="\\
12759xconsole config.status 1.1.0
12760configured by $0, generated by GNU Autoconf 2.72,
12761  with options \\"\$ac_cs_config\\"
12762
12763Copyright (C) 2023 Free Software Foundation, Inc.
12764This config.status script is free software; the Free Software Foundation
12765gives unlimited permission to copy, distribute and modify it."
12766
12767ac_pwd='$ac_pwd'
12768srcdir='$srcdir'
12769INSTALL='$INSTALL'
12770MKDIR_P='$MKDIR_P'
12771AWK='$AWK'
12772test -n "\$AWK" || AWK=awk
12773_ACEOF
12774
12775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12776# The default lists apply if the user does not specify any file.
12777ac_need_defaults=:
12778while test $# != 0
12779do
12780  case $1 in
12781  --*=?*)
12782    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12783    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12784    ac_shift=:
12785    ;;
12786  --*=)
12787    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12788    ac_optarg=
12789    ac_shift=:
12790    ;;
12791  *)
12792    ac_option=$1
12793    ac_optarg=$2
12794    ac_shift=shift
12795    ;;
12796  esac
12797
12798  case $ac_option in
12799  # Handling of the options.
12800  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12801    ac_cs_recheck=: ;;
12802  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12803    printf "%s\n" "$ac_cs_version"; exit ;;
12804  --config | --confi | --conf | --con | --co | --c )
12805    printf "%s\n" "$ac_cs_config"; exit ;;
12806  --debug | --debu | --deb | --de | --d | -d )
12807    debug=: ;;
12808  --file | --fil | --fi | --f )
12809    $ac_shift
12810    case $ac_optarg in
12811    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12812    '') as_fn_error $? "missing file argument" ;;
12813    esac
12814    as_fn_append CONFIG_FILES " '$ac_optarg'"
12815    ac_need_defaults=false;;
12816  --header | --heade | --head | --hea )
12817    $ac_shift
12818    case $ac_optarg in
12819    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12820    esac
12821    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12822    ac_need_defaults=false;;
12823  --he | --h)
12824    # Conflict between --help and --header
12825    as_fn_error $? "ambiguous option: '$1'
12826Try '$0 --help' for more information.";;
12827  --help | --hel | -h )
12828    printf "%s\n" "$ac_cs_usage"; exit ;;
12829  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12830  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12831    ac_cs_silent=: ;;
12832
12833  # This is an error.
12834  -*) as_fn_error $? "unrecognized option: '$1'
12835Try '$0 --help' for more information." ;;
12836
12837  *) as_fn_append ac_config_targets " $1"
12838     ac_need_defaults=false ;;
12839
12840  esac
12841  shift
12842done
12843
12844ac_configure_extra_args=
12845
12846if $ac_cs_silent; then
12847  exec 6>/dev/null
12848  ac_configure_extra_args="$ac_configure_extra_args --silent"
12849fi
12850
12851_ACEOF
12852cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12853if \$ac_cs_recheck; then
12854  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12855  shift
12856  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12857  CONFIG_SHELL='$SHELL'
12858  export CONFIG_SHELL
12859  exec "\$@"
12860fi
12861
12862_ACEOF
12863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12864exec 5>>config.log
12865{
12866  echo
12867  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12868## Running $as_me. ##
12869_ASBOX
12870  printf "%s\n" "$ac_log"
12871} >&5
12872
12873_ACEOF
12874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12875#
12876# INIT-COMMANDS
12877#
12878AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12879
12880_ACEOF
12881
12882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12883
12884# Handling of arguments.
12885for ac_config_target in $ac_config_targets
12886do
12887  case $ac_config_target in
12888    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12889    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12890    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12891    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12892
12893  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12894  esac
12895done
12896
12897
12898# If the user did not use the arguments to specify the items to instantiate,
12899# then the envvar interface is used.  Set only those that are not.
12900# We use the long form for the default assignment because of an extremely
12901# bizarre bug on SunOS 4.1.3.
12902if $ac_need_defaults; then
12903  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12904  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12905  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12906fi
12907
12908# Have a temporary directory for convenience.  Make it in the build tree
12909# simply because there is no reason against having it here, and in addition,
12910# creating and moving files from /tmp can sometimes cause problems.
12911# Hook for its removal unless debugging.
12912# Note that there is a small window in which the directory will not be cleaned:
12913# after its creation but before its name has been assigned to '$tmp'.
12914$debug ||
12915{
12916  tmp= ac_tmp=
12917  trap 'exit_status=$?
12918  : "${ac_tmp:=$tmp}"
12919  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12920' 0
12921  trap 'as_fn_exit 1' 1 2 13 15
12922}
12923# Create a (secure) tmp directory for tmp files.
12924
12925{
12926  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12927  test -d "$tmp"
12928}  ||
12929{
12930  tmp=./conf$$-$RANDOM
12931  (umask 077 && mkdir "$tmp")
12932} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12933ac_tmp=$tmp
12934
12935# Set up the scripts for CONFIG_FILES section.
12936# No need to generate them if there are no CONFIG_FILES.
12937# This happens for instance with './config.status config.h'.
12938if test -n "$CONFIG_FILES"; then
12939
12940
12941ac_cr=`echo X | tr X '\015'`
12942# On cygwin, bash can eat \r inside `` if the user requested igncr.
12943# But we know of no other shell where ac_cr would be empty at this
12944# point, so we can use a bashism as a fallback.
12945if test "x$ac_cr" = x; then
12946  eval ac_cr=\$\'\\r\'
12947fi
12948ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12949if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12950  ac_cs_awk_cr='\\r'
12951else
12952  ac_cs_awk_cr=$ac_cr
12953fi
12954
12955echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12956_ACEOF
12957
12958
12959{
12960  echo "cat >conf$$subs.awk <<_ACEOF" &&
12961  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12962  echo "_ACEOF"
12963} >conf$$subs.sh ||
12964  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12965ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12966ac_delim='%!_!# '
12967for ac_last_try in false false false false false :; do
12968  . ./conf$$subs.sh ||
12969    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12970
12971  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12972  if test $ac_delim_n = $ac_delim_num; then
12973    break
12974  elif $ac_last_try; then
12975    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12976  else
12977    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12978  fi
12979done
12980rm -f conf$$subs.sh
12981
12982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12983cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12984_ACEOF
12985sed -n '
12986h
12987s/^/S["/; s/!.*/"]=/
12988p
12989g
12990s/^[^!]*!//
12991:repl
12992t repl
12993s/'"$ac_delim"'$//
12994t delim
12995:nl
12996h
12997s/\(.\{148\}\)..*/\1/
12998t more1
12999s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13000p
13001n
13002b repl
13003:more1
13004s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13005p
13006g
13007s/.\{148\}//
13008t nl
13009:delim
13010h
13011s/\(.\{148\}\)..*/\1/
13012t more2
13013s/["\\]/\\&/g; s/^/"/; s/$/"/
13014p
13015b
13016:more2
13017s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13018p
13019g
13020s/.\{148\}//
13021t delim
13022' <conf$$subs.awk | sed '
13023/^[^""]/{
13024  N
13025  s/\n//
13026}
13027' >>$CONFIG_STATUS || ac_write_fail=1
13028rm -f conf$$subs.awk
13029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13030_ACAWK
13031cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13032  for (key in S) S_is_set[key] = 1
13033  FS = ""
13034
13035}
13036{
13037  line = $ 0
13038  nfields = split(line, field, "@")
13039  substed = 0
13040  len = length(field[1])
13041  for (i = 2; i < nfields; i++) {
13042    key = field[i]
13043    keylen = length(key)
13044    if (S_is_set[key]) {
13045      value = S[key]
13046      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13047      len += length(value) + length(field[++i])
13048      substed = 1
13049    } else
13050      len += 1 + keylen
13051  }
13052
13053  print line
13054}
13055
13056_ACAWK
13057_ACEOF
13058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13059if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13060  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13061else
13062  cat
13063fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13064  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13065_ACEOF
13066
13067# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13068# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13069# trailing colons and then remove the whole line if VPATH becomes empty
13070# (actually we leave an empty line to preserve line numbers).
13071if test "x$srcdir" = x.; then
13072  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13073h
13074s///
13075s/^/:/
13076s/[	 ]*$/:/
13077s/:\$(srcdir):/:/g
13078s/:\${srcdir}:/:/g
13079s/:@srcdir@:/:/g
13080s/^:*//
13081s/:*$//
13082x
13083s/\(=[	 ]*\).*/\1/
13084G
13085s/\n//
13086s/^[^=]*=[	 ]*$//
13087}'
13088fi
13089
13090cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13091fi # test -n "$CONFIG_FILES"
13092
13093# Set up the scripts for CONFIG_HEADERS section.
13094# No need to generate them if there are no CONFIG_HEADERS.
13095# This happens for instance with './config.status Makefile'.
13096if test -n "$CONFIG_HEADERS"; then
13097cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13098BEGIN {
13099_ACEOF
13100
13101# Transform confdefs.h into an awk script 'defines.awk', embedded as
13102# here-document in config.status, that substitutes the proper values into
13103# config.h.in to produce config.h.
13104
13105# Create a delimiter string that does not exist in confdefs.h, to ease
13106# handling of long lines.
13107ac_delim='%!_!# '
13108for ac_last_try in false false :; do
13109  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13110  if test -z "$ac_tt"; then
13111    break
13112  elif $ac_last_try; then
13113    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13114  else
13115    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13116  fi
13117done
13118
13119# For the awk script, D is an array of macro values keyed by name,
13120# likewise P contains macro parameters if any.  Preserve backslash
13121# newline sequences.
13122
13123ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13124sed -n '
13125s/.\{148\}/&'"$ac_delim"'/g
13126t rset
13127:rset
13128s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13129t def
13130d
13131:def
13132s/\\$//
13133t bsnl
13134s/["\\]/\\&/g
13135s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13136D["\1"]=" \3"/p
13137s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13138d
13139:bsnl
13140s/["\\]/\\&/g
13141s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13142D["\1"]=" \3\\\\\\n"\\/p
13143t cont
13144s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13145t cont
13146d
13147:cont
13148n
13149s/.\{148\}/&'"$ac_delim"'/g
13150t clear
13151:clear
13152s/\\$//
13153t bsnlc
13154s/["\\]/\\&/g; s/^/"/; s/$/"/p
13155d
13156:bsnlc
13157s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13158b cont
13159' <confdefs.h | sed '
13160s/'"$ac_delim"'/"\\\
13161"/g' >>$CONFIG_STATUS || ac_write_fail=1
13162
13163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13164  for (key in D) D_is_set[key] = 1
13165  FS = ""
13166}
13167/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13168  line = \$ 0
13169  split(line, arg, " ")
13170  if (arg[1] == "#") {
13171    defundef = arg[2]
13172    mac1 = arg[3]
13173  } else {
13174    defundef = substr(arg[1], 2)
13175    mac1 = arg[2]
13176  }
13177  split(mac1, mac2, "(") #)
13178  macro = mac2[1]
13179  prefix = substr(line, 1, index(line, defundef) - 1)
13180  if (D_is_set[macro]) {
13181    # Preserve the white space surrounding the "#".
13182    print prefix "define", macro P[macro] D[macro]
13183    next
13184  } else {
13185    # Replace #undef with comments.  This is necessary, for example,
13186    # in the case of _POSIX_SOURCE, which is predefined and required
13187    # on some systems where configure will not decide to define it.
13188    if (defundef == "undef") {
13189      print "/*", prefix defundef, macro, "*/"
13190      next
13191    }
13192  }
13193}
13194{ print }
13195_ACAWK
13196_ACEOF
13197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13198  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13199fi # test -n "$CONFIG_HEADERS"
13200
13201
13202eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13203shift
13204for ac_tag
13205do
13206  case $ac_tag in
13207  :[FHLC]) ac_mode=$ac_tag; continue;;
13208  esac
13209  case $ac_mode$ac_tag in
13210  :[FHL]*:*);;
13211  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13212  :[FH]-) ac_tag=-:-;;
13213  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13214  esac
13215  ac_save_IFS=$IFS
13216  IFS=:
13217  set x $ac_tag
13218  IFS=$ac_save_IFS
13219  shift
13220  ac_file=$1
13221  shift
13222
13223  case $ac_mode in
13224  :L) ac_source=$1;;
13225  :[FH])
13226    ac_file_inputs=
13227    for ac_f
13228    do
13229      case $ac_f in
13230      -) ac_f="$ac_tmp/stdin";;
13231      *) # Look for the file first in the build tree, then in the source tree
13232	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13233	 # because $ac_f cannot contain ':'.
13234	 test -f "$ac_f" ||
13235	   case $ac_f in
13236	   [\\/$]*) false;;
13237	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13238	   esac ||
13239	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13240      esac
13241      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13242      as_fn_append ac_file_inputs " '$ac_f'"
13243    done
13244
13245    # Let's still pretend it is 'configure' which instantiates (i.e., don't
13246    # use $as_me), people would be surprised to read:
13247    #    /* config.h.  Generated by config.status.  */
13248    configure_input='Generated from '`
13249	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13250	`' by configure.'
13251    if test x"$ac_file" != x-; then
13252      configure_input="$ac_file.  $configure_input"
13253      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13254printf "%s\n" "$as_me: creating $ac_file" >&6;}
13255    fi
13256    # Neutralize special characters interpreted by sed in replacement strings.
13257    case $configure_input in #(
13258    *\&* | *\|* | *\\* )
13259       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13260       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13261    *) ac_sed_conf_input=$configure_input;;
13262    esac
13263
13264    case $ac_tag in
13265    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13266      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13267    esac
13268    ;;
13269  esac
13270
13271  ac_dir=`$as_dirname -- "$ac_file" ||
13272$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13273	 X"$ac_file" : 'X\(//\)[^/]' \| \
13274	 X"$ac_file" : 'X\(//\)$' \| \
13275	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13276printf "%s\n" X"$ac_file" |
13277    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13278	    s//\1/
13279	    q
13280	  }
13281	  /^X\(\/\/\)[^/].*/{
13282	    s//\1/
13283	    q
13284	  }
13285	  /^X\(\/\/\)$/{
13286	    s//\1/
13287	    q
13288	  }
13289	  /^X\(\/\).*/{
13290	    s//\1/
13291	    q
13292	  }
13293	  s/.*/./; q'`
13294  as_dir="$ac_dir"; as_fn_mkdir_p
13295  ac_builddir=.
13296
13297case "$ac_dir" in
13298.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13299*)
13300  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13301  # A ".." for each directory in $ac_dir_suffix.
13302  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13303  case $ac_top_builddir_sub in
13304  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13305  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13306  esac ;;
13307esac
13308ac_abs_top_builddir=$ac_pwd
13309ac_abs_builddir=$ac_pwd$ac_dir_suffix
13310# for backward compatibility:
13311ac_top_builddir=$ac_top_build_prefix
13312
13313case $srcdir in
13314  .)  # We are building in place.
13315    ac_srcdir=.
13316    ac_top_srcdir=$ac_top_builddir_sub
13317    ac_abs_top_srcdir=$ac_pwd ;;
13318  [\\/]* | ?:[\\/]* )  # Absolute name.
13319    ac_srcdir=$srcdir$ac_dir_suffix;
13320    ac_top_srcdir=$srcdir
13321    ac_abs_top_srcdir=$srcdir ;;
13322  *) # Relative name.
13323    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13324    ac_top_srcdir=$ac_top_build_prefix$srcdir
13325    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13326esac
13327ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13328
13329
13330  case $ac_mode in
13331  :F)
13332  #
13333  # CONFIG_FILE
13334  #
13335
13336  case $INSTALL in
13337  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13338  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13339  esac
13340  ac_MKDIR_P=$MKDIR_P
13341  case $MKDIR_P in
13342  [\\/$]* | ?:[\\/]* ) ;;
13343  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13344  esac
13345_ACEOF
13346
13347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13348# If the template does not know about datarootdir, expand it.
13349# FIXME: This hack should be removed a few years after 2.60.
13350ac_datarootdir_hack=; ac_datarootdir_seen=
13351ac_sed_dataroot='
13352/datarootdir/ {
13353  p
13354  q
13355}
13356/@datadir@/p
13357/@docdir@/p
13358/@infodir@/p
13359/@localedir@/p
13360/@mandir@/p'
13361case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13362*datarootdir*) ac_datarootdir_seen=yes;;
13363*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13365printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13366_ACEOF
13367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13368  ac_datarootdir_hack='
13369  s&@datadir@&$datadir&g
13370  s&@docdir@&$docdir&g
13371  s&@infodir@&$infodir&g
13372  s&@localedir@&$localedir&g
13373  s&@mandir@&$mandir&g
13374  s&\\\${datarootdir}&$datarootdir&g' ;;
13375esac
13376_ACEOF
13377
13378# Neutralize VPATH when '$srcdir' = '.'.
13379# Shell code in configure.ac might set extrasub.
13380# FIXME: do we really want to maintain this feature?
13381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13382ac_sed_extra="$ac_vpsub
13383$extrasub
13384_ACEOF
13385cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13386:t
13387/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13388s|@configure_input@|$ac_sed_conf_input|;t t
13389s&@top_builddir@&$ac_top_builddir_sub&;t t
13390s&@top_build_prefix@&$ac_top_build_prefix&;t t
13391s&@srcdir@&$ac_srcdir&;t t
13392s&@abs_srcdir@&$ac_abs_srcdir&;t t
13393s&@top_srcdir@&$ac_top_srcdir&;t t
13394s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13395s&@builddir@&$ac_builddir&;t t
13396s&@abs_builddir@&$ac_abs_builddir&;t t
13397s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13398s&@INSTALL@&$ac_INSTALL&;t t
13399s&@MKDIR_P@&$ac_MKDIR_P&;t t
13400$ac_datarootdir_hack
13401"
13402eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13403  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13404
13405test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13406  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13407  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13408      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13409  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13410which seems to be undefined.  Please make sure it is defined" >&5
13411printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13412which seems to be undefined.  Please make sure it is defined" >&2;}
13413
13414  rm -f "$ac_tmp/stdin"
13415  case $ac_file in
13416  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13417  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13418  esac \
13419  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13420 ;;
13421  :H)
13422  #
13423  # CONFIG_HEADER
13424  #
13425  if test x"$ac_file" != x-; then
13426    {
13427      printf "%s\n" "/* $configure_input  */" >&1 \
13428      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13429    } >"$ac_tmp/config.h" \
13430      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13431    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13432      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13433printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13434    else
13435      rm -f "$ac_file"
13436      mv "$ac_tmp/config.h" "$ac_file" \
13437	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13438    fi
13439  else
13440    printf "%s\n" "/* $configure_input  */" >&1 \
13441      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13442      || as_fn_error $? "could not create -" "$LINENO" 5
13443  fi
13444# Compute "$ac_file"'s index in $config_headers.
13445_am_arg="$ac_file"
13446_am_stamp_count=1
13447for _am_header in $config_headers :; do
13448  case $_am_header in
13449    $_am_arg | $_am_arg:* )
13450      break ;;
13451    * )
13452      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13453  esac
13454done
13455echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13456$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13457	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13458	 X"$_am_arg" : 'X\(//\)$' \| \
13459	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13460printf "%s\n" X"$_am_arg" |
13461    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13462	    s//\1/
13463	    q
13464	  }
13465	  /^X\(\/\/\)[^/].*/{
13466	    s//\1/
13467	    q
13468	  }
13469	  /^X\(\/\/\)$/{
13470	    s//\1/
13471	    q
13472	  }
13473	  /^X\(\/\).*/{
13474	    s//\1/
13475	    q
13476	  }
13477	  s/.*/./; q'`/stamp-h$_am_stamp_count
13478 ;;
13479
13480  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13481printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13482 ;;
13483  esac
13484
13485
13486  case $ac_file$ac_mode in
13487    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13488  # Older Autoconf quotes --file arguments for eval, but not when files
13489  # are listed without --file.  Let's play safe and only enable the eval
13490  # if we detect the quoting.
13491  # TODO: see whether this extra hack can be removed once we start
13492  # requiring Autoconf 2.70 or later.
13493  case $CONFIG_FILES in #(
13494  *\'*) :
13495    eval set x "$CONFIG_FILES" ;; #(
13496  *) :
13497    set x $CONFIG_FILES ;; #(
13498  *) :
13499     ;;
13500esac
13501  shift
13502  # Used to flag and report bootstrapping failures.
13503  am_rc=0
13504  for am_mf
13505  do
13506    # Strip MF so we end up with the name of the file.
13507    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13508    # Check whether this is an Automake generated Makefile which includes
13509    # dependency-tracking related rules and includes.
13510    # Grep'ing the whole file directly is not great: AIX grep has a line
13511    # limit of 2048, but all sed's we know have understand at least 4000.
13512    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13513      || continue
13514    am_dirpart=`$as_dirname -- "$am_mf" ||
13515$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13516	 X"$am_mf" : 'X\(//\)[^/]' \| \
13517	 X"$am_mf" : 'X\(//\)$' \| \
13518	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13519printf "%s\n" X"$am_mf" |
13520    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13521	    s//\1/
13522	    q
13523	  }
13524	  /^X\(\/\/\)[^/].*/{
13525	    s//\1/
13526	    q
13527	  }
13528	  /^X\(\/\/\)$/{
13529	    s//\1/
13530	    q
13531	  }
13532	  /^X\(\/\).*/{
13533	    s//\1/
13534	    q
13535	  }
13536	  s/.*/./; q'`
13537    am_filepart=`$as_basename -- "$am_mf" ||
13538$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13539	 X"$am_mf" : 'X\(//\)$' \| \
13540	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13541printf "%s\n" X/"$am_mf" |
13542    sed '/^.*\/\([^/][^/]*\)\/*$/{
13543	    s//\1/
13544	    q
13545	  }
13546	  /^X\/\(\/\/\)$/{
13547	    s//\1/
13548	    q
13549	  }
13550	  /^X\/\(\/\).*/{
13551	    s//\1/
13552	    q
13553	  }
13554	  s/.*/./; q'`
13555    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13556      && sed -e '/# am--include-marker/d' "$am_filepart" \
13557        | $MAKE -f - am--depfiles" >&5
13558   (cd "$am_dirpart" \
13559      && sed -e '/# am--include-marker/d' "$am_filepart" \
13560        | $MAKE -f - am--depfiles) >&5 2>&5
13561   ac_status=$?
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); } || am_rc=$?
13564  done
13565  if test $am_rc -ne 0; then
13566    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13567printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13568as_fn_error $? "Something went wrong bootstrapping makefile fragments
13569    for automatic dependency tracking.  If GNU make was not used, consider
13570    re-running the configure script with MAKE=\"gmake\" (or whatever is
13571    necessary).  You can also try re-running configure with the
13572    '--disable-dependency-tracking' option to at least be able to build
13573    the package (albeit without support for automatic dependency tracking).
13574See 'config.log' for more details" "$LINENO" 5; }
13575  fi
13576  { am_dirpart=; unset am_dirpart;}
13577  { am_filepart=; unset am_filepart;}
13578  { am_mf=; unset am_mf;}
13579  { am_rc=; unset am_rc;}
13580  rm -f conftest-deps.mk
13581}
13582 ;;
13583
13584  esac
13585done # for ac_tag
13586
13587
13588as_fn_exit 0
13589_ACEOF
13590ac_clean_files=$ac_clean_files_save
13591
13592test $ac_write_fail = 0 ||
13593  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13594
13595
13596# configure is writing to config.log, and then calls config.status.
13597# config.status does its own redirection, appending to config.log.
13598# Unfortunately, on DOS this fails, as config.log is still kept open
13599# by configure, so config.status won't be able to write to it; its
13600# output is simply discarded.  So we exec the FD to /dev/null,
13601# effectively closing config.log, so it can be properly (re)opened and
13602# appended to by config.status.  When coming back to configure, we
13603# need to make the FD available again.
13604if test "$no_create" != yes; then
13605  ac_cs_success=:
13606  ac_config_status_args=
13607  test "$silent" = yes &&
13608    ac_config_status_args="$ac_config_status_args --quiet"
13609  exec 5>/dev/null
13610  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13611  exec 5>>config.log
13612  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13613  # would make configure fail if this is the last instruction.
13614  $ac_cs_success || as_fn_exit 1
13615fi
13616if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13618printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13619fi
13620
13621
13622