1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for transset 1.0.4.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/transset/-/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/transset/-/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='transset'
607PACKAGE_TARNAME='transset'
608PACKAGE_VERSION='1.0.4'
609PACKAGE_STRING='transset 1.0.4'
610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/transset/-/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
650TRANSSET_LIBS
651TRANSSET_CFLAGS
652MAN_SUBSTS
653XORG_MAN_PAGE
654ADMIN_MAN_DIR
655DRIVER_MAN_DIR
656MISC_MAN_DIR
657FILE_MAN_DIR
658LIB_MAN_DIR
659APP_MAN_DIR
660ADMIN_MAN_SUFFIX
661DRIVER_MAN_SUFFIX
662MISC_MAN_SUFFIX
663FILE_MAN_SUFFIX
664LIB_MAN_SUFFIX
665APP_MAN_SUFFIX
666SED
667host_os
668host_vendor
669host_cpu
670host
671build_os
672build_vendor
673build_cpu
674build
675INSTALL_CMD
676PKG_CONFIG_LIBDIR
677PKG_CONFIG_PATH
678PKG_CONFIG
679CHANGELOG_CMD
680STRICT_CFLAGS
681CWARNFLAGS
682BASE_CFLAGS
683am__fastdepCC_FALSE
684am__fastdepCC_TRUE
685CCDEPMODE
686am__nodep
687AMDEPBACKSLASH
688AMDEP_FALSE
689AMDEP_TRUE
690am__include
691DEPDIR
692OBJEXT
693EXEEXT
694ac_ct_CC
695CPPFLAGS
696LDFLAGS
697CFLAGS
698CC
699am__xargs_n
700am__rm_f_notfound
701AM_BACKSLASH
702AM_DEFAULT_VERBOSITY
703AM_DEFAULT_V
704AM_V
705CSCOPE
706ETAGS
707CTAGS
708am__untar
709am__tar
710AMTAR
711am__leading_dot
712SET_MAKE
713AWK
714mkdir_p
715MKDIR_P
716INSTALL_STRIP_PROGRAM
717STRIP
718install_sh
719MAKEINFO
720AUTOHEADER
721AUTOMAKE
722AUTOCONF
723ACLOCAL
724VERSION
725PACKAGE
726CYGPATH_W
727am__isrc
728INSTALL_DATA
729INSTALL_SCRIPT
730INSTALL_PROGRAM
731target_alias
732host_alias
733build_alias
734LIBS
735ECHO_T
736ECHO_N
737ECHO_C
738DEFS
739mandir
740localedir
741libdir
742psdir
743pdfdir
744dvidir
745htmldir
746infodir
747docdir
748oldincludedir
749includedir
750runstatedir
751localstatedir
752sharedstatedir
753sysconfdir
754datadir
755datarootdir
756libexecdir
757sbindir
758bindir
759program_transform_name
760prefix
761exec_prefix
762PACKAGE_URL
763PACKAGE_BUGREPORT
764PACKAGE_STRING
765PACKAGE_VERSION
766PACKAGE_TARNAME
767PACKAGE_NAME
768PATH_SEPARATOR
769SHELL
770am__quote'
771ac_subst_files=''
772ac_user_opts='
773enable_option_checking
774enable_silent_rules
775enable_dependency_tracking
776enable_selective_werror
777enable_strict_compilation
778'
779      ac_precious_vars='build_alias
780host_alias
781target_alias
782CC
783CFLAGS
784LDFLAGS
785LIBS
786CPPFLAGS
787PKG_CONFIG
788PKG_CONFIG_PATH
789PKG_CONFIG_LIBDIR
790TRANSSET_CFLAGS
791TRANSSET_LIBS'
792
793
794# Initialize some variables set by options.
795ac_init_help=
796ac_init_version=false
797ac_unrecognized_opts=
798ac_unrecognized_sep=
799# The variables have the same names as the options, with
800# dashes changed to underlines.
801cache_file=/dev/null
802exec_prefix=NONE
803no_create=
804no_recursion=
805prefix=NONE
806program_prefix=NONE
807program_suffix=NONE
808program_transform_name=s,x,x,
809silent=
810site=
811srcdir=
812verbose=
813x_includes=NONE
814x_libraries=NONE
815
816# Installation directory options.
817# These are left unexpanded so users can "make install exec_prefix=/foo"
818# and all the variables that are supposed to be based on exec_prefix
819# by default will actually change.
820# Use braces instead of parens because sh, perl, etc. also accept them.
821# (The list follows the same order as the GNU Coding Standards.)
822bindir='${exec_prefix}/bin'
823sbindir='${exec_prefix}/sbin'
824libexecdir='${exec_prefix}/libexec'
825datarootdir='${prefix}/share'
826datadir='${datarootdir}'
827sysconfdir='${prefix}/etc'
828sharedstatedir='${prefix}/com'
829localstatedir='${prefix}/var'
830runstatedir='${localstatedir}/run'
831includedir='${prefix}/include'
832oldincludedir='/usr/include'
833docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834infodir='${datarootdir}/info'
835htmldir='${docdir}'
836dvidir='${docdir}'
837pdfdir='${docdir}'
838psdir='${docdir}'
839libdir='${exec_prefix}/lib'
840localedir='${datarootdir}/locale'
841mandir='${datarootdir}/man'
842
843ac_prev=
844ac_dashdash=
845for ac_option
846do
847  # If the previous option needs an argument, assign it.
848  if test -n "$ac_prev"; then
849    eval $ac_prev=\$ac_option
850    ac_prev=
851    continue
852  fi
853
854  case $ac_option in
855  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856  *=)   ac_optarg= ;;
857  *)    ac_optarg=yes ;;
858  esac
859
860  case $ac_dashdash$ac_option in
861  --)
862    ac_dashdash=yes ;;
863
864  -bindir | --bindir | --bindi | --bind | --bin | --bi)
865    ac_prev=bindir ;;
866  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867    bindir=$ac_optarg ;;
868
869  -build | --build | --buil | --bui | --bu)
870    ac_prev=build_alias ;;
871  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872    build_alias=$ac_optarg ;;
873
874  -cache-file | --cache-file | --cache-fil | --cache-fi \
875  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876    ac_prev=cache_file ;;
877  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879    cache_file=$ac_optarg ;;
880
881  --config-cache | -C)
882    cache_file=config.cache ;;
883
884  -datadir | --datadir | --datadi | --datad)
885    ac_prev=datadir ;;
886  -datadir=* | --datadir=* | --datadi=* | --datad=*)
887    datadir=$ac_optarg ;;
888
889  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890  | --dataroo | --dataro | --datar)
891    ac_prev=datarootdir ;;
892  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894    datarootdir=$ac_optarg ;;
895
896  -disable-* | --disable-*)
897    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898    # Reject names that are not valid shell variable names.
899    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900      as_fn_error $? "invalid feature name: '$ac_useropt'"
901    ac_useropt_orig=$ac_useropt
902    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
903    case $ac_user_opts in
904      *"
905"enable_$ac_useropt"
906"*) ;;
907      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908	 ac_unrecognized_sep=', ';;
909    esac
910    eval enable_$ac_useropt=no ;;
911
912  -docdir | --docdir | --docdi | --doc | --do)
913    ac_prev=docdir ;;
914  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915    docdir=$ac_optarg ;;
916
917  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918    ac_prev=dvidir ;;
919  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920    dvidir=$ac_optarg ;;
921
922  -enable-* | --enable-*)
923    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924    # Reject names that are not valid shell variable names.
925    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926      as_fn_error $? "invalid feature name: '$ac_useropt'"
927    ac_useropt_orig=$ac_useropt
928    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
929    case $ac_user_opts in
930      *"
931"enable_$ac_useropt"
932"*) ;;
933      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934	 ac_unrecognized_sep=', ';;
935    esac
936    eval enable_$ac_useropt=\$ac_optarg ;;
937
938  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940  | --exec | --exe | --ex)
941    ac_prev=exec_prefix ;;
942  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944  | --exec=* | --exe=* | --ex=*)
945    exec_prefix=$ac_optarg ;;
946
947  -gas | --gas | --ga | --g)
948    # Obsolete; use --with-gas.
949    with_gas=yes ;;
950
951  -help | --help | --hel | --he | -h)
952    ac_init_help=long ;;
953  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954    ac_init_help=recursive ;;
955  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956    ac_init_help=short ;;
957
958  -host | --host | --hos | --ho)
959    ac_prev=host_alias ;;
960  -host=* | --host=* | --hos=* | --ho=*)
961    host_alias=$ac_optarg ;;
962
963  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964    ac_prev=htmldir ;;
965  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966  | --ht=*)
967    htmldir=$ac_optarg ;;
968
969  -includedir | --includedir | --includedi | --included | --include \
970  | --includ | --inclu | --incl | --inc)
971    ac_prev=includedir ;;
972  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973  | --includ=* | --inclu=* | --incl=* | --inc=*)
974    includedir=$ac_optarg ;;
975
976  -infodir | --infodir | --infodi | --infod | --info | --inf)
977    ac_prev=infodir ;;
978  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979    infodir=$ac_optarg ;;
980
981  -libdir | --libdir | --libdi | --libd)
982    ac_prev=libdir ;;
983  -libdir=* | --libdir=* | --libdi=* | --libd=*)
984    libdir=$ac_optarg ;;
985
986  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987  | --libexe | --libex | --libe)
988    ac_prev=libexecdir ;;
989  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990  | --libexe=* | --libex=* | --libe=*)
991    libexecdir=$ac_optarg ;;
992
993  -localedir | --localedir | --localedi | --localed | --locale)
994    ac_prev=localedir ;;
995  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996    localedir=$ac_optarg ;;
997
998  -localstatedir | --localstatedir | --localstatedi | --localstated \
999  | --localstate | --localstat | --localsta | --localst | --locals)
1000    ac_prev=localstatedir ;;
1001  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003    localstatedir=$ac_optarg ;;
1004
1005  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006    ac_prev=mandir ;;
1007  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008    mandir=$ac_optarg ;;
1009
1010  -nfp | --nfp | --nf)
1011    # Obsolete; use --without-fp.
1012    with_fp=no ;;
1013
1014  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015  | --no-cr | --no-c | -n)
1016    no_create=yes ;;
1017
1018  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020    no_recursion=yes ;;
1021
1022  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024  | --oldin | --oldi | --old | --ol | --o)
1025    ac_prev=oldincludedir ;;
1026  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029    oldincludedir=$ac_optarg ;;
1030
1031  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032    ac_prev=prefix ;;
1033  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034    prefix=$ac_optarg ;;
1035
1036  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037  | --program-pre | --program-pr | --program-p)
1038    ac_prev=program_prefix ;;
1039  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041    program_prefix=$ac_optarg ;;
1042
1043  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044  | --program-suf | --program-su | --program-s)
1045    ac_prev=program_suffix ;;
1046  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048    program_suffix=$ac_optarg ;;
1049
1050  -program-transform-name | --program-transform-name \
1051  | --program-transform-nam | --program-transform-na \
1052  | --program-transform-n | --program-transform- \
1053  | --program-transform | --program-transfor \
1054  | --program-transfo | --program-transf \
1055  | --program-trans | --program-tran \
1056  | --progr-tra | --program-tr | --program-t)
1057    ac_prev=program_transform_name ;;
1058  -program-transform-name=* | --program-transform-name=* \
1059  | --program-transform-nam=* | --program-transform-na=* \
1060  | --program-transform-n=* | --program-transform-=* \
1061  | --program-transform=* | --program-transfor=* \
1062  | --program-transfo=* | --program-transf=* \
1063  | --program-trans=* | --program-tran=* \
1064  | --progr-tra=* | --program-tr=* | --program-t=*)
1065    program_transform_name=$ac_optarg ;;
1066
1067  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068    ac_prev=pdfdir ;;
1069  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070    pdfdir=$ac_optarg ;;
1071
1072  -psdir | --psdir | --psdi | --psd | --ps)
1073    ac_prev=psdir ;;
1074  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075    psdir=$ac_optarg ;;
1076
1077  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078  | -silent | --silent | --silen | --sile | --sil)
1079    silent=yes ;;
1080
1081  -runstatedir | --runstatedir | --runstatedi | --runstated \
1082  | --runstate | --runstat | --runsta | --runst | --runs \
1083  | --run | --ru | --r)
1084    ac_prev=runstatedir ;;
1085  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1086  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1087  | --run=* | --ru=* | --r=*)
1088    runstatedir=$ac_optarg ;;
1089
1090  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091    ac_prev=sbindir ;;
1092  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093  | --sbi=* | --sb=*)
1094    sbindir=$ac_optarg ;;
1095
1096  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098  | --sharedst | --shareds | --shared | --share | --shar \
1099  | --sha | --sh)
1100    ac_prev=sharedstatedir ;;
1101  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104  | --sha=* | --sh=*)
1105    sharedstatedir=$ac_optarg ;;
1106
1107  -site | --site | --sit)
1108    ac_prev=site ;;
1109  -site=* | --site=* | --sit=*)
1110    site=$ac_optarg ;;
1111
1112  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113    ac_prev=srcdir ;;
1114  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115    srcdir=$ac_optarg ;;
1116
1117  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118  | --syscon | --sysco | --sysc | --sys | --sy)
1119    ac_prev=sysconfdir ;;
1120  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122    sysconfdir=$ac_optarg ;;
1123
1124  -target | --target | --targe | --targ | --tar | --ta | --t)
1125    ac_prev=target_alias ;;
1126  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127    target_alias=$ac_optarg ;;
1128
1129  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130    verbose=yes ;;
1131
1132  -version | --version | --versio | --versi | --vers | -V)
1133    ac_init_version=: ;;
1134
1135  -with-* | --with-*)
1136    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137    # Reject names that are not valid shell variable names.
1138    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139      as_fn_error $? "invalid package name: '$ac_useropt'"
1140    ac_useropt_orig=$ac_useropt
1141    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1142    case $ac_user_opts in
1143      *"
1144"with_$ac_useropt"
1145"*) ;;
1146      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147	 ac_unrecognized_sep=', ';;
1148    esac
1149    eval with_$ac_useropt=\$ac_optarg ;;
1150
1151  -without-* | --without-*)
1152    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153    # Reject names that are not valid shell variable names.
1154    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155      as_fn_error $? "invalid package name: '$ac_useropt'"
1156    ac_useropt_orig=$ac_useropt
1157    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1158    case $ac_user_opts in
1159      *"
1160"with_$ac_useropt"
1161"*) ;;
1162      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163	 ac_unrecognized_sep=', ';;
1164    esac
1165    eval with_$ac_useropt=no ;;
1166
1167  --x)
1168    # Obsolete; use --with-x.
1169    with_x=yes ;;
1170
1171  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172  | --x-incl | --x-inc | --x-in | --x-i)
1173    ac_prev=x_includes ;;
1174  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176    x_includes=$ac_optarg ;;
1177
1178  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180    ac_prev=x_libraries ;;
1181  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183    x_libraries=$ac_optarg ;;
1184
1185  -*) as_fn_error $? "unrecognized option: '$ac_option'
1186Try '$0 --help' for more information"
1187    ;;
1188
1189  *=*)
1190    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191    # Reject names that are not valid shell variable names.
1192    case $ac_envvar in #(
1193      '' | [0-9]* | *[!_$as_cr_alnum]* )
1194      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1195    esac
1196    eval $ac_envvar=\$ac_optarg
1197    export $ac_envvar ;;
1198
1199  *)
1200    # FIXME: should be removed in autoconf 3.0.
1201    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1202    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1204    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205    ;;
1206
1207  esac
1208done
1209
1210if test -n "$ac_prev"; then
1211  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212  as_fn_error $? "missing argument to $ac_option"
1213fi
1214
1215if test -n "$ac_unrecognized_opts"; then
1216  case $enable_option_checking in
1217    no) ;;
1218    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220  esac
1221fi
1222
1223# Check all directory arguments for consistency.
1224for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225		datadir sysconfdir sharedstatedir localstatedir includedir \
1226		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227		libdir localedir mandir runstatedir
1228do
1229  eval ac_val=\$$ac_var
1230  # Remove trailing slashes.
1231  case $ac_val in
1232    */ )
1233      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234      eval $ac_var=\$ac_val;;
1235  esac
1236  # Be sure to have absolute directory names.
1237  case $ac_val in
1238    [\\/$]* | ?:[\\/]* )  continue;;
1239    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240  esac
1241  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242done
1243
1244# There might be people who depend on the old broken behavior: '$host'
1245# used to hold the argument of --host etc.
1246# FIXME: To remove some day.
1247build=$build_alias
1248host=$host_alias
1249target=$target_alias
1250
1251# FIXME: To remove some day.
1252if test "x$host_alias" != x; then
1253  if test "x$build_alias" = x; then
1254    cross_compiling=maybe
1255  elif test "x$build_alias" != "x$host_alias"; then
1256    cross_compiling=yes
1257  fi
1258fi
1259
1260ac_tool_prefix=
1261test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263test "$silent" = yes && exec 6>/dev/null
1264
1265
1266ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267ac_ls_di=`ls -di .` &&
1268ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269  as_fn_error $? "working directory cannot be determined"
1270test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271  as_fn_error $? "pwd does not report name of working directory"
1272
1273
1274# Find the source files, if location was not specified.
1275if test -z "$srcdir"; then
1276  ac_srcdir_defaulted=yes
1277  # Try the directory containing this script, then the parent directory.
1278  ac_confdir=`$as_dirname -- "$as_myself" ||
1279$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280	 X"$as_myself" : 'X\(//\)[^/]' \| \
1281	 X"$as_myself" : 'X\(//\)$' \| \
1282	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283printf "%s\n" X"$as_myself" |
1284    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285	    s//\1/
1286	    q
1287	  }
1288	  /^X\(\/\/\)[^/].*/{
1289	    s//\1/
1290	    q
1291	  }
1292	  /^X\(\/\/\)$/{
1293	    s//\1/
1294	    q
1295	  }
1296	  /^X\(\/\).*/{
1297	    s//\1/
1298	    q
1299	  }
1300	  s/.*/./; q'`
1301  srcdir=$ac_confdir
1302  if test ! -r "$srcdir/$ac_unique_file"; then
1303    srcdir=..
1304  fi
1305else
1306  ac_srcdir_defaulted=no
1307fi
1308if test ! -r "$srcdir/$ac_unique_file"; then
1309  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311fi
1312ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1313ac_abs_confdir=`(
1314	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315	pwd)`
1316# When building in place, set srcdir=.
1317if test "$ac_abs_confdir" = "$ac_pwd"; then
1318  srcdir=.
1319fi
1320# Remove unnecessary trailing slashes from srcdir.
1321# Double slashes in file names in object file debugging info
1322# mess up M-x gdb in Emacs.
1323case $srcdir in
1324*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325esac
1326for ac_var in $ac_precious_vars; do
1327  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328  eval ac_env_${ac_var}_value=\$${ac_var}
1329  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331done
1332
1333#
1334# Report the --help message.
1335#
1336if test "$ac_init_help" = "long"; then
1337  # Omit some internal or obsolete options to make the list less imposing.
1338  # This message is too long to be a string in the A/UX 3.1 sh.
1339  cat <<_ACEOF
1340'configure' configures transset 1.0.4 to adapt to many kinds of systems.
1341
1342Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345VAR=VALUE.  See below for descriptions of some of the useful variables.
1346
1347Defaults for the options are specified in brackets.
1348
1349Configuration:
1350  -h, --help              display this help and exit
1351      --help=short        display options specific to this package
1352      --help=recursive    display the short help of all the included packages
1353  -V, --version           display version information and exit
1354  -q, --quiet, --silent   do not print 'checking ...' messages
1355      --cache-file=FILE   cache test results in FILE [disabled]
1356  -C, --config-cache      alias for '--cache-file=config.cache'
1357  -n, --no-create         do not create output files
1358      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1359
1360Installation directories:
1361  --prefix=PREFIX         install architecture-independent files in PREFIX
1362                          [$ac_default_prefix]
1363  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1364                          [PREFIX]
1365
1366By default, 'make install' will install all the files in
1367'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1368an installation prefix other than '$ac_default_prefix' using '--prefix',
1369for instance '--prefix=\$HOME'.
1370
1371For better control, use the options below.
1372
1373Fine tuning of the installation directories:
1374  --bindir=DIR            user executables [EPREFIX/bin]
1375  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1376  --libexecdir=DIR        program executables [EPREFIX/libexec]
1377  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1378  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1379  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1380  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1381  --libdir=DIR            object code libraries [EPREFIX/lib]
1382  --includedir=DIR        C header files [PREFIX/include]
1383  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1384  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1385  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1386  --infodir=DIR           info documentation [DATAROOTDIR/info]
1387  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1388  --mandir=DIR            man documentation [DATAROOTDIR/man]
1389  --docdir=DIR            documentation root [DATAROOTDIR/doc/transset]
1390  --htmldir=DIR           html documentation [DOCDIR]
1391  --dvidir=DIR            dvi documentation [DOCDIR]
1392  --pdfdir=DIR            pdf documentation [DOCDIR]
1393  --psdir=DIR             ps documentation [DOCDIR]
1394_ACEOF
1395
1396  cat <<\_ACEOF
1397
1398Program names:
1399  --program-prefix=PREFIX            prepend PREFIX to installed program names
1400  --program-suffix=SUFFIX            append SUFFIX to installed program names
1401  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1402
1403System types:
1404  --build=BUILD     configure for building on BUILD [guessed]
1405  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1406_ACEOF
1407fi
1408
1409if test -n "$ac_init_help"; then
1410  case $ac_init_help in
1411     short | recursive ) echo "Configuration of transset 1.0.4:";;
1412   esac
1413  cat <<\_ACEOF
1414
1415Optional Features:
1416  --disable-option-checking  ignore unrecognized --enable/--with options
1417  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1418  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1419  --enable-silent-rules   less verbose build output (undo: "make V=1")
1420  --disable-silent-rules  verbose build output (undo: "make V=0")
1421  --enable-dependency-tracking
1422                          do not reject slow dependency extractors
1423  --disable-dependency-tracking
1424                          speeds up one-time build
1425  --disable-selective-werror
1426                          Turn off selective compiler errors. (default:
1427                          enabled)
1428  --enable-strict-compilation
1429                          Enable all warnings from compiler and make them
1430                          errors (default: disabled)
1431
1432Some influential environment variables:
1433  CC          C compiler command
1434  CFLAGS      C compiler flags
1435  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1436              nonstandard directory <lib dir>
1437  LIBS        libraries to pass to the linker, e.g. -l<library>
1438  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439              you have headers in a nonstandard directory <include dir>
1440  PKG_CONFIG  path to pkg-config utility
1441  PKG_CONFIG_PATH
1442              directories to add to pkg-config's search path
1443  PKG_CONFIG_LIBDIR
1444              path overriding pkg-config's built-in search path
1445  TRANSSET_CFLAGS
1446              C compiler flags for TRANSSET, overriding pkg-config
1447  TRANSSET_LIBS
1448              linker flags for TRANSSET, overriding pkg-config
1449
1450Use these variables to override the choices made by 'configure' or to help
1451it to find libraries and programs with nonstandard names/locations.
1452
1453Report bugs to <https://gitlab.freedesktop.org/xorg/app/transset/-/issues>.
1454_ACEOF
1455ac_status=$?
1456fi
1457
1458if test "$ac_init_help" = "recursive"; then
1459  # If there are subdirs, report their specific --help.
1460  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461    test -d "$ac_dir" ||
1462      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463      continue
1464    ac_builddir=.
1465
1466case "$ac_dir" in
1467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468*)
1469  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1470  # A ".." for each directory in $ac_dir_suffix.
1471  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472  case $ac_top_builddir_sub in
1473  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475  esac ;;
1476esac
1477ac_abs_top_builddir=$ac_pwd
1478ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479# for backward compatibility:
1480ac_top_builddir=$ac_top_build_prefix
1481
1482case $srcdir in
1483  .)  # We are building in place.
1484    ac_srcdir=.
1485    ac_top_srcdir=$ac_top_builddir_sub
1486    ac_abs_top_srcdir=$ac_pwd ;;
1487  [\\/]* | ?:[\\/]* )  # Absolute name.
1488    ac_srcdir=$srcdir$ac_dir_suffix;
1489    ac_top_srcdir=$srcdir
1490    ac_abs_top_srcdir=$srcdir ;;
1491  *) # Relative name.
1492    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493    ac_top_srcdir=$ac_top_build_prefix$srcdir
1494    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495esac
1496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498    cd "$ac_dir" || { ac_status=$?; continue; }
1499    # Check for configure.gnu first; this name is used for a wrapper for
1500    # Metaconfig's "Configure" on case-insensitive file systems.
1501    if test -f "$ac_srcdir/configure.gnu"; then
1502      echo &&
1503      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504    elif test -f "$ac_srcdir/configure"; then
1505      echo &&
1506      $SHELL "$ac_srcdir/configure" --help=recursive
1507    else
1508      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509    fi || ac_status=$?
1510    cd "$ac_pwd" || { ac_status=$?; break; }
1511  done
1512fi
1513
1514test -n "$ac_init_help" && exit $ac_status
1515if $ac_init_version; then
1516  cat <<\_ACEOF
1517transset configure 1.0.4
1518generated by GNU Autoconf 2.72
1519
1520Copyright (C) 2023 Free Software Foundation, Inc.
1521This configure script is free software; the Free Software Foundation
1522gives unlimited permission to copy, distribute and modify it.
1523_ACEOF
1524  exit
1525fi
1526
1527## ------------------------ ##
1528## Autoconf initialization. ##
1529## ------------------------ ##
1530
1531# ac_fn_c_try_compile LINENO
1532# --------------------------
1533# Try to compile conftest.$ac_ext, and return whether this succeeded.
1534ac_fn_c_try_compile ()
1535{
1536  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537  rm -f conftest.$ac_objext conftest.beam
1538  if { { ac_try="$ac_compile"
1539case "(($ac_try" in
1540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541  *) ac_try_echo=$ac_try;;
1542esac
1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544printf "%s\n" "$ac_try_echo"; } >&5
1545  (eval "$ac_compile") 2>conftest.err
1546  ac_status=$?
1547  if test -s conftest.err; then
1548    grep -v '^ *+' conftest.err >conftest.er1
1549    cat conftest.er1 >&5
1550    mv -f conftest.er1 conftest.err
1551  fi
1552  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553  test $ac_status = 0; } && {
1554	 test -z "$ac_c_werror_flag" ||
1555	 test ! -s conftest.err
1556       } && test -s conftest.$ac_objext
1557then :
1558  ac_retval=0
1559else case e in #(
1560  e) printf "%s\n" "$as_me: failed program was:" >&5
1561sed 's/^/| /' conftest.$ac_ext >&5
1562
1563	ac_retval=1 ;;
1564esac
1565fi
1566  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567  as_fn_set_status $ac_retval
1568
1569} # ac_fn_c_try_compile
1570
1571# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1572# ------------------------------------------------------------------
1573# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1574# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1575ac_fn_check_decl ()
1576{
1577  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578  as_decl_name=`echo $2|sed 's/ *(.*//'`
1579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1580printf %s "checking whether $as_decl_name is declared... " >&6; }
1581if eval test \${$3+y}
1582then :
1583  printf %s "(cached) " >&6
1584else case e in #(
1585  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1586  eval ac_save_FLAGS=\$$6
1587  as_fn_append $6 " $5"
1588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589/* end confdefs.h.  */
1590$4
1591int
1592main (void)
1593{
1594#ifndef $as_decl_name
1595#ifdef __cplusplus
1596  (void) $as_decl_use;
1597#else
1598  (void) $as_decl_name;
1599#endif
1600#endif
1601
1602  ;
1603  return 0;
1604}
1605_ACEOF
1606if ac_fn_c_try_compile "$LINENO"
1607then :
1608  eval "$3=yes"
1609else case e in #(
1610  e) eval "$3=no" ;;
1611esac
1612fi
1613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1614  eval $6=\$ac_save_FLAGS
1615 ;;
1616esac
1617fi
1618eval ac_res=\$$3
1619	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620printf "%s\n" "$ac_res" >&6; }
1621  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622
1623} # ac_fn_check_decl
1624
1625# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1626# -------------------------------------------------------
1627# Tests whether HEADER exists and can be compiled using the include files in
1628# INCLUDES, setting the cache variable VAR accordingly.
1629ac_fn_c_check_header_compile ()
1630{
1631  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633printf %s "checking for $2... " >&6; }
1634if eval test \${$3+y}
1635then :
1636  printf %s "(cached) " >&6
1637else case e in #(
1638  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639/* end confdefs.h.  */
1640$4
1641#include <$2>
1642_ACEOF
1643if ac_fn_c_try_compile "$LINENO"
1644then :
1645  eval "$3=yes"
1646else case e in #(
1647  e) eval "$3=no" ;;
1648esac
1649fi
1650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1651esac
1652fi
1653eval ac_res=\$$3
1654	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655printf "%s\n" "$ac_res" >&6; }
1656  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657
1658} # ac_fn_c_check_header_compile
1659
1660# ac_fn_c_try_link LINENO
1661# -----------------------
1662# Try to link conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_c_try_link ()
1664{
1665  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1667  if { { ac_try="$ac_link"
1668case "(($ac_try" in
1669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670  *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673printf "%s\n" "$ac_try_echo"; } >&5
1674  (eval "$ac_link") 2>conftest.err
1675  ac_status=$?
1676  if test -s conftest.err; then
1677    grep -v '^ *+' conftest.err >conftest.er1
1678    cat conftest.er1 >&5
1679    mv -f conftest.er1 conftest.err
1680  fi
1681  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682  test $ac_status = 0; } && {
1683	 test -z "$ac_c_werror_flag" ||
1684	 test ! -s conftest.err
1685       } && test -s conftest$ac_exeext && {
1686	 test "$cross_compiling" = yes ||
1687	 test -x conftest$ac_exeext
1688       }
1689then :
1690  ac_retval=0
1691else case e in #(
1692  e) printf "%s\n" "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695	ac_retval=1 ;;
1696esac
1697fi
1698  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700  # interfere with the next link command; also delete a directory that is
1701  # left behind by Apple's compiler.  We do this before executing the actions.
1702  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704  as_fn_set_status $ac_retval
1705
1706} # ac_fn_c_try_link
1707ac_configure_args_raw=
1708for ac_arg
1709do
1710  case $ac_arg in
1711  *\'*)
1712    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1713  esac
1714  as_fn_append ac_configure_args_raw " '$ac_arg'"
1715done
1716
1717case $ac_configure_args_raw in
1718  *$as_nl*)
1719    ac_safe_unquote= ;;
1720  *)
1721    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1722    ac_unsafe_a="$ac_unsafe_z#~"
1723    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1724    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1725esac
1726
1727cat >config.log <<_ACEOF
1728This file contains any messages produced by compilers while
1729running configure, to aid debugging if configure makes a mistake.
1730
1731It was created by transset $as_me 1.0.4, which was
1732generated by GNU Autoconf 2.72.  Invocation command line was
1733
1734  $ $0$ac_configure_args_raw
1735
1736_ACEOF
1737exec 5>>config.log
1738{
1739cat <<_ASUNAME
1740## --------- ##
1741## Platform. ##
1742## --------- ##
1743
1744hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1745uname -m = `(uname -m) 2>/dev/null || echo unknown`
1746uname -r = `(uname -r) 2>/dev/null || echo unknown`
1747uname -s = `(uname -s) 2>/dev/null || echo unknown`
1748uname -v = `(uname -v) 2>/dev/null || echo unknown`
1749
1750/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1751/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1752
1753/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1754/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1755/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1756/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1757/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1758/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1759/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1760
1761_ASUNAME
1762
1763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764for as_dir in $PATH
1765do
1766  IFS=$as_save_IFS
1767  case $as_dir in #(((
1768    '') as_dir=./ ;;
1769    */) ;;
1770    *) as_dir=$as_dir/ ;;
1771  esac
1772    printf "%s\n" "PATH: $as_dir"
1773  done
1774IFS=$as_save_IFS
1775
1776} >&5
1777
1778cat >&5 <<_ACEOF
1779
1780
1781## ----------- ##
1782## Core tests. ##
1783## ----------- ##
1784
1785_ACEOF
1786
1787
1788# Keep a trace of the command line.
1789# Strip out --no-create and --no-recursion so they do not pile up.
1790# Strip out --silent because we don't want to record it for future runs.
1791# Also quote any args containing shell meta-characters.
1792# Make two passes to allow for proper duplicate-argument suppression.
1793ac_configure_args=
1794ac_configure_args0=
1795ac_configure_args1=
1796ac_must_keep_next=false
1797for ac_pass in 1 2
1798do
1799  for ac_arg
1800  do
1801    case $ac_arg in
1802    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1803    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1804    | -silent | --silent | --silen | --sile | --sil)
1805      continue ;;
1806    *\'*)
1807      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1808    esac
1809    case $ac_pass in
1810    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1811    2)
1812      as_fn_append ac_configure_args1 " '$ac_arg'"
1813      if test $ac_must_keep_next = true; then
1814	ac_must_keep_next=false # Got value, back to normal.
1815      else
1816	case $ac_arg in
1817	  *=* | --config-cache | -C | -disable-* | --disable-* \
1818	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1819	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1820	  | -with-* | --with-* | -without-* | --without-* | --x)
1821	    case "$ac_configure_args0 " in
1822	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1823	    esac
1824	    ;;
1825	  -* ) ac_must_keep_next=true ;;
1826	esac
1827      fi
1828      as_fn_append ac_configure_args " '$ac_arg'"
1829      ;;
1830    esac
1831  done
1832done
1833{ ac_configure_args0=; unset ac_configure_args0;}
1834{ ac_configure_args1=; unset ac_configure_args1;}
1835
1836# When interrupted or exit'd, cleanup temporary files, and complete
1837# config.log.  We remove comments because anyway the quotes in there
1838# would cause problems or look ugly.
1839# WARNING: Use '\'' to represent an apostrophe within the trap.
1840# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1841trap 'exit_status=$?
1842  # Sanitize IFS.
1843  IFS=" ""	$as_nl"
1844  # Save into config.log some information that might help in debugging.
1845  {
1846    echo
1847
1848    printf "%s\n" "## ---------------- ##
1849## Cache variables. ##
1850## ---------------- ##"
1851    echo
1852    # The following way of writing the cache mishandles newlines in values,
1853(
1854  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1855    eval ac_val=\$$ac_var
1856    case $ac_val in #(
1857    *${as_nl}*)
1858      case $ac_var in #(
1859      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1860printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1861      esac
1862      case $ac_var in #(
1863      _ | IFS | as_nl) ;; #(
1864      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1865      *) { eval $ac_var=; unset $ac_var;} ;;
1866      esac ;;
1867    esac
1868  done
1869  (set) 2>&1 |
1870    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1871    *${as_nl}ac_space=\ *)
1872      sed -n \
1873	"s/'\''/'\''\\\\'\'''\''/g;
1874	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1875      ;; #(
1876    *)
1877      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1878      ;;
1879    esac |
1880    sort
1881)
1882    echo
1883
1884    printf "%s\n" "## ----------------- ##
1885## Output variables. ##
1886## ----------------- ##"
1887    echo
1888    for ac_var in $ac_subst_vars
1889    do
1890      eval ac_val=\$$ac_var
1891      case $ac_val in
1892      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1893      esac
1894      printf "%s\n" "$ac_var='\''$ac_val'\''"
1895    done | sort
1896    echo
1897
1898    if test -n "$ac_subst_files"; then
1899      printf "%s\n" "## ------------------- ##
1900## File substitutions. ##
1901## ------------------- ##"
1902      echo
1903      for ac_var in $ac_subst_files
1904      do
1905	eval ac_val=\$$ac_var
1906	case $ac_val in
1907	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1908	esac
1909	printf "%s\n" "$ac_var='\''$ac_val'\''"
1910      done | sort
1911      echo
1912    fi
1913
1914    if test -s confdefs.h; then
1915      printf "%s\n" "## ----------- ##
1916## confdefs.h. ##
1917## ----------- ##"
1918      echo
1919      cat confdefs.h
1920      echo
1921    fi
1922    test "$ac_signal" != 0 &&
1923      printf "%s\n" "$as_me: caught signal $ac_signal"
1924    printf "%s\n" "$as_me: exit $exit_status"
1925  } >&5
1926  rm -f core *.core core.conftest.* &&
1927    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1928    exit $exit_status
1929' 0
1930for ac_signal in 1 2 13 15; do
1931  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1932done
1933ac_signal=0
1934
1935# confdefs.h avoids OS command line length limits that DEFS can exceed.
1936rm -f -r conftest* confdefs.h
1937
1938printf "%s\n" "/* confdefs.h */" > confdefs.h
1939
1940# Predefined preprocessor variables.
1941
1942printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1943
1944printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1945
1946printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1947
1948printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1949
1950printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1951
1952printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1953
1954
1955# Let the site file select an alternate cache file if it wants to.
1956# Prefer an explicitly selected file to automatically selected ones.
1957if test -n "$CONFIG_SITE"; then
1958  ac_site_files="$CONFIG_SITE"
1959elif test "x$prefix" != xNONE; then
1960  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1961else
1962  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1963fi
1964
1965for ac_site_file in $ac_site_files
1966do
1967  case $ac_site_file in #(
1968  */*) :
1969     ;; #(
1970  *) :
1971    ac_site_file=./$ac_site_file ;;
1972esac
1973  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1974    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1975printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1976    sed 's/^/| /' "$ac_site_file" >&5
1977    . "$ac_site_file" \
1978      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1979printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1980as_fn_error $? "failed to load site script $ac_site_file
1981See 'config.log' for more details" "$LINENO" 5; }
1982  fi
1983done
1984
1985if test -r "$cache_file"; then
1986  # Some versions of bash will fail to source /dev/null (special files
1987  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1988  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1989    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1990printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1991    case $cache_file in
1992      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1993      *)                      . "./$cache_file";;
1994    esac
1995  fi
1996else
1997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1998printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1999  >$cache_file
2000fi
2001
2002# Test code for whether the C compiler supports C89 (global declarations)
2003ac_c_conftest_c89_globals='
2004/* Does the compiler advertise C89 conformance?
2005   Do not test the value of __STDC__, because some compilers set it to 0
2006   while being otherwise adequately conformant. */
2007#if !defined __STDC__
2008# error "Compiler does not advertise C89 conformance"
2009#endif
2010
2011#include <stddef.h>
2012#include <stdarg.h>
2013struct stat;
2014/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2015struct buf { int x; };
2016struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2017static char *e (char **p, int i)
2018{
2019  return p[i];
2020}
2021static char *f (char * (*g) (char **, int), char **p, ...)
2022{
2023  char *s;
2024  va_list v;
2025  va_start (v,p);
2026  s = g (p, va_arg (v,int));
2027  va_end (v);
2028  return s;
2029}
2030
2031/* C89 style stringification. */
2032#define noexpand_stringify(a) #a
2033const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2034
2035/* C89 style token pasting.  Exercises some of the corner cases that
2036   e.g. old MSVC gets wrong, but not very hard. */
2037#define noexpand_concat(a,b) a##b
2038#define expand_concat(a,b) noexpand_concat(a,b)
2039extern int vA;
2040extern int vbee;
2041#define aye A
2042#define bee B
2043int *pvA = &expand_concat(v,aye);
2044int *pvbee = &noexpand_concat(v,bee);
2045
2046/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2047   function prototypes and stuff, but not \xHH hex character constants.
2048   These do not provoke an error unfortunately, instead are silently treated
2049   as an "x".  The following induces an error, until -std is added to get
2050   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2051   array size at least.  It is necessary to write \x00 == 0 to get something
2052   that is true only with -std.  */
2053int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2054
2055/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2056   inside strings and character constants.  */
2057#define FOO(x) '\''x'\''
2058int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2059
2060int test (int i, double x);
2061struct s1 {int (*f) (int a);};
2062struct s2 {int (*f) (double a);};
2063int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2064               int, int);'
2065
2066# Test code for whether the C compiler supports C89 (body of main).
2067ac_c_conftest_c89_main='
2068ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2069'
2070
2071# Test code for whether the C compiler supports C99 (global declarations)
2072ac_c_conftest_c99_globals='
2073/* Does the compiler advertise C99 conformance? */
2074#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2075# error "Compiler does not advertise C99 conformance"
2076#endif
2077
2078// See if C++-style comments work.
2079
2080#include <stdbool.h>
2081extern int puts (const char *);
2082extern int printf (const char *, ...);
2083extern int dprintf (int, const char *, ...);
2084extern void *malloc (size_t);
2085extern void free (void *);
2086
2087// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2088// dprintf is used instead of fprintf to avoid needing to declare
2089// FILE and stderr.
2090#define debug(...) dprintf (2, __VA_ARGS__)
2091#define showlist(...) puts (#__VA_ARGS__)
2092#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2093static void
2094test_varargs_macros (void)
2095{
2096  int x = 1234;
2097  int y = 5678;
2098  debug ("Flag");
2099  debug ("X = %d\n", x);
2100  showlist (The first, second, and third items.);
2101  report (x>y, "x is %d but y is %d", x, y);
2102}
2103
2104// Check long long types.
2105#define BIG64 18446744073709551615ull
2106#define BIG32 4294967295ul
2107#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2108#if !BIG_OK
2109  #error "your preprocessor is broken"
2110#endif
2111#if BIG_OK
2112#else
2113  #error "your preprocessor is broken"
2114#endif
2115static long long int bignum = -9223372036854775807LL;
2116static unsigned long long int ubignum = BIG64;
2117
2118struct incomplete_array
2119{
2120  int datasize;
2121  double data[];
2122};
2123
2124struct named_init {
2125  int number;
2126  const wchar_t *name;
2127  double average;
2128};
2129
2130typedef const char *ccp;
2131
2132static inline int
2133test_restrict (ccp restrict text)
2134{
2135  // Iterate through items via the restricted pointer.
2136  // Also check for declarations in for loops.
2137  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2138    continue;
2139  return 0;
2140}
2141
2142// Check varargs and va_copy.
2143static bool
2144test_varargs (const char *format, ...)
2145{
2146  va_list args;
2147  va_start (args, format);
2148  va_list args_copy;
2149  va_copy (args_copy, args);
2150
2151  const char *str = "";
2152  int number = 0;
2153  float fnumber = 0;
2154
2155  while (*format)
2156    {
2157      switch (*format++)
2158	{
2159	case '\''s'\'': // string
2160	  str = va_arg (args_copy, const char *);
2161	  break;
2162	case '\''d'\'': // int
2163	  number = va_arg (args_copy, int);
2164	  break;
2165	case '\''f'\'': // float
2166	  fnumber = va_arg (args_copy, double);
2167	  break;
2168	default:
2169	  break;
2170	}
2171    }
2172  va_end (args_copy);
2173  va_end (args);
2174
2175  return *str && number && fnumber;
2176}
2177'
2178
2179# Test code for whether the C compiler supports C99 (body of main).
2180ac_c_conftest_c99_main='
2181  // Check bool.
2182  _Bool success = false;
2183  success |= (argc != 0);
2184
2185  // Check restrict.
2186  if (test_restrict ("String literal") == 0)
2187    success = true;
2188  char *restrict newvar = "Another string";
2189
2190  // Check varargs.
2191  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2192  test_varargs_macros ();
2193
2194  // Check flexible array members.
2195  struct incomplete_array *ia =
2196    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2197  ia->datasize = 10;
2198  for (int i = 0; i < ia->datasize; ++i)
2199    ia->data[i] = i * 1.234;
2200  // Work around memory leak warnings.
2201  free (ia);
2202
2203  // Check named initializers.
2204  struct named_init ni = {
2205    .number = 34,
2206    .name = L"Test wide string",
2207    .average = 543.34343,
2208  };
2209
2210  ni.number = 58;
2211
2212  int dynamic_array[ni.number];
2213  dynamic_array[0] = argv[0][0];
2214  dynamic_array[ni.number - 1] = 543;
2215
2216  // work around unused variable warnings
2217  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2218	 || dynamic_array[ni.number - 1] != 543);
2219'
2220
2221# Test code for whether the C compiler supports C11 (global declarations)
2222ac_c_conftest_c11_globals='
2223/* Does the compiler advertise C11 conformance? */
2224#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2225# error "Compiler does not advertise C11 conformance"
2226#endif
2227
2228// Check _Alignas.
2229char _Alignas (double) aligned_as_double;
2230char _Alignas (0) no_special_alignment;
2231extern char aligned_as_int;
2232char _Alignas (0) _Alignas (int) aligned_as_int;
2233
2234// Check _Alignof.
2235enum
2236{
2237  int_alignment = _Alignof (int),
2238  int_array_alignment = _Alignof (int[100]),
2239  char_alignment = _Alignof (char)
2240};
2241_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2242
2243// Check _Noreturn.
2244int _Noreturn does_not_return (void) { for (;;) continue; }
2245
2246// Check _Static_assert.
2247struct test_static_assert
2248{
2249  int x;
2250  _Static_assert (sizeof (int) <= sizeof (long int),
2251                  "_Static_assert does not work in struct");
2252  long int y;
2253};
2254
2255// Check UTF-8 literals.
2256#define u8 syntax error!
2257char const utf8_literal[] = u8"happens to be ASCII" "another string";
2258
2259// Check duplicate typedefs.
2260typedef long *long_ptr;
2261typedef long int *long_ptr;
2262typedef long_ptr long_ptr;
2263
2264// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2265struct anonymous
2266{
2267  union {
2268    struct { int i; int j; };
2269    struct { int k; long int l; } w;
2270  };
2271  int m;
2272} v1;
2273'
2274
2275# Test code for whether the C compiler supports C11 (body of main).
2276ac_c_conftest_c11_main='
2277  _Static_assert ((offsetof (struct anonymous, i)
2278		   == offsetof (struct anonymous, w.k)),
2279		  "Anonymous union alignment botch");
2280  v1.i = 2;
2281  v1.w.k = 5;
2282  ok |= v1.i != 5;
2283'
2284
2285# Test code for whether the C compiler supports C11 (complete).
2286ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2287${ac_c_conftest_c99_globals}
2288${ac_c_conftest_c11_globals}
2289
2290int
2291main (int argc, char **argv)
2292{
2293  int ok = 0;
2294  ${ac_c_conftest_c89_main}
2295  ${ac_c_conftest_c99_main}
2296  ${ac_c_conftest_c11_main}
2297  return ok;
2298}
2299"
2300
2301# Test code for whether the C compiler supports C99 (complete).
2302ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2303${ac_c_conftest_c99_globals}
2304
2305int
2306main (int argc, char **argv)
2307{
2308  int ok = 0;
2309  ${ac_c_conftest_c89_main}
2310  ${ac_c_conftest_c99_main}
2311  return ok;
2312}
2313"
2314
2315# Test code for whether the C compiler supports C89 (complete).
2316ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2317
2318int
2319main (int argc, char **argv)
2320{
2321  int ok = 0;
2322  ${ac_c_conftest_c89_main}
2323  return ok;
2324}
2325"
2326
2327as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2328as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2329as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2330as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2331as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2332as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2333as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2334as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2335as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2336
2337# Auxiliary files required by this configure script.
2338ac_aux_files="config.guess config.sub compile missing install-sh"
2339
2340# Locations in which to look for auxiliary files.
2341ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2342
2343# Search for a directory containing all of the required auxiliary files,
2344# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2345# If we don't find one directory that contains all the files we need,
2346# we report the set of missing files from the *first* directory in
2347# $ac_aux_dir_candidates and give up.
2348ac_missing_aux_files=""
2349ac_first_candidate=:
2350printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352as_found=false
2353for as_dir in $ac_aux_dir_candidates
2354do
2355  IFS=$as_save_IFS
2356  case $as_dir in #(((
2357    '') as_dir=./ ;;
2358    */) ;;
2359    *) as_dir=$as_dir/ ;;
2360  esac
2361  as_found=:
2362
2363  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2364  ac_aux_dir_found=yes
2365  ac_install_sh=
2366  for ac_aux in $ac_aux_files
2367  do
2368    # As a special case, if "install-sh" is required, that requirement
2369    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2370    # and $ac_install_sh is set appropriately for whichever one is found.
2371    if test x"$ac_aux" = x"install-sh"
2372    then
2373      if test -f "${as_dir}install-sh"; then
2374        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2375        ac_install_sh="${as_dir}install-sh -c"
2376      elif test -f "${as_dir}install.sh"; then
2377        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2378        ac_install_sh="${as_dir}install.sh -c"
2379      elif test -f "${as_dir}shtool"; then
2380        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2381        ac_install_sh="${as_dir}shtool install -c"
2382      else
2383        ac_aux_dir_found=no
2384        if $ac_first_candidate; then
2385          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2386        else
2387          break
2388        fi
2389      fi
2390    else
2391      if test -f "${as_dir}${ac_aux}"; then
2392        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2393      else
2394        ac_aux_dir_found=no
2395        if $ac_first_candidate; then
2396          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2397        else
2398          break
2399        fi
2400      fi
2401    fi
2402  done
2403  if test "$ac_aux_dir_found" = yes; then
2404    ac_aux_dir="$as_dir"
2405    break
2406  fi
2407  ac_first_candidate=false
2408
2409  as_found=false
2410done
2411IFS=$as_save_IFS
2412if $as_found
2413then :
2414
2415else case e in #(
2416  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2417esac
2418fi
2419
2420
2421# These three variables are undocumented and unsupported,
2422# and are intended to be withdrawn in a future Autoconf release.
2423# They can cause serious problems if a builder's source tree is in a directory
2424# whose full name contains unusual characters.
2425if test -f "${ac_aux_dir}config.guess"; then
2426  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2427fi
2428if test -f "${ac_aux_dir}config.sub"; then
2429  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2430fi
2431if test -f "$ac_aux_dir/configure"; then
2432  ac_configure="$SHELL ${ac_aux_dir}configure"
2433fi
2434
2435# Check that the precious variables saved in the cache have kept the same
2436# value.
2437ac_cache_corrupted=false
2438for ac_var in $ac_precious_vars; do
2439  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2440  eval ac_new_set=\$ac_env_${ac_var}_set
2441  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2442  eval ac_new_val=\$ac_env_${ac_var}_value
2443  case $ac_old_set,$ac_new_set in
2444    set,)
2445      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2446printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2447      ac_cache_corrupted=: ;;
2448    ,set)
2449      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2450printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2451      ac_cache_corrupted=: ;;
2452    ,);;
2453    *)
2454      if test "x$ac_old_val" != "x$ac_new_val"; then
2455	# differences in whitespace do not lead to failure.
2456	ac_old_val_w=`echo x $ac_old_val`
2457	ac_new_val_w=`echo x $ac_new_val`
2458	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2459	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2460printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2461	  ac_cache_corrupted=:
2462	else
2463	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2464printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2465	  eval $ac_var=\$ac_old_val
2466	fi
2467	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2468printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2469	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2470printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2471      fi;;
2472  esac
2473  # Pass precious variables to config.status.
2474  if test "$ac_new_set" = set; then
2475    case $ac_new_val in
2476    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2477    *) ac_arg=$ac_var=$ac_new_val ;;
2478    esac
2479    case " $ac_configure_args " in
2480      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2481      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2482    esac
2483  fi
2484done
2485if $ac_cache_corrupted; then
2486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2487printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2489printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2490  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2491	    and start over" "$LINENO" 5
2492fi
2493## -------------------- ##
2494## Main body of script. ##
2495## -------------------- ##
2496
2497ac_ext=c
2498ac_cpp='$CPP $CPPFLAGS'
2499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502
2503
2504RELEASE_DATE="2024-12-04"
2505
2506ac_config_headers="$ac_config_headers config.h"
2507
2508
2509# Initialize Automake
2510am__api_version='1.17'
2511
2512
2513
2514  # Find a good install program.  We prefer a C program (faster),
2515# so one script is as good as another.  But avoid the broken or
2516# incompatible versions:
2517# SysV /etc/install, /usr/sbin/install
2518# SunOS /usr/etc/install
2519# IRIX /sbin/install
2520# AIX /bin/install
2521# AmigaOS /C/install, which installs bootblocks on floppy discs
2522# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2523# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2524# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2525# OS/2's system install, which has a completely different semantic
2526# ./install, which can be erroneously created by make from ./install.sh.
2527# Reject install programs that cannot install multiple files.
2528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2529printf %s "checking for a BSD-compatible install... " >&6; }
2530if test -z "$INSTALL"; then
2531if test ${ac_cv_path_install+y}
2532then :
2533  printf %s "(cached) " >&6
2534else case e in #(
2535  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH
2537do
2538  IFS=$as_save_IFS
2539  case $as_dir in #(((
2540    '') as_dir=./ ;;
2541    */) ;;
2542    *) as_dir=$as_dir/ ;;
2543  esac
2544    # Account for fact that we put trailing slashes in our PATH walk.
2545case $as_dir in #((
2546  ./ | /[cC]/* | \
2547  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2548  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2549  /usr/ucb/* ) ;;
2550  *)
2551    # OSF1 and SCO ODT 3.0 have their own names for install.
2552    # Don't use installbsd from OSF since it installs stuff as root
2553    # by default.
2554    for ac_prog in ginstall scoinst install; do
2555      for ac_exec_ext in '' $ac_executable_extensions; do
2556	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2557	  if test $ac_prog = install &&
2558	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2559	    # AIX install.  It has an incompatible calling convention.
2560	    :
2561	  elif test $ac_prog = install &&
2562	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2563	    # program-specific install script used by HP pwplus--don't use.
2564	    :
2565	  else
2566	    rm -rf conftest.one conftest.two conftest.dir
2567	    echo one > conftest.one
2568	    echo two > conftest.two
2569	    mkdir conftest.dir
2570	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2571	      test -s conftest.one && test -s conftest.two &&
2572	      test -s conftest.dir/conftest.one &&
2573	      test -s conftest.dir/conftest.two
2574	    then
2575	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2576	      break 3
2577	    fi
2578	  fi
2579	fi
2580      done
2581    done
2582    ;;
2583esac
2584
2585  done
2586IFS=$as_save_IFS
2587
2588rm -rf conftest.one conftest.two conftest.dir
2589 ;;
2590esac
2591fi
2592  if test ${ac_cv_path_install+y}; then
2593    INSTALL=$ac_cv_path_install
2594  else
2595    # As a last resort, use the slow shell script.  Don't cache a
2596    # value for INSTALL within a source directory, because that will
2597    # break other packages using the cache if that directory is
2598    # removed, or if the value is a relative name.
2599    INSTALL=$ac_install_sh
2600  fi
2601fi
2602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2603printf "%s\n" "$INSTALL" >&6; }
2604
2605# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2606# It thinks the first close brace ends the variable substitution.
2607test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2608
2609test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2610
2611test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2612
2613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2614printf %s "checking whether sleep supports fractional seconds... " >&6; }
2615if test ${am_cv_sleep_fractional_seconds+y}
2616then :
2617  printf %s "(cached) " >&6
2618else case e in #(
2619  e) if sleep 0.001 2>/dev/null
2620then :
2621  am_cv_sleep_fractional_seconds=yes
2622else case e in #(
2623  e) am_cv_sleep_fractional_seconds=no ;;
2624esac
2625fi
2626 ;;
2627esac
2628fi
2629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2630printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2631
2632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2633printf %s "checking filesystem timestamp resolution... " >&6; }
2634if test ${am_cv_filesystem_timestamp_resolution+y}
2635then :
2636  printf %s "(cached) " >&6
2637else case e in #(
2638  e) # Default to the worst case.
2639am_cv_filesystem_timestamp_resolution=2
2640
2641# Only try to go finer than 1 sec if sleep can do it.
2642# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2643# - 1 sec is not much of a win compared to 2 sec, and
2644# - it takes 2 seconds to perform the test whether 1 sec works.
2645#
2646# Instead, just use the default 2s on platforms that have 1s resolution,
2647# accept the extra 1s delay when using $sleep in the Automake tests, in
2648# exchange for not incurring the 2s delay for running the test for all
2649# packages.
2650#
2651am_try_resolutions=
2652if test "$am_cv_sleep_fractional_seconds" = yes; then
2653  # Even a millisecond often causes a bunch of false positives,
2654  # so just try a hundredth of a second. The time saved between .001 and
2655  # .01 is not terribly consequential.
2656  am_try_resolutions="0.01 0.1 $am_try_resolutions"
2657fi
2658
2659# In order to catch current-generation FAT out, we must *modify* files
2660# that already exist; the *creation* timestamp is finer.  Use names
2661# that make ls -t sort them differently when they have equal
2662# timestamps than when they have distinct timestamps, keeping
2663# in mind that ls -t prints the *newest* file first.
2664rm -f conftest.ts?
2665: > conftest.ts1
2666: > conftest.ts2
2667: > conftest.ts3
2668
2669# Make sure ls -t actually works.  Do 'set' in a subshell so we don't
2670# clobber the current shell's arguments. (Outer-level square brackets
2671# are removed by m4; they're present so that m4 does not expand
2672# <dollar><star>; be careful, easy to get confused.)
2673if (
2674     set X `ls -t conftest.ts[12]` &&
2675     {
2676       test "$*" != "X conftest.ts1 conftest.ts2" ||
2677       test "$*" != "X conftest.ts2 conftest.ts1";
2678     }
2679); then :; else
2680  # If neither matched, then we have a broken ls.  This can happen
2681  # if, for instance, CONFIG_SHELL is bash and it inherits a
2682  # broken ls alias from the environment.  This has actually
2683  # happened.  Such a system could not be considered "sane".
2684  printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2685  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2686printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2687as_fn_error $? "ls -t produces unexpected output.
2688Make sure there is not a broken ls alias in your environment.
2689See 'config.log' for more details" "$LINENO" 5; }
2690fi
2691
2692for am_try_res in $am_try_resolutions; do
2693  # Any one fine-grained sleep might happen to cross the boundary
2694  # between two values of a coarser actual resolution, but if we do
2695  # two fine-grained sleeps in a row, at least one of them will fall
2696  # entirely within a coarse interval.
2697  echo alpha > conftest.ts1
2698  sleep $am_try_res
2699  echo beta > conftest.ts2
2700  sleep $am_try_res
2701  echo gamma > conftest.ts3
2702
2703  # We assume that 'ls -t' will make use of high-resolution
2704  # timestamps if the operating system supports them at all.
2705  if (set X `ls -t conftest.ts?` &&
2706      test "$2" = conftest.ts3 &&
2707      test "$3" = conftest.ts2 &&
2708      test "$4" = conftest.ts1); then
2709    #
2710    # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2711    # because we don't need to test make.
2712    make_ok=true
2713    if test $am_try_res != 1; then
2714      # But if we've succeeded so far with a subsecond resolution, we
2715      # have one more thing to check: make. It can happen that
2716      # everything else supports the subsecond mtimes, but make doesn't;
2717      # notably on macOS, which ships make 3.81 from 2006 (the last one
2718      # released under GPLv2). https://bugs.gnu.org/68808
2719      #
2720      # We test $MAKE if it is defined in the environment, else "make".
2721      # It might get overridden later, but our hope is that in practice
2722      # it does not matter: it is the system "make" which is (by far)
2723      # the most likely to be broken, whereas if the user overrides it,
2724      # probably they did so with a better, or at least not worse, make.
2725      # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2726      #
2727      # Create a Makefile (real tab character here):
2728      rm -f conftest.mk
2729      echo 'conftest.ts1: conftest.ts2' >conftest.mk
2730      echo '	touch conftest.ts2' >>conftest.mk
2731      #
2732      # Now, running
2733      #   touch conftest.ts1; touch conftest.ts2; make
2734      # should touch ts1 because ts2 is newer. This could happen by luck,
2735      # but most often, it will fail if make's support is insufficient. So
2736      # test for several consecutive successes.
2737      #
2738      # (We reuse conftest.ts[12] because we still want to modify existing
2739      # files, not create new ones, per above.)
2740      n=0
2741      make=${MAKE-make}
2742      until test $n -eq 3; do
2743        echo one > conftest.ts1
2744        sleep $am_try_res
2745        echo two > conftest.ts2 # ts2 should now be newer than ts1
2746        if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2747          make_ok=false
2748          break # out of $n loop
2749        fi
2750        n=`expr $n + 1`
2751      done
2752    fi
2753    #
2754    if $make_ok; then
2755      # Everything we know to check worked out, so call this resolution good.
2756      am_cv_filesystem_timestamp_resolution=$am_try_res
2757      break # out of $am_try_res loop
2758    fi
2759    # Otherwise, we'll go on to check the next resolution.
2760  fi
2761done
2762rm -f conftest.ts?
2763# (end _am_filesystem_timestamp_resolution)
2764 ;;
2765esac
2766fi
2767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2768printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2769
2770# This check should not be cached, as it may vary across builds of
2771# different projects.
2772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2773printf %s "checking whether build environment is sane... " >&6; }
2774# Reject unsafe characters in $srcdir or the absolute working directory
2775# name.  Accept space and tab only in the latter.
2776am_lf='
2777'
2778case `pwd` in
2779  *[\\\"\#\$\&\'\`$am_lf]*)
2780    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2781esac
2782case $srcdir in
2783  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2784    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2785esac
2786
2787# Do 'set' in a subshell so we don't clobber the current shell's
2788# arguments.  Must try -L first in case configure is actually a
2789# symlink; some systems play weird games with the mod time of symlinks
2790# (eg FreeBSD returns the mod time of the symlink's containing
2791# directory).
2792am_build_env_is_sane=no
2793am_has_slept=no
2794rm -f conftest.file
2795for am_try in 1 2; do
2796  echo "timestamp, slept: $am_has_slept" > conftest.file
2797  if (
2798    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2799    if test "$*" = "X"; then
2800      # -L didn't work.
2801      set X `ls -t "$srcdir/configure" conftest.file`
2802    fi
2803    test "$2" = conftest.file
2804  ); then
2805    am_build_env_is_sane=yes
2806    break
2807  fi
2808  # Just in case.
2809  sleep "$am_cv_filesystem_timestamp_resolution"
2810  am_has_slept=yes
2811done
2812
2813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2814printf "%s\n" "$am_build_env_is_sane" >&6; }
2815if test "$am_build_env_is_sane" = no; then
2816  as_fn_error $? "newly created file is older than distributed files!
2817Check your system clock" "$LINENO" 5
2818fi
2819
2820# If we didn't sleep, we still need to ensure time stamps of config.status and
2821# generated files are strictly newer.
2822am_sleep_pid=
2823if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2824then :
2825
2826else case e in #(
2827  e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2828  am_sleep_pid=$!
2829 ;;
2830esac
2831fi
2832
2833rm -f conftest.file
2834
2835test "$program_prefix" != NONE &&
2836  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2837# Use a double $ so make ignores it.
2838test "$program_suffix" != NONE &&
2839  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2840# Double any \ or $.
2841# By default was 's,x,x', remove it if useless.
2842ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2843program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2844
2845
2846# Expand $ac_aux_dir to an absolute path.
2847am_aux_dir=`cd "$ac_aux_dir" && pwd`
2848
2849
2850  if test x"${MISSING+set}" != xset; then
2851  MISSING="\${SHELL} '$am_aux_dir/missing'"
2852fi
2853# Use eval to expand $SHELL
2854if eval "$MISSING --is-lightweight"; then
2855  am_missing_run="$MISSING "
2856else
2857  am_missing_run=
2858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2859printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2860fi
2861
2862if test x"${install_sh+set}" != xset; then
2863  case $am_aux_dir in
2864  *\ * | *\	*)
2865    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2866  *)
2867    install_sh="\${SHELL} $am_aux_dir/install-sh"
2868  esac
2869fi
2870
2871# Installed binaries are usually stripped using 'strip' when the user
2872# run "make install-strip".  However 'strip' might not be the right
2873# tool to use in cross-compilation environments, therefore Automake
2874# will honor the 'STRIP' environment variable to overrule this program.
2875if test "$cross_compiling" != no; then
2876  if test -n "$ac_tool_prefix"; then
2877  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2878set dummy ${ac_tool_prefix}strip; ac_word=$2
2879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880printf %s "checking for $ac_word... " >&6; }
2881if test ${ac_cv_prog_STRIP+y}
2882then :
2883  printf %s "(cached) " >&6
2884else case e in #(
2885  e) if test -n "$STRIP"; then
2886  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2887else
2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891  IFS=$as_save_IFS
2892  case $as_dir in #(((
2893    '') as_dir=./ ;;
2894    */) ;;
2895    *) as_dir=$as_dir/ ;;
2896  esac
2897    for ac_exec_ext in '' $ac_executable_extensions; do
2898  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2899    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2900    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2901    break 2
2902  fi
2903done
2904  done
2905IFS=$as_save_IFS
2906
2907fi ;;
2908esac
2909fi
2910STRIP=$ac_cv_prog_STRIP
2911if test -n "$STRIP"; then
2912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2913printf "%s\n" "$STRIP" >&6; }
2914else
2915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916printf "%s\n" "no" >&6; }
2917fi
2918
2919
2920fi
2921if test -z "$ac_cv_prog_STRIP"; then
2922  ac_ct_STRIP=$STRIP
2923  # Extract the first word of "strip", so it can be a program name with args.
2924set dummy strip; ac_word=$2
2925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926printf %s "checking for $ac_word... " >&6; }
2927if test ${ac_cv_prog_ac_ct_STRIP+y}
2928then :
2929  printf %s "(cached) " >&6
2930else case e in #(
2931  e) if test -n "$ac_ct_STRIP"; then
2932  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2933else
2934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935for as_dir in $PATH
2936do
2937  IFS=$as_save_IFS
2938  case $as_dir in #(((
2939    '') as_dir=./ ;;
2940    */) ;;
2941    *) as_dir=$as_dir/ ;;
2942  esac
2943    for ac_exec_ext in '' $ac_executable_extensions; do
2944  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2945    ac_cv_prog_ac_ct_STRIP="strip"
2946    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2947    break 2
2948  fi
2949done
2950  done
2951IFS=$as_save_IFS
2952
2953fi ;;
2954esac
2955fi
2956ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2957if test -n "$ac_ct_STRIP"; then
2958  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2959printf "%s\n" "$ac_ct_STRIP" >&6; }
2960else
2961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962printf "%s\n" "no" >&6; }
2963fi
2964
2965  if test "x$ac_ct_STRIP" = x; then
2966    STRIP=":"
2967  else
2968    case $cross_compiling:$ac_tool_warned in
2969yes:)
2970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2971printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2972ac_tool_warned=yes ;;
2973esac
2974    STRIP=$ac_ct_STRIP
2975  fi
2976else
2977  STRIP="$ac_cv_prog_STRIP"
2978fi
2979
2980fi
2981INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2982
2983
2984  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2985printf %s "checking for a race-free mkdir -p... " >&6; }
2986if test -z "$MKDIR_P"; then
2987  if test ${ac_cv_path_mkdir+y}
2988then :
2989  printf %s "(cached) " >&6
2990else case e in #(
2991  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2993do
2994  IFS=$as_save_IFS
2995  case $as_dir in #(((
2996    '') as_dir=./ ;;
2997    */) ;;
2998    *) as_dir=$as_dir/ ;;
2999  esac
3000    for ac_prog in mkdir gmkdir; do
3001	 for ac_exec_ext in '' $ac_executable_extensions; do
3002	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3003	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3004	     'mkdir ('*'coreutils) '* | \
3005	     *'BusyBox '* | \
3006	     'mkdir (fileutils) '4.1*)
3007	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3008	       break 3;;
3009	   esac
3010	 done
3011       done
3012  done
3013IFS=$as_save_IFS
3014 ;;
3015esac
3016fi
3017
3018  test -d ./--version && rmdir ./--version
3019  if test ${ac_cv_path_mkdir+y}; then
3020    MKDIR_P="$ac_cv_path_mkdir -p"
3021  else
3022    # As a last resort, use plain mkdir -p,
3023    # in the hope it doesn't have the bugs of ancient mkdir.
3024    MKDIR_P='mkdir -p'
3025  fi
3026fi
3027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3028printf "%s\n" "$MKDIR_P" >&6; }
3029
3030for ac_prog in gawk mawk nawk awk
3031do
3032  # Extract the first word of "$ac_prog", so it can be a program name with args.
3033set dummy $ac_prog; ac_word=$2
3034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035printf %s "checking for $ac_word... " >&6; }
3036if test ${ac_cv_prog_AWK+y}
3037then :
3038  printf %s "(cached) " >&6
3039else case e in #(
3040  e) if test -n "$AWK"; then
3041  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3042else
3043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044for as_dir in $PATH
3045do
3046  IFS=$as_save_IFS
3047  case $as_dir in #(((
3048    '') as_dir=./ ;;
3049    */) ;;
3050    *) as_dir=$as_dir/ ;;
3051  esac
3052    for ac_exec_ext in '' $ac_executable_extensions; do
3053  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3054    ac_cv_prog_AWK="$ac_prog"
3055    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3056    break 2
3057  fi
3058done
3059  done
3060IFS=$as_save_IFS
3061
3062fi ;;
3063esac
3064fi
3065AWK=$ac_cv_prog_AWK
3066if test -n "$AWK"; then
3067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3068printf "%s\n" "$AWK" >&6; }
3069else
3070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071printf "%s\n" "no" >&6; }
3072fi
3073
3074
3075  test -n "$AWK" && break
3076done
3077
3078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3079printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3080set x ${MAKE-make}
3081ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3082if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3083then :
3084  printf %s "(cached) " >&6
3085else case e in #(
3086  e) cat >conftest.make <<\_ACEOF
3087SHELL = /bin/sh
3088all:
3089	@echo '@@@%%%=$(MAKE)=@@@%%%'
3090_ACEOF
3091# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3092case `${MAKE-make} -f conftest.make 2>/dev/null` in
3093  *@@@%%%=?*=@@@%%%*)
3094    eval ac_cv_prog_make_${ac_make}_set=yes;;
3095  *)
3096    eval ac_cv_prog_make_${ac_make}_set=no;;
3097esac
3098rm -f conftest.make ;;
3099esac
3100fi
3101if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3103printf "%s\n" "yes" >&6; }
3104  SET_MAKE=
3105else
3106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107printf "%s\n" "no" >&6; }
3108  SET_MAKE="MAKE=${MAKE-make}"
3109fi
3110
3111rm -rf .tst 2>/dev/null
3112mkdir .tst 2>/dev/null
3113if test -d .tst; then
3114  am__leading_dot=.
3115else
3116  am__leading_dot=_
3117fi
3118rmdir .tst 2>/dev/null
3119
3120AM_DEFAULT_VERBOSITY=1
3121# Check whether --enable-silent-rules was given.
3122if test ${enable_silent_rules+y}
3123then :
3124  enableval=$enable_silent_rules;
3125fi
3126
3127am_make=${MAKE-make}
3128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3129printf %s "checking whether $am_make supports nested variables... " >&6; }
3130if test ${am_cv_make_support_nested_variables+y}
3131then :
3132  printf %s "(cached) " >&6
3133else case e in #(
3134  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3135BAR0=false
3136BAR1=true
3137V=1
3138am__doit:
3139	@$(TRUE)
3140.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3141  am_cv_make_support_nested_variables=yes
3142else
3143  am_cv_make_support_nested_variables=no
3144fi ;;
3145esac
3146fi
3147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3148printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3149AM_BACKSLASH='\'
3150
3151am__rm_f_notfound=
3152if (rm -f && rm -fr && rm -rf) 2>/dev/null
3153then :
3154
3155else case e in #(
3156  e) am__rm_f_notfound='""' ;;
3157esac
3158fi
3159
3160
3161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3162printf %s "checking xargs -n works... " >&6; }
3163if test ${am_cv_xargs_n_works+y}
3164then :
3165  printf %s "(cached) " >&6
3166else case e in #(
3167  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
31683"
3169then :
3170  am_cv_xargs_n_works=yes
3171else case e in #(
3172  e) am_cv_xargs_n_works=no ;;
3173esac
3174fi ;;
3175esac
3176fi
3177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3178printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3179if test "$am_cv_xargs_n_works" = yes
3180then :
3181  am__xargs_n='xargs -n'
3182else case e in #(
3183  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3184 ;;
3185esac
3186fi
3187
3188if test "`cd $srcdir && pwd`" != "`pwd`"; then
3189  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3190  # is not polluted with repeated "-I."
3191  am__isrc=' -I$(srcdir)'
3192  # test to see if srcdir already configured
3193  if test -f $srcdir/config.status; then
3194    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3195  fi
3196fi
3197
3198# test whether we have cygpath
3199if test -z "$CYGPATH_W"; then
3200  if (cygpath --version) >/dev/null 2>/dev/null; then
3201    CYGPATH_W='cygpath -w'
3202  else
3203    CYGPATH_W=echo
3204  fi
3205fi
3206
3207
3208# Define the identity of the package.
3209 PACKAGE='transset'
3210 VERSION='1.0.4'
3211
3212
3213printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3214
3215
3216printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3217
3218# Some tools Automake needs.
3219
3220ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3221
3222
3223AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3224
3225
3226AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3227
3228
3229AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3230
3231
3232MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3233
3234# For better backward compatibility.  To be removed once Automake 1.9.x
3235# dies out for good.  For more background, see:
3236# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3237# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3238mkdir_p='$(MKDIR_P)'
3239
3240# We need awk for the "check" target (and possibly the TAP driver).  The
3241# system "awk" is bad on some platforms.
3242# Always define AMTAR for backward compatibility.  Yes, it's still used
3243# in the wild :-(  We should find a proper way to deprecate it ...
3244AMTAR='$${TAR-tar}'
3245
3246
3247# We'll loop over all known methods to create a tar archive until one works.
3248_am_tools='gnutar  pax cpio none'
3249
3250am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3251
3252
3253
3254
3255
3256# Variables for tags utilities; see am/tags.am
3257if test -z "$CTAGS"; then
3258  CTAGS=ctags
3259fi
3260
3261if test -z "$ETAGS"; then
3262  ETAGS=etags
3263fi
3264
3265if test -z "$CSCOPE"; then
3266  CSCOPE=cscope
3267fi
3268
3269
3270
3271
3272
3273
3274
3275
3276# Require xorg-macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297DEPDIR="${am__leading_dot}deps"
3298
3299ac_config_commands="$ac_config_commands depfiles"
3300
3301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3302printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3303cat > confinc.mk << 'END'
3304am__doit:
3305	@echo this is the am__doit target >confinc.out
3306.PHONY: am__doit
3307END
3308am__include="#"
3309am__quote=
3310# BSD make does it like this.
3311echo '.include "confinc.mk" # ignored' > confmf.BSD
3312# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3313echo 'include confinc.mk # ignored' > confmf.GNU
3314_am_result=no
3315for s in GNU BSD; do
3316  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3317   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3318   ac_status=$?
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); }
3321  case $?:`cat confinc.out 2>/dev/null` in #(
3322  '0:this is the am__doit target') :
3323    case $s in #(
3324  BSD) :
3325    am__include='.include' am__quote='"' ;; #(
3326  *) :
3327    am__include='include' am__quote='' ;;
3328esac ;; #(
3329  *) :
3330     ;;
3331esac
3332  if test "$am__include" != "#"; then
3333    _am_result="yes ($s style)"
3334    break
3335  fi
3336done
3337rm -f confinc.* confmf.*
3338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3339printf "%s\n" "${_am_result}" >&6; }
3340
3341# Check whether --enable-dependency-tracking was given.
3342if test ${enable_dependency_tracking+y}
3343then :
3344  enableval=$enable_dependency_tracking;
3345fi
3346
3347if test "x$enable_dependency_tracking" != xno; then
3348  am_depcomp="$ac_aux_dir/depcomp"
3349  AMDEPBACKSLASH='\'
3350  am__nodep='_no'
3351fi
3352 if test "x$enable_dependency_tracking" != xno; then
3353  AMDEP_TRUE=
3354  AMDEP_FALSE='#'
3355else
3356  AMDEP_TRUE='#'
3357  AMDEP_FALSE=
3358fi
3359
3360
3361ac_ext=c
3362ac_cpp='$CPP $CPPFLAGS'
3363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366if test -n "$ac_tool_prefix"; then
3367  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3368set dummy ${ac_tool_prefix}gcc; ac_word=$2
3369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370printf %s "checking for $ac_word... " >&6; }
3371if test ${ac_cv_prog_CC+y}
3372then :
3373  printf %s "(cached) " >&6
3374else case e in #(
3375  e) if test -n "$CC"; then
3376  ac_cv_prog_CC="$CC" # Let the user override the test.
3377else
3378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379for as_dir in $PATH
3380do
3381  IFS=$as_save_IFS
3382  case $as_dir in #(((
3383    '') as_dir=./ ;;
3384    */) ;;
3385    *) as_dir=$as_dir/ ;;
3386  esac
3387    for ac_exec_ext in '' $ac_executable_extensions; do
3388  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3389    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3390    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3391    break 2
3392  fi
3393done
3394  done
3395IFS=$as_save_IFS
3396
3397fi ;;
3398esac
3399fi
3400CC=$ac_cv_prog_CC
3401if test -n "$CC"; then
3402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3403printf "%s\n" "$CC" >&6; }
3404else
3405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406printf "%s\n" "no" >&6; }
3407fi
3408
3409
3410fi
3411if test -z "$ac_cv_prog_CC"; then
3412  ac_ct_CC=$CC
3413  # Extract the first word of "gcc", so it can be a program name with args.
3414set dummy gcc; ac_word=$2
3415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416printf %s "checking for $ac_word... " >&6; }
3417if test ${ac_cv_prog_ac_ct_CC+y}
3418then :
3419  printf %s "(cached) " >&6
3420else case e in #(
3421  e) if test -n "$ac_ct_CC"; then
3422  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3423else
3424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425for as_dir in $PATH
3426do
3427  IFS=$as_save_IFS
3428  case $as_dir in #(((
3429    '') as_dir=./ ;;
3430    */) ;;
3431    *) as_dir=$as_dir/ ;;
3432  esac
3433    for ac_exec_ext in '' $ac_executable_extensions; do
3434  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3435    ac_cv_prog_ac_ct_CC="gcc"
3436    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3437    break 2
3438  fi
3439done
3440  done
3441IFS=$as_save_IFS
3442
3443fi ;;
3444esac
3445fi
3446ac_ct_CC=$ac_cv_prog_ac_ct_CC
3447if test -n "$ac_ct_CC"; then
3448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3449printf "%s\n" "$ac_ct_CC" >&6; }
3450else
3451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452printf "%s\n" "no" >&6; }
3453fi
3454
3455  if test "x$ac_ct_CC" = x; then
3456    CC=""
3457  else
3458    case $cross_compiling:$ac_tool_warned in
3459yes:)
3460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3461printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3462ac_tool_warned=yes ;;
3463esac
3464    CC=$ac_ct_CC
3465  fi
3466else
3467  CC="$ac_cv_prog_CC"
3468fi
3469
3470if test -z "$CC"; then
3471          if test -n "$ac_tool_prefix"; then
3472    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3473set dummy ${ac_tool_prefix}cc; ac_word=$2
3474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475printf %s "checking for $ac_word... " >&6; }
3476if test ${ac_cv_prog_CC+y}
3477then :
3478  printf %s "(cached) " >&6
3479else case e in #(
3480  e) if test -n "$CC"; then
3481  ac_cv_prog_CC="$CC" # Let the user override the test.
3482else
3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486  IFS=$as_save_IFS
3487  case $as_dir in #(((
3488    '') as_dir=./ ;;
3489    */) ;;
3490    *) as_dir=$as_dir/ ;;
3491  esac
3492    for ac_exec_ext in '' $ac_executable_extensions; do
3493  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3494    ac_cv_prog_CC="${ac_tool_prefix}cc"
3495    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3496    break 2
3497  fi
3498done
3499  done
3500IFS=$as_save_IFS
3501
3502fi ;;
3503esac
3504fi
3505CC=$ac_cv_prog_CC
3506if test -n "$CC"; then
3507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508printf "%s\n" "$CC" >&6; }
3509else
3510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511printf "%s\n" "no" >&6; }
3512fi
3513
3514
3515  fi
3516fi
3517if test -z "$CC"; then
3518  # Extract the first word of "cc", so it can be a program name with args.
3519set dummy cc; ac_word=$2
3520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521printf %s "checking for $ac_word... " >&6; }
3522if test ${ac_cv_prog_CC+y}
3523then :
3524  printf %s "(cached) " >&6
3525else case e in #(
3526  e) if test -n "$CC"; then
3527  ac_cv_prog_CC="$CC" # Let the user override the test.
3528else
3529  ac_prog_rejected=no
3530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531for as_dir in $PATH
3532do
3533  IFS=$as_save_IFS
3534  case $as_dir in #(((
3535    '') as_dir=./ ;;
3536    */) ;;
3537    *) as_dir=$as_dir/ ;;
3538  esac
3539    for ac_exec_ext in '' $ac_executable_extensions; do
3540  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3541    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3542       ac_prog_rejected=yes
3543       continue
3544     fi
3545    ac_cv_prog_CC="cc"
3546    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3547    break 2
3548  fi
3549done
3550  done
3551IFS=$as_save_IFS
3552
3553if test $ac_prog_rejected = yes; then
3554  # We found a bogon in the path, so make sure we never use it.
3555  set dummy $ac_cv_prog_CC
3556  shift
3557  if test $# != 0; then
3558    # We chose a different compiler from the bogus one.
3559    # However, it has the same basename, so the bogon will be chosen
3560    # first if we set CC to just the basename; use the full file name.
3561    shift
3562    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3563  fi
3564fi
3565fi ;;
3566esac
3567fi
3568CC=$ac_cv_prog_CC
3569if test -n "$CC"; then
3570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3571printf "%s\n" "$CC" >&6; }
3572else
3573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574printf "%s\n" "no" >&6; }
3575fi
3576
3577
3578fi
3579if test -z "$CC"; then
3580  if test -n "$ac_tool_prefix"; then
3581  for ac_prog in cl.exe
3582  do
3583    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3584set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586printf %s "checking for $ac_word... " >&6; }
3587if test ${ac_cv_prog_CC+y}
3588then :
3589  printf %s "(cached) " >&6
3590else case e in #(
3591  e) if test -n "$CC"; then
3592  ac_cv_prog_CC="$CC" # Let the user override the test.
3593else
3594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595for as_dir in $PATH
3596do
3597  IFS=$as_save_IFS
3598  case $as_dir in #(((
3599    '') as_dir=./ ;;
3600    */) ;;
3601    *) as_dir=$as_dir/ ;;
3602  esac
3603    for ac_exec_ext in '' $ac_executable_extensions; do
3604  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3605    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3606    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3607    break 2
3608  fi
3609done
3610  done
3611IFS=$as_save_IFS
3612
3613fi ;;
3614esac
3615fi
3616CC=$ac_cv_prog_CC
3617if test -n "$CC"; then
3618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3619printf "%s\n" "$CC" >&6; }
3620else
3621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622printf "%s\n" "no" >&6; }
3623fi
3624
3625
3626    test -n "$CC" && break
3627  done
3628fi
3629if test -z "$CC"; then
3630  ac_ct_CC=$CC
3631  for ac_prog in cl.exe
3632do
3633  # Extract the first word of "$ac_prog", so it can be a program name with args.
3634set dummy $ac_prog; ac_word=$2
3635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636printf %s "checking for $ac_word... " >&6; }
3637if test ${ac_cv_prog_ac_ct_CC+y}
3638then :
3639  printf %s "(cached) " >&6
3640else case e in #(
3641  e) if test -n "$ac_ct_CC"; then
3642  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3643else
3644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645for as_dir in $PATH
3646do
3647  IFS=$as_save_IFS
3648  case $as_dir in #(((
3649    '') as_dir=./ ;;
3650    */) ;;
3651    *) as_dir=$as_dir/ ;;
3652  esac
3653    for ac_exec_ext in '' $ac_executable_extensions; do
3654  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3655    ac_cv_prog_ac_ct_CC="$ac_prog"
3656    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3657    break 2
3658  fi
3659done
3660  done
3661IFS=$as_save_IFS
3662
3663fi ;;
3664esac
3665fi
3666ac_ct_CC=$ac_cv_prog_ac_ct_CC
3667if test -n "$ac_ct_CC"; then
3668  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3669printf "%s\n" "$ac_ct_CC" >&6; }
3670else
3671  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672printf "%s\n" "no" >&6; }
3673fi
3674
3675
3676  test -n "$ac_ct_CC" && break
3677done
3678
3679  if test "x$ac_ct_CC" = x; then
3680    CC=""
3681  else
3682    case $cross_compiling:$ac_tool_warned in
3683yes:)
3684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3685printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3686ac_tool_warned=yes ;;
3687esac
3688    CC=$ac_ct_CC
3689  fi
3690fi
3691
3692fi
3693if test -z "$CC"; then
3694  if test -n "$ac_tool_prefix"; then
3695  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3696set dummy ${ac_tool_prefix}clang; ac_word=$2
3697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698printf %s "checking for $ac_word... " >&6; }
3699if test ${ac_cv_prog_CC+y}
3700then :
3701  printf %s "(cached) " >&6
3702else case e in #(
3703  e) if test -n "$CC"; then
3704  ac_cv_prog_CC="$CC" # Let the user override the test.
3705else
3706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707for as_dir in $PATH
3708do
3709  IFS=$as_save_IFS
3710  case $as_dir in #(((
3711    '') as_dir=./ ;;
3712    */) ;;
3713    *) as_dir=$as_dir/ ;;
3714  esac
3715    for ac_exec_ext in '' $ac_executable_extensions; do
3716  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3717    ac_cv_prog_CC="${ac_tool_prefix}clang"
3718    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3719    break 2
3720  fi
3721done
3722  done
3723IFS=$as_save_IFS
3724
3725fi ;;
3726esac
3727fi
3728CC=$ac_cv_prog_CC
3729if test -n "$CC"; then
3730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731printf "%s\n" "$CC" >&6; }
3732else
3733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734printf "%s\n" "no" >&6; }
3735fi
3736
3737
3738fi
3739if test -z "$ac_cv_prog_CC"; then
3740  ac_ct_CC=$CC
3741  # Extract the first word of "clang", so it can be a program name with args.
3742set dummy clang; ac_word=$2
3743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744printf %s "checking for $ac_word... " >&6; }
3745if test ${ac_cv_prog_ac_ct_CC+y}
3746then :
3747  printf %s "(cached) " >&6
3748else case e in #(
3749  e) if test -n "$ac_ct_CC"; then
3750  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3751else
3752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753for as_dir in $PATH
3754do
3755  IFS=$as_save_IFS
3756  case $as_dir in #(((
3757    '') as_dir=./ ;;
3758    */) ;;
3759    *) as_dir=$as_dir/ ;;
3760  esac
3761    for ac_exec_ext in '' $ac_executable_extensions; do
3762  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3763    ac_cv_prog_ac_ct_CC="clang"
3764    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3765    break 2
3766  fi
3767done
3768  done
3769IFS=$as_save_IFS
3770
3771fi ;;
3772esac
3773fi
3774ac_ct_CC=$ac_cv_prog_ac_ct_CC
3775if test -n "$ac_ct_CC"; then
3776  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3777printf "%s\n" "$ac_ct_CC" >&6; }
3778else
3779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780printf "%s\n" "no" >&6; }
3781fi
3782
3783  if test "x$ac_ct_CC" = x; then
3784    CC=""
3785  else
3786    case $cross_compiling:$ac_tool_warned in
3787yes:)
3788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3789printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3790ac_tool_warned=yes ;;
3791esac
3792    CC=$ac_ct_CC
3793  fi
3794else
3795  CC="$ac_cv_prog_CC"
3796fi
3797
3798fi
3799
3800
3801test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3802printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3803as_fn_error $? "no acceptable C compiler found in \$PATH
3804See 'config.log' for more details" "$LINENO" 5; }
3805
3806# Provide some information about the compiler.
3807printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3808set X $ac_compile
3809ac_compiler=$2
3810for ac_option in --version -v -V -qversion -version; do
3811  { { ac_try="$ac_compiler $ac_option >&5"
3812case "(($ac_try" in
3813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814  *) ac_try_echo=$ac_try;;
3815esac
3816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817printf "%s\n" "$ac_try_echo"; } >&5
3818  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3819  ac_status=$?
3820  if test -s conftest.err; then
3821    sed '10a\
3822... rest of stderr output deleted ...
3823         10q' conftest.err >conftest.er1
3824    cat conftest.er1 >&5
3825  fi
3826  rm -f conftest.er1 conftest.err
3827  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828  test $ac_status = 0; }
3829done
3830
3831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832/* end confdefs.h.  */
3833
3834int
3835main (void)
3836{
3837
3838  ;
3839  return 0;
3840}
3841_ACEOF
3842ac_clean_files_save=$ac_clean_files
3843ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3844# Try to create an executable without -o first, disregard a.out.
3845# It will help us diagnose broken compilers, and finding out an intuition
3846# of exeext.
3847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3848printf %s "checking whether the C compiler works... " >&6; }
3849ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3850
3851# The possible output files:
3852ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3853
3854ac_rmfiles=
3855for ac_file in $ac_files
3856do
3857  case $ac_file in
3858    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3859    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3860  esac
3861done
3862rm -f $ac_rmfiles
3863
3864if { { ac_try="$ac_link_default"
3865case "(($ac_try" in
3866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867  *) ac_try_echo=$ac_try;;
3868esac
3869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870printf "%s\n" "$ac_try_echo"; } >&5
3871  (eval "$ac_link_default") 2>&5
3872  ac_status=$?
3873  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874  test $ac_status = 0; }
3875then :
3876  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3877# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3878# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3879# so that the user can short-circuit this test for compilers unknown to
3880# Autoconf.
3881for ac_file in $ac_files ''
3882do
3883  test -f "$ac_file" || continue
3884  case $ac_file in
3885    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3886	;;
3887    [ab].out )
3888	# We found the default executable, but exeext='' is most
3889	# certainly right.
3890	break;;
3891    *.* )
3892	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3893	then :; else
3894	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3895	fi
3896	# We set ac_cv_exeext here because the later test for it is not
3897	# safe: cross compilers may not add the suffix if given an '-o'
3898	# argument, so we may need to know it at that point already.
3899	# Even if this section looks crufty: it has the advantage of
3900	# actually working.
3901	break;;
3902    * )
3903	break;;
3904  esac
3905done
3906test "$ac_cv_exeext" = no && ac_cv_exeext=
3907
3908else case e in #(
3909  e) ac_file='' ;;
3910esac
3911fi
3912if test -z "$ac_file"
3913then :
3914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915printf "%s\n" "no" >&6; }
3916printf "%s\n" "$as_me: failed program was:" >&5
3917sed 's/^/| /' conftest.$ac_ext >&5
3918
3919{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3920printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3921as_fn_error 77 "C compiler cannot create executables
3922See 'config.log' for more details" "$LINENO" 5; }
3923else case e in #(
3924  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3925printf "%s\n" "yes" >&6; } ;;
3926esac
3927fi
3928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3929printf %s "checking for C compiler default output file name... " >&6; }
3930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3931printf "%s\n" "$ac_file" >&6; }
3932ac_exeext=$ac_cv_exeext
3933
3934rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3935ac_clean_files=$ac_clean_files_save
3936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3937printf %s "checking for suffix of executables... " >&6; }
3938if { { ac_try="$ac_link"
3939case "(($ac_try" in
3940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941  *) ac_try_echo=$ac_try;;
3942esac
3943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944printf "%s\n" "$ac_try_echo"; } >&5
3945  (eval "$ac_link") 2>&5
3946  ac_status=$?
3947  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948  test $ac_status = 0; }
3949then :
3950  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3951# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3952# work properly (i.e., refer to 'conftest.exe'), while it won't with
3953# 'rm'.
3954for ac_file in conftest.exe conftest conftest.*; do
3955  test -f "$ac_file" || continue
3956  case $ac_file in
3957    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3958    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3959	  break;;
3960    * ) break;;
3961  esac
3962done
3963else case e in #(
3964  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3965printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3966as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3967See 'config.log' for more details" "$LINENO" 5; } ;;
3968esac
3969fi
3970rm -f conftest conftest$ac_cv_exeext
3971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3972printf "%s\n" "$ac_cv_exeext" >&6; }
3973
3974rm -f conftest.$ac_ext
3975EXEEXT=$ac_cv_exeext
3976ac_exeext=$EXEEXT
3977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978/* end confdefs.h.  */
3979#include <stdio.h>
3980int
3981main (void)
3982{
3983FILE *f = fopen ("conftest.out", "w");
3984 if (!f)
3985  return 1;
3986 return ferror (f) || fclose (f) != 0;
3987
3988  ;
3989  return 0;
3990}
3991_ACEOF
3992ac_clean_files="$ac_clean_files conftest.out"
3993# Check that the compiler produces executables we can run.  If not, either
3994# the compiler is broken, or we cross compile.
3995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3996printf %s "checking whether we are cross compiling... " >&6; }
3997if test "$cross_compiling" != yes; then
3998  { { ac_try="$ac_link"
3999case "(($ac_try" in
4000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001  *) ac_try_echo=$ac_try;;
4002esac
4003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4004printf "%s\n" "$ac_try_echo"; } >&5
4005  (eval "$ac_link") 2>&5
4006  ac_status=$?
4007  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4008  test $ac_status = 0; }
4009  if { ac_try='./conftest$ac_cv_exeext'
4010  { { case "(($ac_try" in
4011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012  *) ac_try_echo=$ac_try;;
4013esac
4014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015printf "%s\n" "$ac_try_echo"; } >&5
4016  (eval "$ac_try") 2>&5
4017  ac_status=$?
4018  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019  test $ac_status = 0; }; }; then
4020    cross_compiling=no
4021  else
4022    if test "$cross_compiling" = maybe; then
4023	cross_compiling=yes
4024    else
4025	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4026printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4027as_fn_error 77 "cannot run C compiled programs.
4028If you meant to cross compile, use '--host'.
4029See 'config.log' for more details" "$LINENO" 5; }
4030    fi
4031  fi
4032fi
4033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4034printf "%s\n" "$cross_compiling" >&6; }
4035
4036rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4037  conftest.o conftest.obj conftest.out
4038ac_clean_files=$ac_clean_files_save
4039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4040printf %s "checking for suffix of object files... " >&6; }
4041if test ${ac_cv_objext+y}
4042then :
4043  printf %s "(cached) " >&6
4044else case e in #(
4045  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046/* end confdefs.h.  */
4047
4048int
4049main (void)
4050{
4051
4052  ;
4053  return 0;
4054}
4055_ACEOF
4056rm -f conftest.o conftest.obj
4057if { { ac_try="$ac_compile"
4058case "(($ac_try" in
4059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060  *) ac_try_echo=$ac_try;;
4061esac
4062eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4063printf "%s\n" "$ac_try_echo"; } >&5
4064  (eval "$ac_compile") 2>&5
4065  ac_status=$?
4066  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4067  test $ac_status = 0; }
4068then :
4069  for ac_file in conftest.o conftest.obj conftest.*; do
4070  test -f "$ac_file" || continue;
4071  case $ac_file in
4072    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4073    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4074       break;;
4075  esac
4076done
4077else case e in #(
4078  e) printf "%s\n" "$as_me: failed program was:" >&5
4079sed 's/^/| /' conftest.$ac_ext >&5
4080
4081{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4082printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4083as_fn_error $? "cannot compute suffix of object files: cannot compile
4084See 'config.log' for more details" "$LINENO" 5; } ;;
4085esac
4086fi
4087rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4088esac
4089fi
4090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4091printf "%s\n" "$ac_cv_objext" >&6; }
4092OBJEXT=$ac_cv_objext
4093ac_objext=$OBJEXT
4094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4095printf %s "checking whether the compiler supports GNU C... " >&6; }
4096if test ${ac_cv_c_compiler_gnu+y}
4097then :
4098  printf %s "(cached) " >&6
4099else case e in #(
4100  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101/* end confdefs.h.  */
4102
4103int
4104main (void)
4105{
4106#ifndef __GNUC__
4107       choke me
4108#endif
4109
4110  ;
4111  return 0;
4112}
4113_ACEOF
4114if ac_fn_c_try_compile "$LINENO"
4115then :
4116  ac_compiler_gnu=yes
4117else case e in #(
4118  e) ac_compiler_gnu=no ;;
4119esac
4120fi
4121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4122ac_cv_c_compiler_gnu=$ac_compiler_gnu
4123 ;;
4124esac
4125fi
4126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4127printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4128ac_compiler_gnu=$ac_cv_c_compiler_gnu
4129
4130if test $ac_compiler_gnu = yes; then
4131  GCC=yes
4132else
4133  GCC=
4134fi
4135ac_test_CFLAGS=${CFLAGS+y}
4136ac_save_CFLAGS=$CFLAGS
4137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4138printf %s "checking whether $CC accepts -g... " >&6; }
4139if test ${ac_cv_prog_cc_g+y}
4140then :
4141  printf %s "(cached) " >&6
4142else case e in #(
4143  e) ac_save_c_werror_flag=$ac_c_werror_flag
4144   ac_c_werror_flag=yes
4145   ac_cv_prog_cc_g=no
4146   CFLAGS="-g"
4147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148/* end confdefs.h.  */
4149
4150int
4151main (void)
4152{
4153
4154  ;
4155  return 0;
4156}
4157_ACEOF
4158if ac_fn_c_try_compile "$LINENO"
4159then :
4160  ac_cv_prog_cc_g=yes
4161else case e in #(
4162  e) CFLAGS=""
4163      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164/* end confdefs.h.  */
4165
4166int
4167main (void)
4168{
4169
4170  ;
4171  return 0;
4172}
4173_ACEOF
4174if ac_fn_c_try_compile "$LINENO"
4175then :
4176
4177else case e in #(
4178  e) ac_c_werror_flag=$ac_save_c_werror_flag
4179	 CFLAGS="-g"
4180	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181/* end confdefs.h.  */
4182
4183int
4184main (void)
4185{
4186
4187  ;
4188  return 0;
4189}
4190_ACEOF
4191if ac_fn_c_try_compile "$LINENO"
4192then :
4193  ac_cv_prog_cc_g=yes
4194fi
4195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4196esac
4197fi
4198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4199esac
4200fi
4201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4202   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4203esac
4204fi
4205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4206printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4207if test $ac_test_CFLAGS; then
4208  CFLAGS=$ac_save_CFLAGS
4209elif test $ac_cv_prog_cc_g = yes; then
4210  if test "$GCC" = yes; then
4211    CFLAGS="-g -O2"
4212  else
4213    CFLAGS="-g"
4214  fi
4215else
4216  if test "$GCC" = yes; then
4217    CFLAGS="-O2"
4218  else
4219    CFLAGS=
4220  fi
4221fi
4222ac_prog_cc_stdc=no
4223if test x$ac_prog_cc_stdc = xno
4224then :
4225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4226printf %s "checking for $CC option to enable C11 features... " >&6; }
4227if test ${ac_cv_prog_cc_c11+y}
4228then :
4229  printf %s "(cached) " >&6
4230else case e in #(
4231  e) ac_cv_prog_cc_c11=no
4232ac_save_CC=$CC
4233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234/* end confdefs.h.  */
4235$ac_c_conftest_c11_program
4236_ACEOF
4237for ac_arg in '' -std=gnu11
4238do
4239  CC="$ac_save_CC $ac_arg"
4240  if ac_fn_c_try_compile "$LINENO"
4241then :
4242  ac_cv_prog_cc_c11=$ac_arg
4243fi
4244rm -f core conftest.err conftest.$ac_objext conftest.beam
4245  test "x$ac_cv_prog_cc_c11" != "xno" && break
4246done
4247rm -f conftest.$ac_ext
4248CC=$ac_save_CC ;;
4249esac
4250fi
4251
4252if test "x$ac_cv_prog_cc_c11" = xno
4253then :
4254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4255printf "%s\n" "unsupported" >&6; }
4256else case e in #(
4257  e) if test "x$ac_cv_prog_cc_c11" = x
4258then :
4259  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4260printf "%s\n" "none needed" >&6; }
4261else case e in #(
4262  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4263printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4264     CC="$CC $ac_cv_prog_cc_c11" ;;
4265esac
4266fi
4267  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4268  ac_prog_cc_stdc=c11 ;;
4269esac
4270fi
4271fi
4272if test x$ac_prog_cc_stdc = xno
4273then :
4274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4275printf %s "checking for $CC option to enable C99 features... " >&6; }
4276if test ${ac_cv_prog_cc_c99+y}
4277then :
4278  printf %s "(cached) " >&6
4279else case e in #(
4280  e) ac_cv_prog_cc_c99=no
4281ac_save_CC=$CC
4282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283/* end confdefs.h.  */
4284$ac_c_conftest_c99_program
4285_ACEOF
4286for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4287do
4288  CC="$ac_save_CC $ac_arg"
4289  if ac_fn_c_try_compile "$LINENO"
4290then :
4291  ac_cv_prog_cc_c99=$ac_arg
4292fi
4293rm -f core conftest.err conftest.$ac_objext conftest.beam
4294  test "x$ac_cv_prog_cc_c99" != "xno" && break
4295done
4296rm -f conftest.$ac_ext
4297CC=$ac_save_CC ;;
4298esac
4299fi
4300
4301if test "x$ac_cv_prog_cc_c99" = xno
4302then :
4303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4304printf "%s\n" "unsupported" >&6; }
4305else case e in #(
4306  e) if test "x$ac_cv_prog_cc_c99" = x
4307then :
4308  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4309printf "%s\n" "none needed" >&6; }
4310else case e in #(
4311  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4312printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4313     CC="$CC $ac_cv_prog_cc_c99" ;;
4314esac
4315fi
4316  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4317  ac_prog_cc_stdc=c99 ;;
4318esac
4319fi
4320fi
4321if test x$ac_prog_cc_stdc = xno
4322then :
4323  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4324printf %s "checking for $CC option to enable C89 features... " >&6; }
4325if test ${ac_cv_prog_cc_c89+y}
4326then :
4327  printf %s "(cached) " >&6
4328else case e in #(
4329  e) ac_cv_prog_cc_c89=no
4330ac_save_CC=$CC
4331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332/* end confdefs.h.  */
4333$ac_c_conftest_c89_program
4334_ACEOF
4335for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4336do
4337  CC="$ac_save_CC $ac_arg"
4338  if ac_fn_c_try_compile "$LINENO"
4339then :
4340  ac_cv_prog_cc_c89=$ac_arg
4341fi
4342rm -f core conftest.err conftest.$ac_objext conftest.beam
4343  test "x$ac_cv_prog_cc_c89" != "xno" && break
4344done
4345rm -f conftest.$ac_ext
4346CC=$ac_save_CC ;;
4347esac
4348fi
4349
4350if test "x$ac_cv_prog_cc_c89" = xno
4351then :
4352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4353printf "%s\n" "unsupported" >&6; }
4354else case e in #(
4355  e) if test "x$ac_cv_prog_cc_c89" = x
4356then :
4357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4358printf "%s\n" "none needed" >&6; }
4359else case e in #(
4360  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4361printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4362     CC="$CC $ac_cv_prog_cc_c89" ;;
4363esac
4364fi
4365  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4366  ac_prog_cc_stdc=c89 ;;
4367esac
4368fi
4369fi
4370
4371ac_ext=c
4372ac_cpp='$CPP $CPPFLAGS'
4373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375ac_compiler_gnu=$ac_cv_c_compiler_gnu
4376
4377
4378  ac_ext=c
4379ac_cpp='$CPP $CPPFLAGS'
4380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4384printf %s "checking whether $CC understands -c and -o together... " >&6; }
4385if test ${am_cv_prog_cc_c_o+y}
4386then :
4387  printf %s "(cached) " >&6
4388else case e in #(
4389  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390/* end confdefs.h.  */
4391
4392int
4393main (void)
4394{
4395
4396  ;
4397  return 0;
4398}
4399_ACEOF
4400  # Make sure it works both with $CC and with simple cc.
4401  # Following AC_PROG_CC_C_O, we do the test twice because some
4402  # compilers refuse to overwrite an existing .o file with -o,
4403  # though they will create one.
4404  am_cv_prog_cc_c_o=yes
4405  for am_i in 1 2; do
4406    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4407   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4408   ac_status=$?
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); } \
4411         && test -f conftest2.$ac_objext; then
4412      : OK
4413    else
4414      am_cv_prog_cc_c_o=no
4415      break
4416    fi
4417  done
4418  rm -f core conftest*
4419  unset am_i ;;
4420esac
4421fi
4422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4423printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4424if test "$am_cv_prog_cc_c_o" != yes; then
4425   # Losing compiler, so override with the script.
4426   # FIXME: It is wrong to rewrite CC.
4427   # But if we don't then we get into trouble of one sort or another.
4428   # A longer-term fix would be to have automake use am__CC in this case,
4429   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4430   CC="$am_aux_dir/compile $CC"
4431fi
4432ac_ext=c
4433ac_cpp='$CPP $CPPFLAGS'
4434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4436ac_compiler_gnu=$ac_cv_c_compiler_gnu
4437
4438
4439depcc="$CC"   am_compiler_list=
4440
4441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4442printf %s "checking dependency style of $depcc... " >&6; }
4443if test ${am_cv_CC_dependencies_compiler_type+y}
4444then :
4445  printf %s "(cached) " >&6
4446else case e in #(
4447  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4448  # We make a subdir and do the tests there.  Otherwise we can end up
4449  # making bogus files that we don't know about and never remove.  For
4450  # instance it was reported that on HP-UX the gcc test will end up
4451  # making a dummy file named 'D' -- because '-MD' means "put the output
4452  # in D".
4453  rm -rf conftest.dir
4454  mkdir conftest.dir
4455  # Copy depcomp to subdir because otherwise we won't find it if we're
4456  # using a relative directory.
4457  cp "$am_depcomp" conftest.dir
4458  cd conftest.dir
4459  # We will build objects and dependencies in a subdirectory because
4460  # it helps to detect inapplicable dependency modes.  For instance
4461  # both Tru64's cc and ICC support -MD to output dependencies as a
4462  # side effect of compilation, but ICC will put the dependencies in
4463  # the current directory while Tru64 will put them in the object
4464  # directory.
4465  mkdir sub
4466
4467  am_cv_CC_dependencies_compiler_type=none
4468  if test "$am_compiler_list" = ""; then
4469     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4470  fi
4471  am__universal=false
4472  case " $depcc " in #(
4473     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4474     esac
4475
4476  for depmode in $am_compiler_list; do
4477    # Setup a source with many dependencies, because some compilers
4478    # like to wrap large dependency lists on column 80 (with \), and
4479    # we should not choose a depcomp mode which is confused by this.
4480    #
4481    # We need to recreate these files for each test, as the compiler may
4482    # overwrite some of them when testing with obscure command lines.
4483    # This happens at least with the AIX C compiler.
4484    : > sub/conftest.c
4485    for i in 1 2 3 4 5 6; do
4486      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4487      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4488      # Solaris 10 /bin/sh.
4489      echo '/* dummy */' > sub/conftst$i.h
4490    done
4491    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4492
4493    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4494    # mode.  It turns out that the SunPro C++ compiler does not properly
4495    # handle '-M -o', and we need to detect this.  Also, some Intel
4496    # versions had trouble with output in subdirs.
4497    am__obj=sub/conftest.${OBJEXT-o}
4498    am__minus_obj="-o $am__obj"
4499    case $depmode in
4500    gcc)
4501      # This depmode causes a compiler race in universal mode.
4502      test "$am__universal" = false || continue
4503      ;;
4504    nosideeffect)
4505      # After this tag, mechanisms are not by side-effect, so they'll
4506      # only be used when explicitly requested.
4507      if test "x$enable_dependency_tracking" = xyes; then
4508	continue
4509      else
4510	break
4511      fi
4512      ;;
4513    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4514      # This compiler won't grok '-c -o', but also, the minuso test has
4515      # not run yet.  These depmodes are late enough in the game, and
4516      # so weak that their functioning should not be impacted.
4517      am__obj=conftest.${OBJEXT-o}
4518      am__minus_obj=
4519      ;;
4520    none) break ;;
4521    esac
4522    if depmode=$depmode \
4523       source=sub/conftest.c object=$am__obj \
4524       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4525       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4526         >/dev/null 2>conftest.err &&
4527       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4528       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4529       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4530       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4531      # icc doesn't choke on unknown options, it will just issue warnings
4532      # or remarks (even with -Werror).  So we grep stderr for any message
4533      # that says an option was ignored or not supported.
4534      # When given -MP, icc 7.0 and 7.1 complain thus:
4535      #   icc: Command line warning: ignoring option '-M'; no argument required
4536      # The diagnosis changed in icc 8.0:
4537      #   icc: Command line remark: option '-MP' not supported
4538      if (grep 'ignoring option' conftest.err ||
4539          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4540        am_cv_CC_dependencies_compiler_type=$depmode
4541        break
4542      fi
4543    fi
4544  done
4545
4546  cd ..
4547  rm -rf conftest.dir
4548else
4549  am_cv_CC_dependencies_compiler_type=none
4550fi
4551 ;;
4552esac
4553fi
4554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4555printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4556CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4557
4558 if
4559  test "x$enable_dependency_tracking" != xno \
4560  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4561  am__fastdepCC_TRUE=
4562  am__fastdepCC_FALSE='#'
4563else
4564  am__fastdepCC_TRUE='#'
4565  am__fastdepCC_FALSE=
4566fi
4567
4568
4569
4570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4571printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4572if test ${ac_cv_c_undeclared_builtin_options+y}
4573then :
4574  printf %s "(cached) " >&6
4575else case e in #(
4576  e) ac_save_CFLAGS=$CFLAGS
4577   ac_cv_c_undeclared_builtin_options='cannot detect'
4578   for ac_arg in '' -fno-builtin; do
4579     CFLAGS="$ac_save_CFLAGS $ac_arg"
4580     # This test program should *not* compile successfully.
4581     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582/* end confdefs.h.  */
4583
4584int
4585main (void)
4586{
4587(void) strchr;
4588  ;
4589  return 0;
4590}
4591_ACEOF
4592if ac_fn_c_try_compile "$LINENO"
4593then :
4594
4595else case e in #(
4596  e) # This test program should compile successfully.
4597        # No library function is consistently available on
4598        # freestanding implementations, so test against a dummy
4599        # declaration.  Include always-available headers on the
4600        # off chance that they somehow elicit warnings.
4601        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602/* end confdefs.h.  */
4603#include <float.h>
4604#include <limits.h>
4605#include <stdarg.h>
4606#include <stddef.h>
4607extern void ac_decl (int, char *);
4608
4609int
4610main (void)
4611{
4612(void) ac_decl (0, (char *) 0);
4613  (void) ac_decl;
4614
4615  ;
4616  return 0;
4617}
4618_ACEOF
4619if ac_fn_c_try_compile "$LINENO"
4620then :
4621  if test x"$ac_arg" = x
4622then :
4623  ac_cv_c_undeclared_builtin_options='none needed'
4624else case e in #(
4625  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4626esac
4627fi
4628          break
4629fi
4630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4631esac
4632fi
4633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4634    done
4635    CFLAGS=$ac_save_CFLAGS
4636   ;;
4637esac
4638fi
4639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4640printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4641  case $ac_cv_c_undeclared_builtin_options in #(
4642  'cannot detect') :
4643    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4644printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4645as_fn_error $? "cannot make $CC report undeclared builtins
4646See 'config.log' for more details" "$LINENO" 5; } ;; #(
4647  'none needed') :
4648    ac_c_undeclared_builtin_options='' ;; #(
4649  *) :
4650    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4651esac
4652
4653ac_header= ac_cache=
4654for ac_item in $ac_header_c_list
4655do
4656  if test $ac_cache; then
4657    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4658    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4659      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4660    fi
4661    ac_header= ac_cache=
4662  elif test $ac_header; then
4663    ac_cache=$ac_item
4664  else
4665    ac_header=$ac_item
4666  fi
4667done
4668
4669
4670
4671
4672
4673
4674
4675
4676if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4677then :
4678
4679printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4680
4681fi
4682
4683
4684
4685
4686ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4687if test "x$ac_cv_have_decl___clang__" = xyes
4688then :
4689  CLANGCC="yes"
4690else case e in #(
4691  e) CLANGCC="no" ;;
4692esac
4693fi
4694ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4695if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4696then :
4697  INTELCC="yes"
4698else case e in #(
4699  e) INTELCC="no" ;;
4700esac
4701fi
4702ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4703if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4704then :
4705  SUNCC="yes"
4706else case e in #(
4707  e) SUNCC="no" ;;
4708esac
4709fi
4710
4711
4712
4713
4714
4715
4716
4717
4718if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4719	if test -n "$ac_tool_prefix"; then
4720  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4721set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723printf %s "checking for $ac_word... " >&6; }
4724if test ${ac_cv_path_PKG_CONFIG+y}
4725then :
4726  printf %s "(cached) " >&6
4727else case e in #(
4728  e) case $PKG_CONFIG in
4729  [\\/]* | ?:[\\/]*)
4730  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4731  ;;
4732  *)
4733  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734for as_dir in $PATH
4735do
4736  IFS=$as_save_IFS
4737  case $as_dir in #(((
4738    '') as_dir=./ ;;
4739    */) ;;
4740    *) as_dir=$as_dir/ ;;
4741  esac
4742    for ac_exec_ext in '' $ac_executable_extensions; do
4743  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4744    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4745    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4746    break 2
4747  fi
4748done
4749  done
4750IFS=$as_save_IFS
4751
4752  ;;
4753esac ;;
4754esac
4755fi
4756PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4757if test -n "$PKG_CONFIG"; then
4758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4759printf "%s\n" "$PKG_CONFIG" >&6; }
4760else
4761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762printf "%s\n" "no" >&6; }
4763fi
4764
4765
4766fi
4767if test -z "$ac_cv_path_PKG_CONFIG"; then
4768  ac_pt_PKG_CONFIG=$PKG_CONFIG
4769  # Extract the first word of "pkg-config", so it can be a program name with args.
4770set dummy pkg-config; ac_word=$2
4771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772printf %s "checking for $ac_word... " >&6; }
4773if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4774then :
4775  printf %s "(cached) " >&6
4776else case e in #(
4777  e) case $ac_pt_PKG_CONFIG in
4778  [\\/]* | ?:[\\/]*)
4779  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4780  ;;
4781  *)
4782  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783for as_dir in $PATH
4784do
4785  IFS=$as_save_IFS
4786  case $as_dir in #(((
4787    '') as_dir=./ ;;
4788    */) ;;
4789    *) as_dir=$as_dir/ ;;
4790  esac
4791    for ac_exec_ext in '' $ac_executable_extensions; do
4792  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4793    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4794    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4795    break 2
4796  fi
4797done
4798  done
4799IFS=$as_save_IFS
4800
4801  ;;
4802esac ;;
4803esac
4804fi
4805ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4806if test -n "$ac_pt_PKG_CONFIG"; then
4807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4808printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4809else
4810  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811printf "%s\n" "no" >&6; }
4812fi
4813
4814  if test "x$ac_pt_PKG_CONFIG" = x; then
4815    PKG_CONFIG=""
4816  else
4817    case $cross_compiling:$ac_tool_warned in
4818yes:)
4819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4820printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4821ac_tool_warned=yes ;;
4822esac
4823    PKG_CONFIG=$ac_pt_PKG_CONFIG
4824  fi
4825else
4826  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4827fi
4828
4829fi
4830if test -n "$PKG_CONFIG"; then
4831	_pkg_min_version=0.9.0
4832	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4833printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4834	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4835		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4836printf "%s\n" "yes" >&6; }
4837	else
4838		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839printf "%s\n" "no" >&6; }
4840		PKG_CONFIG=""
4841	fi
4842fi
4843
4844
4845  # Make sure we can run config.sub.
4846$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4847  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4848
4849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4850printf %s "checking build system type... " >&6; }
4851if test ${ac_cv_build+y}
4852then :
4853  printf %s "(cached) " >&6
4854else case e in #(
4855  e) ac_build_alias=$build_alias
4856test "x$ac_build_alias" = x &&
4857  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4858test "x$ac_build_alias" = x &&
4859  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4860ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4861  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4862 ;;
4863esac
4864fi
4865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4866printf "%s\n" "$ac_cv_build" >&6; }
4867case $ac_cv_build in
4868*-*-*) ;;
4869*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4870esac
4871build=$ac_cv_build
4872ac_save_IFS=$IFS; IFS='-'
4873set x $ac_cv_build
4874shift
4875build_cpu=$1
4876build_vendor=$2
4877shift; shift
4878# Remember, the first character of IFS is used to create $*,
4879# except with old shells:
4880build_os=$*
4881IFS=$ac_save_IFS
4882case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4883
4884
4885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4886printf %s "checking host system type... " >&6; }
4887if test ${ac_cv_host+y}
4888then :
4889  printf %s "(cached) " >&6
4890else case e in #(
4891  e) if test "x$host_alias" = x; then
4892  ac_cv_host=$ac_cv_build
4893else
4894  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4895    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4896fi
4897 ;;
4898esac
4899fi
4900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4901printf "%s\n" "$ac_cv_host" >&6; }
4902case $ac_cv_host in
4903*-*-*) ;;
4904*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4905esac
4906host=$ac_cv_host
4907ac_save_IFS=$IFS; IFS='-'
4908set x $ac_cv_host
4909shift
4910host_cpu=$1
4911host_vendor=$2
4912shift; shift
4913# Remember, the first character of IFS is used to create $*,
4914# except with old shells:
4915host_os=$*
4916IFS=$ac_save_IFS
4917case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4918
4919
4920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4921printf %s "checking for a sed that does not truncate output... " >&6; }
4922if test ${ac_cv_path_SED+y}
4923then :
4924  printf %s "(cached) " >&6
4925else case e in #(
4926  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4927     for ac_i in 1 2 3 4 5 6 7; do
4928       ac_script="$ac_script$as_nl$ac_script"
4929     done
4930     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4931     { ac_script=; unset ac_script;}
4932     if test -z "$SED"; then
4933  ac_path_SED_found=false
4934  # Loop through the user's path and test for each of PROGNAME-LIST
4935  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936for as_dir in $PATH
4937do
4938  IFS=$as_save_IFS
4939  case $as_dir in #(((
4940    '') as_dir=./ ;;
4941    */) ;;
4942    *) as_dir=$as_dir/ ;;
4943  esac
4944    for ac_prog in sed gsed
4945   do
4946    for ac_exec_ext in '' $ac_executable_extensions; do
4947      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4948      as_fn_executable_p "$ac_path_SED" || continue
4949# Check for GNU ac_path_SED and select it if it is found.
4950  # Check for GNU $ac_path_SED
4951case `"$ac_path_SED" --version 2>&1` in #(
4952*GNU*)
4953  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4954#(
4955*)
4956  ac_count=0
4957  printf %s 0123456789 >"conftest.in"
4958  while :
4959  do
4960    cat "conftest.in" "conftest.in" >"conftest.tmp"
4961    mv "conftest.tmp" "conftest.in"
4962    cp "conftest.in" "conftest.nl"
4963    printf "%s\n" '' >> "conftest.nl"
4964    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4965    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4966    as_fn_arith $ac_count + 1 && ac_count=$as_val
4967    if test $ac_count -gt ${ac_path_SED_max-0}; then
4968      # Best one so far, save it but keep looking for a better one
4969      ac_cv_path_SED="$ac_path_SED"
4970      ac_path_SED_max=$ac_count
4971    fi
4972    # 10*(2^10) chars as input seems more than enough
4973    test $ac_count -gt 10 && break
4974  done
4975  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4976esac
4977
4978      $ac_path_SED_found && break 3
4979    done
4980  done
4981  done
4982IFS=$as_save_IFS
4983  if test -z "$ac_cv_path_SED"; then
4984    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4985  fi
4986else
4987  ac_cv_path_SED=$SED
4988fi
4989 ;;
4990esac
4991fi
4992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4993printf "%s\n" "$ac_cv_path_SED" >&6; }
4994 SED="$ac_cv_path_SED"
4995  rm -f conftest.sed
4996
4997
4998
4999
5000
5001
5002# Check whether --enable-selective-werror was given.
5003if test ${enable_selective_werror+y}
5004then :
5005  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5006else case e in #(
5007  e) SELECTIVE_WERROR=yes ;;
5008esac
5009fi
5010
5011
5012
5013
5014
5015# -v is too short to test reliably with XORG_TESTSET_CFLAG
5016if test "x$SUNCC" = "xyes"; then
5017    BASE_CFLAGS="-v"
5018else
5019    BASE_CFLAGS=""
5020fi
5021
5022# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036xorg_testset_save_CFLAGS="$CFLAGS"
5037
5038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5039	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5040	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5041printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5042if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5043then :
5044  printf %s "(cached) " >&6
5045else case e in #(
5046  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047/* end confdefs.h.  */
5048int i;
5049_ACEOF
5050if ac_fn_c_try_compile "$LINENO"
5051then :
5052  xorg_cv_cc_flag_unknown_warning_option=yes
5053else case e in #(
5054  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5055esac
5056fi
5057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5058esac
5059fi
5060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5061printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5062	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5063	CFLAGS="$xorg_testset_save_CFLAGS"
5064fi
5065
5066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5067	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5068		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5069	fi
5070	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5071	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5072printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5073if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5074then :
5075  printf %s "(cached) " >&6
5076else case e in #(
5077  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078/* end confdefs.h.  */
5079int i;
5080_ACEOF
5081if ac_fn_c_try_compile "$LINENO"
5082then :
5083  xorg_cv_cc_flag_unused_command_line_argument=yes
5084else case e in #(
5085  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5086esac
5087fi
5088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5089esac
5090fi
5091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5092printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5093	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5094	CFLAGS="$xorg_testset_save_CFLAGS"
5095fi
5096
5097found="no"
5098
5099	if test $found = "no" ; then
5100		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5101			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5102		fi
5103
5104		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5105			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5106		fi
5107
5108		CFLAGS="$CFLAGS -Wall"
5109
5110		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5111printf %s "checking if $CC supports -Wall... " >&6; }
5112		cacheid=xorg_cv_cc_flag__Wall
5113		if eval test \${$cacheid+y}
5114then :
5115  printf %s "(cached) " >&6
5116else case e in #(
5117  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118/* end confdefs.h.  */
5119int i;
5120int
5121main (void)
5122{
5123
5124  ;
5125  return 0;
5126}
5127_ACEOF
5128if ac_fn_c_try_link "$LINENO"
5129then :
5130  eval $cacheid=yes
5131else case e in #(
5132  e) eval $cacheid=no ;;
5133esac
5134fi
5135rm -f core conftest.err conftest.$ac_objext conftest.beam \
5136    conftest$ac_exeext conftest.$ac_ext ;;
5137esac
5138fi
5139
5140
5141		CFLAGS="$xorg_testset_save_CFLAGS"
5142
5143		eval supported=\$$cacheid
5144		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5145printf "%s\n" "$supported" >&6; }
5146		if test "$supported" = "yes" ; then
5147			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5148			found="yes"
5149		fi
5150	fi
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166xorg_testset_save_CFLAGS="$CFLAGS"
5167
5168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5169	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5170	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5171printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5172if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5173then :
5174  printf %s "(cached) " >&6
5175else case e in #(
5176  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177/* end confdefs.h.  */
5178int i;
5179_ACEOF
5180if ac_fn_c_try_compile "$LINENO"
5181then :
5182  xorg_cv_cc_flag_unknown_warning_option=yes
5183else case e in #(
5184  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5185esac
5186fi
5187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5188esac
5189fi
5190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5191printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5192	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5193	CFLAGS="$xorg_testset_save_CFLAGS"
5194fi
5195
5196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5197	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5198		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5199	fi
5200	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5201	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5202printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5203if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5204then :
5205  printf %s "(cached) " >&6
5206else case e in #(
5207  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208/* end confdefs.h.  */
5209int i;
5210_ACEOF
5211if ac_fn_c_try_compile "$LINENO"
5212then :
5213  xorg_cv_cc_flag_unused_command_line_argument=yes
5214else case e in #(
5215  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5216esac
5217fi
5218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5219esac
5220fi
5221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5222printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5223	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5224	CFLAGS="$xorg_testset_save_CFLAGS"
5225fi
5226
5227found="no"
5228
5229	if test $found = "no" ; then
5230		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5231			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5232		fi
5233
5234		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5235			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5236		fi
5237
5238		CFLAGS="$CFLAGS -Wpointer-arith"
5239
5240		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5241printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5242		cacheid=xorg_cv_cc_flag__Wpointer_arith
5243		if eval test \${$cacheid+y}
5244then :
5245  printf %s "(cached) " >&6
5246else case e in #(
5247  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248/* end confdefs.h.  */
5249int i;
5250int
5251main (void)
5252{
5253
5254  ;
5255  return 0;
5256}
5257_ACEOF
5258if ac_fn_c_try_link "$LINENO"
5259then :
5260  eval $cacheid=yes
5261else case e in #(
5262  e) eval $cacheid=no ;;
5263esac
5264fi
5265rm -f core conftest.err conftest.$ac_objext conftest.beam \
5266    conftest$ac_exeext conftest.$ac_ext ;;
5267esac
5268fi
5269
5270
5271		CFLAGS="$xorg_testset_save_CFLAGS"
5272
5273		eval supported=\$$cacheid
5274		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5275printf "%s\n" "$supported" >&6; }
5276		if test "$supported" = "yes" ; then
5277			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5278			found="yes"
5279		fi
5280	fi
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296xorg_testset_save_CFLAGS="$CFLAGS"
5297
5298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5299	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5300	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5301printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5302if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5303then :
5304  printf %s "(cached) " >&6
5305else case e in #(
5306  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307/* end confdefs.h.  */
5308int i;
5309_ACEOF
5310if ac_fn_c_try_compile "$LINENO"
5311then :
5312  xorg_cv_cc_flag_unknown_warning_option=yes
5313else case e in #(
5314  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5315esac
5316fi
5317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5318esac
5319fi
5320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5321printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5322	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5323	CFLAGS="$xorg_testset_save_CFLAGS"
5324fi
5325
5326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5327	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5328		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5329	fi
5330	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5331	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5332printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5333if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5334then :
5335  printf %s "(cached) " >&6
5336else case e in #(
5337  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338/* end confdefs.h.  */
5339int i;
5340_ACEOF
5341if ac_fn_c_try_compile "$LINENO"
5342then :
5343  xorg_cv_cc_flag_unused_command_line_argument=yes
5344else case e in #(
5345  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5346esac
5347fi
5348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5349esac
5350fi
5351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5352printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5353	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5354	CFLAGS="$xorg_testset_save_CFLAGS"
5355fi
5356
5357found="no"
5358
5359	if test $found = "no" ; then
5360		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5361			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5362		fi
5363
5364		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5365			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5366		fi
5367
5368		CFLAGS="$CFLAGS -Wmissing-declarations"
5369
5370		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5371printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5372		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5373		if eval test \${$cacheid+y}
5374then :
5375  printf %s "(cached) " >&6
5376else case e in #(
5377  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378/* end confdefs.h.  */
5379int i;
5380int
5381main (void)
5382{
5383
5384  ;
5385  return 0;
5386}
5387_ACEOF
5388if ac_fn_c_try_link "$LINENO"
5389then :
5390  eval $cacheid=yes
5391else case e in #(
5392  e) eval $cacheid=no ;;
5393esac
5394fi
5395rm -f core conftest.err conftest.$ac_objext conftest.beam \
5396    conftest$ac_exeext conftest.$ac_ext ;;
5397esac
5398fi
5399
5400
5401		CFLAGS="$xorg_testset_save_CFLAGS"
5402
5403		eval supported=\$$cacheid
5404		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5405printf "%s\n" "$supported" >&6; }
5406		if test "$supported" = "yes" ; then
5407			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5408			found="yes"
5409		fi
5410	fi
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426xorg_testset_save_CFLAGS="$CFLAGS"
5427
5428if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5429	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5430	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5431printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5432if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5433then :
5434  printf %s "(cached) " >&6
5435else case e in #(
5436  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437/* end confdefs.h.  */
5438int i;
5439_ACEOF
5440if ac_fn_c_try_compile "$LINENO"
5441then :
5442  xorg_cv_cc_flag_unknown_warning_option=yes
5443else case e in #(
5444  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5445esac
5446fi
5447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5448esac
5449fi
5450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5451printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5452	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5453	CFLAGS="$xorg_testset_save_CFLAGS"
5454fi
5455
5456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5457	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5458		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5459	fi
5460	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5461	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5462printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5463if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5464then :
5465  printf %s "(cached) " >&6
5466else case e in #(
5467  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468/* end confdefs.h.  */
5469int i;
5470_ACEOF
5471if ac_fn_c_try_compile "$LINENO"
5472then :
5473  xorg_cv_cc_flag_unused_command_line_argument=yes
5474else case e in #(
5475  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5476esac
5477fi
5478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5479esac
5480fi
5481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5482printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5483	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5484	CFLAGS="$xorg_testset_save_CFLAGS"
5485fi
5486
5487found="no"
5488
5489	if test $found = "no" ; then
5490		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5491			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5492		fi
5493
5494		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5495			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5496		fi
5497
5498		CFLAGS="$CFLAGS -Wformat=2"
5499
5500		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5501printf %s "checking if $CC supports -Wformat=2... " >&6; }
5502		cacheid=xorg_cv_cc_flag__Wformat_2
5503		if eval test \${$cacheid+y}
5504then :
5505  printf %s "(cached) " >&6
5506else case e in #(
5507  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508/* end confdefs.h.  */
5509int i;
5510int
5511main (void)
5512{
5513
5514  ;
5515  return 0;
5516}
5517_ACEOF
5518if ac_fn_c_try_link "$LINENO"
5519then :
5520  eval $cacheid=yes
5521else case e in #(
5522  e) eval $cacheid=no ;;
5523esac
5524fi
5525rm -f core conftest.err conftest.$ac_objext conftest.beam \
5526    conftest$ac_exeext conftest.$ac_ext ;;
5527esac
5528fi
5529
5530
5531		CFLAGS="$xorg_testset_save_CFLAGS"
5532
5533		eval supported=\$$cacheid
5534		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5535printf "%s\n" "$supported" >&6; }
5536		if test "$supported" = "yes" ; then
5537			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5538			found="yes"
5539		fi
5540	fi
5541
5542	if test $found = "no" ; then
5543		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5544			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5545		fi
5546
5547		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5548			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5549		fi
5550
5551		CFLAGS="$CFLAGS -Wformat"
5552
5553		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5554printf %s "checking if $CC supports -Wformat... " >&6; }
5555		cacheid=xorg_cv_cc_flag__Wformat
5556		if eval test \${$cacheid+y}
5557then :
5558  printf %s "(cached) " >&6
5559else case e in #(
5560  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561/* end confdefs.h.  */
5562int i;
5563int
5564main (void)
5565{
5566
5567  ;
5568  return 0;
5569}
5570_ACEOF
5571if ac_fn_c_try_link "$LINENO"
5572then :
5573  eval $cacheid=yes
5574else case e in #(
5575  e) eval $cacheid=no ;;
5576esac
5577fi
5578rm -f core conftest.err conftest.$ac_objext conftest.beam \
5579    conftest$ac_exeext conftest.$ac_ext ;;
5580esac
5581fi
5582
5583
5584		CFLAGS="$xorg_testset_save_CFLAGS"
5585
5586		eval supported=\$$cacheid
5587		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5588printf "%s\n" "$supported" >&6; }
5589		if test "$supported" = "yes" ; then
5590			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5591			found="yes"
5592		fi
5593	fi
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611xorg_testset_save_CFLAGS="$CFLAGS"
5612
5613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5614	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5615	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5616printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5617if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5618then :
5619  printf %s "(cached) " >&6
5620else case e in #(
5621  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622/* end confdefs.h.  */
5623int i;
5624_ACEOF
5625if ac_fn_c_try_compile "$LINENO"
5626then :
5627  xorg_cv_cc_flag_unknown_warning_option=yes
5628else case e in #(
5629  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5630esac
5631fi
5632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5633esac
5634fi
5635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5636printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5637	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5638	CFLAGS="$xorg_testset_save_CFLAGS"
5639fi
5640
5641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5642	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5643		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5644	fi
5645	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5646	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5647printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5648if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5649then :
5650  printf %s "(cached) " >&6
5651else case e in #(
5652  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653/* end confdefs.h.  */
5654int i;
5655_ACEOF
5656if ac_fn_c_try_compile "$LINENO"
5657then :
5658  xorg_cv_cc_flag_unused_command_line_argument=yes
5659else case e in #(
5660  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5661esac
5662fi
5663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5664esac
5665fi
5666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5667printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5668	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5669	CFLAGS="$xorg_testset_save_CFLAGS"
5670fi
5671
5672found="no"
5673
5674	if test $found = "no" ; then
5675		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5676			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5677		fi
5678
5679		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5680			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5681		fi
5682
5683		CFLAGS="$CFLAGS -Wstrict-prototypes"
5684
5685		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5686printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5687		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5688		if eval test \${$cacheid+y}
5689then :
5690  printf %s "(cached) " >&6
5691else case e in #(
5692  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693/* end confdefs.h.  */
5694int i;
5695int
5696main (void)
5697{
5698
5699  ;
5700  return 0;
5701}
5702_ACEOF
5703if ac_fn_c_try_link "$LINENO"
5704then :
5705  eval $cacheid=yes
5706else case e in #(
5707  e) eval $cacheid=no ;;
5708esac
5709fi
5710rm -f core conftest.err conftest.$ac_objext conftest.beam \
5711    conftest$ac_exeext conftest.$ac_ext ;;
5712esac
5713fi
5714
5715
5716		CFLAGS="$xorg_testset_save_CFLAGS"
5717
5718		eval supported=\$$cacheid
5719		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5720printf "%s\n" "$supported" >&6; }
5721		if test "$supported" = "yes" ; then
5722			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5723			found="yes"
5724		fi
5725	fi
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741xorg_testset_save_CFLAGS="$CFLAGS"
5742
5743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5745	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5746printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5747if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5748then :
5749  printf %s "(cached) " >&6
5750else case e in #(
5751  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752/* end confdefs.h.  */
5753int i;
5754_ACEOF
5755if ac_fn_c_try_compile "$LINENO"
5756then :
5757  xorg_cv_cc_flag_unknown_warning_option=yes
5758else case e in #(
5759  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5760esac
5761fi
5762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5763esac
5764fi
5765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5766printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5767	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5768	CFLAGS="$xorg_testset_save_CFLAGS"
5769fi
5770
5771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5772	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5773		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5774	fi
5775	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5776	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5777printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5778if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5779then :
5780  printf %s "(cached) " >&6
5781else case e in #(
5782  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783/* end confdefs.h.  */
5784int i;
5785_ACEOF
5786if ac_fn_c_try_compile "$LINENO"
5787then :
5788  xorg_cv_cc_flag_unused_command_line_argument=yes
5789else case e in #(
5790  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5791esac
5792fi
5793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5794esac
5795fi
5796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5797printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5798	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5799	CFLAGS="$xorg_testset_save_CFLAGS"
5800fi
5801
5802found="no"
5803
5804	if test $found = "no" ; then
5805		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5806			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5807		fi
5808
5809		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5810			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5811		fi
5812
5813		CFLAGS="$CFLAGS -Wmissing-prototypes"
5814
5815		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5816printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5817		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5818		if eval test \${$cacheid+y}
5819then :
5820  printf %s "(cached) " >&6
5821else case e in #(
5822  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823/* end confdefs.h.  */
5824int i;
5825int
5826main (void)
5827{
5828
5829  ;
5830  return 0;
5831}
5832_ACEOF
5833if ac_fn_c_try_link "$LINENO"
5834then :
5835  eval $cacheid=yes
5836else case e in #(
5837  e) eval $cacheid=no ;;
5838esac
5839fi
5840rm -f core conftest.err conftest.$ac_objext conftest.beam \
5841    conftest$ac_exeext conftest.$ac_ext ;;
5842esac
5843fi
5844
5845
5846		CFLAGS="$xorg_testset_save_CFLAGS"
5847
5848		eval supported=\$$cacheid
5849		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5850printf "%s\n" "$supported" >&6; }
5851		if test "$supported" = "yes" ; then
5852			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5853			found="yes"
5854		fi
5855	fi
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871xorg_testset_save_CFLAGS="$CFLAGS"
5872
5873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5874	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5875	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5876printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5877if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5878then :
5879  printf %s "(cached) " >&6
5880else case e in #(
5881  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882/* end confdefs.h.  */
5883int i;
5884_ACEOF
5885if ac_fn_c_try_compile "$LINENO"
5886then :
5887  xorg_cv_cc_flag_unknown_warning_option=yes
5888else case e in #(
5889  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5890esac
5891fi
5892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5893esac
5894fi
5895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5896printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5897	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5898	CFLAGS="$xorg_testset_save_CFLAGS"
5899fi
5900
5901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5902	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5903		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5904	fi
5905	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5906	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5907printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5908if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5909then :
5910  printf %s "(cached) " >&6
5911else case e in #(
5912  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913/* end confdefs.h.  */
5914int i;
5915_ACEOF
5916if ac_fn_c_try_compile "$LINENO"
5917then :
5918  xorg_cv_cc_flag_unused_command_line_argument=yes
5919else case e in #(
5920  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5921esac
5922fi
5923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5924esac
5925fi
5926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5927printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5928	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5929	CFLAGS="$xorg_testset_save_CFLAGS"
5930fi
5931
5932found="no"
5933
5934	if test $found = "no" ; then
5935		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5936			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5937		fi
5938
5939		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5940			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5941		fi
5942
5943		CFLAGS="$CFLAGS -Wnested-externs"
5944
5945		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5946printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5947		cacheid=xorg_cv_cc_flag__Wnested_externs
5948		if eval test \${$cacheid+y}
5949then :
5950  printf %s "(cached) " >&6
5951else case e in #(
5952  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953/* end confdefs.h.  */
5954int i;
5955int
5956main (void)
5957{
5958
5959  ;
5960  return 0;
5961}
5962_ACEOF
5963if ac_fn_c_try_link "$LINENO"
5964then :
5965  eval $cacheid=yes
5966else case e in #(
5967  e) eval $cacheid=no ;;
5968esac
5969fi
5970rm -f core conftest.err conftest.$ac_objext conftest.beam \
5971    conftest$ac_exeext conftest.$ac_ext ;;
5972esac
5973fi
5974
5975
5976		CFLAGS="$xorg_testset_save_CFLAGS"
5977
5978		eval supported=\$$cacheid
5979		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5980printf "%s\n" "$supported" >&6; }
5981		if test "$supported" = "yes" ; then
5982			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5983			found="yes"
5984		fi
5985	fi
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001xorg_testset_save_CFLAGS="$CFLAGS"
6002
6003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6004	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6005	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6006printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6007if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6008then :
6009  printf %s "(cached) " >&6
6010else case e in #(
6011  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012/* end confdefs.h.  */
6013int i;
6014_ACEOF
6015if ac_fn_c_try_compile "$LINENO"
6016then :
6017  xorg_cv_cc_flag_unknown_warning_option=yes
6018else case e in #(
6019  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6020esac
6021fi
6022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6023esac
6024fi
6025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6026printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6027	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6028	CFLAGS="$xorg_testset_save_CFLAGS"
6029fi
6030
6031if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6032	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6033		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6034	fi
6035	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6036	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6037printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6038if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6039then :
6040  printf %s "(cached) " >&6
6041else case e in #(
6042  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043/* end confdefs.h.  */
6044int i;
6045_ACEOF
6046if ac_fn_c_try_compile "$LINENO"
6047then :
6048  xorg_cv_cc_flag_unused_command_line_argument=yes
6049else case e in #(
6050  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6051esac
6052fi
6053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6054esac
6055fi
6056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6057printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6058	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6059	CFLAGS="$xorg_testset_save_CFLAGS"
6060fi
6061
6062found="no"
6063
6064	if test $found = "no" ; then
6065		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6066			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6067		fi
6068
6069		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6070			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6071		fi
6072
6073		CFLAGS="$CFLAGS -Wbad-function-cast"
6074
6075		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6076printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6077		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6078		if eval test \${$cacheid+y}
6079then :
6080  printf %s "(cached) " >&6
6081else case e in #(
6082  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083/* end confdefs.h.  */
6084int i;
6085int
6086main (void)
6087{
6088
6089  ;
6090  return 0;
6091}
6092_ACEOF
6093if ac_fn_c_try_link "$LINENO"
6094then :
6095  eval $cacheid=yes
6096else case e in #(
6097  e) eval $cacheid=no ;;
6098esac
6099fi
6100rm -f core conftest.err conftest.$ac_objext conftest.beam \
6101    conftest$ac_exeext conftest.$ac_ext ;;
6102esac
6103fi
6104
6105
6106		CFLAGS="$xorg_testset_save_CFLAGS"
6107
6108		eval supported=\$$cacheid
6109		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6110printf "%s\n" "$supported" >&6; }
6111		if test "$supported" = "yes" ; then
6112			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6113			found="yes"
6114		fi
6115	fi
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131xorg_testset_save_CFLAGS="$CFLAGS"
6132
6133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6134	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6135	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6136printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6137if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6138then :
6139  printf %s "(cached) " >&6
6140else case e in #(
6141  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142/* end confdefs.h.  */
6143int i;
6144_ACEOF
6145if ac_fn_c_try_compile "$LINENO"
6146then :
6147  xorg_cv_cc_flag_unknown_warning_option=yes
6148else case e in #(
6149  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6150esac
6151fi
6152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6153esac
6154fi
6155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6156printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6157	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6158	CFLAGS="$xorg_testset_save_CFLAGS"
6159fi
6160
6161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6162	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6163		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6164	fi
6165	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6166	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6167printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6168if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6169then :
6170  printf %s "(cached) " >&6
6171else case e in #(
6172  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173/* end confdefs.h.  */
6174int i;
6175_ACEOF
6176if ac_fn_c_try_compile "$LINENO"
6177then :
6178  xorg_cv_cc_flag_unused_command_line_argument=yes
6179else case e in #(
6180  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6181esac
6182fi
6183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6184esac
6185fi
6186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6187printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6188	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6189	CFLAGS="$xorg_testset_save_CFLAGS"
6190fi
6191
6192found="no"
6193
6194	if test $found = "no" ; then
6195		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6196			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6197		fi
6198
6199		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6200			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6201		fi
6202
6203		CFLAGS="$CFLAGS -Wold-style-definition"
6204
6205		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6206printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6207		cacheid=xorg_cv_cc_flag__Wold_style_definition
6208		if eval test \${$cacheid+y}
6209then :
6210  printf %s "(cached) " >&6
6211else case e in #(
6212  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213/* end confdefs.h.  */
6214int i;
6215int
6216main (void)
6217{
6218
6219  ;
6220  return 0;
6221}
6222_ACEOF
6223if ac_fn_c_try_link "$LINENO"
6224then :
6225  eval $cacheid=yes
6226else case e in #(
6227  e) eval $cacheid=no ;;
6228esac
6229fi
6230rm -f core conftest.err conftest.$ac_objext conftest.beam \
6231    conftest$ac_exeext conftest.$ac_ext ;;
6232esac
6233fi
6234
6235
6236		CFLAGS="$xorg_testset_save_CFLAGS"
6237
6238		eval supported=\$$cacheid
6239		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6240printf "%s\n" "$supported" >&6; }
6241		if test "$supported" = "yes" ; then
6242			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6243			found="yes"
6244		fi
6245	fi
6246
6247	if test $found = "no" ; then
6248		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6249			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6250		fi
6251
6252		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6253			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6254		fi
6255
6256		CFLAGS="$CFLAGS -fd"
6257
6258		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6259printf %s "checking if $CC supports -fd... " >&6; }
6260		cacheid=xorg_cv_cc_flag__fd
6261		if eval test \${$cacheid+y}
6262then :
6263  printf %s "(cached) " >&6
6264else case e in #(
6265  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266/* end confdefs.h.  */
6267int i;
6268int
6269main (void)
6270{
6271
6272  ;
6273  return 0;
6274}
6275_ACEOF
6276if ac_fn_c_try_link "$LINENO"
6277then :
6278  eval $cacheid=yes
6279else case e in #(
6280  e) eval $cacheid=no ;;
6281esac
6282fi
6283rm -f core conftest.err conftest.$ac_objext conftest.beam \
6284    conftest$ac_exeext conftest.$ac_ext ;;
6285esac
6286fi
6287
6288
6289		CFLAGS="$xorg_testset_save_CFLAGS"
6290
6291		eval supported=\$$cacheid
6292		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6293printf "%s\n" "$supported" >&6; }
6294		if test "$supported" = "yes" ; then
6295			BASE_CFLAGS="$BASE_CFLAGS -fd"
6296			found="yes"
6297		fi
6298	fi
6299
6300
6301
6302
6303
6304# This chunk adds additional warnings that could catch undesired effects.
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318xorg_testset_save_CFLAGS="$CFLAGS"
6319
6320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6321	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6323printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6324if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6325then :
6326  printf %s "(cached) " >&6
6327else case e in #(
6328  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329/* end confdefs.h.  */
6330int i;
6331_ACEOF
6332if ac_fn_c_try_compile "$LINENO"
6333then :
6334  xorg_cv_cc_flag_unknown_warning_option=yes
6335else case e in #(
6336  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6337esac
6338fi
6339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6340esac
6341fi
6342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6343printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6344	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6345	CFLAGS="$xorg_testset_save_CFLAGS"
6346fi
6347
6348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6349	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6350		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6351	fi
6352	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6353	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6354printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6355if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6356then :
6357  printf %s "(cached) " >&6
6358else case e in #(
6359  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360/* end confdefs.h.  */
6361int i;
6362_ACEOF
6363if ac_fn_c_try_compile "$LINENO"
6364then :
6365  xorg_cv_cc_flag_unused_command_line_argument=yes
6366else case e in #(
6367  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6368esac
6369fi
6370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6371esac
6372fi
6373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6374printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6375	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6376	CFLAGS="$xorg_testset_save_CFLAGS"
6377fi
6378
6379found="no"
6380
6381	if test $found = "no" ; then
6382		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6383			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6384		fi
6385
6386		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6387			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6388		fi
6389
6390		CFLAGS="$CFLAGS -Wunused"
6391
6392		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6393printf %s "checking if $CC supports -Wunused... " >&6; }
6394		cacheid=xorg_cv_cc_flag__Wunused
6395		if eval test \${$cacheid+y}
6396then :
6397  printf %s "(cached) " >&6
6398else case e in #(
6399  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400/* end confdefs.h.  */
6401int i;
6402int
6403main (void)
6404{
6405
6406  ;
6407  return 0;
6408}
6409_ACEOF
6410if ac_fn_c_try_link "$LINENO"
6411then :
6412  eval $cacheid=yes
6413else case e in #(
6414  e) eval $cacheid=no ;;
6415esac
6416fi
6417rm -f core conftest.err conftest.$ac_objext conftest.beam \
6418    conftest$ac_exeext conftest.$ac_ext ;;
6419esac
6420fi
6421
6422
6423		CFLAGS="$xorg_testset_save_CFLAGS"
6424
6425		eval supported=\$$cacheid
6426		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6427printf "%s\n" "$supported" >&6; }
6428		if test "$supported" = "yes" ; then
6429			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6430			found="yes"
6431		fi
6432	fi
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448xorg_testset_save_CFLAGS="$CFLAGS"
6449
6450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6451	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6452	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6453printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6454if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6455then :
6456  printf %s "(cached) " >&6
6457else case e in #(
6458  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459/* end confdefs.h.  */
6460int i;
6461_ACEOF
6462if ac_fn_c_try_compile "$LINENO"
6463then :
6464  xorg_cv_cc_flag_unknown_warning_option=yes
6465else case e in #(
6466  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6467esac
6468fi
6469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6470esac
6471fi
6472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6473printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6474	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6475	CFLAGS="$xorg_testset_save_CFLAGS"
6476fi
6477
6478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6479	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6480		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6481	fi
6482	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6483	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6484printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6485if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6486then :
6487  printf %s "(cached) " >&6
6488else case e in #(
6489  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490/* end confdefs.h.  */
6491int i;
6492_ACEOF
6493if ac_fn_c_try_compile "$LINENO"
6494then :
6495  xorg_cv_cc_flag_unused_command_line_argument=yes
6496else case e in #(
6497  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6498esac
6499fi
6500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6501esac
6502fi
6503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6504printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6505	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6506	CFLAGS="$xorg_testset_save_CFLAGS"
6507fi
6508
6509found="no"
6510
6511	if test $found = "no" ; then
6512		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6513			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6514		fi
6515
6516		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6517			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6518		fi
6519
6520		CFLAGS="$CFLAGS -Wuninitialized"
6521
6522		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6523printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6524		cacheid=xorg_cv_cc_flag__Wuninitialized
6525		if eval test \${$cacheid+y}
6526then :
6527  printf %s "(cached) " >&6
6528else case e in #(
6529  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530/* end confdefs.h.  */
6531int i;
6532int
6533main (void)
6534{
6535
6536  ;
6537  return 0;
6538}
6539_ACEOF
6540if ac_fn_c_try_link "$LINENO"
6541then :
6542  eval $cacheid=yes
6543else case e in #(
6544  e) eval $cacheid=no ;;
6545esac
6546fi
6547rm -f core conftest.err conftest.$ac_objext conftest.beam \
6548    conftest$ac_exeext conftest.$ac_ext ;;
6549esac
6550fi
6551
6552
6553		CFLAGS="$xorg_testset_save_CFLAGS"
6554
6555		eval supported=\$$cacheid
6556		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6557printf "%s\n" "$supported" >&6; }
6558		if test "$supported" = "yes" ; then
6559			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6560			found="yes"
6561		fi
6562	fi
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578xorg_testset_save_CFLAGS="$CFLAGS"
6579
6580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6581	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6582	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6583printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6584if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6585then :
6586  printf %s "(cached) " >&6
6587else case e in #(
6588  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589/* end confdefs.h.  */
6590int i;
6591_ACEOF
6592if ac_fn_c_try_compile "$LINENO"
6593then :
6594  xorg_cv_cc_flag_unknown_warning_option=yes
6595else case e in #(
6596  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6597esac
6598fi
6599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6600esac
6601fi
6602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6603printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6604	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6605	CFLAGS="$xorg_testset_save_CFLAGS"
6606fi
6607
6608if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6609	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6610		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6611	fi
6612	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6613	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6614printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6615if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6616then :
6617  printf %s "(cached) " >&6
6618else case e in #(
6619  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h.  */
6621int i;
6622_ACEOF
6623if ac_fn_c_try_compile "$LINENO"
6624then :
6625  xorg_cv_cc_flag_unused_command_line_argument=yes
6626else case e in #(
6627  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6628esac
6629fi
6630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6631esac
6632fi
6633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6634printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6635	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6636	CFLAGS="$xorg_testset_save_CFLAGS"
6637fi
6638
6639found="no"
6640
6641	if test $found = "no" ; then
6642		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6643			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6644		fi
6645
6646		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6647			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6648		fi
6649
6650		CFLAGS="$CFLAGS -Wshadow"
6651
6652		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6653printf %s "checking if $CC supports -Wshadow... " >&6; }
6654		cacheid=xorg_cv_cc_flag__Wshadow
6655		if eval test \${$cacheid+y}
6656then :
6657  printf %s "(cached) " >&6
6658else case e in #(
6659  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660/* end confdefs.h.  */
6661int i;
6662int
6663main (void)
6664{
6665
6666  ;
6667  return 0;
6668}
6669_ACEOF
6670if ac_fn_c_try_link "$LINENO"
6671then :
6672  eval $cacheid=yes
6673else case e in #(
6674  e) eval $cacheid=no ;;
6675esac
6676fi
6677rm -f core conftest.err conftest.$ac_objext conftest.beam \
6678    conftest$ac_exeext conftest.$ac_ext ;;
6679esac
6680fi
6681
6682
6683		CFLAGS="$xorg_testset_save_CFLAGS"
6684
6685		eval supported=\$$cacheid
6686		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6687printf "%s\n" "$supported" >&6; }
6688		if test "$supported" = "yes" ; then
6689			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6690			found="yes"
6691		fi
6692	fi
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708xorg_testset_save_CFLAGS="$CFLAGS"
6709
6710if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6711	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6712	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6713printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6714if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6715then :
6716  printf %s "(cached) " >&6
6717else case e in #(
6718  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719/* end confdefs.h.  */
6720int i;
6721_ACEOF
6722if ac_fn_c_try_compile "$LINENO"
6723then :
6724  xorg_cv_cc_flag_unknown_warning_option=yes
6725else case e in #(
6726  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6727esac
6728fi
6729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6730esac
6731fi
6732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6733printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6734	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6735	CFLAGS="$xorg_testset_save_CFLAGS"
6736fi
6737
6738if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6739	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6740		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6741	fi
6742	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6743	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6744printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6745if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6746then :
6747  printf %s "(cached) " >&6
6748else case e in #(
6749  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750/* end confdefs.h.  */
6751int i;
6752_ACEOF
6753if ac_fn_c_try_compile "$LINENO"
6754then :
6755  xorg_cv_cc_flag_unused_command_line_argument=yes
6756else case e in #(
6757  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6758esac
6759fi
6760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6761esac
6762fi
6763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6764printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6765	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6766	CFLAGS="$xorg_testset_save_CFLAGS"
6767fi
6768
6769found="no"
6770
6771	if test $found = "no" ; then
6772		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6773			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6774		fi
6775
6776		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6777			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6778		fi
6779
6780		CFLAGS="$CFLAGS -Wmissing-noreturn"
6781
6782		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6783printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6784		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6785		if eval test \${$cacheid+y}
6786then :
6787  printf %s "(cached) " >&6
6788else case e in #(
6789  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790/* end confdefs.h.  */
6791int i;
6792int
6793main (void)
6794{
6795
6796  ;
6797  return 0;
6798}
6799_ACEOF
6800if ac_fn_c_try_link "$LINENO"
6801then :
6802  eval $cacheid=yes
6803else case e in #(
6804  e) eval $cacheid=no ;;
6805esac
6806fi
6807rm -f core conftest.err conftest.$ac_objext conftest.beam \
6808    conftest$ac_exeext conftest.$ac_ext ;;
6809esac
6810fi
6811
6812
6813		CFLAGS="$xorg_testset_save_CFLAGS"
6814
6815		eval supported=\$$cacheid
6816		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6817printf "%s\n" "$supported" >&6; }
6818		if test "$supported" = "yes" ; then
6819			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6820			found="yes"
6821		fi
6822	fi
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838xorg_testset_save_CFLAGS="$CFLAGS"
6839
6840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6841	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6842	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6843printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6844if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6845then :
6846  printf %s "(cached) " >&6
6847else case e in #(
6848  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849/* end confdefs.h.  */
6850int i;
6851_ACEOF
6852if ac_fn_c_try_compile "$LINENO"
6853then :
6854  xorg_cv_cc_flag_unknown_warning_option=yes
6855else case e in #(
6856  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6857esac
6858fi
6859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6860esac
6861fi
6862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6863printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6864	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6865	CFLAGS="$xorg_testset_save_CFLAGS"
6866fi
6867
6868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6869	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6870		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6871	fi
6872	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6873	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6874printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6875if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6876then :
6877  printf %s "(cached) " >&6
6878else case e in #(
6879  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880/* end confdefs.h.  */
6881int i;
6882_ACEOF
6883if ac_fn_c_try_compile "$LINENO"
6884then :
6885  xorg_cv_cc_flag_unused_command_line_argument=yes
6886else case e in #(
6887  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6888esac
6889fi
6890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6891esac
6892fi
6893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6894printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6895	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6896	CFLAGS="$xorg_testset_save_CFLAGS"
6897fi
6898
6899found="no"
6900
6901	if test $found = "no" ; then
6902		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6903			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6904		fi
6905
6906		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6907			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6908		fi
6909
6910		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6911
6912		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6913printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6914		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6915		if eval test \${$cacheid+y}
6916then :
6917  printf %s "(cached) " >&6
6918else case e in #(
6919  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920/* end confdefs.h.  */
6921int i;
6922int
6923main (void)
6924{
6925
6926  ;
6927  return 0;
6928}
6929_ACEOF
6930if ac_fn_c_try_link "$LINENO"
6931then :
6932  eval $cacheid=yes
6933else case e in #(
6934  e) eval $cacheid=no ;;
6935esac
6936fi
6937rm -f core conftest.err conftest.$ac_objext conftest.beam \
6938    conftest$ac_exeext conftest.$ac_ext ;;
6939esac
6940fi
6941
6942
6943		CFLAGS="$xorg_testset_save_CFLAGS"
6944
6945		eval supported=\$$cacheid
6946		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6947printf "%s\n" "$supported" >&6; }
6948		if test "$supported" = "yes" ; then
6949			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6950			found="yes"
6951		fi
6952	fi
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968xorg_testset_save_CFLAGS="$CFLAGS"
6969
6970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6971	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6972	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6973printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6974if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6975then :
6976  printf %s "(cached) " >&6
6977else case e in #(
6978  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979/* end confdefs.h.  */
6980int i;
6981_ACEOF
6982if ac_fn_c_try_compile "$LINENO"
6983then :
6984  xorg_cv_cc_flag_unknown_warning_option=yes
6985else case e in #(
6986  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6987esac
6988fi
6989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6990esac
6991fi
6992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6993printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6994	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6995	CFLAGS="$xorg_testset_save_CFLAGS"
6996fi
6997
6998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6999	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7000		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7001	fi
7002	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7003	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7004printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7005if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7006then :
7007  printf %s "(cached) " >&6
7008else case e in #(
7009  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010/* end confdefs.h.  */
7011int i;
7012_ACEOF
7013if ac_fn_c_try_compile "$LINENO"
7014then :
7015  xorg_cv_cc_flag_unused_command_line_argument=yes
7016else case e in #(
7017  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7018esac
7019fi
7020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7021esac
7022fi
7023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7024printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7025	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7026	CFLAGS="$xorg_testset_save_CFLAGS"
7027fi
7028
7029found="no"
7030
7031	if test $found = "no" ; then
7032		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7033			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7034		fi
7035
7036		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7037			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7038		fi
7039
7040		CFLAGS="$CFLAGS -Wredundant-decls"
7041
7042		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7043printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7044		cacheid=xorg_cv_cc_flag__Wredundant_decls
7045		if eval test \${$cacheid+y}
7046then :
7047  printf %s "(cached) " >&6
7048else case e in #(
7049  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050/* end confdefs.h.  */
7051int i;
7052int
7053main (void)
7054{
7055
7056  ;
7057  return 0;
7058}
7059_ACEOF
7060if ac_fn_c_try_link "$LINENO"
7061then :
7062  eval $cacheid=yes
7063else case e in #(
7064  e) eval $cacheid=no ;;
7065esac
7066fi
7067rm -f core conftest.err conftest.$ac_objext conftest.beam \
7068    conftest$ac_exeext conftest.$ac_ext ;;
7069esac
7070fi
7071
7072
7073		CFLAGS="$xorg_testset_save_CFLAGS"
7074
7075		eval supported=\$$cacheid
7076		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7077printf "%s\n" "$supported" >&6; }
7078		if test "$supported" = "yes" ; then
7079			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7080			found="yes"
7081		fi
7082	fi
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098xorg_testset_save_CFLAGS="$CFLAGS"
7099
7100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7101	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7102	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7103printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7104if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7105then :
7106  printf %s "(cached) " >&6
7107else case e in #(
7108  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109/* end confdefs.h.  */
7110int i;
7111_ACEOF
7112if ac_fn_c_try_compile "$LINENO"
7113then :
7114  xorg_cv_cc_flag_unknown_warning_option=yes
7115else case e in #(
7116  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7117esac
7118fi
7119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7120esac
7121fi
7122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7123printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7124	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7125	CFLAGS="$xorg_testset_save_CFLAGS"
7126fi
7127
7128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7129	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7130		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7131	fi
7132	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7133	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7134printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7135if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7136then :
7137  printf %s "(cached) " >&6
7138else case e in #(
7139  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140/* end confdefs.h.  */
7141int i;
7142_ACEOF
7143if ac_fn_c_try_compile "$LINENO"
7144then :
7145  xorg_cv_cc_flag_unused_command_line_argument=yes
7146else case e in #(
7147  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7148esac
7149fi
7150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7151esac
7152fi
7153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7154printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7155	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7156	CFLAGS="$xorg_testset_save_CFLAGS"
7157fi
7158
7159found="no"
7160
7161	if test $found = "no" ; then
7162		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7163			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7164		fi
7165
7166		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7167			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7168		fi
7169
7170		CFLAGS="$CFLAGS -Wlogical-op"
7171
7172		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7173printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7174		cacheid=xorg_cv_cc_flag__Wlogical_op
7175		if eval test \${$cacheid+y}
7176then :
7177  printf %s "(cached) " >&6
7178else case e in #(
7179  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180/* end confdefs.h.  */
7181int i;
7182int
7183main (void)
7184{
7185
7186  ;
7187  return 0;
7188}
7189_ACEOF
7190if ac_fn_c_try_link "$LINENO"
7191then :
7192  eval $cacheid=yes
7193else case e in #(
7194  e) eval $cacheid=no ;;
7195esac
7196fi
7197rm -f core conftest.err conftest.$ac_objext conftest.beam \
7198    conftest$ac_exeext conftest.$ac_ext ;;
7199esac
7200fi
7201
7202
7203		CFLAGS="$xorg_testset_save_CFLAGS"
7204
7205		eval supported=\$$cacheid
7206		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7207printf "%s\n" "$supported" >&6; }
7208		if test "$supported" = "yes" ; then
7209			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7210			found="yes"
7211		fi
7212	fi
7213
7214
7215
7216# These are currently disabled because they are noisy.  They will be enabled
7217# in the future once the codebase is sufficiently modernized to silence
7218# them.  For now, I don't want them to drown out the other warnings.
7219# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7220# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7221# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7222
7223# Turn some warnings into errors, so we don't accidentally get successful builds
7224# when there are problems that should be fixed.
7225
7226if test "x$SELECTIVE_WERROR" = "xyes" ; then
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240xorg_testset_save_CFLAGS="$CFLAGS"
7241
7242if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7243	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7244	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7245printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7246if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7247then :
7248  printf %s "(cached) " >&6
7249else case e in #(
7250  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251/* end confdefs.h.  */
7252int i;
7253_ACEOF
7254if ac_fn_c_try_compile "$LINENO"
7255then :
7256  xorg_cv_cc_flag_unknown_warning_option=yes
7257else case e in #(
7258  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7259esac
7260fi
7261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7262esac
7263fi
7264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7265printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7266	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7267	CFLAGS="$xorg_testset_save_CFLAGS"
7268fi
7269
7270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7271	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7272		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7273	fi
7274	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7275	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7276printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7277if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7278then :
7279  printf %s "(cached) " >&6
7280else case e in #(
7281  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282/* end confdefs.h.  */
7283int i;
7284_ACEOF
7285if ac_fn_c_try_compile "$LINENO"
7286then :
7287  xorg_cv_cc_flag_unused_command_line_argument=yes
7288else case e in #(
7289  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7290esac
7291fi
7292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7293esac
7294fi
7295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7296printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7297	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7298	CFLAGS="$xorg_testset_save_CFLAGS"
7299fi
7300
7301found="no"
7302
7303	if test $found = "no" ; then
7304		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7305			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7306		fi
7307
7308		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7309			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7310		fi
7311
7312		CFLAGS="$CFLAGS -Werror=implicit"
7313
7314		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7315printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7316		cacheid=xorg_cv_cc_flag__Werror_implicit
7317		if eval test \${$cacheid+y}
7318then :
7319  printf %s "(cached) " >&6
7320else case e in #(
7321  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322/* end confdefs.h.  */
7323int i;
7324int
7325main (void)
7326{
7327
7328  ;
7329  return 0;
7330}
7331_ACEOF
7332if ac_fn_c_try_link "$LINENO"
7333then :
7334  eval $cacheid=yes
7335else case e in #(
7336  e) eval $cacheid=no ;;
7337esac
7338fi
7339rm -f core conftest.err conftest.$ac_objext conftest.beam \
7340    conftest$ac_exeext conftest.$ac_ext ;;
7341esac
7342fi
7343
7344
7345		CFLAGS="$xorg_testset_save_CFLAGS"
7346
7347		eval supported=\$$cacheid
7348		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7349printf "%s\n" "$supported" >&6; }
7350		if test "$supported" = "yes" ; then
7351			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7352			found="yes"
7353		fi
7354	fi
7355
7356	if test $found = "no" ; then
7357		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7358			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7359		fi
7360
7361		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7362			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7363		fi
7364
7365		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7366
7367		{ 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
7368printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7369		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7370		if eval test \${$cacheid+y}
7371then :
7372  printf %s "(cached) " >&6
7373else case e in #(
7374  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375/* end confdefs.h.  */
7376int i;
7377int
7378main (void)
7379{
7380
7381  ;
7382  return 0;
7383}
7384_ACEOF
7385if ac_fn_c_try_link "$LINENO"
7386then :
7387  eval $cacheid=yes
7388else case e in #(
7389  e) eval $cacheid=no ;;
7390esac
7391fi
7392rm -f core conftest.err conftest.$ac_objext conftest.beam \
7393    conftest$ac_exeext conftest.$ac_ext ;;
7394esac
7395fi
7396
7397
7398		CFLAGS="$xorg_testset_save_CFLAGS"
7399
7400		eval supported=\$$cacheid
7401		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7402printf "%s\n" "$supported" >&6; }
7403		if test "$supported" = "yes" ; then
7404			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7405			found="yes"
7406		fi
7407	fi
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423xorg_testset_save_CFLAGS="$CFLAGS"
7424
7425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7426	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7427	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7428printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7429if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7430then :
7431  printf %s "(cached) " >&6
7432else case e in #(
7433  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434/* end confdefs.h.  */
7435int i;
7436_ACEOF
7437if ac_fn_c_try_compile "$LINENO"
7438then :
7439  xorg_cv_cc_flag_unknown_warning_option=yes
7440else case e in #(
7441  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7442esac
7443fi
7444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7445esac
7446fi
7447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7448printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7449	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7450	CFLAGS="$xorg_testset_save_CFLAGS"
7451fi
7452
7453if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7454	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7455		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7456	fi
7457	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7458	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7459printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7460if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7461then :
7462  printf %s "(cached) " >&6
7463else case e in #(
7464  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465/* end confdefs.h.  */
7466int i;
7467_ACEOF
7468if ac_fn_c_try_compile "$LINENO"
7469then :
7470  xorg_cv_cc_flag_unused_command_line_argument=yes
7471else case e in #(
7472  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7473esac
7474fi
7475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7476esac
7477fi
7478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7479printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7480	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7481	CFLAGS="$xorg_testset_save_CFLAGS"
7482fi
7483
7484found="no"
7485
7486	if test $found = "no" ; then
7487		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7488			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7489		fi
7490
7491		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7492			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7493		fi
7494
7495		CFLAGS="$CFLAGS -Werror=nonnull"
7496
7497		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7498printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7499		cacheid=xorg_cv_cc_flag__Werror_nonnull
7500		if eval test \${$cacheid+y}
7501then :
7502  printf %s "(cached) " >&6
7503else case e in #(
7504  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505/* end confdefs.h.  */
7506int i;
7507int
7508main (void)
7509{
7510
7511  ;
7512  return 0;
7513}
7514_ACEOF
7515if ac_fn_c_try_link "$LINENO"
7516then :
7517  eval $cacheid=yes
7518else case e in #(
7519  e) eval $cacheid=no ;;
7520esac
7521fi
7522rm -f core conftest.err conftest.$ac_objext conftest.beam \
7523    conftest$ac_exeext conftest.$ac_ext ;;
7524esac
7525fi
7526
7527
7528		CFLAGS="$xorg_testset_save_CFLAGS"
7529
7530		eval supported=\$$cacheid
7531		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7532printf "%s\n" "$supported" >&6; }
7533		if test "$supported" = "yes" ; then
7534			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7535			found="yes"
7536		fi
7537	fi
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553xorg_testset_save_CFLAGS="$CFLAGS"
7554
7555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7556	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7557	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7558printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7559if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7560then :
7561  printf %s "(cached) " >&6
7562else case e in #(
7563  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564/* end confdefs.h.  */
7565int i;
7566_ACEOF
7567if ac_fn_c_try_compile "$LINENO"
7568then :
7569  xorg_cv_cc_flag_unknown_warning_option=yes
7570else case e in #(
7571  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7572esac
7573fi
7574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7575esac
7576fi
7577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7578printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7579	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7580	CFLAGS="$xorg_testset_save_CFLAGS"
7581fi
7582
7583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7584	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7585		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7586	fi
7587	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7588	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7589printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7590if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7591then :
7592  printf %s "(cached) " >&6
7593else case e in #(
7594  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595/* end confdefs.h.  */
7596int i;
7597_ACEOF
7598if ac_fn_c_try_compile "$LINENO"
7599then :
7600  xorg_cv_cc_flag_unused_command_line_argument=yes
7601else case e in #(
7602  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7603esac
7604fi
7605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7606esac
7607fi
7608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7609printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7610	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7611	CFLAGS="$xorg_testset_save_CFLAGS"
7612fi
7613
7614found="no"
7615
7616	if test $found = "no" ; then
7617		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7618			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7619		fi
7620
7621		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7622			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7623		fi
7624
7625		CFLAGS="$CFLAGS -Werror=init-self"
7626
7627		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7628printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7629		cacheid=xorg_cv_cc_flag__Werror_init_self
7630		if eval test \${$cacheid+y}
7631then :
7632  printf %s "(cached) " >&6
7633else case e in #(
7634  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635/* end confdefs.h.  */
7636int i;
7637int
7638main (void)
7639{
7640
7641  ;
7642  return 0;
7643}
7644_ACEOF
7645if ac_fn_c_try_link "$LINENO"
7646then :
7647  eval $cacheid=yes
7648else case e in #(
7649  e) eval $cacheid=no ;;
7650esac
7651fi
7652rm -f core conftest.err conftest.$ac_objext conftest.beam \
7653    conftest$ac_exeext conftest.$ac_ext ;;
7654esac
7655fi
7656
7657
7658		CFLAGS="$xorg_testset_save_CFLAGS"
7659
7660		eval supported=\$$cacheid
7661		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7662printf "%s\n" "$supported" >&6; }
7663		if test "$supported" = "yes" ; then
7664			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7665			found="yes"
7666		fi
7667	fi
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683xorg_testset_save_CFLAGS="$CFLAGS"
7684
7685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7686	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7687	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7688printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7689if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7690then :
7691  printf %s "(cached) " >&6
7692else case e in #(
7693  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694/* end confdefs.h.  */
7695int i;
7696_ACEOF
7697if ac_fn_c_try_compile "$LINENO"
7698then :
7699  xorg_cv_cc_flag_unknown_warning_option=yes
7700else case e in #(
7701  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7702esac
7703fi
7704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7705esac
7706fi
7707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7708printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7709	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7710	CFLAGS="$xorg_testset_save_CFLAGS"
7711fi
7712
7713if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7714	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7715		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7716	fi
7717	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7718	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7719printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7720if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7721then :
7722  printf %s "(cached) " >&6
7723else case e in #(
7724  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725/* end confdefs.h.  */
7726int i;
7727_ACEOF
7728if ac_fn_c_try_compile "$LINENO"
7729then :
7730  xorg_cv_cc_flag_unused_command_line_argument=yes
7731else case e in #(
7732  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7733esac
7734fi
7735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7736esac
7737fi
7738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7739printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7740	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7741	CFLAGS="$xorg_testset_save_CFLAGS"
7742fi
7743
7744found="no"
7745
7746	if test $found = "no" ; then
7747		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7748			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7749		fi
7750
7751		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7752			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7753		fi
7754
7755		CFLAGS="$CFLAGS -Werror=main"
7756
7757		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7758printf %s "checking if $CC supports -Werror=main... " >&6; }
7759		cacheid=xorg_cv_cc_flag__Werror_main
7760		if eval test \${$cacheid+y}
7761then :
7762  printf %s "(cached) " >&6
7763else case e in #(
7764  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765/* end confdefs.h.  */
7766int i;
7767int
7768main (void)
7769{
7770
7771  ;
7772  return 0;
7773}
7774_ACEOF
7775if ac_fn_c_try_link "$LINENO"
7776then :
7777  eval $cacheid=yes
7778else case e in #(
7779  e) eval $cacheid=no ;;
7780esac
7781fi
7782rm -f core conftest.err conftest.$ac_objext conftest.beam \
7783    conftest$ac_exeext conftest.$ac_ext ;;
7784esac
7785fi
7786
7787
7788		CFLAGS="$xorg_testset_save_CFLAGS"
7789
7790		eval supported=\$$cacheid
7791		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7792printf "%s\n" "$supported" >&6; }
7793		if test "$supported" = "yes" ; then
7794			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7795			found="yes"
7796		fi
7797	fi
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813xorg_testset_save_CFLAGS="$CFLAGS"
7814
7815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7816	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7817	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7818printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7819if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7820then :
7821  printf %s "(cached) " >&6
7822else case e in #(
7823  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824/* end confdefs.h.  */
7825int i;
7826_ACEOF
7827if ac_fn_c_try_compile "$LINENO"
7828then :
7829  xorg_cv_cc_flag_unknown_warning_option=yes
7830else case e in #(
7831  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7832esac
7833fi
7834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7835esac
7836fi
7837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7838printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7839	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7840	CFLAGS="$xorg_testset_save_CFLAGS"
7841fi
7842
7843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7844	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7845		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7846	fi
7847	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7848	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7849printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7850if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7851then :
7852  printf %s "(cached) " >&6
7853else case e in #(
7854  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855/* end confdefs.h.  */
7856int i;
7857_ACEOF
7858if ac_fn_c_try_compile "$LINENO"
7859then :
7860  xorg_cv_cc_flag_unused_command_line_argument=yes
7861else case e in #(
7862  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7863esac
7864fi
7865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7866esac
7867fi
7868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7869printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7870	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7871	CFLAGS="$xorg_testset_save_CFLAGS"
7872fi
7873
7874found="no"
7875
7876	if test $found = "no" ; then
7877		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7878			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7879		fi
7880
7881		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7882			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7883		fi
7884
7885		CFLAGS="$CFLAGS -Werror=missing-braces"
7886
7887		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7888printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7889		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7890		if eval test \${$cacheid+y}
7891then :
7892  printf %s "(cached) " >&6
7893else case e in #(
7894  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895/* end confdefs.h.  */
7896int i;
7897int
7898main (void)
7899{
7900
7901  ;
7902  return 0;
7903}
7904_ACEOF
7905if ac_fn_c_try_link "$LINENO"
7906then :
7907  eval $cacheid=yes
7908else case e in #(
7909  e) eval $cacheid=no ;;
7910esac
7911fi
7912rm -f core conftest.err conftest.$ac_objext conftest.beam \
7913    conftest$ac_exeext conftest.$ac_ext ;;
7914esac
7915fi
7916
7917
7918		CFLAGS="$xorg_testset_save_CFLAGS"
7919
7920		eval supported=\$$cacheid
7921		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7922printf "%s\n" "$supported" >&6; }
7923		if test "$supported" = "yes" ; then
7924			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7925			found="yes"
7926		fi
7927	fi
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943xorg_testset_save_CFLAGS="$CFLAGS"
7944
7945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7946	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7947	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7948printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7949if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7950then :
7951  printf %s "(cached) " >&6
7952else case e in #(
7953  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954/* end confdefs.h.  */
7955int i;
7956_ACEOF
7957if ac_fn_c_try_compile "$LINENO"
7958then :
7959  xorg_cv_cc_flag_unknown_warning_option=yes
7960else case e in #(
7961  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7962esac
7963fi
7964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7965esac
7966fi
7967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7968printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7970	CFLAGS="$xorg_testset_save_CFLAGS"
7971fi
7972
7973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7976	fi
7977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7978	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7979printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7980if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7981then :
7982  printf %s "(cached) " >&6
7983else case e in #(
7984  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985/* end confdefs.h.  */
7986int i;
7987_ACEOF
7988if ac_fn_c_try_compile "$LINENO"
7989then :
7990  xorg_cv_cc_flag_unused_command_line_argument=yes
7991else case e in #(
7992  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7993esac
7994fi
7995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7996esac
7997fi
7998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7999printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8000	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8001	CFLAGS="$xorg_testset_save_CFLAGS"
8002fi
8003
8004found="no"
8005
8006	if test $found = "no" ; then
8007		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8008			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8009		fi
8010
8011		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8012			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8013		fi
8014
8015		CFLAGS="$CFLAGS -Werror=sequence-point"
8016
8017		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8018printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8019		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8020		if eval test \${$cacheid+y}
8021then :
8022  printf %s "(cached) " >&6
8023else case e in #(
8024  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025/* end confdefs.h.  */
8026int i;
8027int
8028main (void)
8029{
8030
8031  ;
8032  return 0;
8033}
8034_ACEOF
8035if ac_fn_c_try_link "$LINENO"
8036then :
8037  eval $cacheid=yes
8038else case e in #(
8039  e) eval $cacheid=no ;;
8040esac
8041fi
8042rm -f core conftest.err conftest.$ac_objext conftest.beam \
8043    conftest$ac_exeext conftest.$ac_ext ;;
8044esac
8045fi
8046
8047
8048		CFLAGS="$xorg_testset_save_CFLAGS"
8049
8050		eval supported=\$$cacheid
8051		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8052printf "%s\n" "$supported" >&6; }
8053		if test "$supported" = "yes" ; then
8054			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8055			found="yes"
8056		fi
8057	fi
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073xorg_testset_save_CFLAGS="$CFLAGS"
8074
8075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8076	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8077	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8078printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8079if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8080then :
8081  printf %s "(cached) " >&6
8082else case e in #(
8083  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084/* end confdefs.h.  */
8085int i;
8086_ACEOF
8087if ac_fn_c_try_compile "$LINENO"
8088then :
8089  xorg_cv_cc_flag_unknown_warning_option=yes
8090else case e in #(
8091  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8092esac
8093fi
8094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8095esac
8096fi
8097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8098printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8099	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8100	CFLAGS="$xorg_testset_save_CFLAGS"
8101fi
8102
8103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8104	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8105		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8106	fi
8107	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8108	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8109printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8110if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8111then :
8112  printf %s "(cached) " >&6
8113else case e in #(
8114  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115/* end confdefs.h.  */
8116int i;
8117_ACEOF
8118if ac_fn_c_try_compile "$LINENO"
8119then :
8120  xorg_cv_cc_flag_unused_command_line_argument=yes
8121else case e in #(
8122  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8123esac
8124fi
8125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8126esac
8127fi
8128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8129printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8130	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8131	CFLAGS="$xorg_testset_save_CFLAGS"
8132fi
8133
8134found="no"
8135
8136	if test $found = "no" ; then
8137		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8139		fi
8140
8141		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8143		fi
8144
8145		CFLAGS="$CFLAGS -Werror=return-type"
8146
8147		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8148printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8149		cacheid=xorg_cv_cc_flag__Werror_return_type
8150		if eval test \${$cacheid+y}
8151then :
8152  printf %s "(cached) " >&6
8153else case e in #(
8154  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155/* end confdefs.h.  */
8156int i;
8157int
8158main (void)
8159{
8160
8161  ;
8162  return 0;
8163}
8164_ACEOF
8165if ac_fn_c_try_link "$LINENO"
8166then :
8167  eval $cacheid=yes
8168else case e in #(
8169  e) eval $cacheid=no ;;
8170esac
8171fi
8172rm -f core conftest.err conftest.$ac_objext conftest.beam \
8173    conftest$ac_exeext conftest.$ac_ext ;;
8174esac
8175fi
8176
8177
8178		CFLAGS="$xorg_testset_save_CFLAGS"
8179
8180		eval supported=\$$cacheid
8181		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8182printf "%s\n" "$supported" >&6; }
8183		if test "$supported" = "yes" ; then
8184			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8185			found="yes"
8186		fi
8187	fi
8188
8189	if test $found = "no" ; then
8190		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8191			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8192		fi
8193
8194		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8195			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8196		fi
8197
8198		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8199
8200		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8201printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8202		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8203		if eval test \${$cacheid+y}
8204then :
8205  printf %s "(cached) " >&6
8206else case e in #(
8207  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208/* end confdefs.h.  */
8209int i;
8210int
8211main (void)
8212{
8213
8214  ;
8215  return 0;
8216}
8217_ACEOF
8218if ac_fn_c_try_link "$LINENO"
8219then :
8220  eval $cacheid=yes
8221else case e in #(
8222  e) eval $cacheid=no ;;
8223esac
8224fi
8225rm -f core conftest.err conftest.$ac_objext conftest.beam \
8226    conftest$ac_exeext conftest.$ac_ext ;;
8227esac
8228fi
8229
8230
8231		CFLAGS="$xorg_testset_save_CFLAGS"
8232
8233		eval supported=\$$cacheid
8234		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8235printf "%s\n" "$supported" >&6; }
8236		if test "$supported" = "yes" ; then
8237			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8238			found="yes"
8239		fi
8240	fi
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256xorg_testset_save_CFLAGS="$CFLAGS"
8257
8258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8259	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8260	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8261printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8262if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8263then :
8264  printf %s "(cached) " >&6
8265else case e in #(
8266  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267/* end confdefs.h.  */
8268int i;
8269_ACEOF
8270if ac_fn_c_try_compile "$LINENO"
8271then :
8272  xorg_cv_cc_flag_unknown_warning_option=yes
8273else case e in #(
8274  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8275esac
8276fi
8277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8278esac
8279fi
8280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8281printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8282	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8283	CFLAGS="$xorg_testset_save_CFLAGS"
8284fi
8285
8286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8287	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8288		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8289	fi
8290	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8291	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8292printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8293if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8294then :
8295  printf %s "(cached) " >&6
8296else case e in #(
8297  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298/* end confdefs.h.  */
8299int i;
8300_ACEOF
8301if ac_fn_c_try_compile "$LINENO"
8302then :
8303  xorg_cv_cc_flag_unused_command_line_argument=yes
8304else case e in #(
8305  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8306esac
8307fi
8308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8309esac
8310fi
8311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8312printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8313	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8314	CFLAGS="$xorg_testset_save_CFLAGS"
8315fi
8316
8317found="no"
8318
8319	if test $found = "no" ; then
8320		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8321			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8322		fi
8323
8324		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8325			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8326		fi
8327
8328		CFLAGS="$CFLAGS -Werror=trigraphs"
8329
8330		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8331printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8332		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8333		if eval test \${$cacheid+y}
8334then :
8335  printf %s "(cached) " >&6
8336else case e in #(
8337  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338/* end confdefs.h.  */
8339int i;
8340int
8341main (void)
8342{
8343
8344  ;
8345  return 0;
8346}
8347_ACEOF
8348if ac_fn_c_try_link "$LINENO"
8349then :
8350  eval $cacheid=yes
8351else case e in #(
8352  e) eval $cacheid=no ;;
8353esac
8354fi
8355rm -f core conftest.err conftest.$ac_objext conftest.beam \
8356    conftest$ac_exeext conftest.$ac_ext ;;
8357esac
8358fi
8359
8360
8361		CFLAGS="$xorg_testset_save_CFLAGS"
8362
8363		eval supported=\$$cacheid
8364		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8365printf "%s\n" "$supported" >&6; }
8366		if test "$supported" = "yes" ; then
8367			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8368			found="yes"
8369		fi
8370	fi
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386xorg_testset_save_CFLAGS="$CFLAGS"
8387
8388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8389	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8390	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8391printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8392if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8393then :
8394  printf %s "(cached) " >&6
8395else case e in #(
8396  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397/* end confdefs.h.  */
8398int i;
8399_ACEOF
8400if ac_fn_c_try_compile "$LINENO"
8401then :
8402  xorg_cv_cc_flag_unknown_warning_option=yes
8403else case e in #(
8404  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8405esac
8406fi
8407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8408esac
8409fi
8410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8411printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8412	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8413	CFLAGS="$xorg_testset_save_CFLAGS"
8414fi
8415
8416if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8417	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8418		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8419	fi
8420	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8421	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8422printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8423if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8424then :
8425  printf %s "(cached) " >&6
8426else case e in #(
8427  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428/* end confdefs.h.  */
8429int i;
8430_ACEOF
8431if ac_fn_c_try_compile "$LINENO"
8432then :
8433  xorg_cv_cc_flag_unused_command_line_argument=yes
8434else case e in #(
8435  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8436esac
8437fi
8438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8439esac
8440fi
8441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8442printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8443	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8444	CFLAGS="$xorg_testset_save_CFLAGS"
8445fi
8446
8447found="no"
8448
8449	if test $found = "no" ; then
8450		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8451			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8452		fi
8453
8454		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8455			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8456		fi
8457
8458		CFLAGS="$CFLAGS -Werror=array-bounds"
8459
8460		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8461printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8462		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8463		if eval test \${$cacheid+y}
8464then :
8465  printf %s "(cached) " >&6
8466else case e in #(
8467  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468/* end confdefs.h.  */
8469int i;
8470int
8471main (void)
8472{
8473
8474  ;
8475  return 0;
8476}
8477_ACEOF
8478if ac_fn_c_try_link "$LINENO"
8479then :
8480  eval $cacheid=yes
8481else case e in #(
8482  e) eval $cacheid=no ;;
8483esac
8484fi
8485rm -f core conftest.err conftest.$ac_objext conftest.beam \
8486    conftest$ac_exeext conftest.$ac_ext ;;
8487esac
8488fi
8489
8490
8491		CFLAGS="$xorg_testset_save_CFLAGS"
8492
8493		eval supported=\$$cacheid
8494		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8495printf "%s\n" "$supported" >&6; }
8496		if test "$supported" = "yes" ; then
8497			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8498			found="yes"
8499		fi
8500	fi
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516xorg_testset_save_CFLAGS="$CFLAGS"
8517
8518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8519	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8520	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8521printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8522if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8523then :
8524  printf %s "(cached) " >&6
8525else case e in #(
8526  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527/* end confdefs.h.  */
8528int i;
8529_ACEOF
8530if ac_fn_c_try_compile "$LINENO"
8531then :
8532  xorg_cv_cc_flag_unknown_warning_option=yes
8533else case e in #(
8534  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8535esac
8536fi
8537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8538esac
8539fi
8540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8541printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8542	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8543	CFLAGS="$xorg_testset_save_CFLAGS"
8544fi
8545
8546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8547	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8548		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8549	fi
8550	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8551	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8552printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8553if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8554then :
8555  printf %s "(cached) " >&6
8556else case e in #(
8557  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558/* end confdefs.h.  */
8559int i;
8560_ACEOF
8561if ac_fn_c_try_compile "$LINENO"
8562then :
8563  xorg_cv_cc_flag_unused_command_line_argument=yes
8564else case e in #(
8565  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8566esac
8567fi
8568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8569esac
8570fi
8571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8572printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8573	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8574	CFLAGS="$xorg_testset_save_CFLAGS"
8575fi
8576
8577found="no"
8578
8579	if test $found = "no" ; then
8580		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8581			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8582		fi
8583
8584		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8585			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8586		fi
8587
8588		CFLAGS="$CFLAGS -Werror=write-strings"
8589
8590		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8591printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8592		cacheid=xorg_cv_cc_flag__Werror_write_strings
8593		if eval test \${$cacheid+y}
8594then :
8595  printf %s "(cached) " >&6
8596else case e in #(
8597  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598/* end confdefs.h.  */
8599int i;
8600int
8601main (void)
8602{
8603
8604  ;
8605  return 0;
8606}
8607_ACEOF
8608if ac_fn_c_try_link "$LINENO"
8609then :
8610  eval $cacheid=yes
8611else case e in #(
8612  e) eval $cacheid=no ;;
8613esac
8614fi
8615rm -f core conftest.err conftest.$ac_objext conftest.beam \
8616    conftest$ac_exeext conftest.$ac_ext ;;
8617esac
8618fi
8619
8620
8621		CFLAGS="$xorg_testset_save_CFLAGS"
8622
8623		eval supported=\$$cacheid
8624		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8625printf "%s\n" "$supported" >&6; }
8626		if test "$supported" = "yes" ; then
8627			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8628			found="yes"
8629		fi
8630	fi
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646xorg_testset_save_CFLAGS="$CFLAGS"
8647
8648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8649	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8650	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8651printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8652if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8653then :
8654  printf %s "(cached) " >&6
8655else case e in #(
8656  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657/* end confdefs.h.  */
8658int i;
8659_ACEOF
8660if ac_fn_c_try_compile "$LINENO"
8661then :
8662  xorg_cv_cc_flag_unknown_warning_option=yes
8663else case e in #(
8664  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8665esac
8666fi
8667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8668esac
8669fi
8670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8671printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8672	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8673	CFLAGS="$xorg_testset_save_CFLAGS"
8674fi
8675
8676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8677	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8678		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8679	fi
8680	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8681	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8682printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8683if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8684then :
8685  printf %s "(cached) " >&6
8686else case e in #(
8687  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688/* end confdefs.h.  */
8689int i;
8690_ACEOF
8691if ac_fn_c_try_compile "$LINENO"
8692then :
8693  xorg_cv_cc_flag_unused_command_line_argument=yes
8694else case e in #(
8695  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8696esac
8697fi
8698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8699esac
8700fi
8701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8702printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8703	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8704	CFLAGS="$xorg_testset_save_CFLAGS"
8705fi
8706
8707found="no"
8708
8709	if test $found = "no" ; then
8710		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8711			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8712		fi
8713
8714		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8715			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8716		fi
8717
8718		CFLAGS="$CFLAGS -Werror=address"
8719
8720		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8721printf %s "checking if $CC supports -Werror=address... " >&6; }
8722		cacheid=xorg_cv_cc_flag__Werror_address
8723		if eval test \${$cacheid+y}
8724then :
8725  printf %s "(cached) " >&6
8726else case e in #(
8727  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728/* end confdefs.h.  */
8729int i;
8730int
8731main (void)
8732{
8733
8734  ;
8735  return 0;
8736}
8737_ACEOF
8738if ac_fn_c_try_link "$LINENO"
8739then :
8740  eval $cacheid=yes
8741else case e in #(
8742  e) eval $cacheid=no ;;
8743esac
8744fi
8745rm -f core conftest.err conftest.$ac_objext conftest.beam \
8746    conftest$ac_exeext conftest.$ac_ext ;;
8747esac
8748fi
8749
8750
8751		CFLAGS="$xorg_testset_save_CFLAGS"
8752
8753		eval supported=\$$cacheid
8754		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8755printf "%s\n" "$supported" >&6; }
8756		if test "$supported" = "yes" ; then
8757			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8758			found="yes"
8759		fi
8760	fi
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776xorg_testset_save_CFLAGS="$CFLAGS"
8777
8778if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8779	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8780	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8781printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8782if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8783then :
8784  printf %s "(cached) " >&6
8785else case e in #(
8786  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8787/* end confdefs.h.  */
8788int i;
8789_ACEOF
8790if ac_fn_c_try_compile "$LINENO"
8791then :
8792  xorg_cv_cc_flag_unknown_warning_option=yes
8793else case e in #(
8794  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8795esac
8796fi
8797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8798esac
8799fi
8800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8801printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8802	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8803	CFLAGS="$xorg_testset_save_CFLAGS"
8804fi
8805
8806if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8807	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8808		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8809	fi
8810	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8811	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8812printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8813if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8814then :
8815  printf %s "(cached) " >&6
8816else case e in #(
8817  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818/* end confdefs.h.  */
8819int i;
8820_ACEOF
8821if ac_fn_c_try_compile "$LINENO"
8822then :
8823  xorg_cv_cc_flag_unused_command_line_argument=yes
8824else case e in #(
8825  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8826esac
8827fi
8828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8829esac
8830fi
8831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8832printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8833	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8834	CFLAGS="$xorg_testset_save_CFLAGS"
8835fi
8836
8837found="no"
8838
8839	if test $found = "no" ; then
8840		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8841			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8842		fi
8843
8844		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8845			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8846		fi
8847
8848		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8849
8850		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8851printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8852		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8853		if eval test \${$cacheid+y}
8854then :
8855  printf %s "(cached) " >&6
8856else case e in #(
8857  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858/* end confdefs.h.  */
8859int i;
8860int
8861main (void)
8862{
8863
8864  ;
8865  return 0;
8866}
8867_ACEOF
8868if ac_fn_c_try_link "$LINENO"
8869then :
8870  eval $cacheid=yes
8871else case e in #(
8872  e) eval $cacheid=no ;;
8873esac
8874fi
8875rm -f core conftest.err conftest.$ac_objext conftest.beam \
8876    conftest$ac_exeext conftest.$ac_ext ;;
8877esac
8878fi
8879
8880
8881		CFLAGS="$xorg_testset_save_CFLAGS"
8882
8883		eval supported=\$$cacheid
8884		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8885printf "%s\n" "$supported" >&6; }
8886		if test "$supported" = "yes" ; then
8887			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8888			found="yes"
8889		fi
8890	fi
8891
8892	if test $found = "no" ; then
8893		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8894			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8895		fi
8896
8897		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8898			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8899		fi
8900
8901		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8902
8903		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8904printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8905		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8906		if eval test \${$cacheid+y}
8907then :
8908  printf %s "(cached) " >&6
8909else case e in #(
8910  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911/* end confdefs.h.  */
8912int i;
8913int
8914main (void)
8915{
8916
8917  ;
8918  return 0;
8919}
8920_ACEOF
8921if ac_fn_c_try_link "$LINENO"
8922then :
8923  eval $cacheid=yes
8924else case e in #(
8925  e) eval $cacheid=no ;;
8926esac
8927fi
8928rm -f core conftest.err conftest.$ac_objext conftest.beam \
8929    conftest$ac_exeext conftest.$ac_ext ;;
8930esac
8931fi
8932
8933
8934		CFLAGS="$xorg_testset_save_CFLAGS"
8935
8936		eval supported=\$$cacheid
8937		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8938printf "%s\n" "$supported" >&6; }
8939		if test "$supported" = "yes" ; then
8940			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8941			found="yes"
8942		fi
8943	fi
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959xorg_testset_save_CFLAGS="$CFLAGS"
8960
8961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8962	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8963	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8964printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8965if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8966then :
8967  printf %s "(cached) " >&6
8968else case e in #(
8969  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970/* end confdefs.h.  */
8971int i;
8972_ACEOF
8973if ac_fn_c_try_compile "$LINENO"
8974then :
8975  xorg_cv_cc_flag_unknown_warning_option=yes
8976else case e in #(
8977  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8978esac
8979fi
8980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8981esac
8982fi
8983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8984printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8985	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8986	CFLAGS="$xorg_testset_save_CFLAGS"
8987fi
8988
8989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8990	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8991		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8992	fi
8993	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8994	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8995printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8996if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8997then :
8998  printf %s "(cached) " >&6
8999else case e in #(
9000  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001/* end confdefs.h.  */
9002int i;
9003_ACEOF
9004if ac_fn_c_try_compile "$LINENO"
9005then :
9006  xorg_cv_cc_flag_unused_command_line_argument=yes
9007else case e in #(
9008  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9009esac
9010fi
9011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9012esac
9013fi
9014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9015printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9016	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9017	CFLAGS="$xorg_testset_save_CFLAGS"
9018fi
9019
9020found="no"
9021
9022	if test $found = "no" ; then
9023		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9024			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9025		fi
9026
9027		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9028			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9029		fi
9030
9031		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9032
9033		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9034printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9035		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9036		if eval test \${$cacheid+y}
9037then :
9038  printf %s "(cached) " >&6
9039else case e in #(
9040  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041/* end confdefs.h.  */
9042int i;
9043int
9044main (void)
9045{
9046
9047  ;
9048  return 0;
9049}
9050_ACEOF
9051if ac_fn_c_try_link "$LINENO"
9052then :
9053  eval $cacheid=yes
9054else case e in #(
9055  e) eval $cacheid=no ;;
9056esac
9057fi
9058rm -f core conftest.err conftest.$ac_objext conftest.beam \
9059    conftest$ac_exeext conftest.$ac_ext ;;
9060esac
9061fi
9062
9063
9064		CFLAGS="$xorg_testset_save_CFLAGS"
9065
9066		eval supported=\$$cacheid
9067		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9068printf "%s\n" "$supported" >&6; }
9069		if test "$supported" = "yes" ; then
9070			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9071			found="yes"
9072		fi
9073	fi
9074
9075 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9076else
9077{ 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
9078printf "%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;}
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092xorg_testset_save_CFLAGS="$CFLAGS"
9093
9094if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9095	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9096	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9097printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9098if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9099then :
9100  printf %s "(cached) " >&6
9101else case e in #(
9102  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103/* end confdefs.h.  */
9104int i;
9105_ACEOF
9106if ac_fn_c_try_compile "$LINENO"
9107then :
9108  xorg_cv_cc_flag_unknown_warning_option=yes
9109else case e in #(
9110  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9111esac
9112fi
9113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9114esac
9115fi
9116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9117printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9118	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9119	CFLAGS="$xorg_testset_save_CFLAGS"
9120fi
9121
9122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9123	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9124		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9125	fi
9126	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9127	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9128printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9129if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9130then :
9131  printf %s "(cached) " >&6
9132else case e in #(
9133  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134/* end confdefs.h.  */
9135int i;
9136_ACEOF
9137if ac_fn_c_try_compile "$LINENO"
9138then :
9139  xorg_cv_cc_flag_unused_command_line_argument=yes
9140else case e in #(
9141  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9142esac
9143fi
9144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9145esac
9146fi
9147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9148printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9149	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9150	CFLAGS="$xorg_testset_save_CFLAGS"
9151fi
9152
9153found="no"
9154
9155	if test $found = "no" ; then
9156		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9157			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9158		fi
9159
9160		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9161			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9162		fi
9163
9164		CFLAGS="$CFLAGS -Wimplicit"
9165
9166		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9167printf %s "checking if $CC supports -Wimplicit... " >&6; }
9168		cacheid=xorg_cv_cc_flag__Wimplicit
9169		if eval test \${$cacheid+y}
9170then :
9171  printf %s "(cached) " >&6
9172else case e in #(
9173  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174/* end confdefs.h.  */
9175int i;
9176int
9177main (void)
9178{
9179
9180  ;
9181  return 0;
9182}
9183_ACEOF
9184if ac_fn_c_try_link "$LINENO"
9185then :
9186  eval $cacheid=yes
9187else case e in #(
9188  e) eval $cacheid=no ;;
9189esac
9190fi
9191rm -f core conftest.err conftest.$ac_objext conftest.beam \
9192    conftest$ac_exeext conftest.$ac_ext ;;
9193esac
9194fi
9195
9196
9197		CFLAGS="$xorg_testset_save_CFLAGS"
9198
9199		eval supported=\$$cacheid
9200		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9201printf "%s\n" "$supported" >&6; }
9202		if test "$supported" = "yes" ; then
9203			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9204			found="yes"
9205		fi
9206	fi
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222xorg_testset_save_CFLAGS="$CFLAGS"
9223
9224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9225	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9226	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9227printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9228if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9229then :
9230  printf %s "(cached) " >&6
9231else case e in #(
9232  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233/* end confdefs.h.  */
9234int i;
9235_ACEOF
9236if ac_fn_c_try_compile "$LINENO"
9237then :
9238  xorg_cv_cc_flag_unknown_warning_option=yes
9239else case e in #(
9240  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9241esac
9242fi
9243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9244esac
9245fi
9246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9247printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9248	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9249	CFLAGS="$xorg_testset_save_CFLAGS"
9250fi
9251
9252if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9253	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9254		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9255	fi
9256	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9257	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9258printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9259if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9260then :
9261  printf %s "(cached) " >&6
9262else case e in #(
9263  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264/* end confdefs.h.  */
9265int i;
9266_ACEOF
9267if ac_fn_c_try_compile "$LINENO"
9268then :
9269  xorg_cv_cc_flag_unused_command_line_argument=yes
9270else case e in #(
9271  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9272esac
9273fi
9274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9275esac
9276fi
9277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9278printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9279	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9280	CFLAGS="$xorg_testset_save_CFLAGS"
9281fi
9282
9283found="no"
9284
9285	if test $found = "no" ; then
9286		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9287			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9288		fi
9289
9290		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9291			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9292		fi
9293
9294		CFLAGS="$CFLAGS -Wnonnull"
9295
9296		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9297printf %s "checking if $CC supports -Wnonnull... " >&6; }
9298		cacheid=xorg_cv_cc_flag__Wnonnull
9299		if eval test \${$cacheid+y}
9300then :
9301  printf %s "(cached) " >&6
9302else case e in #(
9303  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304/* end confdefs.h.  */
9305int i;
9306int
9307main (void)
9308{
9309
9310  ;
9311  return 0;
9312}
9313_ACEOF
9314if ac_fn_c_try_link "$LINENO"
9315then :
9316  eval $cacheid=yes
9317else case e in #(
9318  e) eval $cacheid=no ;;
9319esac
9320fi
9321rm -f core conftest.err conftest.$ac_objext conftest.beam \
9322    conftest$ac_exeext conftest.$ac_ext ;;
9323esac
9324fi
9325
9326
9327		CFLAGS="$xorg_testset_save_CFLAGS"
9328
9329		eval supported=\$$cacheid
9330		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9331printf "%s\n" "$supported" >&6; }
9332		if test "$supported" = "yes" ; then
9333			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9334			found="yes"
9335		fi
9336	fi
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352xorg_testset_save_CFLAGS="$CFLAGS"
9353
9354if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9355	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9356	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9357printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9358if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9359then :
9360  printf %s "(cached) " >&6
9361else case e in #(
9362  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9363/* end confdefs.h.  */
9364int i;
9365_ACEOF
9366if ac_fn_c_try_compile "$LINENO"
9367then :
9368  xorg_cv_cc_flag_unknown_warning_option=yes
9369else case e in #(
9370  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9371esac
9372fi
9373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9374esac
9375fi
9376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9377printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9378	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9379	CFLAGS="$xorg_testset_save_CFLAGS"
9380fi
9381
9382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9383	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9384		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9385	fi
9386	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9387	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9388printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9389if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9390then :
9391  printf %s "(cached) " >&6
9392else case e in #(
9393  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394/* end confdefs.h.  */
9395int i;
9396_ACEOF
9397if ac_fn_c_try_compile "$LINENO"
9398then :
9399  xorg_cv_cc_flag_unused_command_line_argument=yes
9400else case e in #(
9401  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9402esac
9403fi
9404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9405esac
9406fi
9407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9408printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9409	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9410	CFLAGS="$xorg_testset_save_CFLAGS"
9411fi
9412
9413found="no"
9414
9415	if test $found = "no" ; then
9416		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9417			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9418		fi
9419
9420		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9421			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9422		fi
9423
9424		CFLAGS="$CFLAGS -Winit-self"
9425
9426		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9427printf %s "checking if $CC supports -Winit-self... " >&6; }
9428		cacheid=xorg_cv_cc_flag__Winit_self
9429		if eval test \${$cacheid+y}
9430then :
9431  printf %s "(cached) " >&6
9432else case e in #(
9433  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434/* end confdefs.h.  */
9435int i;
9436int
9437main (void)
9438{
9439
9440  ;
9441  return 0;
9442}
9443_ACEOF
9444if ac_fn_c_try_link "$LINENO"
9445then :
9446  eval $cacheid=yes
9447else case e in #(
9448  e) eval $cacheid=no ;;
9449esac
9450fi
9451rm -f core conftest.err conftest.$ac_objext conftest.beam \
9452    conftest$ac_exeext conftest.$ac_ext ;;
9453esac
9454fi
9455
9456
9457		CFLAGS="$xorg_testset_save_CFLAGS"
9458
9459		eval supported=\$$cacheid
9460		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9461printf "%s\n" "$supported" >&6; }
9462		if test "$supported" = "yes" ; then
9463			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9464			found="yes"
9465		fi
9466	fi
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482xorg_testset_save_CFLAGS="$CFLAGS"
9483
9484if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9485	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9486	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9487printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9488if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9489then :
9490  printf %s "(cached) " >&6
9491else case e in #(
9492  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493/* end confdefs.h.  */
9494int i;
9495_ACEOF
9496if ac_fn_c_try_compile "$LINENO"
9497then :
9498  xorg_cv_cc_flag_unknown_warning_option=yes
9499else case e in #(
9500  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9501esac
9502fi
9503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9504esac
9505fi
9506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9507printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9508	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9509	CFLAGS="$xorg_testset_save_CFLAGS"
9510fi
9511
9512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9513	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9514		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9515	fi
9516	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9517	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9518printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9519if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9520then :
9521  printf %s "(cached) " >&6
9522else case e in #(
9523  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524/* end confdefs.h.  */
9525int i;
9526_ACEOF
9527if ac_fn_c_try_compile "$LINENO"
9528then :
9529  xorg_cv_cc_flag_unused_command_line_argument=yes
9530else case e in #(
9531  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9532esac
9533fi
9534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9535esac
9536fi
9537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9538printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9539	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9540	CFLAGS="$xorg_testset_save_CFLAGS"
9541fi
9542
9543found="no"
9544
9545	if test $found = "no" ; then
9546		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9547			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548		fi
9549
9550		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9551			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9552		fi
9553
9554		CFLAGS="$CFLAGS -Wmain"
9555
9556		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9557printf %s "checking if $CC supports -Wmain... " >&6; }
9558		cacheid=xorg_cv_cc_flag__Wmain
9559		if eval test \${$cacheid+y}
9560then :
9561  printf %s "(cached) " >&6
9562else case e in #(
9563  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564/* end confdefs.h.  */
9565int i;
9566int
9567main (void)
9568{
9569
9570  ;
9571  return 0;
9572}
9573_ACEOF
9574if ac_fn_c_try_link "$LINENO"
9575then :
9576  eval $cacheid=yes
9577else case e in #(
9578  e) eval $cacheid=no ;;
9579esac
9580fi
9581rm -f core conftest.err conftest.$ac_objext conftest.beam \
9582    conftest$ac_exeext conftest.$ac_ext ;;
9583esac
9584fi
9585
9586
9587		CFLAGS="$xorg_testset_save_CFLAGS"
9588
9589		eval supported=\$$cacheid
9590		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9591printf "%s\n" "$supported" >&6; }
9592		if test "$supported" = "yes" ; then
9593			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9594			found="yes"
9595		fi
9596	fi
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612xorg_testset_save_CFLAGS="$CFLAGS"
9613
9614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9615	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9616	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9617printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9618if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9619then :
9620  printf %s "(cached) " >&6
9621else case e in #(
9622  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623/* end confdefs.h.  */
9624int i;
9625_ACEOF
9626if ac_fn_c_try_compile "$LINENO"
9627then :
9628  xorg_cv_cc_flag_unknown_warning_option=yes
9629else case e in #(
9630  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9631esac
9632fi
9633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9634esac
9635fi
9636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9637printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9638	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9639	CFLAGS="$xorg_testset_save_CFLAGS"
9640fi
9641
9642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9643	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9644		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9645	fi
9646	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9647	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9648printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9649if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9650then :
9651  printf %s "(cached) " >&6
9652else case e in #(
9653  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654/* end confdefs.h.  */
9655int i;
9656_ACEOF
9657if ac_fn_c_try_compile "$LINENO"
9658then :
9659  xorg_cv_cc_flag_unused_command_line_argument=yes
9660else case e in #(
9661  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9662esac
9663fi
9664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9665esac
9666fi
9667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9668printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9670	CFLAGS="$xorg_testset_save_CFLAGS"
9671fi
9672
9673found="no"
9674
9675	if test $found = "no" ; then
9676		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9678		fi
9679
9680		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9682		fi
9683
9684		CFLAGS="$CFLAGS -Wmissing-braces"
9685
9686		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9687printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9688		cacheid=xorg_cv_cc_flag__Wmissing_braces
9689		if eval test \${$cacheid+y}
9690then :
9691  printf %s "(cached) " >&6
9692else case e in #(
9693  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694/* end confdefs.h.  */
9695int i;
9696int
9697main (void)
9698{
9699
9700  ;
9701  return 0;
9702}
9703_ACEOF
9704if ac_fn_c_try_link "$LINENO"
9705then :
9706  eval $cacheid=yes
9707else case e in #(
9708  e) eval $cacheid=no ;;
9709esac
9710fi
9711rm -f core conftest.err conftest.$ac_objext conftest.beam \
9712    conftest$ac_exeext conftest.$ac_ext ;;
9713esac
9714fi
9715
9716
9717		CFLAGS="$xorg_testset_save_CFLAGS"
9718
9719		eval supported=\$$cacheid
9720		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9721printf "%s\n" "$supported" >&6; }
9722		if test "$supported" = "yes" ; then
9723			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9724			found="yes"
9725		fi
9726	fi
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742xorg_testset_save_CFLAGS="$CFLAGS"
9743
9744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9745	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9746	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9747printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9748if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9749then :
9750  printf %s "(cached) " >&6
9751else case e in #(
9752  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753/* end confdefs.h.  */
9754int i;
9755_ACEOF
9756if ac_fn_c_try_compile "$LINENO"
9757then :
9758  xorg_cv_cc_flag_unknown_warning_option=yes
9759else case e in #(
9760  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9761esac
9762fi
9763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9764esac
9765fi
9766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9767printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9768	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9769	CFLAGS="$xorg_testset_save_CFLAGS"
9770fi
9771
9772if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9773	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9774		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9775	fi
9776	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9777	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9778printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9779if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9780then :
9781  printf %s "(cached) " >&6
9782else case e in #(
9783  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784/* end confdefs.h.  */
9785int i;
9786_ACEOF
9787if ac_fn_c_try_compile "$LINENO"
9788then :
9789  xorg_cv_cc_flag_unused_command_line_argument=yes
9790else case e in #(
9791  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9792esac
9793fi
9794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9795esac
9796fi
9797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9798printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9799	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9800	CFLAGS="$xorg_testset_save_CFLAGS"
9801fi
9802
9803found="no"
9804
9805	if test $found = "no" ; then
9806		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9807			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9808		fi
9809
9810		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9811			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9812		fi
9813
9814		CFLAGS="$CFLAGS -Wsequence-point"
9815
9816		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9817printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9818		cacheid=xorg_cv_cc_flag__Wsequence_point
9819		if eval test \${$cacheid+y}
9820then :
9821  printf %s "(cached) " >&6
9822else case e in #(
9823  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824/* end confdefs.h.  */
9825int i;
9826int
9827main (void)
9828{
9829
9830  ;
9831  return 0;
9832}
9833_ACEOF
9834if ac_fn_c_try_link "$LINENO"
9835then :
9836  eval $cacheid=yes
9837else case e in #(
9838  e) eval $cacheid=no ;;
9839esac
9840fi
9841rm -f core conftest.err conftest.$ac_objext conftest.beam \
9842    conftest$ac_exeext conftest.$ac_ext ;;
9843esac
9844fi
9845
9846
9847		CFLAGS="$xorg_testset_save_CFLAGS"
9848
9849		eval supported=\$$cacheid
9850		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9851printf "%s\n" "$supported" >&6; }
9852		if test "$supported" = "yes" ; then
9853			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9854			found="yes"
9855		fi
9856	fi
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872xorg_testset_save_CFLAGS="$CFLAGS"
9873
9874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9875	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9876	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9877printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9878if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9879then :
9880  printf %s "(cached) " >&6
9881else case e in #(
9882  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883/* end confdefs.h.  */
9884int i;
9885_ACEOF
9886if ac_fn_c_try_compile "$LINENO"
9887then :
9888  xorg_cv_cc_flag_unknown_warning_option=yes
9889else case e in #(
9890  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9891esac
9892fi
9893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9894esac
9895fi
9896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9897printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9898	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9899	CFLAGS="$xorg_testset_save_CFLAGS"
9900fi
9901
9902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9903	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9904		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9905	fi
9906	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9907	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9908printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9909if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9910then :
9911  printf %s "(cached) " >&6
9912else case e in #(
9913  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914/* end confdefs.h.  */
9915int i;
9916_ACEOF
9917if ac_fn_c_try_compile "$LINENO"
9918then :
9919  xorg_cv_cc_flag_unused_command_line_argument=yes
9920else case e in #(
9921  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9922esac
9923fi
9924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9925esac
9926fi
9927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9928printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9929	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9930	CFLAGS="$xorg_testset_save_CFLAGS"
9931fi
9932
9933found="no"
9934
9935	if test $found = "no" ; then
9936		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9937			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9938		fi
9939
9940		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9941			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9942		fi
9943
9944		CFLAGS="$CFLAGS -Wreturn-type"
9945
9946		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9947printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9948		cacheid=xorg_cv_cc_flag__Wreturn_type
9949		if eval test \${$cacheid+y}
9950then :
9951  printf %s "(cached) " >&6
9952else case e in #(
9953  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954/* end confdefs.h.  */
9955int i;
9956int
9957main (void)
9958{
9959
9960  ;
9961  return 0;
9962}
9963_ACEOF
9964if ac_fn_c_try_link "$LINENO"
9965then :
9966  eval $cacheid=yes
9967else case e in #(
9968  e) eval $cacheid=no ;;
9969esac
9970fi
9971rm -f core conftest.err conftest.$ac_objext conftest.beam \
9972    conftest$ac_exeext conftest.$ac_ext ;;
9973esac
9974fi
9975
9976
9977		CFLAGS="$xorg_testset_save_CFLAGS"
9978
9979		eval supported=\$$cacheid
9980		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9981printf "%s\n" "$supported" >&6; }
9982		if test "$supported" = "yes" ; then
9983			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9984			found="yes"
9985		fi
9986	fi
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002xorg_testset_save_CFLAGS="$CFLAGS"
10003
10004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10005	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10006	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10007printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10008if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10009then :
10010  printf %s "(cached) " >&6
10011else case e in #(
10012  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013/* end confdefs.h.  */
10014int i;
10015_ACEOF
10016if ac_fn_c_try_compile "$LINENO"
10017then :
10018  xorg_cv_cc_flag_unknown_warning_option=yes
10019else case e in #(
10020  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10021esac
10022fi
10023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10024esac
10025fi
10026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10027printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10028	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10029	CFLAGS="$xorg_testset_save_CFLAGS"
10030fi
10031
10032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10033	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10034		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10035	fi
10036	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10037	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10038printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10039if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10040then :
10041  printf %s "(cached) " >&6
10042else case e in #(
10043  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044/* end confdefs.h.  */
10045int i;
10046_ACEOF
10047if ac_fn_c_try_compile "$LINENO"
10048then :
10049  xorg_cv_cc_flag_unused_command_line_argument=yes
10050else case e in #(
10051  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10052esac
10053fi
10054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10055esac
10056fi
10057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10058printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10059	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10060	CFLAGS="$xorg_testset_save_CFLAGS"
10061fi
10062
10063found="no"
10064
10065	if test $found = "no" ; then
10066		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10067			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10068		fi
10069
10070		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10071			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10072		fi
10073
10074		CFLAGS="$CFLAGS -Wtrigraphs"
10075
10076		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10077printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10078		cacheid=xorg_cv_cc_flag__Wtrigraphs
10079		if eval test \${$cacheid+y}
10080then :
10081  printf %s "(cached) " >&6
10082else case e in #(
10083  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084/* end confdefs.h.  */
10085int i;
10086int
10087main (void)
10088{
10089
10090  ;
10091  return 0;
10092}
10093_ACEOF
10094if ac_fn_c_try_link "$LINENO"
10095then :
10096  eval $cacheid=yes
10097else case e in #(
10098  e) eval $cacheid=no ;;
10099esac
10100fi
10101rm -f core conftest.err conftest.$ac_objext conftest.beam \
10102    conftest$ac_exeext conftest.$ac_ext ;;
10103esac
10104fi
10105
10106
10107		CFLAGS="$xorg_testset_save_CFLAGS"
10108
10109		eval supported=\$$cacheid
10110		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10111printf "%s\n" "$supported" >&6; }
10112		if test "$supported" = "yes" ; then
10113			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10114			found="yes"
10115		fi
10116	fi
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132xorg_testset_save_CFLAGS="$CFLAGS"
10133
10134if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10135	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10136	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10137printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10138if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10139then :
10140  printf %s "(cached) " >&6
10141else case e in #(
10142  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143/* end confdefs.h.  */
10144int i;
10145_ACEOF
10146if ac_fn_c_try_compile "$LINENO"
10147then :
10148  xorg_cv_cc_flag_unknown_warning_option=yes
10149else case e in #(
10150  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10151esac
10152fi
10153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10154esac
10155fi
10156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10157printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10158	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10159	CFLAGS="$xorg_testset_save_CFLAGS"
10160fi
10161
10162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10163	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10164		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10165	fi
10166	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10167	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10168printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10169if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10170then :
10171  printf %s "(cached) " >&6
10172else case e in #(
10173  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174/* end confdefs.h.  */
10175int i;
10176_ACEOF
10177if ac_fn_c_try_compile "$LINENO"
10178then :
10179  xorg_cv_cc_flag_unused_command_line_argument=yes
10180else case e in #(
10181  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10182esac
10183fi
10184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10185esac
10186fi
10187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10188printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10189	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10190	CFLAGS="$xorg_testset_save_CFLAGS"
10191fi
10192
10193found="no"
10194
10195	if test $found = "no" ; then
10196		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10197			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10198		fi
10199
10200		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10201			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10202		fi
10203
10204		CFLAGS="$CFLAGS -Warray-bounds"
10205
10206		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10207printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10208		cacheid=xorg_cv_cc_flag__Warray_bounds
10209		if eval test \${$cacheid+y}
10210then :
10211  printf %s "(cached) " >&6
10212else case e in #(
10213  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214/* end confdefs.h.  */
10215int i;
10216int
10217main (void)
10218{
10219
10220  ;
10221  return 0;
10222}
10223_ACEOF
10224if ac_fn_c_try_link "$LINENO"
10225then :
10226  eval $cacheid=yes
10227else case e in #(
10228  e) eval $cacheid=no ;;
10229esac
10230fi
10231rm -f core conftest.err conftest.$ac_objext conftest.beam \
10232    conftest$ac_exeext conftest.$ac_ext ;;
10233esac
10234fi
10235
10236
10237		CFLAGS="$xorg_testset_save_CFLAGS"
10238
10239		eval supported=\$$cacheid
10240		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10241printf "%s\n" "$supported" >&6; }
10242		if test "$supported" = "yes" ; then
10243			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10244			found="yes"
10245		fi
10246	fi
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262xorg_testset_save_CFLAGS="$CFLAGS"
10263
10264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10265	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10266	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10267printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10268if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10269then :
10270  printf %s "(cached) " >&6
10271else case e in #(
10272  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273/* end confdefs.h.  */
10274int i;
10275_ACEOF
10276if ac_fn_c_try_compile "$LINENO"
10277then :
10278  xorg_cv_cc_flag_unknown_warning_option=yes
10279else case e in #(
10280  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10281esac
10282fi
10283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10284esac
10285fi
10286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10287printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10288	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10289	CFLAGS="$xorg_testset_save_CFLAGS"
10290fi
10291
10292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10293	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10294		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10295	fi
10296	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10297	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10298printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10299if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10300then :
10301  printf %s "(cached) " >&6
10302else case e in #(
10303  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10304/* end confdefs.h.  */
10305int i;
10306_ACEOF
10307if ac_fn_c_try_compile "$LINENO"
10308then :
10309  xorg_cv_cc_flag_unused_command_line_argument=yes
10310else case e in #(
10311  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10312esac
10313fi
10314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10315esac
10316fi
10317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10318printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10319	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10320	CFLAGS="$xorg_testset_save_CFLAGS"
10321fi
10322
10323found="no"
10324
10325	if test $found = "no" ; then
10326		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10327			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10328		fi
10329
10330		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10331			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10332		fi
10333
10334		CFLAGS="$CFLAGS -Wwrite-strings"
10335
10336		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10337printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10338		cacheid=xorg_cv_cc_flag__Wwrite_strings
10339		if eval test \${$cacheid+y}
10340then :
10341  printf %s "(cached) " >&6
10342else case e in #(
10343  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344/* end confdefs.h.  */
10345int i;
10346int
10347main (void)
10348{
10349
10350  ;
10351  return 0;
10352}
10353_ACEOF
10354if ac_fn_c_try_link "$LINENO"
10355then :
10356  eval $cacheid=yes
10357else case e in #(
10358  e) eval $cacheid=no ;;
10359esac
10360fi
10361rm -f core conftest.err conftest.$ac_objext conftest.beam \
10362    conftest$ac_exeext conftest.$ac_ext ;;
10363esac
10364fi
10365
10366
10367		CFLAGS="$xorg_testset_save_CFLAGS"
10368
10369		eval supported=\$$cacheid
10370		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10371printf "%s\n" "$supported" >&6; }
10372		if test "$supported" = "yes" ; then
10373			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10374			found="yes"
10375		fi
10376	fi
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392xorg_testset_save_CFLAGS="$CFLAGS"
10393
10394if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10395	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10396	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10397printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10398if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10399then :
10400  printf %s "(cached) " >&6
10401else case e in #(
10402  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403/* end confdefs.h.  */
10404int i;
10405_ACEOF
10406if ac_fn_c_try_compile "$LINENO"
10407then :
10408  xorg_cv_cc_flag_unknown_warning_option=yes
10409else case e in #(
10410  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10411esac
10412fi
10413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10414esac
10415fi
10416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10417printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10418	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10419	CFLAGS="$xorg_testset_save_CFLAGS"
10420fi
10421
10422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10423	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10424		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10425	fi
10426	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10427	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10428printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10429if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10430then :
10431  printf %s "(cached) " >&6
10432else case e in #(
10433  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434/* end confdefs.h.  */
10435int i;
10436_ACEOF
10437if ac_fn_c_try_compile "$LINENO"
10438then :
10439  xorg_cv_cc_flag_unused_command_line_argument=yes
10440else case e in #(
10441  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10442esac
10443fi
10444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10445esac
10446fi
10447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10448printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10449	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10450	CFLAGS="$xorg_testset_save_CFLAGS"
10451fi
10452
10453found="no"
10454
10455	if test $found = "no" ; then
10456		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10457			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10458		fi
10459
10460		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10461			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10462		fi
10463
10464		CFLAGS="$CFLAGS -Waddress"
10465
10466		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10467printf %s "checking if $CC supports -Waddress... " >&6; }
10468		cacheid=xorg_cv_cc_flag__Waddress
10469		if eval test \${$cacheid+y}
10470then :
10471  printf %s "(cached) " >&6
10472else case e in #(
10473  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474/* end confdefs.h.  */
10475int i;
10476int
10477main (void)
10478{
10479
10480  ;
10481  return 0;
10482}
10483_ACEOF
10484if ac_fn_c_try_link "$LINENO"
10485then :
10486  eval $cacheid=yes
10487else case e in #(
10488  e) eval $cacheid=no ;;
10489esac
10490fi
10491rm -f core conftest.err conftest.$ac_objext conftest.beam \
10492    conftest$ac_exeext conftest.$ac_ext ;;
10493esac
10494fi
10495
10496
10497		CFLAGS="$xorg_testset_save_CFLAGS"
10498
10499		eval supported=\$$cacheid
10500		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10501printf "%s\n" "$supported" >&6; }
10502		if test "$supported" = "yes" ; then
10503			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10504			found="yes"
10505		fi
10506	fi
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522xorg_testset_save_CFLAGS="$CFLAGS"
10523
10524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10525	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10526	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10527printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10528if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10529then :
10530  printf %s "(cached) " >&6
10531else case e in #(
10532  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533/* end confdefs.h.  */
10534int i;
10535_ACEOF
10536if ac_fn_c_try_compile "$LINENO"
10537then :
10538  xorg_cv_cc_flag_unknown_warning_option=yes
10539else case e in #(
10540  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10541esac
10542fi
10543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10544esac
10545fi
10546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10547printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10548	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10549	CFLAGS="$xorg_testset_save_CFLAGS"
10550fi
10551
10552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10553	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10554		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10555	fi
10556	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10557	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10558printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10559if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10560then :
10561  printf %s "(cached) " >&6
10562else case e in #(
10563  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564/* end confdefs.h.  */
10565int i;
10566_ACEOF
10567if ac_fn_c_try_compile "$LINENO"
10568then :
10569  xorg_cv_cc_flag_unused_command_line_argument=yes
10570else case e in #(
10571  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10572esac
10573fi
10574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10575esac
10576fi
10577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10578printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10579	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10580	CFLAGS="$xorg_testset_save_CFLAGS"
10581fi
10582
10583found="no"
10584
10585	if test $found = "no" ; then
10586		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10587			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10588		fi
10589
10590		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10591			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10592		fi
10593
10594		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10595
10596		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10597printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10598		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10599		if eval test \${$cacheid+y}
10600then :
10601  printf %s "(cached) " >&6
10602else case e in #(
10603  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10604/* end confdefs.h.  */
10605int i;
10606int
10607main (void)
10608{
10609
10610  ;
10611  return 0;
10612}
10613_ACEOF
10614if ac_fn_c_try_link "$LINENO"
10615then :
10616  eval $cacheid=yes
10617else case e in #(
10618  e) eval $cacheid=no ;;
10619esac
10620fi
10621rm -f core conftest.err conftest.$ac_objext conftest.beam \
10622    conftest$ac_exeext conftest.$ac_ext ;;
10623esac
10624fi
10625
10626
10627		CFLAGS="$xorg_testset_save_CFLAGS"
10628
10629		eval supported=\$$cacheid
10630		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10631printf "%s\n" "$supported" >&6; }
10632		if test "$supported" = "yes" ; then
10633			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10634			found="yes"
10635		fi
10636	fi
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652xorg_testset_save_CFLAGS="$CFLAGS"
10653
10654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10655	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10656	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10657printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10658if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10659then :
10660  printf %s "(cached) " >&6
10661else case e in #(
10662  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663/* end confdefs.h.  */
10664int i;
10665_ACEOF
10666if ac_fn_c_try_compile "$LINENO"
10667then :
10668  xorg_cv_cc_flag_unknown_warning_option=yes
10669else case e in #(
10670  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10671esac
10672fi
10673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10674esac
10675fi
10676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10677printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10678	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10679	CFLAGS="$xorg_testset_save_CFLAGS"
10680fi
10681
10682if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10683	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10684		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10685	fi
10686	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10687	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10688printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10689if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10690then :
10691  printf %s "(cached) " >&6
10692else case e in #(
10693  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694/* end confdefs.h.  */
10695int i;
10696_ACEOF
10697if ac_fn_c_try_compile "$LINENO"
10698then :
10699  xorg_cv_cc_flag_unused_command_line_argument=yes
10700else case e in #(
10701  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10702esac
10703fi
10704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10705esac
10706fi
10707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10708printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10709	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10710	CFLAGS="$xorg_testset_save_CFLAGS"
10711fi
10712
10713found="no"
10714
10715	if test $found = "no" ; then
10716		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10717			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10718		fi
10719
10720		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10721			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10722		fi
10723
10724		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10725
10726		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10727printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10728		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10729		if eval test \${$cacheid+y}
10730then :
10731  printf %s "(cached) " >&6
10732else case e in #(
10733  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734/* end confdefs.h.  */
10735int i;
10736int
10737main (void)
10738{
10739
10740  ;
10741  return 0;
10742}
10743_ACEOF
10744if ac_fn_c_try_link "$LINENO"
10745then :
10746  eval $cacheid=yes
10747else case e in #(
10748  e) eval $cacheid=no ;;
10749esac
10750fi
10751rm -f core conftest.err conftest.$ac_objext conftest.beam \
10752    conftest$ac_exeext conftest.$ac_ext ;;
10753esac
10754fi
10755
10756
10757		CFLAGS="$xorg_testset_save_CFLAGS"
10758
10759		eval supported=\$$cacheid
10760		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10761printf "%s\n" "$supported" >&6; }
10762		if test "$supported" = "yes" ; then
10763			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10764			found="yes"
10765		fi
10766	fi
10767
10768
10769fi
10770
10771
10772
10773
10774
10775
10776
10777		CWARNFLAGS="$BASE_CFLAGS"
10778		if  test "x$GCC" = xyes ; then
10779		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10780		fi
10781
10782
10783
10784
10785
10786
10787
10788
10789# Check whether --enable-strict-compilation was given.
10790if test ${enable_strict_compilation+y}
10791then :
10792  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10793else case e in #(
10794  e) STRICT_COMPILE=no ;;
10795esac
10796fi
10797
10798
10799
10800
10801
10802
10803STRICT_CFLAGS=""
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817xorg_testset_save_CFLAGS="$CFLAGS"
10818
10819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10820	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10821	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10822printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10823if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10824then :
10825  printf %s "(cached) " >&6
10826else case e in #(
10827  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828/* end confdefs.h.  */
10829int i;
10830_ACEOF
10831if ac_fn_c_try_compile "$LINENO"
10832then :
10833  xorg_cv_cc_flag_unknown_warning_option=yes
10834else case e in #(
10835  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10836esac
10837fi
10838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10839esac
10840fi
10841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10842printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10843	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10844	CFLAGS="$xorg_testset_save_CFLAGS"
10845fi
10846
10847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10848	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10849		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10850	fi
10851	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10852	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10853printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10854if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10855then :
10856  printf %s "(cached) " >&6
10857else case e in #(
10858  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859/* end confdefs.h.  */
10860int i;
10861_ACEOF
10862if ac_fn_c_try_compile "$LINENO"
10863then :
10864  xorg_cv_cc_flag_unused_command_line_argument=yes
10865else case e in #(
10866  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10867esac
10868fi
10869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10870esac
10871fi
10872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10873printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10874	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10875	CFLAGS="$xorg_testset_save_CFLAGS"
10876fi
10877
10878found="no"
10879
10880	if test $found = "no" ; then
10881		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10882			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10883		fi
10884
10885		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10886			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10887		fi
10888
10889		CFLAGS="$CFLAGS -pedantic"
10890
10891		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10892printf %s "checking if $CC supports -pedantic... " >&6; }
10893		cacheid=xorg_cv_cc_flag__pedantic
10894		if eval test \${$cacheid+y}
10895then :
10896  printf %s "(cached) " >&6
10897else case e in #(
10898  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899/* end confdefs.h.  */
10900int i;
10901int
10902main (void)
10903{
10904
10905  ;
10906  return 0;
10907}
10908_ACEOF
10909if ac_fn_c_try_link "$LINENO"
10910then :
10911  eval $cacheid=yes
10912else case e in #(
10913  e) eval $cacheid=no ;;
10914esac
10915fi
10916rm -f core conftest.err conftest.$ac_objext conftest.beam \
10917    conftest$ac_exeext conftest.$ac_ext ;;
10918esac
10919fi
10920
10921
10922		CFLAGS="$xorg_testset_save_CFLAGS"
10923
10924		eval supported=\$$cacheid
10925		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10926printf "%s\n" "$supported" >&6; }
10927		if test "$supported" = "yes" ; then
10928			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10929			found="yes"
10930		fi
10931	fi
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947xorg_testset_save_CFLAGS="$CFLAGS"
10948
10949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10950	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10951	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10952printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10953if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10954then :
10955  printf %s "(cached) " >&6
10956else case e in #(
10957  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958/* end confdefs.h.  */
10959int i;
10960_ACEOF
10961if ac_fn_c_try_compile "$LINENO"
10962then :
10963  xorg_cv_cc_flag_unknown_warning_option=yes
10964else case e in #(
10965  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10966esac
10967fi
10968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10969esac
10970fi
10971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10972printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10973	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10974	CFLAGS="$xorg_testset_save_CFLAGS"
10975fi
10976
10977if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10978	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10979		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10980	fi
10981	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10982	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10983printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10984if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10985then :
10986  printf %s "(cached) " >&6
10987else case e in #(
10988  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989/* end confdefs.h.  */
10990int i;
10991_ACEOF
10992if ac_fn_c_try_compile "$LINENO"
10993then :
10994  xorg_cv_cc_flag_unused_command_line_argument=yes
10995else case e in #(
10996  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10997esac
10998fi
10999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11000esac
11001fi
11002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11003printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11004	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11005	CFLAGS="$xorg_testset_save_CFLAGS"
11006fi
11007
11008found="no"
11009
11010	if test $found = "no" ; then
11011		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11012			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11013		fi
11014
11015		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11016			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11017		fi
11018
11019		CFLAGS="$CFLAGS -Werror"
11020
11021		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11022printf %s "checking if $CC supports -Werror... " >&6; }
11023		cacheid=xorg_cv_cc_flag__Werror
11024		if eval test \${$cacheid+y}
11025then :
11026  printf %s "(cached) " >&6
11027else case e in #(
11028  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029/* end confdefs.h.  */
11030int i;
11031int
11032main (void)
11033{
11034
11035  ;
11036  return 0;
11037}
11038_ACEOF
11039if ac_fn_c_try_link "$LINENO"
11040then :
11041  eval $cacheid=yes
11042else case e in #(
11043  e) eval $cacheid=no ;;
11044esac
11045fi
11046rm -f core conftest.err conftest.$ac_objext conftest.beam \
11047    conftest$ac_exeext conftest.$ac_ext ;;
11048esac
11049fi
11050
11051
11052		CFLAGS="$xorg_testset_save_CFLAGS"
11053
11054		eval supported=\$$cacheid
11055		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11056printf "%s\n" "$supported" >&6; }
11057		if test "$supported" = "yes" ; then
11058			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11059			found="yes"
11060		fi
11061	fi
11062
11063	if test $found = "no" ; then
11064		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11065			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11066		fi
11067
11068		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11069			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11070		fi
11071
11072		CFLAGS="$CFLAGS -errwarn"
11073
11074		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11075printf %s "checking if $CC supports -errwarn... " >&6; }
11076		cacheid=xorg_cv_cc_flag__errwarn
11077		if eval test \${$cacheid+y}
11078then :
11079  printf %s "(cached) " >&6
11080else case e in #(
11081  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082/* end confdefs.h.  */
11083int i;
11084int
11085main (void)
11086{
11087
11088  ;
11089  return 0;
11090}
11091_ACEOF
11092if ac_fn_c_try_link "$LINENO"
11093then :
11094  eval $cacheid=yes
11095else case e in #(
11096  e) eval $cacheid=no ;;
11097esac
11098fi
11099rm -f core conftest.err conftest.$ac_objext conftest.beam \
11100    conftest$ac_exeext conftest.$ac_ext ;;
11101esac
11102fi
11103
11104
11105		CFLAGS="$xorg_testset_save_CFLAGS"
11106
11107		eval supported=\$$cacheid
11108		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11109printf "%s\n" "$supported" >&6; }
11110		if test "$supported" = "yes" ; then
11111			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11112			found="yes"
11113		fi
11114	fi
11115
11116
11117
11118# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11119# activate it with -Werror, so we add it here explicitly.
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133xorg_testset_save_CFLAGS="$CFLAGS"
11134
11135if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11136	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11137	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11138printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11139if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11140then :
11141  printf %s "(cached) " >&6
11142else case e in #(
11143  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144/* end confdefs.h.  */
11145int i;
11146_ACEOF
11147if ac_fn_c_try_compile "$LINENO"
11148then :
11149  xorg_cv_cc_flag_unknown_warning_option=yes
11150else case e in #(
11151  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11152esac
11153fi
11154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11155esac
11156fi
11157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11158printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11159	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11160	CFLAGS="$xorg_testset_save_CFLAGS"
11161fi
11162
11163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11164	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11165		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11166	fi
11167	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11168	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11169printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11170if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11171then :
11172  printf %s "(cached) " >&6
11173else case e in #(
11174  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175/* end confdefs.h.  */
11176int i;
11177_ACEOF
11178if ac_fn_c_try_compile "$LINENO"
11179then :
11180  xorg_cv_cc_flag_unused_command_line_argument=yes
11181else case e in #(
11182  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11183esac
11184fi
11185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11186esac
11187fi
11188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11189printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11190	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11191	CFLAGS="$xorg_testset_save_CFLAGS"
11192fi
11193
11194found="no"
11195
11196	if test $found = "no" ; then
11197		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11198			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11199		fi
11200
11201		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11202			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11203		fi
11204
11205		CFLAGS="$CFLAGS -Werror=attributes"
11206
11207		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11208printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11209		cacheid=xorg_cv_cc_flag__Werror_attributes
11210		if eval test \${$cacheid+y}
11211then :
11212  printf %s "(cached) " >&6
11213else case e in #(
11214  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215/* end confdefs.h.  */
11216int i;
11217int
11218main (void)
11219{
11220
11221  ;
11222  return 0;
11223}
11224_ACEOF
11225if ac_fn_c_try_link "$LINENO"
11226then :
11227  eval $cacheid=yes
11228else case e in #(
11229  e) eval $cacheid=no ;;
11230esac
11231fi
11232rm -f core conftest.err conftest.$ac_objext conftest.beam \
11233    conftest$ac_exeext conftest.$ac_ext ;;
11234esac
11235fi
11236
11237
11238		CFLAGS="$xorg_testset_save_CFLAGS"
11239
11240		eval supported=\$$cacheid
11241		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11242printf "%s\n" "$supported" >&6; }
11243		if test "$supported" = "yes" ; then
11244			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11245			found="yes"
11246		fi
11247	fi
11248
11249
11250
11251if test "x$STRICT_COMPILE" = "xyes"; then
11252    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11253    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11254fi
11255
11256
11257
11258
11259
11260
11261
11262
11263cat >>confdefs.h <<_ACEOF
11264#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11265_ACEOF
11266
11267	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11268	if test "x$PVM" = "x"; then
11269		PVM="0"
11270	fi
11271
11272printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11273
11274	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11275	if test "x$PVP" = "x"; then
11276		PVP="0"
11277	fi
11278
11279printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11280
11281
11282
11283CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11284mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11285|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11286touch \$(top_srcdir)/ChangeLog; \
11287echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11288
11289
11290
11291
11292macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11293INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11294mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11295|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11296touch \$(top_srcdir)/INSTALL; \
11297echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11298
11299
11300
11301
11302
11303
11304case $host_os in
11305    solaris*)
11306        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11307        # check for a man page file found in later versions that use
11308        # traditional section numbers instead
11309        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11310printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11311if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11312then :
11313  printf %s "(cached) " >&6
11314else case e in #(
11315  e) test "$cross_compiling" = yes &&
11316  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11317if test -r "/usr/share/man/man7/attributes.7"; then
11318  ac_cv_file__usr_share_man_man7_attributes_7=yes
11319else
11320  ac_cv_file__usr_share_man_man7_attributes_7=no
11321fi ;;
11322esac
11323fi
11324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11325printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11326if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11327then :
11328  SYSV_MAN_SECTIONS=false
11329else case e in #(
11330  e) SYSV_MAN_SECTIONS=true ;;
11331esac
11332fi
11333
11334        ;;
11335    *) SYSV_MAN_SECTIONS=false ;;
11336esac
11337
11338if test x$APP_MAN_SUFFIX = x    ; then
11339    APP_MAN_SUFFIX=1
11340fi
11341if test x$APP_MAN_DIR = x    ; then
11342    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11343fi
11344
11345if test x$LIB_MAN_SUFFIX = x    ; then
11346    LIB_MAN_SUFFIX=3
11347fi
11348if test x$LIB_MAN_DIR = x    ; then
11349    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11350fi
11351
11352if test x$FILE_MAN_SUFFIX = x    ; then
11353    case $SYSV_MAN_SECTIONS in
11354	true)				FILE_MAN_SUFFIX=4  ;;
11355	*)				FILE_MAN_SUFFIX=5  ;;
11356    esac
11357fi
11358if test x$FILE_MAN_DIR = x    ; then
11359    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11360fi
11361
11362if test x$MISC_MAN_SUFFIX = x    ; then
11363    case $SYSV_MAN_SECTIONS in
11364	true)				MISC_MAN_SUFFIX=5  ;;
11365	*)				MISC_MAN_SUFFIX=7  ;;
11366    esac
11367fi
11368if test x$MISC_MAN_DIR = x    ; then
11369    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11370fi
11371
11372if test x$DRIVER_MAN_SUFFIX = x    ; then
11373    case $SYSV_MAN_SECTIONS in
11374	true)				DRIVER_MAN_SUFFIX=7  ;;
11375	*)				DRIVER_MAN_SUFFIX=4  ;;
11376    esac
11377fi
11378if test x$DRIVER_MAN_DIR = x    ; then
11379    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11380fi
11381
11382if test x$ADMIN_MAN_SUFFIX = x    ; then
11383    case $SYSV_MAN_SECTIONS in
11384	true)				ADMIN_MAN_SUFFIX=1m ;;
11385	*)				ADMIN_MAN_SUFFIX=8  ;;
11386    esac
11387fi
11388if test x$ADMIN_MAN_DIR = x    ; then
11389    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11390fi
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406XORG_MAN_PAGE="X Version 11"
11407
11408MAN_SUBSTS="\
11409	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11410	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11411	-e 's|__xservername__|Xorg|g' \
11412	-e 's|__xconfigfile__|xorg.conf|g' \
11413	-e 's|__projectroot__|\$(prefix)|g' \
11414	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11415	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11416	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11417	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11418	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11419	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11420	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11421
11422
11423
11424
11425AM_DEFAULT_VERBOSITY=0
11426
11427
11428
11429# Obtain compiler/linker options for the transset dependencies
11430
11431pkg_failed=no
11432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TRANSSET" >&5
11433printf %s "checking for TRANSSET... " >&6; }
11434
11435if test -n "$TRANSSET_CFLAGS"; then
11436    pkg_cv_TRANSSET_CFLAGS="$TRANSSET_CFLAGS"
11437 elif test -n "$PKG_CONFIG"; then
11438    if test -n "$PKG_CONFIG" && \
11439    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
11440  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
11441  ac_status=$?
11442  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11443  test $ac_status = 0; }; then
11444  pkg_cv_TRANSSET_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null`
11445		      test "x$?" != "x0" && pkg_failed=yes
11446else
11447  pkg_failed=yes
11448fi
11449 else
11450    pkg_failed=untried
11451fi
11452if test -n "$TRANSSET_LIBS"; then
11453    pkg_cv_TRANSSET_LIBS="$TRANSSET_LIBS"
11454 elif test -n "$PKG_CONFIG"; then
11455    if test -n "$PKG_CONFIG" && \
11456    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
11457  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
11458  ac_status=$?
11459  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11460  test $ac_status = 0; }; then
11461  pkg_cv_TRANSSET_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null`
11462		      test "x$?" != "x0" && pkg_failed=yes
11463else
11464  pkg_failed=yes
11465fi
11466 else
11467    pkg_failed=untried
11468fi
11469
11470
11471
11472if test $pkg_failed = yes; then
11473   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474printf "%s\n" "no" >&6; }
11475
11476if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11477        _pkg_short_errors_supported=yes
11478else
11479        _pkg_short_errors_supported=no
11480fi
11481        if test $_pkg_short_errors_supported = yes; then
11482	        TRANSSET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
11483        else
11484	        TRANSSET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
11485        fi
11486	# Put the nasty error message in config.log where it belongs
11487	echo "$TRANSSET_PKG_ERRORS" >&5
11488
11489	as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met:
11490
11491$TRANSSET_PKG_ERRORS
11492
11493Consider adjusting the PKG_CONFIG_PATH environment variable if you
11494installed software in a non-standard prefix.
11495
11496Alternatively, you may set the environment variables TRANSSET_CFLAGS
11497and TRANSSET_LIBS to avoid the need to call pkg-config.
11498See the pkg-config man page for more details." "$LINENO" 5
11499elif test $pkg_failed = untried; then
11500     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501printf "%s\n" "no" >&6; }
11502	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11503printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11504as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11505is in your PATH or set the PKG_CONFIG environment variable to the full
11506path to pkg-config.
11507
11508Alternatively, you may set the environment variables TRANSSET_CFLAGS
11509and TRANSSET_LIBS to avoid the need to call pkg-config.
11510See the pkg-config man page for more details.
11511
11512To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11513See 'config.log' for more details" "$LINENO" 5; }
11514else
11515	TRANSSET_CFLAGS=$pkg_cv_TRANSSET_CFLAGS
11516	TRANSSET_LIBS=$pkg_cv_TRANSSET_LIBS
11517        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11518printf "%s\n" "yes" >&6; }
11519
11520fi
11521
11522
11523printf "%s\n" "#define RELEASE_DATE \"$RELEASE_DATE\"" >>confdefs.h
11524
11525
11526ac_config_files="$ac_config_files Makefile man/Makefile"
11527
11528cat >confcache <<\_ACEOF
11529# This file is a shell script that caches the results of configure
11530# tests run on this system so they can be shared between configure
11531# scripts and configure runs, see configure's option --config-cache.
11532# It is not useful on other systems.  If it contains results you don't
11533# want to keep, you may remove or edit it.
11534#
11535# config.status only pays attention to the cache file if you give it
11536# the --recheck option to rerun configure.
11537#
11538# 'ac_cv_env_foo' variables (set or unset) will be overridden when
11539# loading this file, other *unset* 'ac_cv_foo' will be assigned the
11540# following values.
11541
11542_ACEOF
11543
11544# The following way of writing the cache mishandles newlines in values,
11545# but we know of no workaround that is simple, portable, and efficient.
11546# So, we kill variables containing newlines.
11547# Ultrix sh set writes to stderr and can't be redirected directly,
11548# and sets the high bit in the cache file unless we assign to the vars.
11549(
11550  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11551    eval ac_val=\$$ac_var
11552    case $ac_val in #(
11553    *${as_nl}*)
11554      case $ac_var in #(
11555      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11556printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11557      esac
11558      case $ac_var in #(
11559      _ | IFS | as_nl) ;; #(
11560      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11561      *) { eval $ac_var=; unset $ac_var;} ;;
11562      esac ;;
11563    esac
11564  done
11565
11566  (set) 2>&1 |
11567    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11568    *${as_nl}ac_space=\ *)
11569      # 'set' does not quote correctly, so add quotes: double-quote
11570      # substitution turns \\\\ into \\, and sed turns \\ into \.
11571      sed -n \
11572	"s/'/'\\\\''/g;
11573	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11574      ;; #(
11575    *)
11576      # 'set' quotes correctly as required by POSIX, so do not add quotes.
11577      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11578      ;;
11579    esac |
11580    sort
11581) |
11582  sed '
11583     /^ac_cv_env_/b end
11584     t clear
11585     :clear
11586     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11587     t end
11588     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11589     :end' >>confcache
11590if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11591  if test -w "$cache_file"; then
11592    if test "x$cache_file" != "x/dev/null"; then
11593      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11594printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11595      if test ! -f "$cache_file" || test -h "$cache_file"; then
11596	cat confcache >"$cache_file"
11597      else
11598        case $cache_file in #(
11599        */* | ?:*)
11600	  mv -f confcache "$cache_file"$$ &&
11601	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11602        *)
11603	  mv -f confcache "$cache_file" ;;
11604	esac
11605      fi
11606    fi
11607  else
11608    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11609printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11610  fi
11611fi
11612rm -f confcache
11613
11614test "x$prefix" = xNONE && prefix=$ac_default_prefix
11615# Let make expand exec_prefix.
11616test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11617
11618DEFS=-DHAVE_CONFIG_H
11619
11620ac_libobjs=
11621ac_ltlibobjs=
11622U=
11623for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11624  # 1. Remove the extension, and $U if already installed.
11625  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11626  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11627  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11628  #    will be set to the directory where LIBOBJS objects are built.
11629  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11630  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11631done
11632LIBOBJS=$ac_libobjs
11633
11634LTLIBOBJS=$ac_ltlibobjs
11635
11636
11637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11638printf %s "checking that generated files are newer than configure... " >&6; }
11639   if test -n "$am_sleep_pid"; then
11640     # Hide warnings about reused PIDs.
11641     wait $am_sleep_pid 2>/dev/null
11642   fi
11643   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11644printf "%s\n" "done" >&6; }
11645case $enable_silent_rules in # (((
11646  yes) AM_DEFAULT_VERBOSITY=0;;
11647   no) AM_DEFAULT_VERBOSITY=1;;
11648esac
11649if test $am_cv_make_support_nested_variables = yes; then
11650    AM_V='$(V)'
11651  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11652else
11653  AM_V=$AM_DEFAULT_VERBOSITY
11654  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11655fi
11656
11657 if test -n "$EXEEXT"; then
11658  am__EXEEXT_TRUE=
11659  am__EXEEXT_FALSE='#'
11660else
11661  am__EXEEXT_TRUE='#'
11662  am__EXEEXT_FALSE=
11663fi
11664
11665if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11666  as_fn_error $? "conditional \"AMDEP\" was never defined.
11667Usually this means the macro was only invoked conditionally." "$LINENO" 5
11668fi
11669if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11670  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11671Usually this means the macro was only invoked conditionally." "$LINENO" 5
11672fi
11673
11674: "${CONFIG_STATUS=./config.status}"
11675ac_write_fail=0
11676ac_clean_files_save=$ac_clean_files
11677ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11679printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11680as_write_fail=0
11681cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11682#! $SHELL
11683# Generated by $as_me.
11684# Run this file to recreate the current configuration.
11685# Compiler output produced by configure, useful for debugging
11686# configure, is in config.log if it exists.
11687
11688debug=false
11689ac_cs_recheck=false
11690ac_cs_silent=false
11691
11692SHELL=\${CONFIG_SHELL-$SHELL}
11693export SHELL
11694_ASEOF
11695cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11696## -------------------- ##
11697## M4sh Initialization. ##
11698## -------------------- ##
11699
11700# Be more Bourne compatible
11701DUALCASE=1; export DUALCASE # for MKS sh
11702if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11703then :
11704  emulate sh
11705  NULLCMD=:
11706  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11707  # is contrary to our usage.  Disable this feature.
11708  alias -g '${1+"$@"}'='"$@"'
11709  setopt NO_GLOB_SUBST
11710else case e in #(
11711  e) case `(set -o) 2>/dev/null` in #(
11712  *posix*) :
11713    set -o posix ;; #(
11714  *) :
11715     ;;
11716esac ;;
11717esac
11718fi
11719
11720
11721
11722# Reset variables that may have inherited troublesome values from
11723# the environment.
11724
11725# IFS needs to be set, to space, tab, and newline, in precisely that order.
11726# (If _AS_PATH_WALK were called with IFS unset, it would have the
11727# side effect of setting IFS to empty, thus disabling word splitting.)
11728# Quoting is to prevent editors from complaining about space-tab.
11729as_nl='
11730'
11731export as_nl
11732IFS=" ""	$as_nl"
11733
11734PS1='$ '
11735PS2='> '
11736PS4='+ '
11737
11738# Ensure predictable behavior from utilities with locale-dependent output.
11739LC_ALL=C
11740export LC_ALL
11741LANGUAGE=C
11742export LANGUAGE
11743
11744# We cannot yet rely on "unset" to work, but we need these variables
11745# to be unset--not just set to an empty or harmless value--now, to
11746# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11747# also avoids known problems related to "unset" and subshell syntax
11748# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11749for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11750do eval test \${$as_var+y} \
11751  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11752done
11753
11754# Ensure that fds 0, 1, and 2 are open.
11755if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11756if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11757if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11758
11759# The user is always right.
11760if ${PATH_SEPARATOR+false} :; then
11761  PATH_SEPARATOR=:
11762  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11763    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11764      PATH_SEPARATOR=';'
11765  }
11766fi
11767
11768
11769# Find who we are.  Look in the path if we contain no directory separator.
11770as_myself=
11771case $0 in #((
11772  *[\\/]* ) as_myself=$0 ;;
11773  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774for as_dir in $PATH
11775do
11776  IFS=$as_save_IFS
11777  case $as_dir in #(((
11778    '') as_dir=./ ;;
11779    */) ;;
11780    *) as_dir=$as_dir/ ;;
11781  esac
11782    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11783  done
11784IFS=$as_save_IFS
11785
11786     ;;
11787esac
11788# We did not find ourselves, most probably we were run as 'sh COMMAND'
11789# in which case we are not to be found in the path.
11790if test "x$as_myself" = x; then
11791  as_myself=$0
11792fi
11793if test ! -f "$as_myself"; then
11794  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11795  exit 1
11796fi
11797
11798
11799
11800# as_fn_error STATUS ERROR [LINENO LOG_FD]
11801# ----------------------------------------
11802# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11803# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11804# script with STATUS, using 1 if that was 0.
11805as_fn_error ()
11806{
11807  as_status=$1; test $as_status -eq 0 && as_status=1
11808  if test "$4"; then
11809    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11810    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11811  fi
11812  printf "%s\n" "$as_me: error: $2" >&2
11813  as_fn_exit $as_status
11814} # as_fn_error
11815
11816
11817# as_fn_set_status STATUS
11818# -----------------------
11819# Set $? to STATUS, without forking.
11820as_fn_set_status ()
11821{
11822  return $1
11823} # as_fn_set_status
11824
11825# as_fn_exit STATUS
11826# -----------------
11827# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11828as_fn_exit ()
11829{
11830  set +e
11831  as_fn_set_status $1
11832  exit $1
11833} # as_fn_exit
11834
11835# as_fn_unset VAR
11836# ---------------
11837# Portably unset VAR.
11838as_fn_unset ()
11839{
11840  { eval $1=; unset $1;}
11841}
11842as_unset=as_fn_unset
11843
11844# as_fn_append VAR VALUE
11845# ----------------------
11846# Append the text in VALUE to the end of the definition contained in VAR. Take
11847# advantage of any shell optimizations that allow amortized linear growth over
11848# repeated appends, instead of the typical quadratic growth present in naive
11849# implementations.
11850if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11851then :
11852  eval 'as_fn_append ()
11853  {
11854    eval $1+=\$2
11855  }'
11856else case e in #(
11857  e) as_fn_append ()
11858  {
11859    eval $1=\$$1\$2
11860  } ;;
11861esac
11862fi # as_fn_append
11863
11864# as_fn_arith ARG...
11865# ------------------
11866# Perform arithmetic evaluation on the ARGs, and store the result in the
11867# global $as_val. Take advantage of shells that can avoid forks. The arguments
11868# must be portable across $(()) and expr.
11869if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11870then :
11871  eval 'as_fn_arith ()
11872  {
11873    as_val=$(( $* ))
11874  }'
11875else case e in #(
11876  e) as_fn_arith ()
11877  {
11878    as_val=`expr "$@" || test $? -eq 1`
11879  } ;;
11880esac
11881fi # as_fn_arith
11882
11883
11884if expr a : '\(a\)' >/dev/null 2>&1 &&
11885   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11886  as_expr=expr
11887else
11888  as_expr=false
11889fi
11890
11891if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11892  as_basename=basename
11893else
11894  as_basename=false
11895fi
11896
11897if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11898  as_dirname=dirname
11899else
11900  as_dirname=false
11901fi
11902
11903as_me=`$as_basename -- "$0" ||
11904$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11905	 X"$0" : 'X\(//\)$' \| \
11906	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11907printf "%s\n" X/"$0" |
11908    sed '/^.*\/\([^/][^/]*\)\/*$/{
11909	    s//\1/
11910	    q
11911	  }
11912	  /^X\/\(\/\/\)$/{
11913	    s//\1/
11914	    q
11915	  }
11916	  /^X\/\(\/\).*/{
11917	    s//\1/
11918	    q
11919	  }
11920	  s/.*/./; q'`
11921
11922# Avoid depending upon Character Ranges.
11923as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11924as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11925as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11926as_cr_digits='0123456789'
11927as_cr_alnum=$as_cr_Letters$as_cr_digits
11928
11929
11930# Determine whether it's possible to make 'echo' print without a newline.
11931# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11932# for compatibility with existing Makefiles.
11933ECHO_C= ECHO_N= ECHO_T=
11934case `echo -n x` in #(((((
11935-n*)
11936  case `echo 'xy\c'` in
11937  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11938  xy)  ECHO_C='\c';;
11939  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11940       ECHO_T='	';;
11941  esac;;
11942*)
11943  ECHO_N='-n';;
11944esac
11945
11946# For backward compatibility with old third-party macros, we provide
11947# the shell variables $as_echo and $as_echo_n.  New code should use
11948# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11949as_echo='printf %s\n'
11950as_echo_n='printf %s'
11951
11952rm -f conf$$ conf$$.exe conf$$.file
11953if test -d conf$$.dir; then
11954  rm -f conf$$.dir/conf$$.file
11955else
11956  rm -f conf$$.dir
11957  mkdir conf$$.dir 2>/dev/null
11958fi
11959if (echo >conf$$.file) 2>/dev/null; then
11960  if ln -s conf$$.file conf$$ 2>/dev/null; then
11961    as_ln_s='ln -s'
11962    # ... but there are two gotchas:
11963    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
11964    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
11965    # In both cases, we have to default to 'cp -pR'.
11966    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11967      as_ln_s='cp -pR'
11968  elif ln conf$$.file conf$$ 2>/dev/null; then
11969    as_ln_s=ln
11970  else
11971    as_ln_s='cp -pR'
11972  fi
11973else
11974  as_ln_s='cp -pR'
11975fi
11976rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11977rmdir conf$$.dir 2>/dev/null
11978
11979
11980# as_fn_mkdir_p
11981# -------------
11982# Create "$as_dir" as a directory, including parents if necessary.
11983as_fn_mkdir_p ()
11984{
11985
11986  case $as_dir in #(
11987  -*) as_dir=./$as_dir;;
11988  esac
11989  test -d "$as_dir" || eval $as_mkdir_p || {
11990    as_dirs=
11991    while :; do
11992      case $as_dir in #(
11993      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11994      *) as_qdir=$as_dir;;
11995      esac
11996      as_dirs="'$as_qdir' $as_dirs"
11997      as_dir=`$as_dirname -- "$as_dir" ||
11998$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11999	 X"$as_dir" : 'X\(//\)[^/]' \| \
12000	 X"$as_dir" : 'X\(//\)$' \| \
12001	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12002printf "%s\n" X"$as_dir" |
12003    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12004	    s//\1/
12005	    q
12006	  }
12007	  /^X\(\/\/\)[^/].*/{
12008	    s//\1/
12009	    q
12010	  }
12011	  /^X\(\/\/\)$/{
12012	    s//\1/
12013	    q
12014	  }
12015	  /^X\(\/\).*/{
12016	    s//\1/
12017	    q
12018	  }
12019	  s/.*/./; q'`
12020      test -d "$as_dir" && break
12021    done
12022    test -z "$as_dirs" || eval "mkdir $as_dirs"
12023  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12024
12025
12026} # as_fn_mkdir_p
12027if mkdir -p . 2>/dev/null; then
12028  as_mkdir_p='mkdir -p "$as_dir"'
12029else
12030  test -d ./-p && rmdir ./-p
12031  as_mkdir_p=false
12032fi
12033
12034
12035# as_fn_executable_p FILE
12036# -----------------------
12037# Test if FILE is an executable regular file.
12038as_fn_executable_p ()
12039{
12040  test -f "$1" && test -x "$1"
12041} # as_fn_executable_p
12042as_test_x='test -x'
12043as_executable_p=as_fn_executable_p
12044
12045# Sed expression to map a string onto a valid CPP name.
12046as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12047as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12048
12049# Sed expression to map a string onto a valid variable name.
12050as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12051as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12052
12053
12054exec 6>&1
12055## ----------------------------------- ##
12056## Main body of $CONFIG_STATUS script. ##
12057## ----------------------------------- ##
12058_ASEOF
12059test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12060
12061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12062# Save the log message, to keep $0 and so on meaningful, and to
12063# report actual input values of CONFIG_FILES etc. instead of their
12064# values after options handling.
12065ac_log="
12066This file was extended by transset $as_me 1.0.4, which was
12067generated by GNU Autoconf 2.72.  Invocation command line was
12068
12069  CONFIG_FILES    = $CONFIG_FILES
12070  CONFIG_HEADERS  = $CONFIG_HEADERS
12071  CONFIG_LINKS    = $CONFIG_LINKS
12072  CONFIG_COMMANDS = $CONFIG_COMMANDS
12073  $ $0 $@
12074
12075on `(hostname || uname -n) 2>/dev/null | sed 1q`
12076"
12077
12078_ACEOF
12079
12080case $ac_config_files in *"
12081"*) set x $ac_config_files; shift; ac_config_files=$*;;
12082esac
12083
12084case $ac_config_headers in *"
12085"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12086esac
12087
12088
12089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12090# Files that config.status was made for.
12091config_files="$ac_config_files"
12092config_headers="$ac_config_headers"
12093config_commands="$ac_config_commands"
12094
12095_ACEOF
12096
12097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12098ac_cs_usage="\
12099'$as_me' instantiates files and other configuration actions
12100from templates according to the current configuration.  Unless the files
12101and actions are specified as TAGs, all are instantiated by default.
12102
12103Usage: $0 [OPTION]... [TAG]...
12104
12105  -h, --help       print this help, then exit
12106  -V, --version    print version number and configuration settings, then exit
12107      --config     print configuration, then exit
12108  -q, --quiet, --silent
12109                   do not print progress messages
12110  -d, --debug      don't remove temporary files
12111      --recheck    update $as_me by reconfiguring in the same conditions
12112      --file=FILE[:TEMPLATE]
12113                   instantiate the configuration file FILE
12114      --header=FILE[:TEMPLATE]
12115                   instantiate the configuration header FILE
12116
12117Configuration files:
12118$config_files
12119
12120Configuration headers:
12121$config_headers
12122
12123Configuration commands:
12124$config_commands
12125
12126Report bugs to <https://gitlab.freedesktop.org/xorg/app/transset/-/issues>."
12127
12128_ACEOF
12129ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12130ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12132ac_cs_config='$ac_cs_config_escaped'
12133ac_cs_version="\\
12134transset config.status 1.0.4
12135configured by $0, generated by GNU Autoconf 2.72,
12136  with options \\"\$ac_cs_config\\"
12137
12138Copyright (C) 2023 Free Software Foundation, Inc.
12139This config.status script is free software; the Free Software Foundation
12140gives unlimited permission to copy, distribute and modify it."
12141
12142ac_pwd='$ac_pwd'
12143srcdir='$srcdir'
12144INSTALL='$INSTALL'
12145MKDIR_P='$MKDIR_P'
12146AWK='$AWK'
12147test -n "\$AWK" || AWK=awk
12148_ACEOF
12149
12150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12151# The default lists apply if the user does not specify any file.
12152ac_need_defaults=:
12153while test $# != 0
12154do
12155  case $1 in
12156  --*=?*)
12157    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12158    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12159    ac_shift=:
12160    ;;
12161  --*=)
12162    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12163    ac_optarg=
12164    ac_shift=:
12165    ;;
12166  *)
12167    ac_option=$1
12168    ac_optarg=$2
12169    ac_shift=shift
12170    ;;
12171  esac
12172
12173  case $ac_option in
12174  # Handling of the options.
12175  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12176    ac_cs_recheck=: ;;
12177  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12178    printf "%s\n" "$ac_cs_version"; exit ;;
12179  --config | --confi | --conf | --con | --co | --c )
12180    printf "%s\n" "$ac_cs_config"; exit ;;
12181  --debug | --debu | --deb | --de | --d | -d )
12182    debug=: ;;
12183  --file | --fil | --fi | --f )
12184    $ac_shift
12185    case $ac_optarg in
12186    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12187    '') as_fn_error $? "missing file argument" ;;
12188    esac
12189    as_fn_append CONFIG_FILES " '$ac_optarg'"
12190    ac_need_defaults=false;;
12191  --header | --heade | --head | --hea )
12192    $ac_shift
12193    case $ac_optarg in
12194    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12195    esac
12196    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12197    ac_need_defaults=false;;
12198  --he | --h)
12199    # Conflict between --help and --header
12200    as_fn_error $? "ambiguous option: '$1'
12201Try '$0 --help' for more information.";;
12202  --help | --hel | -h )
12203    printf "%s\n" "$ac_cs_usage"; exit ;;
12204  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12205  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12206    ac_cs_silent=: ;;
12207
12208  # This is an error.
12209  -*) as_fn_error $? "unrecognized option: '$1'
12210Try '$0 --help' for more information." ;;
12211
12212  *) as_fn_append ac_config_targets " $1"
12213     ac_need_defaults=false ;;
12214
12215  esac
12216  shift
12217done
12218
12219ac_configure_extra_args=
12220
12221if $ac_cs_silent; then
12222  exec 6>/dev/null
12223  ac_configure_extra_args="$ac_configure_extra_args --silent"
12224fi
12225
12226_ACEOF
12227cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12228if \$ac_cs_recheck; then
12229  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12230  shift
12231  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12232  CONFIG_SHELL='$SHELL'
12233  export CONFIG_SHELL
12234  exec "\$@"
12235fi
12236
12237_ACEOF
12238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12239exec 5>>config.log
12240{
12241  echo
12242  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12243## Running $as_me. ##
12244_ASBOX
12245  printf "%s\n" "$ac_log"
12246} >&5
12247
12248_ACEOF
12249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12250#
12251# INIT-COMMANDS
12252#
12253AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12254
12255_ACEOF
12256
12257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12258
12259# Handling of arguments.
12260for ac_config_target in $ac_config_targets
12261do
12262  case $ac_config_target in
12263    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12264    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12265    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12266    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12267
12268  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12269  esac
12270done
12271
12272
12273# If the user did not use the arguments to specify the items to instantiate,
12274# then the envvar interface is used.  Set only those that are not.
12275# We use the long form for the default assignment because of an extremely
12276# bizarre bug on SunOS 4.1.3.
12277if $ac_need_defaults; then
12278  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12279  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12280  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12281fi
12282
12283# Have a temporary directory for convenience.  Make it in the build tree
12284# simply because there is no reason against having it here, and in addition,
12285# creating and moving files from /tmp can sometimes cause problems.
12286# Hook for its removal unless debugging.
12287# Note that there is a small window in which the directory will not be cleaned:
12288# after its creation but before its name has been assigned to '$tmp'.
12289$debug ||
12290{
12291  tmp= ac_tmp=
12292  trap 'exit_status=$?
12293  : "${ac_tmp:=$tmp}"
12294  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12295' 0
12296  trap 'as_fn_exit 1' 1 2 13 15
12297}
12298# Create a (secure) tmp directory for tmp files.
12299
12300{
12301  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12302  test -d "$tmp"
12303}  ||
12304{
12305  tmp=./conf$$-$RANDOM
12306  (umask 077 && mkdir "$tmp")
12307} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12308ac_tmp=$tmp
12309
12310# Set up the scripts for CONFIG_FILES section.
12311# No need to generate them if there are no CONFIG_FILES.
12312# This happens for instance with './config.status config.h'.
12313if test -n "$CONFIG_FILES"; then
12314
12315
12316ac_cr=`echo X | tr X '\015'`
12317# On cygwin, bash can eat \r inside `` if the user requested igncr.
12318# But we know of no other shell where ac_cr would be empty at this
12319# point, so we can use a bashism as a fallback.
12320if test "x$ac_cr" = x; then
12321  eval ac_cr=\$\'\\r\'
12322fi
12323ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12324if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12325  ac_cs_awk_cr='\\r'
12326else
12327  ac_cs_awk_cr=$ac_cr
12328fi
12329
12330echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12331_ACEOF
12332
12333
12334{
12335  echo "cat >conf$$subs.awk <<_ACEOF" &&
12336  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12337  echo "_ACEOF"
12338} >conf$$subs.sh ||
12339  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12340ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12341ac_delim='%!_!# '
12342for ac_last_try in false false false false false :; do
12343  . ./conf$$subs.sh ||
12344    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12345
12346  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12347  if test $ac_delim_n = $ac_delim_num; then
12348    break
12349  elif $ac_last_try; then
12350    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12351  else
12352    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12353  fi
12354done
12355rm -f conf$$subs.sh
12356
12357cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12358cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12359_ACEOF
12360sed -n '
12361h
12362s/^/S["/; s/!.*/"]=/
12363p
12364g
12365s/^[^!]*!//
12366:repl
12367t repl
12368s/'"$ac_delim"'$//
12369t delim
12370:nl
12371h
12372s/\(.\{148\}\)..*/\1/
12373t more1
12374s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12375p
12376n
12377b repl
12378:more1
12379s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12380p
12381g
12382s/.\{148\}//
12383t nl
12384:delim
12385h
12386s/\(.\{148\}\)..*/\1/
12387t more2
12388s/["\\]/\\&/g; s/^/"/; s/$/"/
12389p
12390b
12391:more2
12392s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12393p
12394g
12395s/.\{148\}//
12396t delim
12397' <conf$$subs.awk | sed '
12398/^[^""]/{
12399  N
12400  s/\n//
12401}
12402' >>$CONFIG_STATUS || ac_write_fail=1
12403rm -f conf$$subs.awk
12404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12405_ACAWK
12406cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12407  for (key in S) S_is_set[key] = 1
12408  FS = ""
12409
12410}
12411{
12412  line = $ 0
12413  nfields = split(line, field, "@")
12414  substed = 0
12415  len = length(field[1])
12416  for (i = 2; i < nfields; i++) {
12417    key = field[i]
12418    keylen = length(key)
12419    if (S_is_set[key]) {
12420      value = S[key]
12421      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12422      len += length(value) + length(field[++i])
12423      substed = 1
12424    } else
12425      len += 1 + keylen
12426  }
12427
12428  print line
12429}
12430
12431_ACAWK
12432_ACEOF
12433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12434if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12435  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12436else
12437  cat
12438fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12439  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12440_ACEOF
12441
12442# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12443# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12444# trailing colons and then remove the whole line if VPATH becomes empty
12445# (actually we leave an empty line to preserve line numbers).
12446if test "x$srcdir" = x.; then
12447  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12448h
12449s///
12450s/^/:/
12451s/[	 ]*$/:/
12452s/:\$(srcdir):/:/g
12453s/:\${srcdir}:/:/g
12454s/:@srcdir@:/:/g
12455s/^:*//
12456s/:*$//
12457x
12458s/\(=[	 ]*\).*/\1/
12459G
12460s/\n//
12461s/^[^=]*=[	 ]*$//
12462}'
12463fi
12464
12465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12466fi # test -n "$CONFIG_FILES"
12467
12468# Set up the scripts for CONFIG_HEADERS section.
12469# No need to generate them if there are no CONFIG_HEADERS.
12470# This happens for instance with './config.status Makefile'.
12471if test -n "$CONFIG_HEADERS"; then
12472cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12473BEGIN {
12474_ACEOF
12475
12476# Transform confdefs.h into an awk script 'defines.awk', embedded as
12477# here-document in config.status, that substitutes the proper values into
12478# config.h.in to produce config.h.
12479
12480# Create a delimiter string that does not exist in confdefs.h, to ease
12481# handling of long lines.
12482ac_delim='%!_!# '
12483for ac_last_try in false false :; do
12484  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12485  if test -z "$ac_tt"; then
12486    break
12487  elif $ac_last_try; then
12488    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12489  else
12490    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12491  fi
12492done
12493
12494# For the awk script, D is an array of macro values keyed by name,
12495# likewise P contains macro parameters if any.  Preserve backslash
12496# newline sequences.
12497
12498ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12499sed -n '
12500s/.\{148\}/&'"$ac_delim"'/g
12501t rset
12502:rset
12503s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12504t def
12505d
12506:def
12507s/\\$//
12508t bsnl
12509s/["\\]/\\&/g
12510s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12511D["\1"]=" \3"/p
12512s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12513d
12514:bsnl
12515s/["\\]/\\&/g
12516s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12517D["\1"]=" \3\\\\\\n"\\/p
12518t cont
12519s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12520t cont
12521d
12522:cont
12523n
12524s/.\{148\}/&'"$ac_delim"'/g
12525t clear
12526:clear
12527s/\\$//
12528t bsnlc
12529s/["\\]/\\&/g; s/^/"/; s/$/"/p
12530d
12531:bsnlc
12532s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12533b cont
12534' <confdefs.h | sed '
12535s/'"$ac_delim"'/"\\\
12536"/g' >>$CONFIG_STATUS || ac_write_fail=1
12537
12538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12539  for (key in D) D_is_set[key] = 1
12540  FS = ""
12541}
12542/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12543  line = \$ 0
12544  split(line, arg, " ")
12545  if (arg[1] == "#") {
12546    defundef = arg[2]
12547    mac1 = arg[3]
12548  } else {
12549    defundef = substr(arg[1], 2)
12550    mac1 = arg[2]
12551  }
12552  split(mac1, mac2, "(") #)
12553  macro = mac2[1]
12554  prefix = substr(line, 1, index(line, defundef) - 1)
12555  if (D_is_set[macro]) {
12556    # Preserve the white space surrounding the "#".
12557    print prefix "define", macro P[macro] D[macro]
12558    next
12559  } else {
12560    # Replace #undef with comments.  This is necessary, for example,
12561    # in the case of _POSIX_SOURCE, which is predefined and required
12562    # on some systems where configure will not decide to define it.
12563    if (defundef == "undef") {
12564      print "/*", prefix defundef, macro, "*/"
12565      next
12566    }
12567  }
12568}
12569{ print }
12570_ACAWK
12571_ACEOF
12572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12573  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12574fi # test -n "$CONFIG_HEADERS"
12575
12576
12577eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12578shift
12579for ac_tag
12580do
12581  case $ac_tag in
12582  :[FHLC]) ac_mode=$ac_tag; continue;;
12583  esac
12584  case $ac_mode$ac_tag in
12585  :[FHL]*:*);;
12586  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12587  :[FH]-) ac_tag=-:-;;
12588  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12589  esac
12590  ac_save_IFS=$IFS
12591  IFS=:
12592  set x $ac_tag
12593  IFS=$ac_save_IFS
12594  shift
12595  ac_file=$1
12596  shift
12597
12598  case $ac_mode in
12599  :L) ac_source=$1;;
12600  :[FH])
12601    ac_file_inputs=
12602    for ac_f
12603    do
12604      case $ac_f in
12605      -) ac_f="$ac_tmp/stdin";;
12606      *) # Look for the file first in the build tree, then in the source tree
12607	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12608	 # because $ac_f cannot contain ':'.
12609	 test -f "$ac_f" ||
12610	   case $ac_f in
12611	   [\\/$]*) false;;
12612	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12613	   esac ||
12614	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12615      esac
12616      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12617      as_fn_append ac_file_inputs " '$ac_f'"
12618    done
12619
12620    # Let's still pretend it is 'configure' which instantiates (i.e., don't
12621    # use $as_me), people would be surprised to read:
12622    #    /* config.h.  Generated by config.status.  */
12623    configure_input='Generated from '`
12624	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12625	`' by configure.'
12626    if test x"$ac_file" != x-; then
12627      configure_input="$ac_file.  $configure_input"
12628      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12629printf "%s\n" "$as_me: creating $ac_file" >&6;}
12630    fi
12631    # Neutralize special characters interpreted by sed in replacement strings.
12632    case $configure_input in #(
12633    *\&* | *\|* | *\\* )
12634       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12635       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12636    *) ac_sed_conf_input=$configure_input;;
12637    esac
12638
12639    case $ac_tag in
12640    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12641      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12642    esac
12643    ;;
12644  esac
12645
12646  ac_dir=`$as_dirname -- "$ac_file" ||
12647$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12648	 X"$ac_file" : 'X\(//\)[^/]' \| \
12649	 X"$ac_file" : 'X\(//\)$' \| \
12650	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12651printf "%s\n" X"$ac_file" |
12652    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12653	    s//\1/
12654	    q
12655	  }
12656	  /^X\(\/\/\)[^/].*/{
12657	    s//\1/
12658	    q
12659	  }
12660	  /^X\(\/\/\)$/{
12661	    s//\1/
12662	    q
12663	  }
12664	  /^X\(\/\).*/{
12665	    s//\1/
12666	    q
12667	  }
12668	  s/.*/./; q'`
12669  as_dir="$ac_dir"; as_fn_mkdir_p
12670  ac_builddir=.
12671
12672case "$ac_dir" in
12673.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12674*)
12675  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12676  # A ".." for each directory in $ac_dir_suffix.
12677  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12678  case $ac_top_builddir_sub in
12679  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12680  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12681  esac ;;
12682esac
12683ac_abs_top_builddir=$ac_pwd
12684ac_abs_builddir=$ac_pwd$ac_dir_suffix
12685# for backward compatibility:
12686ac_top_builddir=$ac_top_build_prefix
12687
12688case $srcdir in
12689  .)  # We are building in place.
12690    ac_srcdir=.
12691    ac_top_srcdir=$ac_top_builddir_sub
12692    ac_abs_top_srcdir=$ac_pwd ;;
12693  [\\/]* | ?:[\\/]* )  # Absolute name.
12694    ac_srcdir=$srcdir$ac_dir_suffix;
12695    ac_top_srcdir=$srcdir
12696    ac_abs_top_srcdir=$srcdir ;;
12697  *) # Relative name.
12698    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12699    ac_top_srcdir=$ac_top_build_prefix$srcdir
12700    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12701esac
12702ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12703
12704
12705  case $ac_mode in
12706  :F)
12707  #
12708  # CONFIG_FILE
12709  #
12710
12711  case $INSTALL in
12712  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12713  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12714  esac
12715  ac_MKDIR_P=$MKDIR_P
12716  case $MKDIR_P in
12717  [\\/$]* | ?:[\\/]* ) ;;
12718  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12719  esac
12720_ACEOF
12721
12722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12723# If the template does not know about datarootdir, expand it.
12724# FIXME: This hack should be removed a few years after 2.60.
12725ac_datarootdir_hack=; ac_datarootdir_seen=
12726ac_sed_dataroot='
12727/datarootdir/ {
12728  p
12729  q
12730}
12731/@datadir@/p
12732/@docdir@/p
12733/@infodir@/p
12734/@localedir@/p
12735/@mandir@/p'
12736case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12737*datarootdir*) ac_datarootdir_seen=yes;;
12738*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12740printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12741_ACEOF
12742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12743  ac_datarootdir_hack='
12744  s&@datadir@&$datadir&g
12745  s&@docdir@&$docdir&g
12746  s&@infodir@&$infodir&g
12747  s&@localedir@&$localedir&g
12748  s&@mandir@&$mandir&g
12749  s&\\\${datarootdir}&$datarootdir&g' ;;
12750esac
12751_ACEOF
12752
12753# Neutralize VPATH when '$srcdir' = '.'.
12754# Shell code in configure.ac might set extrasub.
12755# FIXME: do we really want to maintain this feature?
12756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12757ac_sed_extra="$ac_vpsub
12758$extrasub
12759_ACEOF
12760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12761:t
12762/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12763s|@configure_input@|$ac_sed_conf_input|;t t
12764s&@top_builddir@&$ac_top_builddir_sub&;t t
12765s&@top_build_prefix@&$ac_top_build_prefix&;t t
12766s&@srcdir@&$ac_srcdir&;t t
12767s&@abs_srcdir@&$ac_abs_srcdir&;t t
12768s&@top_srcdir@&$ac_top_srcdir&;t t
12769s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12770s&@builddir@&$ac_builddir&;t t
12771s&@abs_builddir@&$ac_abs_builddir&;t t
12772s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12773s&@INSTALL@&$ac_INSTALL&;t t
12774s&@MKDIR_P@&$ac_MKDIR_P&;t t
12775$ac_datarootdir_hack
12776"
12777eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12778  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12779
12780test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12781  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12782  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12783      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12784  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12785which seems to be undefined.  Please make sure it is defined" >&5
12786printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12787which seems to be undefined.  Please make sure it is defined" >&2;}
12788
12789  rm -f "$ac_tmp/stdin"
12790  case $ac_file in
12791  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12792  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12793  esac \
12794  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12795 ;;
12796  :H)
12797  #
12798  # CONFIG_HEADER
12799  #
12800  if test x"$ac_file" != x-; then
12801    {
12802      printf "%s\n" "/* $configure_input  */" >&1 \
12803      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12804    } >"$ac_tmp/config.h" \
12805      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12806    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12807      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12808printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12809    else
12810      rm -f "$ac_file"
12811      mv "$ac_tmp/config.h" "$ac_file" \
12812	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12813    fi
12814  else
12815    printf "%s\n" "/* $configure_input  */" >&1 \
12816      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12817      || as_fn_error $? "could not create -" "$LINENO" 5
12818  fi
12819# Compute "$ac_file"'s index in $config_headers.
12820_am_arg="$ac_file"
12821_am_stamp_count=1
12822for _am_header in $config_headers :; do
12823  case $_am_header in
12824    $_am_arg | $_am_arg:* )
12825      break ;;
12826    * )
12827      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12828  esac
12829done
12830echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12831$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12832	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12833	 X"$_am_arg" : 'X\(//\)$' \| \
12834	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12835printf "%s\n" X"$_am_arg" |
12836    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12837	    s//\1/
12838	    q
12839	  }
12840	  /^X\(\/\/\)[^/].*/{
12841	    s//\1/
12842	    q
12843	  }
12844	  /^X\(\/\/\)$/{
12845	    s//\1/
12846	    q
12847	  }
12848	  /^X\(\/\).*/{
12849	    s//\1/
12850	    q
12851	  }
12852	  s/.*/./; q'`/stamp-h$_am_stamp_count
12853 ;;
12854
12855  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12856printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12857 ;;
12858  esac
12859
12860
12861  case $ac_file$ac_mode in
12862    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12863  # Older Autoconf quotes --file arguments for eval, but not when files
12864  # are listed without --file.  Let's play safe and only enable the eval
12865  # if we detect the quoting.
12866  # TODO: see whether this extra hack can be removed once we start
12867  # requiring Autoconf 2.70 or later.
12868  case $CONFIG_FILES in #(
12869  *\'*) :
12870    eval set x "$CONFIG_FILES" ;; #(
12871  *) :
12872    set x $CONFIG_FILES ;; #(
12873  *) :
12874     ;;
12875esac
12876  shift
12877  # Used to flag and report bootstrapping failures.
12878  am_rc=0
12879  for am_mf
12880  do
12881    # Strip MF so we end up with the name of the file.
12882    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12883    # Check whether this is an Automake generated Makefile which includes
12884    # dependency-tracking related rules and includes.
12885    # Grep'ing the whole file directly is not great: AIX grep has a line
12886    # limit of 2048, but all sed's we know have understand at least 4000.
12887    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12888      || continue
12889    am_dirpart=`$as_dirname -- "$am_mf" ||
12890$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12891	 X"$am_mf" : 'X\(//\)[^/]' \| \
12892	 X"$am_mf" : 'X\(//\)$' \| \
12893	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12894printf "%s\n" X"$am_mf" |
12895    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12896	    s//\1/
12897	    q
12898	  }
12899	  /^X\(\/\/\)[^/].*/{
12900	    s//\1/
12901	    q
12902	  }
12903	  /^X\(\/\/\)$/{
12904	    s//\1/
12905	    q
12906	  }
12907	  /^X\(\/\).*/{
12908	    s//\1/
12909	    q
12910	  }
12911	  s/.*/./; q'`
12912    am_filepart=`$as_basename -- "$am_mf" ||
12913$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12914	 X"$am_mf" : 'X\(//\)$' \| \
12915	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12916printf "%s\n" X/"$am_mf" |
12917    sed '/^.*\/\([^/][^/]*\)\/*$/{
12918	    s//\1/
12919	    q
12920	  }
12921	  /^X\/\(\/\/\)$/{
12922	    s//\1/
12923	    q
12924	  }
12925	  /^X\/\(\/\).*/{
12926	    s//\1/
12927	    q
12928	  }
12929	  s/.*/./; q'`
12930    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12931      && sed -e '/# am--include-marker/d' "$am_filepart" \
12932        | $MAKE -f - am--depfiles" >&5
12933   (cd "$am_dirpart" \
12934      && sed -e '/# am--include-marker/d' "$am_filepart" \
12935        | $MAKE -f - am--depfiles) >&5 2>&5
12936   ac_status=$?
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); } || am_rc=$?
12939  done
12940  if test $am_rc -ne 0; then
12941    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12942printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12943as_fn_error $? "Something went wrong bootstrapping makefile fragments
12944    for automatic dependency tracking.  If GNU make was not used, consider
12945    re-running the configure script with MAKE=\"gmake\" (or whatever is
12946    necessary).  You can also try re-running configure with the
12947    '--disable-dependency-tracking' option to at least be able to build
12948    the package (albeit without support for automatic dependency tracking).
12949See 'config.log' for more details" "$LINENO" 5; }
12950  fi
12951  { am_dirpart=; unset am_dirpart;}
12952  { am_filepart=; unset am_filepart;}
12953  { am_mf=; unset am_mf;}
12954  { am_rc=; unset am_rc;}
12955  rm -f conftest-deps.mk
12956}
12957 ;;
12958
12959  esac
12960done # for ac_tag
12961
12962
12963as_fn_exit 0
12964_ACEOF
12965ac_clean_files=$ac_clean_files_save
12966
12967test $ac_write_fail = 0 ||
12968  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12969
12970
12971# configure is writing to config.log, and then calls config.status.
12972# config.status does its own redirection, appending to config.log.
12973# Unfortunately, on DOS this fails, as config.log is still kept open
12974# by configure, so config.status won't be able to write to it; its
12975# output is simply discarded.  So we exec the FD to /dev/null,
12976# effectively closing config.log, so it can be properly (re)opened and
12977# appended to by config.status.  When coming back to configure, we
12978# need to make the FD available again.
12979if test "$no_create" != yes; then
12980  ac_cs_success=:
12981  ac_config_status_args=
12982  test "$silent" = yes &&
12983    ac_config_status_args="$ac_config_status_args --quiet"
12984  exec 5>/dev/null
12985  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12986  exec 5>>config.log
12987  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12988  # would make configure fail if this is the last instruction.
12989  $ac_cs_success || as_fn_exit 1
12990fi
12991if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12993printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12994fi
12995
12996
12997