configure revision baaedd75
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for lndir 1.0.5.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/util/lndir/-/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/util/lndir/-/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='lndir'
607PACKAGE_TARNAME='lndir'
608PACKAGE_VERSION='1.0.5'
609PACKAGE_STRING='lndir 1.0.5'
610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/util/lndir/-/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
651LIBBSD_LIBS
652LIBBSD_CFLAGS
653XPROTO_LIBS
654XPROTO_CFLAGS
655MAN_SUBSTS
656XORG_MAN_PAGE
657ADMIN_MAN_DIR
658DRIVER_MAN_DIR
659MISC_MAN_DIR
660FILE_MAN_DIR
661LIB_MAN_DIR
662APP_MAN_DIR
663ADMIN_MAN_SUFFIX
664DRIVER_MAN_SUFFIX
665MISC_MAN_SUFFIX
666FILE_MAN_SUFFIX
667LIB_MAN_SUFFIX
668APP_MAN_SUFFIX
669SED
670host_os
671host_vendor
672host_cpu
673host
674build_os
675build_vendor
676build_cpu
677build
678INSTALL_CMD
679PKG_CONFIG_LIBDIR
680PKG_CONFIG_PATH
681PKG_CONFIG
682CHANGELOG_CMD
683STRICT_CFLAGS
684CWARNFLAGS
685BASE_CFLAGS
686AM_BACKSLASH
687AM_DEFAULT_VERBOSITY
688AM_DEFAULT_V
689AM_V
690CSCOPE
691ETAGS
692CTAGS
693am__fastdepCC_FALSE
694am__fastdepCC_TRUE
695CCDEPMODE
696am__nodep
697AMDEPBACKSLASH
698AMDEP_FALSE
699AMDEP_TRUE
700am__include
701DEPDIR
702am__untar
703am__tar
704AMTAR
705am__leading_dot
706SET_MAKE
707AWK
708mkdir_p
709MKDIR_P
710INSTALL_STRIP_PROGRAM
711STRIP
712install_sh
713MAKEINFO
714AUTOHEADER
715AUTOMAKE
716AUTOCONF
717ACLOCAL
718VERSION
719PACKAGE
720CYGPATH_W
721am__isrc
722INSTALL_DATA
723INSTALL_SCRIPT
724INSTALL_PROGRAM
725OBJEXT
726EXEEXT
727ac_ct_CC
728CPPFLAGS
729LDFLAGS
730CFLAGS
731CC
732target_alias
733host_alias
734build_alias
735LIBS
736ECHO_T
737ECHO_N
738ECHO_C
739DEFS
740mandir
741localedir
742libdir
743psdir
744pdfdir
745dvidir
746htmldir
747infodir
748docdir
749oldincludedir
750includedir
751runstatedir
752localstatedir
753sharedstatedir
754sysconfdir
755datadir
756datarootdir
757libexecdir
758sbindir
759bindir
760program_transform_name
761prefix
762exec_prefix
763PACKAGE_URL
764PACKAGE_BUGREPORT
765PACKAGE_STRING
766PACKAGE_VERSION
767PACKAGE_TARNAME
768PACKAGE_NAME
769PATH_SEPARATOR
770SHELL
771am__quote'
772ac_subst_files=''
773ac_user_opts='
774enable_option_checking
775enable_dependency_tracking
776enable_silent_rules
777enable_selective_werror
778enable_strict_compilation
779enable_largefile
780enable_year2038
781'
782      ac_precious_vars='build_alias
783host_alias
784target_alias
785CC
786CFLAGS
787LDFLAGS
788LIBS
789CPPFLAGS
790PKG_CONFIG
791PKG_CONFIG_PATH
792PKG_CONFIG_LIBDIR
793XPROTO_CFLAGS
794XPROTO_LIBS
795LIBBSD_CFLAGS
796LIBBSD_LIBS'
797
798
799# Initialize some variables set by options.
800ac_init_help=
801ac_init_version=false
802ac_unrecognized_opts=
803ac_unrecognized_sep=
804# The variables have the same names as the options, with
805# dashes changed to underlines.
806cache_file=/dev/null
807exec_prefix=NONE
808no_create=
809no_recursion=
810prefix=NONE
811program_prefix=NONE
812program_suffix=NONE
813program_transform_name=s,x,x,
814silent=
815site=
816srcdir=
817verbose=
818x_includes=NONE
819x_libraries=NONE
820
821# Installation directory options.
822# These are left unexpanded so users can "make install exec_prefix=/foo"
823# and all the variables that are supposed to be based on exec_prefix
824# by default will actually change.
825# Use braces instead of parens because sh, perl, etc. also accept them.
826# (The list follows the same order as the GNU Coding Standards.)
827bindir='${exec_prefix}/bin'
828sbindir='${exec_prefix}/sbin'
829libexecdir='${exec_prefix}/libexec'
830datarootdir='${prefix}/share'
831datadir='${datarootdir}'
832sysconfdir='${prefix}/etc'
833sharedstatedir='${prefix}/com'
834localstatedir='${prefix}/var'
835runstatedir='${localstatedir}/run'
836includedir='${prefix}/include'
837oldincludedir='/usr/include'
838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839infodir='${datarootdir}/info'
840htmldir='${docdir}'
841dvidir='${docdir}'
842pdfdir='${docdir}'
843psdir='${docdir}'
844libdir='${exec_prefix}/lib'
845localedir='${datarootdir}/locale'
846mandir='${datarootdir}/man'
847
848ac_prev=
849ac_dashdash=
850for ac_option
851do
852  # If the previous option needs an argument, assign it.
853  if test -n "$ac_prev"; then
854    eval $ac_prev=\$ac_option
855    ac_prev=
856    continue
857  fi
858
859  case $ac_option in
860  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861  *=)   ac_optarg= ;;
862  *)    ac_optarg=yes ;;
863  esac
864
865  case $ac_dashdash$ac_option in
866  --)
867    ac_dashdash=yes ;;
868
869  -bindir | --bindir | --bindi | --bind | --bin | --bi)
870    ac_prev=bindir ;;
871  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872    bindir=$ac_optarg ;;
873
874  -build | --build | --buil | --bui | --bu)
875    ac_prev=build_alias ;;
876  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877    build_alias=$ac_optarg ;;
878
879  -cache-file | --cache-file | --cache-fil | --cache-fi \
880  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881    ac_prev=cache_file ;;
882  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884    cache_file=$ac_optarg ;;
885
886  --config-cache | -C)
887    cache_file=config.cache ;;
888
889  -datadir | --datadir | --datadi | --datad)
890    ac_prev=datadir ;;
891  -datadir=* | --datadir=* | --datadi=* | --datad=*)
892    datadir=$ac_optarg ;;
893
894  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895  | --dataroo | --dataro | --datar)
896    ac_prev=datarootdir ;;
897  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899    datarootdir=$ac_optarg ;;
900
901  -disable-* | --disable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: '$ac_useropt'"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=no ;;
916
917  -docdir | --docdir | --docdi | --doc | --do)
918    ac_prev=docdir ;;
919  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920    docdir=$ac_optarg ;;
921
922  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923    ac_prev=dvidir ;;
924  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925    dvidir=$ac_optarg ;;
926
927  -enable-* | --enable-*)
928    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929    # Reject names that are not valid shell variable names.
930    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931      as_fn_error $? "invalid feature name: '$ac_useropt'"
932    ac_useropt_orig=$ac_useropt
933    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934    case $ac_user_opts in
935      *"
936"enable_$ac_useropt"
937"*) ;;
938      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939	 ac_unrecognized_sep=', ';;
940    esac
941    eval enable_$ac_useropt=\$ac_optarg ;;
942
943  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945  | --exec | --exe | --ex)
946    ac_prev=exec_prefix ;;
947  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949  | --exec=* | --exe=* | --ex=*)
950    exec_prefix=$ac_optarg ;;
951
952  -gas | --gas | --ga | --g)
953    # Obsolete; use --with-gas.
954    with_gas=yes ;;
955
956  -help | --help | --hel | --he | -h)
957    ac_init_help=long ;;
958  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959    ac_init_help=recursive ;;
960  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961    ac_init_help=short ;;
962
963  -host | --host | --hos | --ho)
964    ac_prev=host_alias ;;
965  -host=* | --host=* | --hos=* | --ho=*)
966    host_alias=$ac_optarg ;;
967
968  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969    ac_prev=htmldir ;;
970  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971  | --ht=*)
972    htmldir=$ac_optarg ;;
973
974  -includedir | --includedir | --includedi | --included | --include \
975  | --includ | --inclu | --incl | --inc)
976    ac_prev=includedir ;;
977  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978  | --includ=* | --inclu=* | --incl=* | --inc=*)
979    includedir=$ac_optarg ;;
980
981  -infodir | --infodir | --infodi | --infod | --info | --inf)
982    ac_prev=infodir ;;
983  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984    infodir=$ac_optarg ;;
985
986  -libdir | --libdir | --libdi | --libd)
987    ac_prev=libdir ;;
988  -libdir=* | --libdir=* | --libdi=* | --libd=*)
989    libdir=$ac_optarg ;;
990
991  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992  | --libexe | --libex | --libe)
993    ac_prev=libexecdir ;;
994  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995  | --libexe=* | --libex=* | --libe=*)
996    libexecdir=$ac_optarg ;;
997
998  -localedir | --localedir | --localedi | --localed | --locale)
999    ac_prev=localedir ;;
1000  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001    localedir=$ac_optarg ;;
1002
1003  -localstatedir | --localstatedir | --localstatedi | --localstated \
1004  | --localstate | --localstat | --localsta | --localst | --locals)
1005    ac_prev=localstatedir ;;
1006  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008    localstatedir=$ac_optarg ;;
1009
1010  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011    ac_prev=mandir ;;
1012  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013    mandir=$ac_optarg ;;
1014
1015  -nfp | --nfp | --nf)
1016    # Obsolete; use --without-fp.
1017    with_fp=no ;;
1018
1019  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020  | --no-cr | --no-c | -n)
1021    no_create=yes ;;
1022
1023  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025    no_recursion=yes ;;
1026
1027  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029  | --oldin | --oldi | --old | --ol | --o)
1030    ac_prev=oldincludedir ;;
1031  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034    oldincludedir=$ac_optarg ;;
1035
1036  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037    ac_prev=prefix ;;
1038  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039    prefix=$ac_optarg ;;
1040
1041  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042  | --program-pre | --program-pr | --program-p)
1043    ac_prev=program_prefix ;;
1044  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046    program_prefix=$ac_optarg ;;
1047
1048  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049  | --program-suf | --program-su | --program-s)
1050    ac_prev=program_suffix ;;
1051  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053    program_suffix=$ac_optarg ;;
1054
1055  -program-transform-name | --program-transform-name \
1056  | --program-transform-nam | --program-transform-na \
1057  | --program-transform-n | --program-transform- \
1058  | --program-transform | --program-transfor \
1059  | --program-transfo | --program-transf \
1060  | --program-trans | --program-tran \
1061  | --progr-tra | --program-tr | --program-t)
1062    ac_prev=program_transform_name ;;
1063  -program-transform-name=* | --program-transform-name=* \
1064  | --program-transform-nam=* | --program-transform-na=* \
1065  | --program-transform-n=* | --program-transform-=* \
1066  | --program-transform=* | --program-transfor=* \
1067  | --program-transfo=* | --program-transf=* \
1068  | --program-trans=* | --program-tran=* \
1069  | --progr-tra=* | --program-tr=* | --program-t=*)
1070    program_transform_name=$ac_optarg ;;
1071
1072  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073    ac_prev=pdfdir ;;
1074  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075    pdfdir=$ac_optarg ;;
1076
1077  -psdir | --psdir | --psdi | --psd | --ps)
1078    ac_prev=psdir ;;
1079  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080    psdir=$ac_optarg ;;
1081
1082  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083  | -silent | --silent | --silen | --sile | --sil)
1084    silent=yes ;;
1085
1086  -runstatedir | --runstatedir | --runstatedi | --runstated \
1087  | --runstate | --runstat | --runsta | --runst | --runs \
1088  | --run | --ru | --r)
1089    ac_prev=runstatedir ;;
1090  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092  | --run=* | --ru=* | --r=*)
1093    runstatedir=$ac_optarg ;;
1094
1095  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096    ac_prev=sbindir ;;
1097  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098  | --sbi=* | --sb=*)
1099    sbindir=$ac_optarg ;;
1100
1101  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103  | --sharedst | --shareds | --shared | --share | --shar \
1104  | --sha | --sh)
1105    ac_prev=sharedstatedir ;;
1106  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109  | --sha=* | --sh=*)
1110    sharedstatedir=$ac_optarg ;;
1111
1112  -site | --site | --sit)
1113    ac_prev=site ;;
1114  -site=* | --site=* | --sit=*)
1115    site=$ac_optarg ;;
1116
1117  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118    ac_prev=srcdir ;;
1119  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120    srcdir=$ac_optarg ;;
1121
1122  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123  | --syscon | --sysco | --sysc | --sys | --sy)
1124    ac_prev=sysconfdir ;;
1125  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127    sysconfdir=$ac_optarg ;;
1128
1129  -target | --target | --targe | --targ | --tar | --ta | --t)
1130    ac_prev=target_alias ;;
1131  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132    target_alias=$ac_optarg ;;
1133
1134  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135    verbose=yes ;;
1136
1137  -version | --version | --versio | --versi | --vers | -V)
1138    ac_init_version=: ;;
1139
1140  -with-* | --with-*)
1141    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142    # Reject names that are not valid shell variable names.
1143    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144      as_fn_error $? "invalid package name: '$ac_useropt'"
1145    ac_useropt_orig=$ac_useropt
1146    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1147    case $ac_user_opts in
1148      *"
1149"with_$ac_useropt"
1150"*) ;;
1151      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152	 ac_unrecognized_sep=', ';;
1153    esac
1154    eval with_$ac_useropt=\$ac_optarg ;;
1155
1156  -without-* | --without-*)
1157    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158    # Reject names that are not valid shell variable names.
1159    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160      as_fn_error $? "invalid package name: '$ac_useropt'"
1161    ac_useropt_orig=$ac_useropt
1162    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1163    case $ac_user_opts in
1164      *"
1165"with_$ac_useropt"
1166"*) ;;
1167      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168	 ac_unrecognized_sep=', ';;
1169    esac
1170    eval with_$ac_useropt=no ;;
1171
1172  --x)
1173    # Obsolete; use --with-x.
1174    with_x=yes ;;
1175
1176  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177  | --x-incl | --x-inc | --x-in | --x-i)
1178    ac_prev=x_includes ;;
1179  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181    x_includes=$ac_optarg ;;
1182
1183  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185    ac_prev=x_libraries ;;
1186  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188    x_libraries=$ac_optarg ;;
1189
1190  -*) as_fn_error $? "unrecognized option: '$ac_option'
1191Try '$0 --help' for more information"
1192    ;;
1193
1194  *=*)
1195    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196    # Reject names that are not valid shell variable names.
1197    case $ac_envvar in #(
1198      '' | [0-9]* | *[!_$as_cr_alnum]* )
1199      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1200    esac
1201    eval $ac_envvar=\$ac_optarg
1202    export $ac_envvar ;;
1203
1204  *)
1205    # FIXME: should be removed in autoconf 3.0.
1206    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1207    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1209    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210    ;;
1211
1212  esac
1213done
1214
1215if test -n "$ac_prev"; then
1216  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217  as_fn_error $? "missing argument to $ac_option"
1218fi
1219
1220if test -n "$ac_unrecognized_opts"; then
1221  case $enable_option_checking in
1222    no) ;;
1223    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225  esac
1226fi
1227
1228# Check all directory arguments for consistency.
1229for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230		datadir sysconfdir sharedstatedir localstatedir includedir \
1231		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232		libdir localedir mandir runstatedir
1233do
1234  eval ac_val=\$$ac_var
1235  # Remove trailing slashes.
1236  case $ac_val in
1237    */ )
1238      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239      eval $ac_var=\$ac_val;;
1240  esac
1241  # Be sure to have absolute directory names.
1242  case $ac_val in
1243    [\\/$]* | ?:[\\/]* )  continue;;
1244    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245  esac
1246  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247done
1248
1249# There might be people who depend on the old broken behavior: '$host'
1250# used to hold the argument of --host etc.
1251# FIXME: To remove some day.
1252build=$build_alias
1253host=$host_alias
1254target=$target_alias
1255
1256# FIXME: To remove some day.
1257if test "x$host_alias" != x; then
1258  if test "x$build_alias" = x; then
1259    cross_compiling=maybe
1260  elif test "x$build_alias" != "x$host_alias"; then
1261    cross_compiling=yes
1262  fi
1263fi
1264
1265ac_tool_prefix=
1266test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268test "$silent" = yes && exec 6>/dev/null
1269
1270
1271ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272ac_ls_di=`ls -di .` &&
1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274  as_fn_error $? "working directory cannot be determined"
1275test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276  as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279# Find the source files, if location was not specified.
1280if test -z "$srcdir"; then
1281  ac_srcdir_defaulted=yes
1282  # Try the directory containing this script, then the parent directory.
1283  ac_confdir=`$as_dirname -- "$as_myself" ||
1284$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285	 X"$as_myself" : 'X\(//\)[^/]' \| \
1286	 X"$as_myself" : 'X\(//\)$' \| \
1287	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288printf "%s\n" X"$as_myself" |
1289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290	    s//\1/
1291	    q
1292	  }
1293	  /^X\(\/\/\)[^/].*/{
1294	    s//\1/
1295	    q
1296	  }
1297	  /^X\(\/\/\)$/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\).*/{
1302	    s//\1/
1303	    q
1304	  }
1305	  s/.*/./; q'`
1306  srcdir=$ac_confdir
1307  if test ! -r "$srcdir/$ac_unique_file"; then
1308    srcdir=..
1309  fi
1310else
1311  ac_srcdir_defaulted=no
1312fi
1313if test ! -r "$srcdir/$ac_unique_file"; then
1314  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316fi
1317ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1318ac_abs_confdir=`(
1319	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320	pwd)`
1321# When building in place, set srcdir=.
1322if test "$ac_abs_confdir" = "$ac_pwd"; then
1323  srcdir=.
1324fi
1325# Remove unnecessary trailing slashes from srcdir.
1326# Double slashes in file names in object file debugging info
1327# mess up M-x gdb in Emacs.
1328case $srcdir in
1329*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330esac
1331for ac_var in $ac_precious_vars; do
1332  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333  eval ac_env_${ac_var}_value=\$${ac_var}
1334  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336done
1337
1338#
1339# Report the --help message.
1340#
1341if test "$ac_init_help" = "long"; then
1342  # Omit some internal or obsolete options to make the list less imposing.
1343  # This message is too long to be a string in the A/UX 3.1 sh.
1344  cat <<_ACEOF
1345'configure' configures lndir 1.0.5 to adapt to many kinds of systems.
1346
1347Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350VAR=VALUE.  See below for descriptions of some of the useful variables.
1351
1352Defaults for the options are specified in brackets.
1353
1354Configuration:
1355  -h, --help              display this help and exit
1356      --help=short        display options specific to this package
1357      --help=recursive    display the short help of all the included packages
1358  -V, --version           display version information and exit
1359  -q, --quiet, --silent   do not print 'checking ...' messages
1360      --cache-file=FILE   cache test results in FILE [disabled]
1361  -C, --config-cache      alias for '--cache-file=config.cache'
1362  -n, --no-create         do not create output files
1363      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1364
1365Installation directories:
1366  --prefix=PREFIX         install architecture-independent files in PREFIX
1367                          [$ac_default_prefix]
1368  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1369                          [PREFIX]
1370
1371By default, 'make install' will install all the files in
1372'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1373an installation prefix other than '$ac_default_prefix' using '--prefix',
1374for instance '--prefix=\$HOME'.
1375
1376For better control, use the options below.
1377
1378Fine tuning of the installation directories:
1379  --bindir=DIR            user executables [EPREFIX/bin]
1380  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1381  --libexecdir=DIR        program executables [EPREFIX/libexec]
1382  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1383  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1384  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1385  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1386  --libdir=DIR            object code libraries [EPREFIX/lib]
1387  --includedir=DIR        C header files [PREFIX/include]
1388  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1389  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1390  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1391  --infodir=DIR           info documentation [DATAROOTDIR/info]
1392  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1393  --mandir=DIR            man documentation [DATAROOTDIR/man]
1394  --docdir=DIR            documentation root [DATAROOTDIR/doc/lndir]
1395  --htmldir=DIR           html documentation [DOCDIR]
1396  --dvidir=DIR            dvi documentation [DOCDIR]
1397  --pdfdir=DIR            pdf documentation [DOCDIR]
1398  --psdir=DIR             ps documentation [DOCDIR]
1399_ACEOF
1400
1401  cat <<\_ACEOF
1402
1403Program names:
1404  --program-prefix=PREFIX            prepend PREFIX to installed program names
1405  --program-suffix=SUFFIX            append SUFFIX to installed program names
1406  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1407
1408System types:
1409  --build=BUILD     configure for building on BUILD [guessed]
1410  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1411_ACEOF
1412fi
1413
1414if test -n "$ac_init_help"; then
1415  case $ac_init_help in
1416     short | recursive ) echo "Configuration of lndir 1.0.5:";;
1417   esac
1418  cat <<\_ACEOF
1419
1420Optional Features:
1421  --disable-option-checking  ignore unrecognized --enable/--with options
1422  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1423  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424  --enable-dependency-tracking
1425                          do not reject slow dependency extractors
1426  --disable-dependency-tracking
1427                          speeds up one-time build
1428  --enable-silent-rules   less verbose build output (undo: "make V=1")
1429  --disable-silent-rules  verbose build output (undo: "make V=0")
1430  --disable-selective-werror
1431                          Turn off selective compiler errors. (default:
1432                          enabled)
1433  --enable-strict-compilation
1434                          Enable all warnings from compiler and make them
1435                          errors (default: disabled)
1436  --disable-largefile     omit support for large files
1437  --enable-year2038       support timestamps after 2038
1438
1439Some influential environment variables:
1440  CC          C compiler command
1441  CFLAGS      C compiler flags
1442  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1443              nonstandard directory <lib dir>
1444  LIBS        libraries to pass to the linker, e.g. -l<library>
1445  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1446              you have headers in a nonstandard directory <include dir>
1447  PKG_CONFIG  path to pkg-config utility
1448  PKG_CONFIG_PATH
1449              directories to add to pkg-config's search path
1450  PKG_CONFIG_LIBDIR
1451              path overriding pkg-config's built-in search path
1452  XPROTO_CFLAGS
1453              C compiler flags for XPROTO, overriding pkg-config
1454  XPROTO_LIBS linker flags for XPROTO, overriding pkg-config
1455  LIBBSD_CFLAGS
1456              C compiler flags for LIBBSD, overriding pkg-config
1457  LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config
1458
1459Use these variables to override the choices made by 'configure' or to help
1460it to find libraries and programs with nonstandard names/locations.
1461
1462Report bugs to <https://gitlab.freedesktop.org/xorg/util/lndir/-/issues>.
1463_ACEOF
1464ac_status=$?
1465fi
1466
1467if test "$ac_init_help" = "recursive"; then
1468  # If there are subdirs, report their specific --help.
1469  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470    test -d "$ac_dir" ||
1471      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472      continue
1473    ac_builddir=.
1474
1475case "$ac_dir" in
1476.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477*)
1478  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1479  # A ".." for each directory in $ac_dir_suffix.
1480  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481  case $ac_top_builddir_sub in
1482  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484  esac ;;
1485esac
1486ac_abs_top_builddir=$ac_pwd
1487ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488# for backward compatibility:
1489ac_top_builddir=$ac_top_build_prefix
1490
1491case $srcdir in
1492  .)  # We are building in place.
1493    ac_srcdir=.
1494    ac_top_srcdir=$ac_top_builddir_sub
1495    ac_abs_top_srcdir=$ac_pwd ;;
1496  [\\/]* | ?:[\\/]* )  # Absolute name.
1497    ac_srcdir=$srcdir$ac_dir_suffix;
1498    ac_top_srcdir=$srcdir
1499    ac_abs_top_srcdir=$srcdir ;;
1500  *) # Relative name.
1501    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502    ac_top_srcdir=$ac_top_build_prefix$srcdir
1503    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1504esac
1505ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1506
1507    cd "$ac_dir" || { ac_status=$?; continue; }
1508    # Check for configure.gnu first; this name is used for a wrapper for
1509    # Metaconfig's "Configure" on case-insensitive file systems.
1510    if test -f "$ac_srcdir/configure.gnu"; then
1511      echo &&
1512      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513    elif test -f "$ac_srcdir/configure"; then
1514      echo &&
1515      $SHELL "$ac_srcdir/configure" --help=recursive
1516    else
1517      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518    fi || ac_status=$?
1519    cd "$ac_pwd" || { ac_status=$?; break; }
1520  done
1521fi
1522
1523test -n "$ac_init_help" && exit $ac_status
1524if $ac_init_version; then
1525  cat <<\_ACEOF
1526lndir configure 1.0.5
1527generated by GNU Autoconf 2.72
1528
1529Copyright (C) 2023 Free Software Foundation, Inc.
1530This configure script is free software; the Free Software Foundation
1531gives unlimited permission to copy, distribute and modify it.
1532_ACEOF
1533  exit
1534fi
1535
1536## ------------------------ ##
1537## Autoconf initialization. ##
1538## ------------------------ ##
1539
1540# ac_fn_c_try_compile LINENO
1541# --------------------------
1542# Try to compile conftest.$ac_ext, and return whether this succeeded.
1543ac_fn_c_try_compile ()
1544{
1545  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546  rm -f conftest.$ac_objext conftest.beam
1547  if { { ac_try="$ac_compile"
1548case "(($ac_try" in
1549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550  *) ac_try_echo=$ac_try;;
1551esac
1552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553printf "%s\n" "$ac_try_echo"; } >&5
1554  (eval "$ac_compile") 2>conftest.err
1555  ac_status=$?
1556  if test -s conftest.err; then
1557    grep -v '^ *+' conftest.err >conftest.er1
1558    cat conftest.er1 >&5
1559    mv -f conftest.er1 conftest.err
1560  fi
1561  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562  test $ac_status = 0; } && {
1563	 test -z "$ac_c_werror_flag" ||
1564	 test ! -s conftest.err
1565       } && test -s conftest.$ac_objext
1566then :
1567  ac_retval=0
1568else case e in #(
1569  e) printf "%s\n" "$as_me: failed program was:" >&5
1570sed 's/^/| /' conftest.$ac_ext >&5
1571
1572	ac_retval=1 ;;
1573esac
1574fi
1575  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576  as_fn_set_status $ac_retval
1577
1578} # ac_fn_c_try_compile
1579
1580# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1581# -------------------------------------------------------
1582# Tests whether HEADER exists and can be compiled using the include files in
1583# INCLUDES, setting the cache variable VAR accordingly.
1584ac_fn_c_check_header_compile ()
1585{
1586  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1588printf %s "checking for $2... " >&6; }
1589if eval test \${$3+y}
1590then :
1591  printf %s "(cached) " >&6
1592else case e in #(
1593  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594/* end confdefs.h.  */
1595$4
1596#include <$2>
1597_ACEOF
1598if ac_fn_c_try_compile "$LINENO"
1599then :
1600  eval "$3=yes"
1601else case e in #(
1602  e) eval "$3=no" ;;
1603esac
1604fi
1605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1606esac
1607fi
1608eval ac_res=\$$3
1609	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1610printf "%s\n" "$ac_res" >&6; }
1611  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612
1613} # ac_fn_c_check_header_compile
1614
1615# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1616# ------------------------------------------------------------------
1617# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1618# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1619ac_fn_check_decl ()
1620{
1621  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622  as_decl_name=`echo $2|sed 's/ *(.*//'`
1623  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1624printf %s "checking whether $as_decl_name is declared... " >&6; }
1625if eval test \${$3+y}
1626then :
1627  printf %s "(cached) " >&6
1628else case e in #(
1629  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1630  eval ac_save_FLAGS=\$$6
1631  as_fn_append $6 " $5"
1632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633/* end confdefs.h.  */
1634$4
1635int
1636main (void)
1637{
1638#ifndef $as_decl_name
1639#ifdef __cplusplus
1640  (void) $as_decl_use;
1641#else
1642  (void) $as_decl_name;
1643#endif
1644#endif
1645
1646  ;
1647  return 0;
1648}
1649_ACEOF
1650if ac_fn_c_try_compile "$LINENO"
1651then :
1652  eval "$3=yes"
1653else case e in #(
1654  e) eval "$3=no" ;;
1655esac
1656fi
1657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1658  eval $6=\$ac_save_FLAGS
1659 ;;
1660esac
1661fi
1662eval ac_res=\$$3
1663	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664printf "%s\n" "$ac_res" >&6; }
1665  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666
1667} # ac_fn_check_decl
1668
1669# ac_fn_c_try_link LINENO
1670# -----------------------
1671# Try to link conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_link ()
1673{
1674  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1676  if { { ac_try="$ac_link"
1677case "(($ac_try" in
1678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679  *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682printf "%s\n" "$ac_try_echo"; } >&5
1683  (eval "$ac_link") 2>conftest.err
1684  ac_status=$?
1685  if test -s conftest.err; then
1686    grep -v '^ *+' conftest.err >conftest.er1
1687    cat conftest.er1 >&5
1688    mv -f conftest.er1 conftest.err
1689  fi
1690  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; } && {
1692	 test -z "$ac_c_werror_flag" ||
1693	 test ! -s conftest.err
1694       } && test -s conftest$ac_exeext && {
1695	 test "$cross_compiling" = yes ||
1696	 test -x conftest$ac_exeext
1697       }
1698then :
1699  ac_retval=0
1700else case e in #(
1701  e) printf "%s\n" "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704	ac_retval=1 ;;
1705esac
1706fi
1707  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709  # interfere with the next link command; also delete a directory that is
1710  # left behind by Apple's compiler.  We do this before executing the actions.
1711  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713  as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_link
1716
1717# ac_fn_c_check_func LINENO FUNC VAR
1718# ----------------------------------
1719# Tests whether FUNC exists, setting the cache variable VAR accordingly
1720ac_fn_c_check_func ()
1721{
1722  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724printf %s "checking for $2... " >&6; }
1725if eval test \${$3+y}
1726then :
1727  printf %s "(cached) " >&6
1728else case e in #(
1729  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h.  */
1731/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1732   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1733#define $2 innocuous_$2
1734
1735/* System header to define __stub macros and hopefully few prototypes,
1736   which can conflict with char $2 (void); below.  */
1737
1738#include <limits.h>
1739#undef $2
1740
1741/* Override any GCC internal prototype to avoid an error.
1742   Use char because int might match the return type of a GCC
1743   builtin and then its argument prototype would still apply.  */
1744#ifdef __cplusplus
1745extern "C"
1746#endif
1747char $2 (void);
1748/* The GNU C library defines this for functions which it implements
1749    to always fail with ENOSYS.  Some functions are actually named
1750    something starting with __ and the normal name is an alias.  */
1751#if defined __stub_$2 || defined __stub___$2
1752choke me
1753#endif
1754
1755int
1756main (void)
1757{
1758return $2 ();
1759  ;
1760  return 0;
1761}
1762_ACEOF
1763if ac_fn_c_try_link "$LINENO"
1764then :
1765  eval "$3=yes"
1766else case e in #(
1767  e) eval "$3=no" ;;
1768esac
1769fi
1770rm -f core conftest.err conftest.$ac_objext conftest.beam \
1771    conftest$ac_exeext conftest.$ac_ext ;;
1772esac
1773fi
1774eval ac_res=\$$3
1775	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776printf "%s\n" "$ac_res" >&6; }
1777  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778
1779} # ac_fn_c_check_func
1780ac_configure_args_raw=
1781for ac_arg
1782do
1783  case $ac_arg in
1784  *\'*)
1785    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1786  esac
1787  as_fn_append ac_configure_args_raw " '$ac_arg'"
1788done
1789
1790case $ac_configure_args_raw in
1791  *$as_nl*)
1792    ac_safe_unquote= ;;
1793  *)
1794    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1795    ac_unsafe_a="$ac_unsafe_z#~"
1796    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1797    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1798esac
1799
1800cat >config.log <<_ACEOF
1801This file contains any messages produced by compilers while
1802running configure, to aid debugging if configure makes a mistake.
1803
1804It was created by lndir $as_me 1.0.5, which was
1805generated by GNU Autoconf 2.72.  Invocation command line was
1806
1807  $ $0$ac_configure_args_raw
1808
1809_ACEOF
1810exec 5>>config.log
1811{
1812cat <<_ASUNAME
1813## --------- ##
1814## Platform. ##
1815## --------- ##
1816
1817hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1818uname -m = `(uname -m) 2>/dev/null || echo unknown`
1819uname -r = `(uname -r) 2>/dev/null || echo unknown`
1820uname -s = `(uname -s) 2>/dev/null || echo unknown`
1821uname -v = `(uname -v) 2>/dev/null || echo unknown`
1822
1823/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1824/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1825
1826/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1827/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1828/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1829/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1830/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1831/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1832/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1833
1834_ASUNAME
1835
1836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837for as_dir in $PATH
1838do
1839  IFS=$as_save_IFS
1840  case $as_dir in #(((
1841    '') as_dir=./ ;;
1842    */) ;;
1843    *) as_dir=$as_dir/ ;;
1844  esac
1845    printf "%s\n" "PATH: $as_dir"
1846  done
1847IFS=$as_save_IFS
1848
1849} >&5
1850
1851cat >&5 <<_ACEOF
1852
1853
1854## ----------- ##
1855## Core tests. ##
1856## ----------- ##
1857
1858_ACEOF
1859
1860
1861# Keep a trace of the command line.
1862# Strip out --no-create and --no-recursion so they do not pile up.
1863# Strip out --silent because we don't want to record it for future runs.
1864# Also quote any args containing shell meta-characters.
1865# Make two passes to allow for proper duplicate-argument suppression.
1866ac_configure_args=
1867ac_configure_args0=
1868ac_configure_args1=
1869ac_must_keep_next=false
1870for ac_pass in 1 2
1871do
1872  for ac_arg
1873  do
1874    case $ac_arg in
1875    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1876    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1877    | -silent | --silent | --silen | --sile | --sil)
1878      continue ;;
1879    *\'*)
1880      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1881    esac
1882    case $ac_pass in
1883    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1884    2)
1885      as_fn_append ac_configure_args1 " '$ac_arg'"
1886      if test $ac_must_keep_next = true; then
1887	ac_must_keep_next=false # Got value, back to normal.
1888      else
1889	case $ac_arg in
1890	  *=* | --config-cache | -C | -disable-* | --disable-* \
1891	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1892	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1893	  | -with-* | --with-* | -without-* | --without-* | --x)
1894	    case "$ac_configure_args0 " in
1895	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1896	    esac
1897	    ;;
1898	  -* ) ac_must_keep_next=true ;;
1899	esac
1900      fi
1901      as_fn_append ac_configure_args " '$ac_arg'"
1902      ;;
1903    esac
1904  done
1905done
1906{ ac_configure_args0=; unset ac_configure_args0;}
1907{ ac_configure_args1=; unset ac_configure_args1;}
1908
1909# When interrupted or exit'd, cleanup temporary files, and complete
1910# config.log.  We remove comments because anyway the quotes in there
1911# would cause problems or look ugly.
1912# WARNING: Use '\'' to represent an apostrophe within the trap.
1913# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1914trap 'exit_status=$?
1915  # Sanitize IFS.
1916  IFS=" ""	$as_nl"
1917  # Save into config.log some information that might help in debugging.
1918  {
1919    echo
1920
1921    printf "%s\n" "## ---------------- ##
1922## Cache variables. ##
1923## ---------------- ##"
1924    echo
1925    # The following way of writing the cache mishandles newlines in values,
1926(
1927  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1928    eval ac_val=\$$ac_var
1929    case $ac_val in #(
1930    *${as_nl}*)
1931      case $ac_var in #(
1932      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1933printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1934      esac
1935      case $ac_var in #(
1936      _ | IFS | as_nl) ;; #(
1937      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1938      *) { eval $ac_var=; unset $ac_var;} ;;
1939      esac ;;
1940    esac
1941  done
1942  (set) 2>&1 |
1943    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1944    *${as_nl}ac_space=\ *)
1945      sed -n \
1946	"s/'\''/'\''\\\\'\'''\''/g;
1947	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1948      ;; #(
1949    *)
1950      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1951      ;;
1952    esac |
1953    sort
1954)
1955    echo
1956
1957    printf "%s\n" "## ----------------- ##
1958## Output variables. ##
1959## ----------------- ##"
1960    echo
1961    for ac_var in $ac_subst_vars
1962    do
1963      eval ac_val=\$$ac_var
1964      case $ac_val in
1965      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966      esac
1967      printf "%s\n" "$ac_var='\''$ac_val'\''"
1968    done | sort
1969    echo
1970
1971    if test -n "$ac_subst_files"; then
1972      printf "%s\n" "## ------------------- ##
1973## File substitutions. ##
1974## ------------------- ##"
1975      echo
1976      for ac_var in $ac_subst_files
1977      do
1978	eval ac_val=\$$ac_var
1979	case $ac_val in
1980	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1981	esac
1982	printf "%s\n" "$ac_var='\''$ac_val'\''"
1983      done | sort
1984      echo
1985    fi
1986
1987    if test -s confdefs.h; then
1988      printf "%s\n" "## ----------- ##
1989## confdefs.h. ##
1990## ----------- ##"
1991      echo
1992      cat confdefs.h
1993      echo
1994    fi
1995    test "$ac_signal" != 0 &&
1996      printf "%s\n" "$as_me: caught signal $ac_signal"
1997    printf "%s\n" "$as_me: exit $exit_status"
1998  } >&5
1999  rm -f core *.core core.conftest.* &&
2000    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2001    exit $exit_status
2002' 0
2003for ac_signal in 1 2 13 15; do
2004  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2005done
2006ac_signal=0
2007
2008# confdefs.h avoids OS command line length limits that DEFS can exceed.
2009rm -f -r conftest* confdefs.h
2010
2011printf "%s\n" "/* confdefs.h */" > confdefs.h
2012
2013# Predefined preprocessor variables.
2014
2015printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2016
2017printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2018
2019printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2020
2021printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2022
2023printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2024
2025printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2026
2027
2028# Let the site file select an alternate cache file if it wants to.
2029# Prefer an explicitly selected file to automatically selected ones.
2030if test -n "$CONFIG_SITE"; then
2031  ac_site_files="$CONFIG_SITE"
2032elif test "x$prefix" != xNONE; then
2033  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2034else
2035  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2036fi
2037
2038for ac_site_file in $ac_site_files
2039do
2040  case $ac_site_file in #(
2041  */*) :
2042     ;; #(
2043  *) :
2044    ac_site_file=./$ac_site_file ;;
2045esac
2046  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2047    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2048printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2049    sed 's/^/| /' "$ac_site_file" >&5
2050    . "$ac_site_file" \
2051      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2052printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2053as_fn_error $? "failed to load site script $ac_site_file
2054See 'config.log' for more details" "$LINENO" 5; }
2055  fi
2056done
2057
2058if test -r "$cache_file"; then
2059  # Some versions of bash will fail to source /dev/null (special files
2060  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2061  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2062    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2063printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2064    case $cache_file in
2065      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2066      *)                      . "./$cache_file";;
2067    esac
2068  fi
2069else
2070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2071printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2072  >$cache_file
2073fi
2074
2075as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2076# Test code for whether the C compiler supports C89 (global declarations)
2077ac_c_conftest_c89_globals='
2078/* Does the compiler advertise C89 conformance?
2079   Do not test the value of __STDC__, because some compilers set it to 0
2080   while being otherwise adequately conformant. */
2081#if !defined __STDC__
2082# error "Compiler does not advertise C89 conformance"
2083#endif
2084
2085#include <stddef.h>
2086#include <stdarg.h>
2087struct stat;
2088/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2089struct buf { int x; };
2090struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2091static char *e (char **p, int i)
2092{
2093  return p[i];
2094}
2095static char *f (char * (*g) (char **, int), char **p, ...)
2096{
2097  char *s;
2098  va_list v;
2099  va_start (v,p);
2100  s = g (p, va_arg (v,int));
2101  va_end (v);
2102  return s;
2103}
2104
2105/* C89 style stringification. */
2106#define noexpand_stringify(a) #a
2107const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2108
2109/* C89 style token pasting.  Exercises some of the corner cases that
2110   e.g. old MSVC gets wrong, but not very hard. */
2111#define noexpand_concat(a,b) a##b
2112#define expand_concat(a,b) noexpand_concat(a,b)
2113extern int vA;
2114extern int vbee;
2115#define aye A
2116#define bee B
2117int *pvA = &expand_concat(v,aye);
2118int *pvbee = &noexpand_concat(v,bee);
2119
2120/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2121   function prototypes and stuff, but not \xHH hex character constants.
2122   These do not provoke an error unfortunately, instead are silently treated
2123   as an "x".  The following induces an error, until -std is added to get
2124   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2125   array size at least.  It is necessary to write \x00 == 0 to get something
2126   that is true only with -std.  */
2127int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2128
2129/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2130   inside strings and character constants.  */
2131#define FOO(x) '\''x'\''
2132int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2133
2134int test (int i, double x);
2135struct s1 {int (*f) (int a);};
2136struct s2 {int (*f) (double a);};
2137int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2138               int, int);'
2139
2140# Test code for whether the C compiler supports C89 (body of main).
2141ac_c_conftest_c89_main='
2142ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2143'
2144
2145# Test code for whether the C compiler supports C99 (global declarations)
2146ac_c_conftest_c99_globals='
2147/* Does the compiler advertise C99 conformance? */
2148#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2149# error "Compiler does not advertise C99 conformance"
2150#endif
2151
2152// See if C++-style comments work.
2153
2154#include <stdbool.h>
2155extern int puts (const char *);
2156extern int printf (const char *, ...);
2157extern int dprintf (int, const char *, ...);
2158extern void *malloc (size_t);
2159extern void free (void *);
2160
2161// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2162// dprintf is used instead of fprintf to avoid needing to declare
2163// FILE and stderr.
2164#define debug(...) dprintf (2, __VA_ARGS__)
2165#define showlist(...) puts (#__VA_ARGS__)
2166#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2167static void
2168test_varargs_macros (void)
2169{
2170  int x = 1234;
2171  int y = 5678;
2172  debug ("Flag");
2173  debug ("X = %d\n", x);
2174  showlist (The first, second, and third items.);
2175  report (x>y, "x is %d but y is %d", x, y);
2176}
2177
2178// Check long long types.
2179#define BIG64 18446744073709551615ull
2180#define BIG32 4294967295ul
2181#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2182#if !BIG_OK
2183  #error "your preprocessor is broken"
2184#endif
2185#if BIG_OK
2186#else
2187  #error "your preprocessor is broken"
2188#endif
2189static long long int bignum = -9223372036854775807LL;
2190static unsigned long long int ubignum = BIG64;
2191
2192struct incomplete_array
2193{
2194  int datasize;
2195  double data[];
2196};
2197
2198struct named_init {
2199  int number;
2200  const wchar_t *name;
2201  double average;
2202};
2203
2204typedef const char *ccp;
2205
2206static inline int
2207test_restrict (ccp restrict text)
2208{
2209  // Iterate through items via the restricted pointer.
2210  // Also check for declarations in for loops.
2211  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2212    continue;
2213  return 0;
2214}
2215
2216// Check varargs and va_copy.
2217static bool
2218test_varargs (const char *format, ...)
2219{
2220  va_list args;
2221  va_start (args, format);
2222  va_list args_copy;
2223  va_copy (args_copy, args);
2224
2225  const char *str = "";
2226  int number = 0;
2227  float fnumber = 0;
2228
2229  while (*format)
2230    {
2231      switch (*format++)
2232	{
2233	case '\''s'\'': // string
2234	  str = va_arg (args_copy, const char *);
2235	  break;
2236	case '\''d'\'': // int
2237	  number = va_arg (args_copy, int);
2238	  break;
2239	case '\''f'\'': // float
2240	  fnumber = va_arg (args_copy, double);
2241	  break;
2242	default:
2243	  break;
2244	}
2245    }
2246  va_end (args_copy);
2247  va_end (args);
2248
2249  return *str && number && fnumber;
2250}
2251'
2252
2253# Test code for whether the C compiler supports C99 (body of main).
2254ac_c_conftest_c99_main='
2255  // Check bool.
2256  _Bool success = false;
2257  success |= (argc != 0);
2258
2259  // Check restrict.
2260  if (test_restrict ("String literal") == 0)
2261    success = true;
2262  char *restrict newvar = "Another string";
2263
2264  // Check varargs.
2265  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2266  test_varargs_macros ();
2267
2268  // Check flexible array members.
2269  struct incomplete_array *ia =
2270    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2271  ia->datasize = 10;
2272  for (int i = 0; i < ia->datasize; ++i)
2273    ia->data[i] = i * 1.234;
2274  // Work around memory leak warnings.
2275  free (ia);
2276
2277  // Check named initializers.
2278  struct named_init ni = {
2279    .number = 34,
2280    .name = L"Test wide string",
2281    .average = 543.34343,
2282  };
2283
2284  ni.number = 58;
2285
2286  int dynamic_array[ni.number];
2287  dynamic_array[0] = argv[0][0];
2288  dynamic_array[ni.number - 1] = 543;
2289
2290  // work around unused variable warnings
2291  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2292	 || dynamic_array[ni.number - 1] != 543);
2293'
2294
2295# Test code for whether the C compiler supports C11 (global declarations)
2296ac_c_conftest_c11_globals='
2297/* Does the compiler advertise C11 conformance? */
2298#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2299# error "Compiler does not advertise C11 conformance"
2300#endif
2301
2302// Check _Alignas.
2303char _Alignas (double) aligned_as_double;
2304char _Alignas (0) no_special_alignment;
2305extern char aligned_as_int;
2306char _Alignas (0) _Alignas (int) aligned_as_int;
2307
2308// Check _Alignof.
2309enum
2310{
2311  int_alignment = _Alignof (int),
2312  int_array_alignment = _Alignof (int[100]),
2313  char_alignment = _Alignof (char)
2314};
2315_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2316
2317// Check _Noreturn.
2318int _Noreturn does_not_return (void) { for (;;) continue; }
2319
2320// Check _Static_assert.
2321struct test_static_assert
2322{
2323  int x;
2324  _Static_assert (sizeof (int) <= sizeof (long int),
2325                  "_Static_assert does not work in struct");
2326  long int y;
2327};
2328
2329// Check UTF-8 literals.
2330#define u8 syntax error!
2331char const utf8_literal[] = u8"happens to be ASCII" "another string";
2332
2333// Check duplicate typedefs.
2334typedef long *long_ptr;
2335typedef long int *long_ptr;
2336typedef long_ptr long_ptr;
2337
2338// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2339struct anonymous
2340{
2341  union {
2342    struct { int i; int j; };
2343    struct { int k; long int l; } w;
2344  };
2345  int m;
2346} v1;
2347'
2348
2349# Test code for whether the C compiler supports C11 (body of main).
2350ac_c_conftest_c11_main='
2351  _Static_assert ((offsetof (struct anonymous, i)
2352		   == offsetof (struct anonymous, w.k)),
2353		  "Anonymous union alignment botch");
2354  v1.i = 2;
2355  v1.w.k = 5;
2356  ok |= v1.i != 5;
2357'
2358
2359# Test code for whether the C compiler supports C11 (complete).
2360ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2361${ac_c_conftest_c99_globals}
2362${ac_c_conftest_c11_globals}
2363
2364int
2365main (int argc, char **argv)
2366{
2367  int ok = 0;
2368  ${ac_c_conftest_c89_main}
2369  ${ac_c_conftest_c99_main}
2370  ${ac_c_conftest_c11_main}
2371  return ok;
2372}
2373"
2374
2375# Test code for whether the C compiler supports C99 (complete).
2376ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2377${ac_c_conftest_c99_globals}
2378
2379int
2380main (int argc, char **argv)
2381{
2382  int ok = 0;
2383  ${ac_c_conftest_c89_main}
2384  ${ac_c_conftest_c99_main}
2385  return ok;
2386}
2387"
2388
2389# Test code for whether the C compiler supports C89 (complete).
2390ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2391
2392int
2393main (int argc, char **argv)
2394{
2395  int ok = 0;
2396  ${ac_c_conftest_c89_main}
2397  return ok;
2398}
2399"
2400
2401as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2402as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2403as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2404as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2405as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2406as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2407as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2408as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2409as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2410as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2411
2412# Auxiliary files required by this configure script.
2413ac_aux_files="config.guess config.sub missing install-sh compile"
2414
2415# Locations in which to look for auxiliary files.
2416ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2417
2418# Search for a directory containing all of the required auxiliary files,
2419# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2420# If we don't find one directory that contains all the files we need,
2421# we report the set of missing files from the *first* directory in
2422# $ac_aux_dir_candidates and give up.
2423ac_missing_aux_files=""
2424ac_first_candidate=:
2425printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427as_found=false
2428for as_dir in $ac_aux_dir_candidates
2429do
2430  IFS=$as_save_IFS
2431  case $as_dir in #(((
2432    '') as_dir=./ ;;
2433    */) ;;
2434    *) as_dir=$as_dir/ ;;
2435  esac
2436  as_found=:
2437
2438  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2439  ac_aux_dir_found=yes
2440  ac_install_sh=
2441  for ac_aux in $ac_aux_files
2442  do
2443    # As a special case, if "install-sh" is required, that requirement
2444    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2445    # and $ac_install_sh is set appropriately for whichever one is found.
2446    if test x"$ac_aux" = x"install-sh"
2447    then
2448      if test -f "${as_dir}install-sh"; then
2449        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2450        ac_install_sh="${as_dir}install-sh -c"
2451      elif test -f "${as_dir}install.sh"; then
2452        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2453        ac_install_sh="${as_dir}install.sh -c"
2454      elif test -f "${as_dir}shtool"; then
2455        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2456        ac_install_sh="${as_dir}shtool install -c"
2457      else
2458        ac_aux_dir_found=no
2459        if $ac_first_candidate; then
2460          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2461        else
2462          break
2463        fi
2464      fi
2465    else
2466      if test -f "${as_dir}${ac_aux}"; then
2467        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2468      else
2469        ac_aux_dir_found=no
2470        if $ac_first_candidate; then
2471          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2472        else
2473          break
2474        fi
2475      fi
2476    fi
2477  done
2478  if test "$ac_aux_dir_found" = yes; then
2479    ac_aux_dir="$as_dir"
2480    break
2481  fi
2482  ac_first_candidate=false
2483
2484  as_found=false
2485done
2486IFS=$as_save_IFS
2487if $as_found
2488then :
2489
2490else case e in #(
2491  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2492esac
2493fi
2494
2495
2496# These three variables are undocumented and unsupported,
2497# and are intended to be withdrawn in a future Autoconf release.
2498# They can cause serious problems if a builder's source tree is in a directory
2499# whose full name contains unusual characters.
2500if test -f "${ac_aux_dir}config.guess"; then
2501  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2502fi
2503if test -f "${ac_aux_dir}config.sub"; then
2504  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2505fi
2506if test -f "$ac_aux_dir/configure"; then
2507  ac_configure="$SHELL ${ac_aux_dir}configure"
2508fi
2509
2510# Check that the precious variables saved in the cache have kept the same
2511# value.
2512ac_cache_corrupted=false
2513for ac_var in $ac_precious_vars; do
2514  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2515  eval ac_new_set=\$ac_env_${ac_var}_set
2516  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2517  eval ac_new_val=\$ac_env_${ac_var}_value
2518  case $ac_old_set,$ac_new_set in
2519    set,)
2520      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2521printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2522      ac_cache_corrupted=: ;;
2523    ,set)
2524      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2525printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2526      ac_cache_corrupted=: ;;
2527    ,);;
2528    *)
2529      if test "x$ac_old_val" != "x$ac_new_val"; then
2530	# differences in whitespace do not lead to failure.
2531	ac_old_val_w=`echo x $ac_old_val`
2532	ac_new_val_w=`echo x $ac_new_val`
2533	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2534	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2535printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2536	  ac_cache_corrupted=:
2537	else
2538	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2539printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2540	  eval $ac_var=\$ac_old_val
2541	fi
2542	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2543printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2544	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2545printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2546      fi;;
2547  esac
2548  # Pass precious variables to config.status.
2549  if test "$ac_new_set" = set; then
2550    case $ac_new_val in
2551    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2552    *) ac_arg=$ac_var=$ac_new_val ;;
2553    esac
2554    case " $ac_configure_args " in
2555      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2556      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2557    esac
2558  fi
2559done
2560if $ac_cache_corrupted; then
2561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2562printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2564printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2565  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2566	    and start over" "$LINENO" 5
2567fi
2568## -------------------- ##
2569## Main body of script. ##
2570## -------------------- ##
2571
2572ac_ext=c
2573ac_cpp='$CPP $CPPFLAGS'
2574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576ac_compiler_gnu=$ac_cv_c_compiler_gnu
2577
2578
2579
2580ac_config_headers="$ac_config_headers config.h"
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593# Expand $ac_aux_dir to an absolute path.
2594am_aux_dir=`cd "$ac_aux_dir" && pwd`
2595
2596ac_ext=c
2597ac_cpp='$CPP $CPPFLAGS'
2598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600ac_compiler_gnu=$ac_cv_c_compiler_gnu
2601if test -n "$ac_tool_prefix"; then
2602  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2603set dummy ${ac_tool_prefix}gcc; ac_word=$2
2604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605printf %s "checking for $ac_word... " >&6; }
2606if test ${ac_cv_prog_CC+y}
2607then :
2608  printf %s "(cached) " >&6
2609else case e in #(
2610  e) if test -n "$CC"; then
2611  ac_cv_prog_CC="$CC" # Let the user override the test.
2612else
2613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614for as_dir in $PATH
2615do
2616  IFS=$as_save_IFS
2617  case $as_dir in #(((
2618    '') as_dir=./ ;;
2619    */) ;;
2620    *) as_dir=$as_dir/ ;;
2621  esac
2622    for ac_exec_ext in '' $ac_executable_extensions; do
2623  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2624    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2625    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2626    break 2
2627  fi
2628done
2629  done
2630IFS=$as_save_IFS
2631
2632fi ;;
2633esac
2634fi
2635CC=$ac_cv_prog_CC
2636if test -n "$CC"; then
2637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2638printf "%s\n" "$CC" >&6; }
2639else
2640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641printf "%s\n" "no" >&6; }
2642fi
2643
2644
2645fi
2646if test -z "$ac_cv_prog_CC"; then
2647  ac_ct_CC=$CC
2648  # Extract the first word of "gcc", so it can be a program name with args.
2649set dummy gcc; ac_word=$2
2650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651printf %s "checking for $ac_word... " >&6; }
2652if test ${ac_cv_prog_ac_ct_CC+y}
2653then :
2654  printf %s "(cached) " >&6
2655else case e in #(
2656  e) if test -n "$ac_ct_CC"; then
2657  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662  IFS=$as_save_IFS
2663  case $as_dir in #(((
2664    '') as_dir=./ ;;
2665    */) ;;
2666    *) as_dir=$as_dir/ ;;
2667  esac
2668    for ac_exec_ext in '' $ac_executable_extensions; do
2669  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2670    ac_cv_prog_ac_ct_CC="gcc"
2671    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2672    break 2
2673  fi
2674done
2675  done
2676IFS=$as_save_IFS
2677
2678fi ;;
2679esac
2680fi
2681ac_ct_CC=$ac_cv_prog_ac_ct_CC
2682if test -n "$ac_ct_CC"; then
2683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2684printf "%s\n" "$ac_ct_CC" >&6; }
2685else
2686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687printf "%s\n" "no" >&6; }
2688fi
2689
2690  if test "x$ac_ct_CC" = x; then
2691    CC=""
2692  else
2693    case $cross_compiling:$ac_tool_warned in
2694yes:)
2695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2696printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2697ac_tool_warned=yes ;;
2698esac
2699    CC=$ac_ct_CC
2700  fi
2701else
2702  CC="$ac_cv_prog_CC"
2703fi
2704
2705if test -z "$CC"; then
2706          if test -n "$ac_tool_prefix"; then
2707    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2708set dummy ${ac_tool_prefix}cc; ac_word=$2
2709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710printf %s "checking for $ac_word... " >&6; }
2711if test ${ac_cv_prog_CC+y}
2712then :
2713  printf %s "(cached) " >&6
2714else case e in #(
2715  e) if test -n "$CC"; then
2716  ac_cv_prog_CC="$CC" # Let the user override the test.
2717else
2718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH
2720do
2721  IFS=$as_save_IFS
2722  case $as_dir in #(((
2723    '') as_dir=./ ;;
2724    */) ;;
2725    *) as_dir=$as_dir/ ;;
2726  esac
2727    for ac_exec_ext in '' $ac_executable_extensions; do
2728  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2729    ac_cv_prog_CC="${ac_tool_prefix}cc"
2730    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2731    break 2
2732  fi
2733done
2734  done
2735IFS=$as_save_IFS
2736
2737fi ;;
2738esac
2739fi
2740CC=$ac_cv_prog_CC
2741if test -n "$CC"; then
2742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2743printf "%s\n" "$CC" >&6; }
2744else
2745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746printf "%s\n" "no" >&6; }
2747fi
2748
2749
2750  fi
2751fi
2752if test -z "$CC"; then
2753  # Extract the first word of "cc", so it can be a program name with args.
2754set dummy cc; ac_word=$2
2755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756printf %s "checking for $ac_word... " >&6; }
2757if test ${ac_cv_prog_CC+y}
2758then :
2759  printf %s "(cached) " >&6
2760else case e in #(
2761  e) if test -n "$CC"; then
2762  ac_cv_prog_CC="$CC" # Let the user override the test.
2763else
2764  ac_prog_rejected=no
2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766for as_dir in $PATH
2767do
2768  IFS=$as_save_IFS
2769  case $as_dir in #(((
2770    '') as_dir=./ ;;
2771    */) ;;
2772    *) as_dir=$as_dir/ ;;
2773  esac
2774    for ac_exec_ext in '' $ac_executable_extensions; do
2775  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2776    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2777       ac_prog_rejected=yes
2778       continue
2779     fi
2780    ac_cv_prog_CC="cc"
2781    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2782    break 2
2783  fi
2784done
2785  done
2786IFS=$as_save_IFS
2787
2788if test $ac_prog_rejected = yes; then
2789  # We found a bogon in the path, so make sure we never use it.
2790  set dummy $ac_cv_prog_CC
2791  shift
2792  if test $# != 0; then
2793    # We chose a different compiler from the bogus one.
2794    # However, it has the same basename, so the bogon will be chosen
2795    # first if we set CC to just the basename; use the full file name.
2796    shift
2797    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2798  fi
2799fi
2800fi ;;
2801esac
2802fi
2803CC=$ac_cv_prog_CC
2804if test -n "$CC"; then
2805  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2806printf "%s\n" "$CC" >&6; }
2807else
2808  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809printf "%s\n" "no" >&6; }
2810fi
2811
2812
2813fi
2814if test -z "$CC"; then
2815  if test -n "$ac_tool_prefix"; then
2816  for ac_prog in cl.exe
2817  do
2818    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2819set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821printf %s "checking for $ac_word... " >&6; }
2822if test ${ac_cv_prog_CC+y}
2823then :
2824  printf %s "(cached) " >&6
2825else case e in #(
2826  e) if test -n "$CC"; then
2827  ac_cv_prog_CC="$CC" # Let the user override the test.
2828else
2829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830for as_dir in $PATH
2831do
2832  IFS=$as_save_IFS
2833  case $as_dir in #(((
2834    '') as_dir=./ ;;
2835    */) ;;
2836    *) as_dir=$as_dir/ ;;
2837  esac
2838    for ac_exec_ext in '' $ac_executable_extensions; do
2839  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2840    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2841    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2842    break 2
2843  fi
2844done
2845  done
2846IFS=$as_save_IFS
2847
2848fi ;;
2849esac
2850fi
2851CC=$ac_cv_prog_CC
2852if test -n "$CC"; then
2853  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854printf "%s\n" "$CC" >&6; }
2855else
2856  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857printf "%s\n" "no" >&6; }
2858fi
2859
2860
2861    test -n "$CC" && break
2862  done
2863fi
2864if test -z "$CC"; then
2865  ac_ct_CC=$CC
2866  for ac_prog in cl.exe
2867do
2868  # Extract the first word of "$ac_prog", so it can be a program name with args.
2869set dummy $ac_prog; ac_word=$2
2870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871printf %s "checking for $ac_word... " >&6; }
2872if test ${ac_cv_prog_ac_ct_CC+y}
2873then :
2874  printf %s "(cached) " >&6
2875else case e in #(
2876  e) if test -n "$ac_ct_CC"; then
2877  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882  IFS=$as_save_IFS
2883  case $as_dir in #(((
2884    '') as_dir=./ ;;
2885    */) ;;
2886    *) as_dir=$as_dir/ ;;
2887  esac
2888    for ac_exec_ext in '' $ac_executable_extensions; do
2889  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2890    ac_cv_prog_ac_ct_CC="$ac_prog"
2891    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2892    break 2
2893  fi
2894done
2895  done
2896IFS=$as_save_IFS
2897
2898fi ;;
2899esac
2900fi
2901ac_ct_CC=$ac_cv_prog_ac_ct_CC
2902if test -n "$ac_ct_CC"; then
2903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2904printf "%s\n" "$ac_ct_CC" >&6; }
2905else
2906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907printf "%s\n" "no" >&6; }
2908fi
2909
2910
2911  test -n "$ac_ct_CC" && break
2912done
2913
2914  if test "x$ac_ct_CC" = x; then
2915    CC=""
2916  else
2917    case $cross_compiling:$ac_tool_warned in
2918yes:)
2919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2920printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2921ac_tool_warned=yes ;;
2922esac
2923    CC=$ac_ct_CC
2924  fi
2925fi
2926
2927fi
2928if test -z "$CC"; then
2929  if test -n "$ac_tool_prefix"; then
2930  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2931set dummy ${ac_tool_prefix}clang; ac_word=$2
2932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933printf %s "checking for $ac_word... " >&6; }
2934if test ${ac_cv_prog_CC+y}
2935then :
2936  printf %s "(cached) " >&6
2937else case e in #(
2938  e) if test -n "$CC"; then
2939  ac_cv_prog_CC="$CC" # Let the user override the test.
2940else
2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942for as_dir in $PATH
2943do
2944  IFS=$as_save_IFS
2945  case $as_dir in #(((
2946    '') as_dir=./ ;;
2947    */) ;;
2948    *) as_dir=$as_dir/ ;;
2949  esac
2950    for ac_exec_ext in '' $ac_executable_extensions; do
2951  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2952    ac_cv_prog_CC="${ac_tool_prefix}clang"
2953    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2954    break 2
2955  fi
2956done
2957  done
2958IFS=$as_save_IFS
2959
2960fi ;;
2961esac
2962fi
2963CC=$ac_cv_prog_CC
2964if test -n "$CC"; then
2965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2966printf "%s\n" "$CC" >&6; }
2967else
2968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969printf "%s\n" "no" >&6; }
2970fi
2971
2972
2973fi
2974if test -z "$ac_cv_prog_CC"; then
2975  ac_ct_CC=$CC
2976  # Extract the first word of "clang", so it can be a program name with args.
2977set dummy clang; ac_word=$2
2978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979printf %s "checking for $ac_word... " >&6; }
2980if test ${ac_cv_prog_ac_ct_CC+y}
2981then :
2982  printf %s "(cached) " >&6
2983else case e in #(
2984  e) if test -n "$ac_ct_CC"; then
2985  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2986else
2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988for as_dir in $PATH
2989do
2990  IFS=$as_save_IFS
2991  case $as_dir in #(((
2992    '') as_dir=./ ;;
2993    */) ;;
2994    *) as_dir=$as_dir/ ;;
2995  esac
2996    for ac_exec_ext in '' $ac_executable_extensions; do
2997  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2998    ac_cv_prog_ac_ct_CC="clang"
2999    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3000    break 2
3001  fi
3002done
3003  done
3004IFS=$as_save_IFS
3005
3006fi ;;
3007esac
3008fi
3009ac_ct_CC=$ac_cv_prog_ac_ct_CC
3010if test -n "$ac_ct_CC"; then
3011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3012printf "%s\n" "$ac_ct_CC" >&6; }
3013else
3014  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015printf "%s\n" "no" >&6; }
3016fi
3017
3018  if test "x$ac_ct_CC" = x; then
3019    CC=""
3020  else
3021    case $cross_compiling:$ac_tool_warned in
3022yes:)
3023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3024printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3025ac_tool_warned=yes ;;
3026esac
3027    CC=$ac_ct_CC
3028  fi
3029else
3030  CC="$ac_cv_prog_CC"
3031fi
3032
3033fi
3034
3035
3036test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3037printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3038as_fn_error $? "no acceptable C compiler found in \$PATH
3039See 'config.log' for more details" "$LINENO" 5; }
3040
3041# Provide some information about the compiler.
3042printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3043set X $ac_compile
3044ac_compiler=$2
3045for ac_option in --version -v -V -qversion -version; do
3046  { { ac_try="$ac_compiler $ac_option >&5"
3047case "(($ac_try" in
3048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049  *) ac_try_echo=$ac_try;;
3050esac
3051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3052printf "%s\n" "$ac_try_echo"; } >&5
3053  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3054  ac_status=$?
3055  if test -s conftest.err; then
3056    sed '10a\
3057... rest of stderr output deleted ...
3058         10q' conftest.err >conftest.er1
3059    cat conftest.er1 >&5
3060  fi
3061  rm -f conftest.er1 conftest.err
3062  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063  test $ac_status = 0; }
3064done
3065
3066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067/* end confdefs.h.  */
3068
3069int
3070main (void)
3071{
3072
3073  ;
3074  return 0;
3075}
3076_ACEOF
3077ac_clean_files_save=$ac_clean_files
3078ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3079# Try to create an executable without -o first, disregard a.out.
3080# It will help us diagnose broken compilers, and finding out an intuition
3081# of exeext.
3082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3083printf %s "checking whether the C compiler works... " >&6; }
3084ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3085
3086# The possible output files:
3087ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3088
3089ac_rmfiles=
3090for ac_file in $ac_files
3091do
3092  case $ac_file in
3093    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3094    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3095  esac
3096done
3097rm -f $ac_rmfiles
3098
3099if { { ac_try="$ac_link_default"
3100case "(($ac_try" in
3101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102  *) ac_try_echo=$ac_try;;
3103esac
3104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105printf "%s\n" "$ac_try_echo"; } >&5
3106  (eval "$ac_link_default") 2>&5
3107  ac_status=$?
3108  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109  test $ac_status = 0; }
3110then :
3111  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3112# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3113# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3114# so that the user can short-circuit this test for compilers unknown to
3115# Autoconf.
3116for ac_file in $ac_files ''
3117do
3118  test -f "$ac_file" || continue
3119  case $ac_file in
3120    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3121	;;
3122    [ab].out )
3123	# We found the default executable, but exeext='' is most
3124	# certainly right.
3125	break;;
3126    *.* )
3127	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3128	then :; else
3129	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3130	fi
3131	# We set ac_cv_exeext here because the later test for it is not
3132	# safe: cross compilers may not add the suffix if given an '-o'
3133	# argument, so we may need to know it at that point already.
3134	# Even if this section looks crufty: it has the advantage of
3135	# actually working.
3136	break;;
3137    * )
3138	break;;
3139  esac
3140done
3141test "$ac_cv_exeext" = no && ac_cv_exeext=
3142
3143else case e in #(
3144  e) ac_file='' ;;
3145esac
3146fi
3147if test -z "$ac_file"
3148then :
3149  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150printf "%s\n" "no" >&6; }
3151printf "%s\n" "$as_me: failed program was:" >&5
3152sed 's/^/| /' conftest.$ac_ext >&5
3153
3154{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3155printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3156as_fn_error 77 "C compiler cannot create executables
3157See 'config.log' for more details" "$LINENO" 5; }
3158else case e in #(
3159  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3160printf "%s\n" "yes" >&6; } ;;
3161esac
3162fi
3163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3164printf %s "checking for C compiler default output file name... " >&6; }
3165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3166printf "%s\n" "$ac_file" >&6; }
3167ac_exeext=$ac_cv_exeext
3168
3169rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3170ac_clean_files=$ac_clean_files_save
3171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3172printf %s "checking for suffix of executables... " >&6; }
3173if { { ac_try="$ac_link"
3174case "(($ac_try" in
3175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176  *) ac_try_echo=$ac_try;;
3177esac
3178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179printf "%s\n" "$ac_try_echo"; } >&5
3180  (eval "$ac_link") 2>&5
3181  ac_status=$?
3182  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183  test $ac_status = 0; }
3184then :
3185  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3186# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3187# work properly (i.e., refer to 'conftest.exe'), while it won't with
3188# 'rm'.
3189for ac_file in conftest.exe conftest conftest.*; do
3190  test -f "$ac_file" || continue
3191  case $ac_file in
3192    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3193    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3194	  break;;
3195    * ) break;;
3196  esac
3197done
3198else case e in #(
3199  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3200printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3201as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3202See 'config.log' for more details" "$LINENO" 5; } ;;
3203esac
3204fi
3205rm -f conftest conftest$ac_cv_exeext
3206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3207printf "%s\n" "$ac_cv_exeext" >&6; }
3208
3209rm -f conftest.$ac_ext
3210EXEEXT=$ac_cv_exeext
3211ac_exeext=$EXEEXT
3212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213/* end confdefs.h.  */
3214#include <stdio.h>
3215int
3216main (void)
3217{
3218FILE *f = fopen ("conftest.out", "w");
3219 if (!f)
3220  return 1;
3221 return ferror (f) || fclose (f) != 0;
3222
3223  ;
3224  return 0;
3225}
3226_ACEOF
3227ac_clean_files="$ac_clean_files conftest.out"
3228# Check that the compiler produces executables we can run.  If not, either
3229# the compiler is broken, or we cross compile.
3230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3231printf %s "checking whether we are cross compiling... " >&6; }
3232if test "$cross_compiling" != yes; then
3233  { { ac_try="$ac_link"
3234case "(($ac_try" in
3235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236  *) ac_try_echo=$ac_try;;
3237esac
3238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239printf "%s\n" "$ac_try_echo"; } >&5
3240  (eval "$ac_link") 2>&5
3241  ac_status=$?
3242  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3243  test $ac_status = 0; }
3244  if { ac_try='./conftest$ac_cv_exeext'
3245  { { case "(($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_try") 2>&5
3252  ac_status=$?
3253  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254  test $ac_status = 0; }; }; then
3255    cross_compiling=no
3256  else
3257    if test "$cross_compiling" = maybe; then
3258	cross_compiling=yes
3259    else
3260	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3261printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3262as_fn_error 77 "cannot run C compiled programs.
3263If you meant to cross compile, use '--host'.
3264See 'config.log' for more details" "$LINENO" 5; }
3265    fi
3266  fi
3267fi
3268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3269printf "%s\n" "$cross_compiling" >&6; }
3270
3271rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3272  conftest.o conftest.obj conftest.out
3273ac_clean_files=$ac_clean_files_save
3274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3275printf %s "checking for suffix of object files... " >&6; }
3276if test ${ac_cv_objext+y}
3277then :
3278  printf %s "(cached) " >&6
3279else case e in #(
3280  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281/* end confdefs.h.  */
3282
3283int
3284main (void)
3285{
3286
3287  ;
3288  return 0;
3289}
3290_ACEOF
3291rm -f conftest.o conftest.obj
3292if { { ac_try="$ac_compile"
3293case "(($ac_try" in
3294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295  *) ac_try_echo=$ac_try;;
3296esac
3297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298printf "%s\n" "$ac_try_echo"; } >&5
3299  (eval "$ac_compile") 2>&5
3300  ac_status=$?
3301  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302  test $ac_status = 0; }
3303then :
3304  for ac_file in conftest.o conftest.obj conftest.*; do
3305  test -f "$ac_file" || continue;
3306  case $ac_file in
3307    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3308    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3309       break;;
3310  esac
3311done
3312else case e in #(
3313  e) printf "%s\n" "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
3316{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3317printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3318as_fn_error $? "cannot compute suffix of object files: cannot compile
3319See 'config.log' for more details" "$LINENO" 5; } ;;
3320esac
3321fi
3322rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3323esac
3324fi
3325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3326printf "%s\n" "$ac_cv_objext" >&6; }
3327OBJEXT=$ac_cv_objext
3328ac_objext=$OBJEXT
3329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3330printf %s "checking whether the compiler supports GNU C... " >&6; }
3331if test ${ac_cv_c_compiler_gnu+y}
3332then :
3333  printf %s "(cached) " >&6
3334else case e in #(
3335  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336/* end confdefs.h.  */
3337
3338int
3339main (void)
3340{
3341#ifndef __GNUC__
3342       choke me
3343#endif
3344
3345  ;
3346  return 0;
3347}
3348_ACEOF
3349if ac_fn_c_try_compile "$LINENO"
3350then :
3351  ac_compiler_gnu=yes
3352else case e in #(
3353  e) ac_compiler_gnu=no ;;
3354esac
3355fi
3356rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3357ac_cv_c_compiler_gnu=$ac_compiler_gnu
3358 ;;
3359esac
3360fi
3361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3362printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3363ac_compiler_gnu=$ac_cv_c_compiler_gnu
3364
3365if test $ac_compiler_gnu = yes; then
3366  GCC=yes
3367else
3368  GCC=
3369fi
3370ac_test_CFLAGS=${CFLAGS+y}
3371ac_save_CFLAGS=$CFLAGS
3372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3373printf %s "checking whether $CC accepts -g... " >&6; }
3374if test ${ac_cv_prog_cc_g+y}
3375then :
3376  printf %s "(cached) " >&6
3377else case e in #(
3378  e) ac_save_c_werror_flag=$ac_c_werror_flag
3379   ac_c_werror_flag=yes
3380   ac_cv_prog_cc_g=no
3381   CFLAGS="-g"
3382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383/* end confdefs.h.  */
3384
3385int
3386main (void)
3387{
3388
3389  ;
3390  return 0;
3391}
3392_ACEOF
3393if ac_fn_c_try_compile "$LINENO"
3394then :
3395  ac_cv_prog_cc_g=yes
3396else case e in #(
3397  e) CFLAGS=""
3398      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399/* end confdefs.h.  */
3400
3401int
3402main (void)
3403{
3404
3405  ;
3406  return 0;
3407}
3408_ACEOF
3409if ac_fn_c_try_compile "$LINENO"
3410then :
3411
3412else case e in #(
3413  e) ac_c_werror_flag=$ac_save_c_werror_flag
3414	 CFLAGS="-g"
3415	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416/* end confdefs.h.  */
3417
3418int
3419main (void)
3420{
3421
3422  ;
3423  return 0;
3424}
3425_ACEOF
3426if ac_fn_c_try_compile "$LINENO"
3427then :
3428  ac_cv_prog_cc_g=yes
3429fi
3430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3431esac
3432fi
3433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3434esac
3435fi
3436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3437   ac_c_werror_flag=$ac_save_c_werror_flag ;;
3438esac
3439fi
3440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3441printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3442if test $ac_test_CFLAGS; then
3443  CFLAGS=$ac_save_CFLAGS
3444elif test $ac_cv_prog_cc_g = yes; then
3445  if test "$GCC" = yes; then
3446    CFLAGS="-g -O2"
3447  else
3448    CFLAGS="-g"
3449  fi
3450else
3451  if test "$GCC" = yes; then
3452    CFLAGS="-O2"
3453  else
3454    CFLAGS=
3455  fi
3456fi
3457ac_prog_cc_stdc=no
3458if test x$ac_prog_cc_stdc = xno
3459then :
3460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3461printf %s "checking for $CC option to enable C11 features... " >&6; }
3462if test ${ac_cv_prog_cc_c11+y}
3463then :
3464  printf %s "(cached) " >&6
3465else case e in #(
3466  e) ac_cv_prog_cc_c11=no
3467ac_save_CC=$CC
3468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469/* end confdefs.h.  */
3470$ac_c_conftest_c11_program
3471_ACEOF
3472for ac_arg in '' -std=gnu11
3473do
3474  CC="$ac_save_CC $ac_arg"
3475  if ac_fn_c_try_compile "$LINENO"
3476then :
3477  ac_cv_prog_cc_c11=$ac_arg
3478fi
3479rm -f core conftest.err conftest.$ac_objext conftest.beam
3480  test "x$ac_cv_prog_cc_c11" != "xno" && break
3481done
3482rm -f conftest.$ac_ext
3483CC=$ac_save_CC ;;
3484esac
3485fi
3486
3487if test "x$ac_cv_prog_cc_c11" = xno
3488then :
3489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3490printf "%s\n" "unsupported" >&6; }
3491else case e in #(
3492  e) if test "x$ac_cv_prog_cc_c11" = x
3493then :
3494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3495printf "%s\n" "none needed" >&6; }
3496else case e in #(
3497  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3498printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3499     CC="$CC $ac_cv_prog_cc_c11" ;;
3500esac
3501fi
3502  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3503  ac_prog_cc_stdc=c11 ;;
3504esac
3505fi
3506fi
3507if test x$ac_prog_cc_stdc = xno
3508then :
3509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3510printf %s "checking for $CC option to enable C99 features... " >&6; }
3511if test ${ac_cv_prog_cc_c99+y}
3512then :
3513  printf %s "(cached) " >&6
3514else case e in #(
3515  e) ac_cv_prog_cc_c99=no
3516ac_save_CC=$CC
3517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518/* end confdefs.h.  */
3519$ac_c_conftest_c99_program
3520_ACEOF
3521for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3522do
3523  CC="$ac_save_CC $ac_arg"
3524  if ac_fn_c_try_compile "$LINENO"
3525then :
3526  ac_cv_prog_cc_c99=$ac_arg
3527fi
3528rm -f core conftest.err conftest.$ac_objext conftest.beam
3529  test "x$ac_cv_prog_cc_c99" != "xno" && break
3530done
3531rm -f conftest.$ac_ext
3532CC=$ac_save_CC ;;
3533esac
3534fi
3535
3536if test "x$ac_cv_prog_cc_c99" = xno
3537then :
3538  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3539printf "%s\n" "unsupported" >&6; }
3540else case e in #(
3541  e) if test "x$ac_cv_prog_cc_c99" = x
3542then :
3543  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3544printf "%s\n" "none needed" >&6; }
3545else case e in #(
3546  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3547printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3548     CC="$CC $ac_cv_prog_cc_c99" ;;
3549esac
3550fi
3551  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3552  ac_prog_cc_stdc=c99 ;;
3553esac
3554fi
3555fi
3556if test x$ac_prog_cc_stdc = xno
3557then :
3558  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3559printf %s "checking for $CC option to enable C89 features... " >&6; }
3560if test ${ac_cv_prog_cc_c89+y}
3561then :
3562  printf %s "(cached) " >&6
3563else case e in #(
3564  e) ac_cv_prog_cc_c89=no
3565ac_save_CC=$CC
3566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567/* end confdefs.h.  */
3568$ac_c_conftest_c89_program
3569_ACEOF
3570for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3571do
3572  CC="$ac_save_CC $ac_arg"
3573  if ac_fn_c_try_compile "$LINENO"
3574then :
3575  ac_cv_prog_cc_c89=$ac_arg
3576fi
3577rm -f core conftest.err conftest.$ac_objext conftest.beam
3578  test "x$ac_cv_prog_cc_c89" != "xno" && break
3579done
3580rm -f conftest.$ac_ext
3581CC=$ac_save_CC ;;
3582esac
3583fi
3584
3585if test "x$ac_cv_prog_cc_c89" = xno
3586then :
3587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3588printf "%s\n" "unsupported" >&6; }
3589else case e in #(
3590  e) if test "x$ac_cv_prog_cc_c89" = x
3591then :
3592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3593printf "%s\n" "none needed" >&6; }
3594else case e in #(
3595  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3596printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3597     CC="$CC $ac_cv_prog_cc_c89" ;;
3598esac
3599fi
3600  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3601  ac_prog_cc_stdc=c89 ;;
3602esac
3603fi
3604fi
3605
3606ac_ext=c
3607ac_cpp='$CPP $CPPFLAGS'
3608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3610ac_compiler_gnu=$ac_cv_c_compiler_gnu
3611
3612
3613  ac_ext=c
3614ac_cpp='$CPP $CPPFLAGS'
3615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3619printf %s "checking whether $CC understands -c and -o together... " >&6; }
3620if test ${am_cv_prog_cc_c_o+y}
3621then :
3622  printf %s "(cached) " >&6
3623else case e in #(
3624  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625/* end confdefs.h.  */
3626
3627int
3628main (void)
3629{
3630
3631  ;
3632  return 0;
3633}
3634_ACEOF
3635  # Make sure it works both with $CC and with simple cc.
3636  # Following AC_PROG_CC_C_O, we do the test twice because some
3637  # compilers refuse to overwrite an existing .o file with -o,
3638  # though they will create one.
3639  am_cv_prog_cc_c_o=yes
3640  for am_i in 1 2; do
3641    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3642   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3643   ac_status=$?
3644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645   (exit $ac_status); } \
3646         && test -f conftest2.$ac_objext; then
3647      : OK
3648    else
3649      am_cv_prog_cc_c_o=no
3650      break
3651    fi
3652  done
3653  rm -f core conftest*
3654  unset am_i ;;
3655esac
3656fi
3657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3658printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3659if test "$am_cv_prog_cc_c_o" != yes; then
3660   # Losing compiler, so override with the script.
3661   # FIXME: It is wrong to rewrite CC.
3662   # But if we don't then we get into trouble of one sort or another.
3663   # A longer-term fix would be to have automake use am__CC in this case,
3664   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3665   CC="$am_aux_dir/compile $CC"
3666fi
3667ac_ext=c
3668ac_cpp='$CPP $CPPFLAGS'
3669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672
3673
3674
3675ac_header= ac_cache=
3676for ac_item in $ac_header_c_list
3677do
3678  if test $ac_cache; then
3679    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3680    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3681      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3682    fi
3683    ac_header= ac_cache=
3684  elif test $ac_header; then
3685    ac_cache=$ac_item
3686  else
3687    ac_header=$ac_item
3688  fi
3689done
3690
3691
3692
3693
3694
3695
3696
3697
3698if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3699then :
3700
3701printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3702
3703fi
3704
3705
3706
3707
3708
3709
3710  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3711printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3712if test ${ac_cv_safe_to_define___extensions__+y}
3713then :
3714  printf %s "(cached) " >&6
3715else case e in #(
3716  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717/* end confdefs.h.  */
3718
3719#         define __EXTENSIONS__ 1
3720          $ac_includes_default
3721int
3722main (void)
3723{
3724
3725  ;
3726  return 0;
3727}
3728_ACEOF
3729if ac_fn_c_try_compile "$LINENO"
3730then :
3731  ac_cv_safe_to_define___extensions__=yes
3732else case e in #(
3733  e) ac_cv_safe_to_define___extensions__=no ;;
3734esac
3735fi
3736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3737esac
3738fi
3739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3740printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3741
3742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3743printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3744if test ${ac_cv_should_define__xopen_source+y}
3745then :
3746  printf %s "(cached) " >&6
3747else case e in #(
3748  e) ac_cv_should_define__xopen_source=no
3749    if test $ac_cv_header_wchar_h = yes
3750then :
3751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752/* end confdefs.h.  */
3753
3754          #include <wchar.h>
3755          mbstate_t x;
3756int
3757main (void)
3758{
3759
3760  ;
3761  return 0;
3762}
3763_ACEOF
3764if ac_fn_c_try_compile "$LINENO"
3765then :
3766
3767else case e in #(
3768  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769/* end confdefs.h.  */
3770
3771            #define _XOPEN_SOURCE 500
3772            #include <wchar.h>
3773            mbstate_t x;
3774int
3775main (void)
3776{
3777
3778  ;
3779  return 0;
3780}
3781_ACEOF
3782if ac_fn_c_try_compile "$LINENO"
3783then :
3784  ac_cv_should_define__xopen_source=yes
3785fi
3786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3787esac
3788fi
3789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3790fi ;;
3791esac
3792fi
3793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3794printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3795
3796  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3797
3798  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3799
3800  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3801
3802  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3803
3804  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3805
3806  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3807
3808  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3809
3810  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3811
3812  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3813
3814  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3815
3816  printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3817
3818  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3819
3820  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3821
3822  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3823
3824  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3825
3826  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3827
3828  if test $ac_cv_header_minix_config_h = yes
3829then :
3830  MINIX=yes
3831    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3832
3833    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3834
3835    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3836
3837else case e in #(
3838  e) MINIX= ;;
3839esac
3840fi
3841  if test $ac_cv_safe_to_define___extensions__ = yes
3842then :
3843  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3844
3845fi
3846  if test $ac_cv_should_define__xopen_source = yes
3847then :
3848  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3849
3850fi
3851
3852
3853# Initialize Automake
3854am__api_version='1.16'
3855
3856
3857  # Find a good install program.  We prefer a C program (faster),
3858# so one script is as good as another.  But avoid the broken or
3859# incompatible versions:
3860# SysV /etc/install, /usr/sbin/install
3861# SunOS /usr/etc/install
3862# IRIX /sbin/install
3863# AIX /bin/install
3864# AmigaOS /C/install, which installs bootblocks on floppy discs
3865# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3866# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3867# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3868# OS/2's system install, which has a completely different semantic
3869# ./install, which can be erroneously created by make from ./install.sh.
3870# Reject install programs that cannot install multiple files.
3871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3872printf %s "checking for a BSD-compatible install... " >&6; }
3873if test -z "$INSTALL"; then
3874if test ${ac_cv_path_install+y}
3875then :
3876  printf %s "(cached) " >&6
3877else case e in #(
3878  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879for as_dir in $PATH
3880do
3881  IFS=$as_save_IFS
3882  case $as_dir in #(((
3883    '') as_dir=./ ;;
3884    */) ;;
3885    *) as_dir=$as_dir/ ;;
3886  esac
3887    # Account for fact that we put trailing slashes in our PATH walk.
3888case $as_dir in #((
3889  ./ | /[cC]/* | \
3890  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3891  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3892  /usr/ucb/* ) ;;
3893  *)
3894    # OSF1 and SCO ODT 3.0 have their own names for install.
3895    # Don't use installbsd from OSF since it installs stuff as root
3896    # by default.
3897    for ac_prog in ginstall scoinst install; do
3898      for ac_exec_ext in '' $ac_executable_extensions; do
3899	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3900	  if test $ac_prog = install &&
3901	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3902	    # AIX install.  It has an incompatible calling convention.
3903	    :
3904	  elif test $ac_prog = install &&
3905	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3906	    # program-specific install script used by HP pwplus--don't use.
3907	    :
3908	  else
3909	    rm -rf conftest.one conftest.two conftest.dir
3910	    echo one > conftest.one
3911	    echo two > conftest.two
3912	    mkdir conftest.dir
3913	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3914	      test -s conftest.one && test -s conftest.two &&
3915	      test -s conftest.dir/conftest.one &&
3916	      test -s conftest.dir/conftest.two
3917	    then
3918	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3919	      break 3
3920	    fi
3921	  fi
3922	fi
3923      done
3924    done
3925    ;;
3926esac
3927
3928  done
3929IFS=$as_save_IFS
3930
3931rm -rf conftest.one conftest.two conftest.dir
3932 ;;
3933esac
3934fi
3935  if test ${ac_cv_path_install+y}; then
3936    INSTALL=$ac_cv_path_install
3937  else
3938    # As a last resort, use the slow shell script.  Don't cache a
3939    # value for INSTALL within a source directory, because that will
3940    # break other packages using the cache if that directory is
3941    # removed, or if the value is a relative name.
3942    INSTALL=$ac_install_sh
3943  fi
3944fi
3945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3946printf "%s\n" "$INSTALL" >&6; }
3947
3948# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3949# It thinks the first close brace ends the variable substitution.
3950test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3951
3952test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3953
3954test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3955
3956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3957printf %s "checking whether build environment is sane... " >&6; }
3958# Reject unsafe characters in $srcdir or the absolute working directory
3959# name.  Accept space and tab only in the latter.
3960am_lf='
3961'
3962case `pwd` in
3963  *[\\\"\#\$\&\'\`$am_lf]*)
3964    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3965esac
3966case $srcdir in
3967  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3968    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3969esac
3970
3971# Do 'set' in a subshell so we don't clobber the current shell's
3972# arguments.  Must try -L first in case configure is actually a
3973# symlink; some systems play weird games with the mod time of symlinks
3974# (eg FreeBSD returns the mod time of the symlink's containing
3975# directory).
3976if (
3977   am_has_slept=no
3978   for am_try in 1 2; do
3979     echo "timestamp, slept: $am_has_slept" > conftest.file
3980     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3981     if test "$*" = "X"; then
3982	# -L didn't work.
3983	set X `ls -t "$srcdir/configure" conftest.file`
3984     fi
3985     if test "$*" != "X $srcdir/configure conftest.file" \
3986	&& test "$*" != "X conftest.file $srcdir/configure"; then
3987
3988	# If neither matched, then we have a broken ls.  This can happen
3989	# if, for instance, CONFIG_SHELL is bash and it inherits a
3990	# broken ls alias from the environment.  This has actually
3991	# happened.  Such a system could not be considered "sane".
3992	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3993  alias in your environment" "$LINENO" 5
3994     fi
3995     if test "$2" = conftest.file || test $am_try -eq 2; then
3996       break
3997     fi
3998     # Just in case.
3999     sleep 1
4000     am_has_slept=yes
4001   done
4002   test "$2" = conftest.file
4003   )
4004then
4005   # Ok.
4006   :
4007else
4008   as_fn_error $? "newly created file is older than distributed files!
4009Check your system clock" "$LINENO" 5
4010fi
4011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4012printf "%s\n" "yes" >&6; }
4013# If we didn't sleep, we still need to ensure time stamps of config.status and
4014# generated files are strictly newer.
4015am_sleep_pid=
4016if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4017  ( sleep 1 ) &
4018  am_sleep_pid=$!
4019fi
4020
4021rm -f conftest.file
4022
4023test "$program_prefix" != NONE &&
4024  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4025# Use a double $ so make ignores it.
4026test "$program_suffix" != NONE &&
4027  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4028# Double any \ or $.
4029# By default was 's,x,x', remove it if useless.
4030ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4031program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4032
4033
4034  if test x"${MISSING+set}" != xset; then
4035  MISSING="\${SHELL} '$am_aux_dir/missing'"
4036fi
4037# Use eval to expand $SHELL
4038if eval "$MISSING --is-lightweight"; then
4039  am_missing_run="$MISSING "
4040else
4041  am_missing_run=
4042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4043printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4044fi
4045
4046if test x"${install_sh+set}" != xset; then
4047  case $am_aux_dir in
4048  *\ * | *\	*)
4049    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4050  *)
4051    install_sh="\${SHELL} $am_aux_dir/install-sh"
4052  esac
4053fi
4054
4055# Installed binaries are usually stripped using 'strip' when the user
4056# run "make install-strip".  However 'strip' might not be the right
4057# tool to use in cross-compilation environments, therefore Automake
4058# will honor the 'STRIP' environment variable to overrule this program.
4059if test "$cross_compiling" != no; then
4060  if test -n "$ac_tool_prefix"; then
4061  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4062set dummy ${ac_tool_prefix}strip; ac_word=$2
4063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4064printf %s "checking for $ac_word... " >&6; }
4065if test ${ac_cv_prog_STRIP+y}
4066then :
4067  printf %s "(cached) " >&6
4068else case e in #(
4069  e) if test -n "$STRIP"; then
4070  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4071else
4072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073for as_dir in $PATH
4074do
4075  IFS=$as_save_IFS
4076  case $as_dir in #(((
4077    '') as_dir=./ ;;
4078    */) ;;
4079    *) as_dir=$as_dir/ ;;
4080  esac
4081    for ac_exec_ext in '' $ac_executable_extensions; do
4082  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4083    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4084    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4085    break 2
4086  fi
4087done
4088  done
4089IFS=$as_save_IFS
4090
4091fi ;;
4092esac
4093fi
4094STRIP=$ac_cv_prog_STRIP
4095if test -n "$STRIP"; then
4096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4097printf "%s\n" "$STRIP" >&6; }
4098else
4099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100printf "%s\n" "no" >&6; }
4101fi
4102
4103
4104fi
4105if test -z "$ac_cv_prog_STRIP"; then
4106  ac_ct_STRIP=$STRIP
4107  # Extract the first word of "strip", so it can be a program name with args.
4108set dummy strip; ac_word=$2
4109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4110printf %s "checking for $ac_word... " >&6; }
4111if test ${ac_cv_prog_ac_ct_STRIP+y}
4112then :
4113  printf %s "(cached) " >&6
4114else case e in #(
4115  e) if test -n "$ac_ct_STRIP"; then
4116  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4117else
4118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119for as_dir in $PATH
4120do
4121  IFS=$as_save_IFS
4122  case $as_dir in #(((
4123    '') as_dir=./ ;;
4124    */) ;;
4125    *) as_dir=$as_dir/ ;;
4126  esac
4127    for ac_exec_ext in '' $ac_executable_extensions; do
4128  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4129    ac_cv_prog_ac_ct_STRIP="strip"
4130    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4131    break 2
4132  fi
4133done
4134  done
4135IFS=$as_save_IFS
4136
4137fi ;;
4138esac
4139fi
4140ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4141if test -n "$ac_ct_STRIP"; then
4142  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4143printf "%s\n" "$ac_ct_STRIP" >&6; }
4144else
4145  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146printf "%s\n" "no" >&6; }
4147fi
4148
4149  if test "x$ac_ct_STRIP" = x; then
4150    STRIP=":"
4151  else
4152    case $cross_compiling:$ac_tool_warned in
4153yes:)
4154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4155printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4156ac_tool_warned=yes ;;
4157esac
4158    STRIP=$ac_ct_STRIP
4159  fi
4160else
4161  STRIP="$ac_cv_prog_STRIP"
4162fi
4163
4164fi
4165INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4166
4167
4168  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4169printf %s "checking for a race-free mkdir -p... " >&6; }
4170if test -z "$MKDIR_P"; then
4171  if test ${ac_cv_path_mkdir+y}
4172then :
4173  printf %s "(cached) " >&6
4174else case e in #(
4175  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4177do
4178  IFS=$as_save_IFS
4179  case $as_dir in #(((
4180    '') as_dir=./ ;;
4181    */) ;;
4182    *) as_dir=$as_dir/ ;;
4183  esac
4184    for ac_prog in mkdir gmkdir; do
4185	 for ac_exec_ext in '' $ac_executable_extensions; do
4186	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4187	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4188	     'mkdir ('*'coreutils) '* | \
4189	     *'BusyBox '* | \
4190	     'mkdir (fileutils) '4.1*)
4191	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4192	       break 3;;
4193	   esac
4194	 done
4195       done
4196  done
4197IFS=$as_save_IFS
4198 ;;
4199esac
4200fi
4201
4202  test -d ./--version && rmdir ./--version
4203  if test ${ac_cv_path_mkdir+y}; then
4204    MKDIR_P="$ac_cv_path_mkdir -p"
4205  else
4206    # As a last resort, use plain mkdir -p,
4207    # in the hope it doesn't have the bugs of ancient mkdir.
4208    MKDIR_P='mkdir -p'
4209  fi
4210fi
4211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4212printf "%s\n" "$MKDIR_P" >&6; }
4213
4214for ac_prog in gawk mawk nawk awk
4215do
4216  # Extract the first word of "$ac_prog", so it can be a program name with args.
4217set dummy $ac_prog; ac_word=$2
4218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219printf %s "checking for $ac_word... " >&6; }
4220if test ${ac_cv_prog_AWK+y}
4221then :
4222  printf %s "(cached) " >&6
4223else case e in #(
4224  e) if test -n "$AWK"; then
4225  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4226else
4227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228for as_dir in $PATH
4229do
4230  IFS=$as_save_IFS
4231  case $as_dir in #(((
4232    '') as_dir=./ ;;
4233    */) ;;
4234    *) as_dir=$as_dir/ ;;
4235  esac
4236    for ac_exec_ext in '' $ac_executable_extensions; do
4237  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4238    ac_cv_prog_AWK="$ac_prog"
4239    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4240    break 2
4241  fi
4242done
4243  done
4244IFS=$as_save_IFS
4245
4246fi ;;
4247esac
4248fi
4249AWK=$ac_cv_prog_AWK
4250if test -n "$AWK"; then
4251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4252printf "%s\n" "$AWK" >&6; }
4253else
4254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255printf "%s\n" "no" >&6; }
4256fi
4257
4258
4259  test -n "$AWK" && break
4260done
4261
4262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4263printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4264set x ${MAKE-make}
4265ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4266if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4267then :
4268  printf %s "(cached) " >&6
4269else case e in #(
4270  e) cat >conftest.make <<\_ACEOF
4271SHELL = /bin/sh
4272all:
4273	@echo '@@@%%%=$(MAKE)=@@@%%%'
4274_ACEOF
4275# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4276case `${MAKE-make} -f conftest.make 2>/dev/null` in
4277  *@@@%%%=?*=@@@%%%*)
4278    eval ac_cv_prog_make_${ac_make}_set=yes;;
4279  *)
4280    eval ac_cv_prog_make_${ac_make}_set=no;;
4281esac
4282rm -f conftest.make ;;
4283esac
4284fi
4285if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4287printf "%s\n" "yes" >&6; }
4288  SET_MAKE=
4289else
4290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291printf "%s\n" "no" >&6; }
4292  SET_MAKE="MAKE=${MAKE-make}"
4293fi
4294
4295rm -rf .tst 2>/dev/null
4296mkdir .tst 2>/dev/null
4297if test -d .tst; then
4298  am__leading_dot=.
4299else
4300  am__leading_dot=_
4301fi
4302rmdir .tst 2>/dev/null
4303
4304DEPDIR="${am__leading_dot}deps"
4305
4306ac_config_commands="$ac_config_commands depfiles"
4307
4308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4309printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4310cat > confinc.mk << 'END'
4311am__doit:
4312	@echo this is the am__doit target >confinc.out
4313.PHONY: am__doit
4314END
4315am__include="#"
4316am__quote=
4317# BSD make does it like this.
4318echo '.include "confinc.mk" # ignored' > confmf.BSD
4319# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4320echo 'include confinc.mk # ignored' > confmf.GNU
4321_am_result=no
4322for s in GNU BSD; do
4323  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4324   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4325   ac_status=$?
4326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327   (exit $ac_status); }
4328  case $?:`cat confinc.out 2>/dev/null` in #(
4329  '0:this is the am__doit target') :
4330    case $s in #(
4331  BSD) :
4332    am__include='.include' am__quote='"' ;; #(
4333  *) :
4334    am__include='include' am__quote='' ;;
4335esac ;; #(
4336  *) :
4337     ;;
4338esac
4339  if test "$am__include" != "#"; then
4340    _am_result="yes ($s style)"
4341    break
4342  fi
4343done
4344rm -f confinc.* confmf.*
4345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4346printf "%s\n" "${_am_result}" >&6; }
4347
4348# Check whether --enable-dependency-tracking was given.
4349if test ${enable_dependency_tracking+y}
4350then :
4351  enableval=$enable_dependency_tracking;
4352fi
4353
4354if test "x$enable_dependency_tracking" != xno; then
4355  am_depcomp="$ac_aux_dir/depcomp"
4356  AMDEPBACKSLASH='\'
4357  am__nodep='_no'
4358fi
4359 if test "x$enable_dependency_tracking" != xno; then
4360  AMDEP_TRUE=
4361  AMDEP_FALSE='#'
4362else
4363  AMDEP_TRUE='#'
4364  AMDEP_FALSE=
4365fi
4366
4367
4368# Check whether --enable-silent-rules was given.
4369if test ${enable_silent_rules+y}
4370then :
4371  enableval=$enable_silent_rules;
4372fi
4373
4374case $enable_silent_rules in # (((
4375  yes) AM_DEFAULT_VERBOSITY=0;;
4376   no) AM_DEFAULT_VERBOSITY=1;;
4377    *) AM_DEFAULT_VERBOSITY=1;;
4378esac
4379am_make=${MAKE-make}
4380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4381printf %s "checking whether $am_make supports nested variables... " >&6; }
4382if test ${am_cv_make_support_nested_variables+y}
4383then :
4384  printf %s "(cached) " >&6
4385else case e in #(
4386  e) if printf "%s\n" 'TRUE=$(BAR$(V))
4387BAR0=false
4388BAR1=true
4389V=1
4390am__doit:
4391	@$(TRUE)
4392.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4393  am_cv_make_support_nested_variables=yes
4394else
4395  am_cv_make_support_nested_variables=no
4396fi ;;
4397esac
4398fi
4399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4400printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4401if test $am_cv_make_support_nested_variables = yes; then
4402    AM_V='$(V)'
4403  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4404else
4405  AM_V=$AM_DEFAULT_VERBOSITY
4406  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4407fi
4408AM_BACKSLASH='\'
4409
4410if test "`cd $srcdir && pwd`" != "`pwd`"; then
4411  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4412  # is not polluted with repeated "-I."
4413  am__isrc=' -I$(srcdir)'
4414  # test to see if srcdir already configured
4415  if test -f $srcdir/config.status; then
4416    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4417  fi
4418fi
4419
4420# test whether we have cygpath
4421if test -z "$CYGPATH_W"; then
4422  if (cygpath --version) >/dev/null 2>/dev/null; then
4423    CYGPATH_W='cygpath -w'
4424  else
4425    CYGPATH_W=echo
4426  fi
4427fi
4428
4429
4430# Define the identity of the package.
4431 PACKAGE='lndir'
4432 VERSION='1.0.5'
4433
4434
4435printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4436
4437
4438printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4439
4440# Some tools Automake needs.
4441
4442ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4443
4444
4445AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4446
4447
4448AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4449
4450
4451AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4452
4453
4454MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4455
4456# For better backward compatibility.  To be removed once Automake 1.9.x
4457# dies out for good.  For more background, see:
4458# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4459# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4460mkdir_p='$(MKDIR_P)'
4461
4462# We need awk for the "check" target (and possibly the TAP driver).  The
4463# system "awk" is bad on some platforms.
4464# Always define AMTAR for backward compatibility.  Yes, it's still used
4465# in the wild :-(  We should find a proper way to deprecate it ...
4466AMTAR='$${TAR-tar}'
4467
4468
4469# We'll loop over all known methods to create a tar archive until one works.
4470_am_tools='gnutar  pax cpio none'
4471
4472am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4473
4474
4475
4476
4477
4478depcc="$CC"   am_compiler_list=
4479
4480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4481printf %s "checking dependency style of $depcc... " >&6; }
4482if test ${am_cv_CC_dependencies_compiler_type+y}
4483then :
4484  printf %s "(cached) " >&6
4485else case e in #(
4486  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4487  # We make a subdir and do the tests there.  Otherwise we can end up
4488  # making bogus files that we don't know about and never remove.  For
4489  # instance it was reported that on HP-UX the gcc test will end up
4490  # making a dummy file named 'D' -- because '-MD' means "put the output
4491  # in D".
4492  rm -rf conftest.dir
4493  mkdir conftest.dir
4494  # Copy depcomp to subdir because otherwise we won't find it if we're
4495  # using a relative directory.
4496  cp "$am_depcomp" conftest.dir
4497  cd conftest.dir
4498  # We will build objects and dependencies in a subdirectory because
4499  # it helps to detect inapplicable dependency modes.  For instance
4500  # both Tru64's cc and ICC support -MD to output dependencies as a
4501  # side effect of compilation, but ICC will put the dependencies in
4502  # the current directory while Tru64 will put them in the object
4503  # directory.
4504  mkdir sub
4505
4506  am_cv_CC_dependencies_compiler_type=none
4507  if test "$am_compiler_list" = ""; then
4508     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4509  fi
4510  am__universal=false
4511  case " $depcc " in #(
4512     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4513     esac
4514
4515  for depmode in $am_compiler_list; do
4516    # Setup a source with many dependencies, because some compilers
4517    # like to wrap large dependency lists on column 80 (with \), and
4518    # we should not choose a depcomp mode which is confused by this.
4519    #
4520    # We need to recreate these files for each test, as the compiler may
4521    # overwrite some of them when testing with obscure command lines.
4522    # This happens at least with the AIX C compiler.
4523    : > sub/conftest.c
4524    for i in 1 2 3 4 5 6; do
4525      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4526      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4527      # Solaris 10 /bin/sh.
4528      echo '/* dummy */' > sub/conftst$i.h
4529    done
4530    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4531
4532    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4533    # mode.  It turns out that the SunPro C++ compiler does not properly
4534    # handle '-M -o', and we need to detect this.  Also, some Intel
4535    # versions had trouble with output in subdirs.
4536    am__obj=sub/conftest.${OBJEXT-o}
4537    am__minus_obj="-o $am__obj"
4538    case $depmode in
4539    gcc)
4540      # This depmode causes a compiler race in universal mode.
4541      test "$am__universal" = false || continue
4542      ;;
4543    nosideeffect)
4544      # After this tag, mechanisms are not by side-effect, so they'll
4545      # only be used when explicitly requested.
4546      if test "x$enable_dependency_tracking" = xyes; then
4547	continue
4548      else
4549	break
4550      fi
4551      ;;
4552    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4553      # This compiler won't grok '-c -o', but also, the minuso test has
4554      # not run yet.  These depmodes are late enough in the game, and
4555      # so weak that their functioning should not be impacted.
4556      am__obj=conftest.${OBJEXT-o}
4557      am__minus_obj=
4558      ;;
4559    none) break ;;
4560    esac
4561    if depmode=$depmode \
4562       source=sub/conftest.c object=$am__obj \
4563       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4564       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4565         >/dev/null 2>conftest.err &&
4566       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4567       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4568       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4569       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4570      # icc doesn't choke on unknown options, it will just issue warnings
4571      # or remarks (even with -Werror).  So we grep stderr for any message
4572      # that says an option was ignored or not supported.
4573      # When given -MP, icc 7.0 and 7.1 complain thusly:
4574      #   icc: Command line warning: ignoring option '-M'; no argument required
4575      # The diagnosis changed in icc 8.0:
4576      #   icc: Command line remark: option '-MP' not supported
4577      if (grep 'ignoring option' conftest.err ||
4578          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4579        am_cv_CC_dependencies_compiler_type=$depmode
4580        break
4581      fi
4582    fi
4583  done
4584
4585  cd ..
4586  rm -rf conftest.dir
4587else
4588  am_cv_CC_dependencies_compiler_type=none
4589fi
4590 ;;
4591esac
4592fi
4593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4594printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4595CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4596
4597 if
4598  test "x$enable_dependency_tracking" != xno \
4599  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4600  am__fastdepCC_TRUE=
4601  am__fastdepCC_FALSE='#'
4602else
4603  am__fastdepCC_TRUE='#'
4604  am__fastdepCC_FALSE=
4605fi
4606
4607
4608# Variables for tags utilities; see am/tags.am
4609if test -z "$CTAGS"; then
4610  CTAGS=ctags
4611fi
4612
4613if test -z "$ETAGS"; then
4614  ETAGS=etags
4615fi
4616
4617if test -z "$CSCOPE"; then
4618  CSCOPE=cscope
4619fi
4620
4621
4622
4623# POSIX will say in a future version that running "rm -f" with no argument
4624# is OK; and we want to be able to make that assumption in our Makefile
4625# recipes.  So use an aggressive probe to check that the usage we want is
4626# actually supported "in the wild" to an acceptable degree.
4627# See automake bug#10828.
4628# To make any issue more visible, cause the running configure to be aborted
4629# by default if the 'rm' program in use doesn't match our expectations; the
4630# user can still override this though.
4631if rm -f && rm -fr && rm -rf; then : OK; else
4632  cat >&2 <<'END'
4633Oops!
4634
4635Your 'rm' program seems unable to run without file operands specified
4636on the command line, even when the '-f' option is present.  This is contrary
4637to the behaviour of most rm programs out there, and not conforming with
4638the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4639
4640Please tell bug-automake@gnu.org about your system, including the value
4641of your $PATH and any error possibly output before this message.  This
4642can help us improve future automake versions.
4643
4644END
4645  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4646    echo 'Configuration will proceed anyway, since you have set the' >&2
4647    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4648    echo >&2
4649  else
4650    cat >&2 <<'END'
4651Aborting the configuration process, to ensure you take notice of the issue.
4652
4653You can download and install GNU coreutils to get an 'rm' implementation
4654that behaves properly: <https://www.gnu.org/software/coreutils/>.
4655
4656If you want to complete the configuration process using your problematic
4657'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4658to "yes", and re-run configure.
4659
4660END
4661    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4662  fi
4663fi
4664
4665
4666# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4679printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4680if test ${ac_cv_c_undeclared_builtin_options+y}
4681then :
4682  printf %s "(cached) " >&6
4683else case e in #(
4684  e) ac_save_CFLAGS=$CFLAGS
4685   ac_cv_c_undeclared_builtin_options='cannot detect'
4686   for ac_arg in '' -fno-builtin; do
4687     CFLAGS="$ac_save_CFLAGS $ac_arg"
4688     # This test program should *not* compile successfully.
4689     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690/* end confdefs.h.  */
4691
4692int
4693main (void)
4694{
4695(void) strchr;
4696  ;
4697  return 0;
4698}
4699_ACEOF
4700if ac_fn_c_try_compile "$LINENO"
4701then :
4702
4703else case e in #(
4704  e) # This test program should compile successfully.
4705        # No library function is consistently available on
4706        # freestanding implementations, so test against a dummy
4707        # declaration.  Include always-available headers on the
4708        # off chance that they somehow elicit warnings.
4709        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710/* end confdefs.h.  */
4711#include <float.h>
4712#include <limits.h>
4713#include <stdarg.h>
4714#include <stddef.h>
4715extern void ac_decl (int, char *);
4716
4717int
4718main (void)
4719{
4720(void) ac_decl (0, (char *) 0);
4721  (void) ac_decl;
4722
4723  ;
4724  return 0;
4725}
4726_ACEOF
4727if ac_fn_c_try_compile "$LINENO"
4728then :
4729  if test x"$ac_arg" = x
4730then :
4731  ac_cv_c_undeclared_builtin_options='none needed'
4732else case e in #(
4733  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4734esac
4735fi
4736          break
4737fi
4738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4739esac
4740fi
4741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4742    done
4743    CFLAGS=$ac_save_CFLAGS
4744   ;;
4745esac
4746fi
4747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4748printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4749  case $ac_cv_c_undeclared_builtin_options in #(
4750  'cannot detect') :
4751    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4752printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4753as_fn_error $? "cannot make $CC report undeclared builtins
4754See 'config.log' for more details" "$LINENO" 5; } ;; #(
4755  'none needed') :
4756    ac_c_undeclared_builtin_options='' ;; #(
4757  *) :
4758    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4759esac
4760
4761
4762
4763
4764
4765ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4766if test "x$ac_cv_have_decl___clang__" = xyes
4767then :
4768  CLANGCC="yes"
4769else case e in #(
4770  e) CLANGCC="no" ;;
4771esac
4772fi
4773ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4774if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4775then :
4776  INTELCC="yes"
4777else case e in #(
4778  e) INTELCC="no" ;;
4779esac
4780fi
4781ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4782if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4783then :
4784  SUNCC="yes"
4785else case e in #(
4786  e) SUNCC="no" ;;
4787esac
4788fi
4789
4790
4791
4792
4793
4794
4795
4796
4797if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4798	if test -n "$ac_tool_prefix"; then
4799  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4800set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802printf %s "checking for $ac_word... " >&6; }
4803if test ${ac_cv_path_PKG_CONFIG+y}
4804then :
4805  printf %s "(cached) " >&6
4806else case e in #(
4807  e) case $PKG_CONFIG in
4808  [\\/]* | ?:[\\/]*)
4809  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4810  ;;
4811  *)
4812  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813for as_dir in $PATH
4814do
4815  IFS=$as_save_IFS
4816  case $as_dir in #(((
4817    '') as_dir=./ ;;
4818    */) ;;
4819    *) as_dir=$as_dir/ ;;
4820  esac
4821    for ac_exec_ext in '' $ac_executable_extensions; do
4822  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4823    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4824    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4825    break 2
4826  fi
4827done
4828  done
4829IFS=$as_save_IFS
4830
4831  ;;
4832esac ;;
4833esac
4834fi
4835PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4836if test -n "$PKG_CONFIG"; then
4837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4838printf "%s\n" "$PKG_CONFIG" >&6; }
4839else
4840  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841printf "%s\n" "no" >&6; }
4842fi
4843
4844
4845fi
4846if test -z "$ac_cv_path_PKG_CONFIG"; then
4847  ac_pt_PKG_CONFIG=$PKG_CONFIG
4848  # Extract the first word of "pkg-config", so it can be a program name with args.
4849set dummy pkg-config; ac_word=$2
4850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851printf %s "checking for $ac_word... " >&6; }
4852if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4853then :
4854  printf %s "(cached) " >&6
4855else case e in #(
4856  e) case $ac_pt_PKG_CONFIG in
4857  [\\/]* | ?:[\\/]*)
4858  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4859  ;;
4860  *)
4861  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864  IFS=$as_save_IFS
4865  case $as_dir in #(((
4866    '') as_dir=./ ;;
4867    */) ;;
4868    *) as_dir=$as_dir/ ;;
4869  esac
4870    for ac_exec_ext in '' $ac_executable_extensions; do
4871  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4872    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4873    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4874    break 2
4875  fi
4876done
4877  done
4878IFS=$as_save_IFS
4879
4880  ;;
4881esac ;;
4882esac
4883fi
4884ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4885if test -n "$ac_pt_PKG_CONFIG"; then
4886  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4887printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4888else
4889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890printf "%s\n" "no" >&6; }
4891fi
4892
4893  if test "x$ac_pt_PKG_CONFIG" = x; then
4894    PKG_CONFIG=""
4895  else
4896    case $cross_compiling:$ac_tool_warned in
4897yes:)
4898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4899printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4900ac_tool_warned=yes ;;
4901esac
4902    PKG_CONFIG=$ac_pt_PKG_CONFIG
4903  fi
4904else
4905  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4906fi
4907
4908fi
4909if test -n "$PKG_CONFIG"; then
4910	_pkg_min_version=0.9.0
4911	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4912printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4913	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4914		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4915printf "%s\n" "yes" >&6; }
4916	else
4917		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918printf "%s\n" "no" >&6; }
4919		PKG_CONFIG=""
4920	fi
4921fi
4922
4923
4924  # Make sure we can run config.sub.
4925$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4926  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4927
4928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4929printf %s "checking build system type... " >&6; }
4930if test ${ac_cv_build+y}
4931then :
4932  printf %s "(cached) " >&6
4933else case e in #(
4934  e) ac_build_alias=$build_alias
4935test "x$ac_build_alias" = x &&
4936  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4937test "x$ac_build_alias" = x &&
4938  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4939ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4940  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4941 ;;
4942esac
4943fi
4944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4945printf "%s\n" "$ac_cv_build" >&6; }
4946case $ac_cv_build in
4947*-*-*) ;;
4948*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4949esac
4950build=$ac_cv_build
4951ac_save_IFS=$IFS; IFS='-'
4952set x $ac_cv_build
4953shift
4954build_cpu=$1
4955build_vendor=$2
4956shift; shift
4957# Remember, the first character of IFS is used to create $*,
4958# except with old shells:
4959build_os=$*
4960IFS=$ac_save_IFS
4961case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4962
4963
4964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4965printf %s "checking host system type... " >&6; }
4966if test ${ac_cv_host+y}
4967then :
4968  printf %s "(cached) " >&6
4969else case e in #(
4970  e) if test "x$host_alias" = x; then
4971  ac_cv_host=$ac_cv_build
4972else
4973  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4974    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4975fi
4976 ;;
4977esac
4978fi
4979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4980printf "%s\n" "$ac_cv_host" >&6; }
4981case $ac_cv_host in
4982*-*-*) ;;
4983*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4984esac
4985host=$ac_cv_host
4986ac_save_IFS=$IFS; IFS='-'
4987set x $ac_cv_host
4988shift
4989host_cpu=$1
4990host_vendor=$2
4991shift; shift
4992# Remember, the first character of IFS is used to create $*,
4993# except with old shells:
4994host_os=$*
4995IFS=$ac_save_IFS
4996case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4997
4998
4999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5000printf %s "checking for a sed that does not truncate output... " >&6; }
5001if test ${ac_cv_path_SED+y}
5002then :
5003  printf %s "(cached) " >&6
5004else case e in #(
5005  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5006     for ac_i in 1 2 3 4 5 6 7; do
5007       ac_script="$ac_script$as_nl$ac_script"
5008     done
5009     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5010     { ac_script=; unset ac_script;}
5011     if test -z "$SED"; then
5012  ac_path_SED_found=false
5013  # Loop through the user's path and test for each of PROGNAME-LIST
5014  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015for as_dir in $PATH
5016do
5017  IFS=$as_save_IFS
5018  case $as_dir in #(((
5019    '') as_dir=./ ;;
5020    */) ;;
5021    *) as_dir=$as_dir/ ;;
5022  esac
5023    for ac_prog in sed gsed
5024   do
5025    for ac_exec_ext in '' $ac_executable_extensions; do
5026      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5027      as_fn_executable_p "$ac_path_SED" || continue
5028# Check for GNU ac_path_SED and select it if it is found.
5029  # Check for GNU $ac_path_SED
5030case `"$ac_path_SED" --version 2>&1` in #(
5031*GNU*)
5032  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5033#(
5034*)
5035  ac_count=0
5036  printf %s 0123456789 >"conftest.in"
5037  while :
5038  do
5039    cat "conftest.in" "conftest.in" >"conftest.tmp"
5040    mv "conftest.tmp" "conftest.in"
5041    cp "conftest.in" "conftest.nl"
5042    printf "%s\n" '' >> "conftest.nl"
5043    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5044    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5045    as_fn_arith $ac_count + 1 && ac_count=$as_val
5046    if test $ac_count -gt ${ac_path_SED_max-0}; then
5047      # Best one so far, save it but keep looking for a better one
5048      ac_cv_path_SED="$ac_path_SED"
5049      ac_path_SED_max=$ac_count
5050    fi
5051    # 10*(2^10) chars as input seems more than enough
5052    test $ac_count -gt 10 && break
5053  done
5054  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5055esac
5056
5057      $ac_path_SED_found && break 3
5058    done
5059  done
5060  done
5061IFS=$as_save_IFS
5062  if test -z "$ac_cv_path_SED"; then
5063    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5064  fi
5065else
5066  ac_cv_path_SED=$SED
5067fi
5068 ;;
5069esac
5070fi
5071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5072printf "%s\n" "$ac_cv_path_SED" >&6; }
5073 SED="$ac_cv_path_SED"
5074  rm -f conftest.sed
5075
5076
5077
5078
5079
5080
5081# Check whether --enable-selective-werror was given.
5082if test ${enable_selective_werror+y}
5083then :
5084  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5085else case e in #(
5086  e) SELECTIVE_WERROR=yes ;;
5087esac
5088fi
5089
5090
5091
5092
5093
5094# -v is too short to test reliably with XORG_TESTSET_CFLAG
5095if test "x$SUNCC" = "xyes"; then
5096    BASE_CFLAGS="-v"
5097else
5098    BASE_CFLAGS=""
5099fi
5100
5101# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115xorg_testset_save_CFLAGS="$CFLAGS"
5116
5117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5118	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5119	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5120printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5121if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5122then :
5123  printf %s "(cached) " >&6
5124else case e in #(
5125  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126/* end confdefs.h.  */
5127int i;
5128_ACEOF
5129if ac_fn_c_try_compile "$LINENO"
5130then :
5131  xorg_cv_cc_flag_unknown_warning_option=yes
5132else case e in #(
5133  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5134esac
5135fi
5136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5137esac
5138fi
5139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5140printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5141	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5142	CFLAGS="$xorg_testset_save_CFLAGS"
5143fi
5144
5145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5146	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5147		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5148	fi
5149	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5150	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5151printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5152if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5153then :
5154  printf %s "(cached) " >&6
5155else case e in #(
5156  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157/* end confdefs.h.  */
5158int i;
5159_ACEOF
5160if ac_fn_c_try_compile "$LINENO"
5161then :
5162  xorg_cv_cc_flag_unused_command_line_argument=yes
5163else case e in #(
5164  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5165esac
5166fi
5167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5168esac
5169fi
5170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5171printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5172	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5173	CFLAGS="$xorg_testset_save_CFLAGS"
5174fi
5175
5176found="no"
5177
5178	if test $found = "no" ; then
5179		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5180			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5181		fi
5182
5183		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5184			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5185		fi
5186
5187		CFLAGS="$CFLAGS -Wall"
5188
5189		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5190printf %s "checking if $CC supports -Wall... " >&6; }
5191		cacheid=xorg_cv_cc_flag__Wall
5192		if eval test \${$cacheid+y}
5193then :
5194  printf %s "(cached) " >&6
5195else case e in #(
5196  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197/* end confdefs.h.  */
5198int i;
5199int
5200main (void)
5201{
5202
5203  ;
5204  return 0;
5205}
5206_ACEOF
5207if ac_fn_c_try_link "$LINENO"
5208then :
5209  eval $cacheid=yes
5210else case e in #(
5211  e) eval $cacheid=no ;;
5212esac
5213fi
5214rm -f core conftest.err conftest.$ac_objext conftest.beam \
5215    conftest$ac_exeext conftest.$ac_ext ;;
5216esac
5217fi
5218
5219
5220		CFLAGS="$xorg_testset_save_CFLAGS"
5221
5222		eval supported=\$$cacheid
5223		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5224printf "%s\n" "$supported" >&6; }
5225		if test "$supported" = "yes" ; then
5226			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5227			found="yes"
5228		fi
5229	fi
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245xorg_testset_save_CFLAGS="$CFLAGS"
5246
5247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5248	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5249	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5250printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5251if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5252then :
5253  printf %s "(cached) " >&6
5254else case e in #(
5255  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256/* end confdefs.h.  */
5257int i;
5258_ACEOF
5259if ac_fn_c_try_compile "$LINENO"
5260then :
5261  xorg_cv_cc_flag_unknown_warning_option=yes
5262else case e in #(
5263  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5264esac
5265fi
5266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5267esac
5268fi
5269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5270printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5271	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5272	CFLAGS="$xorg_testset_save_CFLAGS"
5273fi
5274
5275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5276	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5277		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5278	fi
5279	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5280	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5281printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5282if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5283then :
5284  printf %s "(cached) " >&6
5285else case e in #(
5286  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287/* end confdefs.h.  */
5288int i;
5289_ACEOF
5290if ac_fn_c_try_compile "$LINENO"
5291then :
5292  xorg_cv_cc_flag_unused_command_line_argument=yes
5293else case e in #(
5294  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5295esac
5296fi
5297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5298esac
5299fi
5300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5301printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5302	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5303	CFLAGS="$xorg_testset_save_CFLAGS"
5304fi
5305
5306found="no"
5307
5308	if test $found = "no" ; then
5309		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5310			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5311		fi
5312
5313		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5314			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5315		fi
5316
5317		CFLAGS="$CFLAGS -Wpointer-arith"
5318
5319		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5320printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5321		cacheid=xorg_cv_cc_flag__Wpointer_arith
5322		if eval test \${$cacheid+y}
5323then :
5324  printf %s "(cached) " >&6
5325else case e in #(
5326  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327/* end confdefs.h.  */
5328int i;
5329int
5330main (void)
5331{
5332
5333  ;
5334  return 0;
5335}
5336_ACEOF
5337if ac_fn_c_try_link "$LINENO"
5338then :
5339  eval $cacheid=yes
5340else case e in #(
5341  e) eval $cacheid=no ;;
5342esac
5343fi
5344rm -f core conftest.err conftest.$ac_objext conftest.beam \
5345    conftest$ac_exeext conftest.$ac_ext ;;
5346esac
5347fi
5348
5349
5350		CFLAGS="$xorg_testset_save_CFLAGS"
5351
5352		eval supported=\$$cacheid
5353		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5354printf "%s\n" "$supported" >&6; }
5355		if test "$supported" = "yes" ; then
5356			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5357			found="yes"
5358		fi
5359	fi
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375xorg_testset_save_CFLAGS="$CFLAGS"
5376
5377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5378	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5379	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5380printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5381if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5382then :
5383  printf %s "(cached) " >&6
5384else case e in #(
5385  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386/* end confdefs.h.  */
5387int i;
5388_ACEOF
5389if ac_fn_c_try_compile "$LINENO"
5390then :
5391  xorg_cv_cc_flag_unknown_warning_option=yes
5392else case e in #(
5393  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5394esac
5395fi
5396rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5397esac
5398fi
5399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5400printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5401	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5402	CFLAGS="$xorg_testset_save_CFLAGS"
5403fi
5404
5405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5406	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5407		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5408	fi
5409	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5410	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5411printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5412if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5413then :
5414  printf %s "(cached) " >&6
5415else case e in #(
5416  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417/* end confdefs.h.  */
5418int i;
5419_ACEOF
5420if ac_fn_c_try_compile "$LINENO"
5421then :
5422  xorg_cv_cc_flag_unused_command_line_argument=yes
5423else case e in #(
5424  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5425esac
5426fi
5427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5428esac
5429fi
5430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5431printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5432	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5433	CFLAGS="$xorg_testset_save_CFLAGS"
5434fi
5435
5436found="no"
5437
5438	if test $found = "no" ; then
5439		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5440			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5441		fi
5442
5443		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5444			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5445		fi
5446
5447		CFLAGS="$CFLAGS -Wmissing-declarations"
5448
5449		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5450printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5451		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5452		if eval test \${$cacheid+y}
5453then :
5454  printf %s "(cached) " >&6
5455else case e in #(
5456  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457/* end confdefs.h.  */
5458int i;
5459int
5460main (void)
5461{
5462
5463  ;
5464  return 0;
5465}
5466_ACEOF
5467if ac_fn_c_try_link "$LINENO"
5468then :
5469  eval $cacheid=yes
5470else case e in #(
5471  e) eval $cacheid=no ;;
5472esac
5473fi
5474rm -f core conftest.err conftest.$ac_objext conftest.beam \
5475    conftest$ac_exeext conftest.$ac_ext ;;
5476esac
5477fi
5478
5479
5480		CFLAGS="$xorg_testset_save_CFLAGS"
5481
5482		eval supported=\$$cacheid
5483		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5484printf "%s\n" "$supported" >&6; }
5485		if test "$supported" = "yes" ; then
5486			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5487			found="yes"
5488		fi
5489	fi
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505xorg_testset_save_CFLAGS="$CFLAGS"
5506
5507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5508	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5509	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5510printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5511if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5512then :
5513  printf %s "(cached) " >&6
5514else case e in #(
5515  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516/* end confdefs.h.  */
5517int i;
5518_ACEOF
5519if ac_fn_c_try_compile "$LINENO"
5520then :
5521  xorg_cv_cc_flag_unknown_warning_option=yes
5522else case e in #(
5523  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5524esac
5525fi
5526rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5527esac
5528fi
5529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5530printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5531	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5532	CFLAGS="$xorg_testset_save_CFLAGS"
5533fi
5534
5535if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5536	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5537		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5538	fi
5539	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5540	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5541printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5542if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5543then :
5544  printf %s "(cached) " >&6
5545else case e in #(
5546  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547/* end confdefs.h.  */
5548int i;
5549_ACEOF
5550if ac_fn_c_try_compile "$LINENO"
5551then :
5552  xorg_cv_cc_flag_unused_command_line_argument=yes
5553else case e in #(
5554  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5555esac
5556fi
5557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5558esac
5559fi
5560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5561printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5562	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5563	CFLAGS="$xorg_testset_save_CFLAGS"
5564fi
5565
5566found="no"
5567
5568	if test $found = "no" ; then
5569		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5570			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5571		fi
5572
5573		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5574			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5575		fi
5576
5577		CFLAGS="$CFLAGS -Wformat=2"
5578
5579		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5580printf %s "checking if $CC supports -Wformat=2... " >&6; }
5581		cacheid=xorg_cv_cc_flag__Wformat_2
5582		if eval test \${$cacheid+y}
5583then :
5584  printf %s "(cached) " >&6
5585else case e in #(
5586  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587/* end confdefs.h.  */
5588int i;
5589int
5590main (void)
5591{
5592
5593  ;
5594  return 0;
5595}
5596_ACEOF
5597if ac_fn_c_try_link "$LINENO"
5598then :
5599  eval $cacheid=yes
5600else case e in #(
5601  e) eval $cacheid=no ;;
5602esac
5603fi
5604rm -f core conftest.err conftest.$ac_objext conftest.beam \
5605    conftest$ac_exeext conftest.$ac_ext ;;
5606esac
5607fi
5608
5609
5610		CFLAGS="$xorg_testset_save_CFLAGS"
5611
5612		eval supported=\$$cacheid
5613		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5614printf "%s\n" "$supported" >&6; }
5615		if test "$supported" = "yes" ; then
5616			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5617			found="yes"
5618		fi
5619	fi
5620
5621	if test $found = "no" ; then
5622		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5623			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5624		fi
5625
5626		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5627			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5628		fi
5629
5630		CFLAGS="$CFLAGS -Wformat"
5631
5632		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5633printf %s "checking if $CC supports -Wformat... " >&6; }
5634		cacheid=xorg_cv_cc_flag__Wformat
5635		if eval test \${$cacheid+y}
5636then :
5637  printf %s "(cached) " >&6
5638else case e in #(
5639  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640/* end confdefs.h.  */
5641int i;
5642int
5643main (void)
5644{
5645
5646  ;
5647  return 0;
5648}
5649_ACEOF
5650if ac_fn_c_try_link "$LINENO"
5651then :
5652  eval $cacheid=yes
5653else case e in #(
5654  e) eval $cacheid=no ;;
5655esac
5656fi
5657rm -f core conftest.err conftest.$ac_objext conftest.beam \
5658    conftest$ac_exeext conftest.$ac_ext ;;
5659esac
5660fi
5661
5662
5663		CFLAGS="$xorg_testset_save_CFLAGS"
5664
5665		eval supported=\$$cacheid
5666		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5667printf "%s\n" "$supported" >&6; }
5668		if test "$supported" = "yes" ; then
5669			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5670			found="yes"
5671		fi
5672	fi
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690xorg_testset_save_CFLAGS="$CFLAGS"
5691
5692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5693	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5694	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5695printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5696if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5697then :
5698  printf %s "(cached) " >&6
5699else case e in #(
5700  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701/* end confdefs.h.  */
5702int i;
5703_ACEOF
5704if ac_fn_c_try_compile "$LINENO"
5705then :
5706  xorg_cv_cc_flag_unknown_warning_option=yes
5707else case e in #(
5708  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5709esac
5710fi
5711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5712esac
5713fi
5714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5715printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5716	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5717	CFLAGS="$xorg_testset_save_CFLAGS"
5718fi
5719
5720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5721	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5722		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5723	fi
5724	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5725	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5726printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5727if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5728then :
5729  printf %s "(cached) " >&6
5730else case e in #(
5731  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732/* end confdefs.h.  */
5733int i;
5734_ACEOF
5735if ac_fn_c_try_compile "$LINENO"
5736then :
5737  xorg_cv_cc_flag_unused_command_line_argument=yes
5738else case e in #(
5739  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5740esac
5741fi
5742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5743esac
5744fi
5745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5746printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5747	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5748	CFLAGS="$xorg_testset_save_CFLAGS"
5749fi
5750
5751found="no"
5752
5753	if test $found = "no" ; then
5754		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5755			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5756		fi
5757
5758		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5759			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5760		fi
5761
5762		CFLAGS="$CFLAGS -Wstrict-prototypes"
5763
5764		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5765printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5766		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5767		if eval test \${$cacheid+y}
5768then :
5769  printf %s "(cached) " >&6
5770else case e in #(
5771  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772/* end confdefs.h.  */
5773int i;
5774int
5775main (void)
5776{
5777
5778  ;
5779  return 0;
5780}
5781_ACEOF
5782if ac_fn_c_try_link "$LINENO"
5783then :
5784  eval $cacheid=yes
5785else case e in #(
5786  e) eval $cacheid=no ;;
5787esac
5788fi
5789rm -f core conftest.err conftest.$ac_objext conftest.beam \
5790    conftest$ac_exeext conftest.$ac_ext ;;
5791esac
5792fi
5793
5794
5795		CFLAGS="$xorg_testset_save_CFLAGS"
5796
5797		eval supported=\$$cacheid
5798		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5799printf "%s\n" "$supported" >&6; }
5800		if test "$supported" = "yes" ; then
5801			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5802			found="yes"
5803		fi
5804	fi
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820xorg_testset_save_CFLAGS="$CFLAGS"
5821
5822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5823	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5824	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5825printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5826if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5827then :
5828  printf %s "(cached) " >&6
5829else case e in #(
5830  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831/* end confdefs.h.  */
5832int i;
5833_ACEOF
5834if ac_fn_c_try_compile "$LINENO"
5835then :
5836  xorg_cv_cc_flag_unknown_warning_option=yes
5837else case e in #(
5838  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5839esac
5840fi
5841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5842esac
5843fi
5844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5845printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5846	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5847	CFLAGS="$xorg_testset_save_CFLAGS"
5848fi
5849
5850if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5851	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5852		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5853	fi
5854	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5855	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5856printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5857if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5858then :
5859  printf %s "(cached) " >&6
5860else case e in #(
5861  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862/* end confdefs.h.  */
5863int i;
5864_ACEOF
5865if ac_fn_c_try_compile "$LINENO"
5866then :
5867  xorg_cv_cc_flag_unused_command_line_argument=yes
5868else case e in #(
5869  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5870esac
5871fi
5872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5873esac
5874fi
5875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5876printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5877	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5878	CFLAGS="$xorg_testset_save_CFLAGS"
5879fi
5880
5881found="no"
5882
5883	if test $found = "no" ; then
5884		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5885			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5886		fi
5887
5888		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5889			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5890		fi
5891
5892		CFLAGS="$CFLAGS -Wmissing-prototypes"
5893
5894		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5895printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5896		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5897		if eval test \${$cacheid+y}
5898then :
5899  printf %s "(cached) " >&6
5900else case e in #(
5901  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902/* end confdefs.h.  */
5903int i;
5904int
5905main (void)
5906{
5907
5908  ;
5909  return 0;
5910}
5911_ACEOF
5912if ac_fn_c_try_link "$LINENO"
5913then :
5914  eval $cacheid=yes
5915else case e in #(
5916  e) eval $cacheid=no ;;
5917esac
5918fi
5919rm -f core conftest.err conftest.$ac_objext conftest.beam \
5920    conftest$ac_exeext conftest.$ac_ext ;;
5921esac
5922fi
5923
5924
5925		CFLAGS="$xorg_testset_save_CFLAGS"
5926
5927		eval supported=\$$cacheid
5928		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5929printf "%s\n" "$supported" >&6; }
5930		if test "$supported" = "yes" ; then
5931			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5932			found="yes"
5933		fi
5934	fi
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950xorg_testset_save_CFLAGS="$CFLAGS"
5951
5952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5953	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5954	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5955printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5956if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5957then :
5958  printf %s "(cached) " >&6
5959else case e in #(
5960  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961/* end confdefs.h.  */
5962int i;
5963_ACEOF
5964if ac_fn_c_try_compile "$LINENO"
5965then :
5966  xorg_cv_cc_flag_unknown_warning_option=yes
5967else case e in #(
5968  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5969esac
5970fi
5971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5972esac
5973fi
5974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5975printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5976	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5977	CFLAGS="$xorg_testset_save_CFLAGS"
5978fi
5979
5980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5981	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5982		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5983	fi
5984	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5985	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5986printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5987if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5988then :
5989  printf %s "(cached) " >&6
5990else case e in #(
5991  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992/* end confdefs.h.  */
5993int i;
5994_ACEOF
5995if ac_fn_c_try_compile "$LINENO"
5996then :
5997  xorg_cv_cc_flag_unused_command_line_argument=yes
5998else case e in #(
5999  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6000esac
6001fi
6002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6003esac
6004fi
6005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6006printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6007	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6008	CFLAGS="$xorg_testset_save_CFLAGS"
6009fi
6010
6011found="no"
6012
6013	if test $found = "no" ; then
6014		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6015			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6016		fi
6017
6018		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6019			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6020		fi
6021
6022		CFLAGS="$CFLAGS -Wnested-externs"
6023
6024		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6025printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6026		cacheid=xorg_cv_cc_flag__Wnested_externs
6027		if eval test \${$cacheid+y}
6028then :
6029  printf %s "(cached) " >&6
6030else case e in #(
6031  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032/* end confdefs.h.  */
6033int i;
6034int
6035main (void)
6036{
6037
6038  ;
6039  return 0;
6040}
6041_ACEOF
6042if ac_fn_c_try_link "$LINENO"
6043then :
6044  eval $cacheid=yes
6045else case e in #(
6046  e) eval $cacheid=no ;;
6047esac
6048fi
6049rm -f core conftest.err conftest.$ac_objext conftest.beam \
6050    conftest$ac_exeext conftest.$ac_ext ;;
6051esac
6052fi
6053
6054
6055		CFLAGS="$xorg_testset_save_CFLAGS"
6056
6057		eval supported=\$$cacheid
6058		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6059printf "%s\n" "$supported" >&6; }
6060		if test "$supported" = "yes" ; then
6061			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6062			found="yes"
6063		fi
6064	fi
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080xorg_testset_save_CFLAGS="$CFLAGS"
6081
6082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6083	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6084	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6085printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6086if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6087then :
6088  printf %s "(cached) " >&6
6089else case e in #(
6090  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091/* end confdefs.h.  */
6092int i;
6093_ACEOF
6094if ac_fn_c_try_compile "$LINENO"
6095then :
6096  xorg_cv_cc_flag_unknown_warning_option=yes
6097else case e in #(
6098  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6099esac
6100fi
6101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6102esac
6103fi
6104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6105printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6106	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6107	CFLAGS="$xorg_testset_save_CFLAGS"
6108fi
6109
6110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6111	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6112		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6113	fi
6114	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6115	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6116printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6117if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6118then :
6119  printf %s "(cached) " >&6
6120else case e in #(
6121  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122/* end confdefs.h.  */
6123int i;
6124_ACEOF
6125if ac_fn_c_try_compile "$LINENO"
6126then :
6127  xorg_cv_cc_flag_unused_command_line_argument=yes
6128else case e in #(
6129  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6130esac
6131fi
6132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6133esac
6134fi
6135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6136printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6137	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6138	CFLAGS="$xorg_testset_save_CFLAGS"
6139fi
6140
6141found="no"
6142
6143	if test $found = "no" ; then
6144		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6145			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6146		fi
6147
6148		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6149			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6150		fi
6151
6152		CFLAGS="$CFLAGS -Wbad-function-cast"
6153
6154		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6155printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6156		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6157		if eval test \${$cacheid+y}
6158then :
6159  printf %s "(cached) " >&6
6160else case e in #(
6161  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162/* end confdefs.h.  */
6163int i;
6164int
6165main (void)
6166{
6167
6168  ;
6169  return 0;
6170}
6171_ACEOF
6172if ac_fn_c_try_link "$LINENO"
6173then :
6174  eval $cacheid=yes
6175else case e in #(
6176  e) eval $cacheid=no ;;
6177esac
6178fi
6179rm -f core conftest.err conftest.$ac_objext conftest.beam \
6180    conftest$ac_exeext conftest.$ac_ext ;;
6181esac
6182fi
6183
6184
6185		CFLAGS="$xorg_testset_save_CFLAGS"
6186
6187		eval supported=\$$cacheid
6188		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6189printf "%s\n" "$supported" >&6; }
6190		if test "$supported" = "yes" ; then
6191			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6192			found="yes"
6193		fi
6194	fi
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210xorg_testset_save_CFLAGS="$CFLAGS"
6211
6212if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6213	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6214	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6215printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6216if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6217then :
6218  printf %s "(cached) " >&6
6219else case e in #(
6220  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221/* end confdefs.h.  */
6222int i;
6223_ACEOF
6224if ac_fn_c_try_compile "$LINENO"
6225then :
6226  xorg_cv_cc_flag_unknown_warning_option=yes
6227else case e in #(
6228  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6229esac
6230fi
6231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6232esac
6233fi
6234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6235printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6236	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6237	CFLAGS="$xorg_testset_save_CFLAGS"
6238fi
6239
6240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6241	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6242		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6243	fi
6244	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6245	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6246printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6247if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6248then :
6249  printf %s "(cached) " >&6
6250else case e in #(
6251  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252/* end confdefs.h.  */
6253int i;
6254_ACEOF
6255if ac_fn_c_try_compile "$LINENO"
6256then :
6257  xorg_cv_cc_flag_unused_command_line_argument=yes
6258else case e in #(
6259  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6260esac
6261fi
6262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6263esac
6264fi
6265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6266printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6267	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6268	CFLAGS="$xorg_testset_save_CFLAGS"
6269fi
6270
6271found="no"
6272
6273	if test $found = "no" ; then
6274		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6276		fi
6277
6278		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6280		fi
6281
6282		CFLAGS="$CFLAGS -Wold-style-definition"
6283
6284		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6285printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6286		cacheid=xorg_cv_cc_flag__Wold_style_definition
6287		if eval test \${$cacheid+y}
6288then :
6289  printf %s "(cached) " >&6
6290else case e in #(
6291  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292/* end confdefs.h.  */
6293int i;
6294int
6295main (void)
6296{
6297
6298  ;
6299  return 0;
6300}
6301_ACEOF
6302if ac_fn_c_try_link "$LINENO"
6303then :
6304  eval $cacheid=yes
6305else case e in #(
6306  e) eval $cacheid=no ;;
6307esac
6308fi
6309rm -f core conftest.err conftest.$ac_objext conftest.beam \
6310    conftest$ac_exeext conftest.$ac_ext ;;
6311esac
6312fi
6313
6314
6315		CFLAGS="$xorg_testset_save_CFLAGS"
6316
6317		eval supported=\$$cacheid
6318		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6319printf "%s\n" "$supported" >&6; }
6320		if test "$supported" = "yes" ; then
6321			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6322			found="yes"
6323		fi
6324	fi
6325
6326	if test $found = "no" ; then
6327		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6328			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6329		fi
6330
6331		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6332			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6333		fi
6334
6335		CFLAGS="$CFLAGS -fd"
6336
6337		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6338printf %s "checking if $CC supports -fd... " >&6; }
6339		cacheid=xorg_cv_cc_flag__fd
6340		if eval test \${$cacheid+y}
6341then :
6342  printf %s "(cached) " >&6
6343else case e in #(
6344  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345/* end confdefs.h.  */
6346int i;
6347int
6348main (void)
6349{
6350
6351  ;
6352  return 0;
6353}
6354_ACEOF
6355if ac_fn_c_try_link "$LINENO"
6356then :
6357  eval $cacheid=yes
6358else case e in #(
6359  e) eval $cacheid=no ;;
6360esac
6361fi
6362rm -f core conftest.err conftest.$ac_objext conftest.beam \
6363    conftest$ac_exeext conftest.$ac_ext ;;
6364esac
6365fi
6366
6367
6368		CFLAGS="$xorg_testset_save_CFLAGS"
6369
6370		eval supported=\$$cacheid
6371		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6372printf "%s\n" "$supported" >&6; }
6373		if test "$supported" = "yes" ; then
6374			BASE_CFLAGS="$BASE_CFLAGS -fd"
6375			found="yes"
6376		fi
6377	fi
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393xorg_testset_save_CFLAGS="$CFLAGS"
6394
6395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6396	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6397	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6398printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6399if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6400then :
6401  printf %s "(cached) " >&6
6402else case e in #(
6403  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404/* end confdefs.h.  */
6405int i;
6406_ACEOF
6407if ac_fn_c_try_compile "$LINENO"
6408then :
6409  xorg_cv_cc_flag_unknown_warning_option=yes
6410else case e in #(
6411  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6412esac
6413fi
6414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6415esac
6416fi
6417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6418printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6419	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6420	CFLAGS="$xorg_testset_save_CFLAGS"
6421fi
6422
6423if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6424	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6425		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6426	fi
6427	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6428	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6429printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6430if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6431then :
6432  printf %s "(cached) " >&6
6433else case e in #(
6434  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435/* end confdefs.h.  */
6436int i;
6437_ACEOF
6438if ac_fn_c_try_compile "$LINENO"
6439then :
6440  xorg_cv_cc_flag_unused_command_line_argument=yes
6441else case e in #(
6442  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6443esac
6444fi
6445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6446esac
6447fi
6448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6449printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6450	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6451	CFLAGS="$xorg_testset_save_CFLAGS"
6452fi
6453
6454found="no"
6455
6456	if test $found = "no" ; then
6457		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6458			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6459		fi
6460
6461		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6462			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6463		fi
6464
6465		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6466
6467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6468printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6469		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6470		if eval test \${$cacheid+y}
6471then :
6472  printf %s "(cached) " >&6
6473else case e in #(
6474  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475/* end confdefs.h.  */
6476int i;
6477int
6478main (void)
6479{
6480
6481  ;
6482  return 0;
6483}
6484_ACEOF
6485if ac_fn_c_try_link "$LINENO"
6486then :
6487  eval $cacheid=yes
6488else case e in #(
6489  e) eval $cacheid=no ;;
6490esac
6491fi
6492rm -f core conftest.err conftest.$ac_objext conftest.beam \
6493    conftest$ac_exeext conftest.$ac_ext ;;
6494esac
6495fi
6496
6497
6498		CFLAGS="$xorg_testset_save_CFLAGS"
6499
6500		eval supported=\$$cacheid
6501		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6502printf "%s\n" "$supported" >&6; }
6503		if test "$supported" = "yes" ; then
6504			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6505			found="yes"
6506		fi
6507	fi
6508
6509
6510
6511
6512
6513# This chunk adds additional warnings that could catch undesired effects.
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527xorg_testset_save_CFLAGS="$CFLAGS"
6528
6529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6530	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6531	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6532printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6533if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6534then :
6535  printf %s "(cached) " >&6
6536else case e in #(
6537  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538/* end confdefs.h.  */
6539int i;
6540_ACEOF
6541if ac_fn_c_try_compile "$LINENO"
6542then :
6543  xorg_cv_cc_flag_unknown_warning_option=yes
6544else case e in #(
6545  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6546esac
6547fi
6548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6549esac
6550fi
6551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6552printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6553	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6554	CFLAGS="$xorg_testset_save_CFLAGS"
6555fi
6556
6557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6558	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6559		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6560	fi
6561	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6562	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6563printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6564if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6565then :
6566  printf %s "(cached) " >&6
6567else case e in #(
6568  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569/* end confdefs.h.  */
6570int i;
6571_ACEOF
6572if ac_fn_c_try_compile "$LINENO"
6573then :
6574  xorg_cv_cc_flag_unused_command_line_argument=yes
6575else case e in #(
6576  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6577esac
6578fi
6579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6580esac
6581fi
6582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6583printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6584	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6585	CFLAGS="$xorg_testset_save_CFLAGS"
6586fi
6587
6588found="no"
6589
6590	if test $found = "no" ; then
6591		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6592			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6593		fi
6594
6595		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6596			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6597		fi
6598
6599		CFLAGS="$CFLAGS -Wunused"
6600
6601		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6602printf %s "checking if $CC supports -Wunused... " >&6; }
6603		cacheid=xorg_cv_cc_flag__Wunused
6604		if eval test \${$cacheid+y}
6605then :
6606  printf %s "(cached) " >&6
6607else case e in #(
6608  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609/* end confdefs.h.  */
6610int i;
6611int
6612main (void)
6613{
6614
6615  ;
6616  return 0;
6617}
6618_ACEOF
6619if ac_fn_c_try_link "$LINENO"
6620then :
6621  eval $cacheid=yes
6622else case e in #(
6623  e) eval $cacheid=no ;;
6624esac
6625fi
6626rm -f core conftest.err conftest.$ac_objext conftest.beam \
6627    conftest$ac_exeext conftest.$ac_ext ;;
6628esac
6629fi
6630
6631
6632		CFLAGS="$xorg_testset_save_CFLAGS"
6633
6634		eval supported=\$$cacheid
6635		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6636printf "%s\n" "$supported" >&6; }
6637		if test "$supported" = "yes" ; then
6638			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6639			found="yes"
6640		fi
6641	fi
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657xorg_testset_save_CFLAGS="$CFLAGS"
6658
6659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6660	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6661	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6662printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6663if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6664then :
6665  printf %s "(cached) " >&6
6666else case e in #(
6667  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668/* end confdefs.h.  */
6669int i;
6670_ACEOF
6671if ac_fn_c_try_compile "$LINENO"
6672then :
6673  xorg_cv_cc_flag_unknown_warning_option=yes
6674else case e in #(
6675  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6676esac
6677fi
6678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6679esac
6680fi
6681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6682printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6683	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6684	CFLAGS="$xorg_testset_save_CFLAGS"
6685fi
6686
6687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6688	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6689		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6690	fi
6691	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6692	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6693printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6694if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6695then :
6696  printf %s "(cached) " >&6
6697else case e in #(
6698  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699/* end confdefs.h.  */
6700int i;
6701_ACEOF
6702if ac_fn_c_try_compile "$LINENO"
6703then :
6704  xorg_cv_cc_flag_unused_command_line_argument=yes
6705else case e in #(
6706  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6707esac
6708fi
6709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6710esac
6711fi
6712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6713printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6714	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6715	CFLAGS="$xorg_testset_save_CFLAGS"
6716fi
6717
6718found="no"
6719
6720	if test $found = "no" ; then
6721		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6722			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6723		fi
6724
6725		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6726			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6727		fi
6728
6729		CFLAGS="$CFLAGS -Wuninitialized"
6730
6731		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6732printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6733		cacheid=xorg_cv_cc_flag__Wuninitialized
6734		if eval test \${$cacheid+y}
6735then :
6736  printf %s "(cached) " >&6
6737else case e in #(
6738  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739/* end confdefs.h.  */
6740int i;
6741int
6742main (void)
6743{
6744
6745  ;
6746  return 0;
6747}
6748_ACEOF
6749if ac_fn_c_try_link "$LINENO"
6750then :
6751  eval $cacheid=yes
6752else case e in #(
6753  e) eval $cacheid=no ;;
6754esac
6755fi
6756rm -f core conftest.err conftest.$ac_objext conftest.beam \
6757    conftest$ac_exeext conftest.$ac_ext ;;
6758esac
6759fi
6760
6761
6762		CFLAGS="$xorg_testset_save_CFLAGS"
6763
6764		eval supported=\$$cacheid
6765		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6766printf "%s\n" "$supported" >&6; }
6767		if test "$supported" = "yes" ; then
6768			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6769			found="yes"
6770		fi
6771	fi
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787xorg_testset_save_CFLAGS="$CFLAGS"
6788
6789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6790	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6791	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6792printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6793if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6794then :
6795  printf %s "(cached) " >&6
6796else case e in #(
6797  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798/* end confdefs.h.  */
6799int i;
6800_ACEOF
6801if ac_fn_c_try_compile "$LINENO"
6802then :
6803  xorg_cv_cc_flag_unknown_warning_option=yes
6804else case e in #(
6805  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6806esac
6807fi
6808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6809esac
6810fi
6811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6812printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6813	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6814	CFLAGS="$xorg_testset_save_CFLAGS"
6815fi
6816
6817if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6818	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6819		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6820	fi
6821	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6822	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6823printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6824if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6825then :
6826  printf %s "(cached) " >&6
6827else case e in #(
6828  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829/* end confdefs.h.  */
6830int i;
6831_ACEOF
6832if ac_fn_c_try_compile "$LINENO"
6833then :
6834  xorg_cv_cc_flag_unused_command_line_argument=yes
6835else case e in #(
6836  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6837esac
6838fi
6839rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6840esac
6841fi
6842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6843printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6844	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6845	CFLAGS="$xorg_testset_save_CFLAGS"
6846fi
6847
6848found="no"
6849
6850	if test $found = "no" ; then
6851		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6852			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6853		fi
6854
6855		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6856			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6857		fi
6858
6859		CFLAGS="$CFLAGS -Wshadow"
6860
6861		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6862printf %s "checking if $CC supports -Wshadow... " >&6; }
6863		cacheid=xorg_cv_cc_flag__Wshadow
6864		if eval test \${$cacheid+y}
6865then :
6866  printf %s "(cached) " >&6
6867else case e in #(
6868  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869/* end confdefs.h.  */
6870int i;
6871int
6872main (void)
6873{
6874
6875  ;
6876  return 0;
6877}
6878_ACEOF
6879if ac_fn_c_try_link "$LINENO"
6880then :
6881  eval $cacheid=yes
6882else case e in #(
6883  e) eval $cacheid=no ;;
6884esac
6885fi
6886rm -f core conftest.err conftest.$ac_objext conftest.beam \
6887    conftest$ac_exeext conftest.$ac_ext ;;
6888esac
6889fi
6890
6891
6892		CFLAGS="$xorg_testset_save_CFLAGS"
6893
6894		eval supported=\$$cacheid
6895		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6896printf "%s\n" "$supported" >&6; }
6897		if test "$supported" = "yes" ; then
6898			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6899			found="yes"
6900		fi
6901	fi
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917xorg_testset_save_CFLAGS="$CFLAGS"
6918
6919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6920	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6921	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6922printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6923if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6924then :
6925  printf %s "(cached) " >&6
6926else case e in #(
6927  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928/* end confdefs.h.  */
6929int i;
6930_ACEOF
6931if ac_fn_c_try_compile "$LINENO"
6932then :
6933  xorg_cv_cc_flag_unknown_warning_option=yes
6934else case e in #(
6935  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6936esac
6937fi
6938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6939esac
6940fi
6941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6942printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6943	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6944	CFLAGS="$xorg_testset_save_CFLAGS"
6945fi
6946
6947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6948	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6949		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6950	fi
6951	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6952	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6953printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6954if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6955then :
6956  printf %s "(cached) " >&6
6957else case e in #(
6958  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959/* end confdefs.h.  */
6960int i;
6961_ACEOF
6962if ac_fn_c_try_compile "$LINENO"
6963then :
6964  xorg_cv_cc_flag_unused_command_line_argument=yes
6965else case e in #(
6966  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6967esac
6968fi
6969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6970esac
6971fi
6972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6973printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6974	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6975	CFLAGS="$xorg_testset_save_CFLAGS"
6976fi
6977
6978found="no"
6979
6980	if test $found = "no" ; then
6981		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6982			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6983		fi
6984
6985		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6986			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6987		fi
6988
6989		CFLAGS="$CFLAGS -Wmissing-noreturn"
6990
6991		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6992printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6993		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6994		if eval test \${$cacheid+y}
6995then :
6996  printf %s "(cached) " >&6
6997else case e in #(
6998  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6999/* end confdefs.h.  */
7000int i;
7001int
7002main (void)
7003{
7004
7005  ;
7006  return 0;
7007}
7008_ACEOF
7009if ac_fn_c_try_link "$LINENO"
7010then :
7011  eval $cacheid=yes
7012else case e in #(
7013  e) eval $cacheid=no ;;
7014esac
7015fi
7016rm -f core conftest.err conftest.$ac_objext conftest.beam \
7017    conftest$ac_exeext conftest.$ac_ext ;;
7018esac
7019fi
7020
7021
7022		CFLAGS="$xorg_testset_save_CFLAGS"
7023
7024		eval supported=\$$cacheid
7025		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7026printf "%s\n" "$supported" >&6; }
7027		if test "$supported" = "yes" ; then
7028			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7029			found="yes"
7030		fi
7031	fi
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047xorg_testset_save_CFLAGS="$CFLAGS"
7048
7049if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7050	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7051	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7052printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7053if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7054then :
7055  printf %s "(cached) " >&6
7056else case e in #(
7057  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058/* end confdefs.h.  */
7059int i;
7060_ACEOF
7061if ac_fn_c_try_compile "$LINENO"
7062then :
7063  xorg_cv_cc_flag_unknown_warning_option=yes
7064else case e in #(
7065  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7066esac
7067fi
7068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7069esac
7070fi
7071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7072printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7073	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7074	CFLAGS="$xorg_testset_save_CFLAGS"
7075fi
7076
7077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7078	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7079		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7080	fi
7081	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7082	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7083printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7084if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7085then :
7086  printf %s "(cached) " >&6
7087else case e in #(
7088  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089/* end confdefs.h.  */
7090int i;
7091_ACEOF
7092if ac_fn_c_try_compile "$LINENO"
7093then :
7094  xorg_cv_cc_flag_unused_command_line_argument=yes
7095else case e in #(
7096  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7097esac
7098fi
7099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7100esac
7101fi
7102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7103printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7104	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7105	CFLAGS="$xorg_testset_save_CFLAGS"
7106fi
7107
7108found="no"
7109
7110	if test $found = "no" ; then
7111		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7112			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7113		fi
7114
7115		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7116			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7117		fi
7118
7119		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7120
7121		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7122printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7123		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7124		if eval test \${$cacheid+y}
7125then :
7126  printf %s "(cached) " >&6
7127else case e in #(
7128  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129/* end confdefs.h.  */
7130int i;
7131int
7132main (void)
7133{
7134
7135  ;
7136  return 0;
7137}
7138_ACEOF
7139if ac_fn_c_try_link "$LINENO"
7140then :
7141  eval $cacheid=yes
7142else case e in #(
7143  e) eval $cacheid=no ;;
7144esac
7145fi
7146rm -f core conftest.err conftest.$ac_objext conftest.beam \
7147    conftest$ac_exeext conftest.$ac_ext ;;
7148esac
7149fi
7150
7151
7152		CFLAGS="$xorg_testset_save_CFLAGS"
7153
7154		eval supported=\$$cacheid
7155		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7156printf "%s\n" "$supported" >&6; }
7157		if test "$supported" = "yes" ; then
7158			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7159			found="yes"
7160		fi
7161	fi
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177xorg_testset_save_CFLAGS="$CFLAGS"
7178
7179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7180	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7181	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7182printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7183if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7184then :
7185  printf %s "(cached) " >&6
7186else case e in #(
7187  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188/* end confdefs.h.  */
7189int i;
7190_ACEOF
7191if ac_fn_c_try_compile "$LINENO"
7192then :
7193  xorg_cv_cc_flag_unknown_warning_option=yes
7194else case e in #(
7195  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7196esac
7197fi
7198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7199esac
7200fi
7201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7202printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7203	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7204	CFLAGS="$xorg_testset_save_CFLAGS"
7205fi
7206
7207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7208	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7209		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7210	fi
7211	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7212	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7213printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7214if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7215then :
7216  printf %s "(cached) " >&6
7217else case e in #(
7218  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219/* end confdefs.h.  */
7220int i;
7221_ACEOF
7222if ac_fn_c_try_compile "$LINENO"
7223then :
7224  xorg_cv_cc_flag_unused_command_line_argument=yes
7225else case e in #(
7226  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7227esac
7228fi
7229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7230esac
7231fi
7232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7233printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7234	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7235	CFLAGS="$xorg_testset_save_CFLAGS"
7236fi
7237
7238found="no"
7239
7240	if test $found = "no" ; then
7241		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7242			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7243		fi
7244
7245		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7246			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7247		fi
7248
7249		CFLAGS="$CFLAGS -Wredundant-decls"
7250
7251		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7252printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7253		cacheid=xorg_cv_cc_flag__Wredundant_decls
7254		if eval test \${$cacheid+y}
7255then :
7256  printf %s "(cached) " >&6
7257else case e in #(
7258  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259/* end confdefs.h.  */
7260int i;
7261int
7262main (void)
7263{
7264
7265  ;
7266  return 0;
7267}
7268_ACEOF
7269if ac_fn_c_try_link "$LINENO"
7270then :
7271  eval $cacheid=yes
7272else case e in #(
7273  e) eval $cacheid=no ;;
7274esac
7275fi
7276rm -f core conftest.err conftest.$ac_objext conftest.beam \
7277    conftest$ac_exeext conftest.$ac_ext ;;
7278esac
7279fi
7280
7281
7282		CFLAGS="$xorg_testset_save_CFLAGS"
7283
7284		eval supported=\$$cacheid
7285		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7286printf "%s\n" "$supported" >&6; }
7287		if test "$supported" = "yes" ; then
7288			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7289			found="yes"
7290		fi
7291	fi
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307xorg_testset_save_CFLAGS="$CFLAGS"
7308
7309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7310	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7311	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7312printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7313if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7314then :
7315  printf %s "(cached) " >&6
7316else case e in #(
7317  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318/* end confdefs.h.  */
7319int i;
7320_ACEOF
7321if ac_fn_c_try_compile "$LINENO"
7322then :
7323  xorg_cv_cc_flag_unknown_warning_option=yes
7324else case e in #(
7325  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7326esac
7327fi
7328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7329esac
7330fi
7331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7332printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7333	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7334	CFLAGS="$xorg_testset_save_CFLAGS"
7335fi
7336
7337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7338	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7339		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7340	fi
7341	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7342	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7343printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7344if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7345then :
7346  printf %s "(cached) " >&6
7347else case e in #(
7348  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349/* end confdefs.h.  */
7350int i;
7351_ACEOF
7352if ac_fn_c_try_compile "$LINENO"
7353then :
7354  xorg_cv_cc_flag_unused_command_line_argument=yes
7355else case e in #(
7356  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7357esac
7358fi
7359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7360esac
7361fi
7362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7363printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7364	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7365	CFLAGS="$xorg_testset_save_CFLAGS"
7366fi
7367
7368found="no"
7369
7370	if test $found = "no" ; then
7371		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7372			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7373		fi
7374
7375		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7376			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7377		fi
7378
7379		CFLAGS="$CFLAGS -Wlogical-op"
7380
7381		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7382printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7383		cacheid=xorg_cv_cc_flag__Wlogical_op
7384		if eval test \${$cacheid+y}
7385then :
7386  printf %s "(cached) " >&6
7387else case e in #(
7388  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389/* end confdefs.h.  */
7390int i;
7391int
7392main (void)
7393{
7394
7395  ;
7396  return 0;
7397}
7398_ACEOF
7399if ac_fn_c_try_link "$LINENO"
7400then :
7401  eval $cacheid=yes
7402else case e in #(
7403  e) eval $cacheid=no ;;
7404esac
7405fi
7406rm -f core conftest.err conftest.$ac_objext conftest.beam \
7407    conftest$ac_exeext conftest.$ac_ext ;;
7408esac
7409fi
7410
7411
7412		CFLAGS="$xorg_testset_save_CFLAGS"
7413
7414		eval supported=\$$cacheid
7415		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7416printf "%s\n" "$supported" >&6; }
7417		if test "$supported" = "yes" ; then
7418			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7419			found="yes"
7420		fi
7421	fi
7422
7423
7424
7425# These are currently disabled because they are noisy.  They will be enabled
7426# in the future once the codebase is sufficiently modernized to silence
7427# them.  For now, I don't want them to drown out the other warnings.
7428# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7429# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7430# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7431
7432# Turn some warnings into errors, so we don't accidentally get successful builds
7433# when there are problems that should be fixed.
7434
7435if test "x$SELECTIVE_WERROR" = "xyes" ; then
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449xorg_testset_save_CFLAGS="$CFLAGS"
7450
7451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7452	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7453	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7454printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7455if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7456then :
7457  printf %s "(cached) " >&6
7458else case e in #(
7459  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460/* end confdefs.h.  */
7461int i;
7462_ACEOF
7463if ac_fn_c_try_compile "$LINENO"
7464then :
7465  xorg_cv_cc_flag_unknown_warning_option=yes
7466else case e in #(
7467  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7468esac
7469fi
7470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7471esac
7472fi
7473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7474printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7475	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7476	CFLAGS="$xorg_testset_save_CFLAGS"
7477fi
7478
7479if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7480	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7481		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7482	fi
7483	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7484	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7485printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7486if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7487then :
7488  printf %s "(cached) " >&6
7489else case e in #(
7490  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491/* end confdefs.h.  */
7492int i;
7493_ACEOF
7494if ac_fn_c_try_compile "$LINENO"
7495then :
7496  xorg_cv_cc_flag_unused_command_line_argument=yes
7497else case e in #(
7498  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7499esac
7500fi
7501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7502esac
7503fi
7504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7505printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7506	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7507	CFLAGS="$xorg_testset_save_CFLAGS"
7508fi
7509
7510found="no"
7511
7512	if test $found = "no" ; then
7513		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7514			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7515		fi
7516
7517		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7518			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7519		fi
7520
7521		CFLAGS="$CFLAGS -Werror=implicit"
7522
7523		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7524printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7525		cacheid=xorg_cv_cc_flag__Werror_implicit
7526		if eval test \${$cacheid+y}
7527then :
7528  printf %s "(cached) " >&6
7529else case e in #(
7530  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531/* end confdefs.h.  */
7532int i;
7533int
7534main (void)
7535{
7536
7537  ;
7538  return 0;
7539}
7540_ACEOF
7541if ac_fn_c_try_link "$LINENO"
7542then :
7543  eval $cacheid=yes
7544else case e in #(
7545  e) eval $cacheid=no ;;
7546esac
7547fi
7548rm -f core conftest.err conftest.$ac_objext conftest.beam \
7549    conftest$ac_exeext conftest.$ac_ext ;;
7550esac
7551fi
7552
7553
7554		CFLAGS="$xorg_testset_save_CFLAGS"
7555
7556		eval supported=\$$cacheid
7557		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7558printf "%s\n" "$supported" >&6; }
7559		if test "$supported" = "yes" ; then
7560			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7561			found="yes"
7562		fi
7563	fi
7564
7565	if test $found = "no" ; then
7566		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7567			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7568		fi
7569
7570		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7571			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7572		fi
7573
7574		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7575
7576		{ 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
7577printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7578		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7579		if eval test \${$cacheid+y}
7580then :
7581  printf %s "(cached) " >&6
7582else case e in #(
7583  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584/* end confdefs.h.  */
7585int i;
7586int
7587main (void)
7588{
7589
7590  ;
7591  return 0;
7592}
7593_ACEOF
7594if ac_fn_c_try_link "$LINENO"
7595then :
7596  eval $cacheid=yes
7597else case e in #(
7598  e) eval $cacheid=no ;;
7599esac
7600fi
7601rm -f core conftest.err conftest.$ac_objext conftest.beam \
7602    conftest$ac_exeext conftest.$ac_ext ;;
7603esac
7604fi
7605
7606
7607		CFLAGS="$xorg_testset_save_CFLAGS"
7608
7609		eval supported=\$$cacheid
7610		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7611printf "%s\n" "$supported" >&6; }
7612		if test "$supported" = "yes" ; then
7613			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7614			found="yes"
7615		fi
7616	fi
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632xorg_testset_save_CFLAGS="$CFLAGS"
7633
7634if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7635	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7636	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7637printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7638if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7639then :
7640  printf %s "(cached) " >&6
7641else case e in #(
7642  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643/* end confdefs.h.  */
7644int i;
7645_ACEOF
7646if ac_fn_c_try_compile "$LINENO"
7647then :
7648  xorg_cv_cc_flag_unknown_warning_option=yes
7649else case e in #(
7650  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7651esac
7652fi
7653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7654esac
7655fi
7656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7657printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7658	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7659	CFLAGS="$xorg_testset_save_CFLAGS"
7660fi
7661
7662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7663	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7664		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7665	fi
7666	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7667	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7668printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7669if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7670then :
7671  printf %s "(cached) " >&6
7672else case e in #(
7673  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674/* end confdefs.h.  */
7675int i;
7676_ACEOF
7677if ac_fn_c_try_compile "$LINENO"
7678then :
7679  xorg_cv_cc_flag_unused_command_line_argument=yes
7680else case e in #(
7681  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7682esac
7683fi
7684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7685esac
7686fi
7687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7688printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7689	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7690	CFLAGS="$xorg_testset_save_CFLAGS"
7691fi
7692
7693found="no"
7694
7695	if test $found = "no" ; then
7696		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7697			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7698		fi
7699
7700		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7701			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7702		fi
7703
7704		CFLAGS="$CFLAGS -Werror=nonnull"
7705
7706		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7707printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7708		cacheid=xorg_cv_cc_flag__Werror_nonnull
7709		if eval test \${$cacheid+y}
7710then :
7711  printf %s "(cached) " >&6
7712else case e in #(
7713  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714/* end confdefs.h.  */
7715int i;
7716int
7717main (void)
7718{
7719
7720  ;
7721  return 0;
7722}
7723_ACEOF
7724if ac_fn_c_try_link "$LINENO"
7725then :
7726  eval $cacheid=yes
7727else case e in #(
7728  e) eval $cacheid=no ;;
7729esac
7730fi
7731rm -f core conftest.err conftest.$ac_objext conftest.beam \
7732    conftest$ac_exeext conftest.$ac_ext ;;
7733esac
7734fi
7735
7736
7737		CFLAGS="$xorg_testset_save_CFLAGS"
7738
7739		eval supported=\$$cacheid
7740		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7741printf "%s\n" "$supported" >&6; }
7742		if test "$supported" = "yes" ; then
7743			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7744			found="yes"
7745		fi
7746	fi
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762xorg_testset_save_CFLAGS="$CFLAGS"
7763
7764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7765	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7766	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7767printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7768if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7769then :
7770  printf %s "(cached) " >&6
7771else case e in #(
7772  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773/* end confdefs.h.  */
7774int i;
7775_ACEOF
7776if ac_fn_c_try_compile "$LINENO"
7777then :
7778  xorg_cv_cc_flag_unknown_warning_option=yes
7779else case e in #(
7780  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7781esac
7782fi
7783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7784esac
7785fi
7786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7787printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7788	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7789	CFLAGS="$xorg_testset_save_CFLAGS"
7790fi
7791
7792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7793	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7794		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7795	fi
7796	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7797	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7798printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7799if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7800then :
7801  printf %s "(cached) " >&6
7802else case e in #(
7803  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804/* end confdefs.h.  */
7805int i;
7806_ACEOF
7807if ac_fn_c_try_compile "$LINENO"
7808then :
7809  xorg_cv_cc_flag_unused_command_line_argument=yes
7810else case e in #(
7811  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7812esac
7813fi
7814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7815esac
7816fi
7817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7818printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7819	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7820	CFLAGS="$xorg_testset_save_CFLAGS"
7821fi
7822
7823found="no"
7824
7825	if test $found = "no" ; then
7826		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7827			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7828		fi
7829
7830		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7831			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7832		fi
7833
7834		CFLAGS="$CFLAGS -Werror=init-self"
7835
7836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7837printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7838		cacheid=xorg_cv_cc_flag__Werror_init_self
7839		if eval test \${$cacheid+y}
7840then :
7841  printf %s "(cached) " >&6
7842else case e in #(
7843  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844/* end confdefs.h.  */
7845int i;
7846int
7847main (void)
7848{
7849
7850  ;
7851  return 0;
7852}
7853_ACEOF
7854if ac_fn_c_try_link "$LINENO"
7855then :
7856  eval $cacheid=yes
7857else case e in #(
7858  e) eval $cacheid=no ;;
7859esac
7860fi
7861rm -f core conftest.err conftest.$ac_objext conftest.beam \
7862    conftest$ac_exeext conftest.$ac_ext ;;
7863esac
7864fi
7865
7866
7867		CFLAGS="$xorg_testset_save_CFLAGS"
7868
7869		eval supported=\$$cacheid
7870		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7871printf "%s\n" "$supported" >&6; }
7872		if test "$supported" = "yes" ; then
7873			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7874			found="yes"
7875		fi
7876	fi
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892xorg_testset_save_CFLAGS="$CFLAGS"
7893
7894if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7895	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7896	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7897printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7898if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7899then :
7900  printf %s "(cached) " >&6
7901else case e in #(
7902  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903/* end confdefs.h.  */
7904int i;
7905_ACEOF
7906if ac_fn_c_try_compile "$LINENO"
7907then :
7908  xorg_cv_cc_flag_unknown_warning_option=yes
7909else case e in #(
7910  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7911esac
7912fi
7913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7914esac
7915fi
7916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7917printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7918	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7919	CFLAGS="$xorg_testset_save_CFLAGS"
7920fi
7921
7922if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7923	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7924		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7925	fi
7926	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7927	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7928printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7929if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7930then :
7931  printf %s "(cached) " >&6
7932else case e in #(
7933  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934/* end confdefs.h.  */
7935int i;
7936_ACEOF
7937if ac_fn_c_try_compile "$LINENO"
7938then :
7939  xorg_cv_cc_flag_unused_command_line_argument=yes
7940else case e in #(
7941  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7942esac
7943fi
7944rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7945esac
7946fi
7947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7948printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7949	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7950	CFLAGS="$xorg_testset_save_CFLAGS"
7951fi
7952
7953found="no"
7954
7955	if test $found = "no" ; then
7956		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7957			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7958		fi
7959
7960		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7961			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7962		fi
7963
7964		CFLAGS="$CFLAGS -Werror=main"
7965
7966		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7967printf %s "checking if $CC supports -Werror=main... " >&6; }
7968		cacheid=xorg_cv_cc_flag__Werror_main
7969		if eval test \${$cacheid+y}
7970then :
7971  printf %s "(cached) " >&6
7972else case e in #(
7973  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974/* end confdefs.h.  */
7975int i;
7976int
7977main (void)
7978{
7979
7980  ;
7981  return 0;
7982}
7983_ACEOF
7984if ac_fn_c_try_link "$LINENO"
7985then :
7986  eval $cacheid=yes
7987else case e in #(
7988  e) eval $cacheid=no ;;
7989esac
7990fi
7991rm -f core conftest.err conftest.$ac_objext conftest.beam \
7992    conftest$ac_exeext conftest.$ac_ext ;;
7993esac
7994fi
7995
7996
7997		CFLAGS="$xorg_testset_save_CFLAGS"
7998
7999		eval supported=\$$cacheid
8000		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8001printf "%s\n" "$supported" >&6; }
8002		if test "$supported" = "yes" ; then
8003			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8004			found="yes"
8005		fi
8006	fi
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022xorg_testset_save_CFLAGS="$CFLAGS"
8023
8024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8025	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8026	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8027printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8028if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8029then :
8030  printf %s "(cached) " >&6
8031else case e in #(
8032  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033/* end confdefs.h.  */
8034int i;
8035_ACEOF
8036if ac_fn_c_try_compile "$LINENO"
8037then :
8038  xorg_cv_cc_flag_unknown_warning_option=yes
8039else case e in #(
8040  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8041esac
8042fi
8043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8044esac
8045fi
8046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8047printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8048	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8049	CFLAGS="$xorg_testset_save_CFLAGS"
8050fi
8051
8052if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8053	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8054		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8055	fi
8056	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8057	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8058printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8059if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8060then :
8061  printf %s "(cached) " >&6
8062else case e in #(
8063  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064/* end confdefs.h.  */
8065int i;
8066_ACEOF
8067if ac_fn_c_try_compile "$LINENO"
8068then :
8069  xorg_cv_cc_flag_unused_command_line_argument=yes
8070else case e in #(
8071  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8072esac
8073fi
8074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8075esac
8076fi
8077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8078printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8079	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8080	CFLAGS="$xorg_testset_save_CFLAGS"
8081fi
8082
8083found="no"
8084
8085	if test $found = "no" ; then
8086		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8087			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8088		fi
8089
8090		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8091			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8092		fi
8093
8094		CFLAGS="$CFLAGS -Werror=missing-braces"
8095
8096		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8097printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8098		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8099		if eval test \${$cacheid+y}
8100then :
8101  printf %s "(cached) " >&6
8102else case e in #(
8103  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104/* end confdefs.h.  */
8105int i;
8106int
8107main (void)
8108{
8109
8110  ;
8111  return 0;
8112}
8113_ACEOF
8114if ac_fn_c_try_link "$LINENO"
8115then :
8116  eval $cacheid=yes
8117else case e in #(
8118  e) eval $cacheid=no ;;
8119esac
8120fi
8121rm -f core conftest.err conftest.$ac_objext conftest.beam \
8122    conftest$ac_exeext conftest.$ac_ext ;;
8123esac
8124fi
8125
8126
8127		CFLAGS="$xorg_testset_save_CFLAGS"
8128
8129		eval supported=\$$cacheid
8130		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8131printf "%s\n" "$supported" >&6; }
8132		if test "$supported" = "yes" ; then
8133			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8134			found="yes"
8135		fi
8136	fi
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152xorg_testset_save_CFLAGS="$CFLAGS"
8153
8154if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8155	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8156	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8157printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8158if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8159then :
8160  printf %s "(cached) " >&6
8161else case e in #(
8162  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163/* end confdefs.h.  */
8164int i;
8165_ACEOF
8166if ac_fn_c_try_compile "$LINENO"
8167then :
8168  xorg_cv_cc_flag_unknown_warning_option=yes
8169else case e in #(
8170  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8171esac
8172fi
8173rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8174esac
8175fi
8176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8177printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8178	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8179	CFLAGS="$xorg_testset_save_CFLAGS"
8180fi
8181
8182if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8183	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8184		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8185	fi
8186	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8187	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8188printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8189if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8190then :
8191  printf %s "(cached) " >&6
8192else case e in #(
8193  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194/* end confdefs.h.  */
8195int i;
8196_ACEOF
8197if ac_fn_c_try_compile "$LINENO"
8198then :
8199  xorg_cv_cc_flag_unused_command_line_argument=yes
8200else case e in #(
8201  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8202esac
8203fi
8204rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8205esac
8206fi
8207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8208printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8209	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8210	CFLAGS="$xorg_testset_save_CFLAGS"
8211fi
8212
8213found="no"
8214
8215	if test $found = "no" ; then
8216		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8217			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8218		fi
8219
8220		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8221			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8222		fi
8223
8224		CFLAGS="$CFLAGS -Werror=sequence-point"
8225
8226		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8227printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8228		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8229		if eval test \${$cacheid+y}
8230then :
8231  printf %s "(cached) " >&6
8232else case e in #(
8233  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234/* end confdefs.h.  */
8235int i;
8236int
8237main (void)
8238{
8239
8240  ;
8241  return 0;
8242}
8243_ACEOF
8244if ac_fn_c_try_link "$LINENO"
8245then :
8246  eval $cacheid=yes
8247else case e in #(
8248  e) eval $cacheid=no ;;
8249esac
8250fi
8251rm -f core conftest.err conftest.$ac_objext conftest.beam \
8252    conftest$ac_exeext conftest.$ac_ext ;;
8253esac
8254fi
8255
8256
8257		CFLAGS="$xorg_testset_save_CFLAGS"
8258
8259		eval supported=\$$cacheid
8260		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8261printf "%s\n" "$supported" >&6; }
8262		if test "$supported" = "yes" ; then
8263			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8264			found="yes"
8265		fi
8266	fi
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282xorg_testset_save_CFLAGS="$CFLAGS"
8283
8284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8285	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8286	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8287printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8288if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8289then :
8290  printf %s "(cached) " >&6
8291else case e in #(
8292  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293/* end confdefs.h.  */
8294int i;
8295_ACEOF
8296if ac_fn_c_try_compile "$LINENO"
8297then :
8298  xorg_cv_cc_flag_unknown_warning_option=yes
8299else case e in #(
8300  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8301esac
8302fi
8303rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8304esac
8305fi
8306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8307printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8308	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8309	CFLAGS="$xorg_testset_save_CFLAGS"
8310fi
8311
8312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8313	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8314		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8315	fi
8316	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8317	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8318printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8319if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8320then :
8321  printf %s "(cached) " >&6
8322else case e in #(
8323  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324/* end confdefs.h.  */
8325int i;
8326_ACEOF
8327if ac_fn_c_try_compile "$LINENO"
8328then :
8329  xorg_cv_cc_flag_unused_command_line_argument=yes
8330else case e in #(
8331  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8332esac
8333fi
8334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8335esac
8336fi
8337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8338printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8339	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8340	CFLAGS="$xorg_testset_save_CFLAGS"
8341fi
8342
8343found="no"
8344
8345	if test $found = "no" ; then
8346		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8347			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8348		fi
8349
8350		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8351			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8352		fi
8353
8354		CFLAGS="$CFLAGS -Werror=return-type"
8355
8356		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8357printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8358		cacheid=xorg_cv_cc_flag__Werror_return_type
8359		if eval test \${$cacheid+y}
8360then :
8361  printf %s "(cached) " >&6
8362else case e in #(
8363  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364/* end confdefs.h.  */
8365int i;
8366int
8367main (void)
8368{
8369
8370  ;
8371  return 0;
8372}
8373_ACEOF
8374if ac_fn_c_try_link "$LINENO"
8375then :
8376  eval $cacheid=yes
8377else case e in #(
8378  e) eval $cacheid=no ;;
8379esac
8380fi
8381rm -f core conftest.err conftest.$ac_objext conftest.beam \
8382    conftest$ac_exeext conftest.$ac_ext ;;
8383esac
8384fi
8385
8386
8387		CFLAGS="$xorg_testset_save_CFLAGS"
8388
8389		eval supported=\$$cacheid
8390		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8391printf "%s\n" "$supported" >&6; }
8392		if test "$supported" = "yes" ; then
8393			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8394			found="yes"
8395		fi
8396	fi
8397
8398	if test $found = "no" ; then
8399		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8400			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8401		fi
8402
8403		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8404			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8405		fi
8406
8407		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8408
8409		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8410printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8411		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8412		if eval test \${$cacheid+y}
8413then :
8414  printf %s "(cached) " >&6
8415else case e in #(
8416  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417/* end confdefs.h.  */
8418int i;
8419int
8420main (void)
8421{
8422
8423  ;
8424  return 0;
8425}
8426_ACEOF
8427if ac_fn_c_try_link "$LINENO"
8428then :
8429  eval $cacheid=yes
8430else case e in #(
8431  e) eval $cacheid=no ;;
8432esac
8433fi
8434rm -f core conftest.err conftest.$ac_objext conftest.beam \
8435    conftest$ac_exeext conftest.$ac_ext ;;
8436esac
8437fi
8438
8439
8440		CFLAGS="$xorg_testset_save_CFLAGS"
8441
8442		eval supported=\$$cacheid
8443		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8444printf "%s\n" "$supported" >&6; }
8445		if test "$supported" = "yes" ; then
8446			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8447			found="yes"
8448		fi
8449	fi
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465xorg_testset_save_CFLAGS="$CFLAGS"
8466
8467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8468	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8469	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8470printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8471if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8472then :
8473  printf %s "(cached) " >&6
8474else case e in #(
8475  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476/* end confdefs.h.  */
8477int i;
8478_ACEOF
8479if ac_fn_c_try_compile "$LINENO"
8480then :
8481  xorg_cv_cc_flag_unknown_warning_option=yes
8482else case e in #(
8483  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8484esac
8485fi
8486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8487esac
8488fi
8489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8490printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8491	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8492	CFLAGS="$xorg_testset_save_CFLAGS"
8493fi
8494
8495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8496	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8497		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8498	fi
8499	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8500	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8501printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8502if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8503then :
8504  printf %s "(cached) " >&6
8505else case e in #(
8506  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507/* end confdefs.h.  */
8508int i;
8509_ACEOF
8510if ac_fn_c_try_compile "$LINENO"
8511then :
8512  xorg_cv_cc_flag_unused_command_line_argument=yes
8513else case e in #(
8514  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8515esac
8516fi
8517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8518esac
8519fi
8520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8521printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8522	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8523	CFLAGS="$xorg_testset_save_CFLAGS"
8524fi
8525
8526found="no"
8527
8528	if test $found = "no" ; then
8529		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8530			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8531		fi
8532
8533		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8534			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8535		fi
8536
8537		CFLAGS="$CFLAGS -Werror=trigraphs"
8538
8539		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8540printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8541		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8542		if eval test \${$cacheid+y}
8543then :
8544  printf %s "(cached) " >&6
8545else case e in #(
8546  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547/* end confdefs.h.  */
8548int i;
8549int
8550main (void)
8551{
8552
8553  ;
8554  return 0;
8555}
8556_ACEOF
8557if ac_fn_c_try_link "$LINENO"
8558then :
8559  eval $cacheid=yes
8560else case e in #(
8561  e) eval $cacheid=no ;;
8562esac
8563fi
8564rm -f core conftest.err conftest.$ac_objext conftest.beam \
8565    conftest$ac_exeext conftest.$ac_ext ;;
8566esac
8567fi
8568
8569
8570		CFLAGS="$xorg_testset_save_CFLAGS"
8571
8572		eval supported=\$$cacheid
8573		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8574printf "%s\n" "$supported" >&6; }
8575		if test "$supported" = "yes" ; then
8576			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8577			found="yes"
8578		fi
8579	fi
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595xorg_testset_save_CFLAGS="$CFLAGS"
8596
8597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8598	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8599	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8600printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8601if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8602then :
8603  printf %s "(cached) " >&6
8604else case e in #(
8605  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606/* end confdefs.h.  */
8607int i;
8608_ACEOF
8609if ac_fn_c_try_compile "$LINENO"
8610then :
8611  xorg_cv_cc_flag_unknown_warning_option=yes
8612else case e in #(
8613  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8614esac
8615fi
8616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8617esac
8618fi
8619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8620printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8621	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8622	CFLAGS="$xorg_testset_save_CFLAGS"
8623fi
8624
8625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8626	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8627		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8628	fi
8629	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8631printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8632if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8633then :
8634  printf %s "(cached) " >&6
8635else case e in #(
8636  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637/* end confdefs.h.  */
8638int i;
8639_ACEOF
8640if ac_fn_c_try_compile "$LINENO"
8641then :
8642  xorg_cv_cc_flag_unused_command_line_argument=yes
8643else case e in #(
8644  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8645esac
8646fi
8647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8648esac
8649fi
8650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8651printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8652	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8653	CFLAGS="$xorg_testset_save_CFLAGS"
8654fi
8655
8656found="no"
8657
8658	if test $found = "no" ; then
8659		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8660			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8661		fi
8662
8663		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8664			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8665		fi
8666
8667		CFLAGS="$CFLAGS -Werror=array-bounds"
8668
8669		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8670printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8671		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8672		if eval test \${$cacheid+y}
8673then :
8674  printf %s "(cached) " >&6
8675else case e in #(
8676  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677/* end confdefs.h.  */
8678int i;
8679int
8680main (void)
8681{
8682
8683  ;
8684  return 0;
8685}
8686_ACEOF
8687if ac_fn_c_try_link "$LINENO"
8688then :
8689  eval $cacheid=yes
8690else case e in #(
8691  e) eval $cacheid=no ;;
8692esac
8693fi
8694rm -f core conftest.err conftest.$ac_objext conftest.beam \
8695    conftest$ac_exeext conftest.$ac_ext ;;
8696esac
8697fi
8698
8699
8700		CFLAGS="$xorg_testset_save_CFLAGS"
8701
8702		eval supported=\$$cacheid
8703		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8704printf "%s\n" "$supported" >&6; }
8705		if test "$supported" = "yes" ; then
8706			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8707			found="yes"
8708		fi
8709	fi
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725xorg_testset_save_CFLAGS="$CFLAGS"
8726
8727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8728	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8729	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8730printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8731if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8732then :
8733  printf %s "(cached) " >&6
8734else case e in #(
8735  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736/* end confdefs.h.  */
8737int i;
8738_ACEOF
8739if ac_fn_c_try_compile "$LINENO"
8740then :
8741  xorg_cv_cc_flag_unknown_warning_option=yes
8742else case e in #(
8743  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8744esac
8745fi
8746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8747esac
8748fi
8749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8750printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8751	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8752	CFLAGS="$xorg_testset_save_CFLAGS"
8753fi
8754
8755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8756	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8757		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8758	fi
8759	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8760	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8761printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8762if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8763then :
8764  printf %s "(cached) " >&6
8765else case e in #(
8766  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767/* end confdefs.h.  */
8768int i;
8769_ACEOF
8770if ac_fn_c_try_compile "$LINENO"
8771then :
8772  xorg_cv_cc_flag_unused_command_line_argument=yes
8773else case e in #(
8774  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8775esac
8776fi
8777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8778esac
8779fi
8780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8781printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8782	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8783	CFLAGS="$xorg_testset_save_CFLAGS"
8784fi
8785
8786found="no"
8787
8788	if test $found = "no" ; then
8789		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8790			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8791		fi
8792
8793		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8794			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8795		fi
8796
8797		CFLAGS="$CFLAGS -Werror=write-strings"
8798
8799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8800printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8801		cacheid=xorg_cv_cc_flag__Werror_write_strings
8802		if eval test \${$cacheid+y}
8803then :
8804  printf %s "(cached) " >&6
8805else case e in #(
8806  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807/* end confdefs.h.  */
8808int i;
8809int
8810main (void)
8811{
8812
8813  ;
8814  return 0;
8815}
8816_ACEOF
8817if ac_fn_c_try_link "$LINENO"
8818then :
8819  eval $cacheid=yes
8820else case e in #(
8821  e) eval $cacheid=no ;;
8822esac
8823fi
8824rm -f core conftest.err conftest.$ac_objext conftest.beam \
8825    conftest$ac_exeext conftest.$ac_ext ;;
8826esac
8827fi
8828
8829
8830		CFLAGS="$xorg_testset_save_CFLAGS"
8831
8832		eval supported=\$$cacheid
8833		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8834printf "%s\n" "$supported" >&6; }
8835		if test "$supported" = "yes" ; then
8836			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8837			found="yes"
8838		fi
8839	fi
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855xorg_testset_save_CFLAGS="$CFLAGS"
8856
8857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8858	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8859	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8860printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8861if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8862then :
8863  printf %s "(cached) " >&6
8864else case e in #(
8865  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866/* end confdefs.h.  */
8867int i;
8868_ACEOF
8869if ac_fn_c_try_compile "$LINENO"
8870then :
8871  xorg_cv_cc_flag_unknown_warning_option=yes
8872else case e in #(
8873  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8874esac
8875fi
8876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8877esac
8878fi
8879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8880printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8882	CFLAGS="$xorg_testset_save_CFLAGS"
8883fi
8884
8885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8888	fi
8889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8890	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8891printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8892if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8893then :
8894  printf %s "(cached) " >&6
8895else case e in #(
8896  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897/* end confdefs.h.  */
8898int i;
8899_ACEOF
8900if ac_fn_c_try_compile "$LINENO"
8901then :
8902  xorg_cv_cc_flag_unused_command_line_argument=yes
8903else case e in #(
8904  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8905esac
8906fi
8907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8908esac
8909fi
8910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8911printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8912	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8913	CFLAGS="$xorg_testset_save_CFLAGS"
8914fi
8915
8916found="no"
8917
8918	if test $found = "no" ; then
8919		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8920			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8921		fi
8922
8923		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8924			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8925		fi
8926
8927		CFLAGS="$CFLAGS -Werror=address"
8928
8929		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8930printf %s "checking if $CC supports -Werror=address... " >&6; }
8931		cacheid=xorg_cv_cc_flag__Werror_address
8932		if eval test \${$cacheid+y}
8933then :
8934  printf %s "(cached) " >&6
8935else case e in #(
8936  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937/* end confdefs.h.  */
8938int i;
8939int
8940main (void)
8941{
8942
8943  ;
8944  return 0;
8945}
8946_ACEOF
8947if ac_fn_c_try_link "$LINENO"
8948then :
8949  eval $cacheid=yes
8950else case e in #(
8951  e) eval $cacheid=no ;;
8952esac
8953fi
8954rm -f core conftest.err conftest.$ac_objext conftest.beam \
8955    conftest$ac_exeext conftest.$ac_ext ;;
8956esac
8957fi
8958
8959
8960		CFLAGS="$xorg_testset_save_CFLAGS"
8961
8962		eval supported=\$$cacheid
8963		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8964printf "%s\n" "$supported" >&6; }
8965		if test "$supported" = "yes" ; then
8966			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8967			found="yes"
8968		fi
8969	fi
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985xorg_testset_save_CFLAGS="$CFLAGS"
8986
8987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8988	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8989	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8990printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8991if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8992then :
8993  printf %s "(cached) " >&6
8994else case e in #(
8995  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996/* end confdefs.h.  */
8997int i;
8998_ACEOF
8999if ac_fn_c_try_compile "$LINENO"
9000then :
9001  xorg_cv_cc_flag_unknown_warning_option=yes
9002else case e in #(
9003  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9004esac
9005fi
9006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9007esac
9008fi
9009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9010printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9011	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9012	CFLAGS="$xorg_testset_save_CFLAGS"
9013fi
9014
9015if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9016	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9017		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9018	fi
9019	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9020	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9021printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9022if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9023then :
9024  printf %s "(cached) " >&6
9025else case e in #(
9026  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027/* end confdefs.h.  */
9028int i;
9029_ACEOF
9030if ac_fn_c_try_compile "$LINENO"
9031then :
9032  xorg_cv_cc_flag_unused_command_line_argument=yes
9033else case e in #(
9034  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9035esac
9036fi
9037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9038esac
9039fi
9040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9041printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9042	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9043	CFLAGS="$xorg_testset_save_CFLAGS"
9044fi
9045
9046found="no"
9047
9048	if test $found = "no" ; then
9049		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9050			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9051		fi
9052
9053		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9054			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9055		fi
9056
9057		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9058
9059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9060printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9061		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9062		if eval test \${$cacheid+y}
9063then :
9064  printf %s "(cached) " >&6
9065else case e in #(
9066  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067/* end confdefs.h.  */
9068int i;
9069int
9070main (void)
9071{
9072
9073  ;
9074  return 0;
9075}
9076_ACEOF
9077if ac_fn_c_try_link "$LINENO"
9078then :
9079  eval $cacheid=yes
9080else case e in #(
9081  e) eval $cacheid=no ;;
9082esac
9083fi
9084rm -f core conftest.err conftest.$ac_objext conftest.beam \
9085    conftest$ac_exeext conftest.$ac_ext ;;
9086esac
9087fi
9088
9089
9090		CFLAGS="$xorg_testset_save_CFLAGS"
9091
9092		eval supported=\$$cacheid
9093		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9094printf "%s\n" "$supported" >&6; }
9095		if test "$supported" = "yes" ; then
9096			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9097			found="yes"
9098		fi
9099	fi
9100
9101	if test $found = "no" ; then
9102		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9103			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9104		fi
9105
9106		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9107			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9108		fi
9109
9110		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9111
9112		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9113printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9114		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9115		if eval test \${$cacheid+y}
9116then :
9117  printf %s "(cached) " >&6
9118else case e in #(
9119  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120/* end confdefs.h.  */
9121int i;
9122int
9123main (void)
9124{
9125
9126  ;
9127  return 0;
9128}
9129_ACEOF
9130if ac_fn_c_try_link "$LINENO"
9131then :
9132  eval $cacheid=yes
9133else case e in #(
9134  e) eval $cacheid=no ;;
9135esac
9136fi
9137rm -f core conftest.err conftest.$ac_objext conftest.beam \
9138    conftest$ac_exeext conftest.$ac_ext ;;
9139esac
9140fi
9141
9142
9143		CFLAGS="$xorg_testset_save_CFLAGS"
9144
9145		eval supported=\$$cacheid
9146		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9147printf "%s\n" "$supported" >&6; }
9148		if test "$supported" = "yes" ; then
9149			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9150			found="yes"
9151		fi
9152	fi
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168xorg_testset_save_CFLAGS="$CFLAGS"
9169
9170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9171	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9172	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9173printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9174if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9175then :
9176  printf %s "(cached) " >&6
9177else case e in #(
9178  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179/* end confdefs.h.  */
9180int i;
9181_ACEOF
9182if ac_fn_c_try_compile "$LINENO"
9183then :
9184  xorg_cv_cc_flag_unknown_warning_option=yes
9185else case e in #(
9186  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9187esac
9188fi
9189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9190esac
9191fi
9192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9193printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9194	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9195	CFLAGS="$xorg_testset_save_CFLAGS"
9196fi
9197
9198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9199	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9200		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9201	fi
9202	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9203	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9204printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9205if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9206then :
9207  printf %s "(cached) " >&6
9208else case e in #(
9209  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210/* end confdefs.h.  */
9211int i;
9212_ACEOF
9213if ac_fn_c_try_compile "$LINENO"
9214then :
9215  xorg_cv_cc_flag_unused_command_line_argument=yes
9216else case e in #(
9217  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9218esac
9219fi
9220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9221esac
9222fi
9223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9224printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9225	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9226	CFLAGS="$xorg_testset_save_CFLAGS"
9227fi
9228
9229found="no"
9230
9231	if test $found = "no" ; then
9232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234		fi
9235
9236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9238		fi
9239
9240		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9241
9242		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9243printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9244		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9245		if eval test \${$cacheid+y}
9246then :
9247  printf %s "(cached) " >&6
9248else case e in #(
9249  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250/* end confdefs.h.  */
9251int i;
9252int
9253main (void)
9254{
9255
9256  ;
9257  return 0;
9258}
9259_ACEOF
9260if ac_fn_c_try_link "$LINENO"
9261then :
9262  eval $cacheid=yes
9263else case e in #(
9264  e) eval $cacheid=no ;;
9265esac
9266fi
9267rm -f core conftest.err conftest.$ac_objext conftest.beam \
9268    conftest$ac_exeext conftest.$ac_ext ;;
9269esac
9270fi
9271
9272
9273		CFLAGS="$xorg_testset_save_CFLAGS"
9274
9275		eval supported=\$$cacheid
9276		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9277printf "%s\n" "$supported" >&6; }
9278		if test "$supported" = "yes" ; then
9279			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9280			found="yes"
9281		fi
9282	fi
9283
9284 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9285else
9286{ 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
9287printf "%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;}
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301xorg_testset_save_CFLAGS="$CFLAGS"
9302
9303if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9304	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9305	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9306printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9307if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9308then :
9309  printf %s "(cached) " >&6
9310else case e in #(
9311  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312/* end confdefs.h.  */
9313int i;
9314_ACEOF
9315if ac_fn_c_try_compile "$LINENO"
9316then :
9317  xorg_cv_cc_flag_unknown_warning_option=yes
9318else case e in #(
9319  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9320esac
9321fi
9322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9323esac
9324fi
9325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9326printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9327	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9328	CFLAGS="$xorg_testset_save_CFLAGS"
9329fi
9330
9331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9332	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9333		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9334	fi
9335	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9336	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9337printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9338if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9339then :
9340  printf %s "(cached) " >&6
9341else case e in #(
9342  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343/* end confdefs.h.  */
9344int i;
9345_ACEOF
9346if ac_fn_c_try_compile "$LINENO"
9347then :
9348  xorg_cv_cc_flag_unused_command_line_argument=yes
9349else case e in #(
9350  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9351esac
9352fi
9353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9354esac
9355fi
9356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9357printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9358	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9359	CFLAGS="$xorg_testset_save_CFLAGS"
9360fi
9361
9362found="no"
9363
9364	if test $found = "no" ; then
9365		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9366			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9367		fi
9368
9369		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9370			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9371		fi
9372
9373		CFLAGS="$CFLAGS -Wimplicit"
9374
9375		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9376printf %s "checking if $CC supports -Wimplicit... " >&6; }
9377		cacheid=xorg_cv_cc_flag__Wimplicit
9378		if eval test \${$cacheid+y}
9379then :
9380  printf %s "(cached) " >&6
9381else case e in #(
9382  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383/* end confdefs.h.  */
9384int i;
9385int
9386main (void)
9387{
9388
9389  ;
9390  return 0;
9391}
9392_ACEOF
9393if ac_fn_c_try_link "$LINENO"
9394then :
9395  eval $cacheid=yes
9396else case e in #(
9397  e) eval $cacheid=no ;;
9398esac
9399fi
9400rm -f core conftest.err conftest.$ac_objext conftest.beam \
9401    conftest$ac_exeext conftest.$ac_ext ;;
9402esac
9403fi
9404
9405
9406		CFLAGS="$xorg_testset_save_CFLAGS"
9407
9408		eval supported=\$$cacheid
9409		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9410printf "%s\n" "$supported" >&6; }
9411		if test "$supported" = "yes" ; then
9412			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9413			found="yes"
9414		fi
9415	fi
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431xorg_testset_save_CFLAGS="$CFLAGS"
9432
9433if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9434	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9435	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9436printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9437if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9438then :
9439  printf %s "(cached) " >&6
9440else case e in #(
9441  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442/* end confdefs.h.  */
9443int i;
9444_ACEOF
9445if ac_fn_c_try_compile "$LINENO"
9446then :
9447  xorg_cv_cc_flag_unknown_warning_option=yes
9448else case e in #(
9449  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9450esac
9451fi
9452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9453esac
9454fi
9455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9456printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9457	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9458	CFLAGS="$xorg_testset_save_CFLAGS"
9459fi
9460
9461if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9462	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9463		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9464	fi
9465	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9466	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9467printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9468if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9469then :
9470  printf %s "(cached) " >&6
9471else case e in #(
9472  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473/* end confdefs.h.  */
9474int i;
9475_ACEOF
9476if ac_fn_c_try_compile "$LINENO"
9477then :
9478  xorg_cv_cc_flag_unused_command_line_argument=yes
9479else case e in #(
9480  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9481esac
9482fi
9483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9484esac
9485fi
9486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9487printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9488	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9489	CFLAGS="$xorg_testset_save_CFLAGS"
9490fi
9491
9492found="no"
9493
9494	if test $found = "no" ; then
9495		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9496			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9497		fi
9498
9499		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9500			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9501		fi
9502
9503		CFLAGS="$CFLAGS -Wnonnull"
9504
9505		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9506printf %s "checking if $CC supports -Wnonnull... " >&6; }
9507		cacheid=xorg_cv_cc_flag__Wnonnull
9508		if eval test \${$cacheid+y}
9509then :
9510  printf %s "(cached) " >&6
9511else case e in #(
9512  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513/* end confdefs.h.  */
9514int i;
9515int
9516main (void)
9517{
9518
9519  ;
9520  return 0;
9521}
9522_ACEOF
9523if ac_fn_c_try_link "$LINENO"
9524then :
9525  eval $cacheid=yes
9526else case e in #(
9527  e) eval $cacheid=no ;;
9528esac
9529fi
9530rm -f core conftest.err conftest.$ac_objext conftest.beam \
9531    conftest$ac_exeext conftest.$ac_ext ;;
9532esac
9533fi
9534
9535
9536		CFLAGS="$xorg_testset_save_CFLAGS"
9537
9538		eval supported=\$$cacheid
9539		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9540printf "%s\n" "$supported" >&6; }
9541		if test "$supported" = "yes" ; then
9542			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9543			found="yes"
9544		fi
9545	fi
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561xorg_testset_save_CFLAGS="$CFLAGS"
9562
9563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9564	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9565	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9566printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9567if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9568then :
9569  printf %s "(cached) " >&6
9570else case e in #(
9571  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9572/* end confdefs.h.  */
9573int i;
9574_ACEOF
9575if ac_fn_c_try_compile "$LINENO"
9576then :
9577  xorg_cv_cc_flag_unknown_warning_option=yes
9578else case e in #(
9579  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9580esac
9581fi
9582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9583esac
9584fi
9585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9586printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9587	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9588	CFLAGS="$xorg_testset_save_CFLAGS"
9589fi
9590
9591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9592	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9593		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9594	fi
9595	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9596	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9597printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9598if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9599then :
9600  printf %s "(cached) " >&6
9601else case e in #(
9602  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603/* end confdefs.h.  */
9604int i;
9605_ACEOF
9606if ac_fn_c_try_compile "$LINENO"
9607then :
9608  xorg_cv_cc_flag_unused_command_line_argument=yes
9609else case e in #(
9610  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9611esac
9612fi
9613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9614esac
9615fi
9616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9617printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9618	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9619	CFLAGS="$xorg_testset_save_CFLAGS"
9620fi
9621
9622found="no"
9623
9624	if test $found = "no" ; then
9625		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9626			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9627		fi
9628
9629		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9630			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9631		fi
9632
9633		CFLAGS="$CFLAGS -Winit-self"
9634
9635		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9636printf %s "checking if $CC supports -Winit-self... " >&6; }
9637		cacheid=xorg_cv_cc_flag__Winit_self
9638		if eval test \${$cacheid+y}
9639then :
9640  printf %s "(cached) " >&6
9641else case e in #(
9642  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9643/* end confdefs.h.  */
9644int i;
9645int
9646main (void)
9647{
9648
9649  ;
9650  return 0;
9651}
9652_ACEOF
9653if ac_fn_c_try_link "$LINENO"
9654then :
9655  eval $cacheid=yes
9656else case e in #(
9657  e) eval $cacheid=no ;;
9658esac
9659fi
9660rm -f core conftest.err conftest.$ac_objext conftest.beam \
9661    conftest$ac_exeext conftest.$ac_ext ;;
9662esac
9663fi
9664
9665
9666		CFLAGS="$xorg_testset_save_CFLAGS"
9667
9668		eval supported=\$$cacheid
9669		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9670printf "%s\n" "$supported" >&6; }
9671		if test "$supported" = "yes" ; then
9672			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9673			found="yes"
9674		fi
9675	fi
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691xorg_testset_save_CFLAGS="$CFLAGS"
9692
9693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9694	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9696printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9697if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9698then :
9699  printf %s "(cached) " >&6
9700else case e in #(
9701  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702/* end confdefs.h.  */
9703int i;
9704_ACEOF
9705if ac_fn_c_try_compile "$LINENO"
9706then :
9707  xorg_cv_cc_flag_unknown_warning_option=yes
9708else case e in #(
9709  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9710esac
9711fi
9712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9713esac
9714fi
9715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9716printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9717	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9718	CFLAGS="$xorg_testset_save_CFLAGS"
9719fi
9720
9721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9722	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9723		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9724	fi
9725	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9726	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9727printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9728if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9729then :
9730  printf %s "(cached) " >&6
9731else case e in #(
9732  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733/* end confdefs.h.  */
9734int i;
9735_ACEOF
9736if ac_fn_c_try_compile "$LINENO"
9737then :
9738  xorg_cv_cc_flag_unused_command_line_argument=yes
9739else case e in #(
9740  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9741esac
9742fi
9743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9744esac
9745fi
9746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9747printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9748	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9749	CFLAGS="$xorg_testset_save_CFLAGS"
9750fi
9751
9752found="no"
9753
9754	if test $found = "no" ; then
9755		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9756			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9757		fi
9758
9759		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9760			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9761		fi
9762
9763		CFLAGS="$CFLAGS -Wmain"
9764
9765		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9766printf %s "checking if $CC supports -Wmain... " >&6; }
9767		cacheid=xorg_cv_cc_flag__Wmain
9768		if eval test \${$cacheid+y}
9769then :
9770  printf %s "(cached) " >&6
9771else case e in #(
9772  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773/* end confdefs.h.  */
9774int i;
9775int
9776main (void)
9777{
9778
9779  ;
9780  return 0;
9781}
9782_ACEOF
9783if ac_fn_c_try_link "$LINENO"
9784then :
9785  eval $cacheid=yes
9786else case e in #(
9787  e) eval $cacheid=no ;;
9788esac
9789fi
9790rm -f core conftest.err conftest.$ac_objext conftest.beam \
9791    conftest$ac_exeext conftest.$ac_ext ;;
9792esac
9793fi
9794
9795
9796		CFLAGS="$xorg_testset_save_CFLAGS"
9797
9798		eval supported=\$$cacheid
9799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9800printf "%s\n" "$supported" >&6; }
9801		if test "$supported" = "yes" ; then
9802			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9803			found="yes"
9804		fi
9805	fi
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821xorg_testset_save_CFLAGS="$CFLAGS"
9822
9823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9824	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9825	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9826printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9827if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9828then :
9829  printf %s "(cached) " >&6
9830else case e in #(
9831  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832/* end confdefs.h.  */
9833int i;
9834_ACEOF
9835if ac_fn_c_try_compile "$LINENO"
9836then :
9837  xorg_cv_cc_flag_unknown_warning_option=yes
9838else case e in #(
9839  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9840esac
9841fi
9842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9843esac
9844fi
9845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9846printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9847	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9848	CFLAGS="$xorg_testset_save_CFLAGS"
9849fi
9850
9851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9852	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9853		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9854	fi
9855	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9856	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9857printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9858if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9859then :
9860  printf %s "(cached) " >&6
9861else case e in #(
9862  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9863/* end confdefs.h.  */
9864int i;
9865_ACEOF
9866if ac_fn_c_try_compile "$LINENO"
9867then :
9868  xorg_cv_cc_flag_unused_command_line_argument=yes
9869else case e in #(
9870  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9871esac
9872fi
9873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9874esac
9875fi
9876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9877printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9878	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9879	CFLAGS="$xorg_testset_save_CFLAGS"
9880fi
9881
9882found="no"
9883
9884	if test $found = "no" ; then
9885		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9886			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9887		fi
9888
9889		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9890			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9891		fi
9892
9893		CFLAGS="$CFLAGS -Wmissing-braces"
9894
9895		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9896printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9897		cacheid=xorg_cv_cc_flag__Wmissing_braces
9898		if eval test \${$cacheid+y}
9899then :
9900  printf %s "(cached) " >&6
9901else case e in #(
9902  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903/* end confdefs.h.  */
9904int i;
9905int
9906main (void)
9907{
9908
9909  ;
9910  return 0;
9911}
9912_ACEOF
9913if ac_fn_c_try_link "$LINENO"
9914then :
9915  eval $cacheid=yes
9916else case e in #(
9917  e) eval $cacheid=no ;;
9918esac
9919fi
9920rm -f core conftest.err conftest.$ac_objext conftest.beam \
9921    conftest$ac_exeext conftest.$ac_ext ;;
9922esac
9923fi
9924
9925
9926		CFLAGS="$xorg_testset_save_CFLAGS"
9927
9928		eval supported=\$$cacheid
9929		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9930printf "%s\n" "$supported" >&6; }
9931		if test "$supported" = "yes" ; then
9932			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9933			found="yes"
9934		fi
9935	fi
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951xorg_testset_save_CFLAGS="$CFLAGS"
9952
9953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9954	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9955	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9956printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9957if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9958then :
9959  printf %s "(cached) " >&6
9960else case e in #(
9961  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962/* end confdefs.h.  */
9963int i;
9964_ACEOF
9965if ac_fn_c_try_compile "$LINENO"
9966then :
9967  xorg_cv_cc_flag_unknown_warning_option=yes
9968else case e in #(
9969  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9970esac
9971fi
9972rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9973esac
9974fi
9975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9976printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9977	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9978	CFLAGS="$xorg_testset_save_CFLAGS"
9979fi
9980
9981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9982	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9983		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9984	fi
9985	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9986	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9987printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9988if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9989then :
9990  printf %s "(cached) " >&6
9991else case e in #(
9992  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993/* end confdefs.h.  */
9994int i;
9995_ACEOF
9996if ac_fn_c_try_compile "$LINENO"
9997then :
9998  xorg_cv_cc_flag_unused_command_line_argument=yes
9999else case e in #(
10000  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10001esac
10002fi
10003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10004esac
10005fi
10006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10007printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10008	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10009	CFLAGS="$xorg_testset_save_CFLAGS"
10010fi
10011
10012found="no"
10013
10014	if test $found = "no" ; then
10015		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10016			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10017		fi
10018
10019		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10020			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10021		fi
10022
10023		CFLAGS="$CFLAGS -Wsequence-point"
10024
10025		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10026printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10027		cacheid=xorg_cv_cc_flag__Wsequence_point
10028		if eval test \${$cacheid+y}
10029then :
10030  printf %s "(cached) " >&6
10031else case e in #(
10032  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033/* end confdefs.h.  */
10034int i;
10035int
10036main (void)
10037{
10038
10039  ;
10040  return 0;
10041}
10042_ACEOF
10043if ac_fn_c_try_link "$LINENO"
10044then :
10045  eval $cacheid=yes
10046else case e in #(
10047  e) eval $cacheid=no ;;
10048esac
10049fi
10050rm -f core conftest.err conftest.$ac_objext conftest.beam \
10051    conftest$ac_exeext conftest.$ac_ext ;;
10052esac
10053fi
10054
10055
10056		CFLAGS="$xorg_testset_save_CFLAGS"
10057
10058		eval supported=\$$cacheid
10059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10060printf "%s\n" "$supported" >&6; }
10061		if test "$supported" = "yes" ; then
10062			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10063			found="yes"
10064		fi
10065	fi
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081xorg_testset_save_CFLAGS="$CFLAGS"
10082
10083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10084	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10085	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10086printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10087if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10088then :
10089  printf %s "(cached) " >&6
10090else case e in #(
10091  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10092/* end confdefs.h.  */
10093int i;
10094_ACEOF
10095if ac_fn_c_try_compile "$LINENO"
10096then :
10097  xorg_cv_cc_flag_unknown_warning_option=yes
10098else case e in #(
10099  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10100esac
10101fi
10102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10103esac
10104fi
10105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10106printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10107	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10108	CFLAGS="$xorg_testset_save_CFLAGS"
10109fi
10110
10111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10112	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10113		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10114	fi
10115	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10116	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10117printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10118if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10119then :
10120  printf %s "(cached) " >&6
10121else case e in #(
10122  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123/* end confdefs.h.  */
10124int i;
10125_ACEOF
10126if ac_fn_c_try_compile "$LINENO"
10127then :
10128  xorg_cv_cc_flag_unused_command_line_argument=yes
10129else case e in #(
10130  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10131esac
10132fi
10133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10134esac
10135fi
10136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10137printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10138	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10139	CFLAGS="$xorg_testset_save_CFLAGS"
10140fi
10141
10142found="no"
10143
10144	if test $found = "no" ; then
10145		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10146			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10147		fi
10148
10149		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10150			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10151		fi
10152
10153		CFLAGS="$CFLAGS -Wreturn-type"
10154
10155		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10156printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10157		cacheid=xorg_cv_cc_flag__Wreturn_type
10158		if eval test \${$cacheid+y}
10159then :
10160  printf %s "(cached) " >&6
10161else case e in #(
10162  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163/* end confdefs.h.  */
10164int i;
10165int
10166main (void)
10167{
10168
10169  ;
10170  return 0;
10171}
10172_ACEOF
10173if ac_fn_c_try_link "$LINENO"
10174then :
10175  eval $cacheid=yes
10176else case e in #(
10177  e) eval $cacheid=no ;;
10178esac
10179fi
10180rm -f core conftest.err conftest.$ac_objext conftest.beam \
10181    conftest$ac_exeext conftest.$ac_ext ;;
10182esac
10183fi
10184
10185
10186		CFLAGS="$xorg_testset_save_CFLAGS"
10187
10188		eval supported=\$$cacheid
10189		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10190printf "%s\n" "$supported" >&6; }
10191		if test "$supported" = "yes" ; then
10192			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10193			found="yes"
10194		fi
10195	fi
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211xorg_testset_save_CFLAGS="$CFLAGS"
10212
10213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10215	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10216printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10217if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10218then :
10219  printf %s "(cached) " >&6
10220else case e in #(
10221  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222/* end confdefs.h.  */
10223int i;
10224_ACEOF
10225if ac_fn_c_try_compile "$LINENO"
10226then :
10227  xorg_cv_cc_flag_unknown_warning_option=yes
10228else case e in #(
10229  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10230esac
10231fi
10232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10233esac
10234fi
10235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10236printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10237	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10238	CFLAGS="$xorg_testset_save_CFLAGS"
10239fi
10240
10241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10242	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10243		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10244	fi
10245	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10246	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10247printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10248if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10249then :
10250  printf %s "(cached) " >&6
10251else case e in #(
10252  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253/* end confdefs.h.  */
10254int i;
10255_ACEOF
10256if ac_fn_c_try_compile "$LINENO"
10257then :
10258  xorg_cv_cc_flag_unused_command_line_argument=yes
10259else case e in #(
10260  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10261esac
10262fi
10263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10264esac
10265fi
10266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10267printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10268	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10269	CFLAGS="$xorg_testset_save_CFLAGS"
10270fi
10271
10272found="no"
10273
10274	if test $found = "no" ; then
10275		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10276			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10277		fi
10278
10279		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10280			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10281		fi
10282
10283		CFLAGS="$CFLAGS -Wtrigraphs"
10284
10285		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10286printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10287		cacheid=xorg_cv_cc_flag__Wtrigraphs
10288		if eval test \${$cacheid+y}
10289then :
10290  printf %s "(cached) " >&6
10291else case e in #(
10292  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293/* end confdefs.h.  */
10294int i;
10295int
10296main (void)
10297{
10298
10299  ;
10300  return 0;
10301}
10302_ACEOF
10303if ac_fn_c_try_link "$LINENO"
10304then :
10305  eval $cacheid=yes
10306else case e in #(
10307  e) eval $cacheid=no ;;
10308esac
10309fi
10310rm -f core conftest.err conftest.$ac_objext conftest.beam \
10311    conftest$ac_exeext conftest.$ac_ext ;;
10312esac
10313fi
10314
10315
10316		CFLAGS="$xorg_testset_save_CFLAGS"
10317
10318		eval supported=\$$cacheid
10319		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10320printf "%s\n" "$supported" >&6; }
10321		if test "$supported" = "yes" ; then
10322			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10323			found="yes"
10324		fi
10325	fi
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341xorg_testset_save_CFLAGS="$CFLAGS"
10342
10343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10344	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10345	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10346printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10347if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10348then :
10349  printf %s "(cached) " >&6
10350else case e in #(
10351  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10352/* end confdefs.h.  */
10353int i;
10354_ACEOF
10355if ac_fn_c_try_compile "$LINENO"
10356then :
10357  xorg_cv_cc_flag_unknown_warning_option=yes
10358else case e in #(
10359  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10360esac
10361fi
10362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10363esac
10364fi
10365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10366printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10367	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10368	CFLAGS="$xorg_testset_save_CFLAGS"
10369fi
10370
10371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10372	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10373		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10374	fi
10375	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10376	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10377printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10378if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10379then :
10380  printf %s "(cached) " >&6
10381else case e in #(
10382  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383/* end confdefs.h.  */
10384int i;
10385_ACEOF
10386if ac_fn_c_try_compile "$LINENO"
10387then :
10388  xorg_cv_cc_flag_unused_command_line_argument=yes
10389else case e in #(
10390  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10391esac
10392fi
10393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10394esac
10395fi
10396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10397printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10398	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10399	CFLAGS="$xorg_testset_save_CFLAGS"
10400fi
10401
10402found="no"
10403
10404	if test $found = "no" ; then
10405		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10406			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10407		fi
10408
10409		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10410			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10411		fi
10412
10413		CFLAGS="$CFLAGS -Warray-bounds"
10414
10415		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10416printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10417		cacheid=xorg_cv_cc_flag__Warray_bounds
10418		if eval test \${$cacheid+y}
10419then :
10420  printf %s "(cached) " >&6
10421else case e in #(
10422  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423/* end confdefs.h.  */
10424int i;
10425int
10426main (void)
10427{
10428
10429  ;
10430  return 0;
10431}
10432_ACEOF
10433if ac_fn_c_try_link "$LINENO"
10434then :
10435  eval $cacheid=yes
10436else case e in #(
10437  e) eval $cacheid=no ;;
10438esac
10439fi
10440rm -f core conftest.err conftest.$ac_objext conftest.beam \
10441    conftest$ac_exeext conftest.$ac_ext ;;
10442esac
10443fi
10444
10445
10446		CFLAGS="$xorg_testset_save_CFLAGS"
10447
10448		eval supported=\$$cacheid
10449		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10450printf "%s\n" "$supported" >&6; }
10451		if test "$supported" = "yes" ; then
10452			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10453			found="yes"
10454		fi
10455	fi
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471xorg_testset_save_CFLAGS="$CFLAGS"
10472
10473if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10474	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10475	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10476printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10477if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10478then :
10479  printf %s "(cached) " >&6
10480else case e in #(
10481  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482/* end confdefs.h.  */
10483int i;
10484_ACEOF
10485if ac_fn_c_try_compile "$LINENO"
10486then :
10487  xorg_cv_cc_flag_unknown_warning_option=yes
10488else case e in #(
10489  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10490esac
10491fi
10492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10493esac
10494fi
10495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10496printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10497	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10498	CFLAGS="$xorg_testset_save_CFLAGS"
10499fi
10500
10501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10502	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10503		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10504	fi
10505	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10506	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10507printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10508if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10509then :
10510  printf %s "(cached) " >&6
10511else case e in #(
10512  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513/* end confdefs.h.  */
10514int i;
10515_ACEOF
10516if ac_fn_c_try_compile "$LINENO"
10517then :
10518  xorg_cv_cc_flag_unused_command_line_argument=yes
10519else case e in #(
10520  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10521esac
10522fi
10523rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10524esac
10525fi
10526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10527printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10528	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10529	CFLAGS="$xorg_testset_save_CFLAGS"
10530fi
10531
10532found="no"
10533
10534	if test $found = "no" ; then
10535		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10536			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10537		fi
10538
10539		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10540			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10541		fi
10542
10543		CFLAGS="$CFLAGS -Wwrite-strings"
10544
10545		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10546printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10547		cacheid=xorg_cv_cc_flag__Wwrite_strings
10548		if eval test \${$cacheid+y}
10549then :
10550  printf %s "(cached) " >&6
10551else case e in #(
10552  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553/* end confdefs.h.  */
10554int i;
10555int
10556main (void)
10557{
10558
10559  ;
10560  return 0;
10561}
10562_ACEOF
10563if ac_fn_c_try_link "$LINENO"
10564then :
10565  eval $cacheid=yes
10566else case e in #(
10567  e) eval $cacheid=no ;;
10568esac
10569fi
10570rm -f core conftest.err conftest.$ac_objext conftest.beam \
10571    conftest$ac_exeext conftest.$ac_ext ;;
10572esac
10573fi
10574
10575
10576		CFLAGS="$xorg_testset_save_CFLAGS"
10577
10578		eval supported=\$$cacheid
10579		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10580printf "%s\n" "$supported" >&6; }
10581		if test "$supported" = "yes" ; then
10582			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10583			found="yes"
10584		fi
10585	fi
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601xorg_testset_save_CFLAGS="$CFLAGS"
10602
10603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10604	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10605	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10606printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10607if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10608then :
10609  printf %s "(cached) " >&6
10610else case e in #(
10611  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612/* end confdefs.h.  */
10613int i;
10614_ACEOF
10615if ac_fn_c_try_compile "$LINENO"
10616then :
10617  xorg_cv_cc_flag_unknown_warning_option=yes
10618else case e in #(
10619  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10620esac
10621fi
10622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10623esac
10624fi
10625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10626printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10627	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10628	CFLAGS="$xorg_testset_save_CFLAGS"
10629fi
10630
10631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10632	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10633		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10634	fi
10635	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10636	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10637printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10638if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10639then :
10640  printf %s "(cached) " >&6
10641else case e in #(
10642  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643/* end confdefs.h.  */
10644int i;
10645_ACEOF
10646if ac_fn_c_try_compile "$LINENO"
10647then :
10648  xorg_cv_cc_flag_unused_command_line_argument=yes
10649else case e in #(
10650  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10651esac
10652fi
10653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10654esac
10655fi
10656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10657printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10658	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10659	CFLAGS="$xorg_testset_save_CFLAGS"
10660fi
10661
10662found="no"
10663
10664	if test $found = "no" ; then
10665		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10666			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10667		fi
10668
10669		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10670			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10671		fi
10672
10673		CFLAGS="$CFLAGS -Waddress"
10674
10675		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10676printf %s "checking if $CC supports -Waddress... " >&6; }
10677		cacheid=xorg_cv_cc_flag__Waddress
10678		if eval test \${$cacheid+y}
10679then :
10680  printf %s "(cached) " >&6
10681else case e in #(
10682  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683/* end confdefs.h.  */
10684int i;
10685int
10686main (void)
10687{
10688
10689  ;
10690  return 0;
10691}
10692_ACEOF
10693if ac_fn_c_try_link "$LINENO"
10694then :
10695  eval $cacheid=yes
10696else case e in #(
10697  e) eval $cacheid=no ;;
10698esac
10699fi
10700rm -f core conftest.err conftest.$ac_objext conftest.beam \
10701    conftest$ac_exeext conftest.$ac_ext ;;
10702esac
10703fi
10704
10705
10706		CFLAGS="$xorg_testset_save_CFLAGS"
10707
10708		eval supported=\$$cacheid
10709		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10710printf "%s\n" "$supported" >&6; }
10711		if test "$supported" = "yes" ; then
10712			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10713			found="yes"
10714		fi
10715	fi
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731xorg_testset_save_CFLAGS="$CFLAGS"
10732
10733if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10734	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10735	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10736printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10737if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10738then :
10739  printf %s "(cached) " >&6
10740else case e in #(
10741  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742/* end confdefs.h.  */
10743int i;
10744_ACEOF
10745if ac_fn_c_try_compile "$LINENO"
10746then :
10747  xorg_cv_cc_flag_unknown_warning_option=yes
10748else case e in #(
10749  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10750esac
10751fi
10752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10753esac
10754fi
10755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10756printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10757	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10758	CFLAGS="$xorg_testset_save_CFLAGS"
10759fi
10760
10761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10762	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10763		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10764	fi
10765	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10766	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10767printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10768if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10769then :
10770  printf %s "(cached) " >&6
10771else case e in #(
10772  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773/* end confdefs.h.  */
10774int i;
10775_ACEOF
10776if ac_fn_c_try_compile "$LINENO"
10777then :
10778  xorg_cv_cc_flag_unused_command_line_argument=yes
10779else case e in #(
10780  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10781esac
10782fi
10783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10784esac
10785fi
10786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10787printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10788	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10789	CFLAGS="$xorg_testset_save_CFLAGS"
10790fi
10791
10792found="no"
10793
10794	if test $found = "no" ; then
10795		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10796			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10797		fi
10798
10799		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10800			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10801		fi
10802
10803		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10804
10805		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10806printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10807		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10808		if eval test \${$cacheid+y}
10809then :
10810  printf %s "(cached) " >&6
10811else case e in #(
10812  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813/* end confdefs.h.  */
10814int i;
10815int
10816main (void)
10817{
10818
10819  ;
10820  return 0;
10821}
10822_ACEOF
10823if ac_fn_c_try_link "$LINENO"
10824then :
10825  eval $cacheid=yes
10826else case e in #(
10827  e) eval $cacheid=no ;;
10828esac
10829fi
10830rm -f core conftest.err conftest.$ac_objext conftest.beam \
10831    conftest$ac_exeext conftest.$ac_ext ;;
10832esac
10833fi
10834
10835
10836		CFLAGS="$xorg_testset_save_CFLAGS"
10837
10838		eval supported=\$$cacheid
10839		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10840printf "%s\n" "$supported" >&6; }
10841		if test "$supported" = "yes" ; then
10842			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10843			found="yes"
10844		fi
10845	fi
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861xorg_testset_save_CFLAGS="$CFLAGS"
10862
10863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10864	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10865	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10866printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10867if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10868then :
10869  printf %s "(cached) " >&6
10870else case e in #(
10871  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872/* end confdefs.h.  */
10873int i;
10874_ACEOF
10875if ac_fn_c_try_compile "$LINENO"
10876then :
10877  xorg_cv_cc_flag_unknown_warning_option=yes
10878else case e in #(
10879  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10880esac
10881fi
10882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10883esac
10884fi
10885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10886printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10887	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10888	CFLAGS="$xorg_testset_save_CFLAGS"
10889fi
10890
10891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10892	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10893		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10894	fi
10895	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10896	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10897printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10898if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10899then :
10900  printf %s "(cached) " >&6
10901else case e in #(
10902  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903/* end confdefs.h.  */
10904int i;
10905_ACEOF
10906if ac_fn_c_try_compile "$LINENO"
10907then :
10908  xorg_cv_cc_flag_unused_command_line_argument=yes
10909else case e in #(
10910  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10911esac
10912fi
10913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10914esac
10915fi
10916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10917printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10918	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10919	CFLAGS="$xorg_testset_save_CFLAGS"
10920fi
10921
10922found="no"
10923
10924	if test $found = "no" ; then
10925		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10926			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10927		fi
10928
10929		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10930			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10931		fi
10932
10933		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10934
10935		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10936printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10937		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10938		if eval test \${$cacheid+y}
10939then :
10940  printf %s "(cached) " >&6
10941else case e in #(
10942  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943/* end confdefs.h.  */
10944int i;
10945int
10946main (void)
10947{
10948
10949  ;
10950  return 0;
10951}
10952_ACEOF
10953if ac_fn_c_try_link "$LINENO"
10954then :
10955  eval $cacheid=yes
10956else case e in #(
10957  e) eval $cacheid=no ;;
10958esac
10959fi
10960rm -f core conftest.err conftest.$ac_objext conftest.beam \
10961    conftest$ac_exeext conftest.$ac_ext ;;
10962esac
10963fi
10964
10965
10966		CFLAGS="$xorg_testset_save_CFLAGS"
10967
10968		eval supported=\$$cacheid
10969		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10970printf "%s\n" "$supported" >&6; }
10971		if test "$supported" = "yes" ; then
10972			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10973			found="yes"
10974		fi
10975	fi
10976
10977
10978fi
10979
10980
10981
10982
10983
10984
10985
10986		CWARNFLAGS="$BASE_CFLAGS"
10987		if  test "x$GCC" = xyes ; then
10988		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10989		fi
10990
10991
10992
10993
10994
10995
10996
10997
10998# Check whether --enable-strict-compilation was given.
10999if test ${enable_strict_compilation+y}
11000then :
11001  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11002else case e in #(
11003  e) STRICT_COMPILE=no ;;
11004esac
11005fi
11006
11007
11008
11009
11010
11011
11012STRICT_CFLAGS=""
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026xorg_testset_save_CFLAGS="$CFLAGS"
11027
11028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11029	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11030	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11031printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11032if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11033then :
11034  printf %s "(cached) " >&6
11035else case e in #(
11036  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037/* end confdefs.h.  */
11038int i;
11039_ACEOF
11040if ac_fn_c_try_compile "$LINENO"
11041then :
11042  xorg_cv_cc_flag_unknown_warning_option=yes
11043else case e in #(
11044  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11045esac
11046fi
11047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11048esac
11049fi
11050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11051printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11052	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11053	CFLAGS="$xorg_testset_save_CFLAGS"
11054fi
11055
11056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11057	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11058		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11059	fi
11060	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11061	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11062printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11063if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11064then :
11065  printf %s "(cached) " >&6
11066else case e in #(
11067  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068/* end confdefs.h.  */
11069int i;
11070_ACEOF
11071if ac_fn_c_try_compile "$LINENO"
11072then :
11073  xorg_cv_cc_flag_unused_command_line_argument=yes
11074else case e in #(
11075  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11076esac
11077fi
11078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11079esac
11080fi
11081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11082printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11083	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11084	CFLAGS="$xorg_testset_save_CFLAGS"
11085fi
11086
11087found="no"
11088
11089	if test $found = "no" ; then
11090		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11091			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11092		fi
11093
11094		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11095			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11096		fi
11097
11098		CFLAGS="$CFLAGS -pedantic"
11099
11100		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11101printf %s "checking if $CC supports -pedantic... " >&6; }
11102		cacheid=xorg_cv_cc_flag__pedantic
11103		if eval test \${$cacheid+y}
11104then :
11105  printf %s "(cached) " >&6
11106else case e in #(
11107  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108/* end confdefs.h.  */
11109int i;
11110int
11111main (void)
11112{
11113
11114  ;
11115  return 0;
11116}
11117_ACEOF
11118if ac_fn_c_try_link "$LINENO"
11119then :
11120  eval $cacheid=yes
11121else case e in #(
11122  e) eval $cacheid=no ;;
11123esac
11124fi
11125rm -f core conftest.err conftest.$ac_objext conftest.beam \
11126    conftest$ac_exeext conftest.$ac_ext ;;
11127esac
11128fi
11129
11130
11131		CFLAGS="$xorg_testset_save_CFLAGS"
11132
11133		eval supported=\$$cacheid
11134		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11135printf "%s\n" "$supported" >&6; }
11136		if test "$supported" = "yes" ; then
11137			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11138			found="yes"
11139		fi
11140	fi
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156xorg_testset_save_CFLAGS="$CFLAGS"
11157
11158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11159	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11160	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11161printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11162if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11163then :
11164  printf %s "(cached) " >&6
11165else case e in #(
11166  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11167/* end confdefs.h.  */
11168int i;
11169_ACEOF
11170if ac_fn_c_try_compile "$LINENO"
11171then :
11172  xorg_cv_cc_flag_unknown_warning_option=yes
11173else case e in #(
11174  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11175esac
11176fi
11177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11178esac
11179fi
11180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11181printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11182	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11183	CFLAGS="$xorg_testset_save_CFLAGS"
11184fi
11185
11186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11187	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11188		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11189	fi
11190	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11191	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11192printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11193if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11194then :
11195  printf %s "(cached) " >&6
11196else case e in #(
11197  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198/* end confdefs.h.  */
11199int i;
11200_ACEOF
11201if ac_fn_c_try_compile "$LINENO"
11202then :
11203  xorg_cv_cc_flag_unused_command_line_argument=yes
11204else case e in #(
11205  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11206esac
11207fi
11208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11209esac
11210fi
11211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11212printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11213	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11214	CFLAGS="$xorg_testset_save_CFLAGS"
11215fi
11216
11217found="no"
11218
11219	if test $found = "no" ; then
11220		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11221			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11222		fi
11223
11224		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11225			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11226		fi
11227
11228		CFLAGS="$CFLAGS -Werror"
11229
11230		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11231printf %s "checking if $CC supports -Werror... " >&6; }
11232		cacheid=xorg_cv_cc_flag__Werror
11233		if eval test \${$cacheid+y}
11234then :
11235  printf %s "(cached) " >&6
11236else case e in #(
11237  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238/* end confdefs.h.  */
11239int i;
11240int
11241main (void)
11242{
11243
11244  ;
11245  return 0;
11246}
11247_ACEOF
11248if ac_fn_c_try_link "$LINENO"
11249then :
11250  eval $cacheid=yes
11251else case e in #(
11252  e) eval $cacheid=no ;;
11253esac
11254fi
11255rm -f core conftest.err conftest.$ac_objext conftest.beam \
11256    conftest$ac_exeext conftest.$ac_ext ;;
11257esac
11258fi
11259
11260
11261		CFLAGS="$xorg_testset_save_CFLAGS"
11262
11263		eval supported=\$$cacheid
11264		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11265printf "%s\n" "$supported" >&6; }
11266		if test "$supported" = "yes" ; then
11267			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11268			found="yes"
11269		fi
11270	fi
11271
11272	if test $found = "no" ; then
11273		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11274			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11275		fi
11276
11277		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11278			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11279		fi
11280
11281		CFLAGS="$CFLAGS -errwarn"
11282
11283		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11284printf %s "checking if $CC supports -errwarn... " >&6; }
11285		cacheid=xorg_cv_cc_flag__errwarn
11286		if eval test \${$cacheid+y}
11287then :
11288  printf %s "(cached) " >&6
11289else case e in #(
11290  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291/* end confdefs.h.  */
11292int i;
11293int
11294main (void)
11295{
11296
11297  ;
11298  return 0;
11299}
11300_ACEOF
11301if ac_fn_c_try_link "$LINENO"
11302then :
11303  eval $cacheid=yes
11304else case e in #(
11305  e) eval $cacheid=no ;;
11306esac
11307fi
11308rm -f core conftest.err conftest.$ac_objext conftest.beam \
11309    conftest$ac_exeext conftest.$ac_ext ;;
11310esac
11311fi
11312
11313
11314		CFLAGS="$xorg_testset_save_CFLAGS"
11315
11316		eval supported=\$$cacheid
11317		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11318printf "%s\n" "$supported" >&6; }
11319		if test "$supported" = "yes" ; then
11320			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11321			found="yes"
11322		fi
11323	fi
11324
11325
11326
11327# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11328# activate it with -Werror, so we add it here explicitly.
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342xorg_testset_save_CFLAGS="$CFLAGS"
11343
11344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11345	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11346	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11347printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11348if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11349then :
11350  printf %s "(cached) " >&6
11351else case e in #(
11352  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353/* end confdefs.h.  */
11354int i;
11355_ACEOF
11356if ac_fn_c_try_compile "$LINENO"
11357then :
11358  xorg_cv_cc_flag_unknown_warning_option=yes
11359else case e in #(
11360  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11361esac
11362fi
11363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11364esac
11365fi
11366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11367printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11368	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11369	CFLAGS="$xorg_testset_save_CFLAGS"
11370fi
11371
11372if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11373	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11374		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11375	fi
11376	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11377	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11378printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11379if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11380then :
11381  printf %s "(cached) " >&6
11382else case e in #(
11383  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384/* end confdefs.h.  */
11385int i;
11386_ACEOF
11387if ac_fn_c_try_compile "$LINENO"
11388then :
11389  xorg_cv_cc_flag_unused_command_line_argument=yes
11390else case e in #(
11391  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11392esac
11393fi
11394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11395esac
11396fi
11397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11398printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11399	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11400	CFLAGS="$xorg_testset_save_CFLAGS"
11401fi
11402
11403found="no"
11404
11405	if test $found = "no" ; then
11406		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11407			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11408		fi
11409
11410		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11411			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11412		fi
11413
11414		CFLAGS="$CFLAGS -Werror=attributes"
11415
11416		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11417printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11418		cacheid=xorg_cv_cc_flag__Werror_attributes
11419		if eval test \${$cacheid+y}
11420then :
11421  printf %s "(cached) " >&6
11422else case e in #(
11423  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424/* end confdefs.h.  */
11425int i;
11426int
11427main (void)
11428{
11429
11430  ;
11431  return 0;
11432}
11433_ACEOF
11434if ac_fn_c_try_link "$LINENO"
11435then :
11436  eval $cacheid=yes
11437else case e in #(
11438  e) eval $cacheid=no ;;
11439esac
11440fi
11441rm -f core conftest.err conftest.$ac_objext conftest.beam \
11442    conftest$ac_exeext conftest.$ac_ext ;;
11443esac
11444fi
11445
11446
11447		CFLAGS="$xorg_testset_save_CFLAGS"
11448
11449		eval supported=\$$cacheid
11450		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11451printf "%s\n" "$supported" >&6; }
11452		if test "$supported" = "yes" ; then
11453			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11454			found="yes"
11455		fi
11456	fi
11457
11458
11459
11460if test "x$STRICT_COMPILE" = "xyes"; then
11461    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11462    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11463fi
11464
11465
11466
11467
11468
11469
11470
11471
11472cat >>confdefs.h <<_ACEOF
11473#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11474_ACEOF
11475
11476	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11477	if test "x$PVM" = "x"; then
11478		PVM="0"
11479	fi
11480
11481printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11482
11483	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11484	if test "x$PVP" = "x"; then
11485		PVP="0"
11486	fi
11487
11488printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11489
11490
11491
11492CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11493mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11494|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11495touch \$(top_srcdir)/ChangeLog; \
11496echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11497
11498
11499
11500
11501macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11502INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11503mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11504|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11505touch \$(top_srcdir)/INSTALL; \
11506echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11507
11508
11509
11510
11511
11512
11513case $host_os in
11514    solaris*)
11515        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11516        # check for a man page file found in later versions that use
11517        # traditional section numbers instead
11518        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11519printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11520if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11521then :
11522  printf %s "(cached) " >&6
11523else case e in #(
11524  e) test "$cross_compiling" = yes &&
11525  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11526if test -r "/usr/share/man/man7/attributes.7"; then
11527  ac_cv_file__usr_share_man_man7_attributes_7=yes
11528else
11529  ac_cv_file__usr_share_man_man7_attributes_7=no
11530fi ;;
11531esac
11532fi
11533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11534printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11535if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11536then :
11537  SYSV_MAN_SECTIONS=false
11538else case e in #(
11539  e) SYSV_MAN_SECTIONS=true ;;
11540esac
11541fi
11542
11543        ;;
11544    *) SYSV_MAN_SECTIONS=false ;;
11545esac
11546
11547if test x$APP_MAN_SUFFIX = x    ; then
11548    APP_MAN_SUFFIX=1
11549fi
11550if test x$APP_MAN_DIR = x    ; then
11551    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11552fi
11553
11554if test x$LIB_MAN_SUFFIX = x    ; then
11555    LIB_MAN_SUFFIX=3
11556fi
11557if test x$LIB_MAN_DIR = x    ; then
11558    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11559fi
11560
11561if test x$FILE_MAN_SUFFIX = x    ; then
11562    case $SYSV_MAN_SECTIONS in
11563	true)				FILE_MAN_SUFFIX=4  ;;
11564	*)				FILE_MAN_SUFFIX=5  ;;
11565    esac
11566fi
11567if test x$FILE_MAN_DIR = x    ; then
11568    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11569fi
11570
11571if test x$MISC_MAN_SUFFIX = x    ; then
11572    case $SYSV_MAN_SECTIONS in
11573	true)				MISC_MAN_SUFFIX=5  ;;
11574	*)				MISC_MAN_SUFFIX=7  ;;
11575    esac
11576fi
11577if test x$MISC_MAN_DIR = x    ; then
11578    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11579fi
11580
11581if test x$DRIVER_MAN_SUFFIX = x    ; then
11582    case $SYSV_MAN_SECTIONS in
11583	true)				DRIVER_MAN_SUFFIX=7  ;;
11584	*)				DRIVER_MAN_SUFFIX=4  ;;
11585    esac
11586fi
11587if test x$DRIVER_MAN_DIR = x    ; then
11588    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11589fi
11590
11591if test x$ADMIN_MAN_SUFFIX = x    ; then
11592    case $SYSV_MAN_SECTIONS in
11593	true)				ADMIN_MAN_SUFFIX=1m ;;
11594	*)				ADMIN_MAN_SUFFIX=8  ;;
11595    esac
11596fi
11597if test x$ADMIN_MAN_DIR = x    ; then
11598    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11599fi
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615XORG_MAN_PAGE="X Version 11"
11616
11617MAN_SUBSTS="\
11618	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11619	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11620	-e 's|__xservername__|Xorg|g' \
11621	-e 's|__xconfigfile__|xorg.conf|g' \
11622	-e 's|__projectroot__|\$(prefix)|g' \
11623	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11624	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11625	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11626	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11627	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11628	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11629	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11630
11631
11632
11633# Check whether --enable-silent-rules was given.
11634if test ${enable_silent_rules+y}
11635then :
11636  enableval=$enable_silent_rules;
11637fi
11638
11639case $enable_silent_rules in # (((
11640  yes) AM_DEFAULT_VERBOSITY=0;;
11641   no) AM_DEFAULT_VERBOSITY=1;;
11642    *) AM_DEFAULT_VERBOSITY=0;;
11643esac
11644am_make=${MAKE-make}
11645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11646printf %s "checking whether $am_make supports nested variables... " >&6; }
11647if test ${am_cv_make_support_nested_variables+y}
11648then :
11649  printf %s "(cached) " >&6
11650else case e in #(
11651  e) if printf "%s\n" 'TRUE=$(BAR$(V))
11652BAR0=false
11653BAR1=true
11654V=1
11655am__doit:
11656	@$(TRUE)
11657.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11658  am_cv_make_support_nested_variables=yes
11659else
11660  am_cv_make_support_nested_variables=no
11661fi ;;
11662esac
11663fi
11664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11665printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11666if test $am_cv_make_support_nested_variables = yes; then
11667    AM_V='$(V)'
11668  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11669else
11670  AM_V=$AM_DEFAULT_VERBOSITY
11671  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11672fi
11673AM_BACKSLASH='\'
11674
11675
11676
11677
11678# Avoid stat() failures if a file has a size that doesn't fit in 32-bits
11679# Check whether --enable-largefile was given.
11680if test ${enable_largefile+y}
11681then :
11682  enableval=$enable_largefile;
11683fi
11684if test "$enable_largefile,$enable_year2038" != no,no
11685then :
11686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
11687printf %s "checking for $CC option to enable large file support... " >&6; }
11688if test ${ac_cv_sys_largefile_opts+y}
11689then :
11690  printf %s "(cached) " >&6
11691else case e in #(
11692  e) ac_save_CC="$CC"
11693  ac_opt_found=no
11694  for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
11695    if test x"$ac_opt" != x"none needed"
11696then :
11697  CC="$ac_save_CC $ac_opt"
11698fi
11699    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700/* end confdefs.h.  */
11701#include <sys/types.h>
11702#ifndef FTYPE
11703# define FTYPE off_t
11704#endif
11705 /* Check that FTYPE can represent 2**63 - 1 correctly.
11706    We can't simply define LARGE_FTYPE to be 9223372036854775807,
11707    since some C++ compilers masquerading as C compilers
11708    incorrectly reject 9223372036854775807.  */
11709#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
11710  int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
11711		       && LARGE_FTYPE % 2147483647 == 1)
11712		      ? 1 : -1];
11713int
11714main (void)
11715{
11716
11717  ;
11718  return 0;
11719}
11720_ACEOF
11721if ac_fn_c_try_compile "$LINENO"
11722then :
11723  if test x"$ac_opt" = x"none needed"
11724then :
11725  # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
11726	 CC="$CC -DFTYPE=ino_t"
11727	 if ac_fn_c_try_compile "$LINENO"
11728then :
11729
11730else case e in #(
11731  e) CC="$CC -D_FILE_OFFSET_BITS=64"
11732	    if ac_fn_c_try_compile "$LINENO"
11733then :
11734  ac_opt='-D_FILE_OFFSET_BITS=64'
11735fi
11736rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
11737esac
11738fi
11739rm -f core conftest.err conftest.$ac_objext conftest.beam
11740fi
11741      ac_cv_sys_largefile_opts=$ac_opt
11742      ac_opt_found=yes
11743fi
11744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11745    test $ac_opt_found = no || break
11746  done
11747  CC="$ac_save_CC"
11748
11749  test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
11750esac
11751fi
11752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
11753printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
11754
11755ac_have_largefile=yes
11756case $ac_cv_sys_largefile_opts in #(
11757  "none needed") :
11758     ;; #(
11759  "supported through gnulib") :
11760     ;; #(
11761  "support not detected") :
11762    ac_have_largefile=no ;; #(
11763  "-D_FILE_OFFSET_BITS=64") :
11764
11765printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11766 ;; #(
11767  "-D_LARGE_FILES=1") :
11768
11769printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11770 ;; #(
11771  "-n32") :
11772    CC="$CC -n32" ;; #(
11773  *) :
11774    as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
11775esac
11776
11777if test "$enable_year2038" != no
11778then :
11779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
11780printf %s "checking for $CC option for timestamps after 2038... " >&6; }
11781if test ${ac_cv_sys_year2038_opts+y}
11782then :
11783  printf %s "(cached) " >&6
11784else case e in #(
11785  e) ac_save_CPPFLAGS="$CPPFLAGS"
11786  ac_opt_found=no
11787  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
11788    if test x"$ac_opt" != x"none needed"
11789then :
11790  CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
11791fi
11792    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793/* end confdefs.h.  */
11794
11795  #include <time.h>
11796  /* Check that time_t can represent 2**32 - 1 correctly.  */
11797  #define LARGE_TIME_T \\
11798    ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
11799  int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
11800                           && LARGE_TIME_T % 65537 == 0)
11801                          ? 1 : -1];
11802
11803int
11804main (void)
11805{
11806
11807  ;
11808  return 0;
11809}
11810_ACEOF
11811if ac_fn_c_try_compile "$LINENO"
11812then :
11813  ac_cv_sys_year2038_opts="$ac_opt"
11814      ac_opt_found=yes
11815fi
11816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11817    test $ac_opt_found = no || break
11818  done
11819  CPPFLAGS="$ac_save_CPPFLAGS"
11820  test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
11821esac
11822fi
11823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
11824printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
11825
11826ac_have_year2038=yes
11827case $ac_cv_sys_year2038_opts in #(
11828  "none needed") :
11829     ;; #(
11830  "support not detected") :
11831    ac_have_year2038=no ;; #(
11832  "-D_TIME_BITS=64") :
11833
11834printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
11835 ;; #(
11836  "-D__MINGW_USE_VC2005_COMPAT") :
11837
11838printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
11839 ;; #(
11840  "-U_USE_32_BIT_TIME_T"*) :
11841    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11842printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11843as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
11844will stop working after mid-January 2038. Remove
11845_USE_32BIT_TIME_T from the compiler flags.
11846See 'config.log' for more details" "$LINENO" 5; } ;; #(
11847  *) :
11848    as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
11849esac
11850
11851fi
11852
11853fi
11854
11855# Checks for pkg-config packages
11856
11857pkg_failed=no
11858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5
11859printf %s "checking for XPROTO... " >&6; }
11860
11861if test -n "$XPROTO_CFLAGS"; then
11862    pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
11863 elif test -n "$PKG_CONFIG"; then
11864    if test -n "$PKG_CONFIG" && \
11865    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5
11866  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5
11867  ac_status=$?
11868  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11869  test $ac_status = 0; }; then
11870  pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17" 2>/dev/null`
11871		      test "x$?" != "x0" && pkg_failed=yes
11872else
11873  pkg_failed=yes
11874fi
11875 else
11876    pkg_failed=untried
11877fi
11878if test -n "$XPROTO_LIBS"; then
11879    pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
11880 elif test -n "$PKG_CONFIG"; then
11881    if test -n "$PKG_CONFIG" && \
11882    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5
11883  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5
11884  ac_status=$?
11885  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11886  test $ac_status = 0; }; then
11887  pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17" 2>/dev/null`
11888		      test "x$?" != "x0" && pkg_failed=yes
11889else
11890  pkg_failed=yes
11891fi
11892 else
11893    pkg_failed=untried
11894fi
11895
11896
11897
11898if test $pkg_failed = yes; then
11899   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900printf "%s\n" "no" >&6; }
11901
11902if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11903        _pkg_short_errors_supported=yes
11904else
11905        _pkg_short_errors_supported=no
11906fi
11907        if test $_pkg_short_errors_supported = yes; then
11908	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17" 2>&1`
11909        else
11910	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17" 2>&1`
11911        fi
11912	# Put the nasty error message in config.log where it belongs
11913	echo "$XPROTO_PKG_ERRORS" >&5
11914
11915	as_fn_error $? "Package requirements (xproto >= 7.0.17) were not met:
11916
11917$XPROTO_PKG_ERRORS
11918
11919Consider adjusting the PKG_CONFIG_PATH environment variable if you
11920installed software in a non-standard prefix.
11921
11922Alternatively, you may set the environment variables XPROTO_CFLAGS
11923and XPROTO_LIBS to avoid the need to call pkg-config.
11924See the pkg-config man page for more details." "$LINENO" 5
11925elif test $pkg_failed = untried; then
11926     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927printf "%s\n" "no" >&6; }
11928	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11929printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11930as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11931is in your PATH or set the PKG_CONFIG environment variable to the full
11932path to pkg-config.
11933
11934Alternatively, you may set the environment variables XPROTO_CFLAGS
11935and XPROTO_LIBS to avoid the need to call pkg-config.
11936See the pkg-config man page for more details.
11937
11938To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11939See 'config.log' for more details" "$LINENO" 5; }
11940else
11941	XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS
11942	XPROTO_LIBS=$pkg_cv_XPROTO_LIBS
11943        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11944printf "%s\n" "yes" >&6; }
11945
11946fi
11947
11948# Checks for non-standard functions and fallback to libbsd if we can
11949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950/* end confdefs.h.  */
11951
11952/* Override any GCC internal prototype to avoid an error.
11953   Use char because int might match the return type of a GCC
11954   builtin and then its argument prototype would still apply.
11955   The 'extern "C"' is for builds by C++ compilers;
11956   although this is not generally supported in C code supporting it here
11957   has little cost and some practical benefit (sr 110532).  */
11958#ifdef __cplusplus
11959extern "C"
11960#endif
11961char strlcpy (void);
11962int
11963main (void)
11964{
11965return strlcpy ();
11966  ;
11967  return 0;
11968}
11969_ACEOF
11970if ac_fn_c_try_link "$LINENO"
11971then :
11972  TRY_LIBBSD="no"
11973else case e in #(
11974  e) TRY_LIBBSD="yes" ;;
11975esac
11976fi
11977rm -f core conftest.err conftest.$ac_objext conftest.beam \
11978    conftest$ac_exeext conftest.$ac_ext
11979if test "x$TRY_LIBBSD" = "xyes"
11980then :
11981
11982pkg_failed=no
11983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBBSD" >&5
11984printf %s "checking for LIBBSD... " >&6; }
11985
11986if test -n "$LIBBSD_CFLAGS"; then
11987    pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS"
11988 elif test -n "$PKG_CONFIG"; then
11989    if test -n "$PKG_CONFIG" && \
11990    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5
11991  ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5
11992  ac_status=$?
11993  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11994  test $ac_status = 0; }; then
11995  pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null`
11996		      test "x$?" != "x0" && pkg_failed=yes
11997else
11998  pkg_failed=yes
11999fi
12000 else
12001    pkg_failed=untried
12002fi
12003if test -n "$LIBBSD_LIBS"; then
12004    pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS"
12005 elif test -n "$PKG_CONFIG"; then
12006    if test -n "$PKG_CONFIG" && \
12007    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5
12008  ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5
12009  ac_status=$?
12010  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12011  test $ac_status = 0; }; then
12012  pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null`
12013		      test "x$?" != "x0" && pkg_failed=yes
12014else
12015  pkg_failed=yes
12016fi
12017 else
12018    pkg_failed=untried
12019fi
12020
12021
12022
12023if test $pkg_failed = yes; then
12024   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025printf "%s\n" "no" >&6; }
12026
12027if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12028        _pkg_short_errors_supported=yes
12029else
12030        _pkg_short_errors_supported=no
12031fi
12032        if test $_pkg_short_errors_supported = yes; then
12033	        LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1`
12034        else
12035	        LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1`
12036        fi
12037	# Put the nasty error message in config.log where it belongs
12038	echo "$LIBBSD_PKG_ERRORS" >&5
12039
12040	:
12041elif test $pkg_failed = untried; then
12042     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043printf "%s\n" "no" >&6; }
12044	:
12045else
12046	LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS
12047	LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS
12048        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12049printf "%s\n" "yes" >&6; }
12050	CFLAGS="$CFLAGS $LIBBSD_CFLAGS" ; LIBS="$LIBS $LIBBSD_LIBS"
12051fi
12052fi
12053ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
12054if test "x$ac_cv_func_strlcat" = xyes
12055then :
12056  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
12057
12058fi
12059ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
12060if test "x$ac_cv_func_strlcpy" = xyes
12061then :
12062  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
12063
12064fi
12065
12066
12067ac_config_files="$ac_config_files Makefile"
12068
12069cat >confcache <<\_ACEOF
12070# This file is a shell script that caches the results of configure
12071# tests run on this system so they can be shared between configure
12072# scripts and configure runs, see configure's option --config-cache.
12073# It is not useful on other systems.  If it contains results you don't
12074# want to keep, you may remove or edit it.
12075#
12076# config.status only pays attention to the cache file if you give it
12077# the --recheck option to rerun configure.
12078#
12079# 'ac_cv_env_foo' variables (set or unset) will be overridden when
12080# loading this file, other *unset* 'ac_cv_foo' will be assigned the
12081# following values.
12082
12083_ACEOF
12084
12085# The following way of writing the cache mishandles newlines in values,
12086# but we know of no workaround that is simple, portable, and efficient.
12087# So, we kill variables containing newlines.
12088# Ultrix sh set writes to stderr and can't be redirected directly,
12089# and sets the high bit in the cache file unless we assign to the vars.
12090(
12091  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12092    eval ac_val=\$$ac_var
12093    case $ac_val in #(
12094    *${as_nl}*)
12095      case $ac_var in #(
12096      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12097printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12098      esac
12099      case $ac_var in #(
12100      _ | IFS | as_nl) ;; #(
12101      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12102      *) { eval $ac_var=; unset $ac_var;} ;;
12103      esac ;;
12104    esac
12105  done
12106
12107  (set) 2>&1 |
12108    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12109    *${as_nl}ac_space=\ *)
12110      # 'set' does not quote correctly, so add quotes: double-quote
12111      # substitution turns \\\\ into \\, and sed turns \\ into \.
12112      sed -n \
12113	"s/'/'\\\\''/g;
12114	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12115      ;; #(
12116    *)
12117      # 'set' quotes correctly as required by POSIX, so do not add quotes.
12118      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12119      ;;
12120    esac |
12121    sort
12122) |
12123  sed '
12124     /^ac_cv_env_/b end
12125     t clear
12126     :clear
12127     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12128     t end
12129     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12130     :end' >>confcache
12131if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12132  if test -w "$cache_file"; then
12133    if test "x$cache_file" != "x/dev/null"; then
12134      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12135printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12136      if test ! -f "$cache_file" || test -h "$cache_file"; then
12137	cat confcache >"$cache_file"
12138      else
12139        case $cache_file in #(
12140        */* | ?:*)
12141	  mv -f confcache "$cache_file"$$ &&
12142	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12143        *)
12144	  mv -f confcache "$cache_file" ;;
12145	esac
12146      fi
12147    fi
12148  else
12149    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12150printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12151  fi
12152fi
12153rm -f confcache
12154
12155test "x$prefix" = xNONE && prefix=$ac_default_prefix
12156# Let make expand exec_prefix.
12157test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12158
12159DEFS=-DHAVE_CONFIG_H
12160
12161ac_libobjs=
12162ac_ltlibobjs=
12163U=
12164for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12165  # 1. Remove the extension, and $U if already installed.
12166  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12167  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12168  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12169  #    will be set to the directory where LIBOBJS objects are built.
12170  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12171  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12172done
12173LIBOBJS=$ac_libobjs
12174
12175LTLIBOBJS=$ac_ltlibobjs
12176
12177
12178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12179printf %s "checking that generated files are newer than configure... " >&6; }
12180   if test -n "$am_sleep_pid"; then
12181     # Hide warnings about reused PIDs.
12182     wait $am_sleep_pid 2>/dev/null
12183   fi
12184   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12185printf "%s\n" "done" >&6; }
12186if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12187  as_fn_error $? "conditional \"AMDEP\" was never defined.
12188Usually this means the macro was only invoked conditionally." "$LINENO" 5
12189fi
12190if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12191  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12192Usually this means the macro was only invoked conditionally." "$LINENO" 5
12193fi
12194 if test -n "$EXEEXT"; then
12195  am__EXEEXT_TRUE=
12196  am__EXEEXT_FALSE='#'
12197else
12198  am__EXEEXT_TRUE='#'
12199  am__EXEEXT_FALSE=
12200fi
12201
12202# Check whether --enable-year2038 was given.
12203if test ${enable_year2038+y}
12204then :
12205  enableval=$enable_year2038;
12206fi
12207
12208
12209: "${CONFIG_STATUS=./config.status}"
12210ac_write_fail=0
12211ac_clean_files_save=$ac_clean_files
12212ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12214printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12215as_write_fail=0
12216cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12217#! $SHELL
12218# Generated by $as_me.
12219# Run this file to recreate the current configuration.
12220# Compiler output produced by configure, useful for debugging
12221# configure, is in config.log if it exists.
12222
12223debug=false
12224ac_cs_recheck=false
12225ac_cs_silent=false
12226
12227SHELL=\${CONFIG_SHELL-$SHELL}
12228export SHELL
12229_ASEOF
12230cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12231## -------------------- ##
12232## M4sh Initialization. ##
12233## -------------------- ##
12234
12235# Be more Bourne compatible
12236DUALCASE=1; export DUALCASE # for MKS sh
12237if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12238then :
12239  emulate sh
12240  NULLCMD=:
12241  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12242  # is contrary to our usage.  Disable this feature.
12243  alias -g '${1+"$@"}'='"$@"'
12244  setopt NO_GLOB_SUBST
12245else case e in #(
12246  e) case `(set -o) 2>/dev/null` in #(
12247  *posix*) :
12248    set -o posix ;; #(
12249  *) :
12250     ;;
12251esac ;;
12252esac
12253fi
12254
12255
12256
12257# Reset variables that may have inherited troublesome values from
12258# the environment.
12259
12260# IFS needs to be set, to space, tab, and newline, in precisely that order.
12261# (If _AS_PATH_WALK were called with IFS unset, it would have the
12262# side effect of setting IFS to empty, thus disabling word splitting.)
12263# Quoting is to prevent editors from complaining about space-tab.
12264as_nl='
12265'
12266export as_nl
12267IFS=" ""	$as_nl"
12268
12269PS1='$ '
12270PS2='> '
12271PS4='+ '
12272
12273# Ensure predictable behavior from utilities with locale-dependent output.
12274LC_ALL=C
12275export LC_ALL
12276LANGUAGE=C
12277export LANGUAGE
12278
12279# We cannot yet rely on "unset" to work, but we need these variables
12280# to be unset--not just set to an empty or harmless value--now, to
12281# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12282# also avoids known problems related to "unset" and subshell syntax
12283# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12284for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12285do eval test \${$as_var+y} \
12286  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12287done
12288
12289# Ensure that fds 0, 1, and 2 are open.
12290if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12291if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12292if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12293
12294# The user is always right.
12295if ${PATH_SEPARATOR+false} :; then
12296  PATH_SEPARATOR=:
12297  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12298    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12299      PATH_SEPARATOR=';'
12300  }
12301fi
12302
12303
12304# Find who we are.  Look in the path if we contain no directory separator.
12305as_myself=
12306case $0 in #((
12307  *[\\/]* ) as_myself=$0 ;;
12308  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12309for as_dir in $PATH
12310do
12311  IFS=$as_save_IFS
12312  case $as_dir in #(((
12313    '') as_dir=./ ;;
12314    */) ;;
12315    *) as_dir=$as_dir/ ;;
12316  esac
12317    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12318  done
12319IFS=$as_save_IFS
12320
12321     ;;
12322esac
12323# We did not find ourselves, most probably we were run as 'sh COMMAND'
12324# in which case we are not to be found in the path.
12325if test "x$as_myself" = x; then
12326  as_myself=$0
12327fi
12328if test ! -f "$as_myself"; then
12329  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12330  exit 1
12331fi
12332
12333
12334
12335# as_fn_error STATUS ERROR [LINENO LOG_FD]
12336# ----------------------------------------
12337# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12338# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12339# script with STATUS, using 1 if that was 0.
12340as_fn_error ()
12341{
12342  as_status=$1; test $as_status -eq 0 && as_status=1
12343  if test "$4"; then
12344    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12345    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12346  fi
12347  printf "%s\n" "$as_me: error: $2" >&2
12348  as_fn_exit $as_status
12349} # as_fn_error
12350
12351
12352# as_fn_set_status STATUS
12353# -----------------------
12354# Set $? to STATUS, without forking.
12355as_fn_set_status ()
12356{
12357  return $1
12358} # as_fn_set_status
12359
12360# as_fn_exit STATUS
12361# -----------------
12362# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12363as_fn_exit ()
12364{
12365  set +e
12366  as_fn_set_status $1
12367  exit $1
12368} # as_fn_exit
12369
12370# as_fn_unset VAR
12371# ---------------
12372# Portably unset VAR.
12373as_fn_unset ()
12374{
12375  { eval $1=; unset $1;}
12376}
12377as_unset=as_fn_unset
12378
12379# as_fn_append VAR VALUE
12380# ----------------------
12381# Append the text in VALUE to the end of the definition contained in VAR. Take
12382# advantage of any shell optimizations that allow amortized linear growth over
12383# repeated appends, instead of the typical quadratic growth present in naive
12384# implementations.
12385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12386then :
12387  eval 'as_fn_append ()
12388  {
12389    eval $1+=\$2
12390  }'
12391else case e in #(
12392  e) as_fn_append ()
12393  {
12394    eval $1=\$$1\$2
12395  } ;;
12396esac
12397fi # as_fn_append
12398
12399# as_fn_arith ARG...
12400# ------------------
12401# Perform arithmetic evaluation on the ARGs, and store the result in the
12402# global $as_val. Take advantage of shells that can avoid forks. The arguments
12403# must be portable across $(()) and expr.
12404if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12405then :
12406  eval 'as_fn_arith ()
12407  {
12408    as_val=$(( $* ))
12409  }'
12410else case e in #(
12411  e) as_fn_arith ()
12412  {
12413    as_val=`expr "$@" || test $? -eq 1`
12414  } ;;
12415esac
12416fi # as_fn_arith
12417
12418
12419if expr a : '\(a\)' >/dev/null 2>&1 &&
12420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12421  as_expr=expr
12422else
12423  as_expr=false
12424fi
12425
12426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12427  as_basename=basename
12428else
12429  as_basename=false
12430fi
12431
12432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12433  as_dirname=dirname
12434else
12435  as_dirname=false
12436fi
12437
12438as_me=`$as_basename -- "$0" ||
12439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12440	 X"$0" : 'X\(//\)$' \| \
12441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12442printf "%s\n" X/"$0" |
12443    sed '/^.*\/\([^/][^/]*\)\/*$/{
12444	    s//\1/
12445	    q
12446	  }
12447	  /^X\/\(\/\/\)$/{
12448	    s//\1/
12449	    q
12450	  }
12451	  /^X\/\(\/\).*/{
12452	    s//\1/
12453	    q
12454	  }
12455	  s/.*/./; q'`
12456
12457# Avoid depending upon Character Ranges.
12458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12461as_cr_digits='0123456789'
12462as_cr_alnum=$as_cr_Letters$as_cr_digits
12463
12464
12465# Determine whether it's possible to make 'echo' print without a newline.
12466# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12467# for compatibility with existing Makefiles.
12468ECHO_C= ECHO_N= ECHO_T=
12469case `echo -n x` in #(((((
12470-n*)
12471  case `echo 'xy\c'` in
12472  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12473  xy)  ECHO_C='\c';;
12474  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12475       ECHO_T='	';;
12476  esac;;
12477*)
12478  ECHO_N='-n';;
12479esac
12480
12481# For backward compatibility with old third-party macros, we provide
12482# the shell variables $as_echo and $as_echo_n.  New code should use
12483# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12484as_echo='printf %s\n'
12485as_echo_n='printf %s'
12486
12487rm -f conf$$ conf$$.exe conf$$.file
12488if test -d conf$$.dir; then
12489  rm -f conf$$.dir/conf$$.file
12490else
12491  rm -f conf$$.dir
12492  mkdir conf$$.dir 2>/dev/null
12493fi
12494if (echo >conf$$.file) 2>/dev/null; then
12495  if ln -s conf$$.file conf$$ 2>/dev/null; then
12496    as_ln_s='ln -s'
12497    # ... but there are two gotchas:
12498    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12499    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12500    # In both cases, we have to default to 'cp -pR'.
12501    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12502      as_ln_s='cp -pR'
12503  elif ln conf$$.file conf$$ 2>/dev/null; then
12504    as_ln_s=ln
12505  else
12506    as_ln_s='cp -pR'
12507  fi
12508else
12509  as_ln_s='cp -pR'
12510fi
12511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12512rmdir conf$$.dir 2>/dev/null
12513
12514
12515# as_fn_mkdir_p
12516# -------------
12517# Create "$as_dir" as a directory, including parents if necessary.
12518as_fn_mkdir_p ()
12519{
12520
12521  case $as_dir in #(
12522  -*) as_dir=./$as_dir;;
12523  esac
12524  test -d "$as_dir" || eval $as_mkdir_p || {
12525    as_dirs=
12526    while :; do
12527      case $as_dir in #(
12528      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12529      *) as_qdir=$as_dir;;
12530      esac
12531      as_dirs="'$as_qdir' $as_dirs"
12532      as_dir=`$as_dirname -- "$as_dir" ||
12533$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12534	 X"$as_dir" : 'X\(//\)[^/]' \| \
12535	 X"$as_dir" : 'X\(//\)$' \| \
12536	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12537printf "%s\n" X"$as_dir" |
12538    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12539	    s//\1/
12540	    q
12541	  }
12542	  /^X\(\/\/\)[^/].*/{
12543	    s//\1/
12544	    q
12545	  }
12546	  /^X\(\/\/\)$/{
12547	    s//\1/
12548	    q
12549	  }
12550	  /^X\(\/\).*/{
12551	    s//\1/
12552	    q
12553	  }
12554	  s/.*/./; q'`
12555      test -d "$as_dir" && break
12556    done
12557    test -z "$as_dirs" || eval "mkdir $as_dirs"
12558  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12559
12560
12561} # as_fn_mkdir_p
12562if mkdir -p . 2>/dev/null; then
12563  as_mkdir_p='mkdir -p "$as_dir"'
12564else
12565  test -d ./-p && rmdir ./-p
12566  as_mkdir_p=false
12567fi
12568
12569
12570# as_fn_executable_p FILE
12571# -----------------------
12572# Test if FILE is an executable regular file.
12573as_fn_executable_p ()
12574{
12575  test -f "$1" && test -x "$1"
12576} # as_fn_executable_p
12577as_test_x='test -x'
12578as_executable_p=as_fn_executable_p
12579
12580# Sed expression to map a string onto a valid CPP name.
12581as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12582as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12583
12584# Sed expression to map a string onto a valid variable name.
12585as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12586as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12587
12588
12589exec 6>&1
12590## ----------------------------------- ##
12591## Main body of $CONFIG_STATUS script. ##
12592## ----------------------------------- ##
12593_ASEOF
12594test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12595
12596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12597# Save the log message, to keep $0 and so on meaningful, and to
12598# report actual input values of CONFIG_FILES etc. instead of their
12599# values after options handling.
12600ac_log="
12601This file was extended by lndir $as_me 1.0.5, which was
12602generated by GNU Autoconf 2.72.  Invocation command line was
12603
12604  CONFIG_FILES    = $CONFIG_FILES
12605  CONFIG_HEADERS  = $CONFIG_HEADERS
12606  CONFIG_LINKS    = $CONFIG_LINKS
12607  CONFIG_COMMANDS = $CONFIG_COMMANDS
12608  $ $0 $@
12609
12610on `(hostname || uname -n) 2>/dev/null | sed 1q`
12611"
12612
12613_ACEOF
12614
12615case $ac_config_files in *"
12616"*) set x $ac_config_files; shift; ac_config_files=$*;;
12617esac
12618
12619case $ac_config_headers in *"
12620"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12621esac
12622
12623
12624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12625# Files that config.status was made for.
12626config_files="$ac_config_files"
12627config_headers="$ac_config_headers"
12628config_commands="$ac_config_commands"
12629
12630_ACEOF
12631
12632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12633ac_cs_usage="\
12634'$as_me' instantiates files and other configuration actions
12635from templates according to the current configuration.  Unless the files
12636and actions are specified as TAGs, all are instantiated by default.
12637
12638Usage: $0 [OPTION]... [TAG]...
12639
12640  -h, --help       print this help, then exit
12641  -V, --version    print version number and configuration settings, then exit
12642      --config     print configuration, then exit
12643  -q, --quiet, --silent
12644                   do not print progress messages
12645  -d, --debug      don't remove temporary files
12646      --recheck    update $as_me by reconfiguring in the same conditions
12647      --file=FILE[:TEMPLATE]
12648                   instantiate the configuration file FILE
12649      --header=FILE[:TEMPLATE]
12650                   instantiate the configuration header FILE
12651
12652Configuration files:
12653$config_files
12654
12655Configuration headers:
12656$config_headers
12657
12658Configuration commands:
12659$config_commands
12660
12661Report bugs to <https://gitlab.freedesktop.org/xorg/util/lndir/-/issues>."
12662
12663_ACEOF
12664ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12665ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12667ac_cs_config='$ac_cs_config_escaped'
12668ac_cs_version="\\
12669lndir config.status 1.0.5
12670configured by $0, generated by GNU Autoconf 2.72,
12671  with options \\"\$ac_cs_config\\"
12672
12673Copyright (C) 2023 Free Software Foundation, Inc.
12674This config.status script is free software; the Free Software Foundation
12675gives unlimited permission to copy, distribute and modify it."
12676
12677ac_pwd='$ac_pwd'
12678srcdir='$srcdir'
12679INSTALL='$INSTALL'
12680MKDIR_P='$MKDIR_P'
12681AWK='$AWK'
12682test -n "\$AWK" || AWK=awk
12683_ACEOF
12684
12685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12686# The default lists apply if the user does not specify any file.
12687ac_need_defaults=:
12688while test $# != 0
12689do
12690  case $1 in
12691  --*=?*)
12692    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12693    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12694    ac_shift=:
12695    ;;
12696  --*=)
12697    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12698    ac_optarg=
12699    ac_shift=:
12700    ;;
12701  *)
12702    ac_option=$1
12703    ac_optarg=$2
12704    ac_shift=shift
12705    ;;
12706  esac
12707
12708  case $ac_option in
12709  # Handling of the options.
12710  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12711    ac_cs_recheck=: ;;
12712  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12713    printf "%s\n" "$ac_cs_version"; exit ;;
12714  --config | --confi | --conf | --con | --co | --c )
12715    printf "%s\n" "$ac_cs_config"; exit ;;
12716  --debug | --debu | --deb | --de | --d | -d )
12717    debug=: ;;
12718  --file | --fil | --fi | --f )
12719    $ac_shift
12720    case $ac_optarg in
12721    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12722    '') as_fn_error $? "missing file argument" ;;
12723    esac
12724    as_fn_append CONFIG_FILES " '$ac_optarg'"
12725    ac_need_defaults=false;;
12726  --header | --heade | --head | --hea )
12727    $ac_shift
12728    case $ac_optarg in
12729    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12730    esac
12731    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12732    ac_need_defaults=false;;
12733  --he | --h)
12734    # Conflict between --help and --header
12735    as_fn_error $? "ambiguous option: '$1'
12736Try '$0 --help' for more information.";;
12737  --help | --hel | -h )
12738    printf "%s\n" "$ac_cs_usage"; exit ;;
12739  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12740  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12741    ac_cs_silent=: ;;
12742
12743  # This is an error.
12744  -*) as_fn_error $? "unrecognized option: '$1'
12745Try '$0 --help' for more information." ;;
12746
12747  *) as_fn_append ac_config_targets " $1"
12748     ac_need_defaults=false ;;
12749
12750  esac
12751  shift
12752done
12753
12754ac_configure_extra_args=
12755
12756if $ac_cs_silent; then
12757  exec 6>/dev/null
12758  ac_configure_extra_args="$ac_configure_extra_args --silent"
12759fi
12760
12761_ACEOF
12762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12763if \$ac_cs_recheck; then
12764  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12765  shift
12766  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12767  CONFIG_SHELL='$SHELL'
12768  export CONFIG_SHELL
12769  exec "\$@"
12770fi
12771
12772_ACEOF
12773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12774exec 5>>config.log
12775{
12776  echo
12777  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12778## Running $as_me. ##
12779_ASBOX
12780  printf "%s\n" "$ac_log"
12781} >&5
12782
12783_ACEOF
12784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12785#
12786# INIT-COMMANDS
12787#
12788AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12789
12790_ACEOF
12791
12792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12793
12794# Handling of arguments.
12795for ac_config_target in $ac_config_targets
12796do
12797  case $ac_config_target in
12798    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12799    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12800    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12801
12802  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12803  esac
12804done
12805
12806
12807# If the user did not use the arguments to specify the items to instantiate,
12808# then the envvar interface is used.  Set only those that are not.
12809# We use the long form for the default assignment because of an extremely
12810# bizarre bug on SunOS 4.1.3.
12811if $ac_need_defaults; then
12812  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12813  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12814  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12815fi
12816
12817# Have a temporary directory for convenience.  Make it in the build tree
12818# simply because there is no reason against having it here, and in addition,
12819# creating and moving files from /tmp can sometimes cause problems.
12820# Hook for its removal unless debugging.
12821# Note that there is a small window in which the directory will not be cleaned:
12822# after its creation but before its name has been assigned to '$tmp'.
12823$debug ||
12824{
12825  tmp= ac_tmp=
12826  trap 'exit_status=$?
12827  : "${ac_tmp:=$tmp}"
12828  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12829' 0
12830  trap 'as_fn_exit 1' 1 2 13 15
12831}
12832# Create a (secure) tmp directory for tmp files.
12833
12834{
12835  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12836  test -d "$tmp"
12837}  ||
12838{
12839  tmp=./conf$$-$RANDOM
12840  (umask 077 && mkdir "$tmp")
12841} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12842ac_tmp=$tmp
12843
12844# Set up the scripts for CONFIG_FILES section.
12845# No need to generate them if there are no CONFIG_FILES.
12846# This happens for instance with './config.status config.h'.
12847if test -n "$CONFIG_FILES"; then
12848
12849
12850ac_cr=`echo X | tr X '\015'`
12851# On cygwin, bash can eat \r inside `` if the user requested igncr.
12852# But we know of no other shell where ac_cr would be empty at this
12853# point, so we can use a bashism as a fallback.
12854if test "x$ac_cr" = x; then
12855  eval ac_cr=\$\'\\r\'
12856fi
12857ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12858if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12859  ac_cs_awk_cr='\\r'
12860else
12861  ac_cs_awk_cr=$ac_cr
12862fi
12863
12864echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12865_ACEOF
12866
12867
12868{
12869  echo "cat >conf$$subs.awk <<_ACEOF" &&
12870  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12871  echo "_ACEOF"
12872} >conf$$subs.sh ||
12873  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12874ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12875ac_delim='%!_!# '
12876for ac_last_try in false false false false false :; do
12877  . ./conf$$subs.sh ||
12878    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12879
12880  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12881  if test $ac_delim_n = $ac_delim_num; then
12882    break
12883  elif $ac_last_try; then
12884    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12885  else
12886    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12887  fi
12888done
12889rm -f conf$$subs.sh
12890
12891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12892cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12893_ACEOF
12894sed -n '
12895h
12896s/^/S["/; s/!.*/"]=/
12897p
12898g
12899s/^[^!]*!//
12900:repl
12901t repl
12902s/'"$ac_delim"'$//
12903t delim
12904:nl
12905h
12906s/\(.\{148\}\)..*/\1/
12907t more1
12908s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12909p
12910n
12911b repl
12912:more1
12913s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12914p
12915g
12916s/.\{148\}//
12917t nl
12918:delim
12919h
12920s/\(.\{148\}\)..*/\1/
12921t more2
12922s/["\\]/\\&/g; s/^/"/; s/$/"/
12923p
12924b
12925:more2
12926s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12927p
12928g
12929s/.\{148\}//
12930t delim
12931' <conf$$subs.awk | sed '
12932/^[^""]/{
12933  N
12934  s/\n//
12935}
12936' >>$CONFIG_STATUS || ac_write_fail=1
12937rm -f conf$$subs.awk
12938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12939_ACAWK
12940cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12941  for (key in S) S_is_set[key] = 1
12942  FS = ""
12943
12944}
12945{
12946  line = $ 0
12947  nfields = split(line, field, "@")
12948  substed = 0
12949  len = length(field[1])
12950  for (i = 2; i < nfields; i++) {
12951    key = field[i]
12952    keylen = length(key)
12953    if (S_is_set[key]) {
12954      value = S[key]
12955      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12956      len += length(value) + length(field[++i])
12957      substed = 1
12958    } else
12959      len += 1 + keylen
12960  }
12961
12962  print line
12963}
12964
12965_ACAWK
12966_ACEOF
12967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12968if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12969  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12970else
12971  cat
12972fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12973  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12974_ACEOF
12975
12976# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12977# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12978# trailing colons and then remove the whole line if VPATH becomes empty
12979# (actually we leave an empty line to preserve line numbers).
12980if test "x$srcdir" = x.; then
12981  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12982h
12983s///
12984s/^/:/
12985s/[	 ]*$/:/
12986s/:\$(srcdir):/:/g
12987s/:\${srcdir}:/:/g
12988s/:@srcdir@:/:/g
12989s/^:*//
12990s/:*$//
12991x
12992s/\(=[	 ]*\).*/\1/
12993G
12994s/\n//
12995s/^[^=]*=[	 ]*$//
12996}'
12997fi
12998
12999cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13000fi # test -n "$CONFIG_FILES"
13001
13002# Set up the scripts for CONFIG_HEADERS section.
13003# No need to generate them if there are no CONFIG_HEADERS.
13004# This happens for instance with './config.status Makefile'.
13005if test -n "$CONFIG_HEADERS"; then
13006cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13007BEGIN {
13008_ACEOF
13009
13010# Transform confdefs.h into an awk script 'defines.awk', embedded as
13011# here-document in config.status, that substitutes the proper values into
13012# config.h.in to produce config.h.
13013
13014# Create a delimiter string that does not exist in confdefs.h, to ease
13015# handling of long lines.
13016ac_delim='%!_!# '
13017for ac_last_try in false false :; do
13018  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13019  if test -z "$ac_tt"; then
13020    break
13021  elif $ac_last_try; then
13022    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13023  else
13024    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13025  fi
13026done
13027
13028# For the awk script, D is an array of macro values keyed by name,
13029# likewise P contains macro parameters if any.  Preserve backslash
13030# newline sequences.
13031
13032ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13033sed -n '
13034s/.\{148\}/&'"$ac_delim"'/g
13035t rset
13036:rset
13037s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13038t def
13039d
13040:def
13041s/\\$//
13042t bsnl
13043s/["\\]/\\&/g
13044s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13045D["\1"]=" \3"/p
13046s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13047d
13048:bsnl
13049s/["\\]/\\&/g
13050s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13051D["\1"]=" \3\\\\\\n"\\/p
13052t cont
13053s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13054t cont
13055d
13056:cont
13057n
13058s/.\{148\}/&'"$ac_delim"'/g
13059t clear
13060:clear
13061s/\\$//
13062t bsnlc
13063s/["\\]/\\&/g; s/^/"/; s/$/"/p
13064d
13065:bsnlc
13066s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13067b cont
13068' <confdefs.h | sed '
13069s/'"$ac_delim"'/"\\\
13070"/g' >>$CONFIG_STATUS || ac_write_fail=1
13071
13072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13073  for (key in D) D_is_set[key] = 1
13074  FS = ""
13075}
13076/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13077  line = \$ 0
13078  split(line, arg, " ")
13079  if (arg[1] == "#") {
13080    defundef = arg[2]
13081    mac1 = arg[3]
13082  } else {
13083    defundef = substr(arg[1], 2)
13084    mac1 = arg[2]
13085  }
13086  split(mac1, mac2, "(") #)
13087  macro = mac2[1]
13088  prefix = substr(line, 1, index(line, defundef) - 1)
13089  if (D_is_set[macro]) {
13090    # Preserve the white space surrounding the "#".
13091    print prefix "define", macro P[macro] D[macro]
13092    next
13093  } else {
13094    # Replace #undef with comments.  This is necessary, for example,
13095    # in the case of _POSIX_SOURCE, which is predefined and required
13096    # on some systems where configure will not decide to define it.
13097    if (defundef == "undef") {
13098      print "/*", prefix defundef, macro, "*/"
13099      next
13100    }
13101  }
13102}
13103{ print }
13104_ACAWK
13105_ACEOF
13106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13107  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13108fi # test -n "$CONFIG_HEADERS"
13109
13110
13111eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13112shift
13113for ac_tag
13114do
13115  case $ac_tag in
13116  :[FHLC]) ac_mode=$ac_tag; continue;;
13117  esac
13118  case $ac_mode$ac_tag in
13119  :[FHL]*:*);;
13120  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13121  :[FH]-) ac_tag=-:-;;
13122  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13123  esac
13124  ac_save_IFS=$IFS
13125  IFS=:
13126  set x $ac_tag
13127  IFS=$ac_save_IFS
13128  shift
13129  ac_file=$1
13130  shift
13131
13132  case $ac_mode in
13133  :L) ac_source=$1;;
13134  :[FH])
13135    ac_file_inputs=
13136    for ac_f
13137    do
13138      case $ac_f in
13139      -) ac_f="$ac_tmp/stdin";;
13140      *) # Look for the file first in the build tree, then in the source tree
13141	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13142	 # because $ac_f cannot contain ':'.
13143	 test -f "$ac_f" ||
13144	   case $ac_f in
13145	   [\\/$]*) false;;
13146	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13147	   esac ||
13148	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13149      esac
13150      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13151      as_fn_append ac_file_inputs " '$ac_f'"
13152    done
13153
13154    # Let's still pretend it is 'configure' which instantiates (i.e., don't
13155    # use $as_me), people would be surprised to read:
13156    #    /* config.h.  Generated by config.status.  */
13157    configure_input='Generated from '`
13158	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13159	`' by configure.'
13160    if test x"$ac_file" != x-; then
13161      configure_input="$ac_file.  $configure_input"
13162      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13163printf "%s\n" "$as_me: creating $ac_file" >&6;}
13164    fi
13165    # Neutralize special characters interpreted by sed in replacement strings.
13166    case $configure_input in #(
13167    *\&* | *\|* | *\\* )
13168       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13169       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13170    *) ac_sed_conf_input=$configure_input;;
13171    esac
13172
13173    case $ac_tag in
13174    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13175      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13176    esac
13177    ;;
13178  esac
13179
13180  ac_dir=`$as_dirname -- "$ac_file" ||
13181$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13182	 X"$ac_file" : 'X\(//\)[^/]' \| \
13183	 X"$ac_file" : 'X\(//\)$' \| \
13184	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13185printf "%s\n" X"$ac_file" |
13186    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13187	    s//\1/
13188	    q
13189	  }
13190	  /^X\(\/\/\)[^/].*/{
13191	    s//\1/
13192	    q
13193	  }
13194	  /^X\(\/\/\)$/{
13195	    s//\1/
13196	    q
13197	  }
13198	  /^X\(\/\).*/{
13199	    s//\1/
13200	    q
13201	  }
13202	  s/.*/./; q'`
13203  as_dir="$ac_dir"; as_fn_mkdir_p
13204  ac_builddir=.
13205
13206case "$ac_dir" in
13207.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13208*)
13209  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13210  # A ".." for each directory in $ac_dir_suffix.
13211  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13212  case $ac_top_builddir_sub in
13213  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13214  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13215  esac ;;
13216esac
13217ac_abs_top_builddir=$ac_pwd
13218ac_abs_builddir=$ac_pwd$ac_dir_suffix
13219# for backward compatibility:
13220ac_top_builddir=$ac_top_build_prefix
13221
13222case $srcdir in
13223  .)  # We are building in place.
13224    ac_srcdir=.
13225    ac_top_srcdir=$ac_top_builddir_sub
13226    ac_abs_top_srcdir=$ac_pwd ;;
13227  [\\/]* | ?:[\\/]* )  # Absolute name.
13228    ac_srcdir=$srcdir$ac_dir_suffix;
13229    ac_top_srcdir=$srcdir
13230    ac_abs_top_srcdir=$srcdir ;;
13231  *) # Relative name.
13232    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13233    ac_top_srcdir=$ac_top_build_prefix$srcdir
13234    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13235esac
13236ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13237
13238
13239  case $ac_mode in
13240  :F)
13241  #
13242  # CONFIG_FILE
13243  #
13244
13245  case $INSTALL in
13246  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13247  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13248  esac
13249  ac_MKDIR_P=$MKDIR_P
13250  case $MKDIR_P in
13251  [\\/$]* | ?:[\\/]* ) ;;
13252  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13253  esac
13254_ACEOF
13255
13256cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13257# If the template does not know about datarootdir, expand it.
13258# FIXME: This hack should be removed a few years after 2.60.
13259ac_datarootdir_hack=; ac_datarootdir_seen=
13260ac_sed_dataroot='
13261/datarootdir/ {
13262  p
13263  q
13264}
13265/@datadir@/p
13266/@docdir@/p
13267/@infodir@/p
13268/@localedir@/p
13269/@mandir@/p'
13270case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13271*datarootdir*) ac_datarootdir_seen=yes;;
13272*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13273  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13274printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13275_ACEOF
13276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13277  ac_datarootdir_hack='
13278  s&@datadir@&$datadir&g
13279  s&@docdir@&$docdir&g
13280  s&@infodir@&$infodir&g
13281  s&@localedir@&$localedir&g
13282  s&@mandir@&$mandir&g
13283  s&\\\${datarootdir}&$datarootdir&g' ;;
13284esac
13285_ACEOF
13286
13287# Neutralize VPATH when '$srcdir' = '.'.
13288# Shell code in configure.ac might set extrasub.
13289# FIXME: do we really want to maintain this feature?
13290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13291ac_sed_extra="$ac_vpsub
13292$extrasub
13293_ACEOF
13294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13295:t
13296/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13297s|@configure_input@|$ac_sed_conf_input|;t t
13298s&@top_builddir@&$ac_top_builddir_sub&;t t
13299s&@top_build_prefix@&$ac_top_build_prefix&;t t
13300s&@srcdir@&$ac_srcdir&;t t
13301s&@abs_srcdir@&$ac_abs_srcdir&;t t
13302s&@top_srcdir@&$ac_top_srcdir&;t t
13303s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13304s&@builddir@&$ac_builddir&;t t
13305s&@abs_builddir@&$ac_abs_builddir&;t t
13306s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13307s&@INSTALL@&$ac_INSTALL&;t t
13308s&@MKDIR_P@&$ac_MKDIR_P&;t t
13309$ac_datarootdir_hack
13310"
13311eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13312  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13313
13314test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13315  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13316  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13317      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13319which seems to be undefined.  Please make sure it is defined" >&5
13320printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13321which seems to be undefined.  Please make sure it is defined" >&2;}
13322
13323  rm -f "$ac_tmp/stdin"
13324  case $ac_file in
13325  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13326  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13327  esac \
13328  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13329 ;;
13330  :H)
13331  #
13332  # CONFIG_HEADER
13333  #
13334  if test x"$ac_file" != x-; then
13335    {
13336      printf "%s\n" "/* $configure_input  */" >&1 \
13337      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13338    } >"$ac_tmp/config.h" \
13339      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13340    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13341      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13342printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13343    else
13344      rm -f "$ac_file"
13345      mv "$ac_tmp/config.h" "$ac_file" \
13346	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13347    fi
13348  else
13349    printf "%s\n" "/* $configure_input  */" >&1 \
13350      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13351      || as_fn_error $? "could not create -" "$LINENO" 5
13352  fi
13353# Compute "$ac_file"'s index in $config_headers.
13354_am_arg="$ac_file"
13355_am_stamp_count=1
13356for _am_header in $config_headers :; do
13357  case $_am_header in
13358    $_am_arg | $_am_arg:* )
13359      break ;;
13360    * )
13361      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13362  esac
13363done
13364echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13365$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13366	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13367	 X"$_am_arg" : 'X\(//\)$' \| \
13368	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13369printf "%s\n" X"$_am_arg" |
13370    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13371	    s//\1/
13372	    q
13373	  }
13374	  /^X\(\/\/\)[^/].*/{
13375	    s//\1/
13376	    q
13377	  }
13378	  /^X\(\/\/\)$/{
13379	    s//\1/
13380	    q
13381	  }
13382	  /^X\(\/\).*/{
13383	    s//\1/
13384	    q
13385	  }
13386	  s/.*/./; q'`/stamp-h$_am_stamp_count
13387 ;;
13388
13389  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13390printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13391 ;;
13392  esac
13393
13394
13395  case $ac_file$ac_mode in
13396    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13397  # Older Autoconf quotes --file arguments for eval, but not when files
13398  # are listed without --file.  Let's play safe and only enable the eval
13399  # if we detect the quoting.
13400  # TODO: see whether this extra hack can be removed once we start
13401  # requiring Autoconf 2.70 or later.
13402  case $CONFIG_FILES in #(
13403  *\'*) :
13404    eval set x "$CONFIG_FILES" ;; #(
13405  *) :
13406    set x $CONFIG_FILES ;; #(
13407  *) :
13408     ;;
13409esac
13410  shift
13411  # Used to flag and report bootstrapping failures.
13412  am_rc=0
13413  for am_mf
13414  do
13415    # Strip MF so we end up with the name of the file.
13416    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13417    # Check whether this is an Automake generated Makefile which includes
13418    # dependency-tracking related rules and includes.
13419    # Grep'ing the whole file directly is not great: AIX grep has a line
13420    # limit of 2048, but all sed's we know have understand at least 4000.
13421    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13422      || continue
13423    am_dirpart=`$as_dirname -- "$am_mf" ||
13424$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13425	 X"$am_mf" : 'X\(//\)[^/]' \| \
13426	 X"$am_mf" : 'X\(//\)$' \| \
13427	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13428printf "%s\n" X"$am_mf" |
13429    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13430	    s//\1/
13431	    q
13432	  }
13433	  /^X\(\/\/\)[^/].*/{
13434	    s//\1/
13435	    q
13436	  }
13437	  /^X\(\/\/\)$/{
13438	    s//\1/
13439	    q
13440	  }
13441	  /^X\(\/\).*/{
13442	    s//\1/
13443	    q
13444	  }
13445	  s/.*/./; q'`
13446    am_filepart=`$as_basename -- "$am_mf" ||
13447$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13448	 X"$am_mf" : 'X\(//\)$' \| \
13449	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13450printf "%s\n" X/"$am_mf" |
13451    sed '/^.*\/\([^/][^/]*\)\/*$/{
13452	    s//\1/
13453	    q
13454	  }
13455	  /^X\/\(\/\/\)$/{
13456	    s//\1/
13457	    q
13458	  }
13459	  /^X\/\(\/\).*/{
13460	    s//\1/
13461	    q
13462	  }
13463	  s/.*/./; q'`
13464    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13465      && sed -e '/# am--include-marker/d' "$am_filepart" \
13466        | $MAKE -f - am--depfiles" >&5
13467   (cd "$am_dirpart" \
13468      && sed -e '/# am--include-marker/d' "$am_filepart" \
13469        | $MAKE -f - am--depfiles) >&5 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); } || am_rc=$?
13473  done
13474  if test $am_rc -ne 0; then
13475    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13476printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13477as_fn_error $? "Something went wrong bootstrapping makefile fragments
13478    for automatic dependency tracking.  If GNU make was not used, consider
13479    re-running the configure script with MAKE=\"gmake\" (or whatever is
13480    necessary).  You can also try re-running configure with the
13481    '--disable-dependency-tracking' option to at least be able to build
13482    the package (albeit without support for automatic dependency tracking).
13483See 'config.log' for more details" "$LINENO" 5; }
13484  fi
13485  { am_dirpart=; unset am_dirpart;}
13486  { am_filepart=; unset am_filepart;}
13487  { am_mf=; unset am_mf;}
13488  { am_rc=; unset am_rc;}
13489  rm -f conftest-deps.mk
13490}
13491 ;;
13492
13493  esac
13494done # for ac_tag
13495
13496
13497as_fn_exit 0
13498_ACEOF
13499ac_clean_files=$ac_clean_files_save
13500
13501test $ac_write_fail = 0 ||
13502  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13503
13504
13505# configure is writing to config.log, and then calls config.status.
13506# config.status does its own redirection, appending to config.log.
13507# Unfortunately, on DOS this fails, as config.log is still kept open
13508# by configure, so config.status won't be able to write to it; its
13509# output is simply discarded.  So we exec the FD to /dev/null,
13510# effectively closing config.log, so it can be properly (re)opened and
13511# appended to by config.status.  When coming back to configure, we
13512# need to make the FD available again.
13513if test "$no_create" != yes; then
13514  ac_cs_success=:
13515  ac_config_status_args=
13516  test "$silent" = yes &&
13517    ac_config_status_args="$ac_config_status_args --quiet"
13518  exec 5>/dev/null
13519  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13520  exec 5>>config.log
13521  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13522  # would make configure fail if this is the last instruction.
13523  $ac_cs_success || as_fn_exit 1
13524fi
13525if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13527printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13528fi
13529
13530
13531