configure revision e32e2dab
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for oclock 1.0.6.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/oclock/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else case e in #(
29  e) case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as 'sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed 'exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145  emulate sh
146  NULLCMD=:
147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148  # is contrary to our usage.  Disable this feature.
149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150  setopt NO_GLOB_SUBST
151else case e in #(
152  e) case \`(set -o) 2>/dev/null\` in #(
153  *posix*) :
154    set -o posix ;; #(
155  *) :
156     ;;
157esac ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else case e in #(
176  e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187test \$(( 1 + 1 )) = 2 || exit 1"
188  if (eval "$as_required") 2>/dev/null
189then :
190  as_have_required=yes
191else case e in #(
192  e) as_have_required=no ;;
193esac
194fi
195  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196then :
197
198else case e in #(
199  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200as_found=false
201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202do
203  IFS=$as_save_IFS
204  case $as_dir in #(((
205    '') as_dir=./ ;;
206    */) ;;
207    *) as_dir=$as_dir/ ;;
208  esac
209  as_found=:
210  case $as_dir in #(
211	 /*)
212	   for as_base in sh bash ksh sh5; do
213	     # Try only shells that exist, to save several forks.
214	     as_shell=$as_dir$as_base
215	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217then :
218  CONFIG_SHELL=$as_shell as_have_required=yes
219		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220then :
221  break 2
222fi
223fi
224	   done;;
225       esac
226  as_found=false
227done
228IFS=$as_save_IFS
229if $as_found
230then :
231
232else case e in #(
233  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235then :
236  CONFIG_SHELL=$SHELL as_have_required=yes
237fi ;;
238esac
239fi
240
241
242      if test "x$CONFIG_SHELL" != x
243then :
244  export CONFIG_SHELL
245             # We cannot yet assume a decent shell, so we have to provide a
246# neutralization value for shells without unset; and this also
247# works around shells that cannot unset nonexistent variables.
248# Preserve -v and -x to the replacement shell.
249BASH_ENV=/dev/null
250ENV=/dev/null
251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252case $- in # ((((
253  *v*x* | *x*v* ) as_opts=-vx ;;
254  *v* ) as_opts=-v ;;
255  *x* ) as_opts=-x ;;
256  * ) as_opts= ;;
257esac
258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259# Admittedly, this is quite paranoid, since all the known shells bail
260# out after a failed 'exec'.
261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262exit 255
263fi
264
265    if test x$as_have_required = xno
266then :
267  printf "%s\n" "$0: This script requires a shell more modern than all"
268  printf "%s\n" "$0: the shells that I found on your system."
269  if test ${ZSH_VERSION+y} ; then
270    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272  else
273    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
274$0: https://gitlab.freedesktop.org/xorg/app/oclock/-/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='oclock'
607PACKAGE_TARNAME='oclock'
608PACKAGE_VERSION='1.0.6'
609PACKAGE_STRING='oclock 1.0.6'
610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/oclock/-/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=
646ac_subst_vars='am__EXEEXT_FALSE
647am__EXEEXT_TRUE
648LTLIBOBJS
649LIBOBJS
650appdefaultdir
651OCLOCK_LIBS
652OCLOCK_CFLAGS
653MAN_SUBSTS
654XORG_MAN_PAGE
655ADMIN_MAN_DIR
656DRIVER_MAN_DIR
657MISC_MAN_DIR
658FILE_MAN_DIR
659LIB_MAN_DIR
660APP_MAN_DIR
661ADMIN_MAN_SUFFIX
662DRIVER_MAN_SUFFIX
663MISC_MAN_SUFFIX
664FILE_MAN_SUFFIX
665LIB_MAN_SUFFIX
666APP_MAN_SUFFIX
667SED
668host_os
669host_vendor
670host_cpu
671host
672build_os
673build_vendor
674build_cpu
675build
676INSTALL_CMD
677PKG_CONFIG_LIBDIR
678PKG_CONFIG_PATH
679PKG_CONFIG
680CHANGELOG_CMD
681STRICT_CFLAGS
682CWARNFLAGS
683BASE_CFLAGS
684am__fastdepCC_FALSE
685am__fastdepCC_TRUE
686CCDEPMODE
687am__nodep
688AMDEPBACKSLASH
689AMDEP_FALSE
690AMDEP_TRUE
691am__include
692DEPDIR
693OBJEXT
694EXEEXT
695ac_ct_CC
696CPPFLAGS
697LDFLAGS
698CFLAGS
699CC
700am__xargs_n
701am__rm_f_notfound
702AM_BACKSLASH
703AM_DEFAULT_VERBOSITY
704AM_DEFAULT_V
705AM_V
706CSCOPE
707ETAGS
708CTAGS
709am__untar
710am__tar
711AMTAR
712am__leading_dot
713SET_MAKE
714AWK
715mkdir_p
716MKDIR_P
717INSTALL_STRIP_PROGRAM
718STRIP
719install_sh
720MAKEINFO
721AUTOHEADER
722AUTOMAKE
723AUTOCONF
724ACLOCAL
725VERSION
726PACKAGE
727CYGPATH_W
728am__isrc
729INSTALL_DATA
730INSTALL_SCRIPT
731INSTALL_PROGRAM
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_silent_rules
776enable_dependency_tracking
777enable_selective_werror
778enable_strict_compilation
779with_xkb
780with_appdefaultdir
781'
782      ac_precious_vars='build_alias
783host_alias
784target_alias
785CC
786CFLAGS
787LDFLAGS
788LIBS
789CPPFLAGS
790PKG_CONFIG
791PKG_CONFIG_PATH
792PKG_CONFIG_LIBDIR
793OCLOCK_CFLAGS
794OCLOCK_LIBS'
795
796
797# Initialize some variables set by options.
798ac_init_help=
799ac_init_version=false
800ac_unrecognized_opts=
801ac_unrecognized_sep=
802# The variables have the same names as the options, with
803# dashes changed to underlines.
804cache_file=/dev/null
805exec_prefix=NONE
806no_create=
807no_recursion=
808prefix=NONE
809program_prefix=NONE
810program_suffix=NONE
811program_transform_name=s,x,x,
812silent=
813site=
814srcdir=
815verbose=
816x_includes=NONE
817x_libraries=NONE
818
819# Installation directory options.
820# These are left unexpanded so users can "make install exec_prefix=/foo"
821# and all the variables that are supposed to be based on exec_prefix
822# by default will actually change.
823# Use braces instead of parens because sh, perl, etc. also accept them.
824# (The list follows the same order as the GNU Coding Standards.)
825bindir='${exec_prefix}/bin'
826sbindir='${exec_prefix}/sbin'
827libexecdir='${exec_prefix}/libexec'
828datarootdir='${prefix}/share'
829datadir='${datarootdir}'
830sysconfdir='${prefix}/etc'
831sharedstatedir='${prefix}/com'
832localstatedir='${prefix}/var'
833runstatedir='${localstatedir}/run'
834includedir='${prefix}/include'
835oldincludedir='/usr/include'
836docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837infodir='${datarootdir}/info'
838htmldir='${docdir}'
839dvidir='${docdir}'
840pdfdir='${docdir}'
841psdir='${docdir}'
842libdir='${exec_prefix}/lib'
843localedir='${datarootdir}/locale'
844mandir='${datarootdir}/man'
845
846ac_prev=
847ac_dashdash=
848for ac_option
849do
850  # If the previous option needs an argument, assign it.
851  if test -n "$ac_prev"; then
852    eval $ac_prev=\$ac_option
853    ac_prev=
854    continue
855  fi
856
857  case $ac_option in
858  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859  *=)   ac_optarg= ;;
860  *)    ac_optarg=yes ;;
861  esac
862
863  case $ac_dashdash$ac_option in
864  --)
865    ac_dashdash=yes ;;
866
867  -bindir | --bindir | --bindi | --bind | --bin | --bi)
868    ac_prev=bindir ;;
869  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870    bindir=$ac_optarg ;;
871
872  -build | --build | --buil | --bui | --bu)
873    ac_prev=build_alias ;;
874  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875    build_alias=$ac_optarg ;;
876
877  -cache-file | --cache-file | --cache-fil | --cache-fi \
878  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879    ac_prev=cache_file ;;
880  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882    cache_file=$ac_optarg ;;
883
884  --config-cache | -C)
885    cache_file=config.cache ;;
886
887  -datadir | --datadir | --datadi | --datad)
888    ac_prev=datadir ;;
889  -datadir=* | --datadir=* | --datadi=* | --datad=*)
890    datadir=$ac_optarg ;;
891
892  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893  | --dataroo | --dataro | --datar)
894    ac_prev=datarootdir ;;
895  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897    datarootdir=$ac_optarg ;;
898
899  -disable-* | --disable-*)
900    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901    # Reject names that are not valid shell variable names.
902    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903      as_fn_error $? "invalid feature name: '$ac_useropt'"
904    ac_useropt_orig=$ac_useropt
905    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
906    case $ac_user_opts in
907      *"
908"enable_$ac_useropt"
909"*) ;;
910      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911	 ac_unrecognized_sep=', ';;
912    esac
913    eval enable_$ac_useropt=no ;;
914
915  -docdir | --docdir | --docdi | --doc | --do)
916    ac_prev=docdir ;;
917  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918    docdir=$ac_optarg ;;
919
920  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921    ac_prev=dvidir ;;
922  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923    dvidir=$ac_optarg ;;
924
925  -enable-* | --enable-*)
926    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927    # Reject names that are not valid shell variable names.
928    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929      as_fn_error $? "invalid feature name: '$ac_useropt'"
930    ac_useropt_orig=$ac_useropt
931    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
932    case $ac_user_opts in
933      *"
934"enable_$ac_useropt"
935"*) ;;
936      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937	 ac_unrecognized_sep=', ';;
938    esac
939    eval enable_$ac_useropt=\$ac_optarg ;;
940
941  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943  | --exec | --exe | --ex)
944    ac_prev=exec_prefix ;;
945  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947  | --exec=* | --exe=* | --ex=*)
948    exec_prefix=$ac_optarg ;;
949
950  -gas | --gas | --ga | --g)
951    # Obsolete; use --with-gas.
952    with_gas=yes ;;
953
954  -help | --help | --hel | --he | -h)
955    ac_init_help=long ;;
956  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957    ac_init_help=recursive ;;
958  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959    ac_init_help=short ;;
960
961  -host | --host | --hos | --ho)
962    ac_prev=host_alias ;;
963  -host=* | --host=* | --hos=* | --ho=*)
964    host_alias=$ac_optarg ;;
965
966  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967    ac_prev=htmldir ;;
968  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969  | --ht=*)
970    htmldir=$ac_optarg ;;
971
972  -includedir | --includedir | --includedi | --included | --include \
973  | --includ | --inclu | --incl | --inc)
974    ac_prev=includedir ;;
975  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976  | --includ=* | --inclu=* | --incl=* | --inc=*)
977    includedir=$ac_optarg ;;
978
979  -infodir | --infodir | --infodi | --infod | --info | --inf)
980    ac_prev=infodir ;;
981  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982    infodir=$ac_optarg ;;
983
984  -libdir | --libdir | --libdi | --libd)
985    ac_prev=libdir ;;
986  -libdir=* | --libdir=* | --libdi=* | --libd=*)
987    libdir=$ac_optarg ;;
988
989  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990  | --libexe | --libex | --libe)
991    ac_prev=libexecdir ;;
992  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993  | --libexe=* | --libex=* | --libe=*)
994    libexecdir=$ac_optarg ;;
995
996  -localedir | --localedir | --localedi | --localed | --locale)
997    ac_prev=localedir ;;
998  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999    localedir=$ac_optarg ;;
1000
1001  -localstatedir | --localstatedir | --localstatedi | --localstated \
1002  | --localstate | --localstat | --localsta | --localst | --locals)
1003    ac_prev=localstatedir ;;
1004  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006    localstatedir=$ac_optarg ;;
1007
1008  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009    ac_prev=mandir ;;
1010  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011    mandir=$ac_optarg ;;
1012
1013  -nfp | --nfp | --nf)
1014    # Obsolete; use --without-fp.
1015    with_fp=no ;;
1016
1017  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018  | --no-cr | --no-c | -n)
1019    no_create=yes ;;
1020
1021  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023    no_recursion=yes ;;
1024
1025  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027  | --oldin | --oldi | --old | --ol | --o)
1028    ac_prev=oldincludedir ;;
1029  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032    oldincludedir=$ac_optarg ;;
1033
1034  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035    ac_prev=prefix ;;
1036  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037    prefix=$ac_optarg ;;
1038
1039  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040  | --program-pre | --program-pr | --program-p)
1041    ac_prev=program_prefix ;;
1042  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044    program_prefix=$ac_optarg ;;
1045
1046  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047  | --program-suf | --program-su | --program-s)
1048    ac_prev=program_suffix ;;
1049  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051    program_suffix=$ac_optarg ;;
1052
1053  -program-transform-name | --program-transform-name \
1054  | --program-transform-nam | --program-transform-na \
1055  | --program-transform-n | --program-transform- \
1056  | --program-transform | --program-transfor \
1057  | --program-transfo | --program-transf \
1058  | --program-trans | --program-tran \
1059  | --progr-tra | --program-tr | --program-t)
1060    ac_prev=program_transform_name ;;
1061  -program-transform-name=* | --program-transform-name=* \
1062  | --program-transform-nam=* | --program-transform-na=* \
1063  | --program-transform-n=* | --program-transform-=* \
1064  | --program-transform=* | --program-transfor=* \
1065  | --program-transfo=* | --program-transf=* \
1066  | --program-trans=* | --program-tran=* \
1067  | --progr-tra=* | --program-tr=* | --program-t=*)
1068    program_transform_name=$ac_optarg ;;
1069
1070  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071    ac_prev=pdfdir ;;
1072  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073    pdfdir=$ac_optarg ;;
1074
1075  -psdir | --psdir | --psdi | --psd | --ps)
1076    ac_prev=psdir ;;
1077  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078    psdir=$ac_optarg ;;
1079
1080  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081  | -silent | --silent | --silen | --sile | --sil)
1082    silent=yes ;;
1083
1084  -runstatedir | --runstatedir | --runstatedi | --runstated \
1085  | --runstate | --runstat | --runsta | --runst | --runs \
1086  | --run | --ru | --r)
1087    ac_prev=runstatedir ;;
1088  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1089  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1090  | --run=* | --ru=* | --r=*)
1091    runstatedir=$ac_optarg ;;
1092
1093  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094    ac_prev=sbindir ;;
1095  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096  | --sbi=* | --sb=*)
1097    sbindir=$ac_optarg ;;
1098
1099  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101  | --sharedst | --shareds | --shared | --share | --shar \
1102  | --sha | --sh)
1103    ac_prev=sharedstatedir ;;
1104  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107  | --sha=* | --sh=*)
1108    sharedstatedir=$ac_optarg ;;
1109
1110  -site | --site | --sit)
1111    ac_prev=site ;;
1112  -site=* | --site=* | --sit=*)
1113    site=$ac_optarg ;;
1114
1115  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116    ac_prev=srcdir ;;
1117  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118    srcdir=$ac_optarg ;;
1119
1120  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121  | --syscon | --sysco | --sysc | --sys | --sy)
1122    ac_prev=sysconfdir ;;
1123  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125    sysconfdir=$ac_optarg ;;
1126
1127  -target | --target | --targe | --targ | --tar | --ta | --t)
1128    ac_prev=target_alias ;;
1129  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130    target_alias=$ac_optarg ;;
1131
1132  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133    verbose=yes ;;
1134
1135  -version | --version | --versio | --versi | --vers | -V)
1136    ac_init_version=: ;;
1137
1138  -with-* | --with-*)
1139    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140    # Reject names that are not valid shell variable names.
1141    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142      as_fn_error $? "invalid package name: '$ac_useropt'"
1143    ac_useropt_orig=$ac_useropt
1144    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1145    case $ac_user_opts in
1146      *"
1147"with_$ac_useropt"
1148"*) ;;
1149      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150	 ac_unrecognized_sep=', ';;
1151    esac
1152    eval with_$ac_useropt=\$ac_optarg ;;
1153
1154  -without-* | --without-*)
1155    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156    # Reject names that are not valid shell variable names.
1157    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158      as_fn_error $? "invalid package name: '$ac_useropt'"
1159    ac_useropt_orig=$ac_useropt
1160    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1161    case $ac_user_opts in
1162      *"
1163"with_$ac_useropt"
1164"*) ;;
1165      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166	 ac_unrecognized_sep=', ';;
1167    esac
1168    eval with_$ac_useropt=no ;;
1169
1170  --x)
1171    # Obsolete; use --with-x.
1172    with_x=yes ;;
1173
1174  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175  | --x-incl | --x-inc | --x-in | --x-i)
1176    ac_prev=x_includes ;;
1177  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179    x_includes=$ac_optarg ;;
1180
1181  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183    ac_prev=x_libraries ;;
1184  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186    x_libraries=$ac_optarg ;;
1187
1188  -*) as_fn_error $? "unrecognized option: '$ac_option'
1189Try '$0 --help' for more information"
1190    ;;
1191
1192  *=*)
1193    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194    # Reject names that are not valid shell variable names.
1195    case $ac_envvar in #(
1196      '' | [0-9]* | *[!_$as_cr_alnum]* )
1197      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1198    esac
1199    eval $ac_envvar=\$ac_optarg
1200    export $ac_envvar ;;
1201
1202  *)
1203    # FIXME: should be removed in autoconf 3.0.
1204    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1205    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1207    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208    ;;
1209
1210  esac
1211done
1212
1213if test -n "$ac_prev"; then
1214  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215  as_fn_error $? "missing argument to $ac_option"
1216fi
1217
1218if test -n "$ac_unrecognized_opts"; then
1219  case $enable_option_checking in
1220    no) ;;
1221    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223  esac
1224fi
1225
1226# Check all directory arguments for consistency.
1227for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228		datadir sysconfdir sharedstatedir localstatedir includedir \
1229		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230		libdir localedir mandir runstatedir
1231do
1232  eval ac_val=\$$ac_var
1233  # Remove trailing slashes.
1234  case $ac_val in
1235    */ )
1236      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237      eval $ac_var=\$ac_val;;
1238  esac
1239  # Be sure to have absolute directory names.
1240  case $ac_val in
1241    [\\/$]* | ?:[\\/]* )  continue;;
1242    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243  esac
1244  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245done
1246
1247# There might be people who depend on the old broken behavior: '$host'
1248# used to hold the argument of --host etc.
1249# FIXME: To remove some day.
1250build=$build_alias
1251host=$host_alias
1252target=$target_alias
1253
1254# FIXME: To remove some day.
1255if test "x$host_alias" != x; then
1256  if test "x$build_alias" = x; then
1257    cross_compiling=maybe
1258  elif test "x$build_alias" != "x$host_alias"; then
1259    cross_compiling=yes
1260  fi
1261fi
1262
1263ac_tool_prefix=
1264test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266test "$silent" = yes && exec 6>/dev/null
1267
1268
1269ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270ac_ls_di=`ls -di .` &&
1271ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272  as_fn_error $? "working directory cannot be determined"
1273test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274  as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277# Find the source files, if location was not specified.
1278if test -z "$srcdir"; then
1279  ac_srcdir_defaulted=yes
1280  # Try the directory containing this script, then the parent directory.
1281  ac_confdir=`$as_dirname -- "$as_myself" ||
1282$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283	 X"$as_myself" : 'X\(//\)[^/]' \| \
1284	 X"$as_myself" : 'X\(//\)$' \| \
1285	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286printf "%s\n" X"$as_myself" |
1287    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288	    s//\1/
1289	    q
1290	  }
1291	  /^X\(\/\/\)[^/].*/{
1292	    s//\1/
1293	    q
1294	  }
1295	  /^X\(\/\/\)$/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\).*/{
1300	    s//\1/
1301	    q
1302	  }
1303	  s/.*/./; q'`
1304  srcdir=$ac_confdir
1305  if test ! -r "$srcdir/$ac_unique_file"; then
1306    srcdir=..
1307  fi
1308else
1309  ac_srcdir_defaulted=no
1310fi
1311if test ! -r "$srcdir/$ac_unique_file"; then
1312  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314fi
1315ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1316ac_abs_confdir=`(
1317	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318	pwd)`
1319# When building in place, set srcdir=.
1320if test "$ac_abs_confdir" = "$ac_pwd"; then
1321  srcdir=.
1322fi
1323# Remove unnecessary trailing slashes from srcdir.
1324# Double slashes in file names in object file debugging info
1325# mess up M-x gdb in Emacs.
1326case $srcdir in
1327*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328esac
1329for ac_var in $ac_precious_vars; do
1330  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331  eval ac_env_${ac_var}_value=\$${ac_var}
1332  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334done
1335
1336#
1337# Report the --help message.
1338#
1339if test "$ac_init_help" = "long"; then
1340  # Omit some internal or obsolete options to make the list less imposing.
1341  # This message is too long to be a string in the A/UX 3.1 sh.
1342  cat <<_ACEOF
1343'configure' configures oclock 1.0.6 to adapt to many kinds of systems.
1344
1345Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348VAR=VALUE.  See below for descriptions of some of the useful variables.
1349
1350Defaults for the options are specified in brackets.
1351
1352Configuration:
1353  -h, --help              display this help and exit
1354      --help=short        display options specific to this package
1355      --help=recursive    display the short help of all the included packages
1356  -V, --version           display version information and exit
1357  -q, --quiet, --silent   do not print 'checking ...' messages
1358      --cache-file=FILE   cache test results in FILE [disabled]
1359  -C, --config-cache      alias for '--cache-file=config.cache'
1360  -n, --no-create         do not create output files
1361      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1362
1363Installation directories:
1364  --prefix=PREFIX         install architecture-independent files in PREFIX
1365                          [$ac_default_prefix]
1366  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1367                          [PREFIX]
1368
1369By default, 'make install' will install all the files in
1370'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1371an installation prefix other than '$ac_default_prefix' using '--prefix',
1372for instance '--prefix=\$HOME'.
1373
1374For better control, use the options below.
1375
1376Fine tuning of the installation directories:
1377  --bindir=DIR            user executables [EPREFIX/bin]
1378  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1379  --libexecdir=DIR        program executables [EPREFIX/libexec]
1380  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1381  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1382  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1383  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1384  --libdir=DIR            object code libraries [EPREFIX/lib]
1385  --includedir=DIR        C header files [PREFIX/include]
1386  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1387  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1388  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1389  --infodir=DIR           info documentation [DATAROOTDIR/info]
1390  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1391  --mandir=DIR            man documentation [DATAROOTDIR/man]
1392  --docdir=DIR            documentation root [DATAROOTDIR/doc/oclock]
1393  --htmldir=DIR           html documentation [DOCDIR]
1394  --dvidir=DIR            dvi documentation [DOCDIR]
1395  --pdfdir=DIR            pdf documentation [DOCDIR]
1396  --psdir=DIR             ps documentation [DOCDIR]
1397_ACEOF
1398
1399  cat <<\_ACEOF
1400
1401Program names:
1402  --program-prefix=PREFIX            prepend PREFIX to installed program names
1403  --program-suffix=SUFFIX            append SUFFIX to installed program names
1404  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1405
1406System types:
1407  --build=BUILD     configure for building on BUILD [guessed]
1408  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1409_ACEOF
1410fi
1411
1412if test -n "$ac_init_help"; then
1413  case $ac_init_help in
1414     short | recursive ) echo "Configuration of oclock 1.0.6:";;
1415   esac
1416  cat <<\_ACEOF
1417
1418Optional Features:
1419  --disable-option-checking  ignore unrecognized --enable/--with options
1420  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1421  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1422  --enable-silent-rules   less verbose build output (undo: "make V=1")
1423  --disable-silent-rules  verbose build output (undo: "make V=0")
1424  --enable-dependency-tracking
1425                          do not reject slow dependency extractors
1426  --disable-dependency-tracking
1427                          speeds up one-time build
1428  --disable-selective-werror
1429                          Turn off selective compiler errors. (default:
1430                          enabled)
1431  --enable-strict-compilation
1432                          Enable all warnings from compiler and make them
1433                          errors (default: disabled)
1434
1435Optional Packages:
1436  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1437  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1438  --without-xkb           Disable use of XKB to sound bells (Default is
1439                          with-xkb)
1440  --with-appdefaultdir=<pathname>
1441                          specify directory for app-defaults files (default is
1442                          autodetected)
1443
1444Some influential environment variables:
1445  CC          C compiler command
1446  CFLAGS      C compiler flags
1447  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1448              nonstandard directory <lib dir>
1449  LIBS        libraries to pass to the linker, e.g. -l<library>
1450  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451              you have headers in a nonstandard directory <include dir>
1452  PKG_CONFIG  path to pkg-config utility
1453  PKG_CONFIG_PATH
1454              directories to add to pkg-config's search path
1455  PKG_CONFIG_LIBDIR
1456              path overriding pkg-config's built-in search path
1457  OCLOCK_CFLAGS
1458              C compiler flags for OCLOCK, overriding pkg-config
1459  OCLOCK_LIBS linker flags for OCLOCK, overriding pkg-config
1460
1461Use these variables to override the choices made by 'configure' or to help
1462it to find libraries and programs with nonstandard names/locations.
1463
1464Report bugs to <https://gitlab.freedesktop.org/xorg/app/oclock/-/issues>.
1465_ACEOF
1466ac_status=$?
1467fi
1468
1469if test "$ac_init_help" = "recursive"; then
1470  # If there are subdirs, report their specific --help.
1471  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472    test -d "$ac_dir" ||
1473      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474      continue
1475    ac_builddir=.
1476
1477case "$ac_dir" in
1478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479*)
1480  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1481  # A ".." for each directory in $ac_dir_suffix.
1482  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483  case $ac_top_builddir_sub in
1484  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486  esac ;;
1487esac
1488ac_abs_top_builddir=$ac_pwd
1489ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490# for backward compatibility:
1491ac_top_builddir=$ac_top_build_prefix
1492
1493case $srcdir in
1494  .)  # We are building in place.
1495    ac_srcdir=.
1496    ac_top_srcdir=$ac_top_builddir_sub
1497    ac_abs_top_srcdir=$ac_pwd ;;
1498  [\\/]* | ?:[\\/]* )  # Absolute name.
1499    ac_srcdir=$srcdir$ac_dir_suffix;
1500    ac_top_srcdir=$srcdir
1501    ac_abs_top_srcdir=$srcdir ;;
1502  *) # Relative name.
1503    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504    ac_top_srcdir=$ac_top_build_prefix$srcdir
1505    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506esac
1507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508
1509    cd "$ac_dir" || { ac_status=$?; continue; }
1510    # Check for configure.gnu first; this name is used for a wrapper for
1511    # Metaconfig's "Configure" on case-insensitive file systems.
1512    if test -f "$ac_srcdir/configure.gnu"; then
1513      echo &&
1514      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515    elif test -f "$ac_srcdir/configure"; then
1516      echo &&
1517      $SHELL "$ac_srcdir/configure" --help=recursive
1518    else
1519      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520    fi || ac_status=$?
1521    cd "$ac_pwd" || { ac_status=$?; break; }
1522  done
1523fi
1524
1525test -n "$ac_init_help" && exit $ac_status
1526if $ac_init_version; then
1527  cat <<\_ACEOF
1528oclock configure 1.0.6
1529generated by GNU Autoconf 2.72
1530
1531Copyright (C) 2023 Free Software Foundation, Inc.
1532This configure script is free software; the Free Software Foundation
1533gives unlimited permission to copy, distribute and modify it.
1534_ACEOF
1535  exit
1536fi
1537
1538## ------------------------ ##
1539## Autoconf initialization. ##
1540## ------------------------ ##
1541
1542# ac_fn_c_try_compile LINENO
1543# --------------------------
1544# Try to compile conftest.$ac_ext, and return whether this succeeded.
1545ac_fn_c_try_compile ()
1546{
1547  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548  rm -f conftest.$ac_objext conftest.beam
1549  if { { ac_try="$ac_compile"
1550case "(($ac_try" in
1551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552  *) ac_try_echo=$ac_try;;
1553esac
1554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555printf "%s\n" "$ac_try_echo"; } >&5
1556  (eval "$ac_compile") 2>conftest.err
1557  ac_status=$?
1558  if test -s conftest.err; then
1559    grep -v '^ *+' conftest.err >conftest.er1
1560    cat conftest.er1 >&5
1561    mv -f conftest.er1 conftest.err
1562  fi
1563  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564  test $ac_status = 0; } && {
1565	 test -z "$ac_c_werror_flag" ||
1566	 test ! -s conftest.err
1567       } && test -s conftest.$ac_objext
1568then :
1569  ac_retval=0
1570else case e in #(
1571  e) printf "%s\n" "$as_me: failed program was:" >&5
1572sed 's/^/| /' conftest.$ac_ext >&5
1573
1574	ac_retval=1 ;;
1575esac
1576fi
1577  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578  as_fn_set_status $ac_retval
1579
1580} # ac_fn_c_try_compile
1581
1582# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1583# ------------------------------------------------------------------
1584# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1585# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1586ac_fn_check_decl ()
1587{
1588  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589  as_decl_name=`echo $2|sed 's/ *(.*//'`
1590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1591printf %s "checking whether $as_decl_name is declared... " >&6; }
1592if eval test \${$3+y}
1593then :
1594  printf %s "(cached) " >&6
1595else case e in #(
1596  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1597  eval ac_save_FLAGS=\$$6
1598  as_fn_append $6 " $5"
1599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1600/* end confdefs.h.  */
1601$4
1602int
1603main (void)
1604{
1605#ifndef $as_decl_name
1606#ifdef __cplusplus
1607  (void) $as_decl_use;
1608#else
1609  (void) $as_decl_name;
1610#endif
1611#endif
1612
1613  ;
1614  return 0;
1615}
1616_ACEOF
1617if ac_fn_c_try_compile "$LINENO"
1618then :
1619  eval "$3=yes"
1620else case e in #(
1621  e) eval "$3=no" ;;
1622esac
1623fi
1624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1625  eval $6=\$ac_save_FLAGS
1626 ;;
1627esac
1628fi
1629eval ac_res=\$$3
1630	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631printf "%s\n" "$ac_res" >&6; }
1632  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633
1634} # ac_fn_check_decl
1635
1636# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1637# -------------------------------------------------------
1638# Tests whether HEADER exists and can be compiled using the include files in
1639# INCLUDES, setting the cache variable VAR accordingly.
1640ac_fn_c_check_header_compile ()
1641{
1642  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644printf %s "checking for $2... " >&6; }
1645if eval test \${$3+y}
1646then :
1647  printf %s "(cached) " >&6
1648else case e in #(
1649  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650/* end confdefs.h.  */
1651$4
1652#include <$2>
1653_ACEOF
1654if ac_fn_c_try_compile "$LINENO"
1655then :
1656  eval "$3=yes"
1657else case e in #(
1658  e) eval "$3=no" ;;
1659esac
1660fi
1661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1662esac
1663fi
1664eval ac_res=\$$3
1665	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666printf "%s\n" "$ac_res" >&6; }
1667  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668
1669} # ac_fn_c_check_header_compile
1670
1671# ac_fn_c_try_link LINENO
1672# -----------------------
1673# Try to link conftest.$ac_ext, and return whether this succeeded.
1674ac_fn_c_try_link ()
1675{
1676  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1678  if { { ac_try="$ac_link"
1679case "(($ac_try" in
1680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681  *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684printf "%s\n" "$ac_try_echo"; } >&5
1685  (eval "$ac_link") 2>conftest.err
1686  ac_status=$?
1687  if test -s conftest.err; then
1688    grep -v '^ *+' conftest.err >conftest.er1
1689    cat conftest.er1 >&5
1690    mv -f conftest.er1 conftest.err
1691  fi
1692  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693  test $ac_status = 0; } && {
1694	 test -z "$ac_c_werror_flag" ||
1695	 test ! -s conftest.err
1696       } && test -s conftest$ac_exeext && {
1697	 test "$cross_compiling" = yes ||
1698	 test -x conftest$ac_exeext
1699       }
1700then :
1701  ac_retval=0
1702else case e in #(
1703  e) printf "%s\n" "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706	ac_retval=1 ;;
1707esac
1708fi
1709  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1710  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1711  # interfere with the next link command; also delete a directory that is
1712  # left behind by Apple's compiler.  We do this before executing the actions.
1713  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715  as_fn_set_status $ac_retval
1716
1717} # ac_fn_c_try_link
1718ac_configure_args_raw=
1719for ac_arg
1720do
1721  case $ac_arg in
1722  *\'*)
1723    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1724  esac
1725  as_fn_append ac_configure_args_raw " '$ac_arg'"
1726done
1727
1728case $ac_configure_args_raw in
1729  *$as_nl*)
1730    ac_safe_unquote= ;;
1731  *)
1732    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1733    ac_unsafe_a="$ac_unsafe_z#~"
1734    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1735    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1736esac
1737
1738cat >config.log <<_ACEOF
1739This file contains any messages produced by compilers while
1740running configure, to aid debugging if configure makes a mistake.
1741
1742It was created by oclock $as_me 1.0.6, which was
1743generated by GNU Autoconf 2.72.  Invocation command line was
1744
1745  $ $0$ac_configure_args_raw
1746
1747_ACEOF
1748exec 5>>config.log
1749{
1750cat <<_ASUNAME
1751## --------- ##
1752## Platform. ##
1753## --------- ##
1754
1755hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1756uname -m = `(uname -m) 2>/dev/null || echo unknown`
1757uname -r = `(uname -r) 2>/dev/null || echo unknown`
1758uname -s = `(uname -s) 2>/dev/null || echo unknown`
1759uname -v = `(uname -v) 2>/dev/null || echo unknown`
1760
1761/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1762/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1763
1764/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1765/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1766/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1767/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1768/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1769/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1770/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1771
1772_ASUNAME
1773
1774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775for as_dir in $PATH
1776do
1777  IFS=$as_save_IFS
1778  case $as_dir in #(((
1779    '') as_dir=./ ;;
1780    */) ;;
1781    *) as_dir=$as_dir/ ;;
1782  esac
1783    printf "%s\n" "PATH: $as_dir"
1784  done
1785IFS=$as_save_IFS
1786
1787} >&5
1788
1789cat >&5 <<_ACEOF
1790
1791
1792## ----------- ##
1793## Core tests. ##
1794## ----------- ##
1795
1796_ACEOF
1797
1798
1799# Keep a trace of the command line.
1800# Strip out --no-create and --no-recursion so they do not pile up.
1801# Strip out --silent because we don't want to record it for future runs.
1802# Also quote any args containing shell meta-characters.
1803# Make two passes to allow for proper duplicate-argument suppression.
1804ac_configure_args=
1805ac_configure_args0=
1806ac_configure_args1=
1807ac_must_keep_next=false
1808for ac_pass in 1 2
1809do
1810  for ac_arg
1811  do
1812    case $ac_arg in
1813    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1814    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1815    | -silent | --silent | --silen | --sile | --sil)
1816      continue ;;
1817    *\'*)
1818      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1819    esac
1820    case $ac_pass in
1821    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1822    2)
1823      as_fn_append ac_configure_args1 " '$ac_arg'"
1824      if test $ac_must_keep_next = true; then
1825	ac_must_keep_next=false # Got value, back to normal.
1826      else
1827	case $ac_arg in
1828	  *=* | --config-cache | -C | -disable-* | --disable-* \
1829	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1830	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1831	  | -with-* | --with-* | -without-* | --without-* | --x)
1832	    case "$ac_configure_args0 " in
1833	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1834	    esac
1835	    ;;
1836	  -* ) ac_must_keep_next=true ;;
1837	esac
1838      fi
1839      as_fn_append ac_configure_args " '$ac_arg'"
1840      ;;
1841    esac
1842  done
1843done
1844{ ac_configure_args0=; unset ac_configure_args0;}
1845{ ac_configure_args1=; unset ac_configure_args1;}
1846
1847# When interrupted or exit'd, cleanup temporary files, and complete
1848# config.log.  We remove comments because anyway the quotes in there
1849# would cause problems or look ugly.
1850# WARNING: Use '\'' to represent an apostrophe within the trap.
1851# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1852trap 'exit_status=$?
1853  # Sanitize IFS.
1854  IFS=" ""	$as_nl"
1855  # Save into config.log some information that might help in debugging.
1856  {
1857    echo
1858
1859    printf "%s\n" "## ---------------- ##
1860## Cache variables. ##
1861## ---------------- ##"
1862    echo
1863    # The following way of writing the cache mishandles newlines in values,
1864(
1865  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1866    eval ac_val=\$$ac_var
1867    case $ac_val in #(
1868    *${as_nl}*)
1869      case $ac_var in #(
1870      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1871printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1872      esac
1873      case $ac_var in #(
1874      _ | IFS | as_nl) ;; #(
1875      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1876      *) { eval $ac_var=; unset $ac_var;} ;;
1877      esac ;;
1878    esac
1879  done
1880  (set) 2>&1 |
1881    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1882    *${as_nl}ac_space=\ *)
1883      sed -n \
1884	"s/'\''/'\''\\\\'\'''\''/g;
1885	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1886      ;; #(
1887    *)
1888      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1889      ;;
1890    esac |
1891    sort
1892)
1893    echo
1894
1895    printf "%s\n" "## ----------------- ##
1896## Output variables. ##
1897## ----------------- ##"
1898    echo
1899    for ac_var in $ac_subst_vars
1900    do
1901      eval ac_val=\$$ac_var
1902      case $ac_val in
1903      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1904      esac
1905      printf "%s\n" "$ac_var='\''$ac_val'\''"
1906    done | sort
1907    echo
1908
1909    if test -n "$ac_subst_files"; then
1910      printf "%s\n" "## ------------------- ##
1911## File substitutions. ##
1912## ------------------- ##"
1913      echo
1914      for ac_var in $ac_subst_files
1915      do
1916	eval ac_val=\$$ac_var
1917	case $ac_val in
1918	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1919	esac
1920	printf "%s\n" "$ac_var='\''$ac_val'\''"
1921      done | sort
1922      echo
1923    fi
1924
1925    if test -s confdefs.h; then
1926      printf "%s\n" "## ----------- ##
1927## confdefs.h. ##
1928## ----------- ##"
1929      echo
1930      cat confdefs.h
1931      echo
1932    fi
1933    test "$ac_signal" != 0 &&
1934      printf "%s\n" "$as_me: caught signal $ac_signal"
1935    printf "%s\n" "$as_me: exit $exit_status"
1936  } >&5
1937  rm -f core *.core core.conftest.* &&
1938    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1939    exit $exit_status
1940' 0
1941for ac_signal in 1 2 13 15; do
1942  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1943done
1944ac_signal=0
1945
1946# confdefs.h avoids OS command line length limits that DEFS can exceed.
1947rm -f -r conftest* confdefs.h
1948
1949printf "%s\n" "/* confdefs.h */" > confdefs.h
1950
1951# Predefined preprocessor variables.
1952
1953printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1954
1955printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1956
1957printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1958
1959printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1960
1961printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1962
1963printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1964
1965
1966# Let the site file select an alternate cache file if it wants to.
1967# Prefer an explicitly selected file to automatically selected ones.
1968if test -n "$CONFIG_SITE"; then
1969  ac_site_files="$CONFIG_SITE"
1970elif test "x$prefix" != xNONE; then
1971  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1972else
1973  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1974fi
1975
1976for ac_site_file in $ac_site_files
1977do
1978  case $ac_site_file in #(
1979  */*) :
1980     ;; #(
1981  *) :
1982    ac_site_file=./$ac_site_file ;;
1983esac
1984  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1985    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1986printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1987    sed 's/^/| /' "$ac_site_file" >&5
1988    . "$ac_site_file" \
1989      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1990printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1991as_fn_error $? "failed to load site script $ac_site_file
1992See 'config.log' for more details" "$LINENO" 5; }
1993  fi
1994done
1995
1996if test -r "$cache_file"; then
1997  # Some versions of bash will fail to source /dev/null (special files
1998  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1999  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2000    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2001printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2002    case $cache_file in
2003      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2004      *)                      . "./$cache_file";;
2005    esac
2006  fi
2007else
2008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2009printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2010  >$cache_file
2011fi
2012
2013# Test code for whether the C compiler supports C89 (global declarations)
2014ac_c_conftest_c89_globals='
2015/* Does the compiler advertise C89 conformance?
2016   Do not test the value of __STDC__, because some compilers set it to 0
2017   while being otherwise adequately conformant. */
2018#if !defined __STDC__
2019# error "Compiler does not advertise C89 conformance"
2020#endif
2021
2022#include <stddef.h>
2023#include <stdarg.h>
2024struct stat;
2025/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2026struct buf { int x; };
2027struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2028static char *e (char **p, int i)
2029{
2030  return p[i];
2031}
2032static char *f (char * (*g) (char **, int), char **p, ...)
2033{
2034  char *s;
2035  va_list v;
2036  va_start (v,p);
2037  s = g (p, va_arg (v,int));
2038  va_end (v);
2039  return s;
2040}
2041
2042/* C89 style stringification. */
2043#define noexpand_stringify(a) #a
2044const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2045
2046/* C89 style token pasting.  Exercises some of the corner cases that
2047   e.g. old MSVC gets wrong, but not very hard. */
2048#define noexpand_concat(a,b) a##b
2049#define expand_concat(a,b) noexpand_concat(a,b)
2050extern int vA;
2051extern int vbee;
2052#define aye A
2053#define bee B
2054int *pvA = &expand_concat(v,aye);
2055int *pvbee = &noexpand_concat(v,bee);
2056
2057/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2058   function prototypes and stuff, but not \xHH hex character constants.
2059   These do not provoke an error unfortunately, instead are silently treated
2060   as an "x".  The following induces an error, until -std is added to get
2061   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2062   array size at least.  It is necessary to write \x00 == 0 to get something
2063   that is true only with -std.  */
2064int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2065
2066/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2067   inside strings and character constants.  */
2068#define FOO(x) '\''x'\''
2069int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2070
2071int test (int i, double x);
2072struct s1 {int (*f) (int a);};
2073struct s2 {int (*f) (double a);};
2074int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2075               int, int);'
2076
2077# Test code for whether the C compiler supports C89 (body of main).
2078ac_c_conftest_c89_main='
2079ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2080'
2081
2082# Test code for whether the C compiler supports C99 (global declarations)
2083ac_c_conftest_c99_globals='
2084/* Does the compiler advertise C99 conformance? */
2085#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2086# error "Compiler does not advertise C99 conformance"
2087#endif
2088
2089// See if C++-style comments work.
2090
2091#include <stdbool.h>
2092extern int puts (const char *);
2093extern int printf (const char *, ...);
2094extern int dprintf (int, const char *, ...);
2095extern void *malloc (size_t);
2096extern void free (void *);
2097
2098// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2099// dprintf is used instead of fprintf to avoid needing to declare
2100// FILE and stderr.
2101#define debug(...) dprintf (2, __VA_ARGS__)
2102#define showlist(...) puts (#__VA_ARGS__)
2103#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2104static void
2105test_varargs_macros (void)
2106{
2107  int x = 1234;
2108  int y = 5678;
2109  debug ("Flag");
2110  debug ("X = %d\n", x);
2111  showlist (The first, second, and third items.);
2112  report (x>y, "x is %d but y is %d", x, y);
2113}
2114
2115// Check long long types.
2116#define BIG64 18446744073709551615ull
2117#define BIG32 4294967295ul
2118#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2119#if !BIG_OK
2120  #error "your preprocessor is broken"
2121#endif
2122#if BIG_OK
2123#else
2124  #error "your preprocessor is broken"
2125#endif
2126static long long int bignum = -9223372036854775807LL;
2127static unsigned long long int ubignum = BIG64;
2128
2129struct incomplete_array
2130{
2131  int datasize;
2132  double data[];
2133};
2134
2135struct named_init {
2136  int number;
2137  const wchar_t *name;
2138  double average;
2139};
2140
2141typedef const char *ccp;
2142
2143static inline int
2144test_restrict (ccp restrict text)
2145{
2146  // Iterate through items via the restricted pointer.
2147  // Also check for declarations in for loops.
2148  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2149    continue;
2150  return 0;
2151}
2152
2153// Check varargs and va_copy.
2154static bool
2155test_varargs (const char *format, ...)
2156{
2157  va_list args;
2158  va_start (args, format);
2159  va_list args_copy;
2160  va_copy (args_copy, args);
2161
2162  const char *str = "";
2163  int number = 0;
2164  float fnumber = 0;
2165
2166  while (*format)
2167    {
2168      switch (*format++)
2169	{
2170	case '\''s'\'': // string
2171	  str = va_arg (args_copy, const char *);
2172	  break;
2173	case '\''d'\'': // int
2174	  number = va_arg (args_copy, int);
2175	  break;
2176	case '\''f'\'': // float
2177	  fnumber = va_arg (args_copy, double);
2178	  break;
2179	default:
2180	  break;
2181	}
2182    }
2183  va_end (args_copy);
2184  va_end (args);
2185
2186  return *str && number && fnumber;
2187}
2188'
2189
2190# Test code for whether the C compiler supports C99 (body of main).
2191ac_c_conftest_c99_main='
2192  // Check bool.
2193  _Bool success = false;
2194  success |= (argc != 0);
2195
2196  // Check restrict.
2197  if (test_restrict ("String literal") == 0)
2198    success = true;
2199  char *restrict newvar = "Another string";
2200
2201  // Check varargs.
2202  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2203  test_varargs_macros ();
2204
2205  // Check flexible array members.
2206  struct incomplete_array *ia =
2207    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2208  ia->datasize = 10;
2209  for (int i = 0; i < ia->datasize; ++i)
2210    ia->data[i] = i * 1.234;
2211  // Work around memory leak warnings.
2212  free (ia);
2213
2214  // Check named initializers.
2215  struct named_init ni = {
2216    .number = 34,
2217    .name = L"Test wide string",
2218    .average = 543.34343,
2219  };
2220
2221  ni.number = 58;
2222
2223  int dynamic_array[ni.number];
2224  dynamic_array[0] = argv[0][0];
2225  dynamic_array[ni.number - 1] = 543;
2226
2227  // work around unused variable warnings
2228  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2229	 || dynamic_array[ni.number - 1] != 543);
2230'
2231
2232# Test code for whether the C compiler supports C11 (global declarations)
2233ac_c_conftest_c11_globals='
2234/* Does the compiler advertise C11 conformance? */
2235#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2236# error "Compiler does not advertise C11 conformance"
2237#endif
2238
2239// Check _Alignas.
2240char _Alignas (double) aligned_as_double;
2241char _Alignas (0) no_special_alignment;
2242extern char aligned_as_int;
2243char _Alignas (0) _Alignas (int) aligned_as_int;
2244
2245// Check _Alignof.
2246enum
2247{
2248  int_alignment = _Alignof (int),
2249  int_array_alignment = _Alignof (int[100]),
2250  char_alignment = _Alignof (char)
2251};
2252_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2253
2254// Check _Noreturn.
2255int _Noreturn does_not_return (void) { for (;;) continue; }
2256
2257// Check _Static_assert.
2258struct test_static_assert
2259{
2260  int x;
2261  _Static_assert (sizeof (int) <= sizeof (long int),
2262                  "_Static_assert does not work in struct");
2263  long int y;
2264};
2265
2266// Check UTF-8 literals.
2267#define u8 syntax error!
2268char const utf8_literal[] = u8"happens to be ASCII" "another string";
2269
2270// Check duplicate typedefs.
2271typedef long *long_ptr;
2272typedef long int *long_ptr;
2273typedef long_ptr long_ptr;
2274
2275// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2276struct anonymous
2277{
2278  union {
2279    struct { int i; int j; };
2280    struct { int k; long int l; } w;
2281  };
2282  int m;
2283} v1;
2284'
2285
2286# Test code for whether the C compiler supports C11 (body of main).
2287ac_c_conftest_c11_main='
2288  _Static_assert ((offsetof (struct anonymous, i)
2289		   == offsetof (struct anonymous, w.k)),
2290		  "Anonymous union alignment botch");
2291  v1.i = 2;
2292  v1.w.k = 5;
2293  ok |= v1.i != 5;
2294'
2295
2296# Test code for whether the C compiler supports C11 (complete).
2297ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2298${ac_c_conftest_c99_globals}
2299${ac_c_conftest_c11_globals}
2300
2301int
2302main (int argc, char **argv)
2303{
2304  int ok = 0;
2305  ${ac_c_conftest_c89_main}
2306  ${ac_c_conftest_c99_main}
2307  ${ac_c_conftest_c11_main}
2308  return ok;
2309}
2310"
2311
2312# Test code for whether the C compiler supports C99 (complete).
2313ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2314${ac_c_conftest_c99_globals}
2315
2316int
2317main (int argc, char **argv)
2318{
2319  int ok = 0;
2320  ${ac_c_conftest_c89_main}
2321  ${ac_c_conftest_c99_main}
2322  return ok;
2323}
2324"
2325
2326# Test code for whether the C compiler supports C89 (complete).
2327ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2328
2329int
2330main (int argc, char **argv)
2331{
2332  int ok = 0;
2333  ${ac_c_conftest_c89_main}
2334  return ok;
2335}
2336"
2337
2338as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2339as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2340as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2341as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2342as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2343as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2344as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2345as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2346as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2347
2348# Auxiliary files required by this configure script.
2349ac_aux_files="config.guess config.sub compile missing install-sh"
2350
2351# Locations in which to look for auxiliary files.
2352ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2353
2354# Search for a directory containing all of the required auxiliary files,
2355# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2356# If we don't find one directory that contains all the files we need,
2357# we report the set of missing files from the *first* directory in
2358# $ac_aux_dir_candidates and give up.
2359ac_missing_aux_files=""
2360ac_first_candidate=:
2361printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363as_found=false
2364for as_dir in $ac_aux_dir_candidates
2365do
2366  IFS=$as_save_IFS
2367  case $as_dir in #(((
2368    '') as_dir=./ ;;
2369    */) ;;
2370    *) as_dir=$as_dir/ ;;
2371  esac
2372  as_found=:
2373
2374  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2375  ac_aux_dir_found=yes
2376  ac_install_sh=
2377  for ac_aux in $ac_aux_files
2378  do
2379    # As a special case, if "install-sh" is required, that requirement
2380    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2381    # and $ac_install_sh is set appropriately for whichever one is found.
2382    if test x"$ac_aux" = x"install-sh"
2383    then
2384      if test -f "${as_dir}install-sh"; then
2385        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2386        ac_install_sh="${as_dir}install-sh -c"
2387      elif test -f "${as_dir}install.sh"; then
2388        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2389        ac_install_sh="${as_dir}install.sh -c"
2390      elif test -f "${as_dir}shtool"; then
2391        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2392        ac_install_sh="${as_dir}shtool install -c"
2393      else
2394        ac_aux_dir_found=no
2395        if $ac_first_candidate; then
2396          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2397        else
2398          break
2399        fi
2400      fi
2401    else
2402      if test -f "${as_dir}${ac_aux}"; then
2403        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2404      else
2405        ac_aux_dir_found=no
2406        if $ac_first_candidate; then
2407          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2408        else
2409          break
2410        fi
2411      fi
2412    fi
2413  done
2414  if test "$ac_aux_dir_found" = yes; then
2415    ac_aux_dir="$as_dir"
2416    break
2417  fi
2418  ac_first_candidate=false
2419
2420  as_found=false
2421done
2422IFS=$as_save_IFS
2423if $as_found
2424then :
2425
2426else case e in #(
2427  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2428esac
2429fi
2430
2431
2432# These three variables are undocumented and unsupported,
2433# and are intended to be withdrawn in a future Autoconf release.
2434# They can cause serious problems if a builder's source tree is in a directory
2435# whose full name contains unusual characters.
2436if test -f "${ac_aux_dir}config.guess"; then
2437  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2438fi
2439if test -f "${ac_aux_dir}config.sub"; then
2440  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2441fi
2442if test -f "$ac_aux_dir/configure"; then
2443  ac_configure="$SHELL ${ac_aux_dir}configure"
2444fi
2445
2446# Check that the precious variables saved in the cache have kept the same
2447# value.
2448ac_cache_corrupted=false
2449for ac_var in $ac_precious_vars; do
2450  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2451  eval ac_new_set=\$ac_env_${ac_var}_set
2452  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2453  eval ac_new_val=\$ac_env_${ac_var}_value
2454  case $ac_old_set,$ac_new_set in
2455    set,)
2456      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2457printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2458      ac_cache_corrupted=: ;;
2459    ,set)
2460      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2461printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2462      ac_cache_corrupted=: ;;
2463    ,);;
2464    *)
2465      if test "x$ac_old_val" != "x$ac_new_val"; then
2466	# differences in whitespace do not lead to failure.
2467	ac_old_val_w=`echo x $ac_old_val`
2468	ac_new_val_w=`echo x $ac_new_val`
2469	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2470	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2471printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2472	  ac_cache_corrupted=:
2473	else
2474	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2475printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2476	  eval $ac_var=\$ac_old_val
2477	fi
2478	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2479printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2480	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2481printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2482      fi;;
2483  esac
2484  # Pass precious variables to config.status.
2485  if test "$ac_new_set" = set; then
2486    case $ac_new_val in
2487    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2488    *) ac_arg=$ac_var=$ac_new_val ;;
2489    esac
2490    case " $ac_configure_args " in
2491      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2492      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2493    esac
2494  fi
2495done
2496if $ac_cache_corrupted; then
2497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2498printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2500printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2501  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2502	    and start over" "$LINENO" 5
2503fi
2504## -------------------- ##
2505## Main body of script. ##
2506## -------------------- ##
2507
2508ac_ext=c
2509ac_cpp='$CPP $CPPFLAGS'
2510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2512ac_compiler_gnu=$ac_cv_c_compiler_gnu
2513
2514
2515
2516ac_config_headers="$ac_config_headers config.h"
2517
2518
2519# Initialize Automake
2520am__api_version='1.17'
2521
2522
2523
2524  # Find a good install program.  We prefer a C program (faster),
2525# so one script is as good as another.  But avoid the broken or
2526# incompatible versions:
2527# SysV /etc/install, /usr/sbin/install
2528# SunOS /usr/etc/install
2529# IRIX /sbin/install
2530# AIX /bin/install
2531# AmigaOS /C/install, which installs bootblocks on floppy discs
2532# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2533# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2534# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2535# OS/2's system install, which has a completely different semantic
2536# ./install, which can be erroneously created by make from ./install.sh.
2537# Reject install programs that cannot install multiple files.
2538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2539printf %s "checking for a BSD-compatible install... " >&6; }
2540if test -z "$INSTALL"; then
2541if test ${ac_cv_path_install+y}
2542then :
2543  printf %s "(cached) " >&6
2544else case e in #(
2545  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546for as_dir in $PATH
2547do
2548  IFS=$as_save_IFS
2549  case $as_dir in #(((
2550    '') as_dir=./ ;;
2551    */) ;;
2552    *) as_dir=$as_dir/ ;;
2553  esac
2554    # Account for fact that we put trailing slashes in our PATH walk.
2555case $as_dir in #((
2556  ./ | /[cC]/* | \
2557  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2558  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2559  /usr/ucb/* ) ;;
2560  *)
2561    # OSF1 and SCO ODT 3.0 have their own names for install.
2562    # Don't use installbsd from OSF since it installs stuff as root
2563    # by default.
2564    for ac_prog in ginstall scoinst install; do
2565      for ac_exec_ext in '' $ac_executable_extensions; do
2566	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2567	  if test $ac_prog = install &&
2568	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569	    # AIX install.  It has an incompatible calling convention.
2570	    :
2571	  elif test $ac_prog = install &&
2572	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2573	    # program-specific install script used by HP pwplus--don't use.
2574	    :
2575	  else
2576	    rm -rf conftest.one conftest.two conftest.dir
2577	    echo one > conftest.one
2578	    echo two > conftest.two
2579	    mkdir conftest.dir
2580	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2581	      test -s conftest.one && test -s conftest.two &&
2582	      test -s conftest.dir/conftest.one &&
2583	      test -s conftest.dir/conftest.two
2584	    then
2585	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2586	      break 3
2587	    fi
2588	  fi
2589	fi
2590      done
2591    done
2592    ;;
2593esac
2594
2595  done
2596IFS=$as_save_IFS
2597
2598rm -rf conftest.one conftest.two conftest.dir
2599 ;;
2600esac
2601fi
2602  if test ${ac_cv_path_install+y}; then
2603    INSTALL=$ac_cv_path_install
2604  else
2605    # As a last resort, use the slow shell script.  Don't cache a
2606    # value for INSTALL within a source directory, because that will
2607    # break other packages using the cache if that directory is
2608    # removed, or if the value is a relative name.
2609    INSTALL=$ac_install_sh
2610  fi
2611fi
2612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2613printf "%s\n" "$INSTALL" >&6; }
2614
2615# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2616# It thinks the first close brace ends the variable substitution.
2617test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2618
2619test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2620
2621test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2622
2623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2624printf %s "checking whether sleep supports fractional seconds... " >&6; }
2625if test ${am_cv_sleep_fractional_seconds+y}
2626then :
2627  printf %s "(cached) " >&6
2628else case e in #(
2629  e) if sleep 0.001 2>/dev/null
2630then :
2631  am_cv_sleep_fractional_seconds=yes
2632else case e in #(
2633  e) am_cv_sleep_fractional_seconds=no ;;
2634esac
2635fi
2636 ;;
2637esac
2638fi
2639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2640printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2641
2642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2643printf %s "checking filesystem timestamp resolution... " >&6; }
2644if test ${am_cv_filesystem_timestamp_resolution+y}
2645then :
2646  printf %s "(cached) " >&6
2647else case e in #(
2648  e) # Default to the worst case.
2649am_cv_filesystem_timestamp_resolution=2
2650
2651# Only try to go finer than 1 sec if sleep can do it.
2652# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2653# - 1 sec is not much of a win compared to 2 sec, and
2654# - it takes 2 seconds to perform the test whether 1 sec works.
2655#
2656# Instead, just use the default 2s on platforms that have 1s resolution,
2657# accept the extra 1s delay when using $sleep in the Automake tests, in
2658# exchange for not incurring the 2s delay for running the test for all
2659# packages.
2660#
2661am_try_resolutions=
2662if test "$am_cv_sleep_fractional_seconds" = yes; then
2663  # Even a millisecond often causes a bunch of false positives,
2664  # so just try a hundredth of a second. The time saved between .001 and
2665  # .01 is not terribly consequential.
2666  am_try_resolutions="0.01 0.1 $am_try_resolutions"
2667fi
2668
2669# In order to catch current-generation FAT out, we must *modify* files
2670# that already exist; the *creation* timestamp is finer.  Use names
2671# that make ls -t sort them differently when they have equal
2672# timestamps than when they have distinct timestamps, keeping
2673# in mind that ls -t prints the *newest* file first.
2674rm -f conftest.ts?
2675: > conftest.ts1
2676: > conftest.ts2
2677: > conftest.ts3
2678
2679# Make sure ls -t actually works.  Do 'set' in a subshell so we don't
2680# clobber the current shell's arguments. (Outer-level square brackets
2681# are removed by m4; they're present so that m4 does not expand
2682# <dollar><star>; be careful, easy to get confused.)
2683if (
2684     set X `ls -t conftest.ts[12]` &&
2685     {
2686       test "$*" != "X conftest.ts1 conftest.ts2" ||
2687       test "$*" != "X conftest.ts2 conftest.ts1";
2688     }
2689); then :; else
2690  # If neither matched, then we have a broken ls.  This can happen
2691  # if, for instance, CONFIG_SHELL is bash and it inherits a
2692  # broken ls alias from the environment.  This has actually
2693  # happened.  Such a system could not be considered "sane".
2694  printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2695  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2696printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2697as_fn_error $? "ls -t produces unexpected output.
2698Make sure there is not a broken ls alias in your environment.
2699See 'config.log' for more details" "$LINENO" 5; }
2700fi
2701
2702for am_try_res in $am_try_resolutions; do
2703  # Any one fine-grained sleep might happen to cross the boundary
2704  # between two values of a coarser actual resolution, but if we do
2705  # two fine-grained sleeps in a row, at least one of them will fall
2706  # entirely within a coarse interval.
2707  echo alpha > conftest.ts1
2708  sleep $am_try_res
2709  echo beta > conftest.ts2
2710  sleep $am_try_res
2711  echo gamma > conftest.ts3
2712
2713  # We assume that 'ls -t' will make use of high-resolution
2714  # timestamps if the operating system supports them at all.
2715  if (set X `ls -t conftest.ts?` &&
2716      test "$2" = conftest.ts3 &&
2717      test "$3" = conftest.ts2 &&
2718      test "$4" = conftest.ts1); then
2719    #
2720    # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2721    # because we don't need to test make.
2722    make_ok=true
2723    if test $am_try_res != 1; then
2724      # But if we've succeeded so far with a subsecond resolution, we
2725      # have one more thing to check: make. It can happen that
2726      # everything else supports the subsecond mtimes, but make doesn't;
2727      # notably on macOS, which ships make 3.81 from 2006 (the last one
2728      # released under GPLv2). https://bugs.gnu.org/68808
2729      #
2730      # We test $MAKE if it is defined in the environment, else "make".
2731      # It might get overridden later, but our hope is that in practice
2732      # it does not matter: it is the system "make" which is (by far)
2733      # the most likely to be broken, whereas if the user overrides it,
2734      # probably they did so with a better, or at least not worse, make.
2735      # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2736      #
2737      # Create a Makefile (real tab character here):
2738      rm -f conftest.mk
2739      echo 'conftest.ts1: conftest.ts2' >conftest.mk
2740      echo '	touch conftest.ts2' >>conftest.mk
2741      #
2742      # Now, running
2743      #   touch conftest.ts1; touch conftest.ts2; make
2744      # should touch ts1 because ts2 is newer. This could happen by luck,
2745      # but most often, it will fail if make's support is insufficient. So
2746      # test for several consecutive successes.
2747      #
2748      # (We reuse conftest.ts[12] because we still want to modify existing
2749      # files, not create new ones, per above.)
2750      n=0
2751      make=${MAKE-make}
2752      until test $n -eq 3; do
2753        echo one > conftest.ts1
2754        sleep $am_try_res
2755        echo two > conftest.ts2 # ts2 should now be newer than ts1
2756        if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2757          make_ok=false
2758          break # out of $n loop
2759        fi
2760        n=`expr $n + 1`
2761      done
2762    fi
2763    #
2764    if $make_ok; then
2765      # Everything we know to check worked out, so call this resolution good.
2766      am_cv_filesystem_timestamp_resolution=$am_try_res
2767      break # out of $am_try_res loop
2768    fi
2769    # Otherwise, we'll go on to check the next resolution.
2770  fi
2771done
2772rm -f conftest.ts?
2773# (end _am_filesystem_timestamp_resolution)
2774 ;;
2775esac
2776fi
2777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2778printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2779
2780# This check should not be cached, as it may vary across builds of
2781# different projects.
2782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2783printf %s "checking whether build environment is sane... " >&6; }
2784# Reject unsafe characters in $srcdir or the absolute working directory
2785# name.  Accept space and tab only in the latter.
2786am_lf='
2787'
2788case `pwd` in
2789  *[\\\"\#\$\&\'\`$am_lf]*)
2790    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2791esac
2792case $srcdir in
2793  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2794    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2795esac
2796
2797# Do 'set' in a subshell so we don't clobber the current shell's
2798# arguments.  Must try -L first in case configure is actually a
2799# symlink; some systems play weird games with the mod time of symlinks
2800# (eg FreeBSD returns the mod time of the symlink's containing
2801# directory).
2802am_build_env_is_sane=no
2803am_has_slept=no
2804rm -f conftest.file
2805for am_try in 1 2; do
2806  echo "timestamp, slept: $am_has_slept" > conftest.file
2807  if (
2808    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2809    if test "$*" = "X"; then
2810      # -L didn't work.
2811      set X `ls -t "$srcdir/configure" conftest.file`
2812    fi
2813    test "$2" = conftest.file
2814  ); then
2815    am_build_env_is_sane=yes
2816    break
2817  fi
2818  # Just in case.
2819  sleep "$am_cv_filesystem_timestamp_resolution"
2820  am_has_slept=yes
2821done
2822
2823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2824printf "%s\n" "$am_build_env_is_sane" >&6; }
2825if test "$am_build_env_is_sane" = no; then
2826  as_fn_error $? "newly created file is older than distributed files!
2827Check your system clock" "$LINENO" 5
2828fi
2829
2830# If we didn't sleep, we still need to ensure time stamps of config.status and
2831# generated files are strictly newer.
2832am_sleep_pid=
2833if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2834then :
2835
2836else case e in #(
2837  e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2838  am_sleep_pid=$!
2839 ;;
2840esac
2841fi
2842
2843rm -f conftest.file
2844
2845test "$program_prefix" != NONE &&
2846  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2847# Use a double $ so make ignores it.
2848test "$program_suffix" != NONE &&
2849  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2850# Double any \ or $.
2851# By default was 's,x,x', remove it if useless.
2852ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2853program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2854
2855
2856# Expand $ac_aux_dir to an absolute path.
2857am_aux_dir=`cd "$ac_aux_dir" && pwd`
2858
2859
2860  if test x"${MISSING+set}" != xset; then
2861  MISSING="\${SHELL} '$am_aux_dir/missing'"
2862fi
2863# Use eval to expand $SHELL
2864if eval "$MISSING --is-lightweight"; then
2865  am_missing_run="$MISSING "
2866else
2867  am_missing_run=
2868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2869printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2870fi
2871
2872if test x"${install_sh+set}" != xset; then
2873  case $am_aux_dir in
2874  *\ * | *\	*)
2875    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2876  *)
2877    install_sh="\${SHELL} $am_aux_dir/install-sh"
2878  esac
2879fi
2880
2881# Installed binaries are usually stripped using 'strip' when the user
2882# run "make install-strip".  However 'strip' might not be the right
2883# tool to use in cross-compilation environments, therefore Automake
2884# will honor the 'STRIP' environment variable to overrule this program.
2885if test "$cross_compiling" != no; then
2886  if test -n "$ac_tool_prefix"; then
2887  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2888set dummy ${ac_tool_prefix}strip; ac_word=$2
2889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890printf %s "checking for $ac_word... " >&6; }
2891if test ${ac_cv_prog_STRIP+y}
2892then :
2893  printf %s "(cached) " >&6
2894else case e in #(
2895  e) if test -n "$STRIP"; then
2896  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2897else
2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899for as_dir in $PATH
2900do
2901  IFS=$as_save_IFS
2902  case $as_dir in #(((
2903    '') as_dir=./ ;;
2904    */) ;;
2905    *) as_dir=$as_dir/ ;;
2906  esac
2907    for ac_exec_ext in '' $ac_executable_extensions; do
2908  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2909    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2910    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2911    break 2
2912  fi
2913done
2914  done
2915IFS=$as_save_IFS
2916
2917fi ;;
2918esac
2919fi
2920STRIP=$ac_cv_prog_STRIP
2921if test -n "$STRIP"; then
2922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2923printf "%s\n" "$STRIP" >&6; }
2924else
2925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926printf "%s\n" "no" >&6; }
2927fi
2928
2929
2930fi
2931if test -z "$ac_cv_prog_STRIP"; then
2932  ac_ct_STRIP=$STRIP
2933  # Extract the first word of "strip", so it can be a program name with args.
2934set dummy strip; ac_word=$2
2935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936printf %s "checking for $ac_word... " >&6; }
2937if test ${ac_cv_prog_ac_ct_STRIP+y}
2938then :
2939  printf %s "(cached) " >&6
2940else case e in #(
2941  e) if test -n "$ac_ct_STRIP"; then
2942  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2943else
2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945for as_dir in $PATH
2946do
2947  IFS=$as_save_IFS
2948  case $as_dir in #(((
2949    '') as_dir=./ ;;
2950    */) ;;
2951    *) as_dir=$as_dir/ ;;
2952  esac
2953    for ac_exec_ext in '' $ac_executable_extensions; do
2954  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2955    ac_cv_prog_ac_ct_STRIP="strip"
2956    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2957    break 2
2958  fi
2959done
2960  done
2961IFS=$as_save_IFS
2962
2963fi ;;
2964esac
2965fi
2966ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2967if test -n "$ac_ct_STRIP"; then
2968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2969printf "%s\n" "$ac_ct_STRIP" >&6; }
2970else
2971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972printf "%s\n" "no" >&6; }
2973fi
2974
2975  if test "x$ac_ct_STRIP" = x; then
2976    STRIP=":"
2977  else
2978    case $cross_compiling:$ac_tool_warned in
2979yes:)
2980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2981printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2982ac_tool_warned=yes ;;
2983esac
2984    STRIP=$ac_ct_STRIP
2985  fi
2986else
2987  STRIP="$ac_cv_prog_STRIP"
2988fi
2989
2990fi
2991INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2992
2993
2994  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2995printf %s "checking for a race-free mkdir -p... " >&6; }
2996if test -z "$MKDIR_P"; then
2997  if test ${ac_cv_path_mkdir+y}
2998then :
2999  printf %s "(cached) " >&6
3000else case e in #(
3001  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3003do
3004  IFS=$as_save_IFS
3005  case $as_dir in #(((
3006    '') as_dir=./ ;;
3007    */) ;;
3008    *) as_dir=$as_dir/ ;;
3009  esac
3010    for ac_prog in mkdir gmkdir; do
3011	 for ac_exec_ext in '' $ac_executable_extensions; do
3012	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3013	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3014	     'mkdir ('*'coreutils) '* | \
3015	     *'BusyBox '* | \
3016	     'mkdir (fileutils) '4.1*)
3017	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3018	       break 3;;
3019	   esac
3020	 done
3021       done
3022  done
3023IFS=$as_save_IFS
3024 ;;
3025esac
3026fi
3027
3028  test -d ./--version && rmdir ./--version
3029  if test ${ac_cv_path_mkdir+y}; then
3030    MKDIR_P="$ac_cv_path_mkdir -p"
3031  else
3032    # As a last resort, use plain mkdir -p,
3033    # in the hope it doesn't have the bugs of ancient mkdir.
3034    MKDIR_P='mkdir -p'
3035  fi
3036fi
3037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3038printf "%s\n" "$MKDIR_P" >&6; }
3039
3040for ac_prog in gawk mawk nawk awk
3041do
3042  # Extract the first word of "$ac_prog", so it can be a program name with args.
3043set dummy $ac_prog; ac_word=$2
3044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045printf %s "checking for $ac_word... " >&6; }
3046if test ${ac_cv_prog_AWK+y}
3047then :
3048  printf %s "(cached) " >&6
3049else case e in #(
3050  e) if test -n "$AWK"; then
3051  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3052else
3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054for as_dir in $PATH
3055do
3056  IFS=$as_save_IFS
3057  case $as_dir in #(((
3058    '') as_dir=./ ;;
3059    */) ;;
3060    *) as_dir=$as_dir/ ;;
3061  esac
3062    for ac_exec_ext in '' $ac_executable_extensions; do
3063  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3064    ac_cv_prog_AWK="$ac_prog"
3065    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3066    break 2
3067  fi
3068done
3069  done
3070IFS=$as_save_IFS
3071
3072fi ;;
3073esac
3074fi
3075AWK=$ac_cv_prog_AWK
3076if test -n "$AWK"; then
3077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3078printf "%s\n" "$AWK" >&6; }
3079else
3080  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081printf "%s\n" "no" >&6; }
3082fi
3083
3084
3085  test -n "$AWK" && break
3086done
3087
3088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3089printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3090set x ${MAKE-make}
3091ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3092if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3093then :
3094  printf %s "(cached) " >&6
3095else case e in #(
3096  e) cat >conftest.make <<\_ACEOF
3097SHELL = /bin/sh
3098all:
3099	@echo '@@@%%%=$(MAKE)=@@@%%%'
3100_ACEOF
3101# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3102case `${MAKE-make} -f conftest.make 2>/dev/null` in
3103  *@@@%%%=?*=@@@%%%*)
3104    eval ac_cv_prog_make_${ac_make}_set=yes;;
3105  *)
3106    eval ac_cv_prog_make_${ac_make}_set=no;;
3107esac
3108rm -f conftest.make ;;
3109esac
3110fi
3111if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113printf "%s\n" "yes" >&6; }
3114  SET_MAKE=
3115else
3116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117printf "%s\n" "no" >&6; }
3118  SET_MAKE="MAKE=${MAKE-make}"
3119fi
3120
3121rm -rf .tst 2>/dev/null
3122mkdir .tst 2>/dev/null
3123if test -d .tst; then
3124  am__leading_dot=.
3125else
3126  am__leading_dot=_
3127fi
3128rmdir .tst 2>/dev/null
3129
3130AM_DEFAULT_VERBOSITY=1
3131# Check whether --enable-silent-rules was given.
3132if test ${enable_silent_rules+y}
3133then :
3134  enableval=$enable_silent_rules;
3135fi
3136
3137am_make=${MAKE-make}
3138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3139printf %s "checking whether $am_make supports nested variables... " >&6; }
3140if test ${am_cv_make_support_nested_variables+y}
3141then :
3142  printf %s "(cached) " >&6
3143else case e in #(
3144  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3145BAR0=false
3146BAR1=true
3147V=1
3148am__doit:
3149	@$(TRUE)
3150.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3151  am_cv_make_support_nested_variables=yes
3152else
3153  am_cv_make_support_nested_variables=no
3154fi ;;
3155esac
3156fi
3157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3158printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3159AM_BACKSLASH='\'
3160
3161am__rm_f_notfound=
3162if (rm -f && rm -fr && rm -rf) 2>/dev/null
3163then :
3164
3165else case e in #(
3166  e) am__rm_f_notfound='""' ;;
3167esac
3168fi
3169
3170
3171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3172printf %s "checking xargs -n works... " >&6; }
3173if test ${am_cv_xargs_n_works+y}
3174then :
3175  printf %s "(cached) " >&6
3176else case e in #(
3177  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
31783"
3179then :
3180  am_cv_xargs_n_works=yes
3181else case e in #(
3182  e) am_cv_xargs_n_works=no ;;
3183esac
3184fi ;;
3185esac
3186fi
3187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3188printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3189if test "$am_cv_xargs_n_works" = yes
3190then :
3191  am__xargs_n='xargs -n'
3192else case e in #(
3193  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3194 ;;
3195esac
3196fi
3197
3198if test "`cd $srcdir && pwd`" != "`pwd`"; then
3199  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3200  # is not polluted with repeated "-I."
3201  am__isrc=' -I$(srcdir)'
3202  # test to see if srcdir already configured
3203  if test -f $srcdir/config.status; then
3204    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3205  fi
3206fi
3207
3208# test whether we have cygpath
3209if test -z "$CYGPATH_W"; then
3210  if (cygpath --version) >/dev/null 2>/dev/null; then
3211    CYGPATH_W='cygpath -w'
3212  else
3213    CYGPATH_W=echo
3214  fi
3215fi
3216
3217
3218# Define the identity of the package.
3219 PACKAGE='oclock'
3220 VERSION='1.0.6'
3221
3222
3223printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3224
3225
3226printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3227
3228# Some tools Automake needs.
3229
3230ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3231
3232
3233AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3234
3235
3236AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3237
3238
3239AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3240
3241
3242MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3243
3244# For better backward compatibility.  To be removed once Automake 1.9.x
3245# dies out for good.  For more background, see:
3246# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3247# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3248mkdir_p='$(MKDIR_P)'
3249
3250# We need awk for the "check" target (and possibly the TAP driver).  The
3251# system "awk" is bad on some platforms.
3252# Always define AMTAR for backward compatibility.  Yes, it's still used
3253# in the wild :-(  We should find a proper way to deprecate it ...
3254AMTAR='$${TAR-tar}'
3255
3256
3257# We'll loop over all known methods to create a tar archive until one works.
3258_am_tools='gnutar  pax cpio none'
3259
3260am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3261
3262
3263
3264
3265
3266# Variables for tags utilities; see am/tags.am
3267if test -z "$CTAGS"; then
3268  CTAGS=ctags
3269fi
3270
3271if test -z "$ETAGS"; then
3272  ETAGS=etags
3273fi
3274
3275if test -z "$CSCOPE"; then
3276  CSCOPE=cscope
3277fi
3278
3279
3280
3281
3282
3283
3284
3285
3286# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307DEPDIR="${am__leading_dot}deps"
3308
3309ac_config_commands="$ac_config_commands depfiles"
3310
3311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3312printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3313cat > confinc.mk << 'END'
3314am__doit:
3315	@echo this is the am__doit target >confinc.out
3316.PHONY: am__doit
3317END
3318am__include="#"
3319am__quote=
3320# BSD make does it like this.
3321echo '.include "confinc.mk" # ignored' > confmf.BSD
3322# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3323echo 'include confinc.mk # ignored' > confmf.GNU
3324_am_result=no
3325for s in GNU BSD; do
3326  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3327   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3328   ac_status=$?
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); }
3331  case $?:`cat confinc.out 2>/dev/null` in #(
3332  '0:this is the am__doit target') :
3333    case $s in #(
3334  BSD) :
3335    am__include='.include' am__quote='"' ;; #(
3336  *) :
3337    am__include='include' am__quote='' ;;
3338esac ;; #(
3339  *) :
3340     ;;
3341esac
3342  if test "$am__include" != "#"; then
3343    _am_result="yes ($s style)"
3344    break
3345  fi
3346done
3347rm -f confinc.* confmf.*
3348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3349printf "%s\n" "${_am_result}" >&6; }
3350
3351# Check whether --enable-dependency-tracking was given.
3352if test ${enable_dependency_tracking+y}
3353then :
3354  enableval=$enable_dependency_tracking;
3355fi
3356
3357if test "x$enable_dependency_tracking" != xno; then
3358  am_depcomp="$ac_aux_dir/depcomp"
3359  AMDEPBACKSLASH='\'
3360  am__nodep='_no'
3361fi
3362 if test "x$enable_dependency_tracking" != xno; then
3363  AMDEP_TRUE=
3364  AMDEP_FALSE='#'
3365else
3366  AMDEP_TRUE='#'
3367  AMDEP_FALSE=
3368fi
3369
3370
3371ac_ext=c
3372ac_cpp='$CPP $CPPFLAGS'
3373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376if test -n "$ac_tool_prefix"; then
3377  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3378set dummy ${ac_tool_prefix}gcc; ac_word=$2
3379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380printf %s "checking for $ac_word... " >&6; }
3381if test ${ac_cv_prog_CC+y}
3382then :
3383  printf %s "(cached) " >&6
3384else case e in #(
3385  e) if test -n "$CC"; then
3386  ac_cv_prog_CC="$CC" # Let the user override the test.
3387else
3388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389for as_dir in $PATH
3390do
3391  IFS=$as_save_IFS
3392  case $as_dir in #(((
3393    '') as_dir=./ ;;
3394    */) ;;
3395    *) as_dir=$as_dir/ ;;
3396  esac
3397    for ac_exec_ext in '' $ac_executable_extensions; do
3398  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3399    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3400    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3401    break 2
3402  fi
3403done
3404  done
3405IFS=$as_save_IFS
3406
3407fi ;;
3408esac
3409fi
3410CC=$ac_cv_prog_CC
3411if test -n "$CC"; then
3412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3413printf "%s\n" "$CC" >&6; }
3414else
3415  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416printf "%s\n" "no" >&6; }
3417fi
3418
3419
3420fi
3421if test -z "$ac_cv_prog_CC"; then
3422  ac_ct_CC=$CC
3423  # Extract the first word of "gcc", so it can be a program name with args.
3424set dummy gcc; ac_word=$2
3425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426printf %s "checking for $ac_word... " >&6; }
3427if test ${ac_cv_prog_ac_ct_CC+y}
3428then :
3429  printf %s "(cached) " >&6
3430else case e in #(
3431  e) if test -n "$ac_ct_CC"; then
3432  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3433else
3434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435for as_dir in $PATH
3436do
3437  IFS=$as_save_IFS
3438  case $as_dir in #(((
3439    '') as_dir=./ ;;
3440    */) ;;
3441    *) as_dir=$as_dir/ ;;
3442  esac
3443    for ac_exec_ext in '' $ac_executable_extensions; do
3444  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3445    ac_cv_prog_ac_ct_CC="gcc"
3446    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3447    break 2
3448  fi
3449done
3450  done
3451IFS=$as_save_IFS
3452
3453fi ;;
3454esac
3455fi
3456ac_ct_CC=$ac_cv_prog_ac_ct_CC
3457if test -n "$ac_ct_CC"; then
3458  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3459printf "%s\n" "$ac_ct_CC" >&6; }
3460else
3461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462printf "%s\n" "no" >&6; }
3463fi
3464
3465  if test "x$ac_ct_CC" = x; then
3466    CC=""
3467  else
3468    case $cross_compiling:$ac_tool_warned in
3469yes:)
3470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3471printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3472ac_tool_warned=yes ;;
3473esac
3474    CC=$ac_ct_CC
3475  fi
3476else
3477  CC="$ac_cv_prog_CC"
3478fi
3479
3480if test -z "$CC"; then
3481          if test -n "$ac_tool_prefix"; then
3482    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3483set dummy ${ac_tool_prefix}cc; ac_word=$2
3484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485printf %s "checking for $ac_word... " >&6; }
3486if test ${ac_cv_prog_CC+y}
3487then :
3488  printf %s "(cached) " >&6
3489else case e in #(
3490  e) if test -n "$CC"; then
3491  ac_cv_prog_CC="$CC" # Let the user override the test.
3492else
3493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494for as_dir in $PATH
3495do
3496  IFS=$as_save_IFS
3497  case $as_dir in #(((
3498    '') as_dir=./ ;;
3499    */) ;;
3500    *) as_dir=$as_dir/ ;;
3501  esac
3502    for ac_exec_ext in '' $ac_executable_extensions; do
3503  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3504    ac_cv_prog_CC="${ac_tool_prefix}cc"
3505    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3506    break 2
3507  fi
3508done
3509  done
3510IFS=$as_save_IFS
3511
3512fi ;;
3513esac
3514fi
3515CC=$ac_cv_prog_CC
3516if test -n "$CC"; then
3517  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518printf "%s\n" "$CC" >&6; }
3519else
3520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521printf "%s\n" "no" >&6; }
3522fi
3523
3524
3525  fi
3526fi
3527if test -z "$CC"; then
3528  # Extract the first word of "cc", so it can be a program name with args.
3529set dummy cc; ac_word=$2
3530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531printf %s "checking for $ac_word... " >&6; }
3532if test ${ac_cv_prog_CC+y}
3533then :
3534  printf %s "(cached) " >&6
3535else case e in #(
3536  e) if test -n "$CC"; then
3537  ac_cv_prog_CC="$CC" # Let the user override the test.
3538else
3539  ac_prog_rejected=no
3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH
3542do
3543  IFS=$as_save_IFS
3544  case $as_dir in #(((
3545    '') as_dir=./ ;;
3546    */) ;;
3547    *) as_dir=$as_dir/ ;;
3548  esac
3549    for ac_exec_ext in '' $ac_executable_extensions; do
3550  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3551    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3552       ac_prog_rejected=yes
3553       continue
3554     fi
3555    ac_cv_prog_CC="cc"
3556    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3557    break 2
3558  fi
3559done
3560  done
3561IFS=$as_save_IFS
3562
3563if test $ac_prog_rejected = yes; then
3564  # We found a bogon in the path, so make sure we never use it.
3565  set dummy $ac_cv_prog_CC
3566  shift
3567  if test $# != 0; then
3568    # We chose a different compiler from the bogus one.
3569    # However, it has the same basename, so the bogon will be chosen
3570    # first if we set CC to just the basename; use the full file name.
3571    shift
3572    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3573  fi
3574fi
3575fi ;;
3576esac
3577fi
3578CC=$ac_cv_prog_CC
3579if test -n "$CC"; then
3580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581printf "%s\n" "$CC" >&6; }
3582else
3583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584printf "%s\n" "no" >&6; }
3585fi
3586
3587
3588fi
3589if test -z "$CC"; then
3590  if test -n "$ac_tool_prefix"; then
3591  for ac_prog in cl.exe
3592  do
3593    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3594set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3596printf %s "checking for $ac_word... " >&6; }
3597if test ${ac_cv_prog_CC+y}
3598then :
3599  printf %s "(cached) " >&6
3600else case e in #(
3601  e) if test -n "$CC"; then
3602  ac_cv_prog_CC="$CC" # Let the user override the test.
3603else
3604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605for as_dir in $PATH
3606do
3607  IFS=$as_save_IFS
3608  case $as_dir in #(((
3609    '') as_dir=./ ;;
3610    */) ;;
3611    *) as_dir=$as_dir/ ;;
3612  esac
3613    for ac_exec_ext in '' $ac_executable_extensions; do
3614  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3615    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3616    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3617    break 2
3618  fi
3619done
3620  done
3621IFS=$as_save_IFS
3622
3623fi ;;
3624esac
3625fi
3626CC=$ac_cv_prog_CC
3627if test -n "$CC"; then
3628  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3629printf "%s\n" "$CC" >&6; }
3630else
3631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632printf "%s\n" "no" >&6; }
3633fi
3634
3635
3636    test -n "$CC" && break
3637  done
3638fi
3639if test -z "$CC"; then
3640  ac_ct_CC=$CC
3641  for ac_prog in cl.exe
3642do
3643  # Extract the first word of "$ac_prog", so it can be a program name with args.
3644set dummy $ac_prog; ac_word=$2
3645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646printf %s "checking for $ac_word... " >&6; }
3647if test ${ac_cv_prog_ac_ct_CC+y}
3648then :
3649  printf %s "(cached) " >&6
3650else case e in #(
3651  e) if test -n "$ac_ct_CC"; then
3652  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3653else
3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655for as_dir in $PATH
3656do
3657  IFS=$as_save_IFS
3658  case $as_dir in #(((
3659    '') as_dir=./ ;;
3660    */) ;;
3661    *) as_dir=$as_dir/ ;;
3662  esac
3663    for ac_exec_ext in '' $ac_executable_extensions; do
3664  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3665    ac_cv_prog_ac_ct_CC="$ac_prog"
3666    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3667    break 2
3668  fi
3669done
3670  done
3671IFS=$as_save_IFS
3672
3673fi ;;
3674esac
3675fi
3676ac_ct_CC=$ac_cv_prog_ac_ct_CC
3677if test -n "$ac_ct_CC"; then
3678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3679printf "%s\n" "$ac_ct_CC" >&6; }
3680else
3681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682printf "%s\n" "no" >&6; }
3683fi
3684
3685
3686  test -n "$ac_ct_CC" && break
3687done
3688
3689  if test "x$ac_ct_CC" = x; then
3690    CC=""
3691  else
3692    case $cross_compiling:$ac_tool_warned in
3693yes:)
3694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3695printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3696ac_tool_warned=yes ;;
3697esac
3698    CC=$ac_ct_CC
3699  fi
3700fi
3701
3702fi
3703if test -z "$CC"; then
3704  if test -n "$ac_tool_prefix"; then
3705  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3706set dummy ${ac_tool_prefix}clang; ac_word=$2
3707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708printf %s "checking for $ac_word... " >&6; }
3709if test ${ac_cv_prog_CC+y}
3710then :
3711  printf %s "(cached) " >&6
3712else case e in #(
3713  e) if test -n "$CC"; then
3714  ac_cv_prog_CC="$CC" # Let the user override the test.
3715else
3716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717for as_dir in $PATH
3718do
3719  IFS=$as_save_IFS
3720  case $as_dir in #(((
3721    '') as_dir=./ ;;
3722    */) ;;
3723    *) as_dir=$as_dir/ ;;
3724  esac
3725    for ac_exec_ext in '' $ac_executable_extensions; do
3726  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3727    ac_cv_prog_CC="${ac_tool_prefix}clang"
3728    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3729    break 2
3730  fi
3731done
3732  done
3733IFS=$as_save_IFS
3734
3735fi ;;
3736esac
3737fi
3738CC=$ac_cv_prog_CC
3739if test -n "$CC"; then
3740  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3741printf "%s\n" "$CC" >&6; }
3742else
3743  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744printf "%s\n" "no" >&6; }
3745fi
3746
3747
3748fi
3749if test -z "$ac_cv_prog_CC"; then
3750  ac_ct_CC=$CC
3751  # Extract the first word of "clang", so it can be a program name with args.
3752set dummy clang; ac_word=$2
3753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754printf %s "checking for $ac_word... " >&6; }
3755if test ${ac_cv_prog_ac_ct_CC+y}
3756then :
3757  printf %s "(cached) " >&6
3758else case e in #(
3759  e) if test -n "$ac_ct_CC"; then
3760  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3761else
3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763for as_dir in $PATH
3764do
3765  IFS=$as_save_IFS
3766  case $as_dir in #(((
3767    '') as_dir=./ ;;
3768    */) ;;
3769    *) as_dir=$as_dir/ ;;
3770  esac
3771    for ac_exec_ext in '' $ac_executable_extensions; do
3772  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3773    ac_cv_prog_ac_ct_CC="clang"
3774    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3775    break 2
3776  fi
3777done
3778  done
3779IFS=$as_save_IFS
3780
3781fi ;;
3782esac
3783fi
3784ac_ct_CC=$ac_cv_prog_ac_ct_CC
3785if test -n "$ac_ct_CC"; then
3786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3787printf "%s\n" "$ac_ct_CC" >&6; }
3788else
3789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790printf "%s\n" "no" >&6; }
3791fi
3792
3793  if test "x$ac_ct_CC" = x; then
3794    CC=""
3795  else
3796    case $cross_compiling:$ac_tool_warned in
3797yes:)
3798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3799printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3800ac_tool_warned=yes ;;
3801esac
3802    CC=$ac_ct_CC
3803  fi
3804else
3805  CC="$ac_cv_prog_CC"
3806fi
3807
3808fi
3809
3810
3811test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3812printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3813as_fn_error $? "no acceptable C compiler found in \$PATH
3814See 'config.log' for more details" "$LINENO" 5; }
3815
3816# Provide some information about the compiler.
3817printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3818set X $ac_compile
3819ac_compiler=$2
3820for ac_option in --version -v -V -qversion -version; do
3821  { { ac_try="$ac_compiler $ac_option >&5"
3822case "(($ac_try" in
3823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824  *) ac_try_echo=$ac_try;;
3825esac
3826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827printf "%s\n" "$ac_try_echo"; } >&5
3828  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3829  ac_status=$?
3830  if test -s conftest.err; then
3831    sed '10a\
3832... rest of stderr output deleted ...
3833         10q' conftest.err >conftest.er1
3834    cat conftest.er1 >&5
3835  fi
3836  rm -f conftest.er1 conftest.err
3837  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838  test $ac_status = 0; }
3839done
3840
3841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842/* end confdefs.h.  */
3843
3844int
3845main (void)
3846{
3847
3848  ;
3849  return 0;
3850}
3851_ACEOF
3852ac_clean_files_save=$ac_clean_files
3853ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3854# Try to create an executable without -o first, disregard a.out.
3855# It will help us diagnose broken compilers, and finding out an intuition
3856# of exeext.
3857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3858printf %s "checking whether the C compiler works... " >&6; }
3859ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3860
3861# The possible output files:
3862ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3863
3864ac_rmfiles=
3865for ac_file in $ac_files
3866do
3867  case $ac_file in
3868    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3869    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3870  esac
3871done
3872rm -f $ac_rmfiles
3873
3874if { { ac_try="$ac_link_default"
3875case "(($ac_try" in
3876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877  *) ac_try_echo=$ac_try;;
3878esac
3879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880printf "%s\n" "$ac_try_echo"; } >&5
3881  (eval "$ac_link_default") 2>&5
3882  ac_status=$?
3883  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884  test $ac_status = 0; }
3885then :
3886  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3887# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3888# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3889# so that the user can short-circuit this test for compilers unknown to
3890# Autoconf.
3891for ac_file in $ac_files ''
3892do
3893  test -f "$ac_file" || continue
3894  case $ac_file in
3895    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3896	;;
3897    [ab].out )
3898	# We found the default executable, but exeext='' is most
3899	# certainly right.
3900	break;;
3901    *.* )
3902	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3903	then :; else
3904	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3905	fi
3906	# We set ac_cv_exeext here because the later test for it is not
3907	# safe: cross compilers may not add the suffix if given an '-o'
3908	# argument, so we may need to know it at that point already.
3909	# Even if this section looks crufty: it has the advantage of
3910	# actually working.
3911	break;;
3912    * )
3913	break;;
3914  esac
3915done
3916test "$ac_cv_exeext" = no && ac_cv_exeext=
3917
3918else case e in #(
3919  e) ac_file='' ;;
3920esac
3921fi
3922if test -z "$ac_file"
3923then :
3924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925printf "%s\n" "no" >&6; }
3926printf "%s\n" "$as_me: failed program was:" >&5
3927sed 's/^/| /' conftest.$ac_ext >&5
3928
3929{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3930printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3931as_fn_error 77 "C compiler cannot create executables
3932See 'config.log' for more details" "$LINENO" 5; }
3933else case e in #(
3934  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3935printf "%s\n" "yes" >&6; } ;;
3936esac
3937fi
3938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3939printf %s "checking for C compiler default output file name... " >&6; }
3940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3941printf "%s\n" "$ac_file" >&6; }
3942ac_exeext=$ac_cv_exeext
3943
3944rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3945ac_clean_files=$ac_clean_files_save
3946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3947printf %s "checking for suffix of executables... " >&6; }
3948if { { ac_try="$ac_link"
3949case "(($ac_try" in
3950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951  *) ac_try_echo=$ac_try;;
3952esac
3953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954printf "%s\n" "$ac_try_echo"; } >&5
3955  (eval "$ac_link") 2>&5
3956  ac_status=$?
3957  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958  test $ac_status = 0; }
3959then :
3960  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3961# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3962# work properly (i.e., refer to 'conftest.exe'), while it won't with
3963# 'rm'.
3964for ac_file in conftest.exe conftest conftest.*; do
3965  test -f "$ac_file" || continue
3966  case $ac_file in
3967    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3968    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3969	  break;;
3970    * ) break;;
3971  esac
3972done
3973else case e in #(
3974  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3975printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3976as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3977See 'config.log' for more details" "$LINENO" 5; } ;;
3978esac
3979fi
3980rm -f conftest conftest$ac_cv_exeext
3981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3982printf "%s\n" "$ac_cv_exeext" >&6; }
3983
3984rm -f conftest.$ac_ext
3985EXEEXT=$ac_cv_exeext
3986ac_exeext=$EXEEXT
3987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988/* end confdefs.h.  */
3989#include <stdio.h>
3990int
3991main (void)
3992{
3993FILE *f = fopen ("conftest.out", "w");
3994 if (!f)
3995  return 1;
3996 return ferror (f) || fclose (f) != 0;
3997
3998  ;
3999  return 0;
4000}
4001_ACEOF
4002ac_clean_files="$ac_clean_files conftest.out"
4003# Check that the compiler produces executables we can run.  If not, either
4004# the compiler is broken, or we cross compile.
4005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4006printf %s "checking whether we are cross compiling... " >&6; }
4007if test "$cross_compiling" != yes; then
4008  { { ac_try="$ac_link"
4009case "(($ac_try" in
4010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011  *) ac_try_echo=$ac_try;;
4012esac
4013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014printf "%s\n" "$ac_try_echo"; } >&5
4015  (eval "$ac_link") 2>&5
4016  ac_status=$?
4017  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018  test $ac_status = 0; }
4019  if { ac_try='./conftest$ac_cv_exeext'
4020  { { case "(($ac_try" in
4021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022  *) ac_try_echo=$ac_try;;
4023esac
4024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025printf "%s\n" "$ac_try_echo"; } >&5
4026  (eval "$ac_try") 2>&5
4027  ac_status=$?
4028  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029  test $ac_status = 0; }; }; then
4030    cross_compiling=no
4031  else
4032    if test "$cross_compiling" = maybe; then
4033	cross_compiling=yes
4034    else
4035	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4036printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4037as_fn_error 77 "cannot run C compiled programs.
4038If you meant to cross compile, use '--host'.
4039See 'config.log' for more details" "$LINENO" 5; }
4040    fi
4041  fi
4042fi
4043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4044printf "%s\n" "$cross_compiling" >&6; }
4045
4046rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4047  conftest.o conftest.obj conftest.out
4048ac_clean_files=$ac_clean_files_save
4049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4050printf %s "checking for suffix of object files... " >&6; }
4051if test ${ac_cv_objext+y}
4052then :
4053  printf %s "(cached) " >&6
4054else case e in #(
4055  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056/* end confdefs.h.  */
4057
4058int
4059main (void)
4060{
4061
4062  ;
4063  return 0;
4064}
4065_ACEOF
4066rm -f conftest.o conftest.obj
4067if { { ac_try="$ac_compile"
4068case "(($ac_try" in
4069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070  *) ac_try_echo=$ac_try;;
4071esac
4072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073printf "%s\n" "$ac_try_echo"; } >&5
4074  (eval "$ac_compile") 2>&5
4075  ac_status=$?
4076  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077  test $ac_status = 0; }
4078then :
4079  for ac_file in conftest.o conftest.obj conftest.*; do
4080  test -f "$ac_file" || continue;
4081  case $ac_file in
4082    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4083    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4084       break;;
4085  esac
4086done
4087else case e in #(
4088  e) printf "%s\n" "$as_me: failed program was:" >&5
4089sed 's/^/| /' conftest.$ac_ext >&5
4090
4091{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4092printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4093as_fn_error $? "cannot compute suffix of object files: cannot compile
4094See 'config.log' for more details" "$LINENO" 5; } ;;
4095esac
4096fi
4097rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4098esac
4099fi
4100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4101printf "%s\n" "$ac_cv_objext" >&6; }
4102OBJEXT=$ac_cv_objext
4103ac_objext=$OBJEXT
4104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4105printf %s "checking whether the compiler supports GNU C... " >&6; }
4106if test ${ac_cv_c_compiler_gnu+y}
4107then :
4108  printf %s "(cached) " >&6
4109else case e in #(
4110  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111/* end confdefs.h.  */
4112
4113int
4114main (void)
4115{
4116#ifndef __GNUC__
4117       choke me
4118#endif
4119
4120  ;
4121  return 0;
4122}
4123_ACEOF
4124if ac_fn_c_try_compile "$LINENO"
4125then :
4126  ac_compiler_gnu=yes
4127else case e in #(
4128  e) ac_compiler_gnu=no ;;
4129esac
4130fi
4131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4132ac_cv_c_compiler_gnu=$ac_compiler_gnu
4133 ;;
4134esac
4135fi
4136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4137printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4138ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139
4140if test $ac_compiler_gnu = yes; then
4141  GCC=yes
4142else
4143  GCC=
4144fi
4145ac_test_CFLAGS=${CFLAGS+y}
4146ac_save_CFLAGS=$CFLAGS
4147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4148printf %s "checking whether $CC accepts -g... " >&6; }
4149if test ${ac_cv_prog_cc_g+y}
4150then :
4151  printf %s "(cached) " >&6
4152else case e in #(
4153  e) ac_save_c_werror_flag=$ac_c_werror_flag
4154   ac_c_werror_flag=yes
4155   ac_cv_prog_cc_g=no
4156   CFLAGS="-g"
4157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158/* end confdefs.h.  */
4159
4160int
4161main (void)
4162{
4163
4164  ;
4165  return 0;
4166}
4167_ACEOF
4168if ac_fn_c_try_compile "$LINENO"
4169then :
4170  ac_cv_prog_cc_g=yes
4171else case e in #(
4172  e) CFLAGS=""
4173      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174/* end confdefs.h.  */
4175
4176int
4177main (void)
4178{
4179
4180  ;
4181  return 0;
4182}
4183_ACEOF
4184if ac_fn_c_try_compile "$LINENO"
4185then :
4186
4187else case e in #(
4188  e) ac_c_werror_flag=$ac_save_c_werror_flag
4189	 CFLAGS="-g"
4190	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191/* end confdefs.h.  */
4192
4193int
4194main (void)
4195{
4196
4197  ;
4198  return 0;
4199}
4200_ACEOF
4201if ac_fn_c_try_compile "$LINENO"
4202then :
4203  ac_cv_prog_cc_g=yes
4204fi
4205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4206esac
4207fi
4208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4209esac
4210fi
4211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4212   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4213esac
4214fi
4215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4216printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4217if test $ac_test_CFLAGS; then
4218  CFLAGS=$ac_save_CFLAGS
4219elif test $ac_cv_prog_cc_g = yes; then
4220  if test "$GCC" = yes; then
4221    CFLAGS="-g -O2"
4222  else
4223    CFLAGS="-g"
4224  fi
4225else
4226  if test "$GCC" = yes; then
4227    CFLAGS="-O2"
4228  else
4229    CFLAGS=
4230  fi
4231fi
4232ac_prog_cc_stdc=no
4233if test x$ac_prog_cc_stdc = xno
4234then :
4235  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4236printf %s "checking for $CC option to enable C11 features... " >&6; }
4237if test ${ac_cv_prog_cc_c11+y}
4238then :
4239  printf %s "(cached) " >&6
4240else case e in #(
4241  e) ac_cv_prog_cc_c11=no
4242ac_save_CC=$CC
4243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244/* end confdefs.h.  */
4245$ac_c_conftest_c11_program
4246_ACEOF
4247for ac_arg in '' -std=gnu11
4248do
4249  CC="$ac_save_CC $ac_arg"
4250  if ac_fn_c_try_compile "$LINENO"
4251then :
4252  ac_cv_prog_cc_c11=$ac_arg
4253fi
4254rm -f core conftest.err conftest.$ac_objext conftest.beam
4255  test "x$ac_cv_prog_cc_c11" != "xno" && break
4256done
4257rm -f conftest.$ac_ext
4258CC=$ac_save_CC ;;
4259esac
4260fi
4261
4262if test "x$ac_cv_prog_cc_c11" = xno
4263then :
4264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4265printf "%s\n" "unsupported" >&6; }
4266else case e in #(
4267  e) if test "x$ac_cv_prog_cc_c11" = x
4268then :
4269  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4270printf "%s\n" "none needed" >&6; }
4271else case e in #(
4272  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4273printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4274     CC="$CC $ac_cv_prog_cc_c11" ;;
4275esac
4276fi
4277  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4278  ac_prog_cc_stdc=c11 ;;
4279esac
4280fi
4281fi
4282if test x$ac_prog_cc_stdc = xno
4283then :
4284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4285printf %s "checking for $CC option to enable C99 features... " >&6; }
4286if test ${ac_cv_prog_cc_c99+y}
4287then :
4288  printf %s "(cached) " >&6
4289else case e in #(
4290  e) ac_cv_prog_cc_c99=no
4291ac_save_CC=$CC
4292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293/* end confdefs.h.  */
4294$ac_c_conftest_c99_program
4295_ACEOF
4296for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4297do
4298  CC="$ac_save_CC $ac_arg"
4299  if ac_fn_c_try_compile "$LINENO"
4300then :
4301  ac_cv_prog_cc_c99=$ac_arg
4302fi
4303rm -f core conftest.err conftest.$ac_objext conftest.beam
4304  test "x$ac_cv_prog_cc_c99" != "xno" && break
4305done
4306rm -f conftest.$ac_ext
4307CC=$ac_save_CC ;;
4308esac
4309fi
4310
4311if test "x$ac_cv_prog_cc_c99" = xno
4312then :
4313  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4314printf "%s\n" "unsupported" >&6; }
4315else case e in #(
4316  e) if test "x$ac_cv_prog_cc_c99" = x
4317then :
4318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4319printf "%s\n" "none needed" >&6; }
4320else case e in #(
4321  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4322printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4323     CC="$CC $ac_cv_prog_cc_c99" ;;
4324esac
4325fi
4326  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4327  ac_prog_cc_stdc=c99 ;;
4328esac
4329fi
4330fi
4331if test x$ac_prog_cc_stdc = xno
4332then :
4333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4334printf %s "checking for $CC option to enable C89 features... " >&6; }
4335if test ${ac_cv_prog_cc_c89+y}
4336then :
4337  printf %s "(cached) " >&6
4338else case e in #(
4339  e) ac_cv_prog_cc_c89=no
4340ac_save_CC=$CC
4341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342/* end confdefs.h.  */
4343$ac_c_conftest_c89_program
4344_ACEOF
4345for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4346do
4347  CC="$ac_save_CC $ac_arg"
4348  if ac_fn_c_try_compile "$LINENO"
4349then :
4350  ac_cv_prog_cc_c89=$ac_arg
4351fi
4352rm -f core conftest.err conftest.$ac_objext conftest.beam
4353  test "x$ac_cv_prog_cc_c89" != "xno" && break
4354done
4355rm -f conftest.$ac_ext
4356CC=$ac_save_CC ;;
4357esac
4358fi
4359
4360if test "x$ac_cv_prog_cc_c89" = xno
4361then :
4362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4363printf "%s\n" "unsupported" >&6; }
4364else case e in #(
4365  e) if test "x$ac_cv_prog_cc_c89" = x
4366then :
4367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4368printf "%s\n" "none needed" >&6; }
4369else case e in #(
4370  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4371printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4372     CC="$CC $ac_cv_prog_cc_c89" ;;
4373esac
4374fi
4375  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4376  ac_prog_cc_stdc=c89 ;;
4377esac
4378fi
4379fi
4380
4381ac_ext=c
4382ac_cpp='$CPP $CPPFLAGS'
4383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386
4387
4388  ac_ext=c
4389ac_cpp='$CPP $CPPFLAGS'
4390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392ac_compiler_gnu=$ac_cv_c_compiler_gnu
4393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4394printf %s "checking whether $CC understands -c and -o together... " >&6; }
4395if test ${am_cv_prog_cc_c_o+y}
4396then :
4397  printf %s "(cached) " >&6
4398else case e in #(
4399  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400/* end confdefs.h.  */
4401
4402int
4403main (void)
4404{
4405
4406  ;
4407  return 0;
4408}
4409_ACEOF
4410  # Make sure it works both with $CC and with simple cc.
4411  # Following AC_PROG_CC_C_O, we do the test twice because some
4412  # compilers refuse to overwrite an existing .o file with -o,
4413  # though they will create one.
4414  am_cv_prog_cc_c_o=yes
4415  for am_i in 1 2; do
4416    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4417   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4418   ac_status=$?
4419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); } \
4421         && test -f conftest2.$ac_objext; then
4422      : OK
4423    else
4424      am_cv_prog_cc_c_o=no
4425      break
4426    fi
4427  done
4428  rm -f core conftest*
4429  unset am_i ;;
4430esac
4431fi
4432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4433printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4434if test "$am_cv_prog_cc_c_o" != yes; then
4435   # Losing compiler, so override with the script.
4436   # FIXME: It is wrong to rewrite CC.
4437   # But if we don't then we get into trouble of one sort or another.
4438   # A longer-term fix would be to have automake use am__CC in this case,
4439   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4440   CC="$am_aux_dir/compile $CC"
4441fi
4442ac_ext=c
4443ac_cpp='$CPP $CPPFLAGS'
4444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446ac_compiler_gnu=$ac_cv_c_compiler_gnu
4447
4448
4449depcc="$CC"   am_compiler_list=
4450
4451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4452printf %s "checking dependency style of $depcc... " >&6; }
4453if test ${am_cv_CC_dependencies_compiler_type+y}
4454then :
4455  printf %s "(cached) " >&6
4456else case e in #(
4457  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4458  # We make a subdir and do the tests there.  Otherwise we can end up
4459  # making bogus files that we don't know about and never remove.  For
4460  # instance it was reported that on HP-UX the gcc test will end up
4461  # making a dummy file named 'D' -- because '-MD' means "put the output
4462  # in D".
4463  rm -rf conftest.dir
4464  mkdir conftest.dir
4465  # Copy depcomp to subdir because otherwise we won't find it if we're
4466  # using a relative directory.
4467  cp "$am_depcomp" conftest.dir
4468  cd conftest.dir
4469  # We will build objects and dependencies in a subdirectory because
4470  # it helps to detect inapplicable dependency modes.  For instance
4471  # both Tru64's cc and ICC support -MD to output dependencies as a
4472  # side effect of compilation, but ICC will put the dependencies in
4473  # the current directory while Tru64 will put them in the object
4474  # directory.
4475  mkdir sub
4476
4477  am_cv_CC_dependencies_compiler_type=none
4478  if test "$am_compiler_list" = ""; then
4479     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4480  fi
4481  am__universal=false
4482  case " $depcc " in #(
4483     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4484     esac
4485
4486  for depmode in $am_compiler_list; do
4487    # Setup a source with many dependencies, because some compilers
4488    # like to wrap large dependency lists on column 80 (with \), and
4489    # we should not choose a depcomp mode which is confused by this.
4490    #
4491    # We need to recreate these files for each test, as the compiler may
4492    # overwrite some of them when testing with obscure command lines.
4493    # This happens at least with the AIX C compiler.
4494    : > sub/conftest.c
4495    for i in 1 2 3 4 5 6; do
4496      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4497      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4498      # Solaris 10 /bin/sh.
4499      echo '/* dummy */' > sub/conftst$i.h
4500    done
4501    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4502
4503    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4504    # mode.  It turns out that the SunPro C++ compiler does not properly
4505    # handle '-M -o', and we need to detect this.  Also, some Intel
4506    # versions had trouble with output in subdirs.
4507    am__obj=sub/conftest.${OBJEXT-o}
4508    am__minus_obj="-o $am__obj"
4509    case $depmode in
4510    gcc)
4511      # This depmode causes a compiler race in universal mode.
4512      test "$am__universal" = false || continue
4513      ;;
4514    nosideeffect)
4515      # After this tag, mechanisms are not by side-effect, so they'll
4516      # only be used when explicitly requested.
4517      if test "x$enable_dependency_tracking" = xyes; then
4518	continue
4519      else
4520	break
4521      fi
4522      ;;
4523    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4524      # This compiler won't grok '-c -o', but also, the minuso test has
4525      # not run yet.  These depmodes are late enough in the game, and
4526      # so weak that their functioning should not be impacted.
4527      am__obj=conftest.${OBJEXT-o}
4528      am__minus_obj=
4529      ;;
4530    none) break ;;
4531    esac
4532    if depmode=$depmode \
4533       source=sub/conftest.c object=$am__obj \
4534       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4535       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4536         >/dev/null 2>conftest.err &&
4537       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4538       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4539       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4540       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4541      # icc doesn't choke on unknown options, it will just issue warnings
4542      # or remarks (even with -Werror).  So we grep stderr for any message
4543      # that says an option was ignored or not supported.
4544      # When given -MP, icc 7.0 and 7.1 complain thus:
4545      #   icc: Command line warning: ignoring option '-M'; no argument required
4546      # The diagnosis changed in icc 8.0:
4547      #   icc: Command line remark: option '-MP' not supported
4548      if (grep 'ignoring option' conftest.err ||
4549          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4550        am_cv_CC_dependencies_compiler_type=$depmode
4551        break
4552      fi
4553    fi
4554  done
4555
4556  cd ..
4557  rm -rf conftest.dir
4558else
4559  am_cv_CC_dependencies_compiler_type=none
4560fi
4561 ;;
4562esac
4563fi
4564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4565printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4566CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4567
4568 if
4569  test "x$enable_dependency_tracking" != xno \
4570  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4571  am__fastdepCC_TRUE=
4572  am__fastdepCC_FALSE='#'
4573else
4574  am__fastdepCC_TRUE='#'
4575  am__fastdepCC_FALSE=
4576fi
4577
4578
4579
4580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4581printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4582if test ${ac_cv_c_undeclared_builtin_options+y}
4583then :
4584  printf %s "(cached) " >&6
4585else case e in #(
4586  e) ac_save_CFLAGS=$CFLAGS
4587   ac_cv_c_undeclared_builtin_options='cannot detect'
4588   for ac_arg in '' -fno-builtin; do
4589     CFLAGS="$ac_save_CFLAGS $ac_arg"
4590     # This test program should *not* compile successfully.
4591     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592/* end confdefs.h.  */
4593
4594int
4595main (void)
4596{
4597(void) strchr;
4598  ;
4599  return 0;
4600}
4601_ACEOF
4602if ac_fn_c_try_compile "$LINENO"
4603then :
4604
4605else case e in #(
4606  e) # This test program should compile successfully.
4607        # No library function is consistently available on
4608        # freestanding implementations, so test against a dummy
4609        # declaration.  Include always-available headers on the
4610        # off chance that they somehow elicit warnings.
4611        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612/* end confdefs.h.  */
4613#include <float.h>
4614#include <limits.h>
4615#include <stdarg.h>
4616#include <stddef.h>
4617extern void ac_decl (int, char *);
4618
4619int
4620main (void)
4621{
4622(void) ac_decl (0, (char *) 0);
4623  (void) ac_decl;
4624
4625  ;
4626  return 0;
4627}
4628_ACEOF
4629if ac_fn_c_try_compile "$LINENO"
4630then :
4631  if test x"$ac_arg" = x
4632then :
4633  ac_cv_c_undeclared_builtin_options='none needed'
4634else case e in #(
4635  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4636esac
4637fi
4638          break
4639fi
4640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4641esac
4642fi
4643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4644    done
4645    CFLAGS=$ac_save_CFLAGS
4646   ;;
4647esac
4648fi
4649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4650printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4651  case $ac_cv_c_undeclared_builtin_options in #(
4652  'cannot detect') :
4653    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4654printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4655as_fn_error $? "cannot make $CC report undeclared builtins
4656See 'config.log' for more details" "$LINENO" 5; } ;; #(
4657  'none needed') :
4658    ac_c_undeclared_builtin_options='' ;; #(
4659  *) :
4660    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4661esac
4662
4663ac_header= ac_cache=
4664for ac_item in $ac_header_c_list
4665do
4666  if test $ac_cache; then
4667    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4668    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4669      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4670    fi
4671    ac_header= ac_cache=
4672  elif test $ac_header; then
4673    ac_cache=$ac_item
4674  else
4675    ac_header=$ac_item
4676  fi
4677done
4678
4679
4680
4681
4682
4683
4684
4685
4686if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4687then :
4688
4689printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4690
4691fi
4692
4693
4694
4695
4696ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4697if test "x$ac_cv_have_decl___clang__" = xyes
4698then :
4699  CLANGCC="yes"
4700else case e in #(
4701  e) CLANGCC="no" ;;
4702esac
4703fi
4704ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4705if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4706then :
4707  INTELCC="yes"
4708else case e in #(
4709  e) INTELCC="no" ;;
4710esac
4711fi
4712ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4713if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4714then :
4715  SUNCC="yes"
4716else case e in #(
4717  e) SUNCC="no" ;;
4718esac
4719fi
4720
4721
4722
4723
4724
4725
4726
4727
4728if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4729	if test -n "$ac_tool_prefix"; then
4730  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4731set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733printf %s "checking for $ac_word... " >&6; }
4734if test ${ac_cv_path_PKG_CONFIG+y}
4735then :
4736  printf %s "(cached) " >&6
4737else case e in #(
4738  e) case $PKG_CONFIG in
4739  [\\/]* | ?:[\\/]*)
4740  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4741  ;;
4742  *)
4743  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744for as_dir in $PATH
4745do
4746  IFS=$as_save_IFS
4747  case $as_dir in #(((
4748    '') as_dir=./ ;;
4749    */) ;;
4750    *) as_dir=$as_dir/ ;;
4751  esac
4752    for ac_exec_ext in '' $ac_executable_extensions; do
4753  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4754    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4755    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4756    break 2
4757  fi
4758done
4759  done
4760IFS=$as_save_IFS
4761
4762  ;;
4763esac ;;
4764esac
4765fi
4766PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4767if test -n "$PKG_CONFIG"; then
4768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4769printf "%s\n" "$PKG_CONFIG" >&6; }
4770else
4771  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772printf "%s\n" "no" >&6; }
4773fi
4774
4775
4776fi
4777if test -z "$ac_cv_path_PKG_CONFIG"; then
4778  ac_pt_PKG_CONFIG=$PKG_CONFIG
4779  # Extract the first word of "pkg-config", so it can be a program name with args.
4780set dummy pkg-config; ac_word=$2
4781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782printf %s "checking for $ac_word... " >&6; }
4783if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4784then :
4785  printf %s "(cached) " >&6
4786else case e in #(
4787  e) case $ac_pt_PKG_CONFIG in
4788  [\\/]* | ?:[\\/]*)
4789  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4790  ;;
4791  *)
4792  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795  IFS=$as_save_IFS
4796  case $as_dir in #(((
4797    '') as_dir=./ ;;
4798    */) ;;
4799    *) as_dir=$as_dir/ ;;
4800  esac
4801    for ac_exec_ext in '' $ac_executable_extensions; do
4802  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4803    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4804    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4805    break 2
4806  fi
4807done
4808  done
4809IFS=$as_save_IFS
4810
4811  ;;
4812esac ;;
4813esac
4814fi
4815ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4816if test -n "$ac_pt_PKG_CONFIG"; then
4817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4818printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4819else
4820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821printf "%s\n" "no" >&6; }
4822fi
4823
4824  if test "x$ac_pt_PKG_CONFIG" = x; then
4825    PKG_CONFIG=""
4826  else
4827    case $cross_compiling:$ac_tool_warned in
4828yes:)
4829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4830printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4831ac_tool_warned=yes ;;
4832esac
4833    PKG_CONFIG=$ac_pt_PKG_CONFIG
4834  fi
4835else
4836  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4837fi
4838
4839fi
4840if test -n "$PKG_CONFIG"; then
4841	_pkg_min_version=0.9.0
4842	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4843printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4844	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4845		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4846printf "%s\n" "yes" >&6; }
4847	else
4848		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849printf "%s\n" "no" >&6; }
4850		PKG_CONFIG=""
4851	fi
4852fi
4853
4854
4855  # Make sure we can run config.sub.
4856$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4857  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4858
4859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4860printf %s "checking build system type... " >&6; }
4861if test ${ac_cv_build+y}
4862then :
4863  printf %s "(cached) " >&6
4864else case e in #(
4865  e) ac_build_alias=$build_alias
4866test "x$ac_build_alias" = x &&
4867  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4868test "x$ac_build_alias" = x &&
4869  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4870ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4871  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4872 ;;
4873esac
4874fi
4875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4876printf "%s\n" "$ac_cv_build" >&6; }
4877case $ac_cv_build in
4878*-*-*) ;;
4879*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4880esac
4881build=$ac_cv_build
4882ac_save_IFS=$IFS; IFS='-'
4883set x $ac_cv_build
4884shift
4885build_cpu=$1
4886build_vendor=$2
4887shift; shift
4888# Remember, the first character of IFS is used to create $*,
4889# except with old shells:
4890build_os=$*
4891IFS=$ac_save_IFS
4892case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4893
4894
4895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4896printf %s "checking host system type... " >&6; }
4897if test ${ac_cv_host+y}
4898then :
4899  printf %s "(cached) " >&6
4900else case e in #(
4901  e) if test "x$host_alias" = x; then
4902  ac_cv_host=$ac_cv_build
4903else
4904  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4905    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4906fi
4907 ;;
4908esac
4909fi
4910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4911printf "%s\n" "$ac_cv_host" >&6; }
4912case $ac_cv_host in
4913*-*-*) ;;
4914*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4915esac
4916host=$ac_cv_host
4917ac_save_IFS=$IFS; IFS='-'
4918set x $ac_cv_host
4919shift
4920host_cpu=$1
4921host_vendor=$2
4922shift; shift
4923# Remember, the first character of IFS is used to create $*,
4924# except with old shells:
4925host_os=$*
4926IFS=$ac_save_IFS
4927case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4928
4929
4930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4931printf %s "checking for a sed that does not truncate output... " >&6; }
4932if test ${ac_cv_path_SED+y}
4933then :
4934  printf %s "(cached) " >&6
4935else case e in #(
4936  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4937     for ac_i in 1 2 3 4 5 6 7; do
4938       ac_script="$ac_script$as_nl$ac_script"
4939     done
4940     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4941     { ac_script=; unset ac_script;}
4942     if test -z "$SED"; then
4943  ac_path_SED_found=false
4944  # Loop through the user's path and test for each of PROGNAME-LIST
4945  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946for as_dir in $PATH
4947do
4948  IFS=$as_save_IFS
4949  case $as_dir in #(((
4950    '') as_dir=./ ;;
4951    */) ;;
4952    *) as_dir=$as_dir/ ;;
4953  esac
4954    for ac_prog in sed gsed
4955   do
4956    for ac_exec_ext in '' $ac_executable_extensions; do
4957      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4958      as_fn_executable_p "$ac_path_SED" || continue
4959# Check for GNU ac_path_SED and select it if it is found.
4960  # Check for GNU $ac_path_SED
4961case `"$ac_path_SED" --version 2>&1` in #(
4962*GNU*)
4963  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4964#(
4965*)
4966  ac_count=0
4967  printf %s 0123456789 >"conftest.in"
4968  while :
4969  do
4970    cat "conftest.in" "conftest.in" >"conftest.tmp"
4971    mv "conftest.tmp" "conftest.in"
4972    cp "conftest.in" "conftest.nl"
4973    printf "%s\n" '' >> "conftest.nl"
4974    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4975    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4976    as_fn_arith $ac_count + 1 && ac_count=$as_val
4977    if test $ac_count -gt ${ac_path_SED_max-0}; then
4978      # Best one so far, save it but keep looking for a better one
4979      ac_cv_path_SED="$ac_path_SED"
4980      ac_path_SED_max=$ac_count
4981    fi
4982    # 10*(2^10) chars as input seems more than enough
4983    test $ac_count -gt 10 && break
4984  done
4985  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4986esac
4987
4988      $ac_path_SED_found && break 3
4989    done
4990  done
4991  done
4992IFS=$as_save_IFS
4993  if test -z "$ac_cv_path_SED"; then
4994    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4995  fi
4996else
4997  ac_cv_path_SED=$SED
4998fi
4999 ;;
5000esac
5001fi
5002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5003printf "%s\n" "$ac_cv_path_SED" >&6; }
5004 SED="$ac_cv_path_SED"
5005  rm -f conftest.sed
5006
5007
5008
5009
5010
5011
5012# Check whether --enable-selective-werror was given.
5013if test ${enable_selective_werror+y}
5014then :
5015  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5016else case e in #(
5017  e) SELECTIVE_WERROR=yes ;;
5018esac
5019fi
5020
5021
5022
5023
5024
5025# -v is too short to test reliably with XORG_TESTSET_CFLAG
5026if test "x$SUNCC" = "xyes"; then
5027    BASE_CFLAGS="-v"
5028else
5029    BASE_CFLAGS=""
5030fi
5031
5032# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046xorg_testset_save_CFLAGS="$CFLAGS"
5047
5048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5049	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5050	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5051printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5052if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5053then :
5054  printf %s "(cached) " >&6
5055else case e in #(
5056  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057/* end confdefs.h.  */
5058int i;
5059_ACEOF
5060if ac_fn_c_try_compile "$LINENO"
5061then :
5062  xorg_cv_cc_flag_unknown_warning_option=yes
5063else case e in #(
5064  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5065esac
5066fi
5067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5068esac
5069fi
5070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5071printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5072	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5073	CFLAGS="$xorg_testset_save_CFLAGS"
5074fi
5075
5076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5077	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5078		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5079	fi
5080	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5081	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5082printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5083if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5084then :
5085  printf %s "(cached) " >&6
5086else case e in #(
5087  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088/* end confdefs.h.  */
5089int i;
5090_ACEOF
5091if ac_fn_c_try_compile "$LINENO"
5092then :
5093  xorg_cv_cc_flag_unused_command_line_argument=yes
5094else case e in #(
5095  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5096esac
5097fi
5098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5099esac
5100fi
5101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5102printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5103	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5104	CFLAGS="$xorg_testset_save_CFLAGS"
5105fi
5106
5107found="no"
5108
5109	if test $found = "no" ; then
5110		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5111			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5112		fi
5113
5114		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5115			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5116		fi
5117
5118		CFLAGS="$CFLAGS -Wall"
5119
5120		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5121printf %s "checking if $CC supports -Wall... " >&6; }
5122		cacheid=xorg_cv_cc_flag__Wall
5123		if eval test \${$cacheid+y}
5124then :
5125  printf %s "(cached) " >&6
5126else case e in #(
5127  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h.  */
5129int i;
5130int
5131main (void)
5132{
5133
5134  ;
5135  return 0;
5136}
5137_ACEOF
5138if ac_fn_c_try_link "$LINENO"
5139then :
5140  eval $cacheid=yes
5141else case e in #(
5142  e) eval $cacheid=no ;;
5143esac
5144fi
5145rm -f core conftest.err conftest.$ac_objext conftest.beam \
5146    conftest$ac_exeext conftest.$ac_ext ;;
5147esac
5148fi
5149
5150
5151		CFLAGS="$xorg_testset_save_CFLAGS"
5152
5153		eval supported=\$$cacheid
5154		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5155printf "%s\n" "$supported" >&6; }
5156		if test "$supported" = "yes" ; then
5157			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5158			found="yes"
5159		fi
5160	fi
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176xorg_testset_save_CFLAGS="$CFLAGS"
5177
5178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5179	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5180	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5181printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5182if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5183then :
5184  printf %s "(cached) " >&6
5185else case e in #(
5186  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187/* end confdefs.h.  */
5188int i;
5189_ACEOF
5190if ac_fn_c_try_compile "$LINENO"
5191then :
5192  xorg_cv_cc_flag_unknown_warning_option=yes
5193else case e in #(
5194  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5195esac
5196fi
5197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5198esac
5199fi
5200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5201printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5202	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5203	CFLAGS="$xorg_testset_save_CFLAGS"
5204fi
5205
5206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5207	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5208		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5209	fi
5210	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5211	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5212printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5213if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5214then :
5215  printf %s "(cached) " >&6
5216else case e in #(
5217  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218/* end confdefs.h.  */
5219int i;
5220_ACEOF
5221if ac_fn_c_try_compile "$LINENO"
5222then :
5223  xorg_cv_cc_flag_unused_command_line_argument=yes
5224else case e in #(
5225  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5226esac
5227fi
5228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5229esac
5230fi
5231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5232printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5233	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5234	CFLAGS="$xorg_testset_save_CFLAGS"
5235fi
5236
5237found="no"
5238
5239	if test $found = "no" ; then
5240		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5241			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5242		fi
5243
5244		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5245			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5246		fi
5247
5248		CFLAGS="$CFLAGS -Wpointer-arith"
5249
5250		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5251printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5252		cacheid=xorg_cv_cc_flag__Wpointer_arith
5253		if eval test \${$cacheid+y}
5254then :
5255  printf %s "(cached) " >&6
5256else case e in #(
5257  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258/* end confdefs.h.  */
5259int i;
5260int
5261main (void)
5262{
5263
5264  ;
5265  return 0;
5266}
5267_ACEOF
5268if ac_fn_c_try_link "$LINENO"
5269then :
5270  eval $cacheid=yes
5271else case e in #(
5272  e) eval $cacheid=no ;;
5273esac
5274fi
5275rm -f core conftest.err conftest.$ac_objext conftest.beam \
5276    conftest$ac_exeext conftest.$ac_ext ;;
5277esac
5278fi
5279
5280
5281		CFLAGS="$xorg_testset_save_CFLAGS"
5282
5283		eval supported=\$$cacheid
5284		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5285printf "%s\n" "$supported" >&6; }
5286		if test "$supported" = "yes" ; then
5287			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5288			found="yes"
5289		fi
5290	fi
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306xorg_testset_save_CFLAGS="$CFLAGS"
5307
5308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5309	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5310	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5311printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5312if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5313then :
5314  printf %s "(cached) " >&6
5315else case e in #(
5316  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317/* end confdefs.h.  */
5318int i;
5319_ACEOF
5320if ac_fn_c_try_compile "$LINENO"
5321then :
5322  xorg_cv_cc_flag_unknown_warning_option=yes
5323else case e in #(
5324  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5325esac
5326fi
5327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5328esac
5329fi
5330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5331printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5332	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5333	CFLAGS="$xorg_testset_save_CFLAGS"
5334fi
5335
5336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5337	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5338		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5339	fi
5340	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5341	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5342printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5343if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5344then :
5345  printf %s "(cached) " >&6
5346else case e in #(
5347  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348/* end confdefs.h.  */
5349int i;
5350_ACEOF
5351if ac_fn_c_try_compile "$LINENO"
5352then :
5353  xorg_cv_cc_flag_unused_command_line_argument=yes
5354else case e in #(
5355  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5356esac
5357fi
5358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5359esac
5360fi
5361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5362printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5363	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5364	CFLAGS="$xorg_testset_save_CFLAGS"
5365fi
5366
5367found="no"
5368
5369	if test $found = "no" ; then
5370		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5371			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5372		fi
5373
5374		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5375			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5376		fi
5377
5378		CFLAGS="$CFLAGS -Wmissing-declarations"
5379
5380		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5381printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5382		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5383		if eval test \${$cacheid+y}
5384then :
5385  printf %s "(cached) " >&6
5386else case e in #(
5387  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388/* end confdefs.h.  */
5389int i;
5390int
5391main (void)
5392{
5393
5394  ;
5395  return 0;
5396}
5397_ACEOF
5398if ac_fn_c_try_link "$LINENO"
5399then :
5400  eval $cacheid=yes
5401else case e in #(
5402  e) eval $cacheid=no ;;
5403esac
5404fi
5405rm -f core conftest.err conftest.$ac_objext conftest.beam \
5406    conftest$ac_exeext conftest.$ac_ext ;;
5407esac
5408fi
5409
5410
5411		CFLAGS="$xorg_testset_save_CFLAGS"
5412
5413		eval supported=\$$cacheid
5414		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5415printf "%s\n" "$supported" >&6; }
5416		if test "$supported" = "yes" ; then
5417			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5418			found="yes"
5419		fi
5420	fi
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436xorg_testset_save_CFLAGS="$CFLAGS"
5437
5438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5439	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5440	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5441printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5442if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5443then :
5444  printf %s "(cached) " >&6
5445else case e in #(
5446  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447/* end confdefs.h.  */
5448int i;
5449_ACEOF
5450if ac_fn_c_try_compile "$LINENO"
5451then :
5452  xorg_cv_cc_flag_unknown_warning_option=yes
5453else case e in #(
5454  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5455esac
5456fi
5457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5458esac
5459fi
5460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5461printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5462	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5463	CFLAGS="$xorg_testset_save_CFLAGS"
5464fi
5465
5466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5467	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5468		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5469	fi
5470	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5471	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5472printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5473if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5474then :
5475  printf %s "(cached) " >&6
5476else case e in #(
5477  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478/* end confdefs.h.  */
5479int i;
5480_ACEOF
5481if ac_fn_c_try_compile "$LINENO"
5482then :
5483  xorg_cv_cc_flag_unused_command_line_argument=yes
5484else case e in #(
5485  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5486esac
5487fi
5488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5489esac
5490fi
5491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5492printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5493	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5494	CFLAGS="$xorg_testset_save_CFLAGS"
5495fi
5496
5497found="no"
5498
5499	if test $found = "no" ; then
5500		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5501			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5502		fi
5503
5504		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5505			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5506		fi
5507
5508		CFLAGS="$CFLAGS -Wformat=2"
5509
5510		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5511printf %s "checking if $CC supports -Wformat=2... " >&6; }
5512		cacheid=xorg_cv_cc_flag__Wformat_2
5513		if eval test \${$cacheid+y}
5514then :
5515  printf %s "(cached) " >&6
5516else case e in #(
5517  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518/* end confdefs.h.  */
5519int i;
5520int
5521main (void)
5522{
5523
5524  ;
5525  return 0;
5526}
5527_ACEOF
5528if ac_fn_c_try_link "$LINENO"
5529then :
5530  eval $cacheid=yes
5531else case e in #(
5532  e) eval $cacheid=no ;;
5533esac
5534fi
5535rm -f core conftest.err conftest.$ac_objext conftest.beam \
5536    conftest$ac_exeext conftest.$ac_ext ;;
5537esac
5538fi
5539
5540
5541		CFLAGS="$xorg_testset_save_CFLAGS"
5542
5543		eval supported=\$$cacheid
5544		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5545printf "%s\n" "$supported" >&6; }
5546		if test "$supported" = "yes" ; then
5547			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5548			found="yes"
5549		fi
5550	fi
5551
5552	if test $found = "no" ; then
5553		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5554			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5555		fi
5556
5557		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5558			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5559		fi
5560
5561		CFLAGS="$CFLAGS -Wformat"
5562
5563		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5564printf %s "checking if $CC supports -Wformat... " >&6; }
5565		cacheid=xorg_cv_cc_flag__Wformat
5566		if eval test \${$cacheid+y}
5567then :
5568  printf %s "(cached) " >&6
5569else case e in #(
5570  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571/* end confdefs.h.  */
5572int i;
5573int
5574main (void)
5575{
5576
5577  ;
5578  return 0;
5579}
5580_ACEOF
5581if ac_fn_c_try_link "$LINENO"
5582then :
5583  eval $cacheid=yes
5584else case e in #(
5585  e) eval $cacheid=no ;;
5586esac
5587fi
5588rm -f core conftest.err conftest.$ac_objext conftest.beam \
5589    conftest$ac_exeext conftest.$ac_ext ;;
5590esac
5591fi
5592
5593
5594		CFLAGS="$xorg_testset_save_CFLAGS"
5595
5596		eval supported=\$$cacheid
5597		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5598printf "%s\n" "$supported" >&6; }
5599		if test "$supported" = "yes" ; then
5600			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5601			found="yes"
5602		fi
5603	fi
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621xorg_testset_save_CFLAGS="$CFLAGS"
5622
5623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5624	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5625	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5626printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5627if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5628then :
5629  printf %s "(cached) " >&6
5630else case e in #(
5631  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632/* end confdefs.h.  */
5633int i;
5634_ACEOF
5635if ac_fn_c_try_compile "$LINENO"
5636then :
5637  xorg_cv_cc_flag_unknown_warning_option=yes
5638else case e in #(
5639  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5640esac
5641fi
5642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5643esac
5644fi
5645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5646printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5647	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5648	CFLAGS="$xorg_testset_save_CFLAGS"
5649fi
5650
5651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5652	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5653		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5654	fi
5655	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5656	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5657printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5658if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5659then :
5660  printf %s "(cached) " >&6
5661else case e in #(
5662  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663/* end confdefs.h.  */
5664int i;
5665_ACEOF
5666if ac_fn_c_try_compile "$LINENO"
5667then :
5668  xorg_cv_cc_flag_unused_command_line_argument=yes
5669else case e in #(
5670  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5671esac
5672fi
5673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5674esac
5675fi
5676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5677printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5678	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5679	CFLAGS="$xorg_testset_save_CFLAGS"
5680fi
5681
5682found="no"
5683
5684	if test $found = "no" ; then
5685		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5687		fi
5688
5689		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5691		fi
5692
5693		CFLAGS="$CFLAGS -Wstrict-prototypes"
5694
5695		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5696printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5697		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5698		if eval test \${$cacheid+y}
5699then :
5700  printf %s "(cached) " >&6
5701else case e in #(
5702  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703/* end confdefs.h.  */
5704int i;
5705int
5706main (void)
5707{
5708
5709  ;
5710  return 0;
5711}
5712_ACEOF
5713if ac_fn_c_try_link "$LINENO"
5714then :
5715  eval $cacheid=yes
5716else case e in #(
5717  e) eval $cacheid=no ;;
5718esac
5719fi
5720rm -f core conftest.err conftest.$ac_objext conftest.beam \
5721    conftest$ac_exeext conftest.$ac_ext ;;
5722esac
5723fi
5724
5725
5726		CFLAGS="$xorg_testset_save_CFLAGS"
5727
5728		eval supported=\$$cacheid
5729		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5730printf "%s\n" "$supported" >&6; }
5731		if test "$supported" = "yes" ; then
5732			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5733			found="yes"
5734		fi
5735	fi
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751xorg_testset_save_CFLAGS="$CFLAGS"
5752
5753if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5754	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5755	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5756printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5757if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5758then :
5759  printf %s "(cached) " >&6
5760else case e in #(
5761  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762/* end confdefs.h.  */
5763int i;
5764_ACEOF
5765if ac_fn_c_try_compile "$LINENO"
5766then :
5767  xorg_cv_cc_flag_unknown_warning_option=yes
5768else case e in #(
5769  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5770esac
5771fi
5772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5773esac
5774fi
5775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5776printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5777	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5778	CFLAGS="$xorg_testset_save_CFLAGS"
5779fi
5780
5781if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5782	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5783		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5784	fi
5785	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5786	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5787printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5788if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5789then :
5790  printf %s "(cached) " >&6
5791else case e in #(
5792  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793/* end confdefs.h.  */
5794int i;
5795_ACEOF
5796if ac_fn_c_try_compile "$LINENO"
5797then :
5798  xorg_cv_cc_flag_unused_command_line_argument=yes
5799else case e in #(
5800  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5801esac
5802fi
5803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5804esac
5805fi
5806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5807printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5808	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5809	CFLAGS="$xorg_testset_save_CFLAGS"
5810fi
5811
5812found="no"
5813
5814	if test $found = "no" ; then
5815		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5816			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5817		fi
5818
5819		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5820			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5821		fi
5822
5823		CFLAGS="$CFLAGS -Wmissing-prototypes"
5824
5825		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5826printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5827		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5828		if eval test \${$cacheid+y}
5829then :
5830  printf %s "(cached) " >&6
5831else case e in #(
5832  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833/* end confdefs.h.  */
5834int i;
5835int
5836main (void)
5837{
5838
5839  ;
5840  return 0;
5841}
5842_ACEOF
5843if ac_fn_c_try_link "$LINENO"
5844then :
5845  eval $cacheid=yes
5846else case e in #(
5847  e) eval $cacheid=no ;;
5848esac
5849fi
5850rm -f core conftest.err conftest.$ac_objext conftest.beam \
5851    conftest$ac_exeext conftest.$ac_ext ;;
5852esac
5853fi
5854
5855
5856		CFLAGS="$xorg_testset_save_CFLAGS"
5857
5858		eval supported=\$$cacheid
5859		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5860printf "%s\n" "$supported" >&6; }
5861		if test "$supported" = "yes" ; then
5862			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5863			found="yes"
5864		fi
5865	fi
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881xorg_testset_save_CFLAGS="$CFLAGS"
5882
5883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5884	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5885	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5886printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5887if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5888then :
5889  printf %s "(cached) " >&6
5890else case e in #(
5891  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892/* end confdefs.h.  */
5893int i;
5894_ACEOF
5895if ac_fn_c_try_compile "$LINENO"
5896then :
5897  xorg_cv_cc_flag_unknown_warning_option=yes
5898else case e in #(
5899  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5900esac
5901fi
5902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5903esac
5904fi
5905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5906printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5907	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5908	CFLAGS="$xorg_testset_save_CFLAGS"
5909fi
5910
5911if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5912	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5913		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5914	fi
5915	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5916	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5917printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5918if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5919then :
5920  printf %s "(cached) " >&6
5921else case e in #(
5922  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923/* end confdefs.h.  */
5924int i;
5925_ACEOF
5926if ac_fn_c_try_compile "$LINENO"
5927then :
5928  xorg_cv_cc_flag_unused_command_line_argument=yes
5929else case e in #(
5930  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5931esac
5932fi
5933rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5934esac
5935fi
5936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5937printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5938	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5939	CFLAGS="$xorg_testset_save_CFLAGS"
5940fi
5941
5942found="no"
5943
5944	if test $found = "no" ; then
5945		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5946			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5947		fi
5948
5949		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5950			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5951		fi
5952
5953		CFLAGS="$CFLAGS -Wnested-externs"
5954
5955		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5956printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5957		cacheid=xorg_cv_cc_flag__Wnested_externs
5958		if eval test \${$cacheid+y}
5959then :
5960  printf %s "(cached) " >&6
5961else case e in #(
5962  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963/* end confdefs.h.  */
5964int i;
5965int
5966main (void)
5967{
5968
5969  ;
5970  return 0;
5971}
5972_ACEOF
5973if ac_fn_c_try_link "$LINENO"
5974then :
5975  eval $cacheid=yes
5976else case e in #(
5977  e) eval $cacheid=no ;;
5978esac
5979fi
5980rm -f core conftest.err conftest.$ac_objext conftest.beam \
5981    conftest$ac_exeext conftest.$ac_ext ;;
5982esac
5983fi
5984
5985
5986		CFLAGS="$xorg_testset_save_CFLAGS"
5987
5988		eval supported=\$$cacheid
5989		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5990printf "%s\n" "$supported" >&6; }
5991		if test "$supported" = "yes" ; then
5992			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5993			found="yes"
5994		fi
5995	fi
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011xorg_testset_save_CFLAGS="$CFLAGS"
6012
6013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6014	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6015	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6016printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6017if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6018then :
6019  printf %s "(cached) " >&6
6020else case e in #(
6021  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022/* end confdefs.h.  */
6023int i;
6024_ACEOF
6025if ac_fn_c_try_compile "$LINENO"
6026then :
6027  xorg_cv_cc_flag_unknown_warning_option=yes
6028else case e in #(
6029  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6030esac
6031fi
6032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6033esac
6034fi
6035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6036printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6037	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6038	CFLAGS="$xorg_testset_save_CFLAGS"
6039fi
6040
6041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6042	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6043		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6044	fi
6045	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6046	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6047printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6048if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6049then :
6050  printf %s "(cached) " >&6
6051else case e in #(
6052  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053/* end confdefs.h.  */
6054int i;
6055_ACEOF
6056if ac_fn_c_try_compile "$LINENO"
6057then :
6058  xorg_cv_cc_flag_unused_command_line_argument=yes
6059else case e in #(
6060  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6061esac
6062fi
6063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6064esac
6065fi
6066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6067printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6068	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6069	CFLAGS="$xorg_testset_save_CFLAGS"
6070fi
6071
6072found="no"
6073
6074	if test $found = "no" ; then
6075		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6076			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6077		fi
6078
6079		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6080			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6081		fi
6082
6083		CFLAGS="$CFLAGS -Wbad-function-cast"
6084
6085		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6086printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6087		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6088		if eval test \${$cacheid+y}
6089then :
6090  printf %s "(cached) " >&6
6091else case e in #(
6092  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093/* end confdefs.h.  */
6094int i;
6095int
6096main (void)
6097{
6098
6099  ;
6100  return 0;
6101}
6102_ACEOF
6103if ac_fn_c_try_link "$LINENO"
6104then :
6105  eval $cacheid=yes
6106else case e in #(
6107  e) eval $cacheid=no ;;
6108esac
6109fi
6110rm -f core conftest.err conftest.$ac_objext conftest.beam \
6111    conftest$ac_exeext conftest.$ac_ext ;;
6112esac
6113fi
6114
6115
6116		CFLAGS="$xorg_testset_save_CFLAGS"
6117
6118		eval supported=\$$cacheid
6119		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6120printf "%s\n" "$supported" >&6; }
6121		if test "$supported" = "yes" ; then
6122			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6123			found="yes"
6124		fi
6125	fi
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141xorg_testset_save_CFLAGS="$CFLAGS"
6142
6143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6144	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6145	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6146printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6147if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6148then :
6149  printf %s "(cached) " >&6
6150else case e in #(
6151  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152/* end confdefs.h.  */
6153int i;
6154_ACEOF
6155if ac_fn_c_try_compile "$LINENO"
6156then :
6157  xorg_cv_cc_flag_unknown_warning_option=yes
6158else case e in #(
6159  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6160esac
6161fi
6162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6163esac
6164fi
6165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6166printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6167	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6168	CFLAGS="$xorg_testset_save_CFLAGS"
6169fi
6170
6171if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6172	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6173		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6174	fi
6175	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6176	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6177printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6178if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6179then :
6180  printf %s "(cached) " >&6
6181else case e in #(
6182  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183/* end confdefs.h.  */
6184int i;
6185_ACEOF
6186if ac_fn_c_try_compile "$LINENO"
6187then :
6188  xorg_cv_cc_flag_unused_command_line_argument=yes
6189else case e in #(
6190  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6191esac
6192fi
6193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6194esac
6195fi
6196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6197printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6198	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6199	CFLAGS="$xorg_testset_save_CFLAGS"
6200fi
6201
6202found="no"
6203
6204	if test $found = "no" ; then
6205		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6206			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6207		fi
6208
6209		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6210			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6211		fi
6212
6213		CFLAGS="$CFLAGS -Wold-style-definition"
6214
6215		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6216printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6217		cacheid=xorg_cv_cc_flag__Wold_style_definition
6218		if eval test \${$cacheid+y}
6219then :
6220  printf %s "(cached) " >&6
6221else case e in #(
6222  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223/* end confdefs.h.  */
6224int i;
6225int
6226main (void)
6227{
6228
6229  ;
6230  return 0;
6231}
6232_ACEOF
6233if ac_fn_c_try_link "$LINENO"
6234then :
6235  eval $cacheid=yes
6236else case e in #(
6237  e) eval $cacheid=no ;;
6238esac
6239fi
6240rm -f core conftest.err conftest.$ac_objext conftest.beam \
6241    conftest$ac_exeext conftest.$ac_ext ;;
6242esac
6243fi
6244
6245
6246		CFLAGS="$xorg_testset_save_CFLAGS"
6247
6248		eval supported=\$$cacheid
6249		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6250printf "%s\n" "$supported" >&6; }
6251		if test "$supported" = "yes" ; then
6252			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6253			found="yes"
6254		fi
6255	fi
6256
6257	if test $found = "no" ; then
6258		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6259			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6260		fi
6261
6262		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6263			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6264		fi
6265
6266		CFLAGS="$CFLAGS -fd"
6267
6268		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6269printf %s "checking if $CC supports -fd... " >&6; }
6270		cacheid=xorg_cv_cc_flag__fd
6271		if eval test \${$cacheid+y}
6272then :
6273  printf %s "(cached) " >&6
6274else case e in #(
6275  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276/* end confdefs.h.  */
6277int i;
6278int
6279main (void)
6280{
6281
6282  ;
6283  return 0;
6284}
6285_ACEOF
6286if ac_fn_c_try_link "$LINENO"
6287then :
6288  eval $cacheid=yes
6289else case e in #(
6290  e) eval $cacheid=no ;;
6291esac
6292fi
6293rm -f core conftest.err conftest.$ac_objext conftest.beam \
6294    conftest$ac_exeext conftest.$ac_ext ;;
6295esac
6296fi
6297
6298
6299		CFLAGS="$xorg_testset_save_CFLAGS"
6300
6301		eval supported=\$$cacheid
6302		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6303printf "%s\n" "$supported" >&6; }
6304		if test "$supported" = "yes" ; then
6305			BASE_CFLAGS="$BASE_CFLAGS -fd"
6306			found="yes"
6307		fi
6308	fi
6309
6310
6311
6312
6313
6314# This chunk adds additional warnings that could catch undesired effects.
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328xorg_testset_save_CFLAGS="$CFLAGS"
6329
6330if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6331	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6332	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6333printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6334if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6335then :
6336  printf %s "(cached) " >&6
6337else case e in #(
6338  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h.  */
6340int i;
6341_ACEOF
6342if ac_fn_c_try_compile "$LINENO"
6343then :
6344  xorg_cv_cc_flag_unknown_warning_option=yes
6345else case e in #(
6346  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6347esac
6348fi
6349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6350esac
6351fi
6352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6353printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6354	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6355	CFLAGS="$xorg_testset_save_CFLAGS"
6356fi
6357
6358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6359	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6360		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6361	fi
6362	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6363	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6364printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6365if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6366then :
6367  printf %s "(cached) " >&6
6368else case e in #(
6369  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370/* end confdefs.h.  */
6371int i;
6372_ACEOF
6373if ac_fn_c_try_compile "$LINENO"
6374then :
6375  xorg_cv_cc_flag_unused_command_line_argument=yes
6376else case e in #(
6377  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6378esac
6379fi
6380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6381esac
6382fi
6383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6384printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6385	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6386	CFLAGS="$xorg_testset_save_CFLAGS"
6387fi
6388
6389found="no"
6390
6391	if test $found = "no" ; then
6392		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6393			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6394		fi
6395
6396		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6397			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6398		fi
6399
6400		CFLAGS="$CFLAGS -Wunused"
6401
6402		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6403printf %s "checking if $CC supports -Wunused... " >&6; }
6404		cacheid=xorg_cv_cc_flag__Wunused
6405		if eval test \${$cacheid+y}
6406then :
6407  printf %s "(cached) " >&6
6408else case e in #(
6409  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410/* end confdefs.h.  */
6411int i;
6412int
6413main (void)
6414{
6415
6416  ;
6417  return 0;
6418}
6419_ACEOF
6420if ac_fn_c_try_link "$LINENO"
6421then :
6422  eval $cacheid=yes
6423else case e in #(
6424  e) eval $cacheid=no ;;
6425esac
6426fi
6427rm -f core conftest.err conftest.$ac_objext conftest.beam \
6428    conftest$ac_exeext conftest.$ac_ext ;;
6429esac
6430fi
6431
6432
6433		CFLAGS="$xorg_testset_save_CFLAGS"
6434
6435		eval supported=\$$cacheid
6436		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6437printf "%s\n" "$supported" >&6; }
6438		if test "$supported" = "yes" ; then
6439			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6440			found="yes"
6441		fi
6442	fi
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458xorg_testset_save_CFLAGS="$CFLAGS"
6459
6460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6461	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6462	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6463printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6464if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6465then :
6466  printf %s "(cached) " >&6
6467else case e in #(
6468  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469/* end confdefs.h.  */
6470int i;
6471_ACEOF
6472if ac_fn_c_try_compile "$LINENO"
6473then :
6474  xorg_cv_cc_flag_unknown_warning_option=yes
6475else case e in #(
6476  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6477esac
6478fi
6479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6480esac
6481fi
6482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6483printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6484	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6485	CFLAGS="$xorg_testset_save_CFLAGS"
6486fi
6487
6488if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6489	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6490		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6491	fi
6492	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6493	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6494printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6495if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6496then :
6497  printf %s "(cached) " >&6
6498else case e in #(
6499  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500/* end confdefs.h.  */
6501int i;
6502_ACEOF
6503if ac_fn_c_try_compile "$LINENO"
6504then :
6505  xorg_cv_cc_flag_unused_command_line_argument=yes
6506else case e in #(
6507  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6508esac
6509fi
6510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6511esac
6512fi
6513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6514printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6515	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6516	CFLAGS="$xorg_testset_save_CFLAGS"
6517fi
6518
6519found="no"
6520
6521	if test $found = "no" ; then
6522		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6523			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6524		fi
6525
6526		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6527			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6528		fi
6529
6530		CFLAGS="$CFLAGS -Wuninitialized"
6531
6532		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6533printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6534		cacheid=xorg_cv_cc_flag__Wuninitialized
6535		if eval test \${$cacheid+y}
6536then :
6537  printf %s "(cached) " >&6
6538else case e in #(
6539  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540/* end confdefs.h.  */
6541int i;
6542int
6543main (void)
6544{
6545
6546  ;
6547  return 0;
6548}
6549_ACEOF
6550if ac_fn_c_try_link "$LINENO"
6551then :
6552  eval $cacheid=yes
6553else case e in #(
6554  e) eval $cacheid=no ;;
6555esac
6556fi
6557rm -f core conftest.err conftest.$ac_objext conftest.beam \
6558    conftest$ac_exeext conftest.$ac_ext ;;
6559esac
6560fi
6561
6562
6563		CFLAGS="$xorg_testset_save_CFLAGS"
6564
6565		eval supported=\$$cacheid
6566		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6567printf "%s\n" "$supported" >&6; }
6568		if test "$supported" = "yes" ; then
6569			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6570			found="yes"
6571		fi
6572	fi
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588xorg_testset_save_CFLAGS="$CFLAGS"
6589
6590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6591	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6592	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6593printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6594if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6595then :
6596  printf %s "(cached) " >&6
6597else case e in #(
6598  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599/* end confdefs.h.  */
6600int i;
6601_ACEOF
6602if ac_fn_c_try_compile "$LINENO"
6603then :
6604  xorg_cv_cc_flag_unknown_warning_option=yes
6605else case e in #(
6606  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6607esac
6608fi
6609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6610esac
6611fi
6612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6613printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6614	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6615	CFLAGS="$xorg_testset_save_CFLAGS"
6616fi
6617
6618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6619	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6620		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6621	fi
6622	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6623	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6624printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6625if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6626then :
6627  printf %s "(cached) " >&6
6628else case e in #(
6629  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h.  */
6631int i;
6632_ACEOF
6633if ac_fn_c_try_compile "$LINENO"
6634then :
6635  xorg_cv_cc_flag_unused_command_line_argument=yes
6636else case e in #(
6637  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6638esac
6639fi
6640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6641esac
6642fi
6643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6644printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6645	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6646	CFLAGS="$xorg_testset_save_CFLAGS"
6647fi
6648
6649found="no"
6650
6651	if test $found = "no" ; then
6652		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6653			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6654		fi
6655
6656		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6657			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6658		fi
6659
6660		CFLAGS="$CFLAGS -Wshadow"
6661
6662		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6663printf %s "checking if $CC supports -Wshadow... " >&6; }
6664		cacheid=xorg_cv_cc_flag__Wshadow
6665		if eval test \${$cacheid+y}
6666then :
6667  printf %s "(cached) " >&6
6668else case e in #(
6669  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670/* end confdefs.h.  */
6671int i;
6672int
6673main (void)
6674{
6675
6676  ;
6677  return 0;
6678}
6679_ACEOF
6680if ac_fn_c_try_link "$LINENO"
6681then :
6682  eval $cacheid=yes
6683else case e in #(
6684  e) eval $cacheid=no ;;
6685esac
6686fi
6687rm -f core conftest.err conftest.$ac_objext conftest.beam \
6688    conftest$ac_exeext conftest.$ac_ext ;;
6689esac
6690fi
6691
6692
6693		CFLAGS="$xorg_testset_save_CFLAGS"
6694
6695		eval supported=\$$cacheid
6696		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6697printf "%s\n" "$supported" >&6; }
6698		if test "$supported" = "yes" ; then
6699			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6700			found="yes"
6701		fi
6702	fi
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718xorg_testset_save_CFLAGS="$CFLAGS"
6719
6720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6721	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6722	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6723printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6724if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6725then :
6726  printf %s "(cached) " >&6
6727else case e in #(
6728  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729/* end confdefs.h.  */
6730int i;
6731_ACEOF
6732if ac_fn_c_try_compile "$LINENO"
6733then :
6734  xorg_cv_cc_flag_unknown_warning_option=yes
6735else case e in #(
6736  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6737esac
6738fi
6739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6740esac
6741fi
6742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6743printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6744	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6745	CFLAGS="$xorg_testset_save_CFLAGS"
6746fi
6747
6748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6749	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6750		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6751	fi
6752	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6753	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6754printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6755if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6756then :
6757  printf %s "(cached) " >&6
6758else case e in #(
6759  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760/* end confdefs.h.  */
6761int i;
6762_ACEOF
6763if ac_fn_c_try_compile "$LINENO"
6764then :
6765  xorg_cv_cc_flag_unused_command_line_argument=yes
6766else case e in #(
6767  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6768esac
6769fi
6770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6771esac
6772fi
6773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6774printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6775	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6776	CFLAGS="$xorg_testset_save_CFLAGS"
6777fi
6778
6779found="no"
6780
6781	if test $found = "no" ; then
6782		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6783			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6784		fi
6785
6786		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6787			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6788		fi
6789
6790		CFLAGS="$CFLAGS -Wmissing-noreturn"
6791
6792		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6793printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6794		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6795		if eval test \${$cacheid+y}
6796then :
6797  printf %s "(cached) " >&6
6798else case e in #(
6799  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800/* end confdefs.h.  */
6801int i;
6802int
6803main (void)
6804{
6805
6806  ;
6807  return 0;
6808}
6809_ACEOF
6810if ac_fn_c_try_link "$LINENO"
6811then :
6812  eval $cacheid=yes
6813else case e in #(
6814  e) eval $cacheid=no ;;
6815esac
6816fi
6817rm -f core conftest.err conftest.$ac_objext conftest.beam \
6818    conftest$ac_exeext conftest.$ac_ext ;;
6819esac
6820fi
6821
6822
6823		CFLAGS="$xorg_testset_save_CFLAGS"
6824
6825		eval supported=\$$cacheid
6826		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6827printf "%s\n" "$supported" >&6; }
6828		if test "$supported" = "yes" ; then
6829			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6830			found="yes"
6831		fi
6832	fi
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848xorg_testset_save_CFLAGS="$CFLAGS"
6849
6850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6851	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6852	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6853printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6854if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6855then :
6856  printf %s "(cached) " >&6
6857else case e in #(
6858  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859/* end confdefs.h.  */
6860int i;
6861_ACEOF
6862if ac_fn_c_try_compile "$LINENO"
6863then :
6864  xorg_cv_cc_flag_unknown_warning_option=yes
6865else case e in #(
6866  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6867esac
6868fi
6869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6870esac
6871fi
6872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6873printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6874	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6875	CFLAGS="$xorg_testset_save_CFLAGS"
6876fi
6877
6878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6879	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6880		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6881	fi
6882	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6883	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6884printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6885if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6886then :
6887  printf %s "(cached) " >&6
6888else case e in #(
6889  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890/* end confdefs.h.  */
6891int i;
6892_ACEOF
6893if ac_fn_c_try_compile "$LINENO"
6894then :
6895  xorg_cv_cc_flag_unused_command_line_argument=yes
6896else case e in #(
6897  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6898esac
6899fi
6900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6901esac
6902fi
6903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6904printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6905	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6906	CFLAGS="$xorg_testset_save_CFLAGS"
6907fi
6908
6909found="no"
6910
6911	if test $found = "no" ; then
6912		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6913			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6914		fi
6915
6916		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6917			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6918		fi
6919
6920		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6921
6922		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6923printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6924		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6925		if eval test \${$cacheid+y}
6926then :
6927  printf %s "(cached) " >&6
6928else case e in #(
6929  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930/* end confdefs.h.  */
6931int i;
6932int
6933main (void)
6934{
6935
6936  ;
6937  return 0;
6938}
6939_ACEOF
6940if ac_fn_c_try_link "$LINENO"
6941then :
6942  eval $cacheid=yes
6943else case e in #(
6944  e) eval $cacheid=no ;;
6945esac
6946fi
6947rm -f core conftest.err conftest.$ac_objext conftest.beam \
6948    conftest$ac_exeext conftest.$ac_ext ;;
6949esac
6950fi
6951
6952
6953		CFLAGS="$xorg_testset_save_CFLAGS"
6954
6955		eval supported=\$$cacheid
6956		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6957printf "%s\n" "$supported" >&6; }
6958		if test "$supported" = "yes" ; then
6959			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6960			found="yes"
6961		fi
6962	fi
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978xorg_testset_save_CFLAGS="$CFLAGS"
6979
6980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6981	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6982	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6983printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6984if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6985then :
6986  printf %s "(cached) " >&6
6987else case e in #(
6988  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989/* end confdefs.h.  */
6990int i;
6991_ACEOF
6992if ac_fn_c_try_compile "$LINENO"
6993then :
6994  xorg_cv_cc_flag_unknown_warning_option=yes
6995else case e in #(
6996  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6997esac
6998fi
6999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7000esac
7001fi
7002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7003printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7004	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7005	CFLAGS="$xorg_testset_save_CFLAGS"
7006fi
7007
7008if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7009	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7010		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7011	fi
7012	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7013	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7014printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7015if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7016then :
7017  printf %s "(cached) " >&6
7018else case e in #(
7019  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020/* end confdefs.h.  */
7021int i;
7022_ACEOF
7023if ac_fn_c_try_compile "$LINENO"
7024then :
7025  xorg_cv_cc_flag_unused_command_line_argument=yes
7026else case e in #(
7027  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7028esac
7029fi
7030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7031esac
7032fi
7033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7034printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7035	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7036	CFLAGS="$xorg_testset_save_CFLAGS"
7037fi
7038
7039found="no"
7040
7041	if test $found = "no" ; then
7042		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7043			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7044		fi
7045
7046		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7047			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7048		fi
7049
7050		CFLAGS="$CFLAGS -Wredundant-decls"
7051
7052		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7053printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7054		cacheid=xorg_cv_cc_flag__Wredundant_decls
7055		if eval test \${$cacheid+y}
7056then :
7057  printf %s "(cached) " >&6
7058else case e in #(
7059  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060/* end confdefs.h.  */
7061int i;
7062int
7063main (void)
7064{
7065
7066  ;
7067  return 0;
7068}
7069_ACEOF
7070if ac_fn_c_try_link "$LINENO"
7071then :
7072  eval $cacheid=yes
7073else case e in #(
7074  e) eval $cacheid=no ;;
7075esac
7076fi
7077rm -f core conftest.err conftest.$ac_objext conftest.beam \
7078    conftest$ac_exeext conftest.$ac_ext ;;
7079esac
7080fi
7081
7082
7083		CFLAGS="$xorg_testset_save_CFLAGS"
7084
7085		eval supported=\$$cacheid
7086		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7087printf "%s\n" "$supported" >&6; }
7088		if test "$supported" = "yes" ; then
7089			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7090			found="yes"
7091		fi
7092	fi
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108xorg_testset_save_CFLAGS="$CFLAGS"
7109
7110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7111	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7112	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7113printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7114if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7115then :
7116  printf %s "(cached) " >&6
7117else case e in #(
7118  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119/* end confdefs.h.  */
7120int i;
7121_ACEOF
7122if ac_fn_c_try_compile "$LINENO"
7123then :
7124  xorg_cv_cc_flag_unknown_warning_option=yes
7125else case e in #(
7126  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7127esac
7128fi
7129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7130esac
7131fi
7132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7133printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7134	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7135	CFLAGS="$xorg_testset_save_CFLAGS"
7136fi
7137
7138if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7139	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7140		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7141	fi
7142	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7143	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7144printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7145if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7146then :
7147  printf %s "(cached) " >&6
7148else case e in #(
7149  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150/* end confdefs.h.  */
7151int i;
7152_ACEOF
7153if ac_fn_c_try_compile "$LINENO"
7154then :
7155  xorg_cv_cc_flag_unused_command_line_argument=yes
7156else case e in #(
7157  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7158esac
7159fi
7160rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7161esac
7162fi
7163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7164printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7165	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7166	CFLAGS="$xorg_testset_save_CFLAGS"
7167fi
7168
7169found="no"
7170
7171	if test $found = "no" ; then
7172		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7173			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7174		fi
7175
7176		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7177			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7178		fi
7179
7180		CFLAGS="$CFLAGS -Wlogical-op"
7181
7182		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7183printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7184		cacheid=xorg_cv_cc_flag__Wlogical_op
7185		if eval test \${$cacheid+y}
7186then :
7187  printf %s "(cached) " >&6
7188else case e in #(
7189  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190/* end confdefs.h.  */
7191int i;
7192int
7193main (void)
7194{
7195
7196  ;
7197  return 0;
7198}
7199_ACEOF
7200if ac_fn_c_try_link "$LINENO"
7201then :
7202  eval $cacheid=yes
7203else case e in #(
7204  e) eval $cacheid=no ;;
7205esac
7206fi
7207rm -f core conftest.err conftest.$ac_objext conftest.beam \
7208    conftest$ac_exeext conftest.$ac_ext ;;
7209esac
7210fi
7211
7212
7213		CFLAGS="$xorg_testset_save_CFLAGS"
7214
7215		eval supported=\$$cacheid
7216		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7217printf "%s\n" "$supported" >&6; }
7218		if test "$supported" = "yes" ; then
7219			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7220			found="yes"
7221		fi
7222	fi
7223
7224
7225
7226# These are currently disabled because they are noisy.  They will be enabled
7227# in the future once the codebase is sufficiently modernized to silence
7228# them.  For now, I don't want them to drown out the other warnings.
7229# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7230# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7231# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7232
7233# Turn some warnings into errors, so we don't accidentally get successful builds
7234# when there are problems that should be fixed.
7235
7236if test "x$SELECTIVE_WERROR" = "xyes" ; then
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250xorg_testset_save_CFLAGS="$CFLAGS"
7251
7252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7253	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7254	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7255printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7256if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7257then :
7258  printf %s "(cached) " >&6
7259else case e in #(
7260  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261/* end confdefs.h.  */
7262int i;
7263_ACEOF
7264if ac_fn_c_try_compile "$LINENO"
7265then :
7266  xorg_cv_cc_flag_unknown_warning_option=yes
7267else case e in #(
7268  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7269esac
7270fi
7271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7272esac
7273fi
7274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7275printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7276	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7277	CFLAGS="$xorg_testset_save_CFLAGS"
7278fi
7279
7280if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7281	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7282		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7283	fi
7284	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7285	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7286printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7287if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7288then :
7289  printf %s "(cached) " >&6
7290else case e in #(
7291  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292/* end confdefs.h.  */
7293int i;
7294_ACEOF
7295if ac_fn_c_try_compile "$LINENO"
7296then :
7297  xorg_cv_cc_flag_unused_command_line_argument=yes
7298else case e in #(
7299  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7300esac
7301fi
7302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7303esac
7304fi
7305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7306printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7307	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7308	CFLAGS="$xorg_testset_save_CFLAGS"
7309fi
7310
7311found="no"
7312
7313	if test $found = "no" ; then
7314		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7315			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7316		fi
7317
7318		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7319			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7320		fi
7321
7322		CFLAGS="$CFLAGS -Werror=implicit"
7323
7324		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7325printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7326		cacheid=xorg_cv_cc_flag__Werror_implicit
7327		if eval test \${$cacheid+y}
7328then :
7329  printf %s "(cached) " >&6
7330else case e in #(
7331  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332/* end confdefs.h.  */
7333int i;
7334int
7335main (void)
7336{
7337
7338  ;
7339  return 0;
7340}
7341_ACEOF
7342if ac_fn_c_try_link "$LINENO"
7343then :
7344  eval $cacheid=yes
7345else case e in #(
7346  e) eval $cacheid=no ;;
7347esac
7348fi
7349rm -f core conftest.err conftest.$ac_objext conftest.beam \
7350    conftest$ac_exeext conftest.$ac_ext ;;
7351esac
7352fi
7353
7354
7355		CFLAGS="$xorg_testset_save_CFLAGS"
7356
7357		eval supported=\$$cacheid
7358		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7359printf "%s\n" "$supported" >&6; }
7360		if test "$supported" = "yes" ; then
7361			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7362			found="yes"
7363		fi
7364	fi
7365
7366	if test $found = "no" ; then
7367		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7368			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7369		fi
7370
7371		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7372			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7373		fi
7374
7375		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7376
7377		{ 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
7378printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7379		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7380		if eval test \${$cacheid+y}
7381then :
7382  printf %s "(cached) " >&6
7383else case e in #(
7384  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385/* end confdefs.h.  */
7386int i;
7387int
7388main (void)
7389{
7390
7391  ;
7392  return 0;
7393}
7394_ACEOF
7395if ac_fn_c_try_link "$LINENO"
7396then :
7397  eval $cacheid=yes
7398else case e in #(
7399  e) eval $cacheid=no ;;
7400esac
7401fi
7402rm -f core conftest.err conftest.$ac_objext conftest.beam \
7403    conftest$ac_exeext conftest.$ac_ext ;;
7404esac
7405fi
7406
7407
7408		CFLAGS="$xorg_testset_save_CFLAGS"
7409
7410		eval supported=\$$cacheid
7411		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7412printf "%s\n" "$supported" >&6; }
7413		if test "$supported" = "yes" ; then
7414			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7415			found="yes"
7416		fi
7417	fi
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433xorg_testset_save_CFLAGS="$CFLAGS"
7434
7435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7436	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7437	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7438printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7439if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7440then :
7441  printf %s "(cached) " >&6
7442else case e in #(
7443  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444/* end confdefs.h.  */
7445int i;
7446_ACEOF
7447if ac_fn_c_try_compile "$LINENO"
7448then :
7449  xorg_cv_cc_flag_unknown_warning_option=yes
7450else case e in #(
7451  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7452esac
7453fi
7454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7455esac
7456fi
7457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7458printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7459	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7460	CFLAGS="$xorg_testset_save_CFLAGS"
7461fi
7462
7463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7464	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7465		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7466	fi
7467	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7468	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7469printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7470if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7471then :
7472  printf %s "(cached) " >&6
7473else case e in #(
7474  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475/* end confdefs.h.  */
7476int i;
7477_ACEOF
7478if ac_fn_c_try_compile "$LINENO"
7479then :
7480  xorg_cv_cc_flag_unused_command_line_argument=yes
7481else case e in #(
7482  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7483esac
7484fi
7485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7486esac
7487fi
7488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7489printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7490	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7491	CFLAGS="$xorg_testset_save_CFLAGS"
7492fi
7493
7494found="no"
7495
7496	if test $found = "no" ; then
7497		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7498			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7499		fi
7500
7501		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7502			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7503		fi
7504
7505		CFLAGS="$CFLAGS -Werror=nonnull"
7506
7507		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7508printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7509		cacheid=xorg_cv_cc_flag__Werror_nonnull
7510		if eval test \${$cacheid+y}
7511then :
7512  printf %s "(cached) " >&6
7513else case e in #(
7514  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515/* end confdefs.h.  */
7516int i;
7517int
7518main (void)
7519{
7520
7521  ;
7522  return 0;
7523}
7524_ACEOF
7525if ac_fn_c_try_link "$LINENO"
7526then :
7527  eval $cacheid=yes
7528else case e in #(
7529  e) eval $cacheid=no ;;
7530esac
7531fi
7532rm -f core conftest.err conftest.$ac_objext conftest.beam \
7533    conftest$ac_exeext conftest.$ac_ext ;;
7534esac
7535fi
7536
7537
7538		CFLAGS="$xorg_testset_save_CFLAGS"
7539
7540		eval supported=\$$cacheid
7541		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7542printf "%s\n" "$supported" >&6; }
7543		if test "$supported" = "yes" ; then
7544			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7545			found="yes"
7546		fi
7547	fi
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563xorg_testset_save_CFLAGS="$CFLAGS"
7564
7565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7566	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7567	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7568printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7569if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7570then :
7571  printf %s "(cached) " >&6
7572else case e in #(
7573  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574/* end confdefs.h.  */
7575int i;
7576_ACEOF
7577if ac_fn_c_try_compile "$LINENO"
7578then :
7579  xorg_cv_cc_flag_unknown_warning_option=yes
7580else case e in #(
7581  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7582esac
7583fi
7584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7585esac
7586fi
7587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7588printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7589	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7590	CFLAGS="$xorg_testset_save_CFLAGS"
7591fi
7592
7593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7594	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7595		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7596	fi
7597	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7598	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7599printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7600if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7601then :
7602  printf %s "(cached) " >&6
7603else case e in #(
7604  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605/* end confdefs.h.  */
7606int i;
7607_ACEOF
7608if ac_fn_c_try_compile "$LINENO"
7609then :
7610  xorg_cv_cc_flag_unused_command_line_argument=yes
7611else case e in #(
7612  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7613esac
7614fi
7615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7616esac
7617fi
7618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7619printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7620	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7621	CFLAGS="$xorg_testset_save_CFLAGS"
7622fi
7623
7624found="no"
7625
7626	if test $found = "no" ; then
7627		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7628			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7629		fi
7630
7631		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7632			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7633		fi
7634
7635		CFLAGS="$CFLAGS -Werror=init-self"
7636
7637		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7638printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7639		cacheid=xorg_cv_cc_flag__Werror_init_self
7640		if eval test \${$cacheid+y}
7641then :
7642  printf %s "(cached) " >&6
7643else case e in #(
7644  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645/* end confdefs.h.  */
7646int i;
7647int
7648main (void)
7649{
7650
7651  ;
7652  return 0;
7653}
7654_ACEOF
7655if ac_fn_c_try_link "$LINENO"
7656then :
7657  eval $cacheid=yes
7658else case e in #(
7659  e) eval $cacheid=no ;;
7660esac
7661fi
7662rm -f core conftest.err conftest.$ac_objext conftest.beam \
7663    conftest$ac_exeext conftest.$ac_ext ;;
7664esac
7665fi
7666
7667
7668		CFLAGS="$xorg_testset_save_CFLAGS"
7669
7670		eval supported=\$$cacheid
7671		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7672printf "%s\n" "$supported" >&6; }
7673		if test "$supported" = "yes" ; then
7674			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7675			found="yes"
7676		fi
7677	fi
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693xorg_testset_save_CFLAGS="$CFLAGS"
7694
7695if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7696	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7697	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7698printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7699if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7700then :
7701  printf %s "(cached) " >&6
7702else case e in #(
7703  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704/* end confdefs.h.  */
7705int i;
7706_ACEOF
7707if ac_fn_c_try_compile "$LINENO"
7708then :
7709  xorg_cv_cc_flag_unknown_warning_option=yes
7710else case e in #(
7711  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7712esac
7713fi
7714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7715esac
7716fi
7717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7718printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7719	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7720	CFLAGS="$xorg_testset_save_CFLAGS"
7721fi
7722
7723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7724	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7725		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7726	fi
7727	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7728	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7729printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7730if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7731then :
7732  printf %s "(cached) " >&6
7733else case e in #(
7734  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735/* end confdefs.h.  */
7736int i;
7737_ACEOF
7738if ac_fn_c_try_compile "$LINENO"
7739then :
7740  xorg_cv_cc_flag_unused_command_line_argument=yes
7741else case e in #(
7742  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7743esac
7744fi
7745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7746esac
7747fi
7748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7749printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7750	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7751	CFLAGS="$xorg_testset_save_CFLAGS"
7752fi
7753
7754found="no"
7755
7756	if test $found = "no" ; then
7757		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7758			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7759		fi
7760
7761		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7762			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7763		fi
7764
7765		CFLAGS="$CFLAGS -Werror=main"
7766
7767		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7768printf %s "checking if $CC supports -Werror=main... " >&6; }
7769		cacheid=xorg_cv_cc_flag__Werror_main
7770		if eval test \${$cacheid+y}
7771then :
7772  printf %s "(cached) " >&6
7773else case e in #(
7774  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775/* end confdefs.h.  */
7776int i;
7777int
7778main (void)
7779{
7780
7781  ;
7782  return 0;
7783}
7784_ACEOF
7785if ac_fn_c_try_link "$LINENO"
7786then :
7787  eval $cacheid=yes
7788else case e in #(
7789  e) eval $cacheid=no ;;
7790esac
7791fi
7792rm -f core conftest.err conftest.$ac_objext conftest.beam \
7793    conftest$ac_exeext conftest.$ac_ext ;;
7794esac
7795fi
7796
7797
7798		CFLAGS="$xorg_testset_save_CFLAGS"
7799
7800		eval supported=\$$cacheid
7801		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7802printf "%s\n" "$supported" >&6; }
7803		if test "$supported" = "yes" ; then
7804			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7805			found="yes"
7806		fi
7807	fi
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823xorg_testset_save_CFLAGS="$CFLAGS"
7824
7825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7826	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7827	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7828printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7829if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7830then :
7831  printf %s "(cached) " >&6
7832else case e in #(
7833  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834/* end confdefs.h.  */
7835int i;
7836_ACEOF
7837if ac_fn_c_try_compile "$LINENO"
7838then :
7839  xorg_cv_cc_flag_unknown_warning_option=yes
7840else case e in #(
7841  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7842esac
7843fi
7844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7845esac
7846fi
7847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7848printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7849	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7850	CFLAGS="$xorg_testset_save_CFLAGS"
7851fi
7852
7853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7854	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7855		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7856	fi
7857	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7858	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7859printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7860if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7861then :
7862  printf %s "(cached) " >&6
7863else case e in #(
7864  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865/* end confdefs.h.  */
7866int i;
7867_ACEOF
7868if ac_fn_c_try_compile "$LINENO"
7869then :
7870  xorg_cv_cc_flag_unused_command_line_argument=yes
7871else case e in #(
7872  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7873esac
7874fi
7875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7876esac
7877fi
7878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7879printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7880	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7881	CFLAGS="$xorg_testset_save_CFLAGS"
7882fi
7883
7884found="no"
7885
7886	if test $found = "no" ; then
7887		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7888			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7889		fi
7890
7891		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7892			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7893		fi
7894
7895		CFLAGS="$CFLAGS -Werror=missing-braces"
7896
7897		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7898printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7899		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7900		if eval test \${$cacheid+y}
7901then :
7902  printf %s "(cached) " >&6
7903else case e in #(
7904  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905/* end confdefs.h.  */
7906int i;
7907int
7908main (void)
7909{
7910
7911  ;
7912  return 0;
7913}
7914_ACEOF
7915if ac_fn_c_try_link "$LINENO"
7916then :
7917  eval $cacheid=yes
7918else case e in #(
7919  e) eval $cacheid=no ;;
7920esac
7921fi
7922rm -f core conftest.err conftest.$ac_objext conftest.beam \
7923    conftest$ac_exeext conftest.$ac_ext ;;
7924esac
7925fi
7926
7927
7928		CFLAGS="$xorg_testset_save_CFLAGS"
7929
7930		eval supported=\$$cacheid
7931		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7932printf "%s\n" "$supported" >&6; }
7933		if test "$supported" = "yes" ; then
7934			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7935			found="yes"
7936		fi
7937	fi
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953xorg_testset_save_CFLAGS="$CFLAGS"
7954
7955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7956	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7957	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7958printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7959if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7960then :
7961  printf %s "(cached) " >&6
7962else case e in #(
7963  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964/* end confdefs.h.  */
7965int i;
7966_ACEOF
7967if ac_fn_c_try_compile "$LINENO"
7968then :
7969  xorg_cv_cc_flag_unknown_warning_option=yes
7970else case e in #(
7971  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7972esac
7973fi
7974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7975esac
7976fi
7977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7978printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7979	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7980	CFLAGS="$xorg_testset_save_CFLAGS"
7981fi
7982
7983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7984	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7985		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7986	fi
7987	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7988	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7989printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7990if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7991then :
7992  printf %s "(cached) " >&6
7993else case e in #(
7994  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995/* end confdefs.h.  */
7996int i;
7997_ACEOF
7998if ac_fn_c_try_compile "$LINENO"
7999then :
8000  xorg_cv_cc_flag_unused_command_line_argument=yes
8001else case e in #(
8002  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8003esac
8004fi
8005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8006esac
8007fi
8008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8009printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8010	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8011	CFLAGS="$xorg_testset_save_CFLAGS"
8012fi
8013
8014found="no"
8015
8016	if test $found = "no" ; then
8017		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8018			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8019		fi
8020
8021		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8022			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8023		fi
8024
8025		CFLAGS="$CFLAGS -Werror=sequence-point"
8026
8027		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8028printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8029		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8030		if eval test \${$cacheid+y}
8031then :
8032  printf %s "(cached) " >&6
8033else case e in #(
8034  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035/* end confdefs.h.  */
8036int i;
8037int
8038main (void)
8039{
8040
8041  ;
8042  return 0;
8043}
8044_ACEOF
8045if ac_fn_c_try_link "$LINENO"
8046then :
8047  eval $cacheid=yes
8048else case e in #(
8049  e) eval $cacheid=no ;;
8050esac
8051fi
8052rm -f core conftest.err conftest.$ac_objext conftest.beam \
8053    conftest$ac_exeext conftest.$ac_ext ;;
8054esac
8055fi
8056
8057
8058		CFLAGS="$xorg_testset_save_CFLAGS"
8059
8060		eval supported=\$$cacheid
8061		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8062printf "%s\n" "$supported" >&6; }
8063		if test "$supported" = "yes" ; then
8064			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8065			found="yes"
8066		fi
8067	fi
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083xorg_testset_save_CFLAGS="$CFLAGS"
8084
8085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8086	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8087	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8088printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8089if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8090then :
8091  printf %s "(cached) " >&6
8092else case e in #(
8093  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094/* end confdefs.h.  */
8095int i;
8096_ACEOF
8097if ac_fn_c_try_compile "$LINENO"
8098then :
8099  xorg_cv_cc_flag_unknown_warning_option=yes
8100else case e in #(
8101  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8102esac
8103fi
8104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8105esac
8106fi
8107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8108printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8109	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8110	CFLAGS="$xorg_testset_save_CFLAGS"
8111fi
8112
8113if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8114	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8115		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8116	fi
8117	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8118	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8119printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8120if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8121then :
8122  printf %s "(cached) " >&6
8123else case e in #(
8124  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125/* end confdefs.h.  */
8126int i;
8127_ACEOF
8128if ac_fn_c_try_compile "$LINENO"
8129then :
8130  xorg_cv_cc_flag_unused_command_line_argument=yes
8131else case e in #(
8132  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8133esac
8134fi
8135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8136esac
8137fi
8138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8139printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8141	CFLAGS="$xorg_testset_save_CFLAGS"
8142fi
8143
8144found="no"
8145
8146	if test $found = "no" ; then
8147		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8149		fi
8150
8151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8153		fi
8154
8155		CFLAGS="$CFLAGS -Werror=return-type"
8156
8157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8158printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8159		cacheid=xorg_cv_cc_flag__Werror_return_type
8160		if eval test \${$cacheid+y}
8161then :
8162  printf %s "(cached) " >&6
8163else case e in #(
8164  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165/* end confdefs.h.  */
8166int i;
8167int
8168main (void)
8169{
8170
8171  ;
8172  return 0;
8173}
8174_ACEOF
8175if ac_fn_c_try_link "$LINENO"
8176then :
8177  eval $cacheid=yes
8178else case e in #(
8179  e) eval $cacheid=no ;;
8180esac
8181fi
8182rm -f core conftest.err conftest.$ac_objext conftest.beam \
8183    conftest$ac_exeext conftest.$ac_ext ;;
8184esac
8185fi
8186
8187
8188		CFLAGS="$xorg_testset_save_CFLAGS"
8189
8190		eval supported=\$$cacheid
8191		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8192printf "%s\n" "$supported" >&6; }
8193		if test "$supported" = "yes" ; then
8194			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8195			found="yes"
8196		fi
8197	fi
8198
8199	if test $found = "no" ; then
8200		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8201			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8202		fi
8203
8204		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8205			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8206		fi
8207
8208		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8209
8210		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8211printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8212		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8213		if eval test \${$cacheid+y}
8214then :
8215  printf %s "(cached) " >&6
8216else case e in #(
8217  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218/* end confdefs.h.  */
8219int i;
8220int
8221main (void)
8222{
8223
8224  ;
8225  return 0;
8226}
8227_ACEOF
8228if ac_fn_c_try_link "$LINENO"
8229then :
8230  eval $cacheid=yes
8231else case e in #(
8232  e) eval $cacheid=no ;;
8233esac
8234fi
8235rm -f core conftest.err conftest.$ac_objext conftest.beam \
8236    conftest$ac_exeext conftest.$ac_ext ;;
8237esac
8238fi
8239
8240
8241		CFLAGS="$xorg_testset_save_CFLAGS"
8242
8243		eval supported=\$$cacheid
8244		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8245printf "%s\n" "$supported" >&6; }
8246		if test "$supported" = "yes" ; then
8247			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8248			found="yes"
8249		fi
8250	fi
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266xorg_testset_save_CFLAGS="$CFLAGS"
8267
8268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8269	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8270	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8271printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8272if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8273then :
8274  printf %s "(cached) " >&6
8275else case e in #(
8276  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277/* end confdefs.h.  */
8278int i;
8279_ACEOF
8280if ac_fn_c_try_compile "$LINENO"
8281then :
8282  xorg_cv_cc_flag_unknown_warning_option=yes
8283else case e in #(
8284  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8285esac
8286fi
8287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8288esac
8289fi
8290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8291printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8292	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8293	CFLAGS="$xorg_testset_save_CFLAGS"
8294fi
8295
8296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8297	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8298		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8299	fi
8300	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8301	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8302printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8303if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8304then :
8305  printf %s "(cached) " >&6
8306else case e in #(
8307  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308/* end confdefs.h.  */
8309int i;
8310_ACEOF
8311if ac_fn_c_try_compile "$LINENO"
8312then :
8313  xorg_cv_cc_flag_unused_command_line_argument=yes
8314else case e in #(
8315  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8316esac
8317fi
8318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8319esac
8320fi
8321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8322printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8323	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8324	CFLAGS="$xorg_testset_save_CFLAGS"
8325fi
8326
8327found="no"
8328
8329	if test $found = "no" ; then
8330		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8331			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8332		fi
8333
8334		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8335			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8336		fi
8337
8338		CFLAGS="$CFLAGS -Werror=trigraphs"
8339
8340		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8341printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8342		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8343		if eval test \${$cacheid+y}
8344then :
8345  printf %s "(cached) " >&6
8346else case e in #(
8347  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348/* end confdefs.h.  */
8349int i;
8350int
8351main (void)
8352{
8353
8354  ;
8355  return 0;
8356}
8357_ACEOF
8358if ac_fn_c_try_link "$LINENO"
8359then :
8360  eval $cacheid=yes
8361else case e in #(
8362  e) eval $cacheid=no ;;
8363esac
8364fi
8365rm -f core conftest.err conftest.$ac_objext conftest.beam \
8366    conftest$ac_exeext conftest.$ac_ext ;;
8367esac
8368fi
8369
8370
8371		CFLAGS="$xorg_testset_save_CFLAGS"
8372
8373		eval supported=\$$cacheid
8374		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8375printf "%s\n" "$supported" >&6; }
8376		if test "$supported" = "yes" ; then
8377			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8378			found="yes"
8379		fi
8380	fi
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396xorg_testset_save_CFLAGS="$CFLAGS"
8397
8398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8399	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8400	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8401printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8402if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8403then :
8404  printf %s "(cached) " >&6
8405else case e in #(
8406  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8407/* end confdefs.h.  */
8408int i;
8409_ACEOF
8410if ac_fn_c_try_compile "$LINENO"
8411then :
8412  xorg_cv_cc_flag_unknown_warning_option=yes
8413else case e in #(
8414  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8415esac
8416fi
8417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8418esac
8419fi
8420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8421printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8422	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8423	CFLAGS="$xorg_testset_save_CFLAGS"
8424fi
8425
8426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8427	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8428		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8429	fi
8430	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8431	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8432printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8433if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8434then :
8435  printf %s "(cached) " >&6
8436else case e in #(
8437  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438/* end confdefs.h.  */
8439int i;
8440_ACEOF
8441if ac_fn_c_try_compile "$LINENO"
8442then :
8443  xorg_cv_cc_flag_unused_command_line_argument=yes
8444else case e in #(
8445  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8446esac
8447fi
8448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8449esac
8450fi
8451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8452printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8453	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8454	CFLAGS="$xorg_testset_save_CFLAGS"
8455fi
8456
8457found="no"
8458
8459	if test $found = "no" ; then
8460		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8461			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8462		fi
8463
8464		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8465			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8466		fi
8467
8468		CFLAGS="$CFLAGS -Werror=array-bounds"
8469
8470		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8471printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8472		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8473		if eval test \${$cacheid+y}
8474then :
8475  printf %s "(cached) " >&6
8476else case e in #(
8477  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478/* end confdefs.h.  */
8479int i;
8480int
8481main (void)
8482{
8483
8484  ;
8485  return 0;
8486}
8487_ACEOF
8488if ac_fn_c_try_link "$LINENO"
8489then :
8490  eval $cacheid=yes
8491else case e in #(
8492  e) eval $cacheid=no ;;
8493esac
8494fi
8495rm -f core conftest.err conftest.$ac_objext conftest.beam \
8496    conftest$ac_exeext conftest.$ac_ext ;;
8497esac
8498fi
8499
8500
8501		CFLAGS="$xorg_testset_save_CFLAGS"
8502
8503		eval supported=\$$cacheid
8504		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8505printf "%s\n" "$supported" >&6; }
8506		if test "$supported" = "yes" ; then
8507			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8508			found="yes"
8509		fi
8510	fi
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526xorg_testset_save_CFLAGS="$CFLAGS"
8527
8528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8529	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8530	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8531printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8532if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8533then :
8534  printf %s "(cached) " >&6
8535else case e in #(
8536  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537/* end confdefs.h.  */
8538int i;
8539_ACEOF
8540if ac_fn_c_try_compile "$LINENO"
8541then :
8542  xorg_cv_cc_flag_unknown_warning_option=yes
8543else case e in #(
8544  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8545esac
8546fi
8547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8548esac
8549fi
8550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8551printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8552	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8553	CFLAGS="$xorg_testset_save_CFLAGS"
8554fi
8555
8556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8557	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8558		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8559	fi
8560	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8561	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8562printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8563if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8564then :
8565  printf %s "(cached) " >&6
8566else case e in #(
8567  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568/* end confdefs.h.  */
8569int i;
8570_ACEOF
8571if ac_fn_c_try_compile "$LINENO"
8572then :
8573  xorg_cv_cc_flag_unused_command_line_argument=yes
8574else case e in #(
8575  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8576esac
8577fi
8578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8579esac
8580fi
8581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8582printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8583	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8584	CFLAGS="$xorg_testset_save_CFLAGS"
8585fi
8586
8587found="no"
8588
8589	if test $found = "no" ; then
8590		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8591			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8592		fi
8593
8594		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8595			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8596		fi
8597
8598		CFLAGS="$CFLAGS -Werror=write-strings"
8599
8600		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8601printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8602		cacheid=xorg_cv_cc_flag__Werror_write_strings
8603		if eval test \${$cacheid+y}
8604then :
8605  printf %s "(cached) " >&6
8606else case e in #(
8607  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608/* end confdefs.h.  */
8609int i;
8610int
8611main (void)
8612{
8613
8614  ;
8615  return 0;
8616}
8617_ACEOF
8618if ac_fn_c_try_link "$LINENO"
8619then :
8620  eval $cacheid=yes
8621else case e in #(
8622  e) eval $cacheid=no ;;
8623esac
8624fi
8625rm -f core conftest.err conftest.$ac_objext conftest.beam \
8626    conftest$ac_exeext conftest.$ac_ext ;;
8627esac
8628fi
8629
8630
8631		CFLAGS="$xorg_testset_save_CFLAGS"
8632
8633		eval supported=\$$cacheid
8634		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8635printf "%s\n" "$supported" >&6; }
8636		if test "$supported" = "yes" ; then
8637			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8638			found="yes"
8639		fi
8640	fi
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656xorg_testset_save_CFLAGS="$CFLAGS"
8657
8658if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8659	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8660	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8661printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8662if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8663then :
8664  printf %s "(cached) " >&6
8665else case e in #(
8666  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667/* end confdefs.h.  */
8668int i;
8669_ACEOF
8670if ac_fn_c_try_compile "$LINENO"
8671then :
8672  xorg_cv_cc_flag_unknown_warning_option=yes
8673else case e in #(
8674  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8675esac
8676fi
8677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8678esac
8679fi
8680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8681printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8682	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8683	CFLAGS="$xorg_testset_save_CFLAGS"
8684fi
8685
8686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8687	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8688		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8689	fi
8690	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8691	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8692printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8693if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8694then :
8695  printf %s "(cached) " >&6
8696else case e in #(
8697  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698/* end confdefs.h.  */
8699int i;
8700_ACEOF
8701if ac_fn_c_try_compile "$LINENO"
8702then :
8703  xorg_cv_cc_flag_unused_command_line_argument=yes
8704else case e in #(
8705  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8706esac
8707fi
8708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8709esac
8710fi
8711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8712printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8713	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8714	CFLAGS="$xorg_testset_save_CFLAGS"
8715fi
8716
8717found="no"
8718
8719	if test $found = "no" ; then
8720		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8721			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8722		fi
8723
8724		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8725			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8726		fi
8727
8728		CFLAGS="$CFLAGS -Werror=address"
8729
8730		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8731printf %s "checking if $CC supports -Werror=address... " >&6; }
8732		cacheid=xorg_cv_cc_flag__Werror_address
8733		if eval test \${$cacheid+y}
8734then :
8735  printf %s "(cached) " >&6
8736else case e in #(
8737  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738/* end confdefs.h.  */
8739int i;
8740int
8741main (void)
8742{
8743
8744  ;
8745  return 0;
8746}
8747_ACEOF
8748if ac_fn_c_try_link "$LINENO"
8749then :
8750  eval $cacheid=yes
8751else case e in #(
8752  e) eval $cacheid=no ;;
8753esac
8754fi
8755rm -f core conftest.err conftest.$ac_objext conftest.beam \
8756    conftest$ac_exeext conftest.$ac_ext ;;
8757esac
8758fi
8759
8760
8761		CFLAGS="$xorg_testset_save_CFLAGS"
8762
8763		eval supported=\$$cacheid
8764		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8765printf "%s\n" "$supported" >&6; }
8766		if test "$supported" = "yes" ; then
8767			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8768			found="yes"
8769		fi
8770	fi
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786xorg_testset_save_CFLAGS="$CFLAGS"
8787
8788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8789	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8790	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8791printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8792if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8793then :
8794  printf %s "(cached) " >&6
8795else case e in #(
8796  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797/* end confdefs.h.  */
8798int i;
8799_ACEOF
8800if ac_fn_c_try_compile "$LINENO"
8801then :
8802  xorg_cv_cc_flag_unknown_warning_option=yes
8803else case e in #(
8804  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8805esac
8806fi
8807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8808esac
8809fi
8810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8811printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8812	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8813	CFLAGS="$xorg_testset_save_CFLAGS"
8814fi
8815
8816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8817	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8818		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8819	fi
8820	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8821	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8822printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8823if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8824then :
8825  printf %s "(cached) " >&6
8826else case e in #(
8827  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828/* end confdefs.h.  */
8829int i;
8830_ACEOF
8831if ac_fn_c_try_compile "$LINENO"
8832then :
8833  xorg_cv_cc_flag_unused_command_line_argument=yes
8834else case e in #(
8835  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8836esac
8837fi
8838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8839esac
8840fi
8841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8842printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8843	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8844	CFLAGS="$xorg_testset_save_CFLAGS"
8845fi
8846
8847found="no"
8848
8849	if test $found = "no" ; then
8850		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8851			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8852		fi
8853
8854		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8855			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8856		fi
8857
8858		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8859
8860		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8861printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8862		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8863		if eval test \${$cacheid+y}
8864then :
8865  printf %s "(cached) " >&6
8866else case e in #(
8867  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868/* end confdefs.h.  */
8869int i;
8870int
8871main (void)
8872{
8873
8874  ;
8875  return 0;
8876}
8877_ACEOF
8878if ac_fn_c_try_link "$LINENO"
8879then :
8880  eval $cacheid=yes
8881else case e in #(
8882  e) eval $cacheid=no ;;
8883esac
8884fi
8885rm -f core conftest.err conftest.$ac_objext conftest.beam \
8886    conftest$ac_exeext conftest.$ac_ext ;;
8887esac
8888fi
8889
8890
8891		CFLAGS="$xorg_testset_save_CFLAGS"
8892
8893		eval supported=\$$cacheid
8894		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8895printf "%s\n" "$supported" >&6; }
8896		if test "$supported" = "yes" ; then
8897			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8898			found="yes"
8899		fi
8900	fi
8901
8902	if test $found = "no" ; then
8903		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8904			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8905		fi
8906
8907		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8908			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8909		fi
8910
8911		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8912
8913		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8914printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8915		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8916		if eval test \${$cacheid+y}
8917then :
8918  printf %s "(cached) " >&6
8919else case e in #(
8920  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921/* end confdefs.h.  */
8922int i;
8923int
8924main (void)
8925{
8926
8927  ;
8928  return 0;
8929}
8930_ACEOF
8931if ac_fn_c_try_link "$LINENO"
8932then :
8933  eval $cacheid=yes
8934else case e in #(
8935  e) eval $cacheid=no ;;
8936esac
8937fi
8938rm -f core conftest.err conftest.$ac_objext conftest.beam \
8939    conftest$ac_exeext conftest.$ac_ext ;;
8940esac
8941fi
8942
8943
8944		CFLAGS="$xorg_testset_save_CFLAGS"
8945
8946		eval supported=\$$cacheid
8947		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8948printf "%s\n" "$supported" >&6; }
8949		if test "$supported" = "yes" ; then
8950			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8951			found="yes"
8952		fi
8953	fi
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969xorg_testset_save_CFLAGS="$CFLAGS"
8970
8971if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8972	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8973	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8974printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8975if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8976then :
8977  printf %s "(cached) " >&6
8978else case e in #(
8979  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980/* end confdefs.h.  */
8981int i;
8982_ACEOF
8983if ac_fn_c_try_compile "$LINENO"
8984then :
8985  xorg_cv_cc_flag_unknown_warning_option=yes
8986else case e in #(
8987  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8988esac
8989fi
8990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8991esac
8992fi
8993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8994printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8995	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8996	CFLAGS="$xorg_testset_save_CFLAGS"
8997fi
8998
8999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9000	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9001		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9002	fi
9003	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9004	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9005printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9006if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9007then :
9008  printf %s "(cached) " >&6
9009else case e in #(
9010  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011/* end confdefs.h.  */
9012int i;
9013_ACEOF
9014if ac_fn_c_try_compile "$LINENO"
9015then :
9016  xorg_cv_cc_flag_unused_command_line_argument=yes
9017else case e in #(
9018  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9019esac
9020fi
9021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9022esac
9023fi
9024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9025printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9026	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9027	CFLAGS="$xorg_testset_save_CFLAGS"
9028fi
9029
9030found="no"
9031
9032	if test $found = "no" ; then
9033		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9034			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9035		fi
9036
9037		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9038			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9039		fi
9040
9041		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9042
9043		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9044printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9045		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9046		if eval test \${$cacheid+y}
9047then :
9048  printf %s "(cached) " >&6
9049else case e in #(
9050  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9051/* end confdefs.h.  */
9052int i;
9053int
9054main (void)
9055{
9056
9057  ;
9058  return 0;
9059}
9060_ACEOF
9061if ac_fn_c_try_link "$LINENO"
9062then :
9063  eval $cacheid=yes
9064else case e in #(
9065  e) eval $cacheid=no ;;
9066esac
9067fi
9068rm -f core conftest.err conftest.$ac_objext conftest.beam \
9069    conftest$ac_exeext conftest.$ac_ext ;;
9070esac
9071fi
9072
9073
9074		CFLAGS="$xorg_testset_save_CFLAGS"
9075
9076		eval supported=\$$cacheid
9077		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9078printf "%s\n" "$supported" >&6; }
9079		if test "$supported" = "yes" ; then
9080			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9081			found="yes"
9082		fi
9083	fi
9084
9085 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9086else
9087{ 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
9088printf "%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;}
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102xorg_testset_save_CFLAGS="$CFLAGS"
9103
9104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9105	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9106	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9107printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9108if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9109then :
9110  printf %s "(cached) " >&6
9111else case e in #(
9112  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113/* end confdefs.h.  */
9114int i;
9115_ACEOF
9116if ac_fn_c_try_compile "$LINENO"
9117then :
9118  xorg_cv_cc_flag_unknown_warning_option=yes
9119else case e in #(
9120  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9121esac
9122fi
9123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9124esac
9125fi
9126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9127printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9128	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9129	CFLAGS="$xorg_testset_save_CFLAGS"
9130fi
9131
9132if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9133	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9134		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9135	fi
9136	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9137	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9138printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9139if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9140then :
9141  printf %s "(cached) " >&6
9142else case e in #(
9143  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144/* end confdefs.h.  */
9145int i;
9146_ACEOF
9147if ac_fn_c_try_compile "$LINENO"
9148then :
9149  xorg_cv_cc_flag_unused_command_line_argument=yes
9150else case e in #(
9151  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9152esac
9153fi
9154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9155esac
9156fi
9157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9158printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9159	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9160	CFLAGS="$xorg_testset_save_CFLAGS"
9161fi
9162
9163found="no"
9164
9165	if test $found = "no" ; then
9166		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9167			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9168		fi
9169
9170		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9171			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9172		fi
9173
9174		CFLAGS="$CFLAGS -Wimplicit"
9175
9176		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9177printf %s "checking if $CC supports -Wimplicit... " >&6; }
9178		cacheid=xorg_cv_cc_flag__Wimplicit
9179		if eval test \${$cacheid+y}
9180then :
9181  printf %s "(cached) " >&6
9182else case e in #(
9183  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184/* end confdefs.h.  */
9185int i;
9186int
9187main (void)
9188{
9189
9190  ;
9191  return 0;
9192}
9193_ACEOF
9194if ac_fn_c_try_link "$LINENO"
9195then :
9196  eval $cacheid=yes
9197else case e in #(
9198  e) eval $cacheid=no ;;
9199esac
9200fi
9201rm -f core conftest.err conftest.$ac_objext conftest.beam \
9202    conftest$ac_exeext conftest.$ac_ext ;;
9203esac
9204fi
9205
9206
9207		CFLAGS="$xorg_testset_save_CFLAGS"
9208
9209		eval supported=\$$cacheid
9210		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9211printf "%s\n" "$supported" >&6; }
9212		if test "$supported" = "yes" ; then
9213			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9214			found="yes"
9215		fi
9216	fi
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232xorg_testset_save_CFLAGS="$CFLAGS"
9233
9234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9235	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9236	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9237printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9238if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9239then :
9240  printf %s "(cached) " >&6
9241else case e in #(
9242  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243/* end confdefs.h.  */
9244int i;
9245_ACEOF
9246if ac_fn_c_try_compile "$LINENO"
9247then :
9248  xorg_cv_cc_flag_unknown_warning_option=yes
9249else case e in #(
9250  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9251esac
9252fi
9253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9254esac
9255fi
9256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9257printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9258	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9259	CFLAGS="$xorg_testset_save_CFLAGS"
9260fi
9261
9262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9263	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9264		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9265	fi
9266	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9267	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9268printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9269if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9270then :
9271  printf %s "(cached) " >&6
9272else case e in #(
9273  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274/* end confdefs.h.  */
9275int i;
9276_ACEOF
9277if ac_fn_c_try_compile "$LINENO"
9278then :
9279  xorg_cv_cc_flag_unused_command_line_argument=yes
9280else case e in #(
9281  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9282esac
9283fi
9284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9285esac
9286fi
9287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9288printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9289	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9290	CFLAGS="$xorg_testset_save_CFLAGS"
9291fi
9292
9293found="no"
9294
9295	if test $found = "no" ; then
9296		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9297			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9298		fi
9299
9300		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9301			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9302		fi
9303
9304		CFLAGS="$CFLAGS -Wnonnull"
9305
9306		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9307printf %s "checking if $CC supports -Wnonnull... " >&6; }
9308		cacheid=xorg_cv_cc_flag__Wnonnull
9309		if eval test \${$cacheid+y}
9310then :
9311  printf %s "(cached) " >&6
9312else case e in #(
9313  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314/* end confdefs.h.  */
9315int i;
9316int
9317main (void)
9318{
9319
9320  ;
9321  return 0;
9322}
9323_ACEOF
9324if ac_fn_c_try_link "$LINENO"
9325then :
9326  eval $cacheid=yes
9327else case e in #(
9328  e) eval $cacheid=no ;;
9329esac
9330fi
9331rm -f core conftest.err conftest.$ac_objext conftest.beam \
9332    conftest$ac_exeext conftest.$ac_ext ;;
9333esac
9334fi
9335
9336
9337		CFLAGS="$xorg_testset_save_CFLAGS"
9338
9339		eval supported=\$$cacheid
9340		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9341printf "%s\n" "$supported" >&6; }
9342		if test "$supported" = "yes" ; then
9343			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9344			found="yes"
9345		fi
9346	fi
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362xorg_testset_save_CFLAGS="$CFLAGS"
9363
9364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9365	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9367printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9368if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9369then :
9370  printf %s "(cached) " >&6
9371else case e in #(
9372  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373/* end confdefs.h.  */
9374int i;
9375_ACEOF
9376if ac_fn_c_try_compile "$LINENO"
9377then :
9378  xorg_cv_cc_flag_unknown_warning_option=yes
9379else case e in #(
9380  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9381esac
9382fi
9383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9384esac
9385fi
9386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9387printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9388	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9389	CFLAGS="$xorg_testset_save_CFLAGS"
9390fi
9391
9392if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9393	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9394		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9395	fi
9396	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9397	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9398printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9399if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9400then :
9401  printf %s "(cached) " >&6
9402else case e in #(
9403  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404/* end confdefs.h.  */
9405int i;
9406_ACEOF
9407if ac_fn_c_try_compile "$LINENO"
9408then :
9409  xorg_cv_cc_flag_unused_command_line_argument=yes
9410else case e in #(
9411  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9412esac
9413fi
9414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9415esac
9416fi
9417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9418printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9419	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9420	CFLAGS="$xorg_testset_save_CFLAGS"
9421fi
9422
9423found="no"
9424
9425	if test $found = "no" ; then
9426		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9427			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9428		fi
9429
9430		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9431			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9432		fi
9433
9434		CFLAGS="$CFLAGS -Winit-self"
9435
9436		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9437printf %s "checking if $CC supports -Winit-self... " >&6; }
9438		cacheid=xorg_cv_cc_flag__Winit_self
9439		if eval test \${$cacheid+y}
9440then :
9441  printf %s "(cached) " >&6
9442else case e in #(
9443  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444/* end confdefs.h.  */
9445int i;
9446int
9447main (void)
9448{
9449
9450  ;
9451  return 0;
9452}
9453_ACEOF
9454if ac_fn_c_try_link "$LINENO"
9455then :
9456  eval $cacheid=yes
9457else case e in #(
9458  e) eval $cacheid=no ;;
9459esac
9460fi
9461rm -f core conftest.err conftest.$ac_objext conftest.beam \
9462    conftest$ac_exeext conftest.$ac_ext ;;
9463esac
9464fi
9465
9466
9467		CFLAGS="$xorg_testset_save_CFLAGS"
9468
9469		eval supported=\$$cacheid
9470		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9471printf "%s\n" "$supported" >&6; }
9472		if test "$supported" = "yes" ; then
9473			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9474			found="yes"
9475		fi
9476	fi
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492xorg_testset_save_CFLAGS="$CFLAGS"
9493
9494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9495	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9496	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9497printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9498if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9499then :
9500  printf %s "(cached) " >&6
9501else case e in #(
9502  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503/* end confdefs.h.  */
9504int i;
9505_ACEOF
9506if ac_fn_c_try_compile "$LINENO"
9507then :
9508  xorg_cv_cc_flag_unknown_warning_option=yes
9509else case e in #(
9510  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9511esac
9512fi
9513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9514esac
9515fi
9516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9517printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9518	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9519	CFLAGS="$xorg_testset_save_CFLAGS"
9520fi
9521
9522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9523	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9524		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9525	fi
9526	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9527	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9528printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9529if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9530then :
9531  printf %s "(cached) " >&6
9532else case e in #(
9533  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534/* end confdefs.h.  */
9535int i;
9536_ACEOF
9537if ac_fn_c_try_compile "$LINENO"
9538then :
9539  xorg_cv_cc_flag_unused_command_line_argument=yes
9540else case e in #(
9541  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9542esac
9543fi
9544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9545esac
9546fi
9547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9548printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9549	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9550	CFLAGS="$xorg_testset_save_CFLAGS"
9551fi
9552
9553found="no"
9554
9555	if test $found = "no" ; then
9556		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9557			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9558		fi
9559
9560		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9561			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9562		fi
9563
9564		CFLAGS="$CFLAGS -Wmain"
9565
9566		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9567printf %s "checking if $CC supports -Wmain... " >&6; }
9568		cacheid=xorg_cv_cc_flag__Wmain
9569		if eval test \${$cacheid+y}
9570then :
9571  printf %s "(cached) " >&6
9572else case e in #(
9573  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574/* end confdefs.h.  */
9575int i;
9576int
9577main (void)
9578{
9579
9580  ;
9581  return 0;
9582}
9583_ACEOF
9584if ac_fn_c_try_link "$LINENO"
9585then :
9586  eval $cacheid=yes
9587else case e in #(
9588  e) eval $cacheid=no ;;
9589esac
9590fi
9591rm -f core conftest.err conftest.$ac_objext conftest.beam \
9592    conftest$ac_exeext conftest.$ac_ext ;;
9593esac
9594fi
9595
9596
9597		CFLAGS="$xorg_testset_save_CFLAGS"
9598
9599		eval supported=\$$cacheid
9600		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9601printf "%s\n" "$supported" >&6; }
9602		if test "$supported" = "yes" ; then
9603			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9604			found="yes"
9605		fi
9606	fi
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622xorg_testset_save_CFLAGS="$CFLAGS"
9623
9624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9625	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9626	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9627printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9628if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9629then :
9630  printf %s "(cached) " >&6
9631else case e in #(
9632  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633/* end confdefs.h.  */
9634int i;
9635_ACEOF
9636if ac_fn_c_try_compile "$LINENO"
9637then :
9638  xorg_cv_cc_flag_unknown_warning_option=yes
9639else case e in #(
9640  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9641esac
9642fi
9643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9644esac
9645fi
9646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9647printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9648	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9649	CFLAGS="$xorg_testset_save_CFLAGS"
9650fi
9651
9652if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9653	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9654		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9655	fi
9656	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9657	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9658printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9659if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9660then :
9661  printf %s "(cached) " >&6
9662else case e in #(
9663  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664/* end confdefs.h.  */
9665int i;
9666_ACEOF
9667if ac_fn_c_try_compile "$LINENO"
9668then :
9669  xorg_cv_cc_flag_unused_command_line_argument=yes
9670else case e in #(
9671  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9672esac
9673fi
9674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9675esac
9676fi
9677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9678printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9679	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9680	CFLAGS="$xorg_testset_save_CFLAGS"
9681fi
9682
9683found="no"
9684
9685	if test $found = "no" ; then
9686		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9687			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9688		fi
9689
9690		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9691			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9692		fi
9693
9694		CFLAGS="$CFLAGS -Wmissing-braces"
9695
9696		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9697printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9698		cacheid=xorg_cv_cc_flag__Wmissing_braces
9699		if eval test \${$cacheid+y}
9700then :
9701  printf %s "(cached) " >&6
9702else case e in #(
9703  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704/* end confdefs.h.  */
9705int i;
9706int
9707main (void)
9708{
9709
9710  ;
9711  return 0;
9712}
9713_ACEOF
9714if ac_fn_c_try_link "$LINENO"
9715then :
9716  eval $cacheid=yes
9717else case e in #(
9718  e) eval $cacheid=no ;;
9719esac
9720fi
9721rm -f core conftest.err conftest.$ac_objext conftest.beam \
9722    conftest$ac_exeext conftest.$ac_ext ;;
9723esac
9724fi
9725
9726
9727		CFLAGS="$xorg_testset_save_CFLAGS"
9728
9729		eval supported=\$$cacheid
9730		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9731printf "%s\n" "$supported" >&6; }
9732		if test "$supported" = "yes" ; then
9733			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9734			found="yes"
9735		fi
9736	fi
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752xorg_testset_save_CFLAGS="$CFLAGS"
9753
9754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9755	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9756	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9757printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9758if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9759then :
9760  printf %s "(cached) " >&6
9761else case e in #(
9762  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763/* end confdefs.h.  */
9764int i;
9765_ACEOF
9766if ac_fn_c_try_compile "$LINENO"
9767then :
9768  xorg_cv_cc_flag_unknown_warning_option=yes
9769else case e in #(
9770  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9771esac
9772fi
9773rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9774esac
9775fi
9776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9777printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9778	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9779	CFLAGS="$xorg_testset_save_CFLAGS"
9780fi
9781
9782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9783	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9784		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9785	fi
9786	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9787	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9788printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9789if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9790then :
9791  printf %s "(cached) " >&6
9792else case e in #(
9793  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794/* end confdefs.h.  */
9795int i;
9796_ACEOF
9797if ac_fn_c_try_compile "$LINENO"
9798then :
9799  xorg_cv_cc_flag_unused_command_line_argument=yes
9800else case e in #(
9801  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9802esac
9803fi
9804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9805esac
9806fi
9807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9808printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9809	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9810	CFLAGS="$xorg_testset_save_CFLAGS"
9811fi
9812
9813found="no"
9814
9815	if test $found = "no" ; then
9816		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9817			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9818		fi
9819
9820		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9821			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9822		fi
9823
9824		CFLAGS="$CFLAGS -Wsequence-point"
9825
9826		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9827printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9828		cacheid=xorg_cv_cc_flag__Wsequence_point
9829		if eval test \${$cacheid+y}
9830then :
9831  printf %s "(cached) " >&6
9832else case e in #(
9833  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834/* end confdefs.h.  */
9835int i;
9836int
9837main (void)
9838{
9839
9840  ;
9841  return 0;
9842}
9843_ACEOF
9844if ac_fn_c_try_link "$LINENO"
9845then :
9846  eval $cacheid=yes
9847else case e in #(
9848  e) eval $cacheid=no ;;
9849esac
9850fi
9851rm -f core conftest.err conftest.$ac_objext conftest.beam \
9852    conftest$ac_exeext conftest.$ac_ext ;;
9853esac
9854fi
9855
9856
9857		CFLAGS="$xorg_testset_save_CFLAGS"
9858
9859		eval supported=\$$cacheid
9860		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9861printf "%s\n" "$supported" >&6; }
9862		if test "$supported" = "yes" ; then
9863			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9864			found="yes"
9865		fi
9866	fi
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882xorg_testset_save_CFLAGS="$CFLAGS"
9883
9884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9885	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9886	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9887printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9888if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9889then :
9890  printf %s "(cached) " >&6
9891else case e in #(
9892  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893/* end confdefs.h.  */
9894int i;
9895_ACEOF
9896if ac_fn_c_try_compile "$LINENO"
9897then :
9898  xorg_cv_cc_flag_unknown_warning_option=yes
9899else case e in #(
9900  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9901esac
9902fi
9903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9904esac
9905fi
9906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9907printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9908	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9909	CFLAGS="$xorg_testset_save_CFLAGS"
9910fi
9911
9912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9913	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9914		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9915	fi
9916	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9917	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9918printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9919if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9920then :
9921  printf %s "(cached) " >&6
9922else case e in #(
9923  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924/* end confdefs.h.  */
9925int i;
9926_ACEOF
9927if ac_fn_c_try_compile "$LINENO"
9928then :
9929  xorg_cv_cc_flag_unused_command_line_argument=yes
9930else case e in #(
9931  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9932esac
9933fi
9934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9935esac
9936fi
9937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9938printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9939	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9940	CFLAGS="$xorg_testset_save_CFLAGS"
9941fi
9942
9943found="no"
9944
9945	if test $found = "no" ; then
9946		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9947			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9948		fi
9949
9950		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9951			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9952		fi
9953
9954		CFLAGS="$CFLAGS -Wreturn-type"
9955
9956		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9957printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9958		cacheid=xorg_cv_cc_flag__Wreturn_type
9959		if eval test \${$cacheid+y}
9960then :
9961  printf %s "(cached) " >&6
9962else case e in #(
9963  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964/* end confdefs.h.  */
9965int i;
9966int
9967main (void)
9968{
9969
9970  ;
9971  return 0;
9972}
9973_ACEOF
9974if ac_fn_c_try_link "$LINENO"
9975then :
9976  eval $cacheid=yes
9977else case e in #(
9978  e) eval $cacheid=no ;;
9979esac
9980fi
9981rm -f core conftest.err conftest.$ac_objext conftest.beam \
9982    conftest$ac_exeext conftest.$ac_ext ;;
9983esac
9984fi
9985
9986
9987		CFLAGS="$xorg_testset_save_CFLAGS"
9988
9989		eval supported=\$$cacheid
9990		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9991printf "%s\n" "$supported" >&6; }
9992		if test "$supported" = "yes" ; then
9993			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9994			found="yes"
9995		fi
9996	fi
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012xorg_testset_save_CFLAGS="$CFLAGS"
10013
10014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10015	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10016	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10017printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10018if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10019then :
10020  printf %s "(cached) " >&6
10021else case e in #(
10022  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023/* end confdefs.h.  */
10024int i;
10025_ACEOF
10026if ac_fn_c_try_compile "$LINENO"
10027then :
10028  xorg_cv_cc_flag_unknown_warning_option=yes
10029else case e in #(
10030  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10031esac
10032fi
10033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10034esac
10035fi
10036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10037printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10038	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10039	CFLAGS="$xorg_testset_save_CFLAGS"
10040fi
10041
10042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10043	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10044		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10045	fi
10046	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10047	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10048printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10049if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10050then :
10051  printf %s "(cached) " >&6
10052else case e in #(
10053  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054/* end confdefs.h.  */
10055int i;
10056_ACEOF
10057if ac_fn_c_try_compile "$LINENO"
10058then :
10059  xorg_cv_cc_flag_unused_command_line_argument=yes
10060else case e in #(
10061  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10062esac
10063fi
10064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10065esac
10066fi
10067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10068printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10069	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10070	CFLAGS="$xorg_testset_save_CFLAGS"
10071fi
10072
10073found="no"
10074
10075	if test $found = "no" ; then
10076		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10077			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10078		fi
10079
10080		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10081			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10082		fi
10083
10084		CFLAGS="$CFLAGS -Wtrigraphs"
10085
10086		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10087printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10088		cacheid=xorg_cv_cc_flag__Wtrigraphs
10089		if eval test \${$cacheid+y}
10090then :
10091  printf %s "(cached) " >&6
10092else case e in #(
10093  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094/* end confdefs.h.  */
10095int i;
10096int
10097main (void)
10098{
10099
10100  ;
10101  return 0;
10102}
10103_ACEOF
10104if ac_fn_c_try_link "$LINENO"
10105then :
10106  eval $cacheid=yes
10107else case e in #(
10108  e) eval $cacheid=no ;;
10109esac
10110fi
10111rm -f core conftest.err conftest.$ac_objext conftest.beam \
10112    conftest$ac_exeext conftest.$ac_ext ;;
10113esac
10114fi
10115
10116
10117		CFLAGS="$xorg_testset_save_CFLAGS"
10118
10119		eval supported=\$$cacheid
10120		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10121printf "%s\n" "$supported" >&6; }
10122		if test "$supported" = "yes" ; then
10123			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10124			found="yes"
10125		fi
10126	fi
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142xorg_testset_save_CFLAGS="$CFLAGS"
10143
10144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10145	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10146	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10147printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10148if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10149then :
10150  printf %s "(cached) " >&6
10151else case e in #(
10152  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153/* end confdefs.h.  */
10154int i;
10155_ACEOF
10156if ac_fn_c_try_compile "$LINENO"
10157then :
10158  xorg_cv_cc_flag_unknown_warning_option=yes
10159else case e in #(
10160  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10161esac
10162fi
10163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10164esac
10165fi
10166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10167printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10168	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10169	CFLAGS="$xorg_testset_save_CFLAGS"
10170fi
10171
10172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10173	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10174		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10175	fi
10176	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10177	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10178printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10179if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10180then :
10181  printf %s "(cached) " >&6
10182else case e in #(
10183  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184/* end confdefs.h.  */
10185int i;
10186_ACEOF
10187if ac_fn_c_try_compile "$LINENO"
10188then :
10189  xorg_cv_cc_flag_unused_command_line_argument=yes
10190else case e in #(
10191  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10192esac
10193fi
10194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10195esac
10196fi
10197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10198printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10199	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10200	CFLAGS="$xorg_testset_save_CFLAGS"
10201fi
10202
10203found="no"
10204
10205	if test $found = "no" ; then
10206		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10207			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10208		fi
10209
10210		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10211			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10212		fi
10213
10214		CFLAGS="$CFLAGS -Warray-bounds"
10215
10216		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10217printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10218		cacheid=xorg_cv_cc_flag__Warray_bounds
10219		if eval test \${$cacheid+y}
10220then :
10221  printf %s "(cached) " >&6
10222else case e in #(
10223  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224/* end confdefs.h.  */
10225int i;
10226int
10227main (void)
10228{
10229
10230  ;
10231  return 0;
10232}
10233_ACEOF
10234if ac_fn_c_try_link "$LINENO"
10235then :
10236  eval $cacheid=yes
10237else case e in #(
10238  e) eval $cacheid=no ;;
10239esac
10240fi
10241rm -f core conftest.err conftest.$ac_objext conftest.beam \
10242    conftest$ac_exeext conftest.$ac_ext ;;
10243esac
10244fi
10245
10246
10247		CFLAGS="$xorg_testset_save_CFLAGS"
10248
10249		eval supported=\$$cacheid
10250		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10251printf "%s\n" "$supported" >&6; }
10252		if test "$supported" = "yes" ; then
10253			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10254			found="yes"
10255		fi
10256	fi
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272xorg_testset_save_CFLAGS="$CFLAGS"
10273
10274if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10275	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10276	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10277printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10278if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10279then :
10280  printf %s "(cached) " >&6
10281else case e in #(
10282  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283/* end confdefs.h.  */
10284int i;
10285_ACEOF
10286if ac_fn_c_try_compile "$LINENO"
10287then :
10288  xorg_cv_cc_flag_unknown_warning_option=yes
10289else case e in #(
10290  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10291esac
10292fi
10293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10294esac
10295fi
10296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10297printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10298	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10299	CFLAGS="$xorg_testset_save_CFLAGS"
10300fi
10301
10302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10303	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10304		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10305	fi
10306	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10307	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10308printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10309if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10310then :
10311  printf %s "(cached) " >&6
10312else case e in #(
10313  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10314/* end confdefs.h.  */
10315int i;
10316_ACEOF
10317if ac_fn_c_try_compile "$LINENO"
10318then :
10319  xorg_cv_cc_flag_unused_command_line_argument=yes
10320else case e in #(
10321  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10322esac
10323fi
10324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10325esac
10326fi
10327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10328printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10329	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10330	CFLAGS="$xorg_testset_save_CFLAGS"
10331fi
10332
10333found="no"
10334
10335	if test $found = "no" ; then
10336		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10337			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10338		fi
10339
10340		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10341			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10342		fi
10343
10344		CFLAGS="$CFLAGS -Wwrite-strings"
10345
10346		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10347printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10348		cacheid=xorg_cv_cc_flag__Wwrite_strings
10349		if eval test \${$cacheid+y}
10350then :
10351  printf %s "(cached) " >&6
10352else case e in #(
10353  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354/* end confdefs.h.  */
10355int i;
10356int
10357main (void)
10358{
10359
10360  ;
10361  return 0;
10362}
10363_ACEOF
10364if ac_fn_c_try_link "$LINENO"
10365then :
10366  eval $cacheid=yes
10367else case e in #(
10368  e) eval $cacheid=no ;;
10369esac
10370fi
10371rm -f core conftest.err conftest.$ac_objext conftest.beam \
10372    conftest$ac_exeext conftest.$ac_ext ;;
10373esac
10374fi
10375
10376
10377		CFLAGS="$xorg_testset_save_CFLAGS"
10378
10379		eval supported=\$$cacheid
10380		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10381printf "%s\n" "$supported" >&6; }
10382		if test "$supported" = "yes" ; then
10383			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10384			found="yes"
10385		fi
10386	fi
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402xorg_testset_save_CFLAGS="$CFLAGS"
10403
10404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10405	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10406	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10407printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10408if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10409then :
10410  printf %s "(cached) " >&6
10411else case e in #(
10412  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413/* end confdefs.h.  */
10414int i;
10415_ACEOF
10416if ac_fn_c_try_compile "$LINENO"
10417then :
10418  xorg_cv_cc_flag_unknown_warning_option=yes
10419else case e in #(
10420  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10421esac
10422fi
10423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10424esac
10425fi
10426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10427printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10428	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10429	CFLAGS="$xorg_testset_save_CFLAGS"
10430fi
10431
10432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10433	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10434		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10435	fi
10436	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10437	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10438printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10439if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10440then :
10441  printf %s "(cached) " >&6
10442else case e in #(
10443  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444/* end confdefs.h.  */
10445int i;
10446_ACEOF
10447if ac_fn_c_try_compile "$LINENO"
10448then :
10449  xorg_cv_cc_flag_unused_command_line_argument=yes
10450else case e in #(
10451  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10452esac
10453fi
10454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10455esac
10456fi
10457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10458printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10459	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10460	CFLAGS="$xorg_testset_save_CFLAGS"
10461fi
10462
10463found="no"
10464
10465	if test $found = "no" ; then
10466		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10467			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10468		fi
10469
10470		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10471			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10472		fi
10473
10474		CFLAGS="$CFLAGS -Waddress"
10475
10476		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10477printf %s "checking if $CC supports -Waddress... " >&6; }
10478		cacheid=xorg_cv_cc_flag__Waddress
10479		if eval test \${$cacheid+y}
10480then :
10481  printf %s "(cached) " >&6
10482else case e in #(
10483  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10484/* end confdefs.h.  */
10485int i;
10486int
10487main (void)
10488{
10489
10490  ;
10491  return 0;
10492}
10493_ACEOF
10494if ac_fn_c_try_link "$LINENO"
10495then :
10496  eval $cacheid=yes
10497else case e in #(
10498  e) eval $cacheid=no ;;
10499esac
10500fi
10501rm -f core conftest.err conftest.$ac_objext conftest.beam \
10502    conftest$ac_exeext conftest.$ac_ext ;;
10503esac
10504fi
10505
10506
10507		CFLAGS="$xorg_testset_save_CFLAGS"
10508
10509		eval supported=\$$cacheid
10510		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10511printf "%s\n" "$supported" >&6; }
10512		if test "$supported" = "yes" ; then
10513			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10514			found="yes"
10515		fi
10516	fi
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532xorg_testset_save_CFLAGS="$CFLAGS"
10533
10534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10535	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10536	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10537printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10538if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10539then :
10540  printf %s "(cached) " >&6
10541else case e in #(
10542  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543/* end confdefs.h.  */
10544int i;
10545_ACEOF
10546if ac_fn_c_try_compile "$LINENO"
10547then :
10548  xorg_cv_cc_flag_unknown_warning_option=yes
10549else case e in #(
10550  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10551esac
10552fi
10553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10554esac
10555fi
10556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10557printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10558	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10559	CFLAGS="$xorg_testset_save_CFLAGS"
10560fi
10561
10562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10563	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10564		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10565	fi
10566	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10567	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10568printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10569if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10570then :
10571  printf %s "(cached) " >&6
10572else case e in #(
10573  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10574/* end confdefs.h.  */
10575int i;
10576_ACEOF
10577if ac_fn_c_try_compile "$LINENO"
10578then :
10579  xorg_cv_cc_flag_unused_command_line_argument=yes
10580else case e in #(
10581  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10582esac
10583fi
10584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10585esac
10586fi
10587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10588printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10589	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10590	CFLAGS="$xorg_testset_save_CFLAGS"
10591fi
10592
10593found="no"
10594
10595	if test $found = "no" ; then
10596		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10597			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10598		fi
10599
10600		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10601			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10602		fi
10603
10604		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10605
10606		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10607printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10608		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10609		if eval test \${$cacheid+y}
10610then :
10611  printf %s "(cached) " >&6
10612else case e in #(
10613  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614/* end confdefs.h.  */
10615int i;
10616int
10617main (void)
10618{
10619
10620  ;
10621  return 0;
10622}
10623_ACEOF
10624if ac_fn_c_try_link "$LINENO"
10625then :
10626  eval $cacheid=yes
10627else case e in #(
10628  e) eval $cacheid=no ;;
10629esac
10630fi
10631rm -f core conftest.err conftest.$ac_objext conftest.beam \
10632    conftest$ac_exeext conftest.$ac_ext ;;
10633esac
10634fi
10635
10636
10637		CFLAGS="$xorg_testset_save_CFLAGS"
10638
10639		eval supported=\$$cacheid
10640		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10641printf "%s\n" "$supported" >&6; }
10642		if test "$supported" = "yes" ; then
10643			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10644			found="yes"
10645		fi
10646	fi
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662xorg_testset_save_CFLAGS="$CFLAGS"
10663
10664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10665	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10666	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10667printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10668if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10669then :
10670  printf %s "(cached) " >&6
10671else case e in #(
10672  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673/* end confdefs.h.  */
10674int i;
10675_ACEOF
10676if ac_fn_c_try_compile "$LINENO"
10677then :
10678  xorg_cv_cc_flag_unknown_warning_option=yes
10679else case e in #(
10680  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10681esac
10682fi
10683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10684esac
10685fi
10686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10687printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10688	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10689	CFLAGS="$xorg_testset_save_CFLAGS"
10690fi
10691
10692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10693	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10694		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10695	fi
10696	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10697	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10698printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10699if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10700then :
10701  printf %s "(cached) " >&6
10702else case e in #(
10703  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704/* end confdefs.h.  */
10705int i;
10706_ACEOF
10707if ac_fn_c_try_compile "$LINENO"
10708then :
10709  xorg_cv_cc_flag_unused_command_line_argument=yes
10710else case e in #(
10711  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10712esac
10713fi
10714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10715esac
10716fi
10717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10718printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10719	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10720	CFLAGS="$xorg_testset_save_CFLAGS"
10721fi
10722
10723found="no"
10724
10725	if test $found = "no" ; then
10726		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10727			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10728		fi
10729
10730		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10731			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10732		fi
10733
10734		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10735
10736		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10737printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10738		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10739		if eval test \${$cacheid+y}
10740then :
10741  printf %s "(cached) " >&6
10742else case e in #(
10743  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744/* end confdefs.h.  */
10745int i;
10746int
10747main (void)
10748{
10749
10750  ;
10751  return 0;
10752}
10753_ACEOF
10754if ac_fn_c_try_link "$LINENO"
10755then :
10756  eval $cacheid=yes
10757else case e in #(
10758  e) eval $cacheid=no ;;
10759esac
10760fi
10761rm -f core conftest.err conftest.$ac_objext conftest.beam \
10762    conftest$ac_exeext conftest.$ac_ext ;;
10763esac
10764fi
10765
10766
10767		CFLAGS="$xorg_testset_save_CFLAGS"
10768
10769		eval supported=\$$cacheid
10770		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10771printf "%s\n" "$supported" >&6; }
10772		if test "$supported" = "yes" ; then
10773			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10774			found="yes"
10775		fi
10776	fi
10777
10778
10779fi
10780
10781
10782
10783
10784
10785
10786
10787		CWARNFLAGS="$BASE_CFLAGS"
10788		if  test "x$GCC" = xyes ; then
10789		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10790		fi
10791
10792
10793
10794
10795
10796
10797
10798
10799# Check whether --enable-strict-compilation was given.
10800if test ${enable_strict_compilation+y}
10801then :
10802  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10803else case e in #(
10804  e) STRICT_COMPILE=no ;;
10805esac
10806fi
10807
10808
10809
10810
10811
10812
10813STRICT_CFLAGS=""
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827xorg_testset_save_CFLAGS="$CFLAGS"
10828
10829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10830	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10831	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10832printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10833if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10834then :
10835  printf %s "(cached) " >&6
10836else case e in #(
10837  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838/* end confdefs.h.  */
10839int i;
10840_ACEOF
10841if ac_fn_c_try_compile "$LINENO"
10842then :
10843  xorg_cv_cc_flag_unknown_warning_option=yes
10844else case e in #(
10845  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10846esac
10847fi
10848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10849esac
10850fi
10851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10852printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10853	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10854	CFLAGS="$xorg_testset_save_CFLAGS"
10855fi
10856
10857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10858	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10859		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10860	fi
10861	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10862	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10863printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10864if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10865then :
10866  printf %s "(cached) " >&6
10867else case e in #(
10868  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869/* end confdefs.h.  */
10870int i;
10871_ACEOF
10872if ac_fn_c_try_compile "$LINENO"
10873then :
10874  xorg_cv_cc_flag_unused_command_line_argument=yes
10875else case e in #(
10876  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10877esac
10878fi
10879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10880esac
10881fi
10882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10883printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10884	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10885	CFLAGS="$xorg_testset_save_CFLAGS"
10886fi
10887
10888found="no"
10889
10890	if test $found = "no" ; then
10891		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10892			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10893		fi
10894
10895		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10896			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10897		fi
10898
10899		CFLAGS="$CFLAGS -pedantic"
10900
10901		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10902printf %s "checking if $CC supports -pedantic... " >&6; }
10903		cacheid=xorg_cv_cc_flag__pedantic
10904		if eval test \${$cacheid+y}
10905then :
10906  printf %s "(cached) " >&6
10907else case e in #(
10908  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909/* end confdefs.h.  */
10910int i;
10911int
10912main (void)
10913{
10914
10915  ;
10916  return 0;
10917}
10918_ACEOF
10919if ac_fn_c_try_link "$LINENO"
10920then :
10921  eval $cacheid=yes
10922else case e in #(
10923  e) eval $cacheid=no ;;
10924esac
10925fi
10926rm -f core conftest.err conftest.$ac_objext conftest.beam \
10927    conftest$ac_exeext conftest.$ac_ext ;;
10928esac
10929fi
10930
10931
10932		CFLAGS="$xorg_testset_save_CFLAGS"
10933
10934		eval supported=\$$cacheid
10935		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10936printf "%s\n" "$supported" >&6; }
10937		if test "$supported" = "yes" ; then
10938			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10939			found="yes"
10940		fi
10941	fi
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957xorg_testset_save_CFLAGS="$CFLAGS"
10958
10959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10960	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10961	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10962printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10963if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10964then :
10965  printf %s "(cached) " >&6
10966else case e in #(
10967  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968/* end confdefs.h.  */
10969int i;
10970_ACEOF
10971if ac_fn_c_try_compile "$LINENO"
10972then :
10973  xorg_cv_cc_flag_unknown_warning_option=yes
10974else case e in #(
10975  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10976esac
10977fi
10978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10979esac
10980fi
10981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10982printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10983	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10984	CFLAGS="$xorg_testset_save_CFLAGS"
10985fi
10986
10987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10988	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10989		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10990	fi
10991	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10992	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10993printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10994if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10995then :
10996  printf %s "(cached) " >&6
10997else case e in #(
10998  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999/* end confdefs.h.  */
11000int i;
11001_ACEOF
11002if ac_fn_c_try_compile "$LINENO"
11003then :
11004  xorg_cv_cc_flag_unused_command_line_argument=yes
11005else case e in #(
11006  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11007esac
11008fi
11009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11010esac
11011fi
11012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11013printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11014	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11015	CFLAGS="$xorg_testset_save_CFLAGS"
11016fi
11017
11018found="no"
11019
11020	if test $found = "no" ; then
11021		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11022			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11023		fi
11024
11025		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11026			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11027		fi
11028
11029		CFLAGS="$CFLAGS -Werror"
11030
11031		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11032printf %s "checking if $CC supports -Werror... " >&6; }
11033		cacheid=xorg_cv_cc_flag__Werror
11034		if eval test \${$cacheid+y}
11035then :
11036  printf %s "(cached) " >&6
11037else case e in #(
11038  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039/* end confdefs.h.  */
11040int i;
11041int
11042main (void)
11043{
11044
11045  ;
11046  return 0;
11047}
11048_ACEOF
11049if ac_fn_c_try_link "$LINENO"
11050then :
11051  eval $cacheid=yes
11052else case e in #(
11053  e) eval $cacheid=no ;;
11054esac
11055fi
11056rm -f core conftest.err conftest.$ac_objext conftest.beam \
11057    conftest$ac_exeext conftest.$ac_ext ;;
11058esac
11059fi
11060
11061
11062		CFLAGS="$xorg_testset_save_CFLAGS"
11063
11064		eval supported=\$$cacheid
11065		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11066printf "%s\n" "$supported" >&6; }
11067		if test "$supported" = "yes" ; then
11068			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11069			found="yes"
11070		fi
11071	fi
11072
11073	if test $found = "no" ; then
11074		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11075			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11076		fi
11077
11078		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11079			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11080		fi
11081
11082		CFLAGS="$CFLAGS -errwarn"
11083
11084		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11085printf %s "checking if $CC supports -errwarn... " >&6; }
11086		cacheid=xorg_cv_cc_flag__errwarn
11087		if eval test \${$cacheid+y}
11088then :
11089  printf %s "(cached) " >&6
11090else case e in #(
11091  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092/* end confdefs.h.  */
11093int i;
11094int
11095main (void)
11096{
11097
11098  ;
11099  return 0;
11100}
11101_ACEOF
11102if ac_fn_c_try_link "$LINENO"
11103then :
11104  eval $cacheid=yes
11105else case e in #(
11106  e) eval $cacheid=no ;;
11107esac
11108fi
11109rm -f core conftest.err conftest.$ac_objext conftest.beam \
11110    conftest$ac_exeext conftest.$ac_ext ;;
11111esac
11112fi
11113
11114
11115		CFLAGS="$xorg_testset_save_CFLAGS"
11116
11117		eval supported=\$$cacheid
11118		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11119printf "%s\n" "$supported" >&6; }
11120		if test "$supported" = "yes" ; then
11121			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11122			found="yes"
11123		fi
11124	fi
11125
11126
11127
11128# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11129# activate it with -Werror, so we add it here explicitly.
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143xorg_testset_save_CFLAGS="$CFLAGS"
11144
11145if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11146	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11147	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11148printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11149if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11150then :
11151  printf %s "(cached) " >&6
11152else case e in #(
11153  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154/* end confdefs.h.  */
11155int i;
11156_ACEOF
11157if ac_fn_c_try_compile "$LINENO"
11158then :
11159  xorg_cv_cc_flag_unknown_warning_option=yes
11160else case e in #(
11161  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11162esac
11163fi
11164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11165esac
11166fi
11167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11168printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11169	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11170	CFLAGS="$xorg_testset_save_CFLAGS"
11171fi
11172
11173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11174	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11175		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11176	fi
11177	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11178	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11179printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11180if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11181then :
11182  printf %s "(cached) " >&6
11183else case e in #(
11184  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185/* end confdefs.h.  */
11186int i;
11187_ACEOF
11188if ac_fn_c_try_compile "$LINENO"
11189then :
11190  xorg_cv_cc_flag_unused_command_line_argument=yes
11191else case e in #(
11192  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11193esac
11194fi
11195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11196esac
11197fi
11198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11199printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11200	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11201	CFLAGS="$xorg_testset_save_CFLAGS"
11202fi
11203
11204found="no"
11205
11206	if test $found = "no" ; then
11207		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11208			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11209		fi
11210
11211		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11212			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11213		fi
11214
11215		CFLAGS="$CFLAGS -Werror=attributes"
11216
11217		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11218printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11219		cacheid=xorg_cv_cc_flag__Werror_attributes
11220		if eval test \${$cacheid+y}
11221then :
11222  printf %s "(cached) " >&6
11223else case e in #(
11224  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225/* end confdefs.h.  */
11226int i;
11227int
11228main (void)
11229{
11230
11231  ;
11232  return 0;
11233}
11234_ACEOF
11235if ac_fn_c_try_link "$LINENO"
11236then :
11237  eval $cacheid=yes
11238else case e in #(
11239  e) eval $cacheid=no ;;
11240esac
11241fi
11242rm -f core conftest.err conftest.$ac_objext conftest.beam \
11243    conftest$ac_exeext conftest.$ac_ext ;;
11244esac
11245fi
11246
11247
11248		CFLAGS="$xorg_testset_save_CFLAGS"
11249
11250		eval supported=\$$cacheid
11251		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11252printf "%s\n" "$supported" >&6; }
11253		if test "$supported" = "yes" ; then
11254			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11255			found="yes"
11256		fi
11257	fi
11258
11259
11260
11261if test "x$STRICT_COMPILE" = "xyes"; then
11262    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11263    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11264fi
11265
11266
11267
11268
11269
11270
11271
11272
11273cat >>confdefs.h <<_ACEOF
11274#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11275_ACEOF
11276
11277	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11278	if test "x$PVM" = "x"; then
11279		PVM="0"
11280	fi
11281
11282printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11283
11284	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11285	if test "x$PVP" = "x"; then
11286		PVP="0"
11287	fi
11288
11289printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11290
11291
11292
11293CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11294mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11295|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11296touch \$(top_srcdir)/ChangeLog; \
11297echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11298
11299
11300
11301
11302macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11303INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11304mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11305|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11306touch \$(top_srcdir)/INSTALL; \
11307echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11308
11309
11310
11311
11312
11313
11314case $host_os in
11315    solaris*)
11316        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11317        # check for a man page file found in later versions that use
11318        # traditional section numbers instead
11319        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11320printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11321if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11322then :
11323  printf %s "(cached) " >&6
11324else case e in #(
11325  e) test "$cross_compiling" = yes &&
11326  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11327if test -r "/usr/share/man/man7/attributes.7"; then
11328  ac_cv_file__usr_share_man_man7_attributes_7=yes
11329else
11330  ac_cv_file__usr_share_man_man7_attributes_7=no
11331fi ;;
11332esac
11333fi
11334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11335printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11336if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11337then :
11338  SYSV_MAN_SECTIONS=false
11339else case e in #(
11340  e) SYSV_MAN_SECTIONS=true ;;
11341esac
11342fi
11343
11344        ;;
11345    *) SYSV_MAN_SECTIONS=false ;;
11346esac
11347
11348if test x$APP_MAN_SUFFIX = x    ; then
11349    APP_MAN_SUFFIX=1
11350fi
11351if test x$APP_MAN_DIR = x    ; then
11352    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11353fi
11354
11355if test x$LIB_MAN_SUFFIX = x    ; then
11356    LIB_MAN_SUFFIX=3
11357fi
11358if test x$LIB_MAN_DIR = x    ; then
11359    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11360fi
11361
11362if test x$FILE_MAN_SUFFIX = x    ; then
11363    case $SYSV_MAN_SECTIONS in
11364	true)				FILE_MAN_SUFFIX=4  ;;
11365	*)				FILE_MAN_SUFFIX=5  ;;
11366    esac
11367fi
11368if test x$FILE_MAN_DIR = x    ; then
11369    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11370fi
11371
11372if test x$MISC_MAN_SUFFIX = x    ; then
11373    case $SYSV_MAN_SECTIONS in
11374	true)				MISC_MAN_SUFFIX=5  ;;
11375	*)				MISC_MAN_SUFFIX=7  ;;
11376    esac
11377fi
11378if test x$MISC_MAN_DIR = x    ; then
11379    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11380fi
11381
11382if test x$DRIVER_MAN_SUFFIX = x    ; then
11383    case $SYSV_MAN_SECTIONS in
11384	true)				DRIVER_MAN_SUFFIX=7  ;;
11385	*)				DRIVER_MAN_SUFFIX=4  ;;
11386    esac
11387fi
11388if test x$DRIVER_MAN_DIR = x    ; then
11389    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11390fi
11391
11392if test x$ADMIN_MAN_SUFFIX = x    ; then
11393    case $SYSV_MAN_SECTIONS in
11394	true)				ADMIN_MAN_SUFFIX=1m ;;
11395	*)				ADMIN_MAN_SUFFIX=8  ;;
11396    esac
11397fi
11398if test x$ADMIN_MAN_DIR = x    ; then
11399    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11400fi
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416XORG_MAN_PAGE="X Version 11"
11417
11418MAN_SUBSTS="\
11419	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11420	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11421	-e 's|__xservername__|Xorg|g' \
11422	-e 's|__xconfigfile__|xorg.conf|g' \
11423	-e 's|__projectroot__|\$(prefix)|g' \
11424	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11425	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11426	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11427	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11428	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11429	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11430	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11431
11432
11433
11434
11435AM_DEFAULT_VERBOSITY=0
11436
11437
11438
11439# Optional dependencies
11440
11441# Check whether --with-xkb was given.
11442if test ${with_xkb+y}
11443then :
11444  withval=$with_xkb; use_xkb="$withval"
11445else case e in #(
11446  e) use_xkb="yes" ;;
11447esac
11448fi
11449
11450if test x$use_xkb != xno ; then
11451	XKBMODULE="xkbfile"
11452
11453printf "%s\n" "#define XKB 1" >>confdefs.h
11454
11455fi
11456
11457# Checks for pkg-config packages
11458
11459pkg_failed=no
11460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OCLOCK" >&5
11461printf %s "checking for OCLOCK... " >&6; }
11462
11463if test -n "$OCLOCK_CFLAGS"; then
11464    pkg_cv_OCLOCK_CFLAGS="$OCLOCK_CFLAGS"
11465 elif test -n "$PKG_CONFIG"; then
11466    if test -n "$PKG_CONFIG" && \
11467    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xext xt \${XKBMODULE}\""; } >&5
11468  ($PKG_CONFIG --exists --print-errors "x11 xmu xext xt ${XKBMODULE}") 2>&5
11469  ac_status=$?
11470  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11471  test $ac_status = 0; }; then
11472  pkg_cv_OCLOCK_CFLAGS=`$PKG_CONFIG --cflags "x11 xmu xext xt ${XKBMODULE}" 2>/dev/null`
11473		      test "x$?" != "x0" && pkg_failed=yes
11474else
11475  pkg_failed=yes
11476fi
11477 else
11478    pkg_failed=untried
11479fi
11480if test -n "$OCLOCK_LIBS"; then
11481    pkg_cv_OCLOCK_LIBS="$OCLOCK_LIBS"
11482 elif test -n "$PKG_CONFIG"; then
11483    if test -n "$PKG_CONFIG" && \
11484    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xext xt \${XKBMODULE}\""; } >&5
11485  ($PKG_CONFIG --exists --print-errors "x11 xmu xext xt ${XKBMODULE}") 2>&5
11486  ac_status=$?
11487  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11488  test $ac_status = 0; }; then
11489  pkg_cv_OCLOCK_LIBS=`$PKG_CONFIG --libs "x11 xmu xext xt ${XKBMODULE}" 2>/dev/null`
11490		      test "x$?" != "x0" && pkg_failed=yes
11491else
11492  pkg_failed=yes
11493fi
11494 else
11495    pkg_failed=untried
11496fi
11497
11498
11499
11500if test $pkg_failed = yes; then
11501   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502printf "%s\n" "no" >&6; }
11503
11504if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11505        _pkg_short_errors_supported=yes
11506else
11507        _pkg_short_errors_supported=no
11508fi
11509        if test $_pkg_short_errors_supported = yes; then
11510	        OCLOCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xmu xext xt ${XKBMODULE}" 2>&1`
11511        else
11512	        OCLOCK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xmu xext xt ${XKBMODULE}" 2>&1`
11513        fi
11514	# Put the nasty error message in config.log where it belongs
11515	echo "$OCLOCK_PKG_ERRORS" >&5
11516
11517	as_fn_error $? "Package requirements (x11 xmu xext xt ${XKBMODULE}) were not met:
11518
11519$OCLOCK_PKG_ERRORS
11520
11521Consider adjusting the PKG_CONFIG_PATH environment variable if you
11522installed software in a non-standard prefix.
11523
11524Alternatively, you may set the environment variables OCLOCK_CFLAGS
11525and OCLOCK_LIBS to avoid the need to call pkg-config.
11526See the pkg-config man page for more details." "$LINENO" 5
11527elif test $pkg_failed = untried; then
11528     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529printf "%s\n" "no" >&6; }
11530	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11531printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11532as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11533is in your PATH or set the PKG_CONFIG environment variable to the full
11534path to pkg-config.
11535
11536Alternatively, you may set the environment variables OCLOCK_CFLAGS
11537and OCLOCK_LIBS to avoid the need to call pkg-config.
11538See the pkg-config man page for more details.
11539
11540To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11541See 'config.log' for more details" "$LINENO" 5; }
11542else
11543	OCLOCK_CFLAGS=$pkg_cv_OCLOCK_CFLAGS
11544	OCLOCK_LIBS=$pkg_cv_OCLOCK_LIBS
11545        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11546printf "%s\n" "yes" >&6; }
11547
11548fi
11549
11550xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11551
11552# Check whether --with-appdefaultdir was given.
11553if test ${with_appdefaultdir+y}
11554then :
11555  withval=$with_appdefaultdir; appdefaultdir="$withval"
11556else case e in #(
11557  e) appdefaultdir="${xt_appdefaultdir}" ;;
11558esac
11559fi
11560
11561
11562
11563
11564ac_config_files="$ac_config_files Makefile man/Makefile"
11565
11566cat >confcache <<\_ACEOF
11567# This file is a shell script that caches the results of configure
11568# tests run on this system so they can be shared between configure
11569# scripts and configure runs, see configure's option --config-cache.
11570# It is not useful on other systems.  If it contains results you don't
11571# want to keep, you may remove or edit it.
11572#
11573# config.status only pays attention to the cache file if you give it
11574# the --recheck option to rerun configure.
11575#
11576# 'ac_cv_env_foo' variables (set or unset) will be overridden when
11577# loading this file, other *unset* 'ac_cv_foo' will be assigned the
11578# following values.
11579
11580_ACEOF
11581
11582# The following way of writing the cache mishandles newlines in values,
11583# but we know of no workaround that is simple, portable, and efficient.
11584# So, we kill variables containing newlines.
11585# Ultrix sh set writes to stderr and can't be redirected directly,
11586# and sets the high bit in the cache file unless we assign to the vars.
11587(
11588  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11589    eval ac_val=\$$ac_var
11590    case $ac_val in #(
11591    *${as_nl}*)
11592      case $ac_var in #(
11593      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11594printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11595      esac
11596      case $ac_var in #(
11597      _ | IFS | as_nl) ;; #(
11598      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11599      *) { eval $ac_var=; unset $ac_var;} ;;
11600      esac ;;
11601    esac
11602  done
11603
11604  (set) 2>&1 |
11605    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11606    *${as_nl}ac_space=\ *)
11607      # 'set' does not quote correctly, so add quotes: double-quote
11608      # substitution turns \\\\ into \\, and sed turns \\ into \.
11609      sed -n \
11610	"s/'/'\\\\''/g;
11611	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11612      ;; #(
11613    *)
11614      # 'set' quotes correctly as required by POSIX, so do not add quotes.
11615      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11616      ;;
11617    esac |
11618    sort
11619) |
11620  sed '
11621     /^ac_cv_env_/b end
11622     t clear
11623     :clear
11624     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11625     t end
11626     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11627     :end' >>confcache
11628if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11629  if test -w "$cache_file"; then
11630    if test "x$cache_file" != "x/dev/null"; then
11631      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11632printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11633      if test ! -f "$cache_file" || test -h "$cache_file"; then
11634	cat confcache >"$cache_file"
11635      else
11636        case $cache_file in #(
11637        */* | ?:*)
11638	  mv -f confcache "$cache_file"$$ &&
11639	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11640        *)
11641	  mv -f confcache "$cache_file" ;;
11642	esac
11643      fi
11644    fi
11645  else
11646    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11647printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11648  fi
11649fi
11650rm -f confcache
11651
11652test "x$prefix" = xNONE && prefix=$ac_default_prefix
11653# Let make expand exec_prefix.
11654test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11655
11656DEFS=-DHAVE_CONFIG_H
11657
11658ac_libobjs=
11659ac_ltlibobjs=
11660U=
11661for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11662  # 1. Remove the extension, and $U if already installed.
11663  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11664  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11665  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11666  #    will be set to the directory where LIBOBJS objects are built.
11667  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11668  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11669done
11670LIBOBJS=$ac_libobjs
11671
11672LTLIBOBJS=$ac_ltlibobjs
11673
11674
11675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11676printf %s "checking that generated files are newer than configure... " >&6; }
11677   if test -n "$am_sleep_pid"; then
11678     # Hide warnings about reused PIDs.
11679     wait $am_sleep_pid 2>/dev/null
11680   fi
11681   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11682printf "%s\n" "done" >&6; }
11683case $enable_silent_rules in # (((
11684  yes) AM_DEFAULT_VERBOSITY=0;;
11685   no) AM_DEFAULT_VERBOSITY=1;;
11686esac
11687if test $am_cv_make_support_nested_variables = yes; then
11688    AM_V='$(V)'
11689  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11690else
11691  AM_V=$AM_DEFAULT_VERBOSITY
11692  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11693fi
11694
11695 if test -n "$EXEEXT"; then
11696  am__EXEEXT_TRUE=
11697  am__EXEEXT_FALSE='#'
11698else
11699  am__EXEEXT_TRUE='#'
11700  am__EXEEXT_FALSE=
11701fi
11702
11703if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11704  as_fn_error $? "conditional \"AMDEP\" was never defined.
11705Usually this means the macro was only invoked conditionally." "$LINENO" 5
11706fi
11707if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11708  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11709Usually this means the macro was only invoked conditionally." "$LINENO" 5
11710fi
11711
11712: "${CONFIG_STATUS=./config.status}"
11713ac_write_fail=0
11714ac_clean_files_save=$ac_clean_files
11715ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11717printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11718as_write_fail=0
11719cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11720#! $SHELL
11721# Generated by $as_me.
11722# Run this file to recreate the current configuration.
11723# Compiler output produced by configure, useful for debugging
11724# configure, is in config.log if it exists.
11725
11726debug=false
11727ac_cs_recheck=false
11728ac_cs_silent=false
11729
11730SHELL=\${CONFIG_SHELL-$SHELL}
11731export SHELL
11732_ASEOF
11733cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11734## -------------------- ##
11735## M4sh Initialization. ##
11736## -------------------- ##
11737
11738# Be more Bourne compatible
11739DUALCASE=1; export DUALCASE # for MKS sh
11740if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11741then :
11742  emulate sh
11743  NULLCMD=:
11744  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11745  # is contrary to our usage.  Disable this feature.
11746  alias -g '${1+"$@"}'='"$@"'
11747  setopt NO_GLOB_SUBST
11748else case e in #(
11749  e) case `(set -o) 2>/dev/null` in #(
11750  *posix*) :
11751    set -o posix ;; #(
11752  *) :
11753     ;;
11754esac ;;
11755esac
11756fi
11757
11758
11759
11760# Reset variables that may have inherited troublesome values from
11761# the environment.
11762
11763# IFS needs to be set, to space, tab, and newline, in precisely that order.
11764# (If _AS_PATH_WALK were called with IFS unset, it would have the
11765# side effect of setting IFS to empty, thus disabling word splitting.)
11766# Quoting is to prevent editors from complaining about space-tab.
11767as_nl='
11768'
11769export as_nl
11770IFS=" ""	$as_nl"
11771
11772PS1='$ '
11773PS2='> '
11774PS4='+ '
11775
11776# Ensure predictable behavior from utilities with locale-dependent output.
11777LC_ALL=C
11778export LC_ALL
11779LANGUAGE=C
11780export LANGUAGE
11781
11782# We cannot yet rely on "unset" to work, but we need these variables
11783# to be unset--not just set to an empty or harmless value--now, to
11784# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11785# also avoids known problems related to "unset" and subshell syntax
11786# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11787for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11788do eval test \${$as_var+y} \
11789  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11790done
11791
11792# Ensure that fds 0, 1, and 2 are open.
11793if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11794if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11795if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11796
11797# The user is always right.
11798if ${PATH_SEPARATOR+false} :; then
11799  PATH_SEPARATOR=:
11800  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11801    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11802      PATH_SEPARATOR=';'
11803  }
11804fi
11805
11806
11807# Find who we are.  Look in the path if we contain no directory separator.
11808as_myself=
11809case $0 in #((
11810  *[\\/]* ) as_myself=$0 ;;
11811  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812for as_dir in $PATH
11813do
11814  IFS=$as_save_IFS
11815  case $as_dir in #(((
11816    '') as_dir=./ ;;
11817    */) ;;
11818    *) as_dir=$as_dir/ ;;
11819  esac
11820    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11821  done
11822IFS=$as_save_IFS
11823
11824     ;;
11825esac
11826# We did not find ourselves, most probably we were run as 'sh COMMAND'
11827# in which case we are not to be found in the path.
11828if test "x$as_myself" = x; then
11829  as_myself=$0
11830fi
11831if test ! -f "$as_myself"; then
11832  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11833  exit 1
11834fi
11835
11836
11837
11838# as_fn_error STATUS ERROR [LINENO LOG_FD]
11839# ----------------------------------------
11840# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11841# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11842# script with STATUS, using 1 if that was 0.
11843as_fn_error ()
11844{
11845  as_status=$1; test $as_status -eq 0 && as_status=1
11846  if test "$4"; then
11847    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11848    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11849  fi
11850  printf "%s\n" "$as_me: error: $2" >&2
11851  as_fn_exit $as_status
11852} # as_fn_error
11853
11854
11855# as_fn_set_status STATUS
11856# -----------------------
11857# Set $? to STATUS, without forking.
11858as_fn_set_status ()
11859{
11860  return $1
11861} # as_fn_set_status
11862
11863# as_fn_exit STATUS
11864# -----------------
11865# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11866as_fn_exit ()
11867{
11868  set +e
11869  as_fn_set_status $1
11870  exit $1
11871} # as_fn_exit
11872
11873# as_fn_unset VAR
11874# ---------------
11875# Portably unset VAR.
11876as_fn_unset ()
11877{
11878  { eval $1=; unset $1;}
11879}
11880as_unset=as_fn_unset
11881
11882# as_fn_append VAR VALUE
11883# ----------------------
11884# Append the text in VALUE to the end of the definition contained in VAR. Take
11885# advantage of any shell optimizations that allow amortized linear growth over
11886# repeated appends, instead of the typical quadratic growth present in naive
11887# implementations.
11888if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11889then :
11890  eval 'as_fn_append ()
11891  {
11892    eval $1+=\$2
11893  }'
11894else case e in #(
11895  e) as_fn_append ()
11896  {
11897    eval $1=\$$1\$2
11898  } ;;
11899esac
11900fi # as_fn_append
11901
11902# as_fn_arith ARG...
11903# ------------------
11904# Perform arithmetic evaluation on the ARGs, and store the result in the
11905# global $as_val. Take advantage of shells that can avoid forks. The arguments
11906# must be portable across $(()) and expr.
11907if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11908then :
11909  eval 'as_fn_arith ()
11910  {
11911    as_val=$(( $* ))
11912  }'
11913else case e in #(
11914  e) as_fn_arith ()
11915  {
11916    as_val=`expr "$@" || test $? -eq 1`
11917  } ;;
11918esac
11919fi # as_fn_arith
11920
11921
11922if expr a : '\(a\)' >/dev/null 2>&1 &&
11923   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11924  as_expr=expr
11925else
11926  as_expr=false
11927fi
11928
11929if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11930  as_basename=basename
11931else
11932  as_basename=false
11933fi
11934
11935if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11936  as_dirname=dirname
11937else
11938  as_dirname=false
11939fi
11940
11941as_me=`$as_basename -- "$0" ||
11942$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11943	 X"$0" : 'X\(//\)$' \| \
11944	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11945printf "%s\n" X/"$0" |
11946    sed '/^.*\/\([^/][^/]*\)\/*$/{
11947	    s//\1/
11948	    q
11949	  }
11950	  /^X\/\(\/\/\)$/{
11951	    s//\1/
11952	    q
11953	  }
11954	  /^X\/\(\/\).*/{
11955	    s//\1/
11956	    q
11957	  }
11958	  s/.*/./; q'`
11959
11960# Avoid depending upon Character Ranges.
11961as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11962as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11963as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11964as_cr_digits='0123456789'
11965as_cr_alnum=$as_cr_Letters$as_cr_digits
11966
11967
11968# Determine whether it's possible to make 'echo' print without a newline.
11969# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11970# for compatibility with existing Makefiles.
11971ECHO_C= ECHO_N= ECHO_T=
11972case `echo -n x` in #(((((
11973-n*)
11974  case `echo 'xy\c'` in
11975  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11976  xy)  ECHO_C='\c';;
11977  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11978       ECHO_T='	';;
11979  esac;;
11980*)
11981  ECHO_N='-n';;
11982esac
11983
11984# For backward compatibility with old third-party macros, we provide
11985# the shell variables $as_echo and $as_echo_n.  New code should use
11986# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11987as_echo='printf %s\n'
11988as_echo_n='printf %s'
11989
11990rm -f conf$$ conf$$.exe conf$$.file
11991if test -d conf$$.dir; then
11992  rm -f conf$$.dir/conf$$.file
11993else
11994  rm -f conf$$.dir
11995  mkdir conf$$.dir 2>/dev/null
11996fi
11997if (echo >conf$$.file) 2>/dev/null; then
11998  if ln -s conf$$.file conf$$ 2>/dev/null; then
11999    as_ln_s='ln -s'
12000    # ... but there are two gotchas:
12001    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12002    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12003    # In both cases, we have to default to 'cp -pR'.
12004    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12005      as_ln_s='cp -pR'
12006  elif ln conf$$.file conf$$ 2>/dev/null; then
12007    as_ln_s=ln
12008  else
12009    as_ln_s='cp -pR'
12010  fi
12011else
12012  as_ln_s='cp -pR'
12013fi
12014rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12015rmdir conf$$.dir 2>/dev/null
12016
12017
12018# as_fn_mkdir_p
12019# -------------
12020# Create "$as_dir" as a directory, including parents if necessary.
12021as_fn_mkdir_p ()
12022{
12023
12024  case $as_dir in #(
12025  -*) as_dir=./$as_dir;;
12026  esac
12027  test -d "$as_dir" || eval $as_mkdir_p || {
12028    as_dirs=
12029    while :; do
12030      case $as_dir in #(
12031      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12032      *) as_qdir=$as_dir;;
12033      esac
12034      as_dirs="'$as_qdir' $as_dirs"
12035      as_dir=`$as_dirname -- "$as_dir" ||
12036$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12037	 X"$as_dir" : 'X\(//\)[^/]' \| \
12038	 X"$as_dir" : 'X\(//\)$' \| \
12039	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12040printf "%s\n" X"$as_dir" |
12041    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12042	    s//\1/
12043	    q
12044	  }
12045	  /^X\(\/\/\)[^/].*/{
12046	    s//\1/
12047	    q
12048	  }
12049	  /^X\(\/\/\)$/{
12050	    s//\1/
12051	    q
12052	  }
12053	  /^X\(\/\).*/{
12054	    s//\1/
12055	    q
12056	  }
12057	  s/.*/./; q'`
12058      test -d "$as_dir" && break
12059    done
12060    test -z "$as_dirs" || eval "mkdir $as_dirs"
12061  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12062
12063
12064} # as_fn_mkdir_p
12065if mkdir -p . 2>/dev/null; then
12066  as_mkdir_p='mkdir -p "$as_dir"'
12067else
12068  test -d ./-p && rmdir ./-p
12069  as_mkdir_p=false
12070fi
12071
12072
12073# as_fn_executable_p FILE
12074# -----------------------
12075# Test if FILE is an executable regular file.
12076as_fn_executable_p ()
12077{
12078  test -f "$1" && test -x "$1"
12079} # as_fn_executable_p
12080as_test_x='test -x'
12081as_executable_p=as_fn_executable_p
12082
12083# Sed expression to map a string onto a valid CPP name.
12084as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12085as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12086
12087# Sed expression to map a string onto a valid variable name.
12088as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12089as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12090
12091
12092exec 6>&1
12093## ----------------------------------- ##
12094## Main body of $CONFIG_STATUS script. ##
12095## ----------------------------------- ##
12096_ASEOF
12097test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12098
12099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12100# Save the log message, to keep $0 and so on meaningful, and to
12101# report actual input values of CONFIG_FILES etc. instead of their
12102# values after options handling.
12103ac_log="
12104This file was extended by oclock $as_me 1.0.6, which was
12105generated by GNU Autoconf 2.72.  Invocation command line was
12106
12107  CONFIG_FILES    = $CONFIG_FILES
12108  CONFIG_HEADERS  = $CONFIG_HEADERS
12109  CONFIG_LINKS    = $CONFIG_LINKS
12110  CONFIG_COMMANDS = $CONFIG_COMMANDS
12111  $ $0 $@
12112
12113on `(hostname || uname -n) 2>/dev/null | sed 1q`
12114"
12115
12116_ACEOF
12117
12118case $ac_config_files in *"
12119"*) set x $ac_config_files; shift; ac_config_files=$*;;
12120esac
12121
12122case $ac_config_headers in *"
12123"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12124esac
12125
12126
12127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12128# Files that config.status was made for.
12129config_files="$ac_config_files"
12130config_headers="$ac_config_headers"
12131config_commands="$ac_config_commands"
12132
12133_ACEOF
12134
12135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12136ac_cs_usage="\
12137'$as_me' instantiates files and other configuration actions
12138from templates according to the current configuration.  Unless the files
12139and actions are specified as TAGs, all are instantiated by default.
12140
12141Usage: $0 [OPTION]... [TAG]...
12142
12143  -h, --help       print this help, then exit
12144  -V, --version    print version number and configuration settings, then exit
12145      --config     print configuration, then exit
12146  -q, --quiet, --silent
12147                   do not print progress messages
12148  -d, --debug      don't remove temporary files
12149      --recheck    update $as_me by reconfiguring in the same conditions
12150      --file=FILE[:TEMPLATE]
12151                   instantiate the configuration file FILE
12152      --header=FILE[:TEMPLATE]
12153                   instantiate the configuration header FILE
12154
12155Configuration files:
12156$config_files
12157
12158Configuration headers:
12159$config_headers
12160
12161Configuration commands:
12162$config_commands
12163
12164Report bugs to <https://gitlab.freedesktop.org/xorg/app/oclock/-/issues>."
12165
12166_ACEOF
12167ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12168ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12170ac_cs_config='$ac_cs_config_escaped'
12171ac_cs_version="\\
12172oclock config.status 1.0.6
12173configured by $0, generated by GNU Autoconf 2.72,
12174  with options \\"\$ac_cs_config\\"
12175
12176Copyright (C) 2023 Free Software Foundation, Inc.
12177This config.status script is free software; the Free Software Foundation
12178gives unlimited permission to copy, distribute and modify it."
12179
12180ac_pwd='$ac_pwd'
12181srcdir='$srcdir'
12182INSTALL='$INSTALL'
12183MKDIR_P='$MKDIR_P'
12184AWK='$AWK'
12185test -n "\$AWK" || AWK=awk
12186_ACEOF
12187
12188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12189# The default lists apply if the user does not specify any file.
12190ac_need_defaults=:
12191while test $# != 0
12192do
12193  case $1 in
12194  --*=?*)
12195    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12196    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12197    ac_shift=:
12198    ;;
12199  --*=)
12200    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12201    ac_optarg=
12202    ac_shift=:
12203    ;;
12204  *)
12205    ac_option=$1
12206    ac_optarg=$2
12207    ac_shift=shift
12208    ;;
12209  esac
12210
12211  case $ac_option in
12212  # Handling of the options.
12213  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12214    ac_cs_recheck=: ;;
12215  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12216    printf "%s\n" "$ac_cs_version"; exit ;;
12217  --config | --confi | --conf | --con | --co | --c )
12218    printf "%s\n" "$ac_cs_config"; exit ;;
12219  --debug | --debu | --deb | --de | --d | -d )
12220    debug=: ;;
12221  --file | --fil | --fi | --f )
12222    $ac_shift
12223    case $ac_optarg in
12224    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12225    '') as_fn_error $? "missing file argument" ;;
12226    esac
12227    as_fn_append CONFIG_FILES " '$ac_optarg'"
12228    ac_need_defaults=false;;
12229  --header | --heade | --head | --hea )
12230    $ac_shift
12231    case $ac_optarg in
12232    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12233    esac
12234    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12235    ac_need_defaults=false;;
12236  --he | --h)
12237    # Conflict between --help and --header
12238    as_fn_error $? "ambiguous option: '$1'
12239Try '$0 --help' for more information.";;
12240  --help | --hel | -h )
12241    printf "%s\n" "$ac_cs_usage"; exit ;;
12242  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12243  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12244    ac_cs_silent=: ;;
12245
12246  # This is an error.
12247  -*) as_fn_error $? "unrecognized option: '$1'
12248Try '$0 --help' for more information." ;;
12249
12250  *) as_fn_append ac_config_targets " $1"
12251     ac_need_defaults=false ;;
12252
12253  esac
12254  shift
12255done
12256
12257ac_configure_extra_args=
12258
12259if $ac_cs_silent; then
12260  exec 6>/dev/null
12261  ac_configure_extra_args="$ac_configure_extra_args --silent"
12262fi
12263
12264_ACEOF
12265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12266if \$ac_cs_recheck; then
12267  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12268  shift
12269  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12270  CONFIG_SHELL='$SHELL'
12271  export CONFIG_SHELL
12272  exec "\$@"
12273fi
12274
12275_ACEOF
12276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12277exec 5>>config.log
12278{
12279  echo
12280  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12281## Running $as_me. ##
12282_ASBOX
12283  printf "%s\n" "$ac_log"
12284} >&5
12285
12286_ACEOF
12287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12288#
12289# INIT-COMMANDS
12290#
12291AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12292
12293_ACEOF
12294
12295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12296
12297# Handling of arguments.
12298for ac_config_target in $ac_config_targets
12299do
12300  case $ac_config_target in
12301    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12302    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12303    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12304    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12305
12306  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12307  esac
12308done
12309
12310
12311# If the user did not use the arguments to specify the items to instantiate,
12312# then the envvar interface is used.  Set only those that are not.
12313# We use the long form for the default assignment because of an extremely
12314# bizarre bug on SunOS 4.1.3.
12315if $ac_need_defaults; then
12316  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12317  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12318  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12319fi
12320
12321# Have a temporary directory for convenience.  Make it in the build tree
12322# simply because there is no reason against having it here, and in addition,
12323# creating and moving files from /tmp can sometimes cause problems.
12324# Hook for its removal unless debugging.
12325# Note that there is a small window in which the directory will not be cleaned:
12326# after its creation but before its name has been assigned to '$tmp'.
12327$debug ||
12328{
12329  tmp= ac_tmp=
12330  trap 'exit_status=$?
12331  : "${ac_tmp:=$tmp}"
12332  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12333' 0
12334  trap 'as_fn_exit 1' 1 2 13 15
12335}
12336# Create a (secure) tmp directory for tmp files.
12337
12338{
12339  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12340  test -d "$tmp"
12341}  ||
12342{
12343  tmp=./conf$$-$RANDOM
12344  (umask 077 && mkdir "$tmp")
12345} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12346ac_tmp=$tmp
12347
12348# Set up the scripts for CONFIG_FILES section.
12349# No need to generate them if there are no CONFIG_FILES.
12350# This happens for instance with './config.status config.h'.
12351if test -n "$CONFIG_FILES"; then
12352
12353
12354ac_cr=`echo X | tr X '\015'`
12355# On cygwin, bash can eat \r inside `` if the user requested igncr.
12356# But we know of no other shell where ac_cr would be empty at this
12357# point, so we can use a bashism as a fallback.
12358if test "x$ac_cr" = x; then
12359  eval ac_cr=\$\'\\r\'
12360fi
12361ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12362if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12363  ac_cs_awk_cr='\\r'
12364else
12365  ac_cs_awk_cr=$ac_cr
12366fi
12367
12368echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12369_ACEOF
12370
12371
12372{
12373  echo "cat >conf$$subs.awk <<_ACEOF" &&
12374  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12375  echo "_ACEOF"
12376} >conf$$subs.sh ||
12377  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12378ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12379ac_delim='%!_!# '
12380for ac_last_try in false false false false false :; do
12381  . ./conf$$subs.sh ||
12382    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12383
12384  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12385  if test $ac_delim_n = $ac_delim_num; then
12386    break
12387  elif $ac_last_try; then
12388    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12389  else
12390    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12391  fi
12392done
12393rm -f conf$$subs.sh
12394
12395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12396cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12397_ACEOF
12398sed -n '
12399h
12400s/^/S["/; s/!.*/"]=/
12401p
12402g
12403s/^[^!]*!//
12404:repl
12405t repl
12406s/'"$ac_delim"'$//
12407t delim
12408:nl
12409h
12410s/\(.\{148\}\)..*/\1/
12411t more1
12412s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12413p
12414n
12415b repl
12416:more1
12417s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12418p
12419g
12420s/.\{148\}//
12421t nl
12422:delim
12423h
12424s/\(.\{148\}\)..*/\1/
12425t more2
12426s/["\\]/\\&/g; s/^/"/; s/$/"/
12427p
12428b
12429:more2
12430s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12431p
12432g
12433s/.\{148\}//
12434t delim
12435' <conf$$subs.awk | sed '
12436/^[^""]/{
12437  N
12438  s/\n//
12439}
12440' >>$CONFIG_STATUS || ac_write_fail=1
12441rm -f conf$$subs.awk
12442cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12443_ACAWK
12444cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12445  for (key in S) S_is_set[key] = 1
12446  FS = ""
12447
12448}
12449{
12450  line = $ 0
12451  nfields = split(line, field, "@")
12452  substed = 0
12453  len = length(field[1])
12454  for (i = 2; i < nfields; i++) {
12455    key = field[i]
12456    keylen = length(key)
12457    if (S_is_set[key]) {
12458      value = S[key]
12459      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12460      len += length(value) + length(field[++i])
12461      substed = 1
12462    } else
12463      len += 1 + keylen
12464  }
12465
12466  print line
12467}
12468
12469_ACAWK
12470_ACEOF
12471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12472if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12473  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12474else
12475  cat
12476fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12477  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12478_ACEOF
12479
12480# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12481# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12482# trailing colons and then remove the whole line if VPATH becomes empty
12483# (actually we leave an empty line to preserve line numbers).
12484if test "x$srcdir" = x.; then
12485  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12486h
12487s///
12488s/^/:/
12489s/[	 ]*$/:/
12490s/:\$(srcdir):/:/g
12491s/:\${srcdir}:/:/g
12492s/:@srcdir@:/:/g
12493s/^:*//
12494s/:*$//
12495x
12496s/\(=[	 ]*\).*/\1/
12497G
12498s/\n//
12499s/^[^=]*=[	 ]*$//
12500}'
12501fi
12502
12503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12504fi # test -n "$CONFIG_FILES"
12505
12506# Set up the scripts for CONFIG_HEADERS section.
12507# No need to generate them if there are no CONFIG_HEADERS.
12508# This happens for instance with './config.status Makefile'.
12509if test -n "$CONFIG_HEADERS"; then
12510cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12511BEGIN {
12512_ACEOF
12513
12514# Transform confdefs.h into an awk script 'defines.awk', embedded as
12515# here-document in config.status, that substitutes the proper values into
12516# config.h.in to produce config.h.
12517
12518# Create a delimiter string that does not exist in confdefs.h, to ease
12519# handling of long lines.
12520ac_delim='%!_!# '
12521for ac_last_try in false false :; do
12522  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12523  if test -z "$ac_tt"; then
12524    break
12525  elif $ac_last_try; then
12526    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12527  else
12528    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12529  fi
12530done
12531
12532# For the awk script, D is an array of macro values keyed by name,
12533# likewise P contains macro parameters if any.  Preserve backslash
12534# newline sequences.
12535
12536ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12537sed -n '
12538s/.\{148\}/&'"$ac_delim"'/g
12539t rset
12540:rset
12541s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12542t def
12543d
12544:def
12545s/\\$//
12546t bsnl
12547s/["\\]/\\&/g
12548s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12549D["\1"]=" \3"/p
12550s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12551d
12552:bsnl
12553s/["\\]/\\&/g
12554s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12555D["\1"]=" \3\\\\\\n"\\/p
12556t cont
12557s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12558t cont
12559d
12560:cont
12561n
12562s/.\{148\}/&'"$ac_delim"'/g
12563t clear
12564:clear
12565s/\\$//
12566t bsnlc
12567s/["\\]/\\&/g; s/^/"/; s/$/"/p
12568d
12569:bsnlc
12570s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12571b cont
12572' <confdefs.h | sed '
12573s/'"$ac_delim"'/"\\\
12574"/g' >>$CONFIG_STATUS || ac_write_fail=1
12575
12576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12577  for (key in D) D_is_set[key] = 1
12578  FS = ""
12579}
12580/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12581  line = \$ 0
12582  split(line, arg, " ")
12583  if (arg[1] == "#") {
12584    defundef = arg[2]
12585    mac1 = arg[3]
12586  } else {
12587    defundef = substr(arg[1], 2)
12588    mac1 = arg[2]
12589  }
12590  split(mac1, mac2, "(") #)
12591  macro = mac2[1]
12592  prefix = substr(line, 1, index(line, defundef) - 1)
12593  if (D_is_set[macro]) {
12594    # Preserve the white space surrounding the "#".
12595    print prefix "define", macro P[macro] D[macro]
12596    next
12597  } else {
12598    # Replace #undef with comments.  This is necessary, for example,
12599    # in the case of _POSIX_SOURCE, which is predefined and required
12600    # on some systems where configure will not decide to define it.
12601    if (defundef == "undef") {
12602      print "/*", prefix defundef, macro, "*/"
12603      next
12604    }
12605  }
12606}
12607{ print }
12608_ACAWK
12609_ACEOF
12610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12611  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12612fi # test -n "$CONFIG_HEADERS"
12613
12614
12615eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12616shift
12617for ac_tag
12618do
12619  case $ac_tag in
12620  :[FHLC]) ac_mode=$ac_tag; continue;;
12621  esac
12622  case $ac_mode$ac_tag in
12623  :[FHL]*:*);;
12624  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12625  :[FH]-) ac_tag=-:-;;
12626  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12627  esac
12628  ac_save_IFS=$IFS
12629  IFS=:
12630  set x $ac_tag
12631  IFS=$ac_save_IFS
12632  shift
12633  ac_file=$1
12634  shift
12635
12636  case $ac_mode in
12637  :L) ac_source=$1;;
12638  :[FH])
12639    ac_file_inputs=
12640    for ac_f
12641    do
12642      case $ac_f in
12643      -) ac_f="$ac_tmp/stdin";;
12644      *) # Look for the file first in the build tree, then in the source tree
12645	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12646	 # because $ac_f cannot contain ':'.
12647	 test -f "$ac_f" ||
12648	   case $ac_f in
12649	   [\\/$]*) false;;
12650	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12651	   esac ||
12652	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12653      esac
12654      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12655      as_fn_append ac_file_inputs " '$ac_f'"
12656    done
12657
12658    # Let's still pretend it is 'configure' which instantiates (i.e., don't
12659    # use $as_me), people would be surprised to read:
12660    #    /* config.h.  Generated by config.status.  */
12661    configure_input='Generated from '`
12662	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12663	`' by configure.'
12664    if test x"$ac_file" != x-; then
12665      configure_input="$ac_file.  $configure_input"
12666      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12667printf "%s\n" "$as_me: creating $ac_file" >&6;}
12668    fi
12669    # Neutralize special characters interpreted by sed in replacement strings.
12670    case $configure_input in #(
12671    *\&* | *\|* | *\\* )
12672       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12673       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12674    *) ac_sed_conf_input=$configure_input;;
12675    esac
12676
12677    case $ac_tag in
12678    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12679      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12680    esac
12681    ;;
12682  esac
12683
12684  ac_dir=`$as_dirname -- "$ac_file" ||
12685$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12686	 X"$ac_file" : 'X\(//\)[^/]' \| \
12687	 X"$ac_file" : 'X\(//\)$' \| \
12688	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12689printf "%s\n" X"$ac_file" |
12690    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12691	    s//\1/
12692	    q
12693	  }
12694	  /^X\(\/\/\)[^/].*/{
12695	    s//\1/
12696	    q
12697	  }
12698	  /^X\(\/\/\)$/{
12699	    s//\1/
12700	    q
12701	  }
12702	  /^X\(\/\).*/{
12703	    s//\1/
12704	    q
12705	  }
12706	  s/.*/./; q'`
12707  as_dir="$ac_dir"; as_fn_mkdir_p
12708  ac_builddir=.
12709
12710case "$ac_dir" in
12711.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12712*)
12713  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12714  # A ".." for each directory in $ac_dir_suffix.
12715  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12716  case $ac_top_builddir_sub in
12717  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12718  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12719  esac ;;
12720esac
12721ac_abs_top_builddir=$ac_pwd
12722ac_abs_builddir=$ac_pwd$ac_dir_suffix
12723# for backward compatibility:
12724ac_top_builddir=$ac_top_build_prefix
12725
12726case $srcdir in
12727  .)  # We are building in place.
12728    ac_srcdir=.
12729    ac_top_srcdir=$ac_top_builddir_sub
12730    ac_abs_top_srcdir=$ac_pwd ;;
12731  [\\/]* | ?:[\\/]* )  # Absolute name.
12732    ac_srcdir=$srcdir$ac_dir_suffix;
12733    ac_top_srcdir=$srcdir
12734    ac_abs_top_srcdir=$srcdir ;;
12735  *) # Relative name.
12736    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12737    ac_top_srcdir=$ac_top_build_prefix$srcdir
12738    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12739esac
12740ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12741
12742
12743  case $ac_mode in
12744  :F)
12745  #
12746  # CONFIG_FILE
12747  #
12748
12749  case $INSTALL in
12750  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12751  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12752  esac
12753  ac_MKDIR_P=$MKDIR_P
12754  case $MKDIR_P in
12755  [\\/$]* | ?:[\\/]* ) ;;
12756  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12757  esac
12758_ACEOF
12759
12760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12761# If the template does not know about datarootdir, expand it.
12762# FIXME: This hack should be removed a few years after 2.60.
12763ac_datarootdir_hack=; ac_datarootdir_seen=
12764ac_sed_dataroot='
12765/datarootdir/ {
12766  p
12767  q
12768}
12769/@datadir@/p
12770/@docdir@/p
12771/@infodir@/p
12772/@localedir@/p
12773/@mandir@/p'
12774case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12775*datarootdir*) ac_datarootdir_seen=yes;;
12776*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12778printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12779_ACEOF
12780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12781  ac_datarootdir_hack='
12782  s&@datadir@&$datadir&g
12783  s&@docdir@&$docdir&g
12784  s&@infodir@&$infodir&g
12785  s&@localedir@&$localedir&g
12786  s&@mandir@&$mandir&g
12787  s&\\\${datarootdir}&$datarootdir&g' ;;
12788esac
12789_ACEOF
12790
12791# Neutralize VPATH when '$srcdir' = '.'.
12792# Shell code in configure.ac might set extrasub.
12793# FIXME: do we really want to maintain this feature?
12794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12795ac_sed_extra="$ac_vpsub
12796$extrasub
12797_ACEOF
12798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12799:t
12800/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12801s|@configure_input@|$ac_sed_conf_input|;t t
12802s&@top_builddir@&$ac_top_builddir_sub&;t t
12803s&@top_build_prefix@&$ac_top_build_prefix&;t t
12804s&@srcdir@&$ac_srcdir&;t t
12805s&@abs_srcdir@&$ac_abs_srcdir&;t t
12806s&@top_srcdir@&$ac_top_srcdir&;t t
12807s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12808s&@builddir@&$ac_builddir&;t t
12809s&@abs_builddir@&$ac_abs_builddir&;t t
12810s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12811s&@INSTALL@&$ac_INSTALL&;t t
12812s&@MKDIR_P@&$ac_MKDIR_P&;t t
12813$ac_datarootdir_hack
12814"
12815eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12816  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12817
12818test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12819  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12820  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12821      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12822  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12823which seems to be undefined.  Please make sure it is defined" >&5
12824printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12825which seems to be undefined.  Please make sure it is defined" >&2;}
12826
12827  rm -f "$ac_tmp/stdin"
12828  case $ac_file in
12829  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12830  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12831  esac \
12832  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12833 ;;
12834  :H)
12835  #
12836  # CONFIG_HEADER
12837  #
12838  if test x"$ac_file" != x-; then
12839    {
12840      printf "%s\n" "/* $configure_input  */" >&1 \
12841      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12842    } >"$ac_tmp/config.h" \
12843      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12844    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12845      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12846printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12847    else
12848      rm -f "$ac_file"
12849      mv "$ac_tmp/config.h" "$ac_file" \
12850	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12851    fi
12852  else
12853    printf "%s\n" "/* $configure_input  */" >&1 \
12854      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12855      || as_fn_error $? "could not create -" "$LINENO" 5
12856  fi
12857# Compute "$ac_file"'s index in $config_headers.
12858_am_arg="$ac_file"
12859_am_stamp_count=1
12860for _am_header in $config_headers :; do
12861  case $_am_header in
12862    $_am_arg | $_am_arg:* )
12863      break ;;
12864    * )
12865      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12866  esac
12867done
12868echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12869$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12870	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12871	 X"$_am_arg" : 'X\(//\)$' \| \
12872	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12873printf "%s\n" X"$_am_arg" |
12874    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12875	    s//\1/
12876	    q
12877	  }
12878	  /^X\(\/\/\)[^/].*/{
12879	    s//\1/
12880	    q
12881	  }
12882	  /^X\(\/\/\)$/{
12883	    s//\1/
12884	    q
12885	  }
12886	  /^X\(\/\).*/{
12887	    s//\1/
12888	    q
12889	  }
12890	  s/.*/./; q'`/stamp-h$_am_stamp_count
12891 ;;
12892
12893  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12894printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12895 ;;
12896  esac
12897
12898
12899  case $ac_file$ac_mode in
12900    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12901  # Older Autoconf quotes --file arguments for eval, but not when files
12902  # are listed without --file.  Let's play safe and only enable the eval
12903  # if we detect the quoting.
12904  # TODO: see whether this extra hack can be removed once we start
12905  # requiring Autoconf 2.70 or later.
12906  case $CONFIG_FILES in #(
12907  *\'*) :
12908    eval set x "$CONFIG_FILES" ;; #(
12909  *) :
12910    set x $CONFIG_FILES ;; #(
12911  *) :
12912     ;;
12913esac
12914  shift
12915  # Used to flag and report bootstrapping failures.
12916  am_rc=0
12917  for am_mf
12918  do
12919    # Strip MF so we end up with the name of the file.
12920    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12921    # Check whether this is an Automake generated Makefile which includes
12922    # dependency-tracking related rules and includes.
12923    # Grep'ing the whole file directly is not great: AIX grep has a line
12924    # limit of 2048, but all sed's we know have understand at least 4000.
12925    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12926      || continue
12927    am_dirpart=`$as_dirname -- "$am_mf" ||
12928$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12929	 X"$am_mf" : 'X\(//\)[^/]' \| \
12930	 X"$am_mf" : 'X\(//\)$' \| \
12931	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12932printf "%s\n" X"$am_mf" |
12933    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12934	    s//\1/
12935	    q
12936	  }
12937	  /^X\(\/\/\)[^/].*/{
12938	    s//\1/
12939	    q
12940	  }
12941	  /^X\(\/\/\)$/{
12942	    s//\1/
12943	    q
12944	  }
12945	  /^X\(\/\).*/{
12946	    s//\1/
12947	    q
12948	  }
12949	  s/.*/./; q'`
12950    am_filepart=`$as_basename -- "$am_mf" ||
12951$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12952	 X"$am_mf" : 'X\(//\)$' \| \
12953	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12954printf "%s\n" X/"$am_mf" |
12955    sed '/^.*\/\([^/][^/]*\)\/*$/{
12956	    s//\1/
12957	    q
12958	  }
12959	  /^X\/\(\/\/\)$/{
12960	    s//\1/
12961	    q
12962	  }
12963	  /^X\/\(\/\).*/{
12964	    s//\1/
12965	    q
12966	  }
12967	  s/.*/./; q'`
12968    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12969      && sed -e '/# am--include-marker/d' "$am_filepart" \
12970        | $MAKE -f - am--depfiles" >&5
12971   (cd "$am_dirpart" \
12972      && sed -e '/# am--include-marker/d' "$am_filepart" \
12973        | $MAKE -f - am--depfiles) >&5 2>&5
12974   ac_status=$?
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); } || am_rc=$?
12977  done
12978  if test $am_rc -ne 0; then
12979    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12980printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12981as_fn_error $? "Something went wrong bootstrapping makefile fragments
12982    for automatic dependency tracking.  If GNU make was not used, consider
12983    re-running the configure script with MAKE=\"gmake\" (or whatever is
12984    necessary).  You can also try re-running configure with the
12985    '--disable-dependency-tracking' option to at least be able to build
12986    the package (albeit without support for automatic dependency tracking).
12987See 'config.log' for more details" "$LINENO" 5; }
12988  fi
12989  { am_dirpart=; unset am_dirpart;}
12990  { am_filepart=; unset am_filepart;}
12991  { am_mf=; unset am_mf;}
12992  { am_rc=; unset am_rc;}
12993  rm -f conftest-deps.mk
12994}
12995 ;;
12996
12997  esac
12998done # for ac_tag
12999
13000
13001as_fn_exit 0
13002_ACEOF
13003ac_clean_files=$ac_clean_files_save
13004
13005test $ac_write_fail = 0 ||
13006  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13007
13008
13009# configure is writing to config.log, and then calls config.status.
13010# config.status does its own redirection, appending to config.log.
13011# Unfortunately, on DOS this fails, as config.log is still kept open
13012# by configure, so config.status won't be able to write to it; its
13013# output is simply discarded.  So we exec the FD to /dev/null,
13014# effectively closing config.log, so it can be properly (re)opened and
13015# appended to by config.status.  When coming back to configure, we
13016# need to make the FD available again.
13017if test "$no_create" != yes; then
13018  ac_cs_success=:
13019  ac_config_status_args=
13020  test "$silent" = yes &&
13021    ac_config_status_args="$ac_config_status_args --quiet"
13022  exec 5>/dev/null
13023  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13024  exec 5>>config.log
13025  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13026  # would make configure fail if this is the last instruction.
13027  $ac_cs_success || as_fn_exit 1
13028fi
13029if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13031printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13032fi
13033
13034
13035