configure revision 7015785a
114c0a534Smrg#! /bin/sh
214c0a534Smrg# Guess values for system-dependent variables and create Makefiles.
37015785aSmrg# Generated by GNU Autoconf 2.72 for smproxy 1.0.8.
414c0a534Smrg#
57015785aSmrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/smproxy/-/issues>.
614c0a534Smrg#
7576bae58Smrg#
87015785aSmrg# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9bdc460c5Smrg# Inc.
10576bae58Smrg#
11576bae58Smrg#
1214c0a534Smrg# This configure script is free software; the Free Software Foundation
1314c0a534Smrg# gives unlimited permission to copy, distribute and modify it.
14576bae58Smrg## -------------------- ##
15576bae58Smrg## M4sh Initialization. ##
16576bae58Smrg## -------------------- ##
1714c0a534Smrg
18bf2eeab3Smrg# Be more Bourne compatible
19bf2eeab3SmrgDUALCASE=1; export DUALCASE # for MKS sh
20bdc460c5Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21bdc460c5Smrgthen :
2214c0a534Smrg  emulate sh
2314c0a534Smrg  NULLCMD=:
24bf2eeab3Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2514c0a534Smrg  # is contrary to our usage.  Disable this feature.
2614c0a534Smrg  alias -g '${1+"$@"}'='"$@"'
27bf2eeab3Smrg  setopt NO_GLOB_SUBST
287015785aSmrgelse case e in #(
297015785aSmrg  e) case `(set -o) 2>/dev/null` in #(
30576bae58Smrg  *posix*) :
31576bae58Smrg    set -o posix ;; #(
32576bae58Smrg  *) :
33576bae58Smrg     ;;
347015785aSmrgesac ;;
35bf2eeab3Smrgesac
36bf2eeab3Smrgfi
37bf2eeab3Smrg
38bf2eeab3Smrg
39bdc460c5Smrg
40bdc460c5Smrg# Reset variables that may have inherited troublesome values from
41bdc460c5Smrg# the environment.
42bdc460c5Smrg
43bdc460c5Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
44bdc460c5Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
45bdc460c5Smrg# side effect of setting IFS to empty, thus disabling word splitting.)
46bdc460c5Smrg# Quoting is to prevent editors from complaining about space-tab.
47bf2eeab3Smrgas_nl='
48bf2eeab3Smrg'
49bf2eeab3Smrgexport as_nl
50bdc460c5SmrgIFS=" ""	$as_nl"
51bdc460c5Smrg
52bdc460c5SmrgPS1='$ '
53bdc460c5SmrgPS2='> '
54bdc460c5SmrgPS4='+ '
55bdc460c5Smrg
56bdc460c5Smrg# Ensure predictable behavior from utilities with locale-dependent output.
57bdc460c5SmrgLC_ALL=C
58bdc460c5Smrgexport LC_ALL
59bdc460c5SmrgLANGUAGE=C
60bdc460c5Smrgexport LANGUAGE
61bdc460c5Smrg
62bdc460c5Smrg# We cannot yet rely on "unset" to work, but we need these variables
63bdc460c5Smrg# to be unset--not just set to an empty or harmless value--now, to
64bdc460c5Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65bdc460c5Smrg# also avoids known problems related to "unset" and subshell syntax
66bdc460c5Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67bdc460c5Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68bdc460c5Smrgdo eval test \${$as_var+y} \
69bdc460c5Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70bdc460c5Smrgdone
71bdc460c5Smrg
72bdc460c5Smrg# Ensure that fds 0, 1, and 2 are open.
73bdc460c5Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74bdc460c5Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75bdc460c5Smrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76bf2eeab3Smrg
77bf2eeab3Smrg# The user is always right.
78bdc460c5Smrgif ${PATH_SEPARATOR+false} :; then
79bf2eeab3Smrg  PATH_SEPARATOR=:
80bf2eeab3Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81bf2eeab3Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82bf2eeab3Smrg      PATH_SEPARATOR=';'
83bf2eeab3Smrg  }
8414c0a534Smrgfi
8514c0a534Smrg
8614c0a534Smrg
87bf2eeab3Smrg# Find who we are.  Look in the path if we contain no directory separator.
88576bae58Smrgas_myself=
89576bae58Smrgcase $0 in #((
90bf2eeab3Smrg  *[\\/]* ) as_myself=$0 ;;
91bf2eeab3Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92bf2eeab3Smrgfor as_dir in $PATH
93bf2eeab3Smrgdo
94bf2eeab3Smrg  IFS=$as_save_IFS
95bdc460c5Smrg  case $as_dir in #(((
96bdc460c5Smrg    '') as_dir=./ ;;
97bdc460c5Smrg    */) ;;
98bdc460c5Smrg    *) as_dir=$as_dir/ ;;
99bdc460c5Smrg  esac
100bdc460c5Smrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101576bae58Smrg  done
102bf2eeab3SmrgIFS=$as_save_IFS
103bf2eeab3Smrg
104bf2eeab3Smrg     ;;
105bf2eeab3Smrgesac
1067015785aSmrg# We did not find ourselves, most probably we were run as 'sh COMMAND'
107bf2eeab3Smrg# in which case we are not to be found in the path.
108bf2eeab3Smrgif test "x$as_myself" = x; then
109bf2eeab3Smrg  as_myself=$0
110bf2eeab3Smrgfi
111bf2eeab3Smrgif test ! -f "$as_myself"; then
112bdc460c5Smrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113576bae58Smrg  exit 1
114bf2eeab3Smrgfi
115bf2eeab3Smrg
116576bae58Smrg
11724047306Smrg# Use a proper internal environment variable to ensure we don't fall
11824047306Smrg  # into an infinite loop, continuously re-executing ourselves.
11924047306Smrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
12024047306Smrg    _as_can_reexec=no; export _as_can_reexec;
12124047306Smrg    # We cannot yet assume a decent shell, so we have to provide a
12224047306Smrg# neutralization value for shells without unset; and this also
12324047306Smrg# works around shells that cannot unset nonexistent variables.
12424047306Smrg# Preserve -v and -x to the replacement shell.
12524047306SmrgBASH_ENV=/dev/null
12624047306SmrgENV=/dev/null
12724047306Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
12824047306Smrgcase $- in # ((((
12924047306Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
13024047306Smrg  *v* ) as_opts=-v ;;
13124047306Smrg  *x* ) as_opts=-x ;;
13224047306Smrg  * ) as_opts= ;;
13324047306Smrgesac
13424047306Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
13524047306Smrg# Admittedly, this is quite paranoid, since all the known shells bail
1367015785aSmrg# out after a failed 'exec'.
137bdc460c5Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138bdc460c5Smrgexit 255
13924047306Smrg  fi
14024047306Smrg  # We don't want this to propagate to other subprocesses.
14124047306Smrg          { _as_can_reexec=; unset _as_can_reexec;}
142576bae58Smrgif test "x$CONFIG_SHELL" = x; then
1437015785aSmrg  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144bdc460c5Smrgthen :
145576bae58Smrg  emulate sh
146576bae58Smrg  NULLCMD=:
147576bae58Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148576bae58Smrg  # is contrary to our usage.  Disable this feature.
149576bae58Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150576bae58Smrg  setopt NO_GLOB_SUBST
1517015785aSmrgelse case e in #(
1527015785aSmrg  e) case \`(set -o) 2>/dev/null\` in #(
153576bae58Smrg  *posix*) :
154576bae58Smrg    set -o posix ;; #(
155576bae58Smrg  *) :
156576bae58Smrg     ;;
1577015785aSmrgesac ;;
158576bae58Smrgesac
159576bae58Smrgfi
160576bae58Smrg"
161576bae58Smrg  as_required="as_fn_return () { (exit \$1); }
162576bae58Smrgas_fn_success () { as_fn_return 0; }
163576bae58Smrgas_fn_failure () { as_fn_return 1; }
164576bae58Smrgas_fn_ret_success () { return 0; }
165576bae58Smrgas_fn_ret_failure () { return 1; }
166576bae58Smrg
167576bae58Smrgexitcode=0
168576bae58Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
169576bae58Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170576bae58Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171576bae58Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172bdc460c5Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" )
173bdc460c5Smrgthen :
174576bae58Smrg
1757015785aSmrgelse case e in #(
1767015785aSmrg  e) exitcode=1; echo positional parameters were not saved. ;;
1777015785aSmrgesac
178576bae58Smrgfi
17924047306Smrgtest x\$exitcode = x0 || exit 1
180bdc460c5Smrgblah=\$(echo \$(echo blah))
181bdc460c5Smrgtest x\"\$blah\" = xblah || exit 1
18224047306Smrgtest -x / || exit 1"
183576bae58Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184576bae58Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185576bae58Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186576bae58Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187576bae58Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
188bdc460c5Smrg  if (eval "$as_required") 2>/dev/null
189bdc460c5Smrgthen :
190576bae58Smrg  as_have_required=yes
1917015785aSmrgelse case e in #(
1927015785aSmrg  e) as_have_required=no ;;
1937015785aSmrgesac
194576bae58Smrgfi
195bdc460c5Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196bdc460c5Smrgthen :
197576bae58Smrg
1987015785aSmrgelse case e in #(
1997015785aSmrg  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200576bae58Smrgas_found=false
201576bae58Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202576bae58Smrgdo
203576bae58Smrg  IFS=$as_save_IFS
204bdc460c5Smrg  case $as_dir in #(((
205bdc460c5Smrg    '') as_dir=./ ;;
206bdc460c5Smrg    */) ;;
207bdc460c5Smrg    *) as_dir=$as_dir/ ;;
208bdc460c5Smrg  esac
209576bae58Smrg  as_found=:
210576bae58Smrg  case $as_dir in #(
211576bae58Smrg	 /*)
212576bae58Smrg	   for as_base in sh bash ksh sh5; do
213576bae58Smrg	     # Try only shells that exist, to save several forks.
214bdc460c5Smrg	     as_shell=$as_dir$as_base
215576bae58Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216bdc460c5Smrg		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217bdc460c5Smrgthen :
218576bae58Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
219bdc460c5Smrg		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220bdc460c5Smrgthen :
221576bae58Smrg  break 2
222576bae58Smrgfi
223576bae58Smrgfi
224576bae58Smrg	   done;;
225576bae58Smrg       esac
226576bae58Smrg  as_found=false
227576bae58Smrgdone
228576bae58SmrgIFS=$as_save_IFS
229bdc460c5Smrgif $as_found
230bdc460c5Smrgthen :
231bdc460c5Smrg
2327015785aSmrgelse case e in #(
2337015785aSmrg  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234bdc460c5Smrg	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235bdc460c5Smrgthen :
236bdc460c5Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
2377015785aSmrgfi ;;
2387015785aSmrgesac
239bdc460c5Smrgfi
240576bae58Smrg
241576bae58Smrg
242bdc460c5Smrg      if test "x$CONFIG_SHELL" != x
243bdc460c5Smrgthen :
24424047306Smrg  export CONFIG_SHELL
24524047306Smrg             # We cannot yet assume a decent shell, so we have to provide a
24624047306Smrg# neutralization value for shells without unset; and this also
24724047306Smrg# works around shells that cannot unset nonexistent variables.
24824047306Smrg# Preserve -v and -x to the replacement shell.
24924047306SmrgBASH_ENV=/dev/null
25024047306SmrgENV=/dev/null
25124047306Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
25224047306Smrgcase $- in # ((((
25324047306Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
25424047306Smrg  *v* ) as_opts=-v ;;
25524047306Smrg  *x* ) as_opts=-x ;;
25624047306Smrg  * ) as_opts= ;;
25724047306Smrgesac
25824047306Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
25924047306Smrg# Admittedly, this is quite paranoid, since all the known shells bail
2607015785aSmrg# out after a failed 'exec'.
261bdc460c5Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
26224047306Smrgexit 255
263576bae58Smrgfi
264576bae58Smrg
265bdc460c5Smrg    if test x$as_have_required = xno
266bdc460c5Smrgthen :
267bdc460c5Smrg  printf "%s\n" "$0: This script requires a shell more modern than all"
268bdc460c5Smrg  printf "%s\n" "$0: the shells that I found on your system."
269bdc460c5Smrg  if test ${ZSH_VERSION+y} ; then
270bdc460c5Smrg    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271bdc460c5Smrg    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272576bae58Smrg  else
273bdc460c5Smrg    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
2747015785aSmrg$0: https://gitlab.freedesktop.org/xorg/app/smproxy/-/issues
275576bae58Smrg$0: about your system, including any error possibly output
276576bae58Smrg$0: before this message. Then install a modern shell, or
277576bae58Smrg$0: manually run the script under such a shell if you do
278576bae58Smrg$0: have one."
279576bae58Smrg  fi
280576bae58Smrg  exit 1
2817015785aSmrgfi ;;
2827015785aSmrgesac
283576bae58Smrgfi
284576bae58Smrgfi
285576bae58SmrgSHELL=${CONFIG_SHELL-/bin/sh}
286576bae58Smrgexport SHELL
287576bae58Smrg# Unset more variables known to interfere with behavior of common tools.
288576bae58SmrgCLICOLOR_FORCE= GREP_OPTIONS=
289576bae58Smrgunset CLICOLOR_FORCE GREP_OPTIONS
290576bae58Smrg
291576bae58Smrg## --------------------- ##
292576bae58Smrg## M4sh Shell Functions. ##
293576bae58Smrg## --------------------- ##
294576bae58Smrg# as_fn_unset VAR
295576bae58Smrg# ---------------
296576bae58Smrg# Portably unset VAR.
297576bae58Smrgas_fn_unset ()
298576bae58Smrg{
299576bae58Smrg  { eval $1=; unset $1;}
300576bae58Smrg}
301576bae58Smrgas_unset=as_fn_unset
302576bae58Smrg
303bdc460c5Smrg
304576bae58Smrg# as_fn_set_status STATUS
305576bae58Smrg# -----------------------
306576bae58Smrg# Set $? to STATUS, without forking.
307576bae58Smrgas_fn_set_status ()
308576bae58Smrg{
309576bae58Smrg  return $1
310576bae58Smrg} # as_fn_set_status
311576bae58Smrg
312576bae58Smrg# as_fn_exit STATUS
313576bae58Smrg# -----------------
314576bae58Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315576bae58Smrgas_fn_exit ()
316576bae58Smrg{
317576bae58Smrg  set +e
318576bae58Smrg  as_fn_set_status $1
319576bae58Smrg  exit $1
320576bae58Smrg} # as_fn_exit
321576bae58Smrg
322576bae58Smrg# as_fn_mkdir_p
323576bae58Smrg# -------------
324576bae58Smrg# Create "$as_dir" as a directory, including parents if necessary.
325576bae58Smrgas_fn_mkdir_p ()
326576bae58Smrg{
327576bae58Smrg
328576bae58Smrg  case $as_dir in #(
329576bae58Smrg  -*) as_dir=./$as_dir;;
330576bae58Smrg  esac
331576bae58Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
332576bae58Smrg    as_dirs=
333576bae58Smrg    while :; do
334576bae58Smrg      case $as_dir in #(
335bdc460c5Smrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336576bae58Smrg      *) as_qdir=$as_dir;;
337576bae58Smrg      esac
338576bae58Smrg      as_dirs="'$as_qdir' $as_dirs"
339576bae58Smrg      as_dir=`$as_dirname -- "$as_dir" ||
340576bae58Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341576bae58Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
342576bae58Smrg	 X"$as_dir" : 'X\(//\)$' \| \
343576bae58Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344bdc460c5Smrgprintf "%s\n" X"$as_dir" |
345576bae58Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346576bae58Smrg	    s//\1/
347576bae58Smrg	    q
348576bae58Smrg	  }
349576bae58Smrg	  /^X\(\/\/\)[^/].*/{
350576bae58Smrg	    s//\1/
351576bae58Smrg	    q
352576bae58Smrg	  }
353576bae58Smrg	  /^X\(\/\/\)$/{
354576bae58Smrg	    s//\1/
355576bae58Smrg	    q
356576bae58Smrg	  }
357576bae58Smrg	  /^X\(\/\).*/{
358576bae58Smrg	    s//\1/
359576bae58Smrg	    q
360576bae58Smrg	  }
361576bae58Smrg	  s/.*/./; q'`
362576bae58Smrg      test -d "$as_dir" && break
363576bae58Smrg    done
364576bae58Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
365576bae58Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366576bae58Smrg
367576bae58Smrg
368576bae58Smrg} # as_fn_mkdir_p
36924047306Smrg
37024047306Smrg# as_fn_executable_p FILE
37124047306Smrg# -----------------------
37224047306Smrg# Test if FILE is an executable regular file.
37324047306Smrgas_fn_executable_p ()
37424047306Smrg{
37524047306Smrg  test -f "$1" && test -x "$1"
37624047306Smrg} # as_fn_executable_p
377576bae58Smrg# as_fn_append VAR VALUE
378576bae58Smrg# ----------------------
379576bae58Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
380576bae58Smrg# advantage of any shell optimizations that allow amortized linear growth over
381576bae58Smrg# repeated appends, instead of the typical quadratic growth present in naive
382576bae58Smrg# implementations.
383bdc460c5Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384bdc460c5Smrgthen :
385576bae58Smrg  eval 'as_fn_append ()
386576bae58Smrg  {
387576bae58Smrg    eval $1+=\$2
388576bae58Smrg  }'
3897015785aSmrgelse case e in #(
3907015785aSmrg  e) as_fn_append ()
391576bae58Smrg  {
392576bae58Smrg    eval $1=\$$1\$2
3937015785aSmrg  } ;;
3947015785aSmrgesac
395576bae58Smrgfi # as_fn_append
396576bae58Smrg
397576bae58Smrg# as_fn_arith ARG...
398576bae58Smrg# ------------------
399576bae58Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
400576bae58Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
401576bae58Smrg# must be portable across $(()) and expr.
402bdc460c5Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403bdc460c5Smrgthen :
404576bae58Smrg  eval 'as_fn_arith ()
405576bae58Smrg  {
406576bae58Smrg    as_val=$(( $* ))
407576bae58Smrg  }'
4087015785aSmrgelse case e in #(
4097015785aSmrg  e) as_fn_arith ()
410576bae58Smrg  {
411576bae58Smrg    as_val=`expr "$@" || test $? -eq 1`
4127015785aSmrg  } ;;
4137015785aSmrgesac
414576bae58Smrgfi # as_fn_arith
415576bae58Smrg
416576bae58Smrg
417576bae58Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
418576bae58Smrg# ----------------------------------------
419576bae58Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420576bae58Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421576bae58Smrg# script with STATUS, using 1 if that was 0.
422576bae58Smrgas_fn_error ()
423576bae58Smrg{
424576bae58Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
425576bae58Smrg  if test "$4"; then
426576bae58Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427bdc460c5Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428576bae58Smrg  fi
429bdc460c5Smrg  printf "%s\n" "$as_me: error: $2" >&2
430576bae58Smrg  as_fn_exit $as_status
431576bae58Smrg} # as_fn_error
432576bae58Smrg
433bf2eeab3Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
434bf2eeab3Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
43514c0a534Smrg  as_expr=expr
43614c0a534Smrgelse
43714c0a534Smrg  as_expr=false
43814c0a534Smrgfi
43914c0a534Smrg
440bf2eeab3Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44114c0a534Smrg  as_basename=basename
44214c0a534Smrgelse
44314c0a534Smrg  as_basename=false
44414c0a534Smrgfi
44514c0a534Smrg
446576bae58Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447576bae58Smrg  as_dirname=dirname
448576bae58Smrgelse
449576bae58Smrg  as_dirname=false
450576bae58Smrgfi
45114c0a534Smrg
452bf2eeab3Smrgas_me=`$as_basename -- "$0" ||
45314c0a534Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45414c0a534Smrg	 X"$0" : 'X\(//\)$' \| \
455bf2eeab3Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456bdc460c5Smrgprintf "%s\n" X/"$0" |
457bf2eeab3Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
458bf2eeab3Smrg	    s//\1/
459bf2eeab3Smrg	    q
460bf2eeab3Smrg	  }
461bf2eeab3Smrg	  /^X\/\(\/\/\)$/{
462bf2eeab3Smrg	    s//\1/
463bf2eeab3Smrg	    q
464bf2eeab3Smrg	  }
465bf2eeab3Smrg	  /^X\/\(\/\).*/{
466bf2eeab3Smrg	    s//\1/
467bf2eeab3Smrg	    q
468bf2eeab3Smrg	  }
469bf2eeab3Smrg	  s/.*/./; q'`
47014c0a534Smrg
471576bae58Smrg# Avoid depending upon Character Ranges.
472576bae58Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
473576bae58Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474576bae58Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
475576bae58Smrgas_cr_digits='0123456789'
476576bae58Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
47714c0a534Smrg
47814c0a534Smrg
479576bae58Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
480576bae58Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
481576bae58Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482576bae58Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483576bae58Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
484576bae58Smrg  sed -n '
485576bae58Smrg    p
486576bae58Smrg    /[$]LINENO/=
487576bae58Smrg  ' <$as_myself |
488576bae58Smrg    sed '
4897015785aSmrg      t clear
4907015785aSmrg      :clear
491576bae58Smrg      s/[$]LINENO.*/&-/
492576bae58Smrg      t lineno
493576bae58Smrg      b
494576bae58Smrg      :lineno
495576bae58Smrg      N
496576bae58Smrg      :loop
497576bae58Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498576bae58Smrg      t loop
499576bae58Smrg      s/-\n.*//
500576bae58Smrg    ' >$as_me.lineno &&
501576bae58Smrg  chmod +x "$as_me.lineno" ||
502bdc460c5Smrg    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
50314c0a534Smrg
50424047306Smrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
50524047306Smrg  # already done that, so ensure we don't try to do so again and fall
50624047306Smrg  # in an infinite loop.  This has already happened in practice.
50724047306Smrg  _as_can_reexec=no; export _as_can_reexec
508576bae58Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
509576bae58Smrg  # (the dirname of $[0] is not the place where we might find the
510576bae58Smrg  # original and so on.  Autoconf is especially sensitive to this).
511576bae58Smrg  . "./$as_me.lineno"
512576bae58Smrg  # Exit status is that of the last command.
513576bae58Smrg  exit
514bf2eeab3Smrg}
51514c0a534Smrg
516bdc460c5Smrg
517bdc460c5Smrg# Determine whether it's possible to make 'echo' print without a newline.
518bdc460c5Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519bdc460c5Smrg# for compatibility with existing Makefiles.
520576bae58SmrgECHO_C= ECHO_N= ECHO_T=
521576bae58Smrgcase `echo -n x` in #(((((
522576bae58Smrg-n*)
523576bae58Smrg  case `echo 'xy\c'` in
524576bae58Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
525576bae58Smrg  xy)  ECHO_C='\c';;
526576bae58Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
527576bae58Smrg       ECHO_T='	';;
528576bae58Smrg  esac;;
529576bae58Smrg*)
530576bae58Smrg  ECHO_N='-n';;
531576bae58Smrgesac
53214c0a534Smrg
533bdc460c5Smrg# For backward compatibility with old third-party macros, we provide
534bdc460c5Smrg# the shell variables $as_echo and $as_echo_n.  New code should use
535bdc460c5Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536bdc460c5Smrgas_echo='printf %s\n'
537bdc460c5Smrgas_echo_n='printf %s'
538bdc460c5Smrg
539576bae58Smrgrm -f conf$$ conf$$.exe conf$$.file
540576bae58Smrgif test -d conf$$.dir; then
541576bae58Smrg  rm -f conf$$.dir/conf$$.file
542576bae58Smrgelse
543576bae58Smrg  rm -f conf$$.dir
544576bae58Smrg  mkdir conf$$.dir 2>/dev/null
545bf2eeab3Smrgfi
546576bae58Smrgif (echo >conf$$.file) 2>/dev/null; then
547576bae58Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
548576bae58Smrg    as_ln_s='ln -s'
549576bae58Smrg    # ... but there are two gotchas:
5507015785aSmrg    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
5517015785aSmrg    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
5527015785aSmrg    # In both cases, we have to default to 'cp -pR'.
553576bae58Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
55424047306Smrg      as_ln_s='cp -pR'
555576bae58Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
556576bae58Smrg    as_ln_s=ln
557576bae58Smrg  else
55824047306Smrg    as_ln_s='cp -pR'
559576bae58Smrg  fi
560bf2eeab3Smrgelse
56124047306Smrg  as_ln_s='cp -pR'
562bf2eeab3Smrgfi
563576bae58Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564576bae58Smrgrmdir conf$$.dir 2>/dev/null
565bf2eeab3Smrg
566576bae58Smrgif mkdir -p . 2>/dev/null; then
567576bae58Smrg  as_mkdir_p='mkdir -p "$as_dir"'
568576bae58Smrgelse
569576bae58Smrg  test -d ./-p && rmdir ./-p
570576bae58Smrg  as_mkdir_p=false
571bf2eeab3Smrgfi
572bf2eeab3Smrg
57324047306Smrgas_test_x='test -x'
57424047306Smrgas_executable_p=as_fn_executable_p
575bf2eeab3Smrg
576576bae58Smrg# Sed expression to map a string onto a valid CPP name.
5777015785aSmrgas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5787015785aSmrgas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579bf2eeab3Smrg
580576bae58Smrg# Sed expression to map a string onto a valid variable name.
5817015785aSmrgas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5827015785aSmrgas_tr_sh="eval sed '$as_sed_sh'" # deprecated
583bf2eeab3Smrg
584bf2eeab3Smrg
585576bae58Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
586576bae58Smrgexec 6>&1
58714c0a534Smrg
58814c0a534Smrg# Name of the host.
589576bae58Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
59014c0a534Smrg# so uname gets run too.
59114c0a534Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
59214c0a534Smrg
59314c0a534Smrg#
59414c0a534Smrg# Initializations.
59514c0a534Smrg#
59614c0a534Smrgac_default_prefix=/usr/local
597bf2eeab3Smrgac_clean_files=
59814c0a534Smrgac_config_libobj_dir=.
599bf2eeab3SmrgLIBOBJS=
60014c0a534Smrgcross_compiling=no
60114c0a534Smrgsubdirs=
60214c0a534SmrgMFLAGS=
60314c0a534SmrgMAKEFLAGS=
60414c0a534Smrg
60514c0a534Smrg# Identity of this package.
60614c0a534SmrgPACKAGE_NAME='smproxy'
60714c0a534SmrgPACKAGE_TARNAME='smproxy'
6087015785aSmrgPACKAGE_VERSION='1.0.8'
6097015785aSmrgPACKAGE_STRING='smproxy 1.0.8'
6107015785aSmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/smproxy/-/issues'
611576bae58SmrgPACKAGE_URL=''
61214c0a534Smrg
61324047306Smrgac_unique_file="Makefile.am"
614bf2eeab3Smrg# Factoring default headers for most tests.
615bf2eeab3Smrgac_includes_default="\
616bdc460c5Smrg#include <stddef.h>
617bdc460c5Smrg#ifdef HAVE_STDIO_H
618bdc460c5Smrg# include <stdio.h>
619bf2eeab3Smrg#endif
620bdc460c5Smrg#ifdef HAVE_STDLIB_H
621bf2eeab3Smrg# include <stdlib.h>
622bf2eeab3Smrg#endif
623bf2eeab3Smrg#ifdef HAVE_STRING_H
624bf2eeab3Smrg# include <string.h>
625bf2eeab3Smrg#endif
626bf2eeab3Smrg#ifdef HAVE_INTTYPES_H
627bf2eeab3Smrg# include <inttypes.h>
628bf2eeab3Smrg#endif
629bf2eeab3Smrg#ifdef HAVE_STDINT_H
630bf2eeab3Smrg# include <stdint.h>
631bf2eeab3Smrg#endif
632bdc460c5Smrg#ifdef HAVE_STRINGS_H
633bdc460c5Smrg# include <strings.h>
634bdc460c5Smrg#endif
635bdc460c5Smrg#ifdef HAVE_SYS_TYPES_H
636bdc460c5Smrg# include <sys/types.h>
637bdc460c5Smrg#endif
638bdc460c5Smrg#ifdef HAVE_SYS_STAT_H
639bdc460c5Smrg# include <sys/stat.h>
640bdc460c5Smrg#endif
641bf2eeab3Smrg#ifdef HAVE_UNISTD_H
642bf2eeab3Smrg# include <unistd.h>
643bf2eeab3Smrg#endif"
644bf2eeab3Smrg
645bdc460c5Smrgac_header_c_list=
646bf2eeab3Smrgac_subst_vars='am__EXEEXT_FALSE
647bf2eeab3Smrgam__EXEEXT_TRUE
648bf2eeab3SmrgLTLIBOBJS
649bf2eeab3SmrgLIBOBJS
650bf2eeab3SmrgSMPROXY_LIBS
651bf2eeab3SmrgSMPROXY_CFLAGS
652576bae58SmrgMAN_SUBSTS
653576bae58SmrgXORG_MAN_PAGE
654bf2eeab3SmrgADMIN_MAN_DIR
655bf2eeab3SmrgDRIVER_MAN_DIR
656bf2eeab3SmrgMISC_MAN_DIR
657bf2eeab3SmrgFILE_MAN_DIR
658bf2eeab3SmrgLIB_MAN_DIR
659bf2eeab3SmrgAPP_MAN_DIR
660bf2eeab3SmrgADMIN_MAN_SUFFIX
661bf2eeab3SmrgDRIVER_MAN_SUFFIX
662bf2eeab3SmrgMISC_MAN_SUFFIX
663bf2eeab3SmrgFILE_MAN_SUFFIX
664bf2eeab3SmrgLIB_MAN_SUFFIX
665bf2eeab3SmrgAPP_MAN_SUFFIX
666576bae58SmrgSED
667bf2eeab3Smrghost_os
668bf2eeab3Smrghost_vendor
669bf2eeab3Smrghost_cpu
670bf2eeab3Smrghost
671bf2eeab3Smrgbuild_os
672bf2eeab3Smrgbuild_vendor
673bf2eeab3Smrgbuild_cpu
674bf2eeab3Smrgbuild
675576bae58SmrgINSTALL_CMD
676bdc460c5SmrgPKG_CONFIG_LIBDIR
677bdc460c5SmrgPKG_CONFIG_PATH
678576bae58SmrgPKG_CONFIG
679bf2eeab3SmrgCHANGELOG_CMD
6801a054510SmrgSTRICT_CFLAGS
681bf2eeab3SmrgCWARNFLAGS
68224047306SmrgBASE_CFLAGS
683bf2eeab3Smrgam__fastdepCC_FALSE
684bf2eeab3Smrgam__fastdepCC_TRUE
685bf2eeab3SmrgCCDEPMODE
68624047306Smrgam__nodep
687bf2eeab3SmrgAMDEPBACKSLASH
688bf2eeab3SmrgAMDEP_FALSE
689bf2eeab3SmrgAMDEP_TRUE
690bf2eeab3Smrgam__include
691bf2eeab3SmrgDEPDIR
692bf2eeab3SmrgOBJEXT
693bf2eeab3SmrgEXEEXT
694bf2eeab3Smrgac_ct_CC
695bf2eeab3SmrgCPPFLAGS
696bf2eeab3SmrgLDFLAGS
697bf2eeab3SmrgCFLAGS
698bf2eeab3SmrgCC
6997015785aSmrgam__xargs_n
7007015785aSmrgam__rm_f_notfound
70124047306SmrgAM_BACKSLASH
70224047306SmrgAM_DEFAULT_VERBOSITY
70324047306SmrgAM_DEFAULT_V
70424047306SmrgAM_V
705bdc460c5SmrgCSCOPE
706bdc460c5SmrgETAGS
707bdc460c5SmrgCTAGS
708bf2eeab3Smrgam__untar
709bf2eeab3Smrgam__tar
710bf2eeab3SmrgAMTAR
711bf2eeab3Smrgam__leading_dot
712bf2eeab3SmrgSET_MAKE
713bf2eeab3SmrgAWK
714bf2eeab3Smrgmkdir_p
715bf2eeab3SmrgMKDIR_P
716bf2eeab3SmrgINSTALL_STRIP_PROGRAM
717bf2eeab3SmrgSTRIP
718bf2eeab3Smrginstall_sh
719bf2eeab3SmrgMAKEINFO
720bf2eeab3SmrgAUTOHEADER
721bf2eeab3SmrgAUTOMAKE
722bf2eeab3SmrgAUTOCONF
723bf2eeab3SmrgACLOCAL
724bf2eeab3SmrgVERSION
725bf2eeab3SmrgPACKAGE
726bf2eeab3SmrgCYGPATH_W
727bf2eeab3Smrgam__isrc
728bf2eeab3SmrgINSTALL_DATA
729bf2eeab3SmrgINSTALL_SCRIPT
730bf2eeab3SmrgINSTALL_PROGRAM
731bf2eeab3Smrgtarget_alias
732bf2eeab3Smrghost_alias
733bf2eeab3Smrgbuild_alias
734bf2eeab3SmrgLIBS
735bf2eeab3SmrgECHO_T
736bf2eeab3SmrgECHO_N
737bf2eeab3SmrgECHO_C
738bf2eeab3SmrgDEFS
739bf2eeab3Smrgmandir
740bf2eeab3Smrglocaledir
741bf2eeab3Smrglibdir
742bf2eeab3Smrgpsdir
743bf2eeab3Smrgpdfdir
744bf2eeab3Smrgdvidir
745bf2eeab3Smrghtmldir
746bf2eeab3Smrginfodir
747bf2eeab3Smrgdocdir
748bf2eeab3Smrgoldincludedir
749bf2eeab3Smrgincludedir
750bdc460c5Smrgrunstatedir
751bf2eeab3Smrglocalstatedir
752bf2eeab3Smrgsharedstatedir
753bf2eeab3Smrgsysconfdir
754bf2eeab3Smrgdatadir
755bf2eeab3Smrgdatarootdir
756bf2eeab3Smrglibexecdir
757bf2eeab3Smrgsbindir
758bf2eeab3Smrgbindir
759bf2eeab3Smrgprogram_transform_name
760bf2eeab3Smrgprefix
761bf2eeab3Smrgexec_prefix
762576bae58SmrgPACKAGE_URL
763bf2eeab3SmrgPACKAGE_BUGREPORT
764bf2eeab3SmrgPACKAGE_STRING
765bf2eeab3SmrgPACKAGE_VERSION
766bf2eeab3SmrgPACKAGE_TARNAME
767bf2eeab3SmrgPACKAGE_NAME
768bf2eeab3SmrgPATH_SEPARATOR
769bdc460c5SmrgSHELL
770bdc460c5Smrgam__quote'
77114c0a534Smrgac_subst_files=''
772bf2eeab3Smrgac_user_opts='
773bf2eeab3Smrgenable_option_checking
77424047306Smrgenable_silent_rules
775bf2eeab3Smrgenable_dependency_tracking
77624047306Smrgenable_selective_werror
777bf2eeab3Smrgenable_strict_compilation
778bf2eeab3Smrg'
779bf2eeab3Smrg      ac_precious_vars='build_alias
780bf2eeab3Smrghost_alias
781bf2eeab3Smrgtarget_alias
782bf2eeab3SmrgCC
783bf2eeab3SmrgCFLAGS
784bf2eeab3SmrgLDFLAGS
785bf2eeab3SmrgLIBS
786bf2eeab3SmrgCPPFLAGS
787bf2eeab3SmrgPKG_CONFIG
788bdc460c5SmrgPKG_CONFIG_PATH
789bdc460c5SmrgPKG_CONFIG_LIBDIR
790bf2eeab3SmrgSMPROXY_CFLAGS
791bf2eeab3SmrgSMPROXY_LIBS'
792bf2eeab3Smrg
79314c0a534Smrg
79414c0a534Smrg# Initialize some variables set by options.
79514c0a534Smrgac_init_help=
79614c0a534Smrgac_init_version=false
797bf2eeab3Smrgac_unrecognized_opts=
798bf2eeab3Smrgac_unrecognized_sep=
79914c0a534Smrg# The variables have the same names as the options, with
80014c0a534Smrg# dashes changed to underlines.
80114c0a534Smrgcache_file=/dev/null
80214c0a534Smrgexec_prefix=NONE
80314c0a534Smrgno_create=
80414c0a534Smrgno_recursion=
80514c0a534Smrgprefix=NONE
80614c0a534Smrgprogram_prefix=NONE
80714c0a534Smrgprogram_suffix=NONE
80814c0a534Smrgprogram_transform_name=s,x,x,
80914c0a534Smrgsilent=
81014c0a534Smrgsite=
81114c0a534Smrgsrcdir=
81214c0a534Smrgverbose=
81314c0a534Smrgx_includes=NONE
81414c0a534Smrgx_libraries=NONE
81514c0a534Smrg
81614c0a534Smrg# Installation directory options.
81714c0a534Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
81814c0a534Smrg# and all the variables that are supposed to be based on exec_prefix
81914c0a534Smrg# by default will actually change.
82014c0a534Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
821bf2eeab3Smrg# (The list follows the same order as the GNU Coding Standards.)
82214c0a534Smrgbindir='${exec_prefix}/bin'
82314c0a534Smrgsbindir='${exec_prefix}/sbin'
82414c0a534Smrglibexecdir='${exec_prefix}/libexec'
825bf2eeab3Smrgdatarootdir='${prefix}/share'
826bf2eeab3Smrgdatadir='${datarootdir}'
82714c0a534Smrgsysconfdir='${prefix}/etc'
82814c0a534Smrgsharedstatedir='${prefix}/com'
82914c0a534Smrglocalstatedir='${prefix}/var'
830bdc460c5Smrgrunstatedir='${localstatedir}/run'
83114c0a534Smrgincludedir='${prefix}/include'
83214c0a534Smrgoldincludedir='/usr/include'
833bf2eeab3Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834bf2eeab3Smrginfodir='${datarootdir}/info'
835bf2eeab3Smrghtmldir='${docdir}'
836bf2eeab3Smrgdvidir='${docdir}'
837bf2eeab3Smrgpdfdir='${docdir}'
838bf2eeab3Smrgpsdir='${docdir}'
839bf2eeab3Smrglibdir='${exec_prefix}/lib'
840bf2eeab3Smrglocaledir='${datarootdir}/locale'
841bf2eeab3Smrgmandir='${datarootdir}/man'
84214c0a534Smrg
84314c0a534Smrgac_prev=
844bf2eeab3Smrgac_dashdash=
84514c0a534Smrgfor ac_option
84614c0a534Smrgdo
84714c0a534Smrg  # If the previous option needs an argument, assign it.
84814c0a534Smrg  if test -n "$ac_prev"; then
849bf2eeab3Smrg    eval $ac_prev=\$ac_option
85014c0a534Smrg    ac_prev=
85114c0a534Smrg    continue
85214c0a534Smrg  fi
85314c0a534Smrg
854bf2eeab3Smrg  case $ac_option in
855576bae58Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856576bae58Smrg  *=)   ac_optarg= ;;
857576bae58Smrg  *)    ac_optarg=yes ;;
858bf2eeab3Smrg  esac
85914c0a534Smrg
860bf2eeab3Smrg  case $ac_dashdash$ac_option in
861bf2eeab3Smrg  --)
862bf2eeab3Smrg    ac_dashdash=yes ;;
86314c0a534Smrg
86414c0a534Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
86514c0a534Smrg    ac_prev=bindir ;;
86614c0a534Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
86714c0a534Smrg    bindir=$ac_optarg ;;
86814c0a534Smrg
86914c0a534Smrg  -build | --build | --buil | --bui | --bu)
87014c0a534Smrg    ac_prev=build_alias ;;
87114c0a534Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
87214c0a534Smrg    build_alias=$ac_optarg ;;
87314c0a534Smrg
87414c0a534Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
87514c0a534Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
87614c0a534Smrg    ac_prev=cache_file ;;
87714c0a534Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
87814c0a534Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
87914c0a534Smrg    cache_file=$ac_optarg ;;
88014c0a534Smrg
88114c0a534Smrg  --config-cache | -C)
88214c0a534Smrg    cache_file=config.cache ;;
88314c0a534Smrg
884bf2eeab3Smrg  -datadir | --datadir | --datadi | --datad)
88514c0a534Smrg    ac_prev=datadir ;;
886bf2eeab3Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
88714c0a534Smrg    datadir=$ac_optarg ;;
88814c0a534Smrg
889bf2eeab3Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890bf2eeab3Smrg  | --dataroo | --dataro | --datar)
891bf2eeab3Smrg    ac_prev=datarootdir ;;
892bf2eeab3Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893bf2eeab3Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894bf2eeab3Smrg    datarootdir=$ac_optarg ;;
895bf2eeab3Smrg
89614c0a534Smrg  -disable-* | --disable-*)
897bf2eeab3Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
89814c0a534Smrg    # Reject names that are not valid shell variable names.
899bf2eeab3Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9007015785aSmrg      as_fn_error $? "invalid feature name: '$ac_useropt'"
901bf2eeab3Smrg    ac_useropt_orig=$ac_useropt
902bdc460c5Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
903bf2eeab3Smrg    case $ac_user_opts in
904bf2eeab3Smrg      *"
905bf2eeab3Smrg"enable_$ac_useropt"
906bf2eeab3Smrg"*) ;;
907bf2eeab3Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908bf2eeab3Smrg	 ac_unrecognized_sep=', ';;
909bf2eeab3Smrg    esac
910bf2eeab3Smrg    eval enable_$ac_useropt=no ;;
911bf2eeab3Smrg
912bf2eeab3Smrg  -docdir | --docdir | --docdi | --doc | --do)
913bf2eeab3Smrg    ac_prev=docdir ;;
914bf2eeab3Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915bf2eeab3Smrg    docdir=$ac_optarg ;;
916bf2eeab3Smrg
917bf2eeab3Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918bf2eeab3Smrg    ac_prev=dvidir ;;
919bf2eeab3Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920bf2eeab3Smrg    dvidir=$ac_optarg ;;
92114c0a534Smrg
92214c0a534Smrg  -enable-* | --enable-*)
923bf2eeab3Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
92414c0a534Smrg    # Reject names that are not valid shell variable names.
925bf2eeab3Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9267015785aSmrg      as_fn_error $? "invalid feature name: '$ac_useropt'"
927bf2eeab3Smrg    ac_useropt_orig=$ac_useropt
928bdc460c5Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
929bf2eeab3Smrg    case $ac_user_opts in
930bf2eeab3Smrg      *"
931bf2eeab3Smrg"enable_$ac_useropt"
932bf2eeab3Smrg"*) ;;
933bf2eeab3Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934bf2eeab3Smrg	 ac_unrecognized_sep=', ';;
93514c0a534Smrg    esac
936bf2eeab3Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
93714c0a534Smrg
93814c0a534Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
93914c0a534Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
94014c0a534Smrg  | --exec | --exe | --ex)
94114c0a534Smrg    ac_prev=exec_prefix ;;
94214c0a534Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
94314c0a534Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
94414c0a534Smrg  | --exec=* | --exe=* | --ex=*)
94514c0a534Smrg    exec_prefix=$ac_optarg ;;
94614c0a534Smrg
94714c0a534Smrg  -gas | --gas | --ga | --g)
94814c0a534Smrg    # Obsolete; use --with-gas.
94914c0a534Smrg    with_gas=yes ;;
95014c0a534Smrg
95114c0a534Smrg  -help | --help | --hel | --he | -h)
95214c0a534Smrg    ac_init_help=long ;;
95314c0a534Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
95414c0a534Smrg    ac_init_help=recursive ;;
95514c0a534Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
95614c0a534Smrg    ac_init_help=short ;;
95714c0a534Smrg
95814c0a534Smrg  -host | --host | --hos | --ho)
95914c0a534Smrg    ac_prev=host_alias ;;
96014c0a534Smrg  -host=* | --host=* | --hos=* | --ho=*)
96114c0a534Smrg    host_alias=$ac_optarg ;;
96214c0a534Smrg
963bf2eeab3Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964bf2eeab3Smrg    ac_prev=htmldir ;;
965bf2eeab3Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966bf2eeab3Smrg  | --ht=*)
967bf2eeab3Smrg    htmldir=$ac_optarg ;;
968bf2eeab3Smrg
96914c0a534Smrg  -includedir | --includedir | --includedi | --included | --include \
97014c0a534Smrg  | --includ | --inclu | --incl | --inc)
97114c0a534Smrg    ac_prev=includedir ;;
97214c0a534Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
97314c0a534Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
97414c0a534Smrg    includedir=$ac_optarg ;;
97514c0a534Smrg
97614c0a534Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
97714c0a534Smrg    ac_prev=infodir ;;
97814c0a534Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
97914c0a534Smrg    infodir=$ac_optarg ;;
98014c0a534Smrg
98114c0a534Smrg  -libdir | --libdir | --libdi | --libd)
98214c0a534Smrg    ac_prev=libdir ;;
98314c0a534Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
98414c0a534Smrg    libdir=$ac_optarg ;;
98514c0a534Smrg
98614c0a534Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
98714c0a534Smrg  | --libexe | --libex | --libe)
98814c0a534Smrg    ac_prev=libexecdir ;;
98914c0a534Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
99014c0a534Smrg  | --libexe=* | --libex=* | --libe=*)
99114c0a534Smrg    libexecdir=$ac_optarg ;;
99214c0a534Smrg
993bf2eeab3Smrg  -localedir | --localedir | --localedi | --localed | --locale)
994bf2eeab3Smrg    ac_prev=localedir ;;
995bf2eeab3Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996bf2eeab3Smrg    localedir=$ac_optarg ;;
997bf2eeab3Smrg
99814c0a534Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
999bf2eeab3Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
100014c0a534Smrg    ac_prev=localstatedir ;;
100114c0a534Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002bf2eeab3Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
100314c0a534Smrg    localstatedir=$ac_optarg ;;
100414c0a534Smrg
100514c0a534Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
100614c0a534Smrg    ac_prev=mandir ;;
100714c0a534Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
100814c0a534Smrg    mandir=$ac_optarg ;;
100914c0a534Smrg
101014c0a534Smrg  -nfp | --nfp | --nf)
101114c0a534Smrg    # Obsolete; use --without-fp.
101214c0a534Smrg    with_fp=no ;;
101314c0a534Smrg
101414c0a534Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
101514c0a534Smrg  | --no-cr | --no-c | -n)
101614c0a534Smrg    no_create=yes ;;
101714c0a534Smrg
101814c0a534Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
101914c0a534Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
102014c0a534Smrg    no_recursion=yes ;;
102114c0a534Smrg
102214c0a534Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
102314c0a534Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
102414c0a534Smrg  | --oldin | --oldi | --old | --ol | --o)
102514c0a534Smrg    ac_prev=oldincludedir ;;
102614c0a534Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
102714c0a534Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
102814c0a534Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
102914c0a534Smrg    oldincludedir=$ac_optarg ;;
103014c0a534Smrg
103114c0a534Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
103214c0a534Smrg    ac_prev=prefix ;;
103314c0a534Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
103414c0a534Smrg    prefix=$ac_optarg ;;
103514c0a534Smrg
103614c0a534Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
103714c0a534Smrg  | --program-pre | --program-pr | --program-p)
103814c0a534Smrg    ac_prev=program_prefix ;;
103914c0a534Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
104014c0a534Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
104114c0a534Smrg    program_prefix=$ac_optarg ;;
104214c0a534Smrg
104314c0a534Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
104414c0a534Smrg  | --program-suf | --program-su | --program-s)
104514c0a534Smrg    ac_prev=program_suffix ;;
104614c0a534Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
104714c0a534Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
104814c0a534Smrg    program_suffix=$ac_optarg ;;
104914c0a534Smrg
105014c0a534Smrg  -program-transform-name | --program-transform-name \
105114c0a534Smrg  | --program-transform-nam | --program-transform-na \
105214c0a534Smrg  | --program-transform-n | --program-transform- \
105314c0a534Smrg  | --program-transform | --program-transfor \
105414c0a534Smrg  | --program-transfo | --program-transf \
105514c0a534Smrg  | --program-trans | --program-tran \
105614c0a534Smrg  | --progr-tra | --program-tr | --program-t)
105714c0a534Smrg    ac_prev=program_transform_name ;;
105814c0a534Smrg  -program-transform-name=* | --program-transform-name=* \
105914c0a534Smrg  | --program-transform-nam=* | --program-transform-na=* \
106014c0a534Smrg  | --program-transform-n=* | --program-transform-=* \
106114c0a534Smrg  | --program-transform=* | --program-transfor=* \
106214c0a534Smrg  | --program-transfo=* | --program-transf=* \
106314c0a534Smrg  | --program-trans=* | --program-tran=* \
106414c0a534Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
106514c0a534Smrg    program_transform_name=$ac_optarg ;;
106614c0a534Smrg
1067bf2eeab3Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068bf2eeab3Smrg    ac_prev=pdfdir ;;
1069bf2eeab3Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070bf2eeab3Smrg    pdfdir=$ac_optarg ;;
1071bf2eeab3Smrg
1072bf2eeab3Smrg  -psdir | --psdir | --psdi | --psd | --ps)
1073bf2eeab3Smrg    ac_prev=psdir ;;
1074bf2eeab3Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075bf2eeab3Smrg    psdir=$ac_optarg ;;
1076bf2eeab3Smrg
107714c0a534Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
107814c0a534Smrg  | -silent | --silent | --silen | --sile | --sil)
107914c0a534Smrg    silent=yes ;;
108014c0a534Smrg
1081bdc460c5Smrg  -runstatedir | --runstatedir | --runstatedi | --runstated \
1082bdc460c5Smrg  | --runstate | --runstat | --runsta | --runst | --runs \
1083bdc460c5Smrg  | --run | --ru | --r)
1084bdc460c5Smrg    ac_prev=runstatedir ;;
1085bdc460c5Smrg  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1086bdc460c5Smrg  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1087bdc460c5Smrg  | --run=* | --ru=* | --r=*)
1088bdc460c5Smrg    runstatedir=$ac_optarg ;;
1089bdc460c5Smrg
109014c0a534Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
109114c0a534Smrg    ac_prev=sbindir ;;
109214c0a534Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
109314c0a534Smrg  | --sbi=* | --sb=*)
109414c0a534Smrg    sbindir=$ac_optarg ;;
109514c0a534Smrg
109614c0a534Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
109714c0a534Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
109814c0a534Smrg  | --sharedst | --shareds | --shared | --share | --shar \
109914c0a534Smrg  | --sha | --sh)
110014c0a534Smrg    ac_prev=sharedstatedir ;;
110114c0a534Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
110214c0a534Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
110314c0a534Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
110414c0a534Smrg  | --sha=* | --sh=*)
110514c0a534Smrg    sharedstatedir=$ac_optarg ;;
110614c0a534Smrg
110714c0a534Smrg  -site | --site | --sit)
110814c0a534Smrg    ac_prev=site ;;
110914c0a534Smrg  -site=* | --site=* | --sit=*)
111014c0a534Smrg    site=$ac_optarg ;;
111114c0a534Smrg
111214c0a534Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
111314c0a534Smrg    ac_prev=srcdir ;;
111414c0a534Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
111514c0a534Smrg    srcdir=$ac_optarg ;;
111614c0a534Smrg
111714c0a534Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
111814c0a534Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
111914c0a534Smrg    ac_prev=sysconfdir ;;
112014c0a534Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
112114c0a534Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
112214c0a534Smrg    sysconfdir=$ac_optarg ;;
112314c0a534Smrg
112414c0a534Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
112514c0a534Smrg    ac_prev=target_alias ;;
112614c0a534Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
112714c0a534Smrg    target_alias=$ac_optarg ;;
112814c0a534Smrg
112914c0a534Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
113014c0a534Smrg    verbose=yes ;;
113114c0a534Smrg
113214c0a534Smrg  -version | --version | --versio | --versi | --vers | -V)
113314c0a534Smrg    ac_init_version=: ;;
113414c0a534Smrg
113514c0a534Smrg  -with-* | --with-*)
1136bf2eeab3Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
113714c0a534Smrg    # Reject names that are not valid shell variable names.
1138bf2eeab3Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11397015785aSmrg      as_fn_error $? "invalid package name: '$ac_useropt'"
1140bf2eeab3Smrg    ac_useropt_orig=$ac_useropt
1141bdc460c5Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1142bf2eeab3Smrg    case $ac_user_opts in
1143bf2eeab3Smrg      *"
1144bf2eeab3Smrg"with_$ac_useropt"
1145bf2eeab3Smrg"*) ;;
1146bf2eeab3Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147bf2eeab3Smrg	 ac_unrecognized_sep=', ';;
114814c0a534Smrg    esac
1149bf2eeab3Smrg    eval with_$ac_useropt=\$ac_optarg ;;
115014c0a534Smrg
115114c0a534Smrg  -without-* | --without-*)
1152bf2eeab3Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
115314c0a534Smrg    # Reject names that are not valid shell variable names.
1154bf2eeab3Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11557015785aSmrg      as_fn_error $? "invalid package name: '$ac_useropt'"
1156bf2eeab3Smrg    ac_useropt_orig=$ac_useropt
1157bdc460c5Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1158bf2eeab3Smrg    case $ac_user_opts in
1159bf2eeab3Smrg      *"
1160bf2eeab3Smrg"with_$ac_useropt"
1161bf2eeab3Smrg"*) ;;
1162bf2eeab3Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163bf2eeab3Smrg	 ac_unrecognized_sep=', ';;
1164bf2eeab3Smrg    esac
1165bf2eeab3Smrg    eval with_$ac_useropt=no ;;
116614c0a534Smrg
116714c0a534Smrg  --x)
116814c0a534Smrg    # Obsolete; use --with-x.
116914c0a534Smrg    with_x=yes ;;
117014c0a534Smrg
117114c0a534Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
117214c0a534Smrg  | --x-incl | --x-inc | --x-in | --x-i)
117314c0a534Smrg    ac_prev=x_includes ;;
117414c0a534Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
117514c0a534Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
117614c0a534Smrg    x_includes=$ac_optarg ;;
117714c0a534Smrg
117814c0a534Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
117914c0a534Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
118014c0a534Smrg    ac_prev=x_libraries ;;
118114c0a534Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
118214c0a534Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
118314c0a534Smrg    x_libraries=$ac_optarg ;;
118414c0a534Smrg
11857015785aSmrg  -*) as_fn_error $? "unrecognized option: '$ac_option'
11867015785aSmrgTry '$0 --help' for more information"
118714c0a534Smrg    ;;
118814c0a534Smrg
118914c0a534Smrg  *=*)
119014c0a534Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
119114c0a534Smrg    # Reject names that are not valid shell variable names.
1192576bae58Smrg    case $ac_envvar in #(
1193576bae58Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
11947015785aSmrg      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1195576bae58Smrg    esac
1196bf2eeab3Smrg    eval $ac_envvar=\$ac_optarg
119714c0a534Smrg    export $ac_envvar ;;
119814c0a534Smrg
119914c0a534Smrg  *)
120014c0a534Smrg    # FIXME: should be removed in autoconf 3.0.
1201bdc460c5Smrg    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
120214c0a534Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203bdc460c5Smrg      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1204576bae58Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
120514c0a534Smrg    ;;
120614c0a534Smrg
120714c0a534Smrg  esac
120814c0a534Smrgdone
120914c0a534Smrg
121014c0a534Smrgif test -n "$ac_prev"; then
121114c0a534Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212576bae58Smrg  as_fn_error $? "missing argument to $ac_option"
121314c0a534Smrgfi
121414c0a534Smrg
1215bf2eeab3Smrgif test -n "$ac_unrecognized_opts"; then
1216bf2eeab3Smrg  case $enable_option_checking in
1217bf2eeab3Smrg    no) ;;
1218576bae58Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219bdc460c5Smrg    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
122014c0a534Smrg  esac
1221bf2eeab3Smrgfi
122214c0a534Smrg
1223bf2eeab3Smrg# Check all directory arguments for consistency.
1224bf2eeab3Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225bf2eeab3Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1226bf2eeab3Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227bdc460c5Smrg		libdir localedir mandir runstatedir
122814c0a534Smrgdo
1229bf2eeab3Smrg  eval ac_val=\$$ac_var
1230bf2eeab3Smrg  # Remove trailing slashes.
123114c0a534Smrg  case $ac_val in
1232bf2eeab3Smrg    */ )
1233bf2eeab3Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234bf2eeab3Smrg      eval $ac_var=\$ac_val;;
1235bf2eeab3Smrg  esac
1236bf2eeab3Smrg  # Be sure to have absolute directory names.
1237bf2eeab3Smrg  case $ac_val in
1238bf2eeab3Smrg    [\\/$]* | ?:[\\/]* )  continue;;
1239bf2eeab3Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
124014c0a534Smrg  esac
1241576bae58Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
124214c0a534Smrgdone
124314c0a534Smrg
12447015785aSmrg# There might be people who depend on the old broken behavior: '$host'
124514c0a534Smrg# used to hold the argument of --host etc.
124614c0a534Smrg# FIXME: To remove some day.
124714c0a534Smrgbuild=$build_alias
124814c0a534Smrghost=$host_alias
124914c0a534Smrgtarget=$target_alias
125014c0a534Smrg
125114c0a534Smrg# FIXME: To remove some day.
125214c0a534Smrgif test "x$host_alias" != x; then
125314c0a534Smrg  if test "x$build_alias" = x; then
125414c0a534Smrg    cross_compiling=maybe
125514c0a534Smrg  elif test "x$build_alias" != "x$host_alias"; then
125614c0a534Smrg    cross_compiling=yes
125714c0a534Smrg  fi
125814c0a534Smrgfi
125914c0a534Smrg
126014c0a534Smrgac_tool_prefix=
126114c0a534Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
126214c0a534Smrg
126314c0a534Smrgtest "$silent" = yes && exec 6>/dev/null
126414c0a534Smrg
126514c0a534Smrg
1266bf2eeab3Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1267bf2eeab3Smrgac_ls_di=`ls -di .` &&
1268bf2eeab3Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269576bae58Smrg  as_fn_error $? "working directory cannot be determined"
1270bf2eeab3Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271576bae58Smrg  as_fn_error $? "pwd does not report name of working directory"
1272bf2eeab3Smrg
1273bf2eeab3Smrg
1274bf2eeab3Smrg# Find the source files, if location was not specified.
1275bf2eeab3Smrgif test -z "$srcdir"; then
127614c0a534Smrg  ac_srcdir_defaulted=yes
1277bf2eeab3Smrg  # Try the directory containing this script, then the parent directory.
1278bf2eeab3Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1279bf2eeab3Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280bf2eeab3Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1281bf2eeab3Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1282bf2eeab3Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283bdc460c5Smrgprintf "%s\n" X"$as_myself" |
1284bf2eeab3Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285bf2eeab3Smrg	    s//\1/
1286bf2eeab3Smrg	    q
1287bf2eeab3Smrg	  }
1288bf2eeab3Smrg	  /^X\(\/\/\)[^/].*/{
1289bf2eeab3Smrg	    s//\1/
1290bf2eeab3Smrg	    q
1291bf2eeab3Smrg	  }
1292bf2eeab3Smrg	  /^X\(\/\/\)$/{
1293bf2eeab3Smrg	    s//\1/
1294bf2eeab3Smrg	    q
1295bf2eeab3Smrg	  }
1296bf2eeab3Smrg	  /^X\(\/\).*/{
1297bf2eeab3Smrg	    s//\1/
1298bf2eeab3Smrg	    q
1299bf2eeab3Smrg	  }
1300bf2eeab3Smrg	  s/.*/./; q'`
130114c0a534Smrg  srcdir=$ac_confdir
1302bf2eeab3Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
130314c0a534Smrg    srcdir=..
130414c0a534Smrg  fi
130514c0a534Smrgelse
130614c0a534Smrg  ac_srcdir_defaulted=no
130714c0a534Smrgfi
1308bf2eeab3Smrgif test ! -r "$srcdir/$ac_unique_file"; then
1309bf2eeab3Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310576bae58Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
131114c0a534Smrgfi
13127015785aSmrgac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1313bf2eeab3Smrgac_abs_confdir=`(
1314576bae58Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315bf2eeab3Smrg	pwd)`
1316bf2eeab3Smrg# When building in place, set srcdir=.
1317bf2eeab3Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1318bf2eeab3Smrg  srcdir=.
1319bf2eeab3Smrgfi
1320bf2eeab3Smrg# Remove unnecessary trailing slashes from srcdir.
1321bf2eeab3Smrg# Double slashes in file names in object file debugging info
1322bf2eeab3Smrg# mess up M-x gdb in Emacs.
1323bf2eeab3Smrgcase $srcdir in
1324bf2eeab3Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325bf2eeab3Smrgesac
1326bf2eeab3Smrgfor ac_var in $ac_precious_vars; do
1327bf2eeab3Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328bf2eeab3Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
1329bf2eeab3Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330bf2eeab3Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331bf2eeab3Smrgdone
133214c0a534Smrg
133314c0a534Smrg#
133414c0a534Smrg# Report the --help message.
133514c0a534Smrg#
133614c0a534Smrgif test "$ac_init_help" = "long"; then
133714c0a534Smrg  # Omit some internal or obsolete options to make the list less imposing.
133814c0a534Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
133914c0a534Smrg  cat <<_ACEOF
13407015785aSmrg'configure' configures smproxy 1.0.8 to adapt to many kinds of systems.
134114c0a534Smrg
134214c0a534SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
134314c0a534Smrg
134414c0a534SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
134514c0a534SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
134614c0a534Smrg
134714c0a534SmrgDefaults for the options are specified in brackets.
134814c0a534Smrg
134914c0a534SmrgConfiguration:
135014c0a534Smrg  -h, --help              display this help and exit
135114c0a534Smrg      --help=short        display options specific to this package
135214c0a534Smrg      --help=recursive    display the short help of all the included packages
135314c0a534Smrg  -V, --version           display version information and exit
13547015785aSmrg  -q, --quiet, --silent   do not print 'checking ...' messages
135514c0a534Smrg      --cache-file=FILE   cache test results in FILE [disabled]
13567015785aSmrg  -C, --config-cache      alias for '--cache-file=config.cache'
135714c0a534Smrg  -n, --no-create         do not create output files
13587015785aSmrg      --srcdir=DIR        find the sources in DIR [configure dir or '..']
135914c0a534Smrg
136014c0a534SmrgInstallation directories:
136114c0a534Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1362bf2eeab3Smrg                          [$ac_default_prefix]
136314c0a534Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1364bf2eeab3Smrg                          [PREFIX]
136514c0a534Smrg
13667015785aSmrgBy default, 'make install' will install all the files in
13677015785aSmrg'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
13687015785aSmrgan installation prefix other than '$ac_default_prefix' using '--prefix',
13697015785aSmrgfor instance '--prefix=\$HOME'.
137014c0a534Smrg
137114c0a534SmrgFor better control, use the options below.
137214c0a534Smrg
137314c0a534SmrgFine tuning of the installation directories:
1374bf2eeab3Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1375bf2eeab3Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1376bf2eeab3Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1377bf2eeab3Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1378bf2eeab3Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1379bf2eeab3Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1380bdc460c5Smrg  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1381bf2eeab3Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1382bf2eeab3Smrg  --includedir=DIR        C header files [PREFIX/include]
1383bf2eeab3Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1384bf2eeab3Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1385bf2eeab3Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1386bf2eeab3Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1387bf2eeab3Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1388bf2eeab3Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1389bf2eeab3Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/smproxy]
1390bf2eeab3Smrg  --htmldir=DIR           html documentation [DOCDIR]
1391bf2eeab3Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1392bf2eeab3Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1393bf2eeab3Smrg  --psdir=DIR             ps documentation [DOCDIR]
139414c0a534Smrg_ACEOF
139514c0a534Smrg
139614c0a534Smrg  cat <<\_ACEOF
139714c0a534Smrg
139814c0a534SmrgProgram names:
139914c0a534Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
140014c0a534Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
140114c0a534Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
140214c0a534Smrg
140314c0a534SmrgSystem types:
140414c0a534Smrg  --build=BUILD     configure for building on BUILD [guessed]
140514c0a534Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
140614c0a534Smrg_ACEOF
140714c0a534Smrgfi
140814c0a534Smrg
140914c0a534Smrgif test -n "$ac_init_help"; then
141014c0a534Smrg  case $ac_init_help in
14117015785aSmrg     short | recursive ) echo "Configuration of smproxy 1.0.8:";;
141214c0a534Smrg   esac
141314c0a534Smrg  cat <<\_ACEOF
141414c0a534Smrg
141514c0a534SmrgOptional Features:
1416bf2eeab3Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
141714c0a534Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
141814c0a534Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
141924047306Smrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
142024047306Smrg  --disable-silent-rules  verbose build output (undo: "make V=0")
142124047306Smrg  --enable-dependency-tracking
142224047306Smrg                          do not reject slow dependency extractors
142324047306Smrg  --disable-dependency-tracking
142424047306Smrg                          speeds up one-time build
142524047306Smrg  --disable-selective-werror
142624047306Smrg                          Turn off selective compiler errors. (default:
142724047306Smrg                          enabled)
1428bf2eeab3Smrg  --enable-strict-compilation
1429bf2eeab3Smrg                          Enable all warnings from compiler and make them
1430bf2eeab3Smrg                          errors (default: disabled)
143114c0a534Smrg
143214c0a534SmrgSome influential environment variables:
143314c0a534Smrg  CC          C compiler command
143414c0a534Smrg  CFLAGS      C compiler flags
143514c0a534Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
143614c0a534Smrg              nonstandard directory <lib dir>
1437bf2eeab3Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1438576bae58Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439bf2eeab3Smrg              you have headers in a nonstandard directory <include dir>
144014c0a534Smrg  PKG_CONFIG  path to pkg-config utility
1441bdc460c5Smrg  PKG_CONFIG_PATH
1442bdc460c5Smrg              directories to add to pkg-config's search path
1443bdc460c5Smrg  PKG_CONFIG_LIBDIR
1444bdc460c5Smrg              path overriding pkg-config's built-in search path
144514c0a534Smrg  SMPROXY_CFLAGS
144614c0a534Smrg              C compiler flags for SMPROXY, overriding pkg-config
144714c0a534Smrg  SMPROXY_LIBS
144814c0a534Smrg              linker flags for SMPROXY, overriding pkg-config
144914c0a534Smrg
14507015785aSmrgUse these variables to override the choices made by 'configure' or to help
145114c0a534Smrgit to find libraries and programs with nonstandard names/locations.
145214c0a534Smrg
14537015785aSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/smproxy/-/issues>.
145414c0a534Smrg_ACEOF
1455bf2eeab3Smrgac_status=$?
145614c0a534Smrgfi
145714c0a534Smrg
145814c0a534Smrgif test "$ac_init_help" = "recursive"; then
145914c0a534Smrg  # If there are subdirs, report their specific --help.
146014c0a534Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461bf2eeab3Smrg    test -d "$ac_dir" ||
1462bf2eeab3Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463bf2eeab3Smrg      continue
146414c0a534Smrg    ac_builddir=.
146514c0a534Smrg
1466bf2eeab3Smrgcase "$ac_dir" in
1467bf2eeab3Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468bf2eeab3Smrg*)
1469bdc460c5Smrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1470bf2eeab3Smrg  # A ".." for each directory in $ac_dir_suffix.
1471bdc460c5Smrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472bf2eeab3Smrg  case $ac_top_builddir_sub in
1473bf2eeab3Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474bf2eeab3Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475bf2eeab3Smrg  esac ;;
1476bf2eeab3Smrgesac
1477bf2eeab3Smrgac_abs_top_builddir=$ac_pwd
1478bf2eeab3Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1479bf2eeab3Smrg# for backward compatibility:
1480bf2eeab3Smrgac_top_builddir=$ac_top_build_prefix
148114c0a534Smrg
148214c0a534Smrgcase $srcdir in
1483bf2eeab3Smrg  .)  # We are building in place.
148414c0a534Smrg    ac_srcdir=.
1485bf2eeab3Smrg    ac_top_srcdir=$ac_top_builddir_sub
1486bf2eeab3Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1487bf2eeab3Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
148814c0a534Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1489bf2eeab3Smrg    ac_top_srcdir=$srcdir
1490bf2eeab3Smrg    ac_abs_top_srcdir=$srcdir ;;
1491bf2eeab3Smrg  *) # Relative name.
1492bf2eeab3Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493bf2eeab3Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1494bf2eeab3Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
149514c0a534Smrgesac
1496bf2eeab3Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497bf2eeab3Smrg
1498bf2eeab3Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1499bdc460c5Smrg    # Check for configure.gnu first; this name is used for a wrapper for
1500bdc460c5Smrg    # Metaconfig's "Configure" on case-insensitive file systems.
1501bf2eeab3Smrg    if test -f "$ac_srcdir/configure.gnu"; then
1502bf2eeab3Smrg      echo &&
1503bf2eeab3Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504bf2eeab3Smrg    elif test -f "$ac_srcdir/configure"; then
1505bf2eeab3Smrg      echo &&
1506bf2eeab3Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
150714c0a534Smrg    else
1508bdc460c5Smrg      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509bf2eeab3Smrg    fi || ac_status=$?
1510bf2eeab3Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
151114c0a534Smrg  done
151214c0a534Smrgfi
151314c0a534Smrg
1514bf2eeab3Smrgtest -n "$ac_init_help" && exit $ac_status
151514c0a534Smrgif $ac_init_version; then
151614c0a534Smrg  cat <<\_ACEOF
15177015785aSmrgsmproxy configure 1.0.8
15187015785aSmrggenerated by GNU Autoconf 2.72
151914c0a534Smrg
15207015785aSmrgCopyright (C) 2023 Free Software Foundation, Inc.
152114c0a534SmrgThis configure script is free software; the Free Software Foundation
152214c0a534Smrggives unlimited permission to copy, distribute and modify it.
152314c0a534Smrg_ACEOF
1524bf2eeab3Smrg  exit
152514c0a534Smrgfi
152614c0a534Smrg
1527576bae58Smrg## ------------------------ ##
1528576bae58Smrg## Autoconf initialization. ##
1529576bae58Smrg## ------------------------ ##
153014c0a534Smrg
1531576bae58Smrg# ac_fn_c_try_compile LINENO
1532576bae58Smrg# --------------------------
1533576bae58Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1534576bae58Smrgac_fn_c_try_compile ()
153514c0a534Smrg{
1536576bae58Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537bdc460c5Smrg  rm -f conftest.$ac_objext conftest.beam
1538576bae58Smrg  if { { ac_try="$ac_compile"
1539576bae58Smrgcase "(($ac_try" in
1540576bae58Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541576bae58Smrg  *) ac_try_echo=$ac_try;;
1542576bae58Smrgesac
1543576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544bdc460c5Smrgprintf "%s\n" "$ac_try_echo"; } >&5
1545576bae58Smrg  (eval "$ac_compile") 2>conftest.err
1546576bae58Smrg  ac_status=$?
1547576bae58Smrg  if test -s conftest.err; then
1548576bae58Smrg    grep -v '^ *+' conftest.err >conftest.er1
1549576bae58Smrg    cat conftest.er1 >&5
1550576bae58Smrg    mv -f conftest.er1 conftest.err
1551576bae58Smrg  fi
1552bdc460c5Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553576bae58Smrg  test $ac_status = 0; } && {
1554576bae58Smrg	 test -z "$ac_c_werror_flag" ||
1555576bae58Smrg	 test ! -s conftest.err
1556bdc460c5Smrg       } && test -s conftest.$ac_objext
1557bdc460c5Smrgthen :
1558576bae58Smrg  ac_retval=0
15597015785aSmrgelse case e in #(
15607015785aSmrg  e) printf "%s\n" "$as_me: failed program was:" >&5
1561576bae58Smrgsed 's/^/| /' conftest.$ac_ext >&5
156214c0a534Smrg
15637015785aSmrg	ac_retval=1 ;;
15647015785aSmrgesac
1565576bae58Smrgfi
1566576bae58Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567576bae58Smrg  as_fn_set_status $ac_retval
156814c0a534Smrg
1569576bae58Smrg} # ac_fn_c_try_compile
157014c0a534Smrg
1571576bae58Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1572576bae58Smrg# -------------------------------------------------------
1573576bae58Smrg# Tests whether HEADER exists and can be compiled using the include files in
1574576bae58Smrg# INCLUDES, setting the cache variable VAR accordingly.
1575576bae58Smrgac_fn_c_check_header_compile ()
1576576bae58Smrg{
1577576bae58Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1579bdc460c5Smrgprintf %s "checking for $2... " >&6; }
1580bdc460c5Smrgif eval test \${$3+y}
1581bdc460c5Smrgthen :
1582bdc460c5Smrg  printf %s "(cached) " >&6
15837015785aSmrgelse case e in #(
15847015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1585576bae58Smrg/* end confdefs.h.  */
1586576bae58Smrg$4
1587576bae58Smrg#include <$2>
1588576bae58Smrg_ACEOF
1589bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
1590bdc460c5Smrgthen :
1591576bae58Smrg  eval "$3=yes"
15927015785aSmrgelse case e in #(
15937015785aSmrg  e) eval "$3=no" ;;
15947015785aSmrgesac
1595576bae58Smrgfi
15967015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15977015785aSmrgesac
1598576bae58Smrgfi
1599576bae58Smrgeval ac_res=\$$3
1600bdc460c5Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1601bdc460c5Smrgprintf "%s\n" "$ac_res" >&6; }
1602576bae58Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603576bae58Smrg
1604576bae58Smrg} # ac_fn_c_check_header_compile
1605576bae58Smrg
1606bdc460c5Smrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1607bdc460c5Smrg# ------------------------------------------------------------------
160824047306Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1609bdc460c5Smrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1610bdc460c5Smrgac_fn_check_decl ()
161124047306Smrg{
161224047306Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
161324047306Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1614bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1615bdc460c5Smrgprintf %s "checking whether $as_decl_name is declared... " >&6; }
1616bdc460c5Smrgif eval test \${$3+y}
1617bdc460c5Smrgthen :
1618bdc460c5Smrg  printf %s "(cached) " >&6
16197015785aSmrgelse case e in #(
16207015785aSmrg  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1621bdc460c5Smrg  eval ac_save_FLAGS=\$$6
1622bdc460c5Smrg  as_fn_append $6 " $5"
162324047306Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
162424047306Smrg/* end confdefs.h.  */
162524047306Smrg$4
162624047306Smrgint
1627bdc460c5Smrgmain (void)
162824047306Smrg{
162924047306Smrg#ifndef $as_decl_name
163024047306Smrg#ifdef __cplusplus
163124047306Smrg  (void) $as_decl_use;
163224047306Smrg#else
163324047306Smrg  (void) $as_decl_name;
163424047306Smrg#endif
163524047306Smrg#endif
163624047306Smrg
163724047306Smrg  ;
163824047306Smrg  return 0;
163924047306Smrg}
164024047306Smrg_ACEOF
1641bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
1642bdc460c5Smrgthen :
164324047306Smrg  eval "$3=yes"
16447015785aSmrgelse case e in #(
16457015785aSmrg  e) eval "$3=no" ;;
16467015785aSmrgesac
164724047306Smrgfi
1648bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1649bdc460c5Smrg  eval $6=\$ac_save_FLAGS
16507015785aSmrg ;;
16517015785aSmrgesac
165224047306Smrgfi
165324047306Smrgeval ac_res=\$$3
1654bdc460c5Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655bdc460c5Smrgprintf "%s\n" "$ac_res" >&6; }
165624047306Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
165724047306Smrg
1658bdc460c5Smrg} # ac_fn_check_decl
165924047306Smrg
1660576bae58Smrg# ac_fn_c_try_link LINENO
1661576bae58Smrg# -----------------------
1662576bae58Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1663576bae58Smrgac_fn_c_try_link ()
1664576bae58Smrg{
1665576bae58Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666bdc460c5Smrg  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1667576bae58Smrg  if { { ac_try="$ac_link"
1668576bae58Smrgcase "(($ac_try" in
1669576bae58Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670576bae58Smrg  *) ac_try_echo=$ac_try;;
1671576bae58Smrgesac
1672576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673bdc460c5Smrgprintf "%s\n" "$ac_try_echo"; } >&5
1674576bae58Smrg  (eval "$ac_link") 2>conftest.err
1675576bae58Smrg  ac_status=$?
1676576bae58Smrg  if test -s conftest.err; then
1677576bae58Smrg    grep -v '^ *+' conftest.err >conftest.er1
1678576bae58Smrg    cat conftest.er1 >&5
1679576bae58Smrg    mv -f conftest.er1 conftest.err
1680576bae58Smrg  fi
1681bdc460c5Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682576bae58Smrg  test $ac_status = 0; } && {
1683576bae58Smrg	 test -z "$ac_c_werror_flag" ||
1684576bae58Smrg	 test ! -s conftest.err
1685576bae58Smrg       } && test -s conftest$ac_exeext && {
1686576bae58Smrg	 test "$cross_compiling" = yes ||
168724047306Smrg	 test -x conftest$ac_exeext
1688bdc460c5Smrg       }
1689bdc460c5Smrgthen :
1690576bae58Smrg  ac_retval=0
16917015785aSmrgelse case e in #(
16927015785aSmrg  e) printf "%s\n" "$as_me: failed program was:" >&5
1693576bae58Smrgsed 's/^/| /' conftest.$ac_ext >&5
1694576bae58Smrg
16957015785aSmrg	ac_retval=1 ;;
16967015785aSmrgesac
1697576bae58Smrgfi
1698576bae58Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699576bae58Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700576bae58Smrg  # interfere with the next link command; also delete a directory that is
1701576bae58Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
1702576bae58Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703576bae58Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704576bae58Smrg  as_fn_set_status $ac_retval
1705576bae58Smrg
1706576bae58Smrg} # ac_fn_c_try_link
1707576bae58Smrg
1708576bae58Smrg# ac_fn_c_check_func LINENO FUNC VAR
1709576bae58Smrg# ----------------------------------
1710576bae58Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
1711576bae58Smrgac_fn_c_check_func ()
1712576bae58Smrg{
1713576bae58Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715bdc460c5Smrgprintf %s "checking for $2... " >&6; }
1716bdc460c5Smrgif eval test \${$3+y}
1717bdc460c5Smrgthen :
1718bdc460c5Smrg  printf %s "(cached) " >&6
17197015785aSmrgelse case e in #(
17207015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721576bae58Smrg/* end confdefs.h.  */
1722576bae58Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1723576bae58Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1724576bae58Smrg#define $2 innocuous_$2
1725576bae58Smrg
1726576bae58Smrg/* System header to define __stub macros and hopefully few prototypes,
17277015785aSmrg   which can conflict with char $2 (void); below.  */
1728576bae58Smrg
1729bdc460c5Smrg#include <limits.h>
1730576bae58Smrg#undef $2
1731576bae58Smrg
1732576bae58Smrg/* Override any GCC internal prototype to avoid an error.
1733576bae58Smrg   Use char because int might match the return type of a GCC
1734576bae58Smrg   builtin and then its argument prototype would still apply.  */
1735576bae58Smrg#ifdef __cplusplus
1736576bae58Smrgextern "C"
1737576bae58Smrg#endif
17387015785aSmrgchar $2 (void);
1739576bae58Smrg/* The GNU C library defines this for functions which it implements
1740576bae58Smrg    to always fail with ENOSYS.  Some functions are actually named
1741576bae58Smrg    something starting with __ and the normal name is an alias.  */
1742576bae58Smrg#if defined __stub_$2 || defined __stub___$2
1743576bae58Smrgchoke me
1744576bae58Smrg#endif
1745576bae58Smrg
1746576bae58Smrgint
1747bdc460c5Smrgmain (void)
1748576bae58Smrg{
1749576bae58Smrgreturn $2 ();
1750576bae58Smrg  ;
1751576bae58Smrg  return 0;
1752576bae58Smrg}
1753576bae58Smrg_ACEOF
1754bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
1755bdc460c5Smrgthen :
1756576bae58Smrg  eval "$3=yes"
17577015785aSmrgelse case e in #(
17587015785aSmrg  e) eval "$3=no" ;;
17597015785aSmrgesac
1760576bae58Smrgfi
1761bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
17627015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
17637015785aSmrgesac
1764576bae58Smrgfi
1765576bae58Smrgeval ac_res=\$$3
1766bdc460c5Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767bdc460c5Smrgprintf "%s\n" "$ac_res" >&6; }
1768576bae58Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769576bae58Smrg
1770576bae58Smrg} # ac_fn_c_check_func
1771bdc460c5Smrgac_configure_args_raw=
1772bdc460c5Smrgfor ac_arg
1773bdc460c5Smrgdo
1774bdc460c5Smrg  case $ac_arg in
1775bdc460c5Smrg  *\'*)
1776bdc460c5Smrg    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1777bdc460c5Smrg  esac
1778bdc460c5Smrg  as_fn_append ac_configure_args_raw " '$ac_arg'"
1779bdc460c5Smrgdone
1780bdc460c5Smrg
1781bdc460c5Smrgcase $ac_configure_args_raw in
1782bdc460c5Smrg  *$as_nl*)
1783bdc460c5Smrg    ac_safe_unquote= ;;
1784bdc460c5Smrg  *)
1785bdc460c5Smrg    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1786bdc460c5Smrg    ac_unsafe_a="$ac_unsafe_z#~"
1787bdc460c5Smrg    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1788bdc460c5Smrg    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1789bdc460c5Smrgesac
1790bdc460c5Smrg
1791576bae58Smrgcat >config.log <<_ACEOF
1792576bae58SmrgThis file contains any messages produced by compilers while
1793576bae58Smrgrunning configure, to aid debugging if configure makes a mistake.
1794576bae58Smrg
17957015785aSmrgIt was created by smproxy $as_me 1.0.8, which was
17967015785aSmrggenerated by GNU Autoconf 2.72.  Invocation command line was
1797576bae58Smrg
1798bdc460c5Smrg  $ $0$ac_configure_args_raw
1799576bae58Smrg
1800576bae58Smrg_ACEOF
1801576bae58Smrgexec 5>>config.log
1802576bae58Smrg{
1803576bae58Smrgcat <<_ASUNAME
1804576bae58Smrg## --------- ##
1805576bae58Smrg## Platform. ##
1806576bae58Smrg## --------- ##
1807576bae58Smrg
1808576bae58Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1809576bae58Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1810576bae58Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1811576bae58Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1812576bae58Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1813576bae58Smrg
1814576bae58Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1815576bae58Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1816576bae58Smrg
1817576bae58Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1818576bae58Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1819576bae58Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1820576bae58Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1821576bae58Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1822576bae58Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1823576bae58Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1824576bae58Smrg
1825576bae58Smrg_ASUNAME
1826576bae58Smrg
1827576bae58Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182814c0a534Smrgfor as_dir in $PATH
182914c0a534Smrgdo
183014c0a534Smrg  IFS=$as_save_IFS
1831bdc460c5Smrg  case $as_dir in #(((
1832bdc460c5Smrg    '') as_dir=./ ;;
1833bdc460c5Smrg    */) ;;
1834bdc460c5Smrg    *) as_dir=$as_dir/ ;;
1835bdc460c5Smrg  esac
1836bdc460c5Smrg    printf "%s\n" "PATH: $as_dir"
1837576bae58Smrg  done
1838bf2eeab3SmrgIFS=$as_save_IFS
183914c0a534Smrg
184014c0a534Smrg} >&5
184114c0a534Smrg
184214c0a534Smrgcat >&5 <<_ACEOF
184314c0a534Smrg
184414c0a534Smrg
184514c0a534Smrg## ----------- ##
184614c0a534Smrg## Core tests. ##
184714c0a534Smrg## ----------- ##
184814c0a534Smrg
184914c0a534Smrg_ACEOF
185014c0a534Smrg
185114c0a534Smrg
185214c0a534Smrg# Keep a trace of the command line.
185314c0a534Smrg# Strip out --no-create and --no-recursion so they do not pile up.
185414c0a534Smrg# Strip out --silent because we don't want to record it for future runs.
185514c0a534Smrg# Also quote any args containing shell meta-characters.
185614c0a534Smrg# Make two passes to allow for proper duplicate-argument suppression.
185714c0a534Smrgac_configure_args=
185814c0a534Smrgac_configure_args0=
185914c0a534Smrgac_configure_args1=
186014c0a534Smrgac_must_keep_next=false
186114c0a534Smrgfor ac_pass in 1 2
186214c0a534Smrgdo
186314c0a534Smrg  for ac_arg
186414c0a534Smrg  do
186514c0a534Smrg    case $ac_arg in
186614c0a534Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
186714c0a534Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
186814c0a534Smrg    | -silent | --silent | --silen | --sile | --sil)
186914c0a534Smrg      continue ;;
1870bf2eeab3Smrg    *\'*)
1871bdc460c5Smrg      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
187214c0a534Smrg    esac
187314c0a534Smrg    case $ac_pass in
1874576bae58Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
187514c0a534Smrg    2)
1876576bae58Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
187714c0a534Smrg      if test $ac_must_keep_next = true; then
187814c0a534Smrg	ac_must_keep_next=false # Got value, back to normal.
187914c0a534Smrg      else
188014c0a534Smrg	case $ac_arg in
188114c0a534Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
188214c0a534Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
188314c0a534Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
188414c0a534Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
188514c0a534Smrg	    case "$ac_configure_args0 " in
188614c0a534Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
188714c0a534Smrg	    esac
188814c0a534Smrg	    ;;
188914c0a534Smrg	  -* ) ac_must_keep_next=true ;;
189014c0a534Smrg	esac
189114c0a534Smrg      fi
1892576bae58Smrg      as_fn_append ac_configure_args " '$ac_arg'"
189314c0a534Smrg      ;;
189414c0a534Smrg    esac
189514c0a534Smrg  done
189614c0a534Smrgdone
1897576bae58Smrg{ ac_configure_args0=; unset ac_configure_args0;}
1898576bae58Smrg{ ac_configure_args1=; unset ac_configure_args1;}
189914c0a534Smrg
190014c0a534Smrg# When interrupted or exit'd, cleanup temporary files, and complete
190114c0a534Smrg# config.log.  We remove comments because anyway the quotes in there
190214c0a534Smrg# would cause problems or look ugly.
1903bf2eeab3Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1904bf2eeab3Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
190514c0a534Smrgtrap 'exit_status=$?
1906bdc460c5Smrg  # Sanitize IFS.
1907bdc460c5Smrg  IFS=" ""	$as_nl"
190814c0a534Smrg  # Save into config.log some information that might help in debugging.
190914c0a534Smrg  {
191014c0a534Smrg    echo
191114c0a534Smrg
1912bdc460c5Smrg    printf "%s\n" "## ---------------- ##
191314c0a534Smrg## Cache variables. ##
1914576bae58Smrg## ---------------- ##"
191514c0a534Smrg    echo
191614c0a534Smrg    # The following way of writing the cache mishandles newlines in values,
1917bf2eeab3Smrg(
1918bf2eeab3Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1919bf2eeab3Smrg    eval ac_val=\$$ac_var
1920bf2eeab3Smrg    case $ac_val in #(
1921bf2eeab3Smrg    *${as_nl}*)
1922bf2eeab3Smrg      case $ac_var in #(
1923bdc460c5Smrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1924bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1925bf2eeab3Smrg      esac
1926bf2eeab3Smrg      case $ac_var in #(
1927bf2eeab3Smrg      _ | IFS | as_nl) ;; #(
1928bf2eeab3Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1929576bae58Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1930bf2eeab3Smrg      esac ;;
1931bf2eeab3Smrg    esac
1932bf2eeab3Smrg  done
193314c0a534Smrg  (set) 2>&1 |
1934bf2eeab3Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1935bf2eeab3Smrg    *${as_nl}ac_space=\ *)
193614c0a534Smrg      sed -n \
1937bf2eeab3Smrg	"s/'\''/'\''\\\\'\'''\''/g;
1938bf2eeab3Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1939bf2eeab3Smrg      ;; #(
194014c0a534Smrg    *)
1941bf2eeab3Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
194214c0a534Smrg      ;;
1943bf2eeab3Smrg    esac |
1944bf2eeab3Smrg    sort
1945bf2eeab3Smrg)
194614c0a534Smrg    echo
194714c0a534Smrg
1948bdc460c5Smrg    printf "%s\n" "## ----------------- ##
194914c0a534Smrg## Output variables. ##
1950576bae58Smrg## ----------------- ##"
195114c0a534Smrg    echo
195214c0a534Smrg    for ac_var in $ac_subst_vars
195314c0a534Smrg    do
1954bf2eeab3Smrg      eval ac_val=\$$ac_var
1955bf2eeab3Smrg      case $ac_val in
1956bdc460c5Smrg      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1957bf2eeab3Smrg      esac
1958bdc460c5Smrg      printf "%s\n" "$ac_var='\''$ac_val'\''"
195914c0a534Smrg    done | sort
196014c0a534Smrg    echo
196114c0a534Smrg
196214c0a534Smrg    if test -n "$ac_subst_files"; then
1963bdc460c5Smrg      printf "%s\n" "## ------------------- ##
1964bf2eeab3Smrg## File substitutions. ##
1965576bae58Smrg## ------------------- ##"
196614c0a534Smrg      echo
196714c0a534Smrg      for ac_var in $ac_subst_files
196814c0a534Smrg      do
1969bf2eeab3Smrg	eval ac_val=\$$ac_var
1970bf2eeab3Smrg	case $ac_val in
1971bdc460c5Smrg	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1972bf2eeab3Smrg	esac
1973bdc460c5Smrg	printf "%s\n" "$ac_var='\''$ac_val'\''"
197414c0a534Smrg      done | sort
197514c0a534Smrg      echo
197614c0a534Smrg    fi
197714c0a534Smrg
197814c0a534Smrg    if test -s confdefs.h; then
1979bdc460c5Smrg      printf "%s\n" "## ----------- ##
198014c0a534Smrg## confdefs.h. ##
1981576bae58Smrg## ----------- ##"
198214c0a534Smrg      echo
1983bf2eeab3Smrg      cat confdefs.h
198414c0a534Smrg      echo
198514c0a534Smrg    fi
198614c0a534Smrg    test "$ac_signal" != 0 &&
1987bdc460c5Smrg      printf "%s\n" "$as_me: caught signal $ac_signal"
1988bdc460c5Smrg    printf "%s\n" "$as_me: exit $exit_status"
198914c0a534Smrg  } >&5
1990bf2eeab3Smrg  rm -f core *.core core.conftest.* &&
1991bf2eeab3Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
199214c0a534Smrg    exit $exit_status
1993bf2eeab3Smrg' 0
199414c0a534Smrgfor ac_signal in 1 2 13 15; do
1995576bae58Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
199614c0a534Smrgdone
199714c0a534Smrgac_signal=0
199814c0a534Smrg
199914c0a534Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2000bf2eeab3Smrgrm -f -r conftest* confdefs.h
200114c0a534Smrg
2002bdc460c5Smrgprintf "%s\n" "/* confdefs.h */" > confdefs.h
2003576bae58Smrg
200414c0a534Smrg# Predefined preprocessor variables.
200514c0a534Smrg
2006bdc460c5Smrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
200714c0a534Smrg
2008bdc460c5Smrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
200914c0a534Smrg
2010bdc460c5Smrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
201114c0a534Smrg
2012bdc460c5Smrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
201314c0a534Smrg
2014bdc460c5Smrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
201514c0a534Smrg
2016bdc460c5Smrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2017576bae58Smrg
201814c0a534Smrg
201914c0a534Smrg# Let the site file select an alternate cache file if it wants to.
2020bf2eeab3Smrg# Prefer an explicitly selected file to automatically selected ones.
2021bf2eeab3Smrgif test -n "$CONFIG_SITE"; then
2022bdc460c5Smrg  ac_site_files="$CONFIG_SITE"
2023bf2eeab3Smrgelif test "x$prefix" != xNONE; then
2024bdc460c5Smrg  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2025bf2eeab3Smrgelse
2026bdc460c5Smrg  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
202714c0a534Smrgfi
2028bdc460c5Smrg
2029bdc460c5Smrgfor ac_site_file in $ac_site_files
2030bf2eeab3Smrgdo
2031bdc460c5Smrg  case $ac_site_file in #(
2032bdc460c5Smrg  */*) :
2033bdc460c5Smrg     ;; #(
2034bdc460c5Smrg  *) :
2035bdc460c5Smrg    ac_site_file=./$ac_site_file ;;
2036bdc460c5Smrgesac
2037bdc460c5Smrg  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2038bdc460c5Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2039bdc460c5Smrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
204014c0a534Smrg    sed 's/^/| /' "$ac_site_file" >&5
2041576bae58Smrg    . "$ac_site_file" \
20427015785aSmrg      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20437015785aSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2044576bae58Smrgas_fn_error $? "failed to load site script $ac_site_file
20457015785aSmrgSee 'config.log' for more details" "$LINENO" 5; }
204614c0a534Smrg  fi
204714c0a534Smrgdone
204814c0a534Smrg
204914c0a534Smrgif test -r "$cache_file"; then
2050576bae58Smrg  # Some versions of bash will fail to source /dev/null (special files
2051576bae58Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2052576bae58Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2053bdc460c5Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2054bdc460c5Smrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
205514c0a534Smrg    case $cache_file in
2056bf2eeab3Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2057bf2eeab3Smrg      *)                      . "./$cache_file";;
205814c0a534Smrg    esac
205914c0a534Smrg  fi
206014c0a534Smrgelse
2061bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2062bdc460c5Smrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
206314c0a534Smrg  >$cache_file
206414c0a534Smrgfi
206514c0a534Smrg
2066bdc460c5Smrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2067bdc460c5Smrg# Test code for whether the C compiler supports C89 (global declarations)
2068bdc460c5Smrgac_c_conftest_c89_globals='
2069bdc460c5Smrg/* Does the compiler advertise C89 conformance?
2070bdc460c5Smrg   Do not test the value of __STDC__, because some compilers set it to 0
2071bdc460c5Smrg   while being otherwise adequately conformant. */
2072bdc460c5Smrg#if !defined __STDC__
2073bdc460c5Smrg# error "Compiler does not advertise C89 conformance"
2074bdc460c5Smrg#endif
207514c0a534Smrg
2076bdc460c5Smrg#include <stddef.h>
2077bdc460c5Smrg#include <stdarg.h>
2078bdc460c5Smrgstruct stat;
2079bdc460c5Smrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2080bdc460c5Smrgstruct buf { int x; };
2081bdc460c5Smrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int);
20827015785aSmrgstatic char *e (char **p, int i)
2083bdc460c5Smrg{
2084bdc460c5Smrg  return p[i];
2085bdc460c5Smrg}
2086bdc460c5Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
2087bdc460c5Smrg{
2088bdc460c5Smrg  char *s;
2089bdc460c5Smrg  va_list v;
2090bdc460c5Smrg  va_start (v,p);
2091bdc460c5Smrg  s = g (p, va_arg (v,int));
2092bdc460c5Smrg  va_end (v);
2093bdc460c5Smrg  return s;
2094bdc460c5Smrg}
2095bdc460c5Smrg
20967015785aSmrg/* C89 style stringification. */
20977015785aSmrg#define noexpand_stringify(a) #a
20987015785aSmrgconst char *stringified = noexpand_stringify(arbitrary+token=sequence);
20997015785aSmrg
21007015785aSmrg/* C89 style token pasting.  Exercises some of the corner cases that
21017015785aSmrg   e.g. old MSVC gets wrong, but not very hard. */
21027015785aSmrg#define noexpand_concat(a,b) a##b
21037015785aSmrg#define expand_concat(a,b) noexpand_concat(a,b)
21047015785aSmrgextern int vA;
21057015785aSmrgextern int vbee;
21067015785aSmrg#define aye A
21077015785aSmrg#define bee B
21087015785aSmrgint *pvA = &expand_concat(v,aye);
21097015785aSmrgint *pvbee = &noexpand_concat(v,bee);
21107015785aSmrg
2111bdc460c5Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2112bdc460c5Smrg   function prototypes and stuff, but not \xHH hex character constants.
2113bdc460c5Smrg   These do not provoke an error unfortunately, instead are silently treated
2114bdc460c5Smrg   as an "x".  The following induces an error, until -std is added to get
2115bdc460c5Smrg   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2116bdc460c5Smrg   array size at least.  It is necessary to write \x00 == 0 to get something
2117bdc460c5Smrg   that is true only with -std.  */
2118bdc460c5Smrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2119bdc460c5Smrg
2120bdc460c5Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2121bdc460c5Smrg   inside strings and character constants.  */
2122bdc460c5Smrg#define FOO(x) '\''x'\''
2123bdc460c5Smrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2124bdc460c5Smrg
2125bdc460c5Smrgint test (int i, double x);
2126bdc460c5Smrgstruct s1 {int (*f) (int a);};
2127bdc460c5Smrgstruct s2 {int (*f) (double a);};
2128bdc460c5Smrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2129bdc460c5Smrg               int, int);'
2130bdc460c5Smrg
2131bdc460c5Smrg# Test code for whether the C compiler supports C89 (body of main).
2132bdc460c5Smrgac_c_conftest_c89_main='
2133bdc460c5Smrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2134bdc460c5Smrg'
2135bdc460c5Smrg
2136bdc460c5Smrg# Test code for whether the C compiler supports C99 (global declarations)
2137bdc460c5Smrgac_c_conftest_c99_globals='
21387015785aSmrg/* Does the compiler advertise C99 conformance? */
2139bdc460c5Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2140bdc460c5Smrg# error "Compiler does not advertise C99 conformance"
2141bdc460c5Smrg#endif
2142bdc460c5Smrg
21437015785aSmrg// See if C++-style comments work.
21447015785aSmrg
2145bdc460c5Smrg#include <stdbool.h>
2146bdc460c5Smrgextern int puts (const char *);
2147bdc460c5Smrgextern int printf (const char *, ...);
2148bdc460c5Smrgextern int dprintf (int, const char *, ...);
2149bdc460c5Smrgextern void *malloc (size_t);
21507015785aSmrgextern void free (void *);
2151bdc460c5Smrg
2152bdc460c5Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2153bdc460c5Smrg// dprintf is used instead of fprintf to avoid needing to declare
2154bdc460c5Smrg// FILE and stderr.
2155bdc460c5Smrg#define debug(...) dprintf (2, __VA_ARGS__)
2156bdc460c5Smrg#define showlist(...) puts (#__VA_ARGS__)
2157bdc460c5Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2158bdc460c5Smrgstatic void
2159bdc460c5Smrgtest_varargs_macros (void)
2160bdc460c5Smrg{
2161bdc460c5Smrg  int x = 1234;
2162bdc460c5Smrg  int y = 5678;
2163bdc460c5Smrg  debug ("Flag");
2164bdc460c5Smrg  debug ("X = %d\n", x);
2165bdc460c5Smrg  showlist (The first, second, and third items.);
2166bdc460c5Smrg  report (x>y, "x is %d but y is %d", x, y);
2167bdc460c5Smrg}
2168bdc460c5Smrg
2169bdc460c5Smrg// Check long long types.
2170bdc460c5Smrg#define BIG64 18446744073709551615ull
2171bdc460c5Smrg#define BIG32 4294967295ul
2172bdc460c5Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2173bdc460c5Smrg#if !BIG_OK
2174bdc460c5Smrg  #error "your preprocessor is broken"
2175bdc460c5Smrg#endif
2176bdc460c5Smrg#if BIG_OK
2177bdc460c5Smrg#else
2178bdc460c5Smrg  #error "your preprocessor is broken"
2179bdc460c5Smrg#endif
2180bdc460c5Smrgstatic long long int bignum = -9223372036854775807LL;
2181bdc460c5Smrgstatic unsigned long long int ubignum = BIG64;
2182bdc460c5Smrg
2183bdc460c5Smrgstruct incomplete_array
2184bdc460c5Smrg{
2185bdc460c5Smrg  int datasize;
2186bdc460c5Smrg  double data[];
2187bdc460c5Smrg};
2188bdc460c5Smrg
2189bdc460c5Smrgstruct named_init {
2190bdc460c5Smrg  int number;
2191bdc460c5Smrg  const wchar_t *name;
2192bdc460c5Smrg  double average;
2193bdc460c5Smrg};
2194bdc460c5Smrg
2195bdc460c5Smrgtypedef const char *ccp;
2196bdc460c5Smrg
2197bdc460c5Smrgstatic inline int
2198bdc460c5Smrgtest_restrict (ccp restrict text)
2199bdc460c5Smrg{
2200bdc460c5Smrg  // Iterate through items via the restricted pointer.
2201bdc460c5Smrg  // Also check for declarations in for loops.
2202bdc460c5Smrg  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2203bdc460c5Smrg    continue;
2204bdc460c5Smrg  return 0;
2205bdc460c5Smrg}
2206bdc460c5Smrg
2207bdc460c5Smrg// Check varargs and va_copy.
2208bdc460c5Smrgstatic bool
2209bdc460c5Smrgtest_varargs (const char *format, ...)
2210bdc460c5Smrg{
2211bdc460c5Smrg  va_list args;
2212bdc460c5Smrg  va_start (args, format);
2213bdc460c5Smrg  va_list args_copy;
2214bdc460c5Smrg  va_copy (args_copy, args);
2215bdc460c5Smrg
2216bdc460c5Smrg  const char *str = "";
2217bdc460c5Smrg  int number = 0;
2218bdc460c5Smrg  float fnumber = 0;
2219bdc460c5Smrg
2220bdc460c5Smrg  while (*format)
2221bdc460c5Smrg    {
2222bdc460c5Smrg      switch (*format++)
2223bdc460c5Smrg	{
2224bdc460c5Smrg	case '\''s'\'': // string
2225bdc460c5Smrg	  str = va_arg (args_copy, const char *);
2226bdc460c5Smrg	  break;
2227bdc460c5Smrg	case '\''d'\'': // int
2228bdc460c5Smrg	  number = va_arg (args_copy, int);
2229bdc460c5Smrg	  break;
2230bdc460c5Smrg	case '\''f'\'': // float
2231bdc460c5Smrg	  fnumber = va_arg (args_copy, double);
2232bdc460c5Smrg	  break;
2233bdc460c5Smrg	default:
2234bdc460c5Smrg	  break;
2235bdc460c5Smrg	}
2236bdc460c5Smrg    }
2237bdc460c5Smrg  va_end (args_copy);
2238bdc460c5Smrg  va_end (args);
2239bdc460c5Smrg
2240bdc460c5Smrg  return *str && number && fnumber;
2241bdc460c5Smrg}
2242bdc460c5Smrg'
2243bdc460c5Smrg
2244bdc460c5Smrg# Test code for whether the C compiler supports C99 (body of main).
2245bdc460c5Smrgac_c_conftest_c99_main='
2246bdc460c5Smrg  // Check bool.
2247bdc460c5Smrg  _Bool success = false;
2248bdc460c5Smrg  success |= (argc != 0);
2249bdc460c5Smrg
2250bdc460c5Smrg  // Check restrict.
2251bdc460c5Smrg  if (test_restrict ("String literal") == 0)
2252bdc460c5Smrg    success = true;
2253bdc460c5Smrg  char *restrict newvar = "Another string";
2254bdc460c5Smrg
2255bdc460c5Smrg  // Check varargs.
2256bdc460c5Smrg  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2257bdc460c5Smrg  test_varargs_macros ();
2258bdc460c5Smrg
2259bdc460c5Smrg  // Check flexible array members.
2260bdc460c5Smrg  struct incomplete_array *ia =
2261bdc460c5Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2262bdc460c5Smrg  ia->datasize = 10;
2263bdc460c5Smrg  for (int i = 0; i < ia->datasize; ++i)
2264bdc460c5Smrg    ia->data[i] = i * 1.234;
22657015785aSmrg  // Work around memory leak warnings.
22667015785aSmrg  free (ia);
2267bdc460c5Smrg
2268bdc460c5Smrg  // Check named initializers.
2269bdc460c5Smrg  struct named_init ni = {
2270bdc460c5Smrg    .number = 34,
2271bdc460c5Smrg    .name = L"Test wide string",
2272bdc460c5Smrg    .average = 543.34343,
2273bdc460c5Smrg  };
2274bdc460c5Smrg
2275bdc460c5Smrg  ni.number = 58;
2276bdc460c5Smrg
2277bdc460c5Smrg  int dynamic_array[ni.number];
2278bdc460c5Smrg  dynamic_array[0] = argv[0][0];
2279bdc460c5Smrg  dynamic_array[ni.number - 1] = 543;
2280bdc460c5Smrg
2281bdc460c5Smrg  // work around unused variable warnings
2282bdc460c5Smrg  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2283bdc460c5Smrg	 || dynamic_array[ni.number - 1] != 543);
2284bdc460c5Smrg'
2285bdc460c5Smrg
2286bdc460c5Smrg# Test code for whether the C compiler supports C11 (global declarations)
2287bdc460c5Smrgac_c_conftest_c11_globals='
22887015785aSmrg/* Does the compiler advertise C11 conformance? */
2289bdc460c5Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2290bdc460c5Smrg# error "Compiler does not advertise C11 conformance"
2291bdc460c5Smrg#endif
2292bdc460c5Smrg
2293bdc460c5Smrg// Check _Alignas.
2294bdc460c5Smrgchar _Alignas (double) aligned_as_double;
2295bdc460c5Smrgchar _Alignas (0) no_special_alignment;
2296bdc460c5Smrgextern char aligned_as_int;
2297bdc460c5Smrgchar _Alignas (0) _Alignas (int) aligned_as_int;
2298bdc460c5Smrg
2299bdc460c5Smrg// Check _Alignof.
2300bdc460c5Smrgenum
2301bdc460c5Smrg{
2302bdc460c5Smrg  int_alignment = _Alignof (int),
2303bdc460c5Smrg  int_array_alignment = _Alignof (int[100]),
2304bdc460c5Smrg  char_alignment = _Alignof (char)
2305bdc460c5Smrg};
2306bdc460c5Smrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2307bdc460c5Smrg
2308bdc460c5Smrg// Check _Noreturn.
2309bdc460c5Smrgint _Noreturn does_not_return (void) { for (;;) continue; }
2310bdc460c5Smrg
2311bdc460c5Smrg// Check _Static_assert.
2312bdc460c5Smrgstruct test_static_assert
2313bdc460c5Smrg{
2314bdc460c5Smrg  int x;
2315bdc460c5Smrg  _Static_assert (sizeof (int) <= sizeof (long int),
2316bdc460c5Smrg                  "_Static_assert does not work in struct");
2317bdc460c5Smrg  long int y;
2318bdc460c5Smrg};
2319bdc460c5Smrg
2320bdc460c5Smrg// Check UTF-8 literals.
2321bdc460c5Smrg#define u8 syntax error!
2322bdc460c5Smrgchar const utf8_literal[] = u8"happens to be ASCII" "another string";
2323bdc460c5Smrg
2324bdc460c5Smrg// Check duplicate typedefs.
2325bdc460c5Smrgtypedef long *long_ptr;
2326bdc460c5Smrgtypedef long int *long_ptr;
2327bdc460c5Smrgtypedef long_ptr long_ptr;
2328bdc460c5Smrg
2329bdc460c5Smrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2330bdc460c5Smrgstruct anonymous
2331bdc460c5Smrg{
2332bdc460c5Smrg  union {
2333bdc460c5Smrg    struct { int i; int j; };
2334bdc460c5Smrg    struct { int k; long int l; } w;
2335bdc460c5Smrg  };
2336bdc460c5Smrg  int m;
2337bdc460c5Smrg} v1;
2338bdc460c5Smrg'
2339bdc460c5Smrg
2340bdc460c5Smrg# Test code for whether the C compiler supports C11 (body of main).
2341bdc460c5Smrgac_c_conftest_c11_main='
2342bdc460c5Smrg  _Static_assert ((offsetof (struct anonymous, i)
2343bdc460c5Smrg		   == offsetof (struct anonymous, w.k)),
2344bdc460c5Smrg		  "Anonymous union alignment botch");
2345bdc460c5Smrg  v1.i = 2;
2346bdc460c5Smrg  v1.w.k = 5;
2347bdc460c5Smrg  ok |= v1.i != 5;
2348bdc460c5Smrg'
2349bdc460c5Smrg
2350bdc460c5Smrg# Test code for whether the C compiler supports C11 (complete).
2351bdc460c5Smrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2352bdc460c5Smrg${ac_c_conftest_c99_globals}
2353bdc460c5Smrg${ac_c_conftest_c11_globals}
2354bdc460c5Smrg
2355bdc460c5Smrgint
2356bdc460c5Smrgmain (int argc, char **argv)
2357bdc460c5Smrg{
2358bdc460c5Smrg  int ok = 0;
2359bdc460c5Smrg  ${ac_c_conftest_c89_main}
2360bdc460c5Smrg  ${ac_c_conftest_c99_main}
2361bdc460c5Smrg  ${ac_c_conftest_c11_main}
2362bdc460c5Smrg  return ok;
2363bdc460c5Smrg}
2364bdc460c5Smrg"
2365bdc460c5Smrg
2366bdc460c5Smrg# Test code for whether the C compiler supports C99 (complete).
2367bdc460c5Smrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2368bdc460c5Smrg${ac_c_conftest_c99_globals}
2369bdc460c5Smrg
2370bdc460c5Smrgint
2371bdc460c5Smrgmain (int argc, char **argv)
2372bdc460c5Smrg{
2373bdc460c5Smrg  int ok = 0;
2374bdc460c5Smrg  ${ac_c_conftest_c89_main}
2375bdc460c5Smrg  ${ac_c_conftest_c99_main}
2376bdc460c5Smrg  return ok;
2377bdc460c5Smrg}
2378bdc460c5Smrg"
2379bdc460c5Smrg
2380bdc460c5Smrg# Test code for whether the C compiler supports C89 (complete).
2381bdc460c5Smrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2382bdc460c5Smrg
2383bdc460c5Smrgint
2384bdc460c5Smrgmain (int argc, char **argv)
2385bdc460c5Smrg{
2386bdc460c5Smrg  int ok = 0;
2387bdc460c5Smrg  ${ac_c_conftest_c89_main}
2388bdc460c5Smrg  return ok;
2389bdc460c5Smrg}
2390bdc460c5Smrg"
2391bdc460c5Smrg
2392bdc460c5Smrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2393bdc460c5Smrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2394bdc460c5Smrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2395bdc460c5Smrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2396bdc460c5Smrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2397bdc460c5Smrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2398bdc460c5Smrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2399bdc460c5Smrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2400bdc460c5Smrgas_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2401bdc460c5Smrgas_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2402bdc460c5Smrg
2403bdc460c5Smrg# Auxiliary files required by this configure script.
2404bdc460c5Smrgac_aux_files="config.guess config.sub compile missing install-sh"
2405bdc460c5Smrg
2406bdc460c5Smrg# Locations in which to look for auxiliary files.
2407bdc460c5Smrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2408bdc460c5Smrg
2409bdc460c5Smrg# Search for a directory containing all of the required auxiliary files,
2410bdc460c5Smrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2411bdc460c5Smrg# If we don't find one directory that contains all the files we need,
2412bdc460c5Smrg# we report the set of missing files from the *first* directory in
2413bdc460c5Smrg# $ac_aux_dir_candidates and give up.
2414bdc460c5Smrgac_missing_aux_files=""
2415bdc460c5Smrgac_first_candidate=:
2416bdc460c5Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2417bdc460c5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418bdc460c5Smrgas_found=false
2419bdc460c5Smrgfor as_dir in $ac_aux_dir_candidates
2420bdc460c5Smrgdo
2421bdc460c5Smrg  IFS=$as_save_IFS
2422bdc460c5Smrg  case $as_dir in #(((
2423bdc460c5Smrg    '') as_dir=./ ;;
2424bdc460c5Smrg    */) ;;
2425bdc460c5Smrg    *) as_dir=$as_dir/ ;;
2426bdc460c5Smrg  esac
2427bdc460c5Smrg  as_found=:
2428bdc460c5Smrg
2429bdc460c5Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2430bdc460c5Smrg  ac_aux_dir_found=yes
2431bdc460c5Smrg  ac_install_sh=
2432bdc460c5Smrg  for ac_aux in $ac_aux_files
2433bdc460c5Smrg  do
2434bdc460c5Smrg    # As a special case, if "install-sh" is required, that requirement
2435bdc460c5Smrg    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2436bdc460c5Smrg    # and $ac_install_sh is set appropriately for whichever one is found.
2437bdc460c5Smrg    if test x"$ac_aux" = x"install-sh"
2438bdc460c5Smrg    then
2439bdc460c5Smrg      if test -f "${as_dir}install-sh"; then
2440bdc460c5Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2441bdc460c5Smrg        ac_install_sh="${as_dir}install-sh -c"
2442bdc460c5Smrg      elif test -f "${as_dir}install.sh"; then
2443bdc460c5Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2444bdc460c5Smrg        ac_install_sh="${as_dir}install.sh -c"
2445bdc460c5Smrg      elif test -f "${as_dir}shtool"; then
2446bdc460c5Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2447bdc460c5Smrg        ac_install_sh="${as_dir}shtool install -c"
2448bdc460c5Smrg      else
2449bdc460c5Smrg        ac_aux_dir_found=no
2450bdc460c5Smrg        if $ac_first_candidate; then
2451bdc460c5Smrg          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2452bdc460c5Smrg        else
2453bdc460c5Smrg          break
2454bdc460c5Smrg        fi
2455bdc460c5Smrg      fi
2456bdc460c5Smrg    else
2457bdc460c5Smrg      if test -f "${as_dir}${ac_aux}"; then
2458bdc460c5Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2459bdc460c5Smrg      else
2460bdc460c5Smrg        ac_aux_dir_found=no
2461bdc460c5Smrg        if $ac_first_candidate; then
2462bdc460c5Smrg          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2463bdc460c5Smrg        else
2464bdc460c5Smrg          break
2465bdc460c5Smrg        fi
2466bdc460c5Smrg      fi
2467bdc460c5Smrg    fi
2468bdc460c5Smrg  done
2469bdc460c5Smrg  if test "$ac_aux_dir_found" = yes; then
2470bdc460c5Smrg    ac_aux_dir="$as_dir"
2471bdc460c5Smrg    break
2472bdc460c5Smrg  fi
2473bdc460c5Smrg  ac_first_candidate=false
2474bdc460c5Smrg
2475bdc460c5Smrg  as_found=false
2476bdc460c5Smrgdone
2477bdc460c5SmrgIFS=$as_save_IFS
2478bdc460c5Smrgif $as_found
2479bdc460c5Smrgthen :
2480bdc460c5Smrg
24817015785aSmrgelse case e in #(
24827015785aSmrg  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
24837015785aSmrgesac
248414c0a534Smrgfi
2485bf2eeab3Smrg
2486bdc460c5Smrg
2487bf2eeab3Smrg# These three variables are undocumented and unsupported,
2488bf2eeab3Smrg# and are intended to be withdrawn in a future Autoconf release.
2489bf2eeab3Smrg# They can cause serious problems if a builder's source tree is in a directory
2490bf2eeab3Smrg# whose full name contains unusual characters.
2491bdc460c5Smrgif test -f "${ac_aux_dir}config.guess"; then
2492bdc460c5Smrg  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2493bdc460c5Smrgfi
2494bdc460c5Smrgif test -f "${ac_aux_dir}config.sub"; then
2495bdc460c5Smrg  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2496bdc460c5Smrgfi
2497bdc460c5Smrgif test -f "$ac_aux_dir/configure"; then
2498bdc460c5Smrg  ac_configure="$SHELL ${ac_aux_dir}configure"
2499bdc460c5Smrgfi
2500bdc460c5Smrg
2501bdc460c5Smrg# Check that the precious variables saved in the cache have kept the same
2502bdc460c5Smrg# value.
2503bdc460c5Smrgac_cache_corrupted=false
2504bdc460c5Smrgfor ac_var in $ac_precious_vars; do
2505bdc460c5Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2506bdc460c5Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
2507bdc460c5Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2508bdc460c5Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
2509bdc460c5Smrg  case $ac_old_set,$ac_new_set in
2510bdc460c5Smrg    set,)
25117015785aSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
25127015785aSmrgprintf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2513bdc460c5Smrg      ac_cache_corrupted=: ;;
2514bdc460c5Smrg    ,set)
25157015785aSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
25167015785aSmrgprintf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2517bdc460c5Smrg      ac_cache_corrupted=: ;;
2518bdc460c5Smrg    ,);;
2519bdc460c5Smrg    *)
2520bdc460c5Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2521bdc460c5Smrg	# differences in whitespace do not lead to failure.
2522bdc460c5Smrg	ac_old_val_w=`echo x $ac_old_val`
2523bdc460c5Smrg	ac_new_val_w=`echo x $ac_new_val`
2524bdc460c5Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
25257015785aSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
25267015785aSmrgprintf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2527bdc460c5Smrg	  ac_cache_corrupted=:
2528bdc460c5Smrg	else
25297015785aSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
25307015785aSmrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2531bdc460c5Smrg	  eval $ac_var=\$ac_old_val
2532bdc460c5Smrg	fi
25337015785aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
25347015785aSmrgprintf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
25357015785aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
25367015785aSmrgprintf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2537bdc460c5Smrg      fi;;
2538bdc460c5Smrg  esac
2539bdc460c5Smrg  # Pass precious variables to config.status.
2540bdc460c5Smrg  if test "$ac_new_set" = set; then
2541bdc460c5Smrg    case $ac_new_val in
2542bdc460c5Smrg    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2543bdc460c5Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
2544bdc460c5Smrg    esac
2545bdc460c5Smrg    case " $ac_configure_args " in
2546bdc460c5Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2547bdc460c5Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2548bdc460c5Smrg    esac
2549bdc460c5Smrg  fi
2550bdc460c5Smrgdone
2551bdc460c5Smrgif $ac_cache_corrupted; then
25527015785aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25537015785aSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2554bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2555bdc460c5Smrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
25567015785aSmrg  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2557bdc460c5Smrg	    and start over" "$LINENO" 5
2558bdc460c5Smrgfi
2559bdc460c5Smrg## -------------------- ##
2560bdc460c5Smrg## Main body of script. ##
2561bdc460c5Smrg## -------------------- ##
2562bdc460c5Smrg
2563bdc460c5Smrgac_ext=c
2564bdc460c5Smrgac_cpp='$CPP $CPPFLAGS'
2565bdc460c5Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566bdc460c5Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567bdc460c5Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2568bdc460c5Smrg
2569bdc460c5Smrg
2570bf2eeab3Smrg
2571bdc460c5Smrgac_config_headers="$ac_config_headers config.h"
2572bdc460c5Smrg
2573bdc460c5Smrg
2574bdc460c5Smrg# Initialize Automake
25757015785aSmrgam__api_version='1.17'
257614c0a534Smrg
2577bdc460c5Smrg
2578bdc460c5Smrg
2579bdc460c5Smrg  # Find a good install program.  We prefer a C program (faster),
258014c0a534Smrg# so one script is as good as another.  But avoid the broken or
258114c0a534Smrg# incompatible versions:
258214c0a534Smrg# SysV /etc/install, /usr/sbin/install
258314c0a534Smrg# SunOS /usr/etc/install
258414c0a534Smrg# IRIX /sbin/install
258514c0a534Smrg# AIX /bin/install
258614c0a534Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
258714c0a534Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
258814c0a534Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
258914c0a534Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
259014c0a534Smrg# OS/2's system install, which has a completely different semantic
259114c0a534Smrg# ./install, which can be erroneously created by make from ./install.sh.
2592bf2eeab3Smrg# Reject install programs that cannot install multiple files.
2593bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2594bdc460c5Smrgprintf %s "checking for a BSD-compatible install... " >&6; }
259514c0a534Smrgif test -z "$INSTALL"; then
2596bdc460c5Smrgif test ${ac_cv_path_install+y}
2597bdc460c5Smrgthen :
2598bdc460c5Smrg  printf %s "(cached) " >&6
25997015785aSmrgelse case e in #(
26007015785aSmrg  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
260114c0a534Smrgfor as_dir in $PATH
260214c0a534Smrgdo
260314c0a534Smrg  IFS=$as_save_IFS
2604bdc460c5Smrg  case $as_dir in #(((
2605bdc460c5Smrg    '') as_dir=./ ;;
2606bdc460c5Smrg    */) ;;
2607bdc460c5Smrg    *) as_dir=$as_dir/ ;;
2608bdc460c5Smrg  esac
2609bdc460c5Smrg    # Account for fact that we put trailing slashes in our PATH walk.
2610bdc460c5Smrgcase $as_dir in #((
2611bdc460c5Smrg  ./ | /[cC]/* | \
261214c0a534Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2613576bae58Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
261414c0a534Smrg  /usr/ucb/* ) ;;
261514c0a534Smrg  *)
261614c0a534Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
261714c0a534Smrg    # Don't use installbsd from OSF since it installs stuff as root
261814c0a534Smrg    # by default.
261914c0a534Smrg    for ac_prog in ginstall scoinst install; do
262014c0a534Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2621bdc460c5Smrg	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
262214c0a534Smrg	  if test $ac_prog = install &&
2623bdc460c5Smrg	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
262414c0a534Smrg	    # AIX install.  It has an incompatible calling convention.
262514c0a534Smrg	    :
262614c0a534Smrg	  elif test $ac_prog = install &&
2627bdc460c5Smrg	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
262814c0a534Smrg	    # program-specific install script used by HP pwplus--don't use.
262914c0a534Smrg	    :
263014c0a534Smrg	  else
2631bf2eeab3Smrg	    rm -rf conftest.one conftest.two conftest.dir
2632bf2eeab3Smrg	    echo one > conftest.one
2633bf2eeab3Smrg	    echo two > conftest.two
2634bf2eeab3Smrg	    mkdir conftest.dir
2635bdc460c5Smrg	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2636bf2eeab3Smrg	      test -s conftest.one && test -s conftest.two &&
2637bf2eeab3Smrg	      test -s conftest.dir/conftest.one &&
2638bf2eeab3Smrg	      test -s conftest.dir/conftest.two
2639bf2eeab3Smrg	    then
2640bdc460c5Smrg	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2641bf2eeab3Smrg	      break 3
2642bf2eeab3Smrg	    fi
264314c0a534Smrg	  fi
264414c0a534Smrg	fi
264514c0a534Smrg      done
264614c0a534Smrg    done
264714c0a534Smrg    ;;
264814c0a534Smrgesac
2649bf2eeab3Smrg
2650576bae58Smrg  done
2651bf2eeab3SmrgIFS=$as_save_IFS
265214c0a534Smrg
2653bf2eeab3Smrgrm -rf conftest.one conftest.two conftest.dir
26547015785aSmrg ;;
26557015785aSmrgesac
265614c0a534Smrgfi
2657bdc460c5Smrg  if test ${ac_cv_path_install+y}; then
265814c0a534Smrg    INSTALL=$ac_cv_path_install
265914c0a534Smrg  else
2660bf2eeab3Smrg    # As a last resort, use the slow shell script.  Don't cache a
2661bf2eeab3Smrg    # value for INSTALL within a source directory, because that will
266214c0a534Smrg    # break other packages using the cache if that directory is
2663bf2eeab3Smrg    # removed, or if the value is a relative name.
266414c0a534Smrg    INSTALL=$ac_install_sh
266514c0a534Smrg  fi
266614c0a534Smrgfi
2667bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2668bdc460c5Smrgprintf "%s\n" "$INSTALL" >&6; }
266914c0a534Smrg
267014c0a534Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
267114c0a534Smrg# It thinks the first close brace ends the variable substitution.
267214c0a534Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
267314c0a534Smrg
267414c0a534Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
267514c0a534Smrg
267614c0a534Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
267714c0a534Smrg
26787015785aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
26797015785aSmrgprintf %s "checking whether sleep supports fractional seconds... " >&6; }
26807015785aSmrgif test ${am_cv_sleep_fractional_seconds+y}
26817015785aSmrgthen :
26827015785aSmrg  printf %s "(cached) " >&6
26837015785aSmrgelse case e in #(
26847015785aSmrg  e) if sleep 0.001 2>/dev/null
26857015785aSmrgthen :
26867015785aSmrg  am_cv_sleep_fractional_seconds=yes
26877015785aSmrgelse case e in #(
26887015785aSmrg  e) am_cv_sleep_fractional_seconds=no ;;
26897015785aSmrgesac
26907015785aSmrgfi
26917015785aSmrg ;;
26927015785aSmrgesac
26937015785aSmrgfi
26947015785aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
26957015785aSmrgprintf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
26967015785aSmrg
26977015785aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
26987015785aSmrgprintf %s "checking filesystem timestamp resolution... " >&6; }
26997015785aSmrgif test ${am_cv_filesystem_timestamp_resolution+y}
27007015785aSmrgthen :
27017015785aSmrg  printf %s "(cached) " >&6
27027015785aSmrgelse case e in #(
27037015785aSmrg  e) # Default to the worst case.
27047015785aSmrgam_cv_filesystem_timestamp_resolution=2
27057015785aSmrg
27067015785aSmrg# Only try to go finer than 1 sec if sleep can do it.
27077015785aSmrg# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
27087015785aSmrg# - 1 sec is not much of a win compared to 2 sec, and
27097015785aSmrg# - it takes 2 seconds to perform the test whether 1 sec works.
27107015785aSmrg#
27117015785aSmrg# Instead, just use the default 2s on platforms that have 1s resolution,
27127015785aSmrg# accept the extra 1s delay when using $sleep in the Automake tests, in
27137015785aSmrg# exchange for not incurring the 2s delay for running the test for all
27147015785aSmrg# packages.
27157015785aSmrg#
27167015785aSmrgam_try_resolutions=
27177015785aSmrgif test "$am_cv_sleep_fractional_seconds" = yes; then
27187015785aSmrg  # Even a millisecond often causes a bunch of false positives,
27197015785aSmrg  # so just try a hundredth of a second. The time saved between .001 and
27207015785aSmrg  # .01 is not terribly consequential.
27217015785aSmrg  am_try_resolutions="0.01 0.1 $am_try_resolutions"
27227015785aSmrgfi
27237015785aSmrg
27247015785aSmrg# In order to catch current-generation FAT out, we must *modify* files
27257015785aSmrg# that already exist; the *creation* timestamp is finer.  Use names
27267015785aSmrg# that make ls -t sort them differently when they have equal
27277015785aSmrg# timestamps than when they have distinct timestamps, keeping
27287015785aSmrg# in mind that ls -t prints the *newest* file first.
27297015785aSmrgrm -f conftest.ts?
27307015785aSmrg: > conftest.ts1
27317015785aSmrg: > conftest.ts2
27327015785aSmrg: > conftest.ts3
27337015785aSmrg
27347015785aSmrg# Make sure ls -t actually works.  Do 'set' in a subshell so we don't
27357015785aSmrg# clobber the current shell's arguments. (Outer-level square brackets
27367015785aSmrg# are removed by m4; they're present so that m4 does not expand
27377015785aSmrg# <dollar><star>; be careful, easy to get confused.)
27387015785aSmrgif (
27397015785aSmrg     set X `ls -t conftest.ts[12]` &&
27407015785aSmrg     {
27417015785aSmrg       test "$*" != "X conftest.ts1 conftest.ts2" ||
27427015785aSmrg       test "$*" != "X conftest.ts2 conftest.ts1";
27437015785aSmrg     }
27447015785aSmrg); then :; else
27457015785aSmrg  # If neither matched, then we have a broken ls.  This can happen
27467015785aSmrg  # if, for instance, CONFIG_SHELL is bash and it inherits a
27477015785aSmrg  # broken ls alias from the environment.  This has actually
27487015785aSmrg  # happened.  Such a system could not be considered "sane".
27497015785aSmrg  printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
27507015785aSmrg  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27517015785aSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27527015785aSmrgas_fn_error $? "ls -t produces unexpected output.
27537015785aSmrgMake sure there is not a broken ls alias in your environment.
27547015785aSmrgSee 'config.log' for more details" "$LINENO" 5; }
27557015785aSmrgfi
27567015785aSmrg
27577015785aSmrgfor am_try_res in $am_try_resolutions; do
27587015785aSmrg  # Any one fine-grained sleep might happen to cross the boundary
27597015785aSmrg  # between two values of a coarser actual resolution, but if we do
27607015785aSmrg  # two fine-grained sleeps in a row, at least one of them will fall
27617015785aSmrg  # entirely within a coarse interval.
27627015785aSmrg  echo alpha > conftest.ts1
27637015785aSmrg  sleep $am_try_res
27647015785aSmrg  echo beta > conftest.ts2
27657015785aSmrg  sleep $am_try_res
27667015785aSmrg  echo gamma > conftest.ts3
27677015785aSmrg
27687015785aSmrg  # We assume that 'ls -t' will make use of high-resolution
27697015785aSmrg  # timestamps if the operating system supports them at all.
27707015785aSmrg  if (set X `ls -t conftest.ts?` &&
27717015785aSmrg      test "$2" = conftest.ts3 &&
27727015785aSmrg      test "$3" = conftest.ts2 &&
27737015785aSmrg      test "$4" = conftest.ts1); then
27747015785aSmrg    #
27757015785aSmrg    # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
27767015785aSmrg    # because we don't need to test make.
27777015785aSmrg    make_ok=true
27787015785aSmrg    if test $am_try_res != 1; then
27797015785aSmrg      # But if we've succeeded so far with a subsecond resolution, we
27807015785aSmrg      # have one more thing to check: make. It can happen that
27817015785aSmrg      # everything else supports the subsecond mtimes, but make doesn't;
27827015785aSmrg      # notably on macOS, which ships make 3.81 from 2006 (the last one
27837015785aSmrg      # released under GPLv2). https://bugs.gnu.org/68808
27847015785aSmrg      #
27857015785aSmrg      # We test $MAKE if it is defined in the environment, else "make".
27867015785aSmrg      # It might get overridden later, but our hope is that in practice
27877015785aSmrg      # it does not matter: it is the system "make" which is (by far)
27887015785aSmrg      # the most likely to be broken, whereas if the user overrides it,
27897015785aSmrg      # probably they did so with a better, or at least not worse, make.
27907015785aSmrg      # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
27917015785aSmrg      #
27927015785aSmrg      # Create a Makefile (real tab character here):
27937015785aSmrg      rm -f conftest.mk
27947015785aSmrg      echo 'conftest.ts1: conftest.ts2' >conftest.mk
27957015785aSmrg      echo '	touch conftest.ts2' >>conftest.mk
27967015785aSmrg      #
27977015785aSmrg      # Now, running
27987015785aSmrg      #   touch conftest.ts1; touch conftest.ts2; make
27997015785aSmrg      # should touch ts1 because ts2 is newer. This could happen by luck,
28007015785aSmrg      # but most often, it will fail if make's support is insufficient. So
28017015785aSmrg      # test for several consecutive successes.
28027015785aSmrg      #
28037015785aSmrg      # (We reuse conftest.ts[12] because we still want to modify existing
28047015785aSmrg      # files, not create new ones, per above.)
28057015785aSmrg      n=0
28067015785aSmrg      make=${MAKE-make}
28077015785aSmrg      until test $n -eq 3; do
28087015785aSmrg        echo one > conftest.ts1
28097015785aSmrg        sleep $am_try_res
28107015785aSmrg        echo two > conftest.ts2 # ts2 should now be newer than ts1
28117015785aSmrg        if $make -f conftest.mk | grep 'up to date' >/dev/null; then
28127015785aSmrg          make_ok=false
28137015785aSmrg          break # out of $n loop
28147015785aSmrg        fi
28157015785aSmrg        n=`expr $n + 1`
28167015785aSmrg      done
28177015785aSmrg    fi
28187015785aSmrg    #
28197015785aSmrg    if $make_ok; then
28207015785aSmrg      # Everything we know to check worked out, so call this resolution good.
28217015785aSmrg      am_cv_filesystem_timestamp_resolution=$am_try_res
28227015785aSmrg      break # out of $am_try_res loop
28237015785aSmrg    fi
28247015785aSmrg    # Otherwise, we'll go on to check the next resolution.
28257015785aSmrg  fi
28267015785aSmrgdone
28277015785aSmrgrm -f conftest.ts?
28287015785aSmrg# (end _am_filesystem_timestamp_resolution)
28297015785aSmrg ;;
28307015785aSmrgesac
28317015785aSmrgfi
28327015785aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
28337015785aSmrgprintf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
28347015785aSmrg
28357015785aSmrg# This check should not be cached, as it may vary across builds of
28367015785aSmrg# different projects.
2837bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2838bdc460c5Smrgprintf %s "checking whether build environment is sane... " >&6; }
2839bf2eeab3Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2840bf2eeab3Smrg# name.  Accept space and tab only in the latter.
2841bf2eeab3Smrgam_lf='
2842bf2eeab3Smrg'
2843bf2eeab3Smrgcase `pwd` in
2844bf2eeab3Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
2845576bae58Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2846bf2eeab3Smrgesac
2847bf2eeab3Smrgcase $srcdir in
2848bf2eeab3Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
284924047306Smrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2850bf2eeab3Smrgesac
2851bf2eeab3Smrg
285224047306Smrg# Do 'set' in a subshell so we don't clobber the current shell's
285314c0a534Smrg# arguments.  Must try -L first in case configure is actually a
285414c0a534Smrg# symlink; some systems play weird games with the mod time of symlinks
285514c0a534Smrg# (eg FreeBSD returns the mod time of the symlink's containing
285614c0a534Smrg# directory).
28577015785aSmrgam_build_env_is_sane=no
28587015785aSmrgam_has_slept=no
28597015785aSmrgrm -f conftest.file
28607015785aSmrgfor am_try in 1 2; do
28617015785aSmrg  echo "timestamp, slept: $am_has_slept" > conftest.file
28627015785aSmrg  if (
28637015785aSmrg    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
28647015785aSmrg    if test "$*" = "X"; then
28657015785aSmrg      # -L didn't work.
28667015785aSmrg      set X `ls -t "$srcdir/configure" conftest.file`
28677015785aSmrg    fi
28687015785aSmrg    test "$2" = conftest.file
28697015785aSmrg  ); then
28707015785aSmrg    am_build_env_is_sane=yes
28717015785aSmrg    break
28727015785aSmrg  fi
28737015785aSmrg  # Just in case.
28747015785aSmrg  sleep "$am_cv_filesystem_timestamp_resolution"
28757015785aSmrg  am_has_slept=yes
28767015785aSmrgdone
28777015785aSmrg
28787015785aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
28797015785aSmrgprintf "%s\n" "$am_build_env_is_sane" >&6; }
28807015785aSmrgif test "$am_build_env_is_sane" = no; then
28817015785aSmrg  as_fn_error $? "newly created file is older than distributed files!
2882576bae58SmrgCheck your system clock" "$LINENO" 5
288314c0a534Smrgfi
28847015785aSmrg
288524047306Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and
288624047306Smrg# generated files are strictly newer.
288724047306Smrgam_sleep_pid=
28887015785aSmrgif test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
28897015785aSmrgthen :
28907015785aSmrg
28917015785aSmrgelse case e in #(
28927015785aSmrg  e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
289324047306Smrg  am_sleep_pid=$!
28947015785aSmrg ;;
28957015785aSmrgesac
289624047306Smrgfi
289724047306Smrg
289824047306Smrgrm -f conftest.file
289924047306Smrg
290014c0a534Smrgtest "$program_prefix" != NONE &&
2901bf2eeab3Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
290214c0a534Smrg# Use a double $ so make ignores it.
290314c0a534Smrgtest "$program_suffix" != NONE &&
2904bf2eeab3Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2905bf2eeab3Smrg# Double any \ or $.
29067015785aSmrg# By default was 's,x,x', remove it if useless.
2907bf2eeab3Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2908bdc460c5Smrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2909bdc460c5Smrg
291014c0a534Smrg
291124047306Smrg# Expand $ac_aux_dir to an absolute path.
291224047306Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
291314c0a534Smrg
2914bdc460c5Smrg
2915bdc460c5Smrg  if test x"${MISSING+set}" != xset; then
2916bdc460c5Smrg  MISSING="\${SHELL} '$am_aux_dir/missing'"
2917bf2eeab3Smrgfi
291814c0a534Smrg# Use eval to expand $SHELL
291924047306Smrgif eval "$MISSING --is-lightweight"; then
292024047306Smrg  am_missing_run="$MISSING "
292114c0a534Smrgelse
292214c0a534Smrg  am_missing_run=
2923bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2924bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2925bf2eeab3Smrgfi
2926bf2eeab3Smrg
292724047306Smrgif test x"${install_sh+set}" != xset; then
2928bf2eeab3Smrg  case $am_aux_dir in
2929bf2eeab3Smrg  *\ * | *\	*)
2930bf2eeab3Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2931bf2eeab3Smrg  *)
2932bf2eeab3Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2933bf2eeab3Smrg  esac
2934bf2eeab3Smrgfi
2935bf2eeab3Smrg
293624047306Smrg# Installed binaries are usually stripped using 'strip' when the user
293724047306Smrg# run "make install-strip".  However 'strip' might not be the right
2938bf2eeab3Smrg# tool to use in cross-compilation environments, therefore Automake
293924047306Smrg# will honor the 'STRIP' environment variable to overrule this program.
2940bf2eeab3Smrgif test "$cross_compiling" != no; then
2941bf2eeab3Smrg  if test -n "$ac_tool_prefix"; then
2942bf2eeab3Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2943bf2eeab3Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2944bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; }
2946bdc460c5Smrgif test ${ac_cv_prog_STRIP+y}
2947bdc460c5Smrgthen :
2948bdc460c5Smrg  printf %s "(cached) " >&6
29497015785aSmrgelse case e in #(
29507015785aSmrg  e) if test -n "$STRIP"; then
2951bf2eeab3Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2952bf2eeab3Smrgelse
2953bf2eeab3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954bf2eeab3Smrgfor as_dir in $PATH
2955bf2eeab3Smrgdo
2956bf2eeab3Smrg  IFS=$as_save_IFS
2957bdc460c5Smrg  case $as_dir in #(((
2958bdc460c5Smrg    '') as_dir=./ ;;
2959bdc460c5Smrg    */) ;;
2960bdc460c5Smrg    *) as_dir=$as_dir/ ;;
2961bdc460c5Smrg  esac
2962576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2963bdc460c5Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2964bf2eeab3Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2965bdc460c5Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2966bf2eeab3Smrg    break 2
2967bf2eeab3Smrg  fi
2968bf2eeab3Smrgdone
2969576bae58Smrg  done
2970bf2eeab3SmrgIFS=$as_save_IFS
2971bf2eeab3Smrg
29727015785aSmrgfi ;;
29737015785aSmrgesac
2974bf2eeab3Smrgfi
2975bf2eeab3SmrgSTRIP=$ac_cv_prog_STRIP
2976bf2eeab3Smrgif test -n "$STRIP"; then
2977bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2978bdc460c5Smrgprintf "%s\n" "$STRIP" >&6; }
2979bf2eeab3Smrgelse
2980bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981bdc460c5Smrgprintf "%s\n" "no" >&6; }
2982bf2eeab3Smrgfi
2983bf2eeab3Smrg
2984bf2eeab3Smrg
2985bf2eeab3Smrgfi
2986bf2eeab3Smrgif test -z "$ac_cv_prog_STRIP"; then
2987bf2eeab3Smrg  ac_ct_STRIP=$STRIP
2988bf2eeab3Smrg  # Extract the first word of "strip", so it can be a program name with args.
2989bf2eeab3Smrgset dummy strip; ac_word=$2
2990bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; }
2992bdc460c5Smrgif test ${ac_cv_prog_ac_ct_STRIP+y}
2993bdc460c5Smrgthen :
2994bdc460c5Smrg  printf %s "(cached) " >&6
29957015785aSmrgelse case e in #(
29967015785aSmrg  e) if test -n "$ac_ct_STRIP"; then
2997bf2eeab3Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2998bf2eeab3Smrgelse
2999bf2eeab3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000bf2eeab3Smrgfor as_dir in $PATH
3001bf2eeab3Smrgdo
3002bf2eeab3Smrg  IFS=$as_save_IFS
3003bdc460c5Smrg  case $as_dir in #(((
3004bdc460c5Smrg    '') as_dir=./ ;;
3005bdc460c5Smrg    */) ;;
3006bdc460c5Smrg    *) as_dir=$as_dir/ ;;
3007bdc460c5Smrg  esac
3008576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3009bdc460c5Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3010bf2eeab3Smrg    ac_cv_prog_ac_ct_STRIP="strip"
3011bdc460c5Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3012bf2eeab3Smrg    break 2
3013bf2eeab3Smrg  fi
3014bf2eeab3Smrgdone
3015576bae58Smrg  done
3016bf2eeab3SmrgIFS=$as_save_IFS
3017bf2eeab3Smrg
30187015785aSmrgfi ;;
30197015785aSmrgesac
3020bf2eeab3Smrgfi
3021bf2eeab3Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3022bf2eeab3Smrgif test -n "$ac_ct_STRIP"; then
3023bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3024bdc460c5Smrgprintf "%s\n" "$ac_ct_STRIP" >&6; }
3025bf2eeab3Smrgelse
3026bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027bdc460c5Smrgprintf "%s\n" "no" >&6; }
3028bf2eeab3Smrgfi
3029bf2eeab3Smrg
3030bf2eeab3Smrg  if test "x$ac_ct_STRIP" = x; then
3031bf2eeab3Smrg    STRIP=":"
3032bf2eeab3Smrg  else
3033bf2eeab3Smrg    case $cross_compiling:$ac_tool_warned in
3034bf2eeab3Smrgyes:)
3035bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3036bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3037bf2eeab3Smrgac_tool_warned=yes ;;
3038bf2eeab3Smrgesac
3039bf2eeab3Smrg    STRIP=$ac_ct_STRIP
3040bf2eeab3Smrg  fi
3041bf2eeab3Smrgelse
3042bf2eeab3Smrg  STRIP="$ac_cv_prog_STRIP"
3043bf2eeab3Smrgfi
3044bf2eeab3Smrg
3045bf2eeab3Smrgfi
3046bf2eeab3SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3047bf2eeab3Smrg
3048bdc460c5Smrg
3049bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3050bdc460c5Smrgprintf %s "checking for a race-free mkdir -p... " >&6; }
3051bf2eeab3Smrgif test -z "$MKDIR_P"; then
3052bdc460c5Smrg  if test ${ac_cv_path_mkdir+y}
3053bdc460c5Smrgthen :
3054bdc460c5Smrg  printf %s "(cached) " >&6
30557015785aSmrgelse case e in #(
30567015785aSmrg  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057bf2eeab3Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3058bf2eeab3Smrgdo
3059bf2eeab3Smrg  IFS=$as_save_IFS
3060bdc460c5Smrg  case $as_dir in #(((
3061bdc460c5Smrg    '') as_dir=./ ;;
3062bdc460c5Smrg    */) ;;
3063bdc460c5Smrg    *) as_dir=$as_dir/ ;;
3064bdc460c5Smrg  esac
3065576bae58Smrg    for ac_prog in mkdir gmkdir; do
3066bf2eeab3Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
3067bdc460c5Smrg	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3068bdc460c5Smrg	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3069bdc460c5Smrg	     'mkdir ('*'coreutils) '* | \
30707015785aSmrg	     *'BusyBox '* | \
3071bf2eeab3Smrg	     'mkdir (fileutils) '4.1*)
3072bdc460c5Smrg	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3073bf2eeab3Smrg	       break 3;;
3074bf2eeab3Smrg	   esac
3075bf2eeab3Smrg	 done
3076bf2eeab3Smrg       done
3077576bae58Smrg  done
3078bf2eeab3SmrgIFS=$as_save_IFS
30797015785aSmrg ;;
30807015785aSmrgesac
3081bf2eeab3Smrgfi
3082bf2eeab3Smrg
3083576bae58Smrg  test -d ./--version && rmdir ./--version
3084bdc460c5Smrg  if test ${ac_cv_path_mkdir+y}; then
3085bf2eeab3Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
308614c0a534Smrg  else
30877015785aSmrg    # As a last resort, use plain mkdir -p,
30887015785aSmrg    # in the hope it doesn't have the bugs of ancient mkdir.
30897015785aSmrg    MKDIR_P='mkdir -p'
309014c0a534Smrg  fi
309114c0a534Smrgfi
3092bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3093bdc460c5Smrgprintf "%s\n" "$MKDIR_P" >&6; }
3094bf2eeab3Smrg
309514c0a534Smrgfor ac_prog in gawk mawk nawk awk
309614c0a534Smrgdo
309714c0a534Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
309814c0a534Smrgset dummy $ac_prog; ac_word=$2
3099bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; }
3101bdc460c5Smrgif test ${ac_cv_prog_AWK+y}
3102bdc460c5Smrgthen :
3103bdc460c5Smrg  printf %s "(cached) " >&6
31047015785aSmrgelse case e in #(
31057015785aSmrg  e) if test -n "$AWK"; then
310614c0a534Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
310714c0a534Smrgelse
310814c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
310914c0a534Smrgfor as_dir in $PATH
311014c0a534Smrgdo
311114c0a534Smrg  IFS=$as_save_IFS
3112bdc460c5Smrg  case $as_dir in #(((
3113bdc460c5Smrg    '') as_dir=./ ;;
3114bdc460c5Smrg    */) ;;
3115bdc460c5Smrg    *) as_dir=$as_dir/ ;;
3116bdc460c5Smrg  esac
3117576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3118bdc460c5Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
311914c0a534Smrg    ac_cv_prog_AWK="$ac_prog"
3120bdc460c5Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
312114c0a534Smrg    break 2
312214c0a534Smrg  fi
312314c0a534Smrgdone
3124576bae58Smrg  done
3125bf2eeab3SmrgIFS=$as_save_IFS
312614c0a534Smrg
31277015785aSmrgfi ;;
31287015785aSmrgesac
312914c0a534Smrgfi
313014c0a534SmrgAWK=$ac_cv_prog_AWK
313114c0a534Smrgif test -n "$AWK"; then
3132bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3133bdc460c5Smrgprintf "%s\n" "$AWK" >&6; }
313414c0a534Smrgelse
3135bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136bdc460c5Smrgprintf "%s\n" "no" >&6; }
313714c0a534Smrgfi
313814c0a534Smrg
3139bf2eeab3Smrg
314014c0a534Smrg  test -n "$AWK" && break
314114c0a534Smrgdone
314214c0a534Smrg
3143bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3144bdc460c5Smrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3145bf2eeab3Smrgset x ${MAKE-make}
3146bdc460c5Smrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3147bdc460c5Smrgif eval test \${ac_cv_prog_make_${ac_make}_set+y}
3148bdc460c5Smrgthen :
3149bdc460c5Smrg  printf %s "(cached) " >&6
31507015785aSmrgelse case e in #(
31517015785aSmrg  e) cat >conftest.make <<\_ACEOF
3152bf2eeab3SmrgSHELL = /bin/sh
315314c0a534Smrgall:
3154bf2eeab3Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
315514c0a534Smrg_ACEOF
3156576bae58Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3157bf2eeab3Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
3158bf2eeab3Smrg  *@@@%%%=?*=@@@%%%*)
3159bf2eeab3Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
3160bf2eeab3Smrg  *)
3161bf2eeab3Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
3162bf2eeab3Smrgesac
31637015785aSmrgrm -f conftest.make ;;
31647015785aSmrgesac
316514c0a534Smrgfi
3166bf2eeab3Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3167bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3168bdc460c5Smrgprintf "%s\n" "yes" >&6; }
316914c0a534Smrg  SET_MAKE=
317014c0a534Smrgelse
3171bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172bdc460c5Smrgprintf "%s\n" "no" >&6; }
317314c0a534Smrg  SET_MAKE="MAKE=${MAKE-make}"
317414c0a534Smrgfi
317514c0a534Smrg
317614c0a534Smrgrm -rf .tst 2>/dev/null
317714c0a534Smrgmkdir .tst 2>/dev/null
317814c0a534Smrgif test -d .tst; then
317914c0a534Smrg  am__leading_dot=.
318014c0a534Smrgelse
318114c0a534Smrg  am__leading_dot=_
318214c0a534Smrgfi
318314c0a534Smrgrmdir .tst 2>/dev/null
318414c0a534Smrg
31857015785aSmrgAM_DEFAULT_VERBOSITY=1
318624047306Smrg# Check whether --enable-silent-rules was given.
3187bdc460c5Smrgif test ${enable_silent_rules+y}
3188bdc460c5Smrgthen :
318924047306Smrg  enableval=$enable_silent_rules;
319024047306Smrgfi
319124047306Smrg
319224047306Smrgam_make=${MAKE-make}
3193bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3194bdc460c5Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
3195bdc460c5Smrgif test ${am_cv_make_support_nested_variables+y}
3196bdc460c5Smrgthen :
3197bdc460c5Smrg  printf %s "(cached) " >&6
31987015785aSmrgelse case e in #(
31997015785aSmrg  e) if printf "%s\n" 'TRUE=$(BAR$(V))
320024047306SmrgBAR0=false
320124047306SmrgBAR1=true
320224047306SmrgV=1
320324047306Smrgam__doit:
320424047306Smrg	@$(TRUE)
320524047306Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
320624047306Smrg  am_cv_make_support_nested_variables=yes
320724047306Smrgelse
320824047306Smrg  am_cv_make_support_nested_variables=no
32097015785aSmrgfi ;;
32107015785aSmrgesac
321124047306Smrgfi
3212bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3213bdc460c5Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
321424047306SmrgAM_BACKSLASH='\'
321524047306Smrg
32167015785aSmrgam__rm_f_notfound=
32177015785aSmrgif (rm -f && rm -fr && rm -rf) 2>/dev/null
32187015785aSmrgthen :
32197015785aSmrg
32207015785aSmrgelse case e in #(
32217015785aSmrg  e) am__rm_f_notfound='""' ;;
32227015785aSmrgesac
32237015785aSmrgfi
32247015785aSmrg
32257015785aSmrg
32267015785aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
32277015785aSmrgprintf %s "checking xargs -n works... " >&6; }
32287015785aSmrgif test ${am_cv_xargs_n_works+y}
32297015785aSmrgthen :
32307015785aSmrg  printf %s "(cached) " >&6
32317015785aSmrgelse case e in #(
32327015785aSmrg  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
32337015785aSmrg3"
32347015785aSmrgthen :
32357015785aSmrg  am_cv_xargs_n_works=yes
32367015785aSmrgelse case e in #(
32377015785aSmrg  e) am_cv_xargs_n_works=no ;;
32387015785aSmrgesac
32397015785aSmrgfi ;;
32407015785aSmrgesac
32417015785aSmrgfi
32427015785aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
32437015785aSmrgprintf "%s\n" "$am_cv_xargs_n_works" >&6; }
32447015785aSmrgif test "$am_cv_xargs_n_works" = yes
32457015785aSmrgthen :
32467015785aSmrg  am__xargs_n='xargs -n'
32477015785aSmrgelse case e in #(
32487015785aSmrg  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
32497015785aSmrg ;;
32507015785aSmrgesac
32517015785aSmrgfi
32527015785aSmrg
3253bf2eeab3Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
3254bf2eeab3Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3255bf2eeab3Smrg  # is not polluted with repeated "-I."
3256bf2eeab3Smrg  am__isrc=' -I$(srcdir)'
3257bf2eeab3Smrg  # test to see if srcdir already configured
3258bf2eeab3Smrg  if test -f $srcdir/config.status; then
3259576bae58Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3260bf2eeab3Smrg  fi
326114c0a534Smrgfi
326214c0a534Smrg
326314c0a534Smrg# test whether we have cygpath
326414c0a534Smrgif test -z "$CYGPATH_W"; then
326514c0a534Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
326614c0a534Smrg    CYGPATH_W='cygpath -w'
326714c0a534Smrg  else
326814c0a534Smrg    CYGPATH_W=echo
326914c0a534Smrg  fi
327014c0a534Smrgfi
327114c0a534Smrg
327214c0a534Smrg
327314c0a534Smrg# Define the identity of the package.
327414c0a534Smrg PACKAGE='smproxy'
32757015785aSmrg VERSION='1.0.8'
327614c0a534Smrg
327714c0a534Smrg
3278bdc460c5Smrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
327914c0a534Smrg
328014c0a534Smrg
3281bdc460c5Smrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
328214c0a534Smrg
328314c0a534Smrg# Some tools Automake needs.
328414c0a534Smrg
328514c0a534SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
328614c0a534Smrg
328714c0a534Smrg
328814c0a534SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
328914c0a534Smrg
329014c0a534Smrg
329114c0a534SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
329214c0a534Smrg
329314c0a534Smrg
329414c0a534SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
329514c0a534Smrg
329614c0a534Smrg
329714c0a534SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
329814c0a534Smrg
329924047306Smrg# For better backward compatibility.  To be removed once Automake 1.9.x
330024047306Smrg# dies out for good.  For more background, see:
3301bdc460c5Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3302bdc460c5Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
330324047306Smrgmkdir_p='$(MKDIR_P)'
330414c0a534Smrg
330524047306Smrg# We need awk for the "check" target (and possibly the TAP driver).  The
330624047306Smrg# system "awk" is bad on some platforms.
330724047306Smrg# Always define AMTAR for backward compatibility.  Yes, it's still used
330824047306Smrg# in the wild :-(  We should find a proper way to deprecate it ...
330924047306SmrgAMTAR='$${TAR-tar}'
331014c0a534Smrg
331114c0a534Smrg
331224047306Smrg# We'll loop over all known methods to create a tar archive until one works.
331324047306Smrg_am_tools='gnutar  pax cpio none'
331414c0a534Smrg
331524047306Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
331614c0a534Smrg
331714c0a534Smrg
3318bf2eeab3Smrg
3319bf2eeab3Smrg
3320bf2eeab3Smrg
3321bdc460c5Smrg# Variables for tags utilities; see am/tags.am
3322bdc460c5Smrgif test -z "$CTAGS"; then
3323bdc460c5Smrg  CTAGS=ctags
3324bdc460c5Smrgfi
3325bdc460c5Smrg
3326bdc460c5Smrgif test -z "$ETAGS"; then
3327bdc460c5Smrg  ETAGS=etags
3328bdc460c5Smrgfi
3329bdc460c5Smrg
3330bdc460c5Smrgif test -z "$CSCOPE"; then
3331bdc460c5Smrg  CSCOPE=cscope
3332bdc460c5Smrgfi
3333bdc460c5Smrg
3334bdc460c5Smrg
3335bf2eeab3Smrg
3336bf2eeab3Smrg
3337bf2eeab3Smrg
3338bf2eeab3Smrg
3339bf2eeab3Smrg
3340bf2eeab3Smrg
334124047306Smrg# Set common system defines for POSIX extensions, such as _GNU_SOURCE
334224047306Smrg# Must be called before any macros that run the compiler (like
334324047306Smrg# AC_PROG_LIBTOOL or XORG_DEFAULT_OPTIONS) to avoid autoconf errors.
3344bdc460c5Smrg
3345bdc460c5Smrg
3346bdc460c5Smrg
3347bdc460c5Smrg
3348bdc460c5Smrg
3349bdc460c5Smrg
3350bdc460c5Smrg
3351bdc460c5Smrg
3352bdc460c5Smrg
3353576bae58SmrgDEPDIR="${am__leading_dot}deps"
335414c0a534Smrg
3355576bae58Smrgac_config_commands="$ac_config_commands depfiles"
3356576bae58Smrg
3357bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3358bdc460c5Smrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3359bdc460c5Smrgcat > confinc.mk << 'END'
3360576bae58Smrgam__doit:
3361bdc460c5Smrg	@echo this is the am__doit target >confinc.out
3362576bae58Smrg.PHONY: am__doit
3363576bae58SmrgEND
3364576bae58Smrgam__include="#"
3365576bae58Smrgam__quote=
3366bdc460c5Smrg# BSD make does it like this.
3367bdc460c5Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD
3368bdc460c5Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3369bdc460c5Smrgecho 'include confinc.mk # ignored' > confmf.GNU
3370bdc460c5Smrg_am_result=no
3371bdc460c5Smrgfor s in GNU BSD; do
3372bdc460c5Smrg  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3373bdc460c5Smrg   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3374bdc460c5Smrg   ac_status=$?
3375bdc460c5Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376bdc460c5Smrg   (exit $ac_status); }
3377bdc460c5Smrg  case $?:`cat confinc.out 2>/dev/null` in #(
3378bdc460c5Smrg  '0:this is the am__doit target') :
3379bdc460c5Smrg    case $s in #(
3380bdc460c5Smrg  BSD) :
3381bdc460c5Smrg    am__include='.include' am__quote='"' ;; #(
3382bdc460c5Smrg  *) :
3383bdc460c5Smrg    am__include='include' am__quote='' ;;
3384bdc460c5Smrgesac ;; #(
3385bdc460c5Smrg  *) :
3386576bae58Smrg     ;;
3387bdc460c5Smrgesac
3388bdc460c5Smrg  if test "$am__include" != "#"; then
3389bdc460c5Smrg    _am_result="yes ($s style)"
3390bdc460c5Smrg    break
3391bdc460c5Smrg  fi
3392bdc460c5Smrgdone
3393bdc460c5Smrgrm -f confinc.* confmf.*
3394bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3395bdc460c5Smrgprintf "%s\n" "${_am_result}" >&6; }
3396576bae58Smrg
3397576bae58Smrg# Check whether --enable-dependency-tracking was given.
3398bdc460c5Smrgif test ${enable_dependency_tracking+y}
3399bdc460c5Smrgthen :
3400576bae58Smrg  enableval=$enable_dependency_tracking;
3401576bae58Smrgfi
3402576bae58Smrg
3403576bae58Smrgif test "x$enable_dependency_tracking" != xno; then
3404576bae58Smrg  am_depcomp="$ac_aux_dir/depcomp"
3405576bae58Smrg  AMDEPBACKSLASH='\'
340624047306Smrg  am__nodep='_no'
3407576bae58Smrgfi
3408576bae58Smrg if test "x$enable_dependency_tracking" != xno; then
3409576bae58Smrg  AMDEP_TRUE=
3410576bae58Smrg  AMDEP_FALSE='#'
3411576bae58Smrgelse
3412576bae58Smrg  AMDEP_TRUE='#'
3413576bae58Smrg  AMDEP_FALSE=
3414576bae58Smrgfi
3415576bae58Smrg
3416576bae58Smrg
3417576bae58Smrgac_ext=c
3418576bae58Smrgac_cpp='$CPP $CPPFLAGS'
3419576bae58Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420576bae58Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421576bae58Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3422576bae58Smrgif test -n "$ac_tool_prefix"; then
3423576bae58Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3424576bae58Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
3425bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; }
3427bdc460c5Smrgif test ${ac_cv_prog_CC+y}
3428bdc460c5Smrgthen :
3429bdc460c5Smrg  printf %s "(cached) " >&6
34307015785aSmrgelse case e in #(
34317015785aSmrg  e) if test -n "$CC"; then
3432576bae58Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3433576bae58Smrgelse
3434576bae58Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435576bae58Smrgfor as_dir in $PATH
3436576bae58Smrgdo
3437576bae58Smrg  IFS=$as_save_IFS
3438bdc460c5Smrg  case $as_dir in #(((
3439bdc460c5Smrg    '') as_dir=./ ;;
3440bdc460c5Smrg    */) ;;
3441bdc460c5Smrg    *) as_dir=$as_dir/ ;;
3442bdc460c5Smrg  esac
3443576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3444bdc460c5Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3445576bae58Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3446bdc460c5Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3447576bae58Smrg    break 2
3448576bae58Smrg  fi
3449576bae58Smrgdone
3450576bae58Smrg  done
3451576bae58SmrgIFS=$as_save_IFS
3452576bae58Smrg
34537015785aSmrgfi ;;
34547015785aSmrgesac
3455576bae58Smrgfi
3456576bae58SmrgCC=$ac_cv_prog_CC
3457576bae58Smrgif test -n "$CC"; then
3458bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3459bdc460c5Smrgprintf "%s\n" "$CC" >&6; }
3460576bae58Smrgelse
3461bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462bdc460c5Smrgprintf "%s\n" "no" >&6; }
3463576bae58Smrgfi
346414c0a534Smrg
3465bf2eeab3Smrg
346614c0a534Smrgfi
346714c0a534Smrgif test -z "$ac_cv_prog_CC"; then
346814c0a534Smrg  ac_ct_CC=$CC
346914c0a534Smrg  # Extract the first word of "gcc", so it can be a program name with args.
347014c0a534Smrgset dummy gcc; ac_word=$2
3471bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; }
3473bdc460c5Smrgif test ${ac_cv_prog_ac_ct_CC+y}
3474bdc460c5Smrgthen :
3475bdc460c5Smrg  printf %s "(cached) " >&6
34767015785aSmrgelse case e in #(
34777015785aSmrg  e) if test -n "$ac_ct_CC"; then
347814c0a534Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
347914c0a534Smrgelse
348014c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
348114c0a534Smrgfor as_dir in $PATH
348214c0a534Smrgdo
348314c0a534Smrg  IFS=$as_save_IFS
3484bdc460c5Smrg  case $as_dir in #(((
3485bdc460c5Smrg    '') as_dir=./ ;;
3486bdc460c5Smrg    */) ;;
3487bdc460c5Smrg    *) as_dir=$as_dir/ ;;
3488bdc460c5Smrg  esac
3489576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3490bdc460c5Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
349114c0a534Smrg    ac_cv_prog_ac_ct_CC="gcc"
3492bdc460c5Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
349314c0a534Smrg    break 2
349414c0a534Smrg  fi
349514c0a534Smrgdone
3496576bae58Smrg  done
3497bf2eeab3SmrgIFS=$as_save_IFS
349814c0a534Smrg
34997015785aSmrgfi ;;
35007015785aSmrgesac
350114c0a534Smrgfi
350214c0a534Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
350314c0a534Smrgif test -n "$ac_ct_CC"; then
3504bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3505bdc460c5Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
350614c0a534Smrgelse
3507bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508bdc460c5Smrgprintf "%s\n" "no" >&6; }
350914c0a534Smrgfi
351014c0a534Smrg
3511bf2eeab3Smrg  if test "x$ac_ct_CC" = x; then
3512bf2eeab3Smrg    CC=""
3513bf2eeab3Smrg  else
3514bf2eeab3Smrg    case $cross_compiling:$ac_tool_warned in
3515bf2eeab3Smrgyes:)
3516bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3517bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3518bf2eeab3Smrgac_tool_warned=yes ;;
3519bf2eeab3Smrgesac
3520bf2eeab3Smrg    CC=$ac_ct_CC
3521bf2eeab3Smrg  fi
352214c0a534Smrgelse
352314c0a534Smrg  CC="$ac_cv_prog_CC"
352414c0a534Smrgfi
352514c0a534Smrg
352614c0a534Smrgif test -z "$CC"; then
3527bf2eeab3Smrg          if test -n "$ac_tool_prefix"; then
3528bf2eeab3Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
352914c0a534Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
3530bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; }
3532bdc460c5Smrgif test ${ac_cv_prog_CC+y}
3533bdc460c5Smrgthen :
3534bdc460c5Smrg  printf %s "(cached) " >&6
35357015785aSmrgelse case e in #(
35367015785aSmrg  e) if test -n "$CC"; then
353714c0a534Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
353814c0a534Smrgelse
353914c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
354014c0a534Smrgfor as_dir in $PATH
354114c0a534Smrgdo
354214c0a534Smrg  IFS=$as_save_IFS
3543bdc460c5Smrg  case $as_dir in #(((
3544bdc460c5Smrg    '') as_dir=./ ;;
3545bdc460c5Smrg    */) ;;
3546bdc460c5Smrg    *) as_dir=$as_dir/ ;;
3547bdc460c5Smrg  esac
3548576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3549bdc460c5Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
355014c0a534Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
3551bdc460c5Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
355214c0a534Smrg    break 2
355314c0a534Smrg  fi
355414c0a534Smrgdone
3555576bae58Smrg  done
3556bf2eeab3SmrgIFS=$as_save_IFS
355714c0a534Smrg
35587015785aSmrgfi ;;
35597015785aSmrgesac
356014c0a534Smrgfi
356114c0a534SmrgCC=$ac_cv_prog_CC
356214c0a534Smrgif test -n "$CC"; then
3563bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3564bdc460c5Smrgprintf "%s\n" "$CC" >&6; }
356514c0a534Smrgelse
3566bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567bdc460c5Smrgprintf "%s\n" "no" >&6; }
356814c0a534Smrgfi
356914c0a534Smrg
357014c0a534Smrg
3571bf2eeab3Smrg  fi
357214c0a534Smrgfi
357314c0a534Smrgif test -z "$CC"; then
357414c0a534Smrg  # Extract the first word of "cc", so it can be a program name with args.
357514c0a534Smrgset dummy cc; ac_word=$2
3576bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; }
3578bdc460c5Smrgif test ${ac_cv_prog_CC+y}
3579bdc460c5Smrgthen :
3580bdc460c5Smrg  printf %s "(cached) " >&6
35817015785aSmrgelse case e in #(
35827015785aSmrg  e) if test -n "$CC"; then
358314c0a534Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
358414c0a534Smrgelse
358514c0a534Smrg  ac_prog_rejected=no
358614c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
358714c0a534Smrgfor as_dir in $PATH
358814c0a534Smrgdo
358914c0a534Smrg  IFS=$as_save_IFS
3590bdc460c5Smrg  case $as_dir in #(((
3591bdc460c5Smrg    '') as_dir=./ ;;
3592bdc460c5Smrg    */) ;;
3593bdc460c5Smrg    *) as_dir=$as_dir/ ;;
3594bdc460c5Smrg  esac
3595576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3596bdc460c5Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3597bdc460c5Smrg    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
359814c0a534Smrg       ac_prog_rejected=yes
359914c0a534Smrg       continue
360014c0a534Smrg     fi
360114c0a534Smrg    ac_cv_prog_CC="cc"
3602bdc460c5Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
360314c0a534Smrg    break 2
360414c0a534Smrg  fi
360514c0a534Smrgdone
3606576bae58Smrg  done
3607bf2eeab3SmrgIFS=$as_save_IFS
360814c0a534Smrg
360914c0a534Smrgif test $ac_prog_rejected = yes; then
361014c0a534Smrg  # We found a bogon in the path, so make sure we never use it.
361114c0a534Smrg  set dummy $ac_cv_prog_CC
361214c0a534Smrg  shift
361314c0a534Smrg  if test $# != 0; then
361414c0a534Smrg    # We chose a different compiler from the bogus one.
361514c0a534Smrg    # However, it has the same basename, so the bogon will be chosen
361614c0a534Smrg    # first if we set CC to just the basename; use the full file name.
361714c0a534Smrg    shift
3618bdc460c5Smrg    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
361914c0a534Smrg  fi
362014c0a534Smrgfi
36217015785aSmrgfi ;;
36227015785aSmrgesac
362314c0a534Smrgfi
362414c0a534SmrgCC=$ac_cv_prog_CC
362514c0a534Smrgif test -n "$CC"; then
3626bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3627bdc460c5Smrgprintf "%s\n" "$CC" >&6; }
362814c0a534Smrgelse
3629bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630bdc460c5Smrgprintf "%s\n" "no" >&6; }
363114c0a534Smrgfi
363214c0a534Smrg
3633bf2eeab3Smrg
363414c0a534Smrgfi
363514c0a534Smrgif test -z "$CC"; then
363614c0a534Smrg  if test -n "$ac_tool_prefix"; then
3637bf2eeab3Smrg  for ac_prog in cl.exe
363814c0a534Smrg  do
363914c0a534Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
364014c0a534Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3641bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; }
3643bdc460c5Smrgif test ${ac_cv_prog_CC+y}
3644bdc460c5Smrgthen :
3645bdc460c5Smrg  printf %s "(cached) " >&6
36467015785aSmrgelse case e in #(
36477015785aSmrg  e) if test -n "$CC"; then
364814c0a534Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
364914c0a534Smrgelse
365014c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
365114c0a534Smrgfor as_dir in $PATH
365214c0a534Smrgdo
365314c0a534Smrg  IFS=$as_save_IFS
3654bdc460c5Smrg  case $as_dir in #(((
3655bdc460c5Smrg    '') as_dir=./ ;;
3656bdc460c5Smrg    */) ;;
3657bdc460c5Smrg    *) as_dir=$as_dir/ ;;
3658bdc460c5Smrg  esac
3659576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3660bdc460c5Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
366114c0a534Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3662bdc460c5Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
366314c0a534Smrg    break 2
366414c0a534Smrg  fi
366514c0a534Smrgdone
3666576bae58Smrg  done
3667bf2eeab3SmrgIFS=$as_save_IFS
366814c0a534Smrg
36697015785aSmrgfi ;;
36707015785aSmrgesac
367114c0a534Smrgfi
367214c0a534SmrgCC=$ac_cv_prog_CC
367314c0a534Smrgif test -n "$CC"; then
3674bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675bdc460c5Smrgprintf "%s\n" "$CC" >&6; }
367614c0a534Smrgelse
3677bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678bdc460c5Smrgprintf "%s\n" "no" >&6; }
367914c0a534Smrgfi
368014c0a534Smrg
3681bf2eeab3Smrg
368214c0a534Smrg    test -n "$CC" && break
368314c0a534Smrg  done
368414c0a534Smrgfi
368514c0a534Smrgif test -z "$CC"; then
368614c0a534Smrg  ac_ct_CC=$CC
3687bf2eeab3Smrg  for ac_prog in cl.exe
368814c0a534Smrgdo
368914c0a534Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
369014c0a534Smrgset dummy $ac_prog; ac_word=$2
3691bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; }
3693bdc460c5Smrgif test ${ac_cv_prog_ac_ct_CC+y}
3694bdc460c5Smrgthen :
3695bdc460c5Smrg  printf %s "(cached) " >&6
36967015785aSmrgelse case e in #(
36977015785aSmrg  e) if test -n "$ac_ct_CC"; then
369814c0a534Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
369914c0a534Smrgelse
370014c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
370114c0a534Smrgfor as_dir in $PATH
370214c0a534Smrgdo
370314c0a534Smrg  IFS=$as_save_IFS
3704bdc460c5Smrg  case $as_dir in #(((
3705bdc460c5Smrg    '') as_dir=./ ;;
3706bdc460c5Smrg    */) ;;
3707bdc460c5Smrg    *) as_dir=$as_dir/ ;;
3708bdc460c5Smrg  esac
3709576bae58Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3710bdc460c5Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
371114c0a534Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3712bdc460c5Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
371314c0a534Smrg    break 2
371414c0a534Smrg  fi
371514c0a534Smrgdone
3716576bae58Smrg  done
3717bf2eeab3SmrgIFS=$as_save_IFS
371814c0a534Smrg
37197015785aSmrgfi ;;
37207015785aSmrgesac
372114c0a534Smrgfi
372214c0a534Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
372314c0a534Smrgif test -n "$ac_ct_CC"; then
3724bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3725bdc460c5Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
372614c0a534Smrgelse
3727bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728bdc460c5Smrgprintf "%s\n" "no" >&6; }
372914c0a534Smrgfi
373014c0a534Smrg
3731bf2eeab3Smrg
373214c0a534Smrg  test -n "$ac_ct_CC" && break
373314c0a534Smrgdone
373414c0a534Smrg
3735bf2eeab3Smrg  if test "x$ac_ct_CC" = x; then
3736bf2eeab3Smrg    CC=""
3737bf2eeab3Smrg  else
3738bf2eeab3Smrg    case $cross_compiling:$ac_tool_warned in
3739bf2eeab3Smrgyes:)
3740bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3741bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3742bdc460c5Smrgac_tool_warned=yes ;;
3743bdc460c5Smrgesac
3744bdc460c5Smrg    CC=$ac_ct_CC
3745bdc460c5Smrg  fi
3746bdc460c5Smrgfi
3747bdc460c5Smrg
3748bdc460c5Smrgfi
3749bdc460c5Smrgif test -z "$CC"; then
3750bdc460c5Smrg  if test -n "$ac_tool_prefix"; then
3751bdc460c5Smrg  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3752bdc460c5Smrgset dummy ${ac_tool_prefix}clang; ac_word=$2
3753bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; }
3755bdc460c5Smrgif test ${ac_cv_prog_CC+y}
3756bdc460c5Smrgthen :
3757bdc460c5Smrg  printf %s "(cached) " >&6
37587015785aSmrgelse case e in #(
37597015785aSmrg  e) if test -n "$CC"; then
3760bdc460c5Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3761bdc460c5Smrgelse
3762bdc460c5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763bdc460c5Smrgfor as_dir in $PATH
3764bdc460c5Smrgdo
3765bdc460c5Smrg  IFS=$as_save_IFS
3766bdc460c5Smrg  case $as_dir in #(((
3767bdc460c5Smrg    '') as_dir=./ ;;
3768bdc460c5Smrg    */) ;;
3769bdc460c5Smrg    *) as_dir=$as_dir/ ;;
3770bdc460c5Smrg  esac
3771bdc460c5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3772bdc460c5Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3773bdc460c5Smrg    ac_cv_prog_CC="${ac_tool_prefix}clang"
3774bdc460c5Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3775bdc460c5Smrg    break 2
3776bdc460c5Smrg  fi
3777bdc460c5Smrgdone
3778bdc460c5Smrg  done
3779bdc460c5SmrgIFS=$as_save_IFS
3780bdc460c5Smrg
37817015785aSmrgfi ;;
37827015785aSmrgesac
3783bdc460c5Smrgfi
3784bdc460c5SmrgCC=$ac_cv_prog_CC
3785bdc460c5Smrgif test -n "$CC"; then
3786bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3787bdc460c5Smrgprintf "%s\n" "$CC" >&6; }
3788bdc460c5Smrgelse
3789bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790bdc460c5Smrgprintf "%s\n" "no" >&6; }
3791bdc460c5Smrgfi
3792bdc460c5Smrg
3793bdc460c5Smrg
3794bdc460c5Smrgfi
3795bdc460c5Smrgif test -z "$ac_cv_prog_CC"; then
3796bdc460c5Smrg  ac_ct_CC=$CC
3797bdc460c5Smrg  # Extract the first word of "clang", so it can be a program name with args.
3798bdc460c5Smrgset dummy clang; ac_word=$2
3799bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; }
3801bdc460c5Smrgif test ${ac_cv_prog_ac_ct_CC+y}
3802bdc460c5Smrgthen :
3803bdc460c5Smrg  printf %s "(cached) " >&6
38047015785aSmrgelse case e in #(
38057015785aSmrg  e) if test -n "$ac_ct_CC"; then
3806bdc460c5Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3807bdc460c5Smrgelse
3808bdc460c5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809bdc460c5Smrgfor as_dir in $PATH
3810bdc460c5Smrgdo
3811bdc460c5Smrg  IFS=$as_save_IFS
3812bdc460c5Smrg  case $as_dir in #(((
3813bdc460c5Smrg    '') as_dir=./ ;;
3814bdc460c5Smrg    */) ;;
3815bdc460c5Smrg    *) as_dir=$as_dir/ ;;
3816bdc460c5Smrg  esac
3817bdc460c5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3818bdc460c5Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3819bdc460c5Smrg    ac_cv_prog_ac_ct_CC="clang"
3820bdc460c5Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3821bdc460c5Smrg    break 2
3822bdc460c5Smrg  fi
3823bdc460c5Smrgdone
3824bdc460c5Smrg  done
3825bdc460c5SmrgIFS=$as_save_IFS
3826bdc460c5Smrg
38277015785aSmrgfi ;;
38287015785aSmrgesac
3829bdc460c5Smrgfi
3830bdc460c5Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3831bdc460c5Smrgif test -n "$ac_ct_CC"; then
3832bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3833bdc460c5Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
3834bdc460c5Smrgelse
3835bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836bdc460c5Smrgprintf "%s\n" "no" >&6; }
3837bdc460c5Smrgfi
3838bdc460c5Smrg
3839bdc460c5Smrg  if test "x$ac_ct_CC" = x; then
3840bdc460c5Smrg    CC=""
3841bdc460c5Smrg  else
3842bdc460c5Smrg    case $cross_compiling:$ac_tool_warned in
3843bdc460c5Smrgyes:)
3844bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3845bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3846bf2eeab3Smrgac_tool_warned=yes ;;
3847bf2eeab3Smrgesac
3848bf2eeab3Smrg    CC=$ac_ct_CC
3849bf2eeab3Smrg  fi
3850bdc460c5Smrgelse
3851bdc460c5Smrg  CC="$ac_cv_prog_CC"
385214c0a534Smrgfi
385314c0a534Smrg
385414c0a534Smrgfi
385514c0a534Smrg
385614c0a534Smrg
38577015785aSmrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
38587015785aSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3859576bae58Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
38607015785aSmrgSee 'config.log' for more details" "$LINENO" 5; }
386114c0a534Smrg
386214c0a534Smrg# Provide some information about the compiler.
3863bdc460c5Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3864bf2eeab3Smrgset X $ac_compile
3865bf2eeab3Smrgac_compiler=$2
3866bdc460c5Smrgfor ac_option in --version -v -V -qversion -version; do
3867576bae58Smrg  { { ac_try="$ac_compiler $ac_option >&5"
3868bf2eeab3Smrgcase "(($ac_try" in
3869bf2eeab3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870bf2eeab3Smrg  *) ac_try_echo=$ac_try;;
3871bf2eeab3Smrgesac
3872576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873bdc460c5Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3874576bae58Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
387514c0a534Smrg  ac_status=$?
3876576bae58Smrg  if test -s conftest.err; then
3877576bae58Smrg    sed '10a\
3878576bae58Smrg... rest of stderr output deleted ...
3879576bae58Smrg         10q' conftest.err >conftest.er1
3880576bae58Smrg    cat conftest.er1 >&5
3881576bae58Smrg  fi
3882576bae58Smrg  rm -f conftest.er1 conftest.err
3883bdc460c5Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884576bae58Smrg  test $ac_status = 0; }
3885576bae58Smrgdone
388614c0a534Smrg
3887576bae58Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
388814c0a534Smrg/* end confdefs.h.  */
388914c0a534Smrg
389014c0a534Smrgint
3891bdc460c5Smrgmain (void)
389214c0a534Smrg{
389314c0a534Smrg
389414c0a534Smrg  ;
389514c0a534Smrg  return 0;
389614c0a534Smrg}
389714c0a534Smrg_ACEOF
389814c0a534Smrgac_clean_files_save=$ac_clean_files
3899bf2eeab3Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
390014c0a534Smrg# Try to create an executable without -o first, disregard a.out.
390114c0a534Smrg# It will help us diagnose broken compilers, and finding out an intuition
390214c0a534Smrg# of exeext.
3903bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3904bdc460c5Smrgprintf %s "checking whether the C compiler works... " >&6; }
3905bdc460c5Smrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3906bf2eeab3Smrg
3907bf2eeab3Smrg# The possible output files:
3908bf2eeab3Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3909bf2eeab3Smrg
3910bf2eeab3Smrgac_rmfiles=
3911bf2eeab3Smrgfor ac_file in $ac_files
3912bf2eeab3Smrgdo
3913bf2eeab3Smrg  case $ac_file in
3914bf2eeab3Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3915bf2eeab3Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3916bf2eeab3Smrg  esac
3917bf2eeab3Smrgdone
3918bf2eeab3Smrgrm -f $ac_rmfiles
3919bf2eeab3Smrg
3920576bae58Smrgif { { ac_try="$ac_link_default"
3921bf2eeab3Smrgcase "(($ac_try" in
3922bf2eeab3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923bf2eeab3Smrg  *) ac_try_echo=$ac_try;;
3924bf2eeab3Smrgesac
3925576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926bdc460c5Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3927bf2eeab3Smrg  (eval "$ac_link_default") 2>&5
392814c0a534Smrg  ac_status=$?
3929bdc460c5Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930bdc460c5Smrg  test $ac_status = 0; }
3931bdc460c5Smrgthen :
39327015785aSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
39337015785aSmrg# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3934bf2eeab3Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3935bf2eeab3Smrg# so that the user can short-circuit this test for compilers unknown to
3936bf2eeab3Smrg# Autoconf.
3937bf2eeab3Smrgfor ac_file in $ac_files ''
393814c0a534Smrgdo
393914c0a534Smrg  test -f "$ac_file" || continue
394014c0a534Smrg  case $ac_file in
3941bf2eeab3Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
394214c0a534Smrg	;;
394314c0a534Smrg    [ab].out )
394414c0a534Smrg	# We found the default executable, but exeext='' is most
394514c0a534Smrg	# certainly right.
394614c0a534Smrg	break;;
394714c0a534Smrg    *.* )
3948bdc460c5Smrg	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3949bf2eeab3Smrg	then :; else
3950bf2eeab3Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3951bf2eeab3Smrg	fi
3952bf2eeab3Smrg	# We set ac_cv_exeext here because the later test for it is not
39537015785aSmrg	# safe: cross compilers may not add the suffix if given an '-o'
3954bf2eeab3Smrg	# argument, so we may need to know it at that point already.
3955bf2eeab3Smrg	# Even if this section looks crufty: it has the advantage of
3956bf2eeab3Smrg	# actually working.
395714c0a534Smrg	break;;
395814c0a534Smrg    * )
395914c0a534Smrg	break;;
396014c0a534Smrg  esac
396114c0a534Smrgdone
3962bf2eeab3Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3963bf2eeab3Smrg
39647015785aSmrgelse case e in #(
39657015785aSmrg  e) ac_file='' ;;
39667015785aSmrgesac
3967bf2eeab3Smrgfi
3968bdc460c5Smrgif test -z "$ac_file"
3969bdc460c5Smrgthen :
3970bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971bdc460c5Smrgprintf "%s\n" "no" >&6; }
3972bdc460c5Smrgprintf "%s\n" "$as_me: failed program was:" >&5
397314c0a534Smrgsed 's/^/| /' conftest.$ac_ext >&5
397414c0a534Smrg
39757015785aSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
39767015785aSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3977576bae58Smrgas_fn_error 77 "C compiler cannot create executables
39787015785aSmrgSee 'config.log' for more details" "$LINENO" 5; }
39797015785aSmrgelse case e in #(
39807015785aSmrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39817015785aSmrgprintf "%s\n" "yes" >&6; } ;;
39827015785aSmrgesac
3983bdc460c5Smrgfi
3984bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3985bdc460c5Smrgprintf %s "checking for C compiler default output file name... " >&6; }
3986bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3987bdc460c5Smrgprintf "%s\n" "$ac_file" >&6; }
398814c0a534Smrgac_exeext=$ac_cv_exeext
398914c0a534Smrg
3990bf2eeab3Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
399114c0a534Smrgac_clean_files=$ac_clean_files_save
3992bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3993bdc460c5Smrgprintf %s "checking for suffix of executables... " >&6; }
3994576bae58Smrgif { { ac_try="$ac_link"
3995bf2eeab3Smrgcase "(($ac_try" in
3996bf2eeab3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997bf2eeab3Smrg  *) ac_try_echo=$ac_try;;
3998bf2eeab3Smrgesac
3999576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000bdc460c5Smrgprintf "%s\n" "$ac_try_echo"; } >&5
4001bf2eeab3Smrg  (eval "$ac_link") 2>&5
400214c0a534Smrg  ac_status=$?
4003bdc460c5Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004bdc460c5Smrg  test $ac_status = 0; }
4005bdc460c5Smrgthen :
40067015785aSmrg  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
40077015785aSmrg# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
40087015785aSmrg# work properly (i.e., refer to 'conftest.exe'), while it won't with
40097015785aSmrg# 'rm'.
401014c0a534Smrgfor ac_file in conftest.exe conftest conftest.*; do
401114c0a534Smrg  test -f "$ac_file" || continue
401214c0a534Smrg  case $ac_file in
4013bf2eeab3Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
401414c0a534Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
401514c0a534Smrg	  break;;
401614c0a534Smrg    * ) break;;
401714c0a534Smrg  esac
401814c0a534Smrgdone
40197015785aSmrgelse case e in #(
40207015785aSmrg  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
40217015785aSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4022576bae58Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
40237015785aSmrgSee 'config.log' for more details" "$LINENO" 5; } ;;
40247015785aSmrgesac
402514c0a534Smrgfi
4026576bae58Smrgrm -f conftest conftest$ac_cv_exeext
4027bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4028bdc460c5Smrgprintf "%s\n" "$ac_cv_exeext" >&6; }
402914c0a534Smrg
403014c0a534Smrgrm -f conftest.$ac_ext
403114c0a534SmrgEXEEXT=$ac_cv_exeext
403214c0a534Smrgac_exeext=$EXEEXT
4033576bae58Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034576bae58Smrg/* end confdefs.h.  */
4035576bae58Smrg#include <stdio.h>
4036576bae58Smrgint
4037bdc460c5Smrgmain (void)
4038576bae58Smrg{
4039576bae58SmrgFILE *f = fopen ("conftest.out", "w");
40407015785aSmrg if (!f)
40417015785aSmrg  return 1;
4042576bae58Smrg return ferror (f) || fclose (f) != 0;
4043576bae58Smrg
4044576bae58Smrg  ;
4045576bae58Smrg  return 0;
4046576bae58Smrg}
4047576bae58Smrg_ACEOF
4048576bae58Smrgac_clean_files="$ac_clean_files conftest.out"
4049576bae58Smrg# Check that the compiler produces executables we can run.  If not, either
4050576bae58Smrg# the compiler is broken, or we cross compile.
4051bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4052bdc460c5Smrgprintf %s "checking whether we are cross compiling... " >&6; }
4053576bae58Smrgif test "$cross_compiling" != yes; then
4054576bae58Smrg  { { ac_try="$ac_link"
4055576bae58Smrgcase "(($ac_try" in
4056576bae58Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057576bae58Smrg  *) ac_try_echo=$ac_try;;
4058576bae58Smrgesac
4059576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4060bdc460c5Smrgprintf "%s\n" "$ac_try_echo"; } >&5
4061576bae58Smrg  (eval "$ac_link") 2>&5
4062576bae58Smrg  ac_status=$?
4063bdc460c5Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064576bae58Smrg  test $ac_status = 0; }
4065576bae58Smrg  if { ac_try='./conftest$ac_cv_exeext'
4066576bae58Smrg  { { case "(($ac_try" in
4067576bae58Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068576bae58Smrg  *) ac_try_echo=$ac_try;;
4069576bae58Smrgesac
4070576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4071bdc460c5Smrgprintf "%s\n" "$ac_try_echo"; } >&5
4072576bae58Smrg  (eval "$ac_try") 2>&5
4073576bae58Smrg  ac_status=$?
4074bdc460c5Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4075576bae58Smrg  test $ac_status = 0; }; }; then
4076576bae58Smrg    cross_compiling=no
4077576bae58Smrg  else
4078576bae58Smrg    if test "$cross_compiling" = maybe; then
4079576bae58Smrg	cross_compiling=yes
4080576bae58Smrg    else
40817015785aSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
40827015785aSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4083bdc460c5Smrgas_fn_error 77 "cannot run C compiled programs.
40847015785aSmrgIf you meant to cross compile, use '--host'.
40857015785aSmrgSee 'config.log' for more details" "$LINENO" 5; }
4086576bae58Smrg    fi
4087576bae58Smrg  fi
4088576bae58Smrgfi
4089bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4090bdc460c5Smrgprintf "%s\n" "$cross_compiling" >&6; }
4091576bae58Smrg
40927015785aSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext \
40937015785aSmrg  conftest.o conftest.obj conftest.out
4094576bae58Smrgac_clean_files=$ac_clean_files_save
4095bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4096bdc460c5Smrgprintf %s "checking for suffix of object files... " >&6; }
4097bdc460c5Smrgif test ${ac_cv_objext+y}
4098bdc460c5Smrgthen :
4099bdc460c5Smrg  printf %s "(cached) " >&6
41007015785aSmrgelse case e in #(
41017015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
410214c0a534Smrg/* end confdefs.h.  */
410314c0a534Smrg
410414c0a534Smrgint
4105bdc460c5Smrgmain (void)
410614c0a534Smrg{
410714c0a534Smrg
410814c0a534Smrg  ;
410914c0a534Smrg  return 0;
411014c0a534Smrg}
411114c0a534Smrg_ACEOF
411214c0a534Smrgrm -f conftest.o conftest.obj
4113576bae58Smrgif { { ac_try="$ac_compile"
4114bf2eeab3Smrgcase "(($ac_try" in
4115bf2eeab3Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116bf2eeab3Smrg  *) ac_try_echo=$ac_try;;
4117bf2eeab3Smrgesac
4118576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4119bdc460c5Smrgprintf "%s\n" "$ac_try_echo"; } >&5
4120bf2eeab3Smrg  (eval "$ac_compile") 2>&5
412114c0a534Smrg  ac_status=$?
4122bdc460c5Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4123bdc460c5Smrg  test $ac_status = 0; }
4124bdc460c5Smrgthen :
4125bf2eeab3Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
4126bf2eeab3Smrg  test -f "$ac_file" || continue;
412714c0a534Smrg  case $ac_file in
4128bf2eeab3Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
412914c0a534Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
413014c0a534Smrg       break;;
413114c0a534Smrg  esac
413214c0a534Smrgdone
41337015785aSmrgelse case e in #(
41347015785aSmrg  e) printf "%s\n" "$as_me: failed program was:" >&5
413514c0a534Smrgsed 's/^/| /' conftest.$ac_ext >&5
413614c0a534Smrg
41377015785aSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
41387015785aSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4139576bae58Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
41407015785aSmrgSee 'config.log' for more details" "$LINENO" 5; } ;;
41417015785aSmrgesac
414214c0a534Smrgfi
41437015785aSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
41447015785aSmrgesac
414514c0a534Smrgfi
4146bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4147bdc460c5Smrgprintf "%s\n" "$ac_cv_objext" >&6; }
414814c0a534SmrgOBJEXT=$ac_cv_objext
414914c0a534Smrgac_objext=$OBJEXT
4150bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4151bdc460c5Smrgprintf %s "checking whether the compiler supports GNU C... " >&6; }
4152bdc460c5Smrgif test ${ac_cv_c_compiler_gnu+y}
4153bdc460c5Smrgthen :
4154bdc460c5Smrg  printf %s "(cached) " >&6
41557015785aSmrgelse case e in #(
41567015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
415714c0a534Smrg/* end confdefs.h.  */
415814c0a534Smrg
415914c0a534Smrgint
4160bdc460c5Smrgmain (void)
416114c0a534Smrg{
416214c0a534Smrg#ifndef __GNUC__
416314c0a534Smrg       choke me
416414c0a534Smrg#endif
416514c0a534Smrg
416614c0a534Smrg  ;
416714c0a534Smrg  return 0;
416814c0a534Smrg}
416914c0a534Smrg_ACEOF
4170bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
4171bdc460c5Smrgthen :
417214c0a534Smrg  ac_compiler_gnu=yes
41737015785aSmrgelse case e in #(
41747015785aSmrg  e) ac_compiler_gnu=no ;;
41757015785aSmrgesac
417614c0a534Smrgfi
4177bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
417814c0a534Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
41797015785aSmrg ;;
41807015785aSmrgesac
418114c0a534Smrgfi
4182bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4183bdc460c5Smrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4184bdc460c5Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4185bdc460c5Smrg
4186bf2eeab3Smrgif test $ac_compiler_gnu = yes; then
4187bf2eeab3Smrg  GCC=yes
4188bf2eeab3Smrgelse
4189bf2eeab3Smrg  GCC=
4190bf2eeab3Smrgfi
4191bdc460c5Smrgac_test_CFLAGS=${CFLAGS+y}
419214c0a534Smrgac_save_CFLAGS=$CFLAGS
4193bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4194bdc460c5Smrgprintf %s "checking whether $CC accepts -g... " >&6; }
4195bdc460c5Smrgif test ${ac_cv_prog_cc_g+y}
4196bdc460c5Smrgthen :
4197bdc460c5Smrg  printf %s "(cached) " >&6
41987015785aSmrgelse case e in #(
41997015785aSmrg  e) ac_save_c_werror_flag=$ac_c_werror_flag
4200bf2eeab3Smrg   ac_c_werror_flag=yes
4201bf2eeab3Smrg   ac_cv_prog_cc_g=no
4202bf2eeab3Smrg   CFLAGS="-g"
4203576bae58Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
420414c0a534Smrg/* end confdefs.h.  */
420514c0a534Smrg
420614c0a534Smrgint
4207bdc460c5Smrgmain (void)
420814c0a534Smrg{
420914c0a534Smrg
421014c0a534Smrg  ;
421114c0a534Smrg  return 0;
421214c0a534Smrg}
421314c0a534Smrg_ACEOF
4214bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
4215bdc460c5Smrgthen :
4216bf2eeab3Smrg  ac_cv_prog_cc_g=yes
42177015785aSmrgelse case e in #(
42187015785aSmrg  e) CFLAGS=""
4219576bae58Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220bf2eeab3Smrg/* end confdefs.h.  */
4221bf2eeab3Smrg
4222bf2eeab3Smrgint
4223bdc460c5Smrgmain (void)
4224bf2eeab3Smrg{
4225bf2eeab3Smrg
4226bf2eeab3Smrg  ;
4227bf2eeab3Smrg  return 0;
4228bf2eeab3Smrg}
4229bf2eeab3Smrg_ACEOF
4230bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
4231bdc460c5Smrgthen :
4232bf2eeab3Smrg
42337015785aSmrgelse case e in #(
42347015785aSmrg  e) ac_c_werror_flag=$ac_save_c_werror_flag
4235bf2eeab3Smrg	 CFLAGS="-g"
4236576bae58Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237bf2eeab3Smrg/* end confdefs.h.  */
4238bf2eeab3Smrg
4239bf2eeab3Smrgint
4240bdc460c5Smrgmain (void)
4241bf2eeab3Smrg{
4242bf2eeab3Smrg
4243bf2eeab3Smrg  ;
4244bf2eeab3Smrg  return 0;
4245bf2eeab3Smrg}
4246bf2eeab3Smrg_ACEOF
4247bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
4248bdc460c5Smrgthen :
424914c0a534Smrg  ac_cv_prog_cc_g=yes
4250bf2eeab3Smrgfi
42517015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
42527015785aSmrgesac
4253bf2eeab3Smrgfi
42547015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
42557015785aSmrgesac
425614c0a534Smrgfi
4257bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42587015785aSmrg   ac_c_werror_flag=$ac_save_c_werror_flag ;;
42597015785aSmrgesac
426014c0a534Smrgfi
4261bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4262bdc460c5Smrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4263bdc460c5Smrgif test $ac_test_CFLAGS; then
426414c0a534Smrg  CFLAGS=$ac_save_CFLAGS
426514c0a534Smrgelif test $ac_cv_prog_cc_g = yes; then
426614c0a534Smrg  if test "$GCC" = yes; then
426714c0a534Smrg    CFLAGS="-g -O2"
426814c0a534Smrg  else
426914c0a534Smrg    CFLAGS="-g"
427014c0a534Smrg  fi
427114c0a534Smrgelse
427214c0a534Smrg  if test "$GCC" = yes; then
427314c0a534Smrg    CFLAGS="-O2"
427414c0a534Smrg  else
427514c0a534Smrg    CFLAGS=
427614c0a534Smrg  fi
427714c0a534Smrgfi
4278bdc460c5Smrgac_prog_cc_stdc=no
4279bdc460c5Smrgif test x$ac_prog_cc_stdc = xno
4280bdc460c5Smrgthen :
4281bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4282bdc460c5Smrgprintf %s "checking for $CC option to enable C11 features... " >&6; }
4283bdc460c5Smrgif test ${ac_cv_prog_cc_c11+y}
4284bdc460c5Smrgthen :
4285bdc460c5Smrg  printf %s "(cached) " >&6
42867015785aSmrgelse case e in #(
42877015785aSmrg  e) ac_cv_prog_cc_c11=no
4288bdc460c5Smrgac_save_CC=$CC
4289bdc460c5Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290bdc460c5Smrg/* end confdefs.h.  */
4291bdc460c5Smrg$ac_c_conftest_c11_program
4292bdc460c5Smrg_ACEOF
4293bdc460c5Smrgfor ac_arg in '' -std=gnu11
4294bdc460c5Smrgdo
4295bdc460c5Smrg  CC="$ac_save_CC $ac_arg"
4296bdc460c5Smrg  if ac_fn_c_try_compile "$LINENO"
4297bdc460c5Smrgthen :
4298bdc460c5Smrg  ac_cv_prog_cc_c11=$ac_arg
4299bdc460c5Smrgfi
4300bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4301bdc460c5Smrg  test "x$ac_cv_prog_cc_c11" != "xno" && break
4302bdc460c5Smrgdone
4303bdc460c5Smrgrm -f conftest.$ac_ext
43047015785aSmrgCC=$ac_save_CC ;;
43057015785aSmrgesac
4306bdc460c5Smrgfi
4307bdc460c5Smrg
4308bdc460c5Smrgif test "x$ac_cv_prog_cc_c11" = xno
4309bdc460c5Smrgthen :
4310bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4311bdc460c5Smrgprintf "%s\n" "unsupported" >&6; }
43127015785aSmrgelse case e in #(
43137015785aSmrg  e) if test "x$ac_cv_prog_cc_c11" = x
4314bdc460c5Smrgthen :
4315bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4316bdc460c5Smrgprintf "%s\n" "none needed" >&6; }
43177015785aSmrgelse case e in #(
43187015785aSmrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4319bdc460c5Smrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
43207015785aSmrg     CC="$CC $ac_cv_prog_cc_c11" ;;
43217015785aSmrgesac
4322bdc460c5Smrgfi
4323bdc460c5Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
43247015785aSmrg  ac_prog_cc_stdc=c11 ;;
43257015785aSmrgesac
4326bdc460c5Smrgfi
4327bdc460c5Smrgfi
4328bdc460c5Smrgif test x$ac_prog_cc_stdc = xno
4329bdc460c5Smrgthen :
4330bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4331bdc460c5Smrgprintf %s "checking for $CC option to enable C99 features... " >&6; }
4332bdc460c5Smrgif test ${ac_cv_prog_cc_c99+y}
4333bdc460c5Smrgthen :
4334bdc460c5Smrg  printf %s "(cached) " >&6
43357015785aSmrgelse case e in #(
43367015785aSmrg  e) ac_cv_prog_cc_c99=no
4337bdc460c5Smrgac_save_CC=$CC
4338bdc460c5Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339bdc460c5Smrg/* end confdefs.h.  */
4340bdc460c5Smrg$ac_c_conftest_c99_program
4341bdc460c5Smrg_ACEOF
4342bdc460c5Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4343bdc460c5Smrgdo
4344bdc460c5Smrg  CC="$ac_save_CC $ac_arg"
4345bdc460c5Smrg  if ac_fn_c_try_compile "$LINENO"
4346bdc460c5Smrgthen :
4347bdc460c5Smrg  ac_cv_prog_cc_c99=$ac_arg
4348bdc460c5Smrgfi
4349bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4350bdc460c5Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
4351bdc460c5Smrgdone
4352bdc460c5Smrgrm -f conftest.$ac_ext
43537015785aSmrgCC=$ac_save_CC ;;
43547015785aSmrgesac
4355bdc460c5Smrgfi
4356bdc460c5Smrg
4357bdc460c5Smrgif test "x$ac_cv_prog_cc_c99" = xno
4358bdc460c5Smrgthen :
4359bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4360bdc460c5Smrgprintf "%s\n" "unsupported" >&6; }
43617015785aSmrgelse case e in #(
43627015785aSmrg  e) if test "x$ac_cv_prog_cc_c99" = x
4363bdc460c5Smrgthen :
4364bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4365bdc460c5Smrgprintf "%s\n" "none needed" >&6; }
43667015785aSmrgelse case e in #(
43677015785aSmrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4368bdc460c5Smrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
43697015785aSmrg     CC="$CC $ac_cv_prog_cc_c99" ;;
43707015785aSmrgesac
4371bdc460c5Smrgfi
4372bdc460c5Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
43737015785aSmrg  ac_prog_cc_stdc=c99 ;;
43747015785aSmrgesac
4375bdc460c5Smrgfi
4376bdc460c5Smrgfi
4377bdc460c5Smrgif test x$ac_prog_cc_stdc = xno
4378bdc460c5Smrgthen :
4379bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4380bdc460c5Smrgprintf %s "checking for $CC option to enable C89 features... " >&6; }
4381bdc460c5Smrgif test ${ac_cv_prog_cc_c89+y}
4382bdc460c5Smrgthen :
4383bdc460c5Smrg  printf %s "(cached) " >&6
43847015785aSmrgelse case e in #(
43857015785aSmrg  e) ac_cv_prog_cc_c89=no
438614c0a534Smrgac_save_CC=$CC
4387576bae58Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
438814c0a534Smrg/* end confdefs.h.  */
4389bdc460c5Smrg$ac_c_conftest_c89_program
439014c0a534Smrg_ACEOF
4391bdc460c5Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
439214c0a534Smrgdo
439314c0a534Smrg  CC="$ac_save_CC $ac_arg"
4394bdc460c5Smrg  if ac_fn_c_try_compile "$LINENO"
4395bdc460c5Smrgthen :
4396bf2eeab3Smrg  ac_cv_prog_cc_c89=$ac_arg
439714c0a534Smrgfi
4398bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4399bf2eeab3Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
440014c0a534Smrgdone
4401bf2eeab3Smrgrm -f conftest.$ac_ext
44027015785aSmrgCC=$ac_save_CC ;;
44037015785aSmrgesac
440414c0a534Smrgfi
440514c0a534Smrg
4406bdc460c5Smrgif test "x$ac_cv_prog_cc_c89" = xno
4407bdc460c5Smrgthen :
4408bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4409bdc460c5Smrgprintf "%s\n" "unsupported" >&6; }
44107015785aSmrgelse case e in #(
44117015785aSmrg  e) if test "x$ac_cv_prog_cc_c89" = x
4412bdc460c5Smrgthen :
4413bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4414bdc460c5Smrgprintf "%s\n" "none needed" >&6; }
44157015785aSmrgelse case e in #(
44167015785aSmrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4417bdc460c5Smrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
44187015785aSmrg     CC="$CC $ac_cv_prog_cc_c89" ;;
44197015785aSmrgesac
4420bdc460c5Smrgfi
4421bdc460c5Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
44227015785aSmrg  ac_prog_cc_stdc=c89 ;;
44237015785aSmrgesac
4424bdc460c5Smrgfi
4425576bae58Smrgfi
442614c0a534Smrg
442714c0a534Smrgac_ext=c
442814c0a534Smrgac_cpp='$CPP $CPPFLAGS'
442914c0a534Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
443014c0a534Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
443114c0a534Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
443214c0a534Smrg
4433bdc460c5Smrg
4434bdc460c5Smrg  ac_ext=c
443524047306Smrgac_cpp='$CPP $CPPFLAGS'
443624047306Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
443724047306Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
443824047306Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4439bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4440bdc460c5Smrgprintf %s "checking whether $CC understands -c and -o together... " >&6; }
4441bdc460c5Smrgif test ${am_cv_prog_cc_c_o+y}
4442bdc460c5Smrgthen :
4443bdc460c5Smrg  printf %s "(cached) " >&6
44447015785aSmrgelse case e in #(
44457015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
444624047306Smrg/* end confdefs.h.  */
444724047306Smrg
444824047306Smrgint
4449bdc460c5Smrgmain (void)
445024047306Smrg{
445124047306Smrg
445224047306Smrg  ;
445324047306Smrg  return 0;
445424047306Smrg}
445524047306Smrg_ACEOF
445624047306Smrg  # Make sure it works both with $CC and with simple cc.
445724047306Smrg  # Following AC_PROG_CC_C_O, we do the test twice because some
445824047306Smrg  # compilers refuse to overwrite an existing .o file with -o,
445924047306Smrg  # though they will create one.
446024047306Smrg  am_cv_prog_cc_c_o=yes
446124047306Smrg  for am_i in 1 2; do
446224047306Smrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
446324047306Smrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
446424047306Smrg   ac_status=$?
446524047306Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
446624047306Smrg   (exit $ac_status); } \
446724047306Smrg         && test -f conftest2.$ac_objext; then
446824047306Smrg      : OK
446924047306Smrg    else
447024047306Smrg      am_cv_prog_cc_c_o=no
447124047306Smrg      break
447224047306Smrg    fi
447324047306Smrg  done
447424047306Smrg  rm -f core conftest*
44757015785aSmrg  unset am_i ;;
44767015785aSmrgesac
447724047306Smrgfi
4478bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4479bdc460c5Smrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
448024047306Smrgif test "$am_cv_prog_cc_c_o" != yes; then
448124047306Smrg   # Losing compiler, so override with the script.
448224047306Smrg   # FIXME: It is wrong to rewrite CC.
448324047306Smrg   # But if we don't then we get into trouble of one sort or another.
448424047306Smrg   # A longer-term fix would be to have automake use am__CC in this case,
448524047306Smrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
448624047306Smrg   CC="$am_aux_dir/compile $CC"
448724047306Smrgfi
448824047306Smrgac_ext=c
448924047306Smrgac_cpp='$CPP $CPPFLAGS'
449024047306Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
449124047306Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
449224047306Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
449324047306Smrg
449424047306Smrg
449514c0a534Smrgdepcc="$CC"   am_compiler_list=
449614c0a534Smrg
4497bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4498bdc460c5Smrgprintf %s "checking dependency style of $depcc... " >&6; }
4499bdc460c5Smrgif test ${am_cv_CC_dependencies_compiler_type+y}
4500bdc460c5Smrgthen :
4501bdc460c5Smrg  printf %s "(cached) " >&6
45027015785aSmrgelse case e in #(
45037015785aSmrg  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
450414c0a534Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
450514c0a534Smrg  # making bogus files that we don't know about and never remove.  For
450614c0a534Smrg  # instance it was reported that on HP-UX the gcc test will end up
450724047306Smrg  # making a dummy file named 'D' -- because '-MD' means "put the output
450824047306Smrg  # in D".
450924047306Smrg  rm -rf conftest.dir
451014c0a534Smrg  mkdir conftest.dir
451114c0a534Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
451214c0a534Smrg  # using a relative directory.
451314c0a534Smrg  cp "$am_depcomp" conftest.dir
451414c0a534Smrg  cd conftest.dir
451514c0a534Smrg  # We will build objects and dependencies in a subdirectory because
451614c0a534Smrg  # it helps to detect inapplicable dependency modes.  For instance
451714c0a534Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
451814c0a534Smrg  # side effect of compilation, but ICC will put the dependencies in
451914c0a534Smrg  # the current directory while Tru64 will put them in the object
452014c0a534Smrg  # directory.
452114c0a534Smrg  mkdir sub
452214c0a534Smrg
452314c0a534Smrg  am_cv_CC_dependencies_compiler_type=none
452414c0a534Smrg  if test "$am_compiler_list" = ""; then
452514c0a534Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
452614c0a534Smrg  fi
4527bf2eeab3Smrg  am__universal=false
4528bf2eeab3Smrg  case " $depcc " in #(
4529bf2eeab3Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4530bf2eeab3Smrg     esac
4531bf2eeab3Smrg
453214c0a534Smrg  for depmode in $am_compiler_list; do
453314c0a534Smrg    # Setup a source with many dependencies, because some compilers
453414c0a534Smrg    # like to wrap large dependency lists on column 80 (with \), and
453514c0a534Smrg    # we should not choose a depcomp mode which is confused by this.
453614c0a534Smrg    #
453714c0a534Smrg    # We need to recreate these files for each test, as the compiler may
453814c0a534Smrg    # overwrite some of them when testing with obscure command lines.
453914c0a534Smrg    # This happens at least with the AIX C compiler.
454014c0a534Smrg    : > sub/conftest.c
454114c0a534Smrg    for i in 1 2 3 4 5 6; do
454214c0a534Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
454324047306Smrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
454424047306Smrg      # Solaris 10 /bin/sh.
454524047306Smrg      echo '/* dummy */' > sub/conftst$i.h
454614c0a534Smrg    done
454714c0a534Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
454814c0a534Smrg
454924047306Smrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4550bf2eeab3Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
455124047306Smrg    # handle '-M -o', and we need to detect this.  Also, some Intel
455224047306Smrg    # versions had trouble with output in subdirs.
4553bf2eeab3Smrg    am__obj=sub/conftest.${OBJEXT-o}
4554bf2eeab3Smrg    am__minus_obj="-o $am__obj"
455514c0a534Smrg    case $depmode in
4556bf2eeab3Smrg    gcc)
4557bf2eeab3Smrg      # This depmode causes a compiler race in universal mode.
4558bf2eeab3Smrg      test "$am__universal" = false || continue
4559bf2eeab3Smrg      ;;
456014c0a534Smrg    nosideeffect)
456124047306Smrg      # After this tag, mechanisms are not by side-effect, so they'll
456224047306Smrg      # only be used when explicitly requested.
456314c0a534Smrg      if test "x$enable_dependency_tracking" = xyes; then
456414c0a534Smrg	continue
456514c0a534Smrg      else
456614c0a534Smrg	break
456714c0a534Smrg      fi
456814c0a534Smrg      ;;
456924047306Smrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
457024047306Smrg      # This compiler won't grok '-c -o', but also, the minuso test has
4571bf2eeab3Smrg      # not run yet.  These depmodes are late enough in the game, and
4572bf2eeab3Smrg      # so weak that their functioning should not be impacted.
4573bf2eeab3Smrg      am__obj=conftest.${OBJEXT-o}
4574bf2eeab3Smrg      am__minus_obj=
4575bf2eeab3Smrg      ;;
457614c0a534Smrg    none) break ;;
457714c0a534Smrg    esac
457814c0a534Smrg    if depmode=$depmode \
4579bf2eeab3Smrg       source=sub/conftest.c object=$am__obj \
458014c0a534Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4581bf2eeab3Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
458214c0a534Smrg         >/dev/null 2>conftest.err &&
4583bf2eeab3Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
458414c0a534Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4585bf2eeab3Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
458614c0a534Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
458714c0a534Smrg      # icc doesn't choke on unknown options, it will just issue warnings
458814c0a534Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
458914c0a534Smrg      # that says an option was ignored or not supported.
45907015785aSmrg      # When given -MP, icc 7.0 and 7.1 complain thus:
459114c0a534Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
459214c0a534Smrg      # The diagnosis changed in icc 8.0:
459314c0a534Smrg      #   icc: Command line remark: option '-MP' not supported
459414c0a534Smrg      if (grep 'ignoring option' conftest.err ||
459514c0a534Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
459614c0a534Smrg        am_cv_CC_dependencies_compiler_type=$depmode
459714c0a534Smrg        break
459814c0a534Smrg      fi
459914c0a534Smrg    fi
460014c0a534Smrg  done
460114c0a534Smrg
460214c0a534Smrg  cd ..
460314c0a534Smrg  rm -rf conftest.dir
460414c0a534Smrgelse
460514c0a534Smrg  am_cv_CC_dependencies_compiler_type=none
460614c0a534Smrgfi
46077015785aSmrg ;;
46087015785aSmrgesac
460914c0a534Smrgfi
4610bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4611bdc460c5Smrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
461214c0a534SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
461314c0a534Smrg
4614bf2eeab3Smrg if
461514c0a534Smrg  test "x$enable_dependency_tracking" != xno \
461614c0a534Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
461714c0a534Smrg  am__fastdepCC_TRUE=
461814c0a534Smrg  am__fastdepCC_FALSE='#'
461914c0a534Smrgelse
462014c0a534Smrg  am__fastdepCC_TRUE='#'
462114c0a534Smrg  am__fastdepCC_FALSE=
462214c0a534Smrgfi
462314c0a534Smrg
462414c0a534Smrg
4625576bae58Smrg
4626bdc460c5Smrgac_header= ac_cache=
4627bdc460c5Smrgfor ac_item in $ac_header_c_list
4628576bae58Smrgdo
4629bdc460c5Smrg  if test $ac_cache; then
4630bdc460c5Smrg    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4631bdc460c5Smrg    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4632bdc460c5Smrg      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4633bdc460c5Smrg    fi
4634bdc460c5Smrg    ac_header= ac_cache=
4635bdc460c5Smrg  elif test $ac_header; then
4636bdc460c5Smrg    ac_cache=$ac_item
4637bdc460c5Smrg  else
4638bdc460c5Smrg    ac_header=$ac_item
4639bdc460c5Smrg  fi
4640bf2eeab3Smrgdone
4641bf2eeab3Smrg
4642bf2eeab3Smrg
4643bf2eeab3Smrg
4644bf2eeab3Smrg
4645576bae58Smrg
4646bf2eeab3Smrg
4647bf2eeab3Smrg
4648bf2eeab3Smrg
4649bdc460c5Smrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4650bdc460c5Smrgthen :
4651bf2eeab3Smrg
4652bdc460c5Smrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4653bf2eeab3Smrg
4654bf2eeab3Smrgfi
4655bf2eeab3Smrg
4656bf2eeab3Smrg
4657bf2eeab3Smrg
4658bf2eeab3Smrg
4659bf2eeab3Smrg
4660bf2eeab3Smrg
4661bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4662bdc460c5Smrgprintf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4663bdc460c5Smrgif test ${ac_cv_safe_to_define___extensions__+y}
4664bdc460c5Smrgthen :
4665bdc460c5Smrg  printf %s "(cached) " >&6
46667015785aSmrgelse case e in #(
46677015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668bf2eeab3Smrg/* end confdefs.h.  */
4669bf2eeab3Smrg
4670bdc460c5Smrg#         define __EXTENSIONS__ 1
4671bdc460c5Smrg          $ac_includes_default
4672bf2eeab3Smrgint
4673bdc460c5Smrgmain (void)
4674bf2eeab3Smrg{
4675bf2eeab3Smrg
4676bf2eeab3Smrg  ;
4677bf2eeab3Smrg  return 0;
4678bf2eeab3Smrg}
4679bf2eeab3Smrg_ACEOF
4680bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
4681bdc460c5Smrgthen :
4682bdc460c5Smrg  ac_cv_safe_to_define___extensions__=yes
46837015785aSmrgelse case e in #(
46847015785aSmrg  e) ac_cv_safe_to_define___extensions__=no ;;
46857015785aSmrgesac
4686bf2eeab3Smrgfi
46877015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
46887015785aSmrgesac
4689bf2eeab3Smrgfi
4690bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4691bdc460c5Smrgprintf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4692bf2eeab3Smrg
4693bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4694bdc460c5Smrgprintf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4695bdc460c5Smrgif test ${ac_cv_should_define__xopen_source+y}
4696bdc460c5Smrgthen :
4697bdc460c5Smrg  printf %s "(cached) " >&6
46987015785aSmrgelse case e in #(
46997015785aSmrg  e) ac_cv_should_define__xopen_source=no
4700bdc460c5Smrg    if test $ac_cv_header_wchar_h = yes
4701bdc460c5Smrgthen :
4702576bae58Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703bf2eeab3Smrg/* end confdefs.h.  */
4704bf2eeab3Smrg
4705bdc460c5Smrg          #include <wchar.h>
4706bdc460c5Smrg          mbstate_t x;
4707bf2eeab3Smrgint
4708bdc460c5Smrgmain (void)
4709bf2eeab3Smrg{
4710bdc460c5Smrg
4711bdc460c5Smrg  ;
4712bf2eeab3Smrg  return 0;
4713bf2eeab3Smrg}
4714bf2eeab3Smrg_ACEOF
4715bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
4716bdc460c5Smrgthen :
471724047306Smrg
47187015785aSmrgelse case e in #(
47197015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
472024047306Smrg/* end confdefs.h.  */
4721576bae58Smrg
4722bdc460c5Smrg            #define _XOPEN_SOURCE 500
4723bdc460c5Smrg            #include <wchar.h>
4724bdc460c5Smrg            mbstate_t x;
472524047306Smrgint
4726bdc460c5Smrgmain (void)
472724047306Smrg{
472824047306Smrg
472924047306Smrg  ;
473024047306Smrg  return 0;
473124047306Smrg}
473224047306Smrg_ACEOF
4733bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
4734bdc460c5Smrgthen :
4735bdc460c5Smrg  ac_cv_should_define__xopen_source=yes
4736bdc460c5Smrgfi
47377015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
47387015785aSmrgesac
473924047306Smrgfi
4740bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
47417015785aSmrgfi ;;
47427015785aSmrgesac
4743bdc460c5Smrgfi
4744bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4745bdc460c5Smrgprintf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4746bf2eeab3Smrg
4747bdc460c5Smrg  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4748bf2eeab3Smrg
4749bdc460c5Smrg  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
475024047306Smrg
4751bdc460c5Smrg  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
475224047306Smrg
4753bdc460c5Smrg  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
475424047306Smrg
4755bdc460c5Smrg  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
475624047306Smrg
4757bdc460c5Smrg  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
475824047306Smrg
4759bdc460c5Smrg  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
476024047306Smrg
4761bdc460c5Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
476224047306Smrg
4763bdc460c5Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
476424047306Smrg
4765bdc460c5Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
476624047306Smrg
47677015785aSmrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
47687015785aSmrg
4769bdc460c5Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
477024047306Smrg
4771bdc460c5Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
477224047306Smrg
4773bdc460c5Smrg  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
477424047306Smrg
4775bdc460c5Smrg  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
477624047306Smrg
4777bdc460c5Smrg  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
477824047306Smrg
4779bdc460c5Smrg  if test $ac_cv_header_minix_config_h = yes
4780bdc460c5Smrgthen :
4781bdc460c5Smrg  MINIX=yes
4782bdc460c5Smrg    printf "%s\n" "#define _MINIX 1" >>confdefs.h
478324047306Smrg
4784bdc460c5Smrg    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
478524047306Smrg
4786bdc460c5Smrg    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
478724047306Smrg
47887015785aSmrgelse case e in #(
47897015785aSmrg  e) MINIX= ;;
47907015785aSmrgesac
4791bdc460c5Smrgfi
4792bdc460c5Smrg  if test $ac_cv_safe_to_define___extensions__ = yes
4793bdc460c5Smrgthen :
4794bdc460c5Smrg  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
479524047306Smrg
4796bdc460c5Smrgfi
4797bdc460c5Smrg  if test $ac_cv_should_define__xopen_source = yes
4798bdc460c5Smrgthen :
4799bdc460c5Smrg  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
480024047306Smrg
4801bdc460c5Smrgfi
480224047306Smrg
480324047306Smrg
4804bdc460c5Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
480524047306Smrg
480624047306Smrg
480724047306Smrg
480824047306Smrg
480924047306Smrg
481024047306Smrg
481124047306Smrg
481224047306Smrg
481324047306Smrg
481424047306Smrg
481524047306Smrg
4816bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4817bdc460c5Smrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4818bdc460c5Smrgif test ${ac_cv_c_undeclared_builtin_options+y}
4819bdc460c5Smrgthen :
4820bdc460c5Smrg  printf %s "(cached) " >&6
48217015785aSmrgelse case e in #(
48227015785aSmrg  e) ac_save_CFLAGS=$CFLAGS
4823bdc460c5Smrg   ac_cv_c_undeclared_builtin_options='cannot detect'
4824bdc460c5Smrg   for ac_arg in '' -fno-builtin; do
4825bdc460c5Smrg     CFLAGS="$ac_save_CFLAGS $ac_arg"
4826bdc460c5Smrg     # This test program should *not* compile successfully.
4827bdc460c5Smrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828bdc460c5Smrg/* end confdefs.h.  */
482924047306Smrg
4830bdc460c5Smrgint
4831bdc460c5Smrgmain (void)
4832bdc460c5Smrg{
4833bdc460c5Smrg(void) strchr;
4834bdc460c5Smrg  ;
4835bdc460c5Smrg  return 0;
4836bdc460c5Smrg}
4837bdc460c5Smrg_ACEOF
4838bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
4839bdc460c5Smrgthen :
4840bdc460c5Smrg
48417015785aSmrgelse case e in #(
48427015785aSmrg  e) # This test program should compile successfully.
4843bdc460c5Smrg        # No library function is consistently available on
4844bdc460c5Smrg        # freestanding implementations, so test against a dummy
4845bdc460c5Smrg        # declaration.  Include always-available headers on the
4846bdc460c5Smrg        # off chance that they somehow elicit warnings.
4847bdc460c5Smrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848bdc460c5Smrg/* end confdefs.h.  */
4849bdc460c5Smrg#include <float.h>
4850bdc460c5Smrg#include <limits.h>
4851bdc460c5Smrg#include <stdarg.h>
4852bdc460c5Smrg#include <stddef.h>
4853bdc460c5Smrgextern void ac_decl (int, char *);
4854bdc460c5Smrg
4855bdc460c5Smrgint
4856bdc460c5Smrgmain (void)
4857bdc460c5Smrg{
4858bdc460c5Smrg(void) ac_decl (0, (char *) 0);
4859bdc460c5Smrg  (void) ac_decl;
486024047306Smrg
486124047306Smrg  ;
486224047306Smrg  return 0;
486324047306Smrg}
486424047306Smrg_ACEOF
4865bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
4866bdc460c5Smrgthen :
4867bdc460c5Smrg  if test x"$ac_arg" = x
4868bdc460c5Smrgthen :
4869bdc460c5Smrg  ac_cv_c_undeclared_builtin_options='none needed'
48707015785aSmrgelse case e in #(
48717015785aSmrg  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
48727015785aSmrgesac
487324047306Smrgfi
4874bdc460c5Smrg          break
487524047306Smrgfi
48767015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
48777015785aSmrgesac
487824047306Smrgfi
4879bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4880bdc460c5Smrg    done
4881bdc460c5Smrg    CFLAGS=$ac_save_CFLAGS
48827015785aSmrg   ;;
48837015785aSmrgesac
4884bdc460c5Smrgfi
4885bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4886bdc460c5Smrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4887bdc460c5Smrg  case $ac_cv_c_undeclared_builtin_options in #(
4888bdc460c5Smrg  'cannot detect') :
48897015785aSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
48907015785aSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4891bdc460c5Smrgas_fn_error $? "cannot make $CC report undeclared builtins
48927015785aSmrgSee 'config.log' for more details" "$LINENO" 5; } ;; #(
4893bdc460c5Smrg  'none needed') :
4894bdc460c5Smrg    ac_c_undeclared_builtin_options='' ;; #(
4895bdc460c5Smrg  *) :
4896bdc460c5Smrg    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4897bdc460c5Smrgesac
489824047306Smrg
489924047306Smrg
490024047306Smrg
490124047306Smrg
490224047306Smrg
4903bdc460c5Smrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4904bdc460c5Smrgif test "x$ac_cv_have_decl___clang__" = xyes
4905bdc460c5Smrgthen :
490624047306Smrg  CLANGCC="yes"
49077015785aSmrgelse case e in #(
49087015785aSmrg  e) CLANGCC="no" ;;
49097015785aSmrgesac
491024047306Smrgfi
4911bdc460c5Smrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4912bdc460c5Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4913bdc460c5Smrgthen :
491424047306Smrg  INTELCC="yes"
49157015785aSmrgelse case e in #(
49167015785aSmrg  e) INTELCC="no" ;;
49177015785aSmrgesac
491824047306Smrgfi
4919bdc460c5Smrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4920bdc460c5Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4921bdc460c5Smrgthen :
492224047306Smrg  SUNCC="yes"
49237015785aSmrgelse case e in #(
49247015785aSmrg  e) SUNCC="no" ;;
49257015785aSmrgesac
492624047306Smrgfi
492724047306Smrg
492824047306Smrg
492924047306Smrg
493024047306Smrg
4931bdc460c5Smrg
4932bdc460c5Smrg
4933bdc460c5Smrg
4934bdc460c5Smrg
493524047306Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
493624047306Smrg	if test -n "$ac_tool_prefix"; then
493724047306Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
493824047306Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4939bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; }
4941bdc460c5Smrgif test ${ac_cv_path_PKG_CONFIG+y}
4942bdc460c5Smrgthen :
4943bdc460c5Smrg  printf %s "(cached) " >&6
49447015785aSmrgelse case e in #(
49457015785aSmrg  e) case $PKG_CONFIG in
494624047306Smrg  [\\/]* | ?:[\\/]*)
494724047306Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
494824047306Smrg  ;;
494924047306Smrg  *)
495024047306Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
495124047306Smrgfor as_dir in $PATH
495224047306Smrgdo
495324047306Smrg  IFS=$as_save_IFS
4954bdc460c5Smrg  case $as_dir in #(((
4955bdc460c5Smrg    '') as_dir=./ ;;
4956bdc460c5Smrg    */) ;;
4957bdc460c5Smrg    *) as_dir=$as_dir/ ;;
4958bdc460c5Smrg  esac
495924047306Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4960bdc460c5Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4961bdc460c5Smrg    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4962bdc460c5Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
496324047306Smrg    break 2
496424047306Smrg  fi
496524047306Smrgdone
496624047306Smrg  done
4967576bae58SmrgIFS=$as_save_IFS
4968576bae58Smrg
4969576bae58Smrg  ;;
49707015785aSmrgesac ;;
4971bf2eeab3Smrgesac
4972576bae58Smrgfi
497324047306SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
497424047306Smrgif test -n "$PKG_CONFIG"; then
4975bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4976bdc460c5Smrgprintf "%s\n" "$PKG_CONFIG" >&6; }
4977576bae58Smrgelse
4978bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979bdc460c5Smrgprintf "%s\n" "no" >&6; }
4980576bae58Smrgfi
4981bf2eeab3Smrg
498224047306Smrg
498324047306Smrgfi
498424047306Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
498524047306Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
498624047306Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
498724047306Smrgset dummy pkg-config; ac_word=$2
4988bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989bdc460c5Smrgprintf %s "checking for $ac_word... " >&6; }
4990bdc460c5Smrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4991bdc460c5Smrgthen :
4992bdc460c5Smrg  printf %s "(cached) " >&6
49937015785aSmrgelse case e in #(
49947015785aSmrg  e) case $ac_pt_PKG_CONFIG in
499524047306Smrg  [\\/]* | ?:[\\/]*)
499624047306Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
499724047306Smrg  ;;
499824047306Smrg  *)
499924047306Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
500024047306Smrgfor as_dir in $PATH
500124047306Smrgdo
500224047306Smrg  IFS=$as_save_IFS
5003bdc460c5Smrg  case $as_dir in #(((
5004bdc460c5Smrg    '') as_dir=./ ;;
5005bdc460c5Smrg    */) ;;
5006bdc460c5Smrg    *) as_dir=$as_dir/ ;;
5007bdc460c5Smrg  esac
500824047306Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5009bdc460c5Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5010bdc460c5Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5011bdc460c5Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
501224047306Smrg    break 2
501324047306Smrg  fi
501424047306Smrgdone
501524047306Smrg  done
501624047306SmrgIFS=$as_save_IFS
501724047306Smrg
501824047306Smrg  ;;
50197015785aSmrgesac ;;
502024047306Smrgesac
502124047306Smrgfi
502224047306Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
502324047306Smrgif test -n "$ac_pt_PKG_CONFIG"; then
5024bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5025bdc460c5Smrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
502624047306Smrgelse
5027bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028bdc460c5Smrgprintf "%s\n" "no" >&6; }
502924047306Smrgfi
503024047306Smrg
503124047306Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
5032576bae58Smrg    PKG_CONFIG=""
5033576bae58Smrg  else
5034576bae58Smrg    case $cross_compiling:$ac_tool_warned in
5035576bae58Smrgyes:)
5036bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5037bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5038576bae58Smrgac_tool_warned=yes ;;
5039576bae58Smrgesac
5040576bae58Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
5041576bae58Smrg  fi
5042576bae58Smrgelse
504324047306Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
504424047306Smrgfi
504524047306Smrg
504624047306Smrgfi
504724047306Smrgif test -n "$PKG_CONFIG"; then
504824047306Smrg	_pkg_min_version=0.9.0
5049bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5050bdc460c5Smrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
505124047306Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5052bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5053bdc460c5Smrgprintf "%s\n" "yes" >&6; }
505424047306Smrg	else
5055bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056bdc460c5Smrgprintf "%s\n" "no" >&6; }
505724047306Smrg		PKG_CONFIG=""
505824047306Smrg	fi
505924047306Smrgfi
506024047306Smrg
5061bdc460c5Smrg
5062bdc460c5Smrg  # Make sure we can run config.sub.
5063bdc460c5Smrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5064bdc460c5Smrg  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5065bdc460c5Smrg
5066bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5067bdc460c5Smrgprintf %s "checking build system type... " >&6; }
5068bdc460c5Smrgif test ${ac_cv_build+y}
5069bdc460c5Smrgthen :
5070bdc460c5Smrg  printf %s "(cached) " >&6
50717015785aSmrgelse case e in #(
50727015785aSmrg  e) ac_build_alias=$build_alias
507324047306Smrgtest "x$ac_build_alias" = x &&
5074bdc460c5Smrg  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
507524047306Smrgtest "x$ac_build_alias" = x &&
507624047306Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5077bdc460c5Smrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5078bdc460c5Smrg  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
50797015785aSmrg ;;
50807015785aSmrgesac
508124047306Smrgfi
5082bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5083bdc460c5Smrgprintf "%s\n" "$ac_cv_build" >&6; }
508424047306Smrgcase $ac_cv_build in
508524047306Smrg*-*-*) ;;
508624047306Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
508724047306Smrgesac
508824047306Smrgbuild=$ac_cv_build
508924047306Smrgac_save_IFS=$IFS; IFS='-'
509024047306Smrgset x $ac_cv_build
509124047306Smrgshift
509224047306Smrgbuild_cpu=$1
509324047306Smrgbuild_vendor=$2
509424047306Smrgshift; shift
509524047306Smrg# Remember, the first character of IFS is used to create $*,
509624047306Smrg# except with old shells:
509724047306Smrgbuild_os=$*
509824047306SmrgIFS=$ac_save_IFS
509924047306Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
510024047306Smrg
510124047306Smrg
5102bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5103bdc460c5Smrgprintf %s "checking host system type... " >&6; }
5104bdc460c5Smrgif test ${ac_cv_host+y}
5105bdc460c5Smrgthen :
5106bdc460c5Smrg  printf %s "(cached) " >&6
51077015785aSmrgelse case e in #(
51087015785aSmrg  e) if test "x$host_alias" = x; then
510924047306Smrg  ac_cv_host=$ac_cv_build
511024047306Smrgelse
5111bdc460c5Smrg  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5112bdc460c5Smrg    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
511324047306Smrgfi
51147015785aSmrg ;;
51157015785aSmrgesac
511624047306Smrgfi
5117bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5118bdc460c5Smrgprintf "%s\n" "$ac_cv_host" >&6; }
511924047306Smrgcase $ac_cv_host in
512024047306Smrg*-*-*) ;;
512124047306Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
512224047306Smrgesac
512324047306Smrghost=$ac_cv_host
512424047306Smrgac_save_IFS=$IFS; IFS='-'
512524047306Smrgset x $ac_cv_host
512624047306Smrgshift
512724047306Smrghost_cpu=$1
512824047306Smrghost_vendor=$2
512924047306Smrgshift; shift
513024047306Smrg# Remember, the first character of IFS is used to create $*,
513124047306Smrg# except with old shells:
513224047306Smrghost_os=$*
513324047306SmrgIFS=$ac_save_IFS
513424047306Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
513524047306Smrg
513624047306Smrg
5137bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5138bdc460c5Smrgprintf %s "checking for a sed that does not truncate output... " >&6; }
5139bdc460c5Smrgif test ${ac_cv_path_SED+y}
5140bdc460c5Smrgthen :
5141bdc460c5Smrg  printf %s "(cached) " >&6
51427015785aSmrgelse case e in #(
51437015785aSmrg  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
514424047306Smrg     for ac_i in 1 2 3 4 5 6 7; do
514524047306Smrg       ac_script="$ac_script$as_nl$ac_script"
514624047306Smrg     done
514724047306Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
514824047306Smrg     { ac_script=; unset ac_script;}
514924047306Smrg     if test -z "$SED"; then
515024047306Smrg  ac_path_SED_found=false
515124047306Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
515224047306Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
515324047306Smrgfor as_dir in $PATH
515424047306Smrgdo
515524047306Smrg  IFS=$as_save_IFS
5156bdc460c5Smrg  case $as_dir in #(((
5157bdc460c5Smrg    '') as_dir=./ ;;
5158bdc460c5Smrg    */) ;;
5159bdc460c5Smrg    *) as_dir=$as_dir/ ;;
5160bdc460c5Smrg  esac
5161bdc460c5Smrg    for ac_prog in sed gsed
5162bdc460c5Smrg   do
516324047306Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5164bdc460c5Smrg      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
516524047306Smrg      as_fn_executable_p "$ac_path_SED" || continue
516624047306Smrg# Check for GNU ac_path_SED and select it if it is found.
516724047306Smrg  # Check for GNU $ac_path_SED
51687015785aSmrgcase `"$ac_path_SED" --version 2>&1` in #(
516924047306Smrg*GNU*)
517024047306Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
51717015785aSmrg#(
517224047306Smrg*)
517324047306Smrg  ac_count=0
5174bdc460c5Smrg  printf %s 0123456789 >"conftest.in"
517524047306Smrg  while :
517624047306Smrg  do
517724047306Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
517824047306Smrg    mv "conftest.tmp" "conftest.in"
517924047306Smrg    cp "conftest.in" "conftest.nl"
5180bdc460c5Smrg    printf "%s\n" '' >> "conftest.nl"
518124047306Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
518224047306Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
518324047306Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
518424047306Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
518524047306Smrg      # Best one so far, save it but keep looking for a better one
518624047306Smrg      ac_cv_path_SED="$ac_path_SED"
518724047306Smrg      ac_path_SED_max=$ac_count
518824047306Smrg    fi
518924047306Smrg    # 10*(2^10) chars as input seems more than enough
519024047306Smrg    test $ac_count -gt 10 && break
519124047306Smrg  done
519224047306Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
519324047306Smrgesac
519424047306Smrg
519524047306Smrg      $ac_path_SED_found && break 3
519624047306Smrg    done
519724047306Smrg  done
519824047306Smrg  done
519924047306SmrgIFS=$as_save_IFS
520024047306Smrg  if test -z "$ac_cv_path_SED"; then
520124047306Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
520224047306Smrg  fi
520324047306Smrgelse
520424047306Smrg  ac_cv_path_SED=$SED
520524047306Smrgfi
52067015785aSmrg ;;
52077015785aSmrgesac
520824047306Smrgfi
5209bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5210bdc460c5Smrgprintf "%s\n" "$ac_cv_path_SED" >&6; }
521124047306Smrg SED="$ac_cv_path_SED"
521224047306Smrg  rm -f conftest.sed
521324047306Smrg
521424047306Smrg
521524047306Smrg
521624047306Smrg
521724047306Smrg
521824047306Smrg
521924047306Smrg# Check whether --enable-selective-werror was given.
5220bdc460c5Smrgif test ${enable_selective_werror+y}
5221bdc460c5Smrgthen :
522224047306Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
52237015785aSmrgelse case e in #(
52247015785aSmrg  e) SELECTIVE_WERROR=yes ;;
52257015785aSmrgesac
522624047306Smrgfi
522724047306Smrg
522824047306Smrg
522924047306Smrg
523024047306Smrg
523124047306Smrg
523224047306Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
523324047306Smrgif test "x$SUNCC" = "xyes"; then
523424047306Smrg    BASE_CFLAGS="-v"
523524047306Smrgelse
523624047306Smrg    BASE_CFLAGS=""
523724047306Smrgfi
523824047306Smrg
523924047306Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
524024047306Smrg
524124047306Smrg
524224047306Smrg
524324047306Smrg
524424047306Smrg
524524047306Smrg
524624047306Smrg
524724047306Smrg
524824047306Smrg
524924047306Smrg
525024047306Smrg
525124047306Smrg
525224047306Smrg
525324047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
525424047306Smrg
525524047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
525624047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5257bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5258bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5259bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5260bdc460c5Smrgthen :
5261bdc460c5Smrg  printf %s "(cached) " >&6
52627015785aSmrgelse case e in #(
52637015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
526424047306Smrg/* end confdefs.h.  */
526524047306Smrgint i;
526624047306Smrg_ACEOF
5267bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
5268bdc460c5Smrgthen :
526924047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
52707015785aSmrgelse case e in #(
52717015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
52727015785aSmrgesac
527324047306Smrgfi
52747015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
52757015785aSmrgesac
527624047306Smrgfi
5277bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5278bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
527924047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
528024047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
528124047306Smrgfi
528224047306Smrg
528324047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
528424047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
528524047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
528624047306Smrg	fi
528724047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5288bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5289bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5290bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5291bdc460c5Smrgthen :
5292bdc460c5Smrg  printf %s "(cached) " >&6
52937015785aSmrgelse case e in #(
52947015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
529524047306Smrg/* end confdefs.h.  */
529624047306Smrgint i;
529724047306Smrg_ACEOF
5298bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
5299bdc460c5Smrgthen :
530024047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
53017015785aSmrgelse case e in #(
53027015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
53037015785aSmrgesac
530424047306Smrgfi
53057015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
53067015785aSmrgesac
530724047306Smrgfi
5308bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5309bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
531024047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
531124047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
531224047306Smrgfi
531324047306Smrg
531424047306Smrgfound="no"
531524047306Smrg
531624047306Smrg	if test $found = "no" ; then
531724047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
531824047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
531924047306Smrg		fi
532024047306Smrg
532124047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
532224047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
532324047306Smrg		fi
532424047306Smrg
532524047306Smrg		CFLAGS="$CFLAGS -Wall"
532624047306Smrg
5327bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5328bdc460c5Smrgprintf %s "checking if $CC supports -Wall... " >&6; }
532924047306Smrg		cacheid=xorg_cv_cc_flag__Wall
5330bdc460c5Smrg		if eval test \${$cacheid+y}
5331bdc460c5Smrgthen :
5332bdc460c5Smrg  printf %s "(cached) " >&6
53337015785aSmrgelse case e in #(
53347015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
533524047306Smrg/* end confdefs.h.  */
533624047306Smrgint i;
533724047306Smrgint
5338bdc460c5Smrgmain (void)
533924047306Smrg{
534024047306Smrg
534124047306Smrg  ;
534224047306Smrg  return 0;
534324047306Smrg}
534424047306Smrg_ACEOF
5345bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
5346bdc460c5Smrgthen :
534724047306Smrg  eval $cacheid=yes
53487015785aSmrgelse case e in #(
53497015785aSmrg  e) eval $cacheid=no ;;
53507015785aSmrgesac
535124047306Smrgfi
5352bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
53537015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
53547015785aSmrgesac
535524047306Smrgfi
535624047306Smrg
535724047306Smrg
535824047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
535924047306Smrg
536024047306Smrg		eval supported=\$$cacheid
5361bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5362bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
536324047306Smrg		if test "$supported" = "yes" ; then
536424047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
536524047306Smrg			found="yes"
536624047306Smrg		fi
536724047306Smrg	fi
536824047306Smrg
536924047306Smrg
537024047306Smrg
537124047306Smrg
537224047306Smrg
537324047306Smrg
537424047306Smrg
537524047306Smrg
537624047306Smrg
537724047306Smrg
537824047306Smrg
537924047306Smrg
538024047306Smrg
538124047306Smrg
538224047306Smrg
538324047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
538424047306Smrg
538524047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
538624047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5387bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5388bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5389bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5390bdc460c5Smrgthen :
5391bdc460c5Smrg  printf %s "(cached) " >&6
53927015785aSmrgelse case e in #(
53937015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
539424047306Smrg/* end confdefs.h.  */
539524047306Smrgint i;
539624047306Smrg_ACEOF
5397bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
5398bdc460c5Smrgthen :
539924047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
54007015785aSmrgelse case e in #(
54017015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
54027015785aSmrgesac
540324047306Smrgfi
54047015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
54057015785aSmrgesac
540624047306Smrgfi
5407bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5408bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
540924047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
541024047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
541124047306Smrgfi
541224047306Smrg
541324047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
541424047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
541524047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
541624047306Smrg	fi
541724047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5418bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5419bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5420bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5421bdc460c5Smrgthen :
5422bdc460c5Smrg  printf %s "(cached) " >&6
54237015785aSmrgelse case e in #(
54247015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542524047306Smrg/* end confdefs.h.  */
542624047306Smrgint i;
542724047306Smrg_ACEOF
5428bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
5429bdc460c5Smrgthen :
543024047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
54317015785aSmrgelse case e in #(
54327015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
54337015785aSmrgesac
543424047306Smrgfi
54357015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
54367015785aSmrgesac
543724047306Smrgfi
5438bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5439bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
544024047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
544124047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
544224047306Smrgfi
544324047306Smrg
544424047306Smrgfound="no"
544524047306Smrg
544624047306Smrg	if test $found = "no" ; then
544724047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
544824047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
544924047306Smrg		fi
545024047306Smrg
545124047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
545224047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
545324047306Smrg		fi
545424047306Smrg
545524047306Smrg		CFLAGS="$CFLAGS -Wpointer-arith"
545624047306Smrg
5457bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5458bdc460c5Smrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; }
545924047306Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
5460bdc460c5Smrg		if eval test \${$cacheid+y}
5461bdc460c5Smrgthen :
5462bdc460c5Smrg  printf %s "(cached) " >&6
54637015785aSmrgelse case e in #(
54647015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
546524047306Smrg/* end confdefs.h.  */
546624047306Smrgint i;
546724047306Smrgint
5468bdc460c5Smrgmain (void)
546924047306Smrg{
547024047306Smrg
547124047306Smrg  ;
547224047306Smrg  return 0;
547324047306Smrg}
547424047306Smrg_ACEOF
5475bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
5476bdc460c5Smrgthen :
547724047306Smrg  eval $cacheid=yes
54787015785aSmrgelse case e in #(
54797015785aSmrg  e) eval $cacheid=no ;;
54807015785aSmrgesac
548124047306Smrgfi
5482bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
54837015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
54847015785aSmrgesac
548524047306Smrgfi
548624047306Smrg
548724047306Smrg
548824047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
548924047306Smrg
549024047306Smrg		eval supported=\$$cacheid
5491bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5492bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
549324047306Smrg		if test "$supported" = "yes" ; then
549424047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
549524047306Smrg			found="yes"
549624047306Smrg		fi
549724047306Smrg	fi
549824047306Smrg
549924047306Smrg
550024047306Smrg
550124047306Smrg
550224047306Smrg
550324047306Smrg
550424047306Smrg
550524047306Smrg
550624047306Smrg
550724047306Smrg
550824047306Smrg
550924047306Smrg
551024047306Smrg
551124047306Smrg
551224047306Smrg
551324047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
551424047306Smrg
551524047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
551624047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5517bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5518bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5519bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5520bdc460c5Smrgthen :
5521bdc460c5Smrg  printf %s "(cached) " >&6
55227015785aSmrgelse case e in #(
55237015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
552424047306Smrg/* end confdefs.h.  */
552524047306Smrgint i;
552624047306Smrg_ACEOF
5527bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
5528bdc460c5Smrgthen :
552924047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
55307015785aSmrgelse case e in #(
55317015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
55327015785aSmrgesac
553324047306Smrgfi
55347015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
55357015785aSmrgesac
553624047306Smrgfi
5537bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5538bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
553924047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
554024047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
554124047306Smrgfi
554224047306Smrg
554324047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
554424047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
554524047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
554624047306Smrg	fi
554724047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5548bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5549bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5550bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5551bdc460c5Smrgthen :
5552bdc460c5Smrg  printf %s "(cached) " >&6
55537015785aSmrgelse case e in #(
55547015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
555524047306Smrg/* end confdefs.h.  */
555624047306Smrgint i;
555724047306Smrg_ACEOF
5558bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
5559bdc460c5Smrgthen :
556024047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
55617015785aSmrgelse case e in #(
55627015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
55637015785aSmrgesac
556424047306Smrgfi
55657015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
55667015785aSmrgesac
556724047306Smrgfi
5568bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5569bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
557024047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
557124047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
557224047306Smrgfi
557324047306Smrg
557424047306Smrgfound="no"
557524047306Smrg
557624047306Smrg	if test $found = "no" ; then
557724047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
557824047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
557924047306Smrg		fi
558024047306Smrg
558124047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
558224047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
558324047306Smrg		fi
558424047306Smrg
558524047306Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
558624047306Smrg
5587bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5588bdc460c5Smrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
558924047306Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5590bdc460c5Smrg		if eval test \${$cacheid+y}
5591bdc460c5Smrgthen :
5592bdc460c5Smrg  printf %s "(cached) " >&6
55937015785aSmrgelse case e in #(
55947015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
559524047306Smrg/* end confdefs.h.  */
559624047306Smrgint i;
559724047306Smrgint
5598bdc460c5Smrgmain (void)
559924047306Smrg{
560024047306Smrg
560124047306Smrg  ;
560224047306Smrg  return 0;
560324047306Smrg}
560424047306Smrg_ACEOF
5605bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
5606bdc460c5Smrgthen :
560724047306Smrg  eval $cacheid=yes
56087015785aSmrgelse case e in #(
56097015785aSmrg  e) eval $cacheid=no ;;
56107015785aSmrgesac
561124047306Smrgfi
5612bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
56137015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
56147015785aSmrgesac
561524047306Smrgfi
561624047306Smrg
561724047306Smrg
561824047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
561924047306Smrg
562024047306Smrg		eval supported=\$$cacheid
5621bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5622bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
562324047306Smrg		if test "$supported" = "yes" ; then
562424047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
562524047306Smrg			found="yes"
562624047306Smrg		fi
562724047306Smrg	fi
562824047306Smrg
562924047306Smrg
563024047306Smrg
563124047306Smrg
563224047306Smrg
563324047306Smrg
563424047306Smrg
563524047306Smrg
563624047306Smrg
563724047306Smrg
563824047306Smrg
563924047306Smrg
564024047306Smrg
564124047306Smrg
564224047306Smrg
564324047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
564424047306Smrg
564524047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
564624047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5647bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5648bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5649bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5650bdc460c5Smrgthen :
5651bdc460c5Smrg  printf %s "(cached) " >&6
56527015785aSmrgelse case e in #(
56537015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
565424047306Smrg/* end confdefs.h.  */
565524047306Smrgint i;
565624047306Smrg_ACEOF
5657bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
5658bdc460c5Smrgthen :
565924047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
56607015785aSmrgelse case e in #(
56617015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
56627015785aSmrgesac
566324047306Smrgfi
56647015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
56657015785aSmrgesac
566624047306Smrgfi
5667bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5668bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
566924047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
567024047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
567124047306Smrgfi
567224047306Smrg
567324047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
567424047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
567524047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
567624047306Smrg	fi
567724047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5678bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5679bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5680bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5681bdc460c5Smrgthen :
5682bdc460c5Smrg  printf %s "(cached) " >&6
56837015785aSmrgelse case e in #(
56847015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
568524047306Smrg/* end confdefs.h.  */
568624047306Smrgint i;
568724047306Smrg_ACEOF
5688bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
5689bdc460c5Smrgthen :
569024047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
56917015785aSmrgelse case e in #(
56927015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
56937015785aSmrgesac
569424047306Smrgfi
56957015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
56967015785aSmrgesac
569724047306Smrgfi
5698bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5699bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
570024047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
570124047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
570224047306Smrgfi
570324047306Smrg
570424047306Smrgfound="no"
570524047306Smrg
570624047306Smrg	if test $found = "no" ; then
570724047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
570824047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
570924047306Smrg		fi
571024047306Smrg
571124047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
571224047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
571324047306Smrg		fi
571424047306Smrg
571524047306Smrg		CFLAGS="$CFLAGS -Wformat=2"
571624047306Smrg
5717bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5718bdc460c5Smrgprintf %s "checking if $CC supports -Wformat=2... " >&6; }
571924047306Smrg		cacheid=xorg_cv_cc_flag__Wformat_2
5720bdc460c5Smrg		if eval test \${$cacheid+y}
5721bdc460c5Smrgthen :
5722bdc460c5Smrg  printf %s "(cached) " >&6
57237015785aSmrgelse case e in #(
57247015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
572524047306Smrg/* end confdefs.h.  */
572624047306Smrgint i;
572724047306Smrgint
5728bdc460c5Smrgmain (void)
572924047306Smrg{
573024047306Smrg
573124047306Smrg  ;
573224047306Smrg  return 0;
573324047306Smrg}
573424047306Smrg_ACEOF
5735bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
5736bdc460c5Smrgthen :
573724047306Smrg  eval $cacheid=yes
57387015785aSmrgelse case e in #(
57397015785aSmrg  e) eval $cacheid=no ;;
57407015785aSmrgesac
574124047306Smrgfi
5742bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
57437015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
57447015785aSmrgesac
574524047306Smrgfi
574624047306Smrg
574724047306Smrg
574824047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
574924047306Smrg
575024047306Smrg		eval supported=\$$cacheid
5751bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5752bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
575324047306Smrg		if test "$supported" = "yes" ; then
575424047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
575524047306Smrg			found="yes"
575624047306Smrg		fi
575724047306Smrg	fi
575824047306Smrg
575924047306Smrg	if test $found = "no" ; then
576024047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
576124047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
576224047306Smrg		fi
576324047306Smrg
576424047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
576524047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
576624047306Smrg		fi
576724047306Smrg
576824047306Smrg		CFLAGS="$CFLAGS -Wformat"
576924047306Smrg
5770bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5771bdc460c5Smrgprintf %s "checking if $CC supports -Wformat... " >&6; }
577224047306Smrg		cacheid=xorg_cv_cc_flag__Wformat
5773bdc460c5Smrg		if eval test \${$cacheid+y}
5774bdc460c5Smrgthen :
5775bdc460c5Smrg  printf %s "(cached) " >&6
57767015785aSmrgelse case e in #(
57777015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
577824047306Smrg/* end confdefs.h.  */
577924047306Smrgint i;
578024047306Smrgint
5781bdc460c5Smrgmain (void)
578224047306Smrg{
578324047306Smrg
578424047306Smrg  ;
578524047306Smrg  return 0;
578624047306Smrg}
578724047306Smrg_ACEOF
5788bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
5789bdc460c5Smrgthen :
579024047306Smrg  eval $cacheid=yes
57917015785aSmrgelse case e in #(
57927015785aSmrg  e) eval $cacheid=no ;;
57937015785aSmrgesac
579424047306Smrgfi
5795bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
57967015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
57977015785aSmrgesac
579824047306Smrgfi
579924047306Smrg
580024047306Smrg
580124047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
580224047306Smrg
580324047306Smrg		eval supported=\$$cacheid
5804bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5805bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
580624047306Smrg		if test "$supported" = "yes" ; then
580724047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
580824047306Smrg			found="yes"
580924047306Smrg		fi
581024047306Smrg	fi
581124047306Smrg
581224047306Smrg
581324047306Smrg
581424047306Smrg
581524047306Smrg
581624047306Smrg
581724047306Smrg
581824047306Smrg
581924047306Smrg
582024047306Smrg
582124047306Smrg
582224047306Smrg
582324047306Smrg
582424047306Smrg
582524047306Smrg
582624047306Smrg
582724047306Smrg
582824047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
582924047306Smrg
583024047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
583124047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5832bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5833bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5834bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5835bdc460c5Smrgthen :
5836bdc460c5Smrg  printf %s "(cached) " >&6
58377015785aSmrgelse case e in #(
58387015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
583924047306Smrg/* end confdefs.h.  */
584024047306Smrgint i;
584124047306Smrg_ACEOF
5842bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
5843bdc460c5Smrgthen :
584424047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
58457015785aSmrgelse case e in #(
58467015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
58477015785aSmrgesac
584824047306Smrgfi
58497015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
58507015785aSmrgesac
585124047306Smrgfi
5852bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5853bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
585424047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
585524047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
585624047306Smrgfi
585724047306Smrg
585824047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
585924047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
586024047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
586124047306Smrg	fi
586224047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5863bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5864bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5865bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5866bdc460c5Smrgthen :
5867bdc460c5Smrg  printf %s "(cached) " >&6
58687015785aSmrgelse case e in #(
58697015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
587024047306Smrg/* end confdefs.h.  */
587124047306Smrgint i;
587224047306Smrg_ACEOF
5873bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
5874bdc460c5Smrgthen :
587524047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
58767015785aSmrgelse case e in #(
58777015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
58787015785aSmrgesac
587924047306Smrgfi
58807015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
58817015785aSmrgesac
588224047306Smrgfi
5883bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5884bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
588524047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
588624047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
588724047306Smrgfi
588824047306Smrg
588924047306Smrgfound="no"
589024047306Smrg
589124047306Smrg	if test $found = "no" ; then
589224047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
589324047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
589424047306Smrg		fi
589524047306Smrg
589624047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
589724047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
589824047306Smrg		fi
589924047306Smrg
590024047306Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
590124047306Smrg
5902bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5903bdc460c5Smrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
590424047306Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5905bdc460c5Smrg		if eval test \${$cacheid+y}
5906bdc460c5Smrgthen :
5907bdc460c5Smrg  printf %s "(cached) " >&6
59087015785aSmrgelse case e in #(
59097015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
591024047306Smrg/* end confdefs.h.  */
591124047306Smrgint i;
591224047306Smrgint
5913bdc460c5Smrgmain (void)
591424047306Smrg{
591524047306Smrg
591624047306Smrg  ;
591724047306Smrg  return 0;
591824047306Smrg}
591924047306Smrg_ACEOF
5920bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
5921bdc460c5Smrgthen :
592224047306Smrg  eval $cacheid=yes
59237015785aSmrgelse case e in #(
59247015785aSmrg  e) eval $cacheid=no ;;
59257015785aSmrgesac
592624047306Smrgfi
5927bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
59287015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
59297015785aSmrgesac
593024047306Smrgfi
593124047306Smrg
593224047306Smrg
593324047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
593424047306Smrg
593524047306Smrg		eval supported=\$$cacheid
5936bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5937bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
593824047306Smrg		if test "$supported" = "yes" ; then
593924047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
594024047306Smrg			found="yes"
594124047306Smrg		fi
594224047306Smrg	fi
594324047306Smrg
594424047306Smrg
594524047306Smrg
594624047306Smrg
594724047306Smrg
594824047306Smrg
594924047306Smrg
595024047306Smrg
595124047306Smrg
595224047306Smrg
595324047306Smrg
595424047306Smrg
595524047306Smrg
595624047306Smrg
595724047306Smrg
595824047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
595924047306Smrg
596024047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
596124047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5962bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5963bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5964bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5965bdc460c5Smrgthen :
5966bdc460c5Smrg  printf %s "(cached) " >&6
59677015785aSmrgelse case e in #(
59687015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
596924047306Smrg/* end confdefs.h.  */
597024047306Smrgint i;
597124047306Smrg_ACEOF
5972bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
5973bdc460c5Smrgthen :
597424047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
59757015785aSmrgelse case e in #(
59767015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
59777015785aSmrgesac
597824047306Smrgfi
59797015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
59807015785aSmrgesac
598124047306Smrgfi
5982bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5983bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
598424047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
598524047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
598624047306Smrgfi
598724047306Smrg
598824047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
598924047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
599024047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
599124047306Smrg	fi
599224047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5993bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5994bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5995bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5996bdc460c5Smrgthen :
5997bdc460c5Smrg  printf %s "(cached) " >&6
59987015785aSmrgelse case e in #(
59997015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
600024047306Smrg/* end confdefs.h.  */
600124047306Smrgint i;
600224047306Smrg_ACEOF
6003bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
6004bdc460c5Smrgthen :
600524047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
60067015785aSmrgelse case e in #(
60077015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
60087015785aSmrgesac
600924047306Smrgfi
60107015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
60117015785aSmrgesac
601224047306Smrgfi
6013bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6014bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
601524047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
601624047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
601724047306Smrgfi
601824047306Smrg
601924047306Smrgfound="no"
602024047306Smrg
602124047306Smrg	if test $found = "no" ; then
602224047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
602324047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
602424047306Smrg		fi
602524047306Smrg
602624047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
602724047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
602824047306Smrg		fi
602924047306Smrg
603024047306Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
603124047306Smrg
6032bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6033bdc460c5Smrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
603424047306Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6035bdc460c5Smrg		if eval test \${$cacheid+y}
6036bdc460c5Smrgthen :
6037bdc460c5Smrg  printf %s "(cached) " >&6
60387015785aSmrgelse case e in #(
60397015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
604024047306Smrg/* end confdefs.h.  */
604124047306Smrgint i;
604224047306Smrgint
6043bdc460c5Smrgmain (void)
604424047306Smrg{
604524047306Smrg
604624047306Smrg  ;
604724047306Smrg  return 0;
604824047306Smrg}
604924047306Smrg_ACEOF
6050bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
6051bdc460c5Smrgthen :
605224047306Smrg  eval $cacheid=yes
60537015785aSmrgelse case e in #(
60547015785aSmrg  e) eval $cacheid=no ;;
60557015785aSmrgesac
605624047306Smrgfi
6057bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
60587015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
60597015785aSmrgesac
606024047306Smrgfi
606124047306Smrg
606224047306Smrg
606324047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
606424047306Smrg
606524047306Smrg		eval supported=\$$cacheid
6066bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6067bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
606824047306Smrg		if test "$supported" = "yes" ; then
606924047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
607024047306Smrg			found="yes"
607124047306Smrg		fi
607224047306Smrg	fi
607324047306Smrg
607424047306Smrg
607524047306Smrg
607624047306Smrg
607724047306Smrg
607824047306Smrg
607924047306Smrg
608024047306Smrg
608124047306Smrg
608224047306Smrg
608324047306Smrg
608424047306Smrg
608524047306Smrg
608624047306Smrg
608724047306Smrg
608824047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
608924047306Smrg
609024047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
609124047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6092bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6093bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6094bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6095bdc460c5Smrgthen :
6096bdc460c5Smrg  printf %s "(cached) " >&6
60977015785aSmrgelse case e in #(
60987015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
609924047306Smrg/* end confdefs.h.  */
610024047306Smrgint i;
610124047306Smrg_ACEOF
6102bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
6103bdc460c5Smrgthen :
610424047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
61057015785aSmrgelse case e in #(
61067015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
61077015785aSmrgesac
610824047306Smrgfi
61097015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
61107015785aSmrgesac
611124047306Smrgfi
6112bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6113bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
611424047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
611524047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
611624047306Smrgfi
611724047306Smrg
611824047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
611924047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
612024047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
612124047306Smrg	fi
612224047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6123bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6124bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6125bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6126bdc460c5Smrgthen :
6127bdc460c5Smrg  printf %s "(cached) " >&6
61287015785aSmrgelse case e in #(
61297015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
613024047306Smrg/* end confdefs.h.  */
613124047306Smrgint i;
613224047306Smrg_ACEOF
6133bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
6134bdc460c5Smrgthen :
613524047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
61367015785aSmrgelse case e in #(
61377015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
61387015785aSmrgesac
613924047306Smrgfi
61407015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
61417015785aSmrgesac
614224047306Smrgfi
6143bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6144bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
614524047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
614624047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
614724047306Smrgfi
614824047306Smrg
614924047306Smrgfound="no"
615024047306Smrg
615124047306Smrg	if test $found = "no" ; then
615224047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
615324047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
615424047306Smrg		fi
615524047306Smrg
615624047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
615724047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
615824047306Smrg		fi
615924047306Smrg
616024047306Smrg		CFLAGS="$CFLAGS -Wnested-externs"
616124047306Smrg
6162bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6163bdc460c5Smrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; }
616424047306Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
6165bdc460c5Smrg		if eval test \${$cacheid+y}
6166bdc460c5Smrgthen :
6167bdc460c5Smrg  printf %s "(cached) " >&6
61687015785aSmrgelse case e in #(
61697015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
617024047306Smrg/* end confdefs.h.  */
617124047306Smrgint i;
617224047306Smrgint
6173bdc460c5Smrgmain (void)
617424047306Smrg{
617524047306Smrg
617624047306Smrg  ;
617724047306Smrg  return 0;
617824047306Smrg}
617924047306Smrg_ACEOF
6180bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
6181bdc460c5Smrgthen :
618224047306Smrg  eval $cacheid=yes
61837015785aSmrgelse case e in #(
61847015785aSmrg  e) eval $cacheid=no ;;
61857015785aSmrgesac
618624047306Smrgfi
6187bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
61887015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
61897015785aSmrgesac
619024047306Smrgfi
619124047306Smrg
619224047306Smrg
619324047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
619424047306Smrg
619524047306Smrg		eval supported=\$$cacheid
6196bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6197bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
619824047306Smrg		if test "$supported" = "yes" ; then
619924047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
620024047306Smrg			found="yes"
620124047306Smrg		fi
620224047306Smrg	fi
620324047306Smrg
620424047306Smrg
620524047306Smrg
620624047306Smrg
620724047306Smrg
620824047306Smrg
620924047306Smrg
621024047306Smrg
621124047306Smrg
621224047306Smrg
621324047306Smrg
621424047306Smrg
621524047306Smrg
621624047306Smrg
621724047306Smrg
621824047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
621924047306Smrg
622024047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
622124047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6222bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6223bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6224bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6225bdc460c5Smrgthen :
6226bdc460c5Smrg  printf %s "(cached) " >&6
62277015785aSmrgelse case e in #(
62287015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622924047306Smrg/* end confdefs.h.  */
623024047306Smrgint i;
623124047306Smrg_ACEOF
6232bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
6233bdc460c5Smrgthen :
623424047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
62357015785aSmrgelse case e in #(
62367015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
62377015785aSmrgesac
623824047306Smrgfi
62397015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
62407015785aSmrgesac
624124047306Smrgfi
6242bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6243bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
624424047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
624524047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
624624047306Smrgfi
624724047306Smrg
624824047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
624924047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
625024047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
625124047306Smrg	fi
625224047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6253bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6254bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6255bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6256bdc460c5Smrgthen :
6257bdc460c5Smrg  printf %s "(cached) " >&6
62587015785aSmrgelse case e in #(
62597015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
626024047306Smrg/* end confdefs.h.  */
626124047306Smrgint i;
626224047306Smrg_ACEOF
6263bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
6264bdc460c5Smrgthen :
626524047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
62667015785aSmrgelse case e in #(
62677015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
62687015785aSmrgesac
626924047306Smrgfi
62707015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
62717015785aSmrgesac
627224047306Smrgfi
6273bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6274bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
627524047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
627624047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
627724047306Smrgfi
627824047306Smrg
627924047306Smrgfound="no"
628024047306Smrg
628124047306Smrg	if test $found = "no" ; then
628224047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
628324047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
628424047306Smrg		fi
628524047306Smrg
628624047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
628724047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
628824047306Smrg		fi
628924047306Smrg
629024047306Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
629124047306Smrg
6292bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6293bdc460c5Smrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
629424047306Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6295bdc460c5Smrg		if eval test \${$cacheid+y}
6296bdc460c5Smrgthen :
6297bdc460c5Smrg  printf %s "(cached) " >&6
62987015785aSmrgelse case e in #(
62997015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
630024047306Smrg/* end confdefs.h.  */
630124047306Smrgint i;
630224047306Smrgint
6303bdc460c5Smrgmain (void)
630424047306Smrg{
630524047306Smrg
630624047306Smrg  ;
630724047306Smrg  return 0;
630824047306Smrg}
630924047306Smrg_ACEOF
6310bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
6311bdc460c5Smrgthen :
631224047306Smrg  eval $cacheid=yes
63137015785aSmrgelse case e in #(
63147015785aSmrg  e) eval $cacheid=no ;;
63157015785aSmrgesac
631624047306Smrgfi
6317bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
63187015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
63197015785aSmrgesac
632024047306Smrgfi
632124047306Smrg
632224047306Smrg
632324047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
632424047306Smrg
632524047306Smrg		eval supported=\$$cacheid
6326bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6327bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
632824047306Smrg		if test "$supported" = "yes" ; then
632924047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
633024047306Smrg			found="yes"
633124047306Smrg		fi
633224047306Smrg	fi
633324047306Smrg
633424047306Smrg
633524047306Smrg
633624047306Smrg
633724047306Smrg
633824047306Smrg
633924047306Smrg
634024047306Smrg
634124047306Smrg
634224047306Smrg
634324047306Smrg
634424047306Smrg
634524047306Smrg
634624047306Smrg
634724047306Smrg
634824047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
634924047306Smrg
635024047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
635124047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6352bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6353bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6354bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6355bdc460c5Smrgthen :
6356bdc460c5Smrg  printf %s "(cached) " >&6
63577015785aSmrgelse case e in #(
63587015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
635924047306Smrg/* end confdefs.h.  */
636024047306Smrgint i;
636124047306Smrg_ACEOF
6362bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
6363bdc460c5Smrgthen :
636424047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
63657015785aSmrgelse case e in #(
63667015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
63677015785aSmrgesac
636824047306Smrgfi
63697015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
63707015785aSmrgesac
637124047306Smrgfi
6372bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6373bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
637424047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
637524047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
637624047306Smrgfi
637724047306Smrg
637824047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
637924047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
638024047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
638124047306Smrg	fi
638224047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6383bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6384bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6385bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6386bdc460c5Smrgthen :
6387bdc460c5Smrg  printf %s "(cached) " >&6
63887015785aSmrgelse case e in #(
63897015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
639024047306Smrg/* end confdefs.h.  */
639124047306Smrgint i;
639224047306Smrg_ACEOF
6393bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
6394bdc460c5Smrgthen :
639524047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
63967015785aSmrgelse case e in #(
63977015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
63987015785aSmrgesac
639924047306Smrgfi
64007015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
64017015785aSmrgesac
640224047306Smrgfi
6403bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6404bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
640524047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
640624047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
640724047306Smrgfi
640824047306Smrg
640924047306Smrgfound="no"
641024047306Smrg
641124047306Smrg	if test $found = "no" ; then
641224047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
641324047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
641424047306Smrg		fi
641524047306Smrg
641624047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
641724047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
641824047306Smrg		fi
641924047306Smrg
642024047306Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
642124047306Smrg
6422bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6423bdc460c5Smrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; }
642424047306Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
6425bdc460c5Smrg		if eval test \${$cacheid+y}
6426bdc460c5Smrgthen :
6427bdc460c5Smrg  printf %s "(cached) " >&6
64287015785aSmrgelse case e in #(
64297015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
643024047306Smrg/* end confdefs.h.  */
643124047306Smrgint i;
643224047306Smrgint
6433bdc460c5Smrgmain (void)
643424047306Smrg{
643524047306Smrg
643624047306Smrg  ;
643724047306Smrg  return 0;
643824047306Smrg}
643924047306Smrg_ACEOF
6440bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
6441bdc460c5Smrgthen :
644224047306Smrg  eval $cacheid=yes
64437015785aSmrgelse case e in #(
64447015785aSmrg  e) eval $cacheid=no ;;
64457015785aSmrgesac
644624047306Smrgfi
6447bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
64487015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
64497015785aSmrgesac
645024047306Smrgfi
645124047306Smrg
645224047306Smrg
645324047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
645424047306Smrg
645524047306Smrg		eval supported=\$$cacheid
6456bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6457bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
645824047306Smrg		if test "$supported" = "yes" ; then
645924047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
646024047306Smrg			found="yes"
646124047306Smrg		fi
646224047306Smrg	fi
646324047306Smrg
646424047306Smrg	if test $found = "no" ; then
646524047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
646624047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
646724047306Smrg		fi
646824047306Smrg
646924047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
647024047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
647124047306Smrg		fi
647224047306Smrg
647324047306Smrg		CFLAGS="$CFLAGS -fd"
647424047306Smrg
6475bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6476bdc460c5Smrgprintf %s "checking if $CC supports -fd... " >&6; }
647724047306Smrg		cacheid=xorg_cv_cc_flag__fd
6478bdc460c5Smrg		if eval test \${$cacheid+y}
6479bdc460c5Smrgthen :
6480bdc460c5Smrg  printf %s "(cached) " >&6
64817015785aSmrgelse case e in #(
64827015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
648324047306Smrg/* end confdefs.h.  */
648424047306Smrgint i;
648524047306Smrgint
6486bdc460c5Smrgmain (void)
648724047306Smrg{
648824047306Smrg
648924047306Smrg  ;
649024047306Smrg  return 0;
649124047306Smrg}
649224047306Smrg_ACEOF
6493bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
6494bdc460c5Smrgthen :
649524047306Smrg  eval $cacheid=yes
64967015785aSmrgelse case e in #(
64977015785aSmrg  e) eval $cacheid=no ;;
64987015785aSmrgesac
649924047306Smrgfi
6500bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
65017015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
65027015785aSmrgesac
650324047306Smrgfi
650424047306Smrg
650524047306Smrg
650624047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
650724047306Smrg
650824047306Smrg		eval supported=\$$cacheid
6509bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6510bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
651124047306Smrg		if test "$supported" = "yes" ; then
651224047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
651324047306Smrg			found="yes"
651424047306Smrg		fi
651524047306Smrg	fi
651624047306Smrg
651724047306Smrg
651824047306Smrg
651924047306Smrg
652024047306Smrg
652124047306Smrg# This chunk adds additional warnings that could catch undesired effects.
652224047306Smrg
652324047306Smrg
652424047306Smrg
652524047306Smrg
652624047306Smrg
652724047306Smrg
652824047306Smrg
652924047306Smrg
653024047306Smrg
653124047306Smrg
653224047306Smrg
653324047306Smrg
653424047306Smrg
653524047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
653624047306Smrg
653724047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
653824047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6539bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6540bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6541bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6542bdc460c5Smrgthen :
6543bdc460c5Smrg  printf %s "(cached) " >&6
65447015785aSmrgelse case e in #(
65457015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
654624047306Smrg/* end confdefs.h.  */
654724047306Smrgint i;
654824047306Smrg_ACEOF
6549bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
6550bdc460c5Smrgthen :
655124047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
65527015785aSmrgelse case e in #(
65537015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
65547015785aSmrgesac
655524047306Smrgfi
65567015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
65577015785aSmrgesac
655824047306Smrgfi
6559bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6560bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
656124047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
656224047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
656324047306Smrgfi
656424047306Smrg
656524047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
656624047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
656724047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
656824047306Smrg	fi
656924047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6570bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6571bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6572bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6573bdc460c5Smrgthen :
6574bdc460c5Smrg  printf %s "(cached) " >&6
65757015785aSmrgelse case e in #(
65767015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
657724047306Smrg/* end confdefs.h.  */
657824047306Smrgint i;
657924047306Smrg_ACEOF
6580bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
6581bdc460c5Smrgthen :
658224047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
65837015785aSmrgelse case e in #(
65847015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
65857015785aSmrgesac
658624047306Smrgfi
65877015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
65887015785aSmrgesac
658924047306Smrgfi
6590bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6591bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
659224047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
659324047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
659424047306Smrgfi
659524047306Smrg
659624047306Smrgfound="no"
659724047306Smrg
659824047306Smrg	if test $found = "no" ; then
659924047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
660024047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
660124047306Smrg		fi
660224047306Smrg
660324047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
660424047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
660524047306Smrg		fi
660624047306Smrg
660724047306Smrg		CFLAGS="$CFLAGS -Wunused"
660824047306Smrg
6609bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6610bdc460c5Smrgprintf %s "checking if $CC supports -Wunused... " >&6; }
661124047306Smrg		cacheid=xorg_cv_cc_flag__Wunused
6612bdc460c5Smrg		if eval test \${$cacheid+y}
6613bdc460c5Smrgthen :
6614bdc460c5Smrg  printf %s "(cached) " >&6
66157015785aSmrgelse case e in #(
66167015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
661724047306Smrg/* end confdefs.h.  */
661824047306Smrgint i;
661924047306Smrgint
6620bdc460c5Smrgmain (void)
662124047306Smrg{
662224047306Smrg
662324047306Smrg  ;
662424047306Smrg  return 0;
662524047306Smrg}
662624047306Smrg_ACEOF
6627bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
6628bdc460c5Smrgthen :
662924047306Smrg  eval $cacheid=yes
66307015785aSmrgelse case e in #(
66317015785aSmrg  e) eval $cacheid=no ;;
66327015785aSmrgesac
663324047306Smrgfi
6634bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
66357015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
66367015785aSmrgesac
663724047306Smrgfi
663824047306Smrg
663924047306Smrg
664024047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
664124047306Smrg
664224047306Smrg		eval supported=\$$cacheid
6643bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6644bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
664524047306Smrg		if test "$supported" = "yes" ; then
664624047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
664724047306Smrg			found="yes"
664824047306Smrg		fi
664924047306Smrg	fi
665024047306Smrg
665124047306Smrg
665224047306Smrg
665324047306Smrg
665424047306Smrg
665524047306Smrg
665624047306Smrg
665724047306Smrg
665824047306Smrg
665924047306Smrg
666024047306Smrg
666124047306Smrg
666224047306Smrg
666324047306Smrg
666424047306Smrg
666524047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
666624047306Smrg
666724047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
666824047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6669bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6670bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6671bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6672bdc460c5Smrgthen :
6673bdc460c5Smrg  printf %s "(cached) " >&6
66747015785aSmrgelse case e in #(
66757015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
667624047306Smrg/* end confdefs.h.  */
667724047306Smrgint i;
667824047306Smrg_ACEOF
6679bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
6680bdc460c5Smrgthen :
668124047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
66827015785aSmrgelse case e in #(
66837015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
66847015785aSmrgesac
668524047306Smrgfi
66867015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
66877015785aSmrgesac
668824047306Smrgfi
6689bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6690bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
669124047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
669224047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
669324047306Smrgfi
669424047306Smrg
669524047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
669624047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
669724047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
669824047306Smrg	fi
669924047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6700bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6701bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6702bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6703bdc460c5Smrgthen :
6704bdc460c5Smrg  printf %s "(cached) " >&6
67057015785aSmrgelse case e in #(
67067015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
670724047306Smrg/* end confdefs.h.  */
670824047306Smrgint i;
670924047306Smrg_ACEOF
6710bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
6711bdc460c5Smrgthen :
671224047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
67137015785aSmrgelse case e in #(
67147015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
67157015785aSmrgesac
671624047306Smrgfi
67177015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
67187015785aSmrgesac
671924047306Smrgfi
6720bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6721bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
672224047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
672324047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
672424047306Smrgfi
672524047306Smrg
672624047306Smrgfound="no"
672724047306Smrg
672824047306Smrg	if test $found = "no" ; then
672924047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
673024047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
673124047306Smrg		fi
673224047306Smrg
673324047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
673424047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
673524047306Smrg		fi
673624047306Smrg
673724047306Smrg		CFLAGS="$CFLAGS -Wuninitialized"
673824047306Smrg
6739bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6740bdc460c5Smrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; }
674124047306Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
6742bdc460c5Smrg		if eval test \${$cacheid+y}
6743bdc460c5Smrgthen :
6744bdc460c5Smrg  printf %s "(cached) " >&6
67457015785aSmrgelse case e in #(
67467015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
674724047306Smrg/* end confdefs.h.  */
674824047306Smrgint i;
674924047306Smrgint
6750bdc460c5Smrgmain (void)
675124047306Smrg{
675224047306Smrg
675324047306Smrg  ;
675424047306Smrg  return 0;
675524047306Smrg}
675624047306Smrg_ACEOF
6757bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
6758bdc460c5Smrgthen :
675924047306Smrg  eval $cacheid=yes
67607015785aSmrgelse case e in #(
67617015785aSmrg  e) eval $cacheid=no ;;
67627015785aSmrgesac
676324047306Smrgfi
6764bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
67657015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
67667015785aSmrgesac
676724047306Smrgfi
676824047306Smrg
676924047306Smrg
677024047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
677124047306Smrg
677224047306Smrg		eval supported=\$$cacheid
6773bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6774bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
677524047306Smrg		if test "$supported" = "yes" ; then
677624047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
677724047306Smrg			found="yes"
677824047306Smrg		fi
677924047306Smrg	fi
678024047306Smrg
678124047306Smrg
678224047306Smrg
678324047306Smrg
678424047306Smrg
678524047306Smrg
678624047306Smrg
678724047306Smrg
678824047306Smrg
678924047306Smrg
679024047306Smrg
679124047306Smrg
679224047306Smrg
679324047306Smrg
679424047306Smrg
679524047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
679624047306Smrg
679724047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
679824047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6799bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6800bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6801bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6802bdc460c5Smrgthen :
6803bdc460c5Smrg  printf %s "(cached) " >&6
68047015785aSmrgelse case e in #(
68057015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
680624047306Smrg/* end confdefs.h.  */
680724047306Smrgint i;
680824047306Smrg_ACEOF
6809bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
6810bdc460c5Smrgthen :
681124047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
68127015785aSmrgelse case e in #(
68137015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
68147015785aSmrgesac
681524047306Smrgfi
68167015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
68177015785aSmrgesac
681824047306Smrgfi
6819bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6820bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
682124047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
682224047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
682324047306Smrgfi
682424047306Smrg
682524047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
682624047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
682724047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
682824047306Smrg	fi
682924047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6830bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6831bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6832bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6833bdc460c5Smrgthen :
6834bdc460c5Smrg  printf %s "(cached) " >&6
68357015785aSmrgelse case e in #(
68367015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
683724047306Smrg/* end confdefs.h.  */
683824047306Smrgint i;
683924047306Smrg_ACEOF
6840bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
6841bdc460c5Smrgthen :
684224047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
68437015785aSmrgelse case e in #(
68447015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
68457015785aSmrgesac
684624047306Smrgfi
68477015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
68487015785aSmrgesac
684924047306Smrgfi
6850bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6851bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
685224047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
685324047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
685424047306Smrgfi
685524047306Smrg
685624047306Smrgfound="no"
685724047306Smrg
685824047306Smrg	if test $found = "no" ; then
685924047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
686024047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
686124047306Smrg		fi
686224047306Smrg
686324047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
686424047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
686524047306Smrg		fi
686624047306Smrg
686724047306Smrg		CFLAGS="$CFLAGS -Wshadow"
686824047306Smrg
6869bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6870bdc460c5Smrgprintf %s "checking if $CC supports -Wshadow... " >&6; }
687124047306Smrg		cacheid=xorg_cv_cc_flag__Wshadow
6872bdc460c5Smrg		if eval test \${$cacheid+y}
6873bdc460c5Smrgthen :
6874bdc460c5Smrg  printf %s "(cached) " >&6
68757015785aSmrgelse case e in #(
68767015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
687724047306Smrg/* end confdefs.h.  */
687824047306Smrgint i;
687924047306Smrgint
6880bdc460c5Smrgmain (void)
688124047306Smrg{
688224047306Smrg
688324047306Smrg  ;
688424047306Smrg  return 0;
688524047306Smrg}
688624047306Smrg_ACEOF
6887bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
6888bdc460c5Smrgthen :
688924047306Smrg  eval $cacheid=yes
68907015785aSmrgelse case e in #(
68917015785aSmrg  e) eval $cacheid=no ;;
68927015785aSmrgesac
689324047306Smrgfi
6894bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
68957015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
68967015785aSmrgesac
689724047306Smrgfi
689824047306Smrg
689924047306Smrg
690024047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
690124047306Smrg
690224047306Smrg		eval supported=\$$cacheid
6903bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6904bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
690524047306Smrg		if test "$supported" = "yes" ; then
690624047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
690724047306Smrg			found="yes"
690824047306Smrg		fi
690924047306Smrg	fi
691024047306Smrg
691124047306Smrg
691224047306Smrg
691324047306Smrg
691424047306Smrg
691524047306Smrg
691624047306Smrg
691724047306Smrg
691824047306Smrg
691924047306Smrg
692024047306Smrg
692124047306Smrg
692224047306Smrg
692324047306Smrg
692424047306Smrg
692524047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
692624047306Smrg
692724047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
692824047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6929bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6930bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6931bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6932bdc460c5Smrgthen :
6933bdc460c5Smrg  printf %s "(cached) " >&6
69347015785aSmrgelse case e in #(
69357015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
693624047306Smrg/* end confdefs.h.  */
693724047306Smrgint i;
693824047306Smrg_ACEOF
6939bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
6940bdc460c5Smrgthen :
694124047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
69427015785aSmrgelse case e in #(
69437015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
69447015785aSmrgesac
694524047306Smrgfi
69467015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
69477015785aSmrgesac
694824047306Smrgfi
6949bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6950bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
695124047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
695224047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
695324047306Smrgfi
695424047306Smrg
695524047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
695624047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
695724047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
695824047306Smrg	fi
695924047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6960bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6961bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6962bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6963bdc460c5Smrgthen :
6964bdc460c5Smrg  printf %s "(cached) " >&6
69657015785aSmrgelse case e in #(
69667015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
696724047306Smrg/* end confdefs.h.  */
696824047306Smrgint i;
696924047306Smrg_ACEOF
6970bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
6971bdc460c5Smrgthen :
697224047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
69737015785aSmrgelse case e in #(
69747015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
69757015785aSmrgesac
697624047306Smrgfi
69777015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
69787015785aSmrgesac
697924047306Smrgfi
6980bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6981bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
698224047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
698324047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
698424047306Smrgfi
698524047306Smrg
698624047306Smrgfound="no"
698724047306Smrg
698824047306Smrg	if test $found = "no" ; then
698924047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
699024047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
699124047306Smrg		fi
699224047306Smrg
699324047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
699424047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
699524047306Smrg		fi
699624047306Smrg
699724047306Smrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
699824047306Smrg
6999bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7000bdc460c5Smrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
700124047306Smrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7002bdc460c5Smrg		if eval test \${$cacheid+y}
7003bdc460c5Smrgthen :
7004bdc460c5Smrg  printf %s "(cached) " >&6
70057015785aSmrgelse case e in #(
70067015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
700724047306Smrg/* end confdefs.h.  */
700824047306Smrgint i;
700924047306Smrgint
7010bdc460c5Smrgmain (void)
701124047306Smrg{
701224047306Smrg
701324047306Smrg  ;
701424047306Smrg  return 0;
701524047306Smrg}
701624047306Smrg_ACEOF
7017bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
7018bdc460c5Smrgthen :
701924047306Smrg  eval $cacheid=yes
70207015785aSmrgelse case e in #(
70217015785aSmrg  e) eval $cacheid=no ;;
70227015785aSmrgesac
702324047306Smrgfi
7024bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
70257015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
70267015785aSmrgesac
702724047306Smrgfi
702824047306Smrg
702924047306Smrg
703024047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
703124047306Smrg
703224047306Smrg		eval supported=\$$cacheid
7033bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7034bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
703524047306Smrg		if test "$supported" = "yes" ; then
703624047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
703724047306Smrg			found="yes"
703824047306Smrg		fi
703924047306Smrg	fi
704024047306Smrg
704124047306Smrg
704224047306Smrg
704324047306Smrg
704424047306Smrg
704524047306Smrg
704624047306Smrg
704724047306Smrg
704824047306Smrg
704924047306Smrg
705024047306Smrg
705124047306Smrg
705224047306Smrg
705324047306Smrg
705424047306Smrg
705524047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
705624047306Smrg
705724047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
705824047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7059bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7060bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7061bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7062bdc460c5Smrgthen :
7063bdc460c5Smrg  printf %s "(cached) " >&6
70647015785aSmrgelse case e in #(
70657015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
706624047306Smrg/* end confdefs.h.  */
706724047306Smrgint i;
706824047306Smrg_ACEOF
7069bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
7070bdc460c5Smrgthen :
707124047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
70727015785aSmrgelse case e in #(
70737015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
70747015785aSmrgesac
707524047306Smrgfi
70767015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
70777015785aSmrgesac
707824047306Smrgfi
7079bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7080bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
708124047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
708224047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
708324047306Smrgfi
708424047306Smrg
708524047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
708624047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
708724047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
708824047306Smrg	fi
708924047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7090bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7091bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7092bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7093bdc460c5Smrgthen :
7094bdc460c5Smrg  printf %s "(cached) " >&6
70957015785aSmrgelse case e in #(
70967015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
709724047306Smrg/* end confdefs.h.  */
709824047306Smrgint i;
709924047306Smrg_ACEOF
7100bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
7101bdc460c5Smrgthen :
710224047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
71037015785aSmrgelse case e in #(
71047015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
71057015785aSmrgesac
710624047306Smrgfi
71077015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
71087015785aSmrgesac
710924047306Smrgfi
7110bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7111bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
711224047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
711324047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
711424047306Smrgfi
711524047306Smrg
711624047306Smrgfound="no"
711724047306Smrg
711824047306Smrg	if test $found = "no" ; then
711924047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
712024047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
712124047306Smrg		fi
712224047306Smrg
712324047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
712424047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
712524047306Smrg		fi
712624047306Smrg
712724047306Smrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
712824047306Smrg
7129bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7130bdc460c5Smrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
713124047306Smrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7132bdc460c5Smrg		if eval test \${$cacheid+y}
7133bdc460c5Smrgthen :
7134bdc460c5Smrg  printf %s "(cached) " >&6
71357015785aSmrgelse case e in #(
71367015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
713724047306Smrg/* end confdefs.h.  */
713824047306Smrgint i;
713924047306Smrgint
7140bdc460c5Smrgmain (void)
714124047306Smrg{
714224047306Smrg
714324047306Smrg  ;
714424047306Smrg  return 0;
714524047306Smrg}
714624047306Smrg_ACEOF
7147bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
7148bdc460c5Smrgthen :
714924047306Smrg  eval $cacheid=yes
71507015785aSmrgelse case e in #(
71517015785aSmrg  e) eval $cacheid=no ;;
71527015785aSmrgesac
715324047306Smrgfi
7154bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
71557015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
71567015785aSmrgesac
715724047306Smrgfi
715824047306Smrg
715924047306Smrg
716024047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
716124047306Smrg
716224047306Smrg		eval supported=\$$cacheid
7163bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7164bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
716524047306Smrg		if test "$supported" = "yes" ; then
716624047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
716724047306Smrg			found="yes"
716824047306Smrg		fi
716924047306Smrg	fi
717024047306Smrg
717124047306Smrg
717224047306Smrg
717324047306Smrg
717424047306Smrg
717524047306Smrg
717624047306Smrg
717724047306Smrg
717824047306Smrg
717924047306Smrg
718024047306Smrg
718124047306Smrg
718224047306Smrg
718324047306Smrg
718424047306Smrg
718524047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
718624047306Smrg
718724047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
718824047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7189bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7190bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7191bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7192bdc460c5Smrgthen :
7193bdc460c5Smrg  printf %s "(cached) " >&6
71947015785aSmrgelse case e in #(
71957015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
719624047306Smrg/* end confdefs.h.  */
719724047306Smrgint i;
719824047306Smrg_ACEOF
7199bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
7200bdc460c5Smrgthen :
720124047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
72027015785aSmrgelse case e in #(
72037015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
72047015785aSmrgesac
720524047306Smrgfi
72067015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
72077015785aSmrgesac
720824047306Smrgfi
7209bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7210bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
721124047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
721224047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
721324047306Smrgfi
721424047306Smrg
721524047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
721624047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
721724047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
721824047306Smrg	fi
721924047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7220bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7221bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7222bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7223bdc460c5Smrgthen :
7224bdc460c5Smrg  printf %s "(cached) " >&6
72257015785aSmrgelse case e in #(
72267015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
722724047306Smrg/* end confdefs.h.  */
722824047306Smrgint i;
722924047306Smrg_ACEOF
7230bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
7231bdc460c5Smrgthen :
723224047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
72337015785aSmrgelse case e in #(
72347015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
72357015785aSmrgesac
723624047306Smrgfi
72377015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
72387015785aSmrgesac
723924047306Smrgfi
7240bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7241bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
724224047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
724324047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
724424047306Smrgfi
724524047306Smrg
724624047306Smrgfound="no"
724724047306Smrg
724824047306Smrg	if test $found = "no" ; then
724924047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
725024047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
725124047306Smrg		fi
725224047306Smrg
725324047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
725424047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
725524047306Smrg		fi
725624047306Smrg
725724047306Smrg		CFLAGS="$CFLAGS -Wredundant-decls"
725824047306Smrg
7259bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7260bdc460c5Smrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; }
726124047306Smrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
7262bdc460c5Smrg		if eval test \${$cacheid+y}
7263bdc460c5Smrgthen :
7264bdc460c5Smrg  printf %s "(cached) " >&6
72657015785aSmrgelse case e in #(
72667015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
726724047306Smrg/* end confdefs.h.  */
726824047306Smrgint i;
726924047306Smrgint
7270bdc460c5Smrgmain (void)
727124047306Smrg{
727224047306Smrg
727324047306Smrg  ;
727424047306Smrg  return 0;
727524047306Smrg}
727624047306Smrg_ACEOF
7277bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
7278bdc460c5Smrgthen :
727924047306Smrg  eval $cacheid=yes
72807015785aSmrgelse case e in #(
72817015785aSmrg  e) eval $cacheid=no ;;
72827015785aSmrgesac
728324047306Smrgfi
7284bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
72857015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
72867015785aSmrgesac
728724047306Smrgfi
728824047306Smrg
728924047306Smrg
729024047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
729124047306Smrg
729224047306Smrg		eval supported=\$$cacheid
7293bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7294bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
729524047306Smrg		if test "$supported" = "yes" ; then
729624047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
729724047306Smrg			found="yes"
729824047306Smrg		fi
729924047306Smrg	fi
730024047306Smrg
730124047306Smrg
730224047306Smrg
730324047306Smrg
730424047306Smrg
730524047306Smrg
730624047306Smrg
730724047306Smrg
730824047306Smrg
730924047306Smrg
731024047306Smrg
731124047306Smrg
731224047306Smrg
731324047306Smrg
731424047306Smrg
731524047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
731624047306Smrg
731724047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
731824047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7319bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7320bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7321bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7322bdc460c5Smrgthen :
7323bdc460c5Smrg  printf %s "(cached) " >&6
73247015785aSmrgelse case e in #(
73257015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
732624047306Smrg/* end confdefs.h.  */
732724047306Smrgint i;
732824047306Smrg_ACEOF
7329bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
7330bdc460c5Smrgthen :
733124047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
73327015785aSmrgelse case e in #(
73337015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
73347015785aSmrgesac
733524047306Smrgfi
73367015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
73377015785aSmrgesac
733824047306Smrgfi
7339bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7340bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
734124047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
734224047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
734324047306Smrgfi
734424047306Smrg
734524047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
734624047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
734724047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
734824047306Smrg	fi
734924047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7350bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7351bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7352bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7353bdc460c5Smrgthen :
7354bdc460c5Smrg  printf %s "(cached) " >&6
73557015785aSmrgelse case e in #(
73567015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
735724047306Smrg/* end confdefs.h.  */
735824047306Smrgint i;
735924047306Smrg_ACEOF
7360bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
7361bdc460c5Smrgthen :
736224047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
73637015785aSmrgelse case e in #(
73647015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
73657015785aSmrgesac
736624047306Smrgfi
73677015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
73687015785aSmrgesac
736924047306Smrgfi
7370bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7371bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
737224047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
737324047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
737424047306Smrgfi
737524047306Smrg
737624047306Smrgfound="no"
737724047306Smrg
737824047306Smrg	if test $found = "no" ; then
737924047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
738024047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
738124047306Smrg		fi
738224047306Smrg
738324047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
738424047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
738524047306Smrg		fi
738624047306Smrg
738724047306Smrg		CFLAGS="$CFLAGS -Wlogical-op"
738824047306Smrg
7389bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7390bdc460c5Smrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; }
739124047306Smrg		cacheid=xorg_cv_cc_flag__Wlogical_op
7392bdc460c5Smrg		if eval test \${$cacheid+y}
7393bdc460c5Smrgthen :
7394bdc460c5Smrg  printf %s "(cached) " >&6
73957015785aSmrgelse case e in #(
73967015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
739724047306Smrg/* end confdefs.h.  */
739824047306Smrgint i;
739924047306Smrgint
7400bdc460c5Smrgmain (void)
740124047306Smrg{
740224047306Smrg
740324047306Smrg  ;
740424047306Smrg  return 0;
740524047306Smrg}
740624047306Smrg_ACEOF
7407bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
7408bdc460c5Smrgthen :
740924047306Smrg  eval $cacheid=yes
74107015785aSmrgelse case e in #(
74117015785aSmrg  e) eval $cacheid=no ;;
74127015785aSmrgesac
741324047306Smrgfi
7414bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
74157015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
74167015785aSmrgesac
741724047306Smrgfi
741824047306Smrg
741924047306Smrg
742024047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
742124047306Smrg
742224047306Smrg		eval supported=\$$cacheid
7423bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7424bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
742524047306Smrg		if test "$supported" = "yes" ; then
742624047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
742724047306Smrg			found="yes"
742824047306Smrg		fi
742924047306Smrg	fi
743024047306Smrg
743124047306Smrg
743224047306Smrg
743324047306Smrg# These are currently disabled because they are noisy.  They will be enabled
743424047306Smrg# in the future once the codebase is sufficiently modernized to silence
743524047306Smrg# them.  For now, I don't want them to drown out the other warnings.
743624047306Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
743724047306Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
743824047306Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
743924047306Smrg
74407015785aSmrg# Turn some warnings into errors, so we don't accidentally get successful builds
744124047306Smrg# when there are problems that should be fixed.
744224047306Smrg
744324047306Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
744424047306Smrg
744524047306Smrg
744624047306Smrg
744724047306Smrg
744824047306Smrg
744924047306Smrg
745024047306Smrg
745124047306Smrg
745224047306Smrg
745324047306Smrg
745424047306Smrg
745524047306Smrg
745624047306Smrg
745724047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
745824047306Smrg
745924047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
746024047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7461bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7462bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7463bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7464bdc460c5Smrgthen :
7465bdc460c5Smrg  printf %s "(cached) " >&6
74667015785aSmrgelse case e in #(
74677015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
746824047306Smrg/* end confdefs.h.  */
746924047306Smrgint i;
747024047306Smrg_ACEOF
7471bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
7472bdc460c5Smrgthen :
747324047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
74747015785aSmrgelse case e in #(
74757015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
74767015785aSmrgesac
747724047306Smrgfi
74787015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
74797015785aSmrgesac
748024047306Smrgfi
7481bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7482bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
748324047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
748424047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
748524047306Smrgfi
748624047306Smrg
748724047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
748824047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
748924047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
749024047306Smrg	fi
749124047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7492bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7493bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7494bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7495bdc460c5Smrgthen :
7496bdc460c5Smrg  printf %s "(cached) " >&6
74977015785aSmrgelse case e in #(
74987015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
749924047306Smrg/* end confdefs.h.  */
750024047306Smrgint i;
750124047306Smrg_ACEOF
7502bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
7503bdc460c5Smrgthen :
750424047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
75057015785aSmrgelse case e in #(
75067015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
75077015785aSmrgesac
750824047306Smrgfi
75097015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
75107015785aSmrgesac
751124047306Smrgfi
7512bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7513bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
751424047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
751524047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
751624047306Smrgfi
751724047306Smrg
751824047306Smrgfound="no"
751924047306Smrg
752024047306Smrg	if test $found = "no" ; then
752124047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
752224047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
752324047306Smrg		fi
752424047306Smrg
752524047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
752624047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
752724047306Smrg		fi
752824047306Smrg
752924047306Smrg		CFLAGS="$CFLAGS -Werror=implicit"
753024047306Smrg
7531bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7532bdc460c5Smrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; }
753324047306Smrg		cacheid=xorg_cv_cc_flag__Werror_implicit
7534bdc460c5Smrg		if eval test \${$cacheid+y}
7535bdc460c5Smrgthen :
7536bdc460c5Smrg  printf %s "(cached) " >&6
75377015785aSmrgelse case e in #(
75387015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
753924047306Smrg/* end confdefs.h.  */
754024047306Smrgint i;
754124047306Smrgint
7542bdc460c5Smrgmain (void)
754324047306Smrg{
754424047306Smrg
754524047306Smrg  ;
754624047306Smrg  return 0;
754724047306Smrg}
754824047306Smrg_ACEOF
7549bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
7550bdc460c5Smrgthen :
755124047306Smrg  eval $cacheid=yes
75527015785aSmrgelse case e in #(
75537015785aSmrg  e) eval $cacheid=no ;;
75547015785aSmrgesac
755524047306Smrgfi
7556bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
75577015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
75587015785aSmrgesac
755924047306Smrgfi
756024047306Smrg
756124047306Smrg
756224047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
756324047306Smrg
756424047306Smrg		eval supported=\$$cacheid
7565bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7566bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
756724047306Smrg		if test "$supported" = "yes" ; then
756824047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
756924047306Smrg			found="yes"
757024047306Smrg		fi
757124047306Smrg	fi
757224047306Smrg
757324047306Smrg	if test $found = "no" ; then
757424047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
757524047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
757624047306Smrg		fi
757724047306Smrg
757824047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
757924047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
758024047306Smrg		fi
758124047306Smrg
758224047306Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
758324047306Smrg
7584bdc460c5Smrg		{ 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
7585bdc460c5Smrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
758624047306Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7587bdc460c5Smrg		if eval test \${$cacheid+y}
7588bdc460c5Smrgthen :
7589bdc460c5Smrg  printf %s "(cached) " >&6
75907015785aSmrgelse case e in #(
75917015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
759224047306Smrg/* end confdefs.h.  */
759324047306Smrgint i;
759424047306Smrgint
7595bdc460c5Smrgmain (void)
759624047306Smrg{
759724047306Smrg
759824047306Smrg  ;
759924047306Smrg  return 0;
760024047306Smrg}
760124047306Smrg_ACEOF
7602bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
7603bdc460c5Smrgthen :
760424047306Smrg  eval $cacheid=yes
76057015785aSmrgelse case e in #(
76067015785aSmrg  e) eval $cacheid=no ;;
76077015785aSmrgesac
760824047306Smrgfi
7609bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
76107015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
76117015785aSmrgesac
761224047306Smrgfi
761324047306Smrg
761424047306Smrg
761524047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
761624047306Smrg
761724047306Smrg		eval supported=\$$cacheid
7618bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7619bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
762024047306Smrg		if test "$supported" = "yes" ; then
762124047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
762224047306Smrg			found="yes"
762324047306Smrg		fi
762424047306Smrg	fi
762524047306Smrg
762624047306Smrg
762724047306Smrg
762824047306Smrg
762924047306Smrg
763024047306Smrg
763124047306Smrg
763224047306Smrg
763324047306Smrg
763424047306Smrg
763524047306Smrg
763624047306Smrg
763724047306Smrg
763824047306Smrg
763924047306Smrg
764024047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
764124047306Smrg
764224047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
764324047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7644bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7645bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7646bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7647bdc460c5Smrgthen :
7648bdc460c5Smrg  printf %s "(cached) " >&6
76497015785aSmrgelse case e in #(
76507015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
765124047306Smrg/* end confdefs.h.  */
765224047306Smrgint i;
765324047306Smrg_ACEOF
7654bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
7655bdc460c5Smrgthen :
765624047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
76577015785aSmrgelse case e in #(
76587015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
76597015785aSmrgesac
766024047306Smrgfi
76617015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
76627015785aSmrgesac
766324047306Smrgfi
7664bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7665bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
766624047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
766724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
766824047306Smrgfi
766924047306Smrg
767024047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
767124047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
767224047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
767324047306Smrg	fi
767424047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7675bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7676bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7677bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7678bdc460c5Smrgthen :
7679bdc460c5Smrg  printf %s "(cached) " >&6
76807015785aSmrgelse case e in #(
76817015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
768224047306Smrg/* end confdefs.h.  */
768324047306Smrgint i;
768424047306Smrg_ACEOF
7685bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
7686bdc460c5Smrgthen :
768724047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
76887015785aSmrgelse case e in #(
76897015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
76907015785aSmrgesac
769124047306Smrgfi
76927015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
76937015785aSmrgesac
769424047306Smrgfi
7695bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7696bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
769724047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
769824047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
769924047306Smrgfi
770024047306Smrg
770124047306Smrgfound="no"
770224047306Smrg
770324047306Smrg	if test $found = "no" ; then
770424047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
770524047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
770624047306Smrg		fi
770724047306Smrg
770824047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
770924047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
771024047306Smrg		fi
771124047306Smrg
771224047306Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
771324047306Smrg
7714bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7715bdc460c5Smrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; }
771624047306Smrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
7717bdc460c5Smrg		if eval test \${$cacheid+y}
7718bdc460c5Smrgthen :
7719bdc460c5Smrg  printf %s "(cached) " >&6
77207015785aSmrgelse case e in #(
77217015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
772224047306Smrg/* end confdefs.h.  */
772324047306Smrgint i;
772424047306Smrgint
7725bdc460c5Smrgmain (void)
772624047306Smrg{
772724047306Smrg
772824047306Smrg  ;
772924047306Smrg  return 0;
773024047306Smrg}
773124047306Smrg_ACEOF
7732bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
7733bdc460c5Smrgthen :
773424047306Smrg  eval $cacheid=yes
77357015785aSmrgelse case e in #(
77367015785aSmrg  e) eval $cacheid=no ;;
77377015785aSmrgesac
773824047306Smrgfi
7739bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
77407015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
77417015785aSmrgesac
774224047306Smrgfi
774324047306Smrg
774424047306Smrg
774524047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
774624047306Smrg
774724047306Smrg		eval supported=\$$cacheid
7748bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7749bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
775024047306Smrg		if test "$supported" = "yes" ; then
775124047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
775224047306Smrg			found="yes"
775324047306Smrg		fi
775424047306Smrg	fi
775524047306Smrg
775624047306Smrg
775724047306Smrg
775824047306Smrg
775924047306Smrg
776024047306Smrg
776124047306Smrg
776224047306Smrg
776324047306Smrg
776424047306Smrg
776524047306Smrg
776624047306Smrg
776724047306Smrg
776824047306Smrg
776924047306Smrg
777024047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
777124047306Smrg
777224047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
777324047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7774bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7775bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7776bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7777bdc460c5Smrgthen :
7778bdc460c5Smrg  printf %s "(cached) " >&6
77797015785aSmrgelse case e in #(
77807015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
778124047306Smrg/* end confdefs.h.  */
778224047306Smrgint i;
778324047306Smrg_ACEOF
7784bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
7785bdc460c5Smrgthen :
778624047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
77877015785aSmrgelse case e in #(
77887015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
77897015785aSmrgesac
779024047306Smrgfi
77917015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
77927015785aSmrgesac
779324047306Smrgfi
7794bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7795bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
779624047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
779724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
779824047306Smrgfi
779924047306Smrg
780024047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
780124047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
780224047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
780324047306Smrg	fi
780424047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7805bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7806bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7807bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7808bdc460c5Smrgthen :
7809bdc460c5Smrg  printf %s "(cached) " >&6
78107015785aSmrgelse case e in #(
78117015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
781224047306Smrg/* end confdefs.h.  */
781324047306Smrgint i;
781424047306Smrg_ACEOF
7815bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
7816bdc460c5Smrgthen :
781724047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
78187015785aSmrgelse case e in #(
78197015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
78207015785aSmrgesac
782124047306Smrgfi
78227015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
78237015785aSmrgesac
782424047306Smrgfi
7825bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7826bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
782724047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
782824047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
782924047306Smrgfi
783024047306Smrg
783124047306Smrgfound="no"
783224047306Smrg
783324047306Smrg	if test $found = "no" ; then
783424047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
783524047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
783624047306Smrg		fi
783724047306Smrg
783824047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
783924047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
784024047306Smrg		fi
784124047306Smrg
784224047306Smrg		CFLAGS="$CFLAGS -Werror=init-self"
784324047306Smrg
7844bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7845bdc460c5Smrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; }
784624047306Smrg		cacheid=xorg_cv_cc_flag__Werror_init_self
7847bdc460c5Smrg		if eval test \${$cacheid+y}
7848bdc460c5Smrgthen :
7849bdc460c5Smrg  printf %s "(cached) " >&6
78507015785aSmrgelse case e in #(
78517015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
785224047306Smrg/* end confdefs.h.  */
785324047306Smrgint i;
785424047306Smrgint
7855bdc460c5Smrgmain (void)
785624047306Smrg{
785724047306Smrg
785824047306Smrg  ;
785924047306Smrg  return 0;
786024047306Smrg}
786124047306Smrg_ACEOF
7862bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
7863bdc460c5Smrgthen :
786424047306Smrg  eval $cacheid=yes
78657015785aSmrgelse case e in #(
78667015785aSmrg  e) eval $cacheid=no ;;
78677015785aSmrgesac
786824047306Smrgfi
7869bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
78707015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
78717015785aSmrgesac
787224047306Smrgfi
787324047306Smrg
787424047306Smrg
787524047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
787624047306Smrg
787724047306Smrg		eval supported=\$$cacheid
7878bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7879bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
788024047306Smrg		if test "$supported" = "yes" ; then
788124047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
788224047306Smrg			found="yes"
788324047306Smrg		fi
788424047306Smrg	fi
788524047306Smrg
788624047306Smrg
788724047306Smrg
788824047306Smrg
788924047306Smrg
789024047306Smrg
789124047306Smrg
789224047306Smrg
789324047306Smrg
789424047306Smrg
789524047306Smrg
789624047306Smrg
789724047306Smrg
789824047306Smrg
789924047306Smrg
790024047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
790124047306Smrg
790224047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
790324047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7904bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7905bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7906bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7907bdc460c5Smrgthen :
7908bdc460c5Smrg  printf %s "(cached) " >&6
79097015785aSmrgelse case e in #(
79107015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
791124047306Smrg/* end confdefs.h.  */
791224047306Smrgint i;
791324047306Smrg_ACEOF
7914bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
7915bdc460c5Smrgthen :
791624047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
79177015785aSmrgelse case e in #(
79187015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
79197015785aSmrgesac
792024047306Smrgfi
79217015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
79227015785aSmrgesac
792324047306Smrgfi
7924bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7925bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
792624047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
792724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
792824047306Smrgfi
792924047306Smrg
793024047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
793124047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
793224047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
793324047306Smrg	fi
793424047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7935bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7936bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7937bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7938bdc460c5Smrgthen :
7939bdc460c5Smrg  printf %s "(cached) " >&6
79407015785aSmrgelse case e in #(
79417015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
794224047306Smrg/* end confdefs.h.  */
794324047306Smrgint i;
794424047306Smrg_ACEOF
7945bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
7946bdc460c5Smrgthen :
794724047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
79487015785aSmrgelse case e in #(
79497015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
79507015785aSmrgesac
795124047306Smrgfi
79527015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
79537015785aSmrgesac
795424047306Smrgfi
7955bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7956bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
795724047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
795824047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
795924047306Smrgfi
796024047306Smrg
796124047306Smrgfound="no"
796224047306Smrg
796324047306Smrg	if test $found = "no" ; then
796424047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
796524047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
796624047306Smrg		fi
796724047306Smrg
796824047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
796924047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
797024047306Smrg		fi
797124047306Smrg
797224047306Smrg		CFLAGS="$CFLAGS -Werror=main"
797324047306Smrg
7974bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7975bdc460c5Smrgprintf %s "checking if $CC supports -Werror=main... " >&6; }
797624047306Smrg		cacheid=xorg_cv_cc_flag__Werror_main
7977bdc460c5Smrg		if eval test \${$cacheid+y}
7978bdc460c5Smrgthen :
7979bdc460c5Smrg  printf %s "(cached) " >&6
79807015785aSmrgelse case e in #(
79817015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
798224047306Smrg/* end confdefs.h.  */
798324047306Smrgint i;
798424047306Smrgint
7985bdc460c5Smrgmain (void)
798624047306Smrg{
798724047306Smrg
798824047306Smrg  ;
798924047306Smrg  return 0;
799024047306Smrg}
799124047306Smrg_ACEOF
7992bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
7993bdc460c5Smrgthen :
799424047306Smrg  eval $cacheid=yes
79957015785aSmrgelse case e in #(
79967015785aSmrg  e) eval $cacheid=no ;;
79977015785aSmrgesac
799824047306Smrgfi
7999bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
80007015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
80017015785aSmrgesac
800224047306Smrgfi
800324047306Smrg
800424047306Smrg
800524047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
800624047306Smrg
800724047306Smrg		eval supported=\$$cacheid
8008bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8009bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
801024047306Smrg		if test "$supported" = "yes" ; then
801124047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
801224047306Smrg			found="yes"
801324047306Smrg		fi
801424047306Smrg	fi
801524047306Smrg
801624047306Smrg
801724047306Smrg
801824047306Smrg
801924047306Smrg
802024047306Smrg
802124047306Smrg
802224047306Smrg
802324047306Smrg
802424047306Smrg
802524047306Smrg
802624047306Smrg
802724047306Smrg
802824047306Smrg
802924047306Smrg
803024047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
803124047306Smrg
803224047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
803324047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8034bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8035bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8036bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8037bdc460c5Smrgthen :
8038bdc460c5Smrg  printf %s "(cached) " >&6
80397015785aSmrgelse case e in #(
80407015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
804124047306Smrg/* end confdefs.h.  */
804224047306Smrgint i;
804324047306Smrg_ACEOF
8044bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
8045bdc460c5Smrgthen :
804624047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
80477015785aSmrgelse case e in #(
80487015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
80497015785aSmrgesac
805024047306Smrgfi
80517015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
80527015785aSmrgesac
805324047306Smrgfi
8054bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8055bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
805624047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
805724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
805824047306Smrgfi
805924047306Smrg
806024047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
806124047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
806224047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
806324047306Smrg	fi
806424047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8065bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8066bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8067bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8068bdc460c5Smrgthen :
8069bdc460c5Smrg  printf %s "(cached) " >&6
80707015785aSmrgelse case e in #(
80717015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
807224047306Smrg/* end confdefs.h.  */
807324047306Smrgint i;
807424047306Smrg_ACEOF
8075bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
8076bdc460c5Smrgthen :
807724047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
80787015785aSmrgelse case e in #(
80797015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
80807015785aSmrgesac
808124047306Smrgfi
80827015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
80837015785aSmrgesac
808424047306Smrgfi
8085bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8086bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
808724047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
808824047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
808924047306Smrgfi
809024047306Smrg
809124047306Smrgfound="no"
809224047306Smrg
809324047306Smrg	if test $found = "no" ; then
809424047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
809524047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
809624047306Smrg		fi
809724047306Smrg
809824047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
809924047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
810024047306Smrg		fi
810124047306Smrg
810224047306Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
810324047306Smrg
8104bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8105bdc460c5Smrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
810624047306Smrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8107bdc460c5Smrg		if eval test \${$cacheid+y}
8108bdc460c5Smrgthen :
8109bdc460c5Smrg  printf %s "(cached) " >&6
81107015785aSmrgelse case e in #(
81117015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
811224047306Smrg/* end confdefs.h.  */
811324047306Smrgint i;
811424047306Smrgint
8115bdc460c5Smrgmain (void)
811624047306Smrg{
811724047306Smrg
811824047306Smrg  ;
811924047306Smrg  return 0;
812024047306Smrg}
812124047306Smrg_ACEOF
8122bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
8123bdc460c5Smrgthen :
812424047306Smrg  eval $cacheid=yes
81257015785aSmrgelse case e in #(
81267015785aSmrg  e) eval $cacheid=no ;;
81277015785aSmrgesac
812824047306Smrgfi
8129bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
81307015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
81317015785aSmrgesac
813224047306Smrgfi
813324047306Smrg
813424047306Smrg
813524047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
813624047306Smrg
813724047306Smrg		eval supported=\$$cacheid
8138bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8139bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
814024047306Smrg		if test "$supported" = "yes" ; then
814124047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
814224047306Smrg			found="yes"
814324047306Smrg		fi
814424047306Smrg	fi
814524047306Smrg
814624047306Smrg
814724047306Smrg
814824047306Smrg
814924047306Smrg
815024047306Smrg
815124047306Smrg
815224047306Smrg
815324047306Smrg
815424047306Smrg
815524047306Smrg
815624047306Smrg
815724047306Smrg
815824047306Smrg
815924047306Smrg
816024047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
816124047306Smrg
816224047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
816324047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8164bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8165bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8166bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8167bdc460c5Smrgthen :
8168bdc460c5Smrg  printf %s "(cached) " >&6
81697015785aSmrgelse case e in #(
81707015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
817124047306Smrg/* end confdefs.h.  */
817224047306Smrgint i;
817324047306Smrg_ACEOF
8174bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
8175bdc460c5Smrgthen :
817624047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
81777015785aSmrgelse case e in #(
81787015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
81797015785aSmrgesac
818024047306Smrgfi
81817015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
81827015785aSmrgesac
818324047306Smrgfi
8184bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8185bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
818624047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
818724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
818824047306Smrgfi
818924047306Smrg
819024047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
819124047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
819224047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
819324047306Smrg	fi
819424047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8195bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8196bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8197bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8198bdc460c5Smrgthen :
8199bdc460c5Smrg  printf %s "(cached) " >&6
82007015785aSmrgelse case e in #(
82017015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
820224047306Smrg/* end confdefs.h.  */
820324047306Smrgint i;
820424047306Smrg_ACEOF
8205bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
8206bdc460c5Smrgthen :
820724047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
82087015785aSmrgelse case e in #(
82097015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
82107015785aSmrgesac
821124047306Smrgfi
82127015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
82137015785aSmrgesac
821424047306Smrgfi
8215bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8216bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
821724047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
821824047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
821924047306Smrgfi
822024047306Smrg
822124047306Smrgfound="no"
822224047306Smrg
822324047306Smrg	if test $found = "no" ; then
822424047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
822524047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
822624047306Smrg		fi
822724047306Smrg
822824047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
822924047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
823024047306Smrg		fi
823124047306Smrg
823224047306Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
823324047306Smrg
8234bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8235bdc460c5Smrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
823624047306Smrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8237bdc460c5Smrg		if eval test \${$cacheid+y}
8238bdc460c5Smrgthen :
8239bdc460c5Smrg  printf %s "(cached) " >&6
82407015785aSmrgelse case e in #(
82417015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
824224047306Smrg/* end confdefs.h.  */
824324047306Smrgint i;
824424047306Smrgint
8245bdc460c5Smrgmain (void)
824624047306Smrg{
824724047306Smrg
824824047306Smrg  ;
824924047306Smrg  return 0;
825024047306Smrg}
825124047306Smrg_ACEOF
8252bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
8253bdc460c5Smrgthen :
825424047306Smrg  eval $cacheid=yes
82557015785aSmrgelse case e in #(
82567015785aSmrg  e) eval $cacheid=no ;;
82577015785aSmrgesac
825824047306Smrgfi
8259bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
82607015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
82617015785aSmrgesac
826224047306Smrgfi
826324047306Smrg
826424047306Smrg
826524047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
826624047306Smrg
826724047306Smrg		eval supported=\$$cacheid
8268bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8269bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
827024047306Smrg		if test "$supported" = "yes" ; then
827124047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
827224047306Smrg			found="yes"
827324047306Smrg		fi
827424047306Smrg	fi
827524047306Smrg
827624047306Smrg
827724047306Smrg
827824047306Smrg
827924047306Smrg
828024047306Smrg
828124047306Smrg
828224047306Smrg
828324047306Smrg
828424047306Smrg
828524047306Smrg
828624047306Smrg
828724047306Smrg
828824047306Smrg
828924047306Smrg
829024047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
829124047306Smrg
829224047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
829324047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8294bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8295bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8296bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8297bdc460c5Smrgthen :
8298bdc460c5Smrg  printf %s "(cached) " >&6
82997015785aSmrgelse case e in #(
83007015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
830124047306Smrg/* end confdefs.h.  */
830224047306Smrgint i;
830324047306Smrg_ACEOF
8304bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
8305bdc460c5Smrgthen :
830624047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
83077015785aSmrgelse case e in #(
83087015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
83097015785aSmrgesac
831024047306Smrgfi
83117015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
83127015785aSmrgesac
831324047306Smrgfi
8314bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8315bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
831624047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
831724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
831824047306Smrgfi
831924047306Smrg
832024047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
832124047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
832224047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
832324047306Smrg	fi
832424047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8325bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8326bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8327bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8328bdc460c5Smrgthen :
8329bdc460c5Smrg  printf %s "(cached) " >&6
83307015785aSmrgelse case e in #(
83317015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
833224047306Smrg/* end confdefs.h.  */
833324047306Smrgint i;
833424047306Smrg_ACEOF
8335bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
8336bdc460c5Smrgthen :
833724047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
83387015785aSmrgelse case e in #(
83397015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
83407015785aSmrgesac
834124047306Smrgfi
83427015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
83437015785aSmrgesac
834424047306Smrgfi
8345bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8346bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
834724047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
834824047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
834924047306Smrgfi
835024047306Smrg
835124047306Smrgfound="no"
835224047306Smrg
835324047306Smrg	if test $found = "no" ; then
835424047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
835524047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
835624047306Smrg		fi
835724047306Smrg
835824047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
835924047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
836024047306Smrg		fi
836124047306Smrg
836224047306Smrg		CFLAGS="$CFLAGS -Werror=return-type"
836324047306Smrg
8364bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8365bdc460c5Smrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; }
836624047306Smrg		cacheid=xorg_cv_cc_flag__Werror_return_type
8367bdc460c5Smrg		if eval test \${$cacheid+y}
8368bdc460c5Smrgthen :
8369bdc460c5Smrg  printf %s "(cached) " >&6
83707015785aSmrgelse case e in #(
83717015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
837224047306Smrg/* end confdefs.h.  */
837324047306Smrgint i;
837424047306Smrgint
8375bdc460c5Smrgmain (void)
837624047306Smrg{
837724047306Smrg
837824047306Smrg  ;
837924047306Smrg  return 0;
838024047306Smrg}
838124047306Smrg_ACEOF
8382bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
8383bdc460c5Smrgthen :
838424047306Smrg  eval $cacheid=yes
83857015785aSmrgelse case e in #(
83867015785aSmrg  e) eval $cacheid=no ;;
83877015785aSmrgesac
838824047306Smrgfi
8389bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
83907015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
83917015785aSmrgesac
839224047306Smrgfi
839324047306Smrg
839424047306Smrg
839524047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
839624047306Smrg
839724047306Smrg		eval supported=\$$cacheid
8398bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8399bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
840024047306Smrg		if test "$supported" = "yes" ; then
840124047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
840224047306Smrg			found="yes"
840324047306Smrg		fi
840424047306Smrg	fi
840524047306Smrg
840624047306Smrg	if test $found = "no" ; then
840724047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
840824047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
840924047306Smrg		fi
841024047306Smrg
841124047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
841224047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
841324047306Smrg		fi
841424047306Smrg
841524047306Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
841624047306Smrg
8417bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8418bdc460c5Smrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
841924047306Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8420bdc460c5Smrg		if eval test \${$cacheid+y}
8421bdc460c5Smrgthen :
8422bdc460c5Smrg  printf %s "(cached) " >&6
84237015785aSmrgelse case e in #(
84247015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
842524047306Smrg/* end confdefs.h.  */
842624047306Smrgint i;
842724047306Smrgint
8428bdc460c5Smrgmain (void)
842924047306Smrg{
843024047306Smrg
843124047306Smrg  ;
843224047306Smrg  return 0;
843324047306Smrg}
843424047306Smrg_ACEOF
8435bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
8436bdc460c5Smrgthen :
843724047306Smrg  eval $cacheid=yes
84387015785aSmrgelse case e in #(
84397015785aSmrg  e) eval $cacheid=no ;;
84407015785aSmrgesac
844124047306Smrgfi
8442bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
84437015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
84447015785aSmrgesac
844524047306Smrgfi
844624047306Smrg
844724047306Smrg
844824047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
844924047306Smrg
845024047306Smrg		eval supported=\$$cacheid
8451bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8452bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
845324047306Smrg		if test "$supported" = "yes" ; then
845424047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
845524047306Smrg			found="yes"
845624047306Smrg		fi
845724047306Smrg	fi
845824047306Smrg
845924047306Smrg
846024047306Smrg
846124047306Smrg
846224047306Smrg
846324047306Smrg
846424047306Smrg
846524047306Smrg
846624047306Smrg
846724047306Smrg
846824047306Smrg
846924047306Smrg
847024047306Smrg
847124047306Smrg
847224047306Smrg
847324047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
847424047306Smrg
847524047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
847624047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8477bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8478bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8479bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8480bdc460c5Smrgthen :
8481bdc460c5Smrg  printf %s "(cached) " >&6
84827015785aSmrgelse case e in #(
84837015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
848424047306Smrg/* end confdefs.h.  */
848524047306Smrgint i;
848624047306Smrg_ACEOF
8487bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
8488bdc460c5Smrgthen :
848924047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
84907015785aSmrgelse case e in #(
84917015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
84927015785aSmrgesac
849324047306Smrgfi
84947015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
84957015785aSmrgesac
849624047306Smrgfi
8497bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8498bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
849924047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
850024047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
850124047306Smrgfi
850224047306Smrg
850324047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
850424047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
850524047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
850624047306Smrg	fi
850724047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8508bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8509bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8510bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8511bdc460c5Smrgthen :
8512bdc460c5Smrg  printf %s "(cached) " >&6
85137015785aSmrgelse case e in #(
85147015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
851524047306Smrg/* end confdefs.h.  */
851624047306Smrgint i;
851724047306Smrg_ACEOF
8518bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
8519bdc460c5Smrgthen :
852024047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
85217015785aSmrgelse case e in #(
85227015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
85237015785aSmrgesac
852424047306Smrgfi
85257015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
85267015785aSmrgesac
852724047306Smrgfi
8528bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8529bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
853024047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
853124047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
853224047306Smrgfi
853324047306Smrg
853424047306Smrgfound="no"
853524047306Smrg
853624047306Smrg	if test $found = "no" ; then
853724047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
853824047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
853924047306Smrg		fi
854024047306Smrg
854124047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
854224047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
854324047306Smrg		fi
854424047306Smrg
854524047306Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
854624047306Smrg
8547bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8548bdc460c5Smrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
854924047306Smrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8550bdc460c5Smrg		if eval test \${$cacheid+y}
8551bdc460c5Smrgthen :
8552bdc460c5Smrg  printf %s "(cached) " >&6
85537015785aSmrgelse case e in #(
85547015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
855524047306Smrg/* end confdefs.h.  */
855624047306Smrgint i;
855724047306Smrgint
8558bdc460c5Smrgmain (void)
855924047306Smrg{
856024047306Smrg
856124047306Smrg  ;
856224047306Smrg  return 0;
856324047306Smrg}
856424047306Smrg_ACEOF
8565bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
8566bdc460c5Smrgthen :
856724047306Smrg  eval $cacheid=yes
85687015785aSmrgelse case e in #(
85697015785aSmrg  e) eval $cacheid=no ;;
85707015785aSmrgesac
857124047306Smrgfi
8572bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
85737015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
85747015785aSmrgesac
857524047306Smrgfi
857624047306Smrg
857724047306Smrg
857824047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
857924047306Smrg
858024047306Smrg		eval supported=\$$cacheid
8581bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8582bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
858324047306Smrg		if test "$supported" = "yes" ; then
858424047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
858524047306Smrg			found="yes"
858624047306Smrg		fi
858724047306Smrg	fi
858824047306Smrg
858924047306Smrg
859024047306Smrg
859124047306Smrg
859224047306Smrg
859324047306Smrg
859424047306Smrg
859524047306Smrg
859624047306Smrg
859724047306Smrg
859824047306Smrg
859924047306Smrg
860024047306Smrg
860124047306Smrg
860224047306Smrg
860324047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
860424047306Smrg
860524047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
860624047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8607bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8608bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8609bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8610bdc460c5Smrgthen :
8611bdc460c5Smrg  printf %s "(cached) " >&6
86127015785aSmrgelse case e in #(
86137015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
861424047306Smrg/* end confdefs.h.  */
861524047306Smrgint i;
861624047306Smrg_ACEOF
8617bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
8618bdc460c5Smrgthen :
861924047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
86207015785aSmrgelse case e in #(
86217015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
86227015785aSmrgesac
862324047306Smrgfi
86247015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
86257015785aSmrgesac
862624047306Smrgfi
8627bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8628bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
862924047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
863024047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
863124047306Smrgfi
863224047306Smrg
863324047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
863424047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
863524047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
863624047306Smrg	fi
863724047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8638bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8639bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8640bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8641bdc460c5Smrgthen :
8642bdc460c5Smrg  printf %s "(cached) " >&6
86437015785aSmrgelse case e in #(
86447015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
864524047306Smrg/* end confdefs.h.  */
864624047306Smrgint i;
864724047306Smrg_ACEOF
8648bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
8649bdc460c5Smrgthen :
865024047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
86517015785aSmrgelse case e in #(
86527015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
86537015785aSmrgesac
865424047306Smrgfi
86557015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
86567015785aSmrgesac
865724047306Smrgfi
8658bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8659bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
866024047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
866124047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
866224047306Smrgfi
866324047306Smrg
866424047306Smrgfound="no"
866524047306Smrg
866624047306Smrg	if test $found = "no" ; then
866724047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
866824047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
866924047306Smrg		fi
867024047306Smrg
867124047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
867224047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
867324047306Smrg		fi
867424047306Smrg
867524047306Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
867624047306Smrg
8677bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8678bdc460c5Smrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
867924047306Smrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8680bdc460c5Smrg		if eval test \${$cacheid+y}
8681bdc460c5Smrgthen :
8682bdc460c5Smrg  printf %s "(cached) " >&6
86837015785aSmrgelse case e in #(
86847015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
868524047306Smrg/* end confdefs.h.  */
868624047306Smrgint i;
868724047306Smrgint
8688bdc460c5Smrgmain (void)
868924047306Smrg{
869024047306Smrg
869124047306Smrg  ;
869224047306Smrg  return 0;
869324047306Smrg}
869424047306Smrg_ACEOF
8695bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
8696bdc460c5Smrgthen :
869724047306Smrg  eval $cacheid=yes
86987015785aSmrgelse case e in #(
86997015785aSmrg  e) eval $cacheid=no ;;
87007015785aSmrgesac
870124047306Smrgfi
8702bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
87037015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
87047015785aSmrgesac
870524047306Smrgfi
870624047306Smrg
870724047306Smrg
870824047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
870924047306Smrg
871024047306Smrg		eval supported=\$$cacheid
8711bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8712bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
871324047306Smrg		if test "$supported" = "yes" ; then
871424047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
871524047306Smrg			found="yes"
871624047306Smrg		fi
871724047306Smrg	fi
871824047306Smrg
871924047306Smrg
872024047306Smrg
872124047306Smrg
872224047306Smrg
872324047306Smrg
872424047306Smrg
872524047306Smrg
872624047306Smrg
872724047306Smrg
872824047306Smrg
872924047306Smrg
873024047306Smrg
873124047306Smrg
873224047306Smrg
873324047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
873424047306Smrg
873524047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
873624047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8737bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8738bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8739bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8740bdc460c5Smrgthen :
8741bdc460c5Smrg  printf %s "(cached) " >&6
87427015785aSmrgelse case e in #(
87437015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
874424047306Smrg/* end confdefs.h.  */
874524047306Smrgint i;
874624047306Smrg_ACEOF
8747bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
8748bdc460c5Smrgthen :
874924047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
87507015785aSmrgelse case e in #(
87517015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
87527015785aSmrgesac
875324047306Smrgfi
87547015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
87557015785aSmrgesac
875624047306Smrgfi
8757bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8758bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
875924047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
876024047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
876124047306Smrgfi
876224047306Smrg
876324047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
876424047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
876524047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
876624047306Smrg	fi
876724047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8768bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8769bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8770bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8771bdc460c5Smrgthen :
8772bdc460c5Smrg  printf %s "(cached) " >&6
87737015785aSmrgelse case e in #(
87747015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
877524047306Smrg/* end confdefs.h.  */
877624047306Smrgint i;
877724047306Smrg_ACEOF
8778bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
8779bdc460c5Smrgthen :
878024047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
87817015785aSmrgelse case e in #(
87827015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
87837015785aSmrgesac
878424047306Smrgfi
87857015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
87867015785aSmrgesac
878724047306Smrgfi
8788bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8789bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
879024047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
879124047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
879224047306Smrgfi
879324047306Smrg
879424047306Smrgfound="no"
879524047306Smrg
879624047306Smrg	if test $found = "no" ; then
879724047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
879824047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
879924047306Smrg		fi
880024047306Smrg
880124047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
880224047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
880324047306Smrg		fi
880424047306Smrg
880524047306Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
880624047306Smrg
8807bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8808bdc460c5Smrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; }
880924047306Smrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
8810bdc460c5Smrg		if eval test \${$cacheid+y}
8811bdc460c5Smrgthen :
8812bdc460c5Smrg  printf %s "(cached) " >&6
88137015785aSmrgelse case e in #(
88147015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
881524047306Smrg/* end confdefs.h.  */
881624047306Smrgint i;
881724047306Smrgint
8818bdc460c5Smrgmain (void)
881924047306Smrg{
882024047306Smrg
882124047306Smrg  ;
882224047306Smrg  return 0;
882324047306Smrg}
882424047306Smrg_ACEOF
8825bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
8826bdc460c5Smrgthen :
882724047306Smrg  eval $cacheid=yes
88287015785aSmrgelse case e in #(
88297015785aSmrg  e) eval $cacheid=no ;;
88307015785aSmrgesac
883124047306Smrgfi
8832bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
88337015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
88347015785aSmrgesac
883524047306Smrgfi
883624047306Smrg
883724047306Smrg
883824047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
883924047306Smrg
884024047306Smrg		eval supported=\$$cacheid
8841bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8842bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
884324047306Smrg		if test "$supported" = "yes" ; then
884424047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
884524047306Smrg			found="yes"
884624047306Smrg		fi
884724047306Smrg	fi
884824047306Smrg
884924047306Smrg
885024047306Smrg
885124047306Smrg
885224047306Smrg
885324047306Smrg
885424047306Smrg
885524047306Smrg
885624047306Smrg
885724047306Smrg
885824047306Smrg
885924047306Smrg
886024047306Smrg
886124047306Smrg
886224047306Smrg
886324047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
886424047306Smrg
886524047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
886624047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8867bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8868bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8869bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8870bdc460c5Smrgthen :
8871bdc460c5Smrg  printf %s "(cached) " >&6
88727015785aSmrgelse case e in #(
88737015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
887424047306Smrg/* end confdefs.h.  */
887524047306Smrgint i;
887624047306Smrg_ACEOF
8877bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
8878bdc460c5Smrgthen :
887924047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
88807015785aSmrgelse case e in #(
88817015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
88827015785aSmrgesac
888324047306Smrgfi
88847015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
88857015785aSmrgesac
888624047306Smrgfi
8887bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8888bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
888924047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
889024047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
889124047306Smrgfi
889224047306Smrg
889324047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
889424047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
889524047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
889624047306Smrg	fi
889724047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8898bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8899bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8900bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8901bdc460c5Smrgthen :
8902bdc460c5Smrg  printf %s "(cached) " >&6
89037015785aSmrgelse case e in #(
89047015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
890524047306Smrg/* end confdefs.h.  */
890624047306Smrgint i;
890724047306Smrg_ACEOF
8908bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
8909bdc460c5Smrgthen :
891024047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
89117015785aSmrgelse case e in #(
89127015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
89137015785aSmrgesac
891424047306Smrgfi
89157015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
89167015785aSmrgesac
891724047306Smrgfi
8918bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8919bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
892024047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
892124047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
892224047306Smrgfi
892324047306Smrg
892424047306Smrgfound="no"
892524047306Smrg
892624047306Smrg	if test $found = "no" ; then
892724047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
892824047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
892924047306Smrg		fi
893024047306Smrg
893124047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
893224047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
893324047306Smrg		fi
893424047306Smrg
893524047306Smrg		CFLAGS="$CFLAGS -Werror=address"
893624047306Smrg
8937bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8938bdc460c5Smrgprintf %s "checking if $CC supports -Werror=address... " >&6; }
893924047306Smrg		cacheid=xorg_cv_cc_flag__Werror_address
8940bdc460c5Smrg		if eval test \${$cacheid+y}
8941bdc460c5Smrgthen :
8942bdc460c5Smrg  printf %s "(cached) " >&6
89437015785aSmrgelse case e in #(
89447015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
894524047306Smrg/* end confdefs.h.  */
894624047306Smrgint i;
894724047306Smrgint
8948bdc460c5Smrgmain (void)
894924047306Smrg{
895024047306Smrg
895124047306Smrg  ;
895224047306Smrg  return 0;
895324047306Smrg}
895424047306Smrg_ACEOF
8955bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
8956bdc460c5Smrgthen :
895724047306Smrg  eval $cacheid=yes
89587015785aSmrgelse case e in #(
89597015785aSmrg  e) eval $cacheid=no ;;
89607015785aSmrgesac
896124047306Smrgfi
8962bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
89637015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
89647015785aSmrgesac
896524047306Smrgfi
896624047306Smrg
896724047306Smrg
896824047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
896924047306Smrg
897024047306Smrg		eval supported=\$$cacheid
8971bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8972bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
897324047306Smrg		if test "$supported" = "yes" ; then
897424047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
897524047306Smrg			found="yes"
897624047306Smrg		fi
897724047306Smrg	fi
897824047306Smrg
897924047306Smrg
898024047306Smrg
898124047306Smrg
898224047306Smrg
898324047306Smrg
898424047306Smrg
898524047306Smrg
898624047306Smrg
898724047306Smrg
898824047306Smrg
898924047306Smrg
899024047306Smrg
899124047306Smrg
899224047306Smrg
899324047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
899424047306Smrg
899524047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
899624047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8997bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8998bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8999bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9000bdc460c5Smrgthen :
9001bdc460c5Smrg  printf %s "(cached) " >&6
90027015785aSmrgelse case e in #(
90037015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
900424047306Smrg/* end confdefs.h.  */
900524047306Smrgint i;
900624047306Smrg_ACEOF
9007bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
9008bdc460c5Smrgthen :
900924047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
90107015785aSmrgelse case e in #(
90117015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
90127015785aSmrgesac
901324047306Smrgfi
90147015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
90157015785aSmrgesac
901624047306Smrgfi
9017bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9018bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
901924047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
902024047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
902124047306Smrgfi
902224047306Smrg
902324047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
902424047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
902524047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
902624047306Smrg	fi
902724047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9028bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9029bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9030bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9031bdc460c5Smrgthen :
9032bdc460c5Smrg  printf %s "(cached) " >&6
90337015785aSmrgelse case e in #(
90347015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
903524047306Smrg/* end confdefs.h.  */
903624047306Smrgint i;
903724047306Smrg_ACEOF
9038bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
9039bdc460c5Smrgthen :
904024047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
90417015785aSmrgelse case e in #(
90427015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
90437015785aSmrgesac
904424047306Smrgfi
90457015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
90467015785aSmrgesac
904724047306Smrgfi
9048bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9049bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
905024047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
905124047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
905224047306Smrgfi
905324047306Smrg
905424047306Smrgfound="no"
905524047306Smrg
905624047306Smrg	if test $found = "no" ; then
905724047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
905824047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
905924047306Smrg		fi
906024047306Smrg
906124047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
906224047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
906324047306Smrg		fi
906424047306Smrg
906524047306Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
906624047306Smrg
9067bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9068bdc460c5Smrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
906924047306Smrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9070bdc460c5Smrg		if eval test \${$cacheid+y}
9071bdc460c5Smrgthen :
9072bdc460c5Smrg  printf %s "(cached) " >&6
90737015785aSmrgelse case e in #(
90747015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
907524047306Smrg/* end confdefs.h.  */
907624047306Smrgint i;
907724047306Smrgint
9078bdc460c5Smrgmain (void)
907924047306Smrg{
908024047306Smrg
908124047306Smrg  ;
908224047306Smrg  return 0;
908324047306Smrg}
908424047306Smrg_ACEOF
9085bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
9086bdc460c5Smrgthen :
908724047306Smrg  eval $cacheid=yes
90887015785aSmrgelse case e in #(
90897015785aSmrg  e) eval $cacheid=no ;;
90907015785aSmrgesac
909124047306Smrgfi
9092bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
90937015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
90947015785aSmrgesac
909524047306Smrgfi
909624047306Smrg
909724047306Smrg
909824047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
909924047306Smrg
910024047306Smrg		eval supported=\$$cacheid
9101bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9102bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
910324047306Smrg		if test "$supported" = "yes" ; then
910424047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
910524047306Smrg			found="yes"
910624047306Smrg		fi
910724047306Smrg	fi
910824047306Smrg
910924047306Smrg	if test $found = "no" ; then
911024047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
911124047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
911224047306Smrg		fi
911324047306Smrg
911424047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
911524047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
911624047306Smrg		fi
911724047306Smrg
911824047306Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
911924047306Smrg
9120bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9121bdc460c5Smrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
912224047306Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9123bdc460c5Smrg		if eval test \${$cacheid+y}
9124bdc460c5Smrgthen :
9125bdc460c5Smrg  printf %s "(cached) " >&6
91267015785aSmrgelse case e in #(
91277015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
912824047306Smrg/* end confdefs.h.  */
912924047306Smrgint i;
913024047306Smrgint
9131bdc460c5Smrgmain (void)
913224047306Smrg{
913324047306Smrg
913424047306Smrg  ;
913524047306Smrg  return 0;
913624047306Smrg}
913724047306Smrg_ACEOF
9138bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
9139bdc460c5Smrgthen :
914024047306Smrg  eval $cacheid=yes
91417015785aSmrgelse case e in #(
91427015785aSmrg  e) eval $cacheid=no ;;
91437015785aSmrgesac
914424047306Smrgfi
9145bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
91467015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
91477015785aSmrgesac
914824047306Smrgfi
914924047306Smrg
915024047306Smrg
915124047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
915224047306Smrg
915324047306Smrg		eval supported=\$$cacheid
9154bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9155bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
915624047306Smrg		if test "$supported" = "yes" ; then
915724047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
915824047306Smrg			found="yes"
915924047306Smrg		fi
916024047306Smrg	fi
916124047306Smrg
916224047306Smrg
916324047306Smrg
916424047306Smrg
916524047306Smrg
916624047306Smrg
916724047306Smrg
916824047306Smrg
916924047306Smrg
917024047306Smrg
917124047306Smrg
917224047306Smrg
917324047306Smrg
917424047306Smrg
917524047306Smrg
917624047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
917724047306Smrg
917824047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
917924047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9180bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9181bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9182bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9183bdc460c5Smrgthen :
9184bdc460c5Smrg  printf %s "(cached) " >&6
91857015785aSmrgelse case e in #(
91867015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
918724047306Smrg/* end confdefs.h.  */
918824047306Smrgint i;
918924047306Smrg_ACEOF
9190bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
9191bdc460c5Smrgthen :
919224047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
91937015785aSmrgelse case e in #(
91947015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
91957015785aSmrgesac
919624047306Smrgfi
91977015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
91987015785aSmrgesac
919924047306Smrgfi
9200bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9201bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
920224047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
920324047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
920424047306Smrgfi
920524047306Smrg
920624047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
920724047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
920824047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
920924047306Smrg	fi
921024047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9211bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9212bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9213bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9214bdc460c5Smrgthen :
9215bdc460c5Smrg  printf %s "(cached) " >&6
92167015785aSmrgelse case e in #(
92177015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
921824047306Smrg/* end confdefs.h.  */
921924047306Smrgint i;
922024047306Smrg_ACEOF
9221bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
9222bdc460c5Smrgthen :
922324047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
92247015785aSmrgelse case e in #(
92257015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
92267015785aSmrgesac
922724047306Smrgfi
92287015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
92297015785aSmrgesac
923024047306Smrgfi
9231bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9232bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
923324047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
923424047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
923524047306Smrgfi
923624047306Smrg
923724047306Smrgfound="no"
923824047306Smrg
923924047306Smrg	if test $found = "no" ; then
924024047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
924124047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
924224047306Smrg		fi
924324047306Smrg
924424047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
924524047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
924624047306Smrg		fi
924724047306Smrg
924824047306Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
924924047306Smrg
9250bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9251bdc460c5Smrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
925224047306Smrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9253bdc460c5Smrg		if eval test \${$cacheid+y}
9254bdc460c5Smrgthen :
9255bdc460c5Smrg  printf %s "(cached) " >&6
92567015785aSmrgelse case e in #(
92577015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
925824047306Smrg/* end confdefs.h.  */
925924047306Smrgint i;
926024047306Smrgint
9261bdc460c5Smrgmain (void)
926224047306Smrg{
926324047306Smrg
926424047306Smrg  ;
926524047306Smrg  return 0;
926624047306Smrg}
926724047306Smrg_ACEOF
9268bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
9269bdc460c5Smrgthen :
927024047306Smrg  eval $cacheid=yes
92717015785aSmrgelse case e in #(
92727015785aSmrg  e) eval $cacheid=no ;;
92737015785aSmrgesac
927424047306Smrgfi
9275bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
92767015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
92777015785aSmrgesac
927824047306Smrgfi
927924047306Smrg
928024047306Smrg
928124047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
928224047306Smrg
928324047306Smrg		eval supported=\$$cacheid
9284bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9285bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
928624047306Smrg		if test "$supported" = "yes" ; then
928724047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
928824047306Smrg			found="yes"
928924047306Smrg		fi
929024047306Smrg	fi
929124047306Smrg
929224047306Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
929324047306Smrgelse
9294bdc460c5Smrg{ 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
9295bdc460c5Smrgprintf "%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;}
929624047306Smrg
929724047306Smrg
929824047306Smrg
929924047306Smrg
930024047306Smrg
930124047306Smrg
930224047306Smrg
930324047306Smrg
930424047306Smrg
930524047306Smrg
930624047306Smrg
930724047306Smrg
930824047306Smrg
930924047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
931024047306Smrg
931124047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
931224047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9313bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9314bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9315bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9316bdc460c5Smrgthen :
9317bdc460c5Smrg  printf %s "(cached) " >&6
93187015785aSmrgelse case e in #(
93197015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
932024047306Smrg/* end confdefs.h.  */
932124047306Smrgint i;
932224047306Smrg_ACEOF
9323bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
9324bdc460c5Smrgthen :
932524047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
93267015785aSmrgelse case e in #(
93277015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
93287015785aSmrgesac
932924047306Smrgfi
93307015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
93317015785aSmrgesac
933224047306Smrgfi
9333bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9334bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
933524047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
933624047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
933724047306Smrgfi
933824047306Smrg
933924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
934024047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
934124047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
934224047306Smrg	fi
934324047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9344bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9345bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9346bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9347bdc460c5Smrgthen :
9348bdc460c5Smrg  printf %s "(cached) " >&6
93497015785aSmrgelse case e in #(
93507015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
935124047306Smrg/* end confdefs.h.  */
935224047306Smrgint i;
935324047306Smrg_ACEOF
9354bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
9355bdc460c5Smrgthen :
935624047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
93577015785aSmrgelse case e in #(
93587015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
93597015785aSmrgesac
936024047306Smrgfi
93617015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
93627015785aSmrgesac
936324047306Smrgfi
9364bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9365bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
936624047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
936724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
936824047306Smrgfi
936924047306Smrg
937024047306Smrgfound="no"
937124047306Smrg
937224047306Smrg	if test $found = "no" ; then
937324047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
937424047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
937524047306Smrg		fi
937624047306Smrg
937724047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
937824047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
937924047306Smrg		fi
938024047306Smrg
938124047306Smrg		CFLAGS="$CFLAGS -Wimplicit"
938224047306Smrg
9383bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9384bdc460c5Smrgprintf %s "checking if $CC supports -Wimplicit... " >&6; }
938524047306Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
9386bdc460c5Smrg		if eval test \${$cacheid+y}
9387bdc460c5Smrgthen :
9388bdc460c5Smrg  printf %s "(cached) " >&6
93897015785aSmrgelse case e in #(
93907015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
939124047306Smrg/* end confdefs.h.  */
939224047306Smrgint i;
939324047306Smrgint
9394bdc460c5Smrgmain (void)
939524047306Smrg{
939624047306Smrg
939724047306Smrg  ;
939824047306Smrg  return 0;
939924047306Smrg}
940024047306Smrg_ACEOF
9401bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
9402bdc460c5Smrgthen :
940324047306Smrg  eval $cacheid=yes
94047015785aSmrgelse case e in #(
94057015785aSmrg  e) eval $cacheid=no ;;
94067015785aSmrgesac
940724047306Smrgfi
9408bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
94097015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
94107015785aSmrgesac
941124047306Smrgfi
941224047306Smrg
941324047306Smrg
941424047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
941524047306Smrg
941624047306Smrg		eval supported=\$$cacheid
9417bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9418bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
941924047306Smrg		if test "$supported" = "yes" ; then
942024047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
942124047306Smrg			found="yes"
942224047306Smrg		fi
942324047306Smrg	fi
942424047306Smrg
942524047306Smrg
942624047306Smrg
942724047306Smrg
942824047306Smrg
942924047306Smrg
943024047306Smrg
943124047306Smrg
943224047306Smrg
943324047306Smrg
943424047306Smrg
943524047306Smrg
943624047306Smrg
943724047306Smrg
943824047306Smrg
943924047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
944024047306Smrg
944124047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
944224047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9443bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9444bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9445bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9446bdc460c5Smrgthen :
9447bdc460c5Smrg  printf %s "(cached) " >&6
94487015785aSmrgelse case e in #(
94497015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
945024047306Smrg/* end confdefs.h.  */
945124047306Smrgint i;
945224047306Smrg_ACEOF
9453bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
9454bdc460c5Smrgthen :
945524047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
94567015785aSmrgelse case e in #(
94577015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
94587015785aSmrgesac
945924047306Smrgfi
94607015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
94617015785aSmrgesac
946224047306Smrgfi
9463bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9464bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
946524047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
946624047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
946724047306Smrgfi
946824047306Smrg
946924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
947024047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
947124047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
947224047306Smrg	fi
947324047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9474bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9475bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9476bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9477bdc460c5Smrgthen :
9478bdc460c5Smrg  printf %s "(cached) " >&6
94797015785aSmrgelse case e in #(
94807015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
948124047306Smrg/* end confdefs.h.  */
948224047306Smrgint i;
948324047306Smrg_ACEOF
9484bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
9485bdc460c5Smrgthen :
948624047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
94877015785aSmrgelse case e in #(
94887015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
94897015785aSmrgesac
949024047306Smrgfi
94917015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
94927015785aSmrgesac
949324047306Smrgfi
9494bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9495bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
949624047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
949724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
949824047306Smrgfi
949924047306Smrg
950024047306Smrgfound="no"
950124047306Smrg
950224047306Smrg	if test $found = "no" ; then
950324047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
950424047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
950524047306Smrg		fi
950624047306Smrg
950724047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
950824047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
950924047306Smrg		fi
951024047306Smrg
951124047306Smrg		CFLAGS="$CFLAGS -Wnonnull"
951224047306Smrg
9513bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9514bdc460c5Smrgprintf %s "checking if $CC supports -Wnonnull... " >&6; }
951524047306Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
9516bdc460c5Smrg		if eval test \${$cacheid+y}
9517bdc460c5Smrgthen :
9518bdc460c5Smrg  printf %s "(cached) " >&6
95197015785aSmrgelse case e in #(
95207015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
952124047306Smrg/* end confdefs.h.  */
952224047306Smrgint i;
952324047306Smrgint
9524bdc460c5Smrgmain (void)
952524047306Smrg{
952624047306Smrg
952724047306Smrg  ;
952824047306Smrg  return 0;
952924047306Smrg}
953024047306Smrg_ACEOF
9531bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
9532bdc460c5Smrgthen :
953324047306Smrg  eval $cacheid=yes
95347015785aSmrgelse case e in #(
95357015785aSmrg  e) eval $cacheid=no ;;
95367015785aSmrgesac
953724047306Smrgfi
9538bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
95397015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
95407015785aSmrgesac
954124047306Smrgfi
954224047306Smrg
954324047306Smrg
954424047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
954524047306Smrg
954624047306Smrg		eval supported=\$$cacheid
9547bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9548bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
954924047306Smrg		if test "$supported" = "yes" ; then
955024047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
955124047306Smrg			found="yes"
955224047306Smrg		fi
955324047306Smrg	fi
955424047306Smrg
955524047306Smrg
955624047306Smrg
955724047306Smrg
955824047306Smrg
955924047306Smrg
956024047306Smrg
956124047306Smrg
956224047306Smrg
956324047306Smrg
956424047306Smrg
956524047306Smrg
956624047306Smrg
956724047306Smrg
956824047306Smrg
956924047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
957024047306Smrg
957124047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
957224047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9573bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9574bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9575bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9576bdc460c5Smrgthen :
9577bdc460c5Smrg  printf %s "(cached) " >&6
95787015785aSmrgelse case e in #(
95797015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
958024047306Smrg/* end confdefs.h.  */
958124047306Smrgint i;
958224047306Smrg_ACEOF
9583bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
9584bdc460c5Smrgthen :
958524047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
95867015785aSmrgelse case e in #(
95877015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
95887015785aSmrgesac
958924047306Smrgfi
95907015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
95917015785aSmrgesac
959224047306Smrgfi
9593bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9594bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
959524047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
959624047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
959724047306Smrgfi
959824047306Smrg
959924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
960024047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
960124047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
960224047306Smrg	fi
960324047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9604bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9605bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9606bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9607bdc460c5Smrgthen :
9608bdc460c5Smrg  printf %s "(cached) " >&6
96097015785aSmrgelse case e in #(
96107015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
961124047306Smrg/* end confdefs.h.  */
961224047306Smrgint i;
961324047306Smrg_ACEOF
9614bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
9615bdc460c5Smrgthen :
961624047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
96177015785aSmrgelse case e in #(
96187015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
96197015785aSmrgesac
962024047306Smrgfi
96217015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
96227015785aSmrgesac
962324047306Smrgfi
9624bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9625bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
962624047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
962724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
962824047306Smrgfi
962924047306Smrg
963024047306Smrgfound="no"
963124047306Smrg
963224047306Smrg	if test $found = "no" ; then
963324047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
963424047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
963524047306Smrg		fi
963624047306Smrg
963724047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
963824047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
963924047306Smrg		fi
964024047306Smrg
964124047306Smrg		CFLAGS="$CFLAGS -Winit-self"
964224047306Smrg
9643bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9644bdc460c5Smrgprintf %s "checking if $CC supports -Winit-self... " >&6; }
964524047306Smrg		cacheid=xorg_cv_cc_flag__Winit_self
9646bdc460c5Smrg		if eval test \${$cacheid+y}
9647bdc460c5Smrgthen :
9648bdc460c5Smrg  printf %s "(cached) " >&6
96497015785aSmrgelse case e in #(
96507015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
965124047306Smrg/* end confdefs.h.  */
965224047306Smrgint i;
965324047306Smrgint
9654bdc460c5Smrgmain (void)
965524047306Smrg{
965624047306Smrg
965724047306Smrg  ;
965824047306Smrg  return 0;
965924047306Smrg}
966024047306Smrg_ACEOF
9661bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
9662bdc460c5Smrgthen :
966324047306Smrg  eval $cacheid=yes
96647015785aSmrgelse case e in #(
96657015785aSmrg  e) eval $cacheid=no ;;
96667015785aSmrgesac
966724047306Smrgfi
9668bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
96697015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
96707015785aSmrgesac
967124047306Smrgfi
967224047306Smrg
967324047306Smrg
967424047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
967524047306Smrg
967624047306Smrg		eval supported=\$$cacheid
9677bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9678bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
967924047306Smrg		if test "$supported" = "yes" ; then
968024047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
968124047306Smrg			found="yes"
968224047306Smrg		fi
968324047306Smrg	fi
968424047306Smrg
968524047306Smrg
968624047306Smrg
968724047306Smrg
968824047306Smrg
968924047306Smrg
969024047306Smrg
969124047306Smrg
969224047306Smrg
969324047306Smrg
969424047306Smrg
969524047306Smrg
969624047306Smrg
969724047306Smrg
969824047306Smrg
969924047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
970024047306Smrg
970124047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
970224047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9703bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9704bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9705bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9706bdc460c5Smrgthen :
9707bdc460c5Smrg  printf %s "(cached) " >&6
97087015785aSmrgelse case e in #(
97097015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
971024047306Smrg/* end confdefs.h.  */
971124047306Smrgint i;
971224047306Smrg_ACEOF
9713bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
9714bdc460c5Smrgthen :
971524047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
97167015785aSmrgelse case e in #(
97177015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
97187015785aSmrgesac
971924047306Smrgfi
97207015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
97217015785aSmrgesac
972224047306Smrgfi
9723bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9724bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
972524047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
972624047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
972724047306Smrgfi
972824047306Smrg
972924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
973024047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
973124047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
973224047306Smrg	fi
973324047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9734bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9735bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9736bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9737bdc460c5Smrgthen :
9738bdc460c5Smrg  printf %s "(cached) " >&6
97397015785aSmrgelse case e in #(
97407015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
974124047306Smrg/* end confdefs.h.  */
974224047306Smrgint i;
974324047306Smrg_ACEOF
9744bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
9745bdc460c5Smrgthen :
974624047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
97477015785aSmrgelse case e in #(
97487015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
97497015785aSmrgesac
975024047306Smrgfi
97517015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
97527015785aSmrgesac
975324047306Smrgfi
9754bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9755bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
975624047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
975724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
975824047306Smrgfi
975924047306Smrg
976024047306Smrgfound="no"
976124047306Smrg
976224047306Smrg	if test $found = "no" ; then
976324047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
976424047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
976524047306Smrg		fi
976624047306Smrg
976724047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
976824047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
976924047306Smrg		fi
977024047306Smrg
977124047306Smrg		CFLAGS="$CFLAGS -Wmain"
977224047306Smrg
9773bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9774bdc460c5Smrgprintf %s "checking if $CC supports -Wmain... " >&6; }
977524047306Smrg		cacheid=xorg_cv_cc_flag__Wmain
9776bdc460c5Smrg		if eval test \${$cacheid+y}
9777bdc460c5Smrgthen :
9778bdc460c5Smrg  printf %s "(cached) " >&6
97797015785aSmrgelse case e in #(
97807015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
978124047306Smrg/* end confdefs.h.  */
978224047306Smrgint i;
978324047306Smrgint
9784bdc460c5Smrgmain (void)
978524047306Smrg{
978624047306Smrg
978724047306Smrg  ;
978824047306Smrg  return 0;
978924047306Smrg}
979024047306Smrg_ACEOF
9791bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
9792bdc460c5Smrgthen :
979324047306Smrg  eval $cacheid=yes
97947015785aSmrgelse case e in #(
97957015785aSmrg  e) eval $cacheid=no ;;
97967015785aSmrgesac
979724047306Smrgfi
9798bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
97997015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
98007015785aSmrgesac
980124047306Smrgfi
980224047306Smrg
980324047306Smrg
980424047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
980524047306Smrg
980624047306Smrg		eval supported=\$$cacheid
9807bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9808bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
980924047306Smrg		if test "$supported" = "yes" ; then
981024047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
981124047306Smrg			found="yes"
981224047306Smrg		fi
981324047306Smrg	fi
981424047306Smrg
981524047306Smrg
981624047306Smrg
981724047306Smrg
981824047306Smrg
981924047306Smrg
982024047306Smrg
982124047306Smrg
982224047306Smrg
982324047306Smrg
982424047306Smrg
982524047306Smrg
982624047306Smrg
982724047306Smrg
982824047306Smrg
982924047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
983024047306Smrg
983124047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
983224047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9833bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9834bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9835bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9836bdc460c5Smrgthen :
9837bdc460c5Smrg  printf %s "(cached) " >&6
98387015785aSmrgelse case e in #(
98397015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
984024047306Smrg/* end confdefs.h.  */
984124047306Smrgint i;
984224047306Smrg_ACEOF
9843bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
9844bdc460c5Smrgthen :
984524047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
98467015785aSmrgelse case e in #(
98477015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
98487015785aSmrgesac
984924047306Smrgfi
98507015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
98517015785aSmrgesac
985224047306Smrgfi
9853bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9854bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
985524047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
985624047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
985724047306Smrgfi
985824047306Smrg
985924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
986024047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
986124047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
986224047306Smrg	fi
986324047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9864bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9865bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9866bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9867bdc460c5Smrgthen :
9868bdc460c5Smrg  printf %s "(cached) " >&6
98697015785aSmrgelse case e in #(
98707015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
987124047306Smrg/* end confdefs.h.  */
987224047306Smrgint i;
987324047306Smrg_ACEOF
9874bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
9875bdc460c5Smrgthen :
987624047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
98777015785aSmrgelse case e in #(
98787015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
98797015785aSmrgesac
988024047306Smrgfi
98817015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
98827015785aSmrgesac
988324047306Smrgfi
9884bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9885bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
988624047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
988724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
988824047306Smrgfi
988924047306Smrg
989024047306Smrgfound="no"
989124047306Smrg
989224047306Smrg	if test $found = "no" ; then
989324047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
989424047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
989524047306Smrg		fi
989624047306Smrg
989724047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
989824047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
989924047306Smrg		fi
990024047306Smrg
990124047306Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
990224047306Smrg
9903bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9904bdc460c5Smrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; }
990524047306Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
9906bdc460c5Smrg		if eval test \${$cacheid+y}
9907bdc460c5Smrgthen :
9908bdc460c5Smrg  printf %s "(cached) " >&6
99097015785aSmrgelse case e in #(
99107015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
991124047306Smrg/* end confdefs.h.  */
991224047306Smrgint i;
991324047306Smrgint
9914bdc460c5Smrgmain (void)
991524047306Smrg{
991624047306Smrg
991724047306Smrg  ;
991824047306Smrg  return 0;
991924047306Smrg}
992024047306Smrg_ACEOF
9921bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
9922bdc460c5Smrgthen :
992324047306Smrg  eval $cacheid=yes
99247015785aSmrgelse case e in #(
99257015785aSmrg  e) eval $cacheid=no ;;
99267015785aSmrgesac
992724047306Smrgfi
9928bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
99297015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
99307015785aSmrgesac
993124047306Smrgfi
993224047306Smrg
993324047306Smrg
993424047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
993524047306Smrg
993624047306Smrg		eval supported=\$$cacheid
9937bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9938bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
993924047306Smrg		if test "$supported" = "yes" ; then
994024047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
994124047306Smrg			found="yes"
994224047306Smrg		fi
994324047306Smrg	fi
994424047306Smrg
994524047306Smrg
994624047306Smrg
994724047306Smrg
994824047306Smrg
994924047306Smrg
995024047306Smrg
995124047306Smrg
995224047306Smrg
995324047306Smrg
995424047306Smrg
995524047306Smrg
995624047306Smrg
995724047306Smrg
995824047306Smrg
995924047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
996024047306Smrg
996124047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
996224047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9963bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9964bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9965bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9966bdc460c5Smrgthen :
9967bdc460c5Smrg  printf %s "(cached) " >&6
99687015785aSmrgelse case e in #(
99697015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
997024047306Smrg/* end confdefs.h.  */
997124047306Smrgint i;
997224047306Smrg_ACEOF
9973bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
9974bdc460c5Smrgthen :
997524047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
99767015785aSmrgelse case e in #(
99777015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
99787015785aSmrgesac
997924047306Smrgfi
99807015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
99817015785aSmrgesac
998224047306Smrgfi
9983bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9984bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
998524047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
998624047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
998724047306Smrgfi
998824047306Smrg
998924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
999024047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
999124047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
999224047306Smrg	fi
999324047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9994bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9995bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9996bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9997bdc460c5Smrgthen :
9998bdc460c5Smrg  printf %s "(cached) " >&6
99997015785aSmrgelse case e in #(
100007015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1000124047306Smrg/* end confdefs.h.  */
1000224047306Smrgint i;
1000324047306Smrg_ACEOF
10004bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
10005bdc460c5Smrgthen :
1000624047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
100077015785aSmrgelse case e in #(
100087015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
100097015785aSmrgesac
1001024047306Smrgfi
100117015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
100127015785aSmrgesac
1001324047306Smrgfi
10014bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10015bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1001624047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1001724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1001824047306Smrgfi
1001924047306Smrg
1002024047306Smrgfound="no"
1002124047306Smrg
1002224047306Smrg	if test $found = "no" ; then
1002324047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1002424047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1002524047306Smrg		fi
1002624047306Smrg
1002724047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1002824047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1002924047306Smrg		fi
1003024047306Smrg
1003124047306Smrg		CFLAGS="$CFLAGS -Wsequence-point"
1003224047306Smrg
10033bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10034bdc460c5Smrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; }
1003524047306Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
10036bdc460c5Smrg		if eval test \${$cacheid+y}
10037bdc460c5Smrgthen :
10038bdc460c5Smrg  printf %s "(cached) " >&6
100397015785aSmrgelse case e in #(
100407015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1004124047306Smrg/* end confdefs.h.  */
1004224047306Smrgint i;
1004324047306Smrgint
10044bdc460c5Smrgmain (void)
1004524047306Smrg{
1004624047306Smrg
1004724047306Smrg  ;
1004824047306Smrg  return 0;
1004924047306Smrg}
1005024047306Smrg_ACEOF
10051bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
10052bdc460c5Smrgthen :
1005324047306Smrg  eval $cacheid=yes
100547015785aSmrgelse case e in #(
100557015785aSmrg  e) eval $cacheid=no ;;
100567015785aSmrgesac
1005724047306Smrgfi
10058bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
100597015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
100607015785aSmrgesac
1006124047306Smrgfi
1006224047306Smrg
1006324047306Smrg
1006424047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1006524047306Smrg
1006624047306Smrg		eval supported=\$$cacheid
10067bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10068bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
1006924047306Smrg		if test "$supported" = "yes" ; then
1007024047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
1007124047306Smrg			found="yes"
1007224047306Smrg		fi
1007324047306Smrg	fi
1007424047306Smrg
1007524047306Smrg
1007624047306Smrg
1007724047306Smrg
1007824047306Smrg
1007924047306Smrg
1008024047306Smrg
1008124047306Smrg
1008224047306Smrg
1008324047306Smrg
1008424047306Smrg
1008524047306Smrg
1008624047306Smrg
1008724047306Smrg
1008824047306Smrg
1008924047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1009024047306Smrg
1009124047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1009224047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10093bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10094bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10095bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10096bdc460c5Smrgthen :
10097bdc460c5Smrg  printf %s "(cached) " >&6
100987015785aSmrgelse case e in #(
100997015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1010024047306Smrg/* end confdefs.h.  */
1010124047306Smrgint i;
1010224047306Smrg_ACEOF
10103bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
10104bdc460c5Smrgthen :
1010524047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
101067015785aSmrgelse case e in #(
101077015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
101087015785aSmrgesac
1010924047306Smrgfi
101107015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
101117015785aSmrgesac
1011224047306Smrgfi
10113bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10114bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1011524047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1011624047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1011724047306Smrgfi
1011824047306Smrg
1011924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1012024047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1012124047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1012224047306Smrg	fi
1012324047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10124bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10125bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10126bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10127bdc460c5Smrgthen :
10128bdc460c5Smrg  printf %s "(cached) " >&6
101297015785aSmrgelse case e in #(
101307015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1013124047306Smrg/* end confdefs.h.  */
1013224047306Smrgint i;
1013324047306Smrg_ACEOF
10134bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
10135bdc460c5Smrgthen :
1013624047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
101377015785aSmrgelse case e in #(
101387015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
101397015785aSmrgesac
1014024047306Smrgfi
101417015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
101427015785aSmrgesac
1014324047306Smrgfi
10144bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10145bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1014624047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1014724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1014824047306Smrgfi
1014924047306Smrg
1015024047306Smrgfound="no"
1015124047306Smrg
1015224047306Smrg	if test $found = "no" ; then
1015324047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1015424047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1015524047306Smrg		fi
1015624047306Smrg
1015724047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1015824047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1015924047306Smrg		fi
1016024047306Smrg
1016124047306Smrg		CFLAGS="$CFLAGS -Wreturn-type"
1016224047306Smrg
10163bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10164bdc460c5Smrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; }
1016524047306Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
10166bdc460c5Smrg		if eval test \${$cacheid+y}
10167bdc460c5Smrgthen :
10168bdc460c5Smrg  printf %s "(cached) " >&6
101697015785aSmrgelse case e in #(
101707015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1017124047306Smrg/* end confdefs.h.  */
1017224047306Smrgint i;
1017324047306Smrgint
10174bdc460c5Smrgmain (void)
1017524047306Smrg{
1017624047306Smrg
1017724047306Smrg  ;
1017824047306Smrg  return 0;
1017924047306Smrg}
1018024047306Smrg_ACEOF
10181bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
10182bdc460c5Smrgthen :
1018324047306Smrg  eval $cacheid=yes
101847015785aSmrgelse case e in #(
101857015785aSmrg  e) eval $cacheid=no ;;
101867015785aSmrgesac
1018724047306Smrgfi
10188bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
101897015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
101907015785aSmrgesac
1019124047306Smrgfi
1019224047306Smrg
1019324047306Smrg
1019424047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1019524047306Smrg
1019624047306Smrg		eval supported=\$$cacheid
10197bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10198bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
1019924047306Smrg		if test "$supported" = "yes" ; then
1020024047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
1020124047306Smrg			found="yes"
1020224047306Smrg		fi
1020324047306Smrg	fi
1020424047306Smrg
1020524047306Smrg
1020624047306Smrg
1020724047306Smrg
1020824047306Smrg
1020924047306Smrg
1021024047306Smrg
1021124047306Smrg
1021224047306Smrg
1021324047306Smrg
1021424047306Smrg
1021524047306Smrg
1021624047306Smrg
1021724047306Smrg
1021824047306Smrg
1021924047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1022024047306Smrg
1022124047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1022224047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10223bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10224bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10225bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10226bdc460c5Smrgthen :
10227bdc460c5Smrg  printf %s "(cached) " >&6
102287015785aSmrgelse case e in #(
102297015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1023024047306Smrg/* end confdefs.h.  */
1023124047306Smrgint i;
1023224047306Smrg_ACEOF
10233bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
10234bdc460c5Smrgthen :
1023524047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
102367015785aSmrgelse case e in #(
102377015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
102387015785aSmrgesac
1023924047306Smrgfi
102407015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
102417015785aSmrgesac
1024224047306Smrgfi
10243bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10244bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1024524047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1024624047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1024724047306Smrgfi
1024824047306Smrg
1024924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1025024047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1025124047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1025224047306Smrg	fi
1025324047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10254bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10255bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10256bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10257bdc460c5Smrgthen :
10258bdc460c5Smrg  printf %s "(cached) " >&6
102597015785aSmrgelse case e in #(
102607015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1026124047306Smrg/* end confdefs.h.  */
1026224047306Smrgint i;
1026324047306Smrg_ACEOF
10264bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
10265bdc460c5Smrgthen :
1026624047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
102677015785aSmrgelse case e in #(
102687015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
102697015785aSmrgesac
1027024047306Smrgfi
102717015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
102727015785aSmrgesac
1027324047306Smrgfi
10274bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10275bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1027624047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1027724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1027824047306Smrgfi
1027924047306Smrg
1028024047306Smrgfound="no"
1028124047306Smrg
1028224047306Smrg	if test $found = "no" ; then
1028324047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1028424047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1028524047306Smrg		fi
1028624047306Smrg
1028724047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1028824047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1028924047306Smrg		fi
1029024047306Smrg
1029124047306Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
1029224047306Smrg
10293bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10294bdc460c5Smrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; }
1029524047306Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
10296bdc460c5Smrg		if eval test \${$cacheid+y}
10297bdc460c5Smrgthen :
10298bdc460c5Smrg  printf %s "(cached) " >&6
102997015785aSmrgelse case e in #(
103007015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1030124047306Smrg/* end confdefs.h.  */
1030224047306Smrgint i;
1030324047306Smrgint
10304bdc460c5Smrgmain (void)
1030524047306Smrg{
1030624047306Smrg
1030724047306Smrg  ;
1030824047306Smrg  return 0;
1030924047306Smrg}
1031024047306Smrg_ACEOF
10311bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
10312bdc460c5Smrgthen :
1031324047306Smrg  eval $cacheid=yes
103147015785aSmrgelse case e in #(
103157015785aSmrg  e) eval $cacheid=no ;;
103167015785aSmrgesac
1031724047306Smrgfi
10318bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
103197015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
103207015785aSmrgesac
1032124047306Smrgfi
1032224047306Smrg
1032324047306Smrg
1032424047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1032524047306Smrg
1032624047306Smrg		eval supported=\$$cacheid
10327bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10328bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
1032924047306Smrg		if test "$supported" = "yes" ; then
1033024047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
1033124047306Smrg			found="yes"
1033224047306Smrg		fi
1033324047306Smrg	fi
1033424047306Smrg
1033524047306Smrg
1033624047306Smrg
1033724047306Smrg
1033824047306Smrg
1033924047306Smrg
1034024047306Smrg
1034124047306Smrg
1034224047306Smrg
1034324047306Smrg
1034424047306Smrg
1034524047306Smrg
1034624047306Smrg
1034724047306Smrg
1034824047306Smrg
1034924047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1035024047306Smrg
1035124047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1035224047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10353bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10354bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10355bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10356bdc460c5Smrgthen :
10357bdc460c5Smrg  printf %s "(cached) " >&6
103587015785aSmrgelse case e in #(
103597015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1036024047306Smrg/* end confdefs.h.  */
1036124047306Smrgint i;
1036224047306Smrg_ACEOF
10363bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
10364bdc460c5Smrgthen :
1036524047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
103667015785aSmrgelse case e in #(
103677015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
103687015785aSmrgesac
1036924047306Smrgfi
103707015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
103717015785aSmrgesac
1037224047306Smrgfi
10373bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10374bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1037524047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1037624047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1037724047306Smrgfi
1037824047306Smrg
1037924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1038024047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1038124047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1038224047306Smrg	fi
1038324047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10384bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10385bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10386bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10387bdc460c5Smrgthen :
10388bdc460c5Smrg  printf %s "(cached) " >&6
103897015785aSmrgelse case e in #(
103907015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1039124047306Smrg/* end confdefs.h.  */
1039224047306Smrgint i;
1039324047306Smrg_ACEOF
10394bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
10395bdc460c5Smrgthen :
1039624047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
103977015785aSmrgelse case e in #(
103987015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
103997015785aSmrgesac
1040024047306Smrgfi
104017015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
104027015785aSmrgesac
1040324047306Smrgfi
10404bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10405bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1040624047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1040724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1040824047306Smrgfi
1040924047306Smrg
1041024047306Smrgfound="no"
1041124047306Smrg
1041224047306Smrg	if test $found = "no" ; then
1041324047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1041424047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1041524047306Smrg		fi
1041624047306Smrg
1041724047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1041824047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1041924047306Smrg		fi
1042024047306Smrg
1042124047306Smrg		CFLAGS="$CFLAGS -Warray-bounds"
1042224047306Smrg
10423bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10424bdc460c5Smrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; }
1042524047306Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
10426bdc460c5Smrg		if eval test \${$cacheid+y}
10427bdc460c5Smrgthen :
10428bdc460c5Smrg  printf %s "(cached) " >&6
104297015785aSmrgelse case e in #(
104307015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1043124047306Smrg/* end confdefs.h.  */
1043224047306Smrgint i;
1043324047306Smrgint
10434bdc460c5Smrgmain (void)
1043524047306Smrg{
1043624047306Smrg
1043724047306Smrg  ;
1043824047306Smrg  return 0;
1043924047306Smrg}
1044024047306Smrg_ACEOF
10441bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
10442bdc460c5Smrgthen :
1044324047306Smrg  eval $cacheid=yes
104447015785aSmrgelse case e in #(
104457015785aSmrg  e) eval $cacheid=no ;;
104467015785aSmrgesac
1044724047306Smrgfi
10448bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
104497015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
104507015785aSmrgesac
1045124047306Smrgfi
1045224047306Smrg
1045324047306Smrg
1045424047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1045524047306Smrg
1045624047306Smrg		eval supported=\$$cacheid
10457bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10458bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
1045924047306Smrg		if test "$supported" = "yes" ; then
1046024047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
1046124047306Smrg			found="yes"
1046224047306Smrg		fi
1046324047306Smrg	fi
1046424047306Smrg
1046524047306Smrg
1046624047306Smrg
1046724047306Smrg
1046824047306Smrg
1046924047306Smrg
1047024047306Smrg
1047124047306Smrg
1047224047306Smrg
1047324047306Smrg
1047424047306Smrg
1047524047306Smrg
1047624047306Smrg
1047724047306Smrg
1047824047306Smrg
1047924047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1048024047306Smrg
1048124047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1048224047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10483bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10484bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10485bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10486bdc460c5Smrgthen :
10487bdc460c5Smrg  printf %s "(cached) " >&6
104887015785aSmrgelse case e in #(
104897015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1049024047306Smrg/* end confdefs.h.  */
1049124047306Smrgint i;
1049224047306Smrg_ACEOF
10493bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
10494bdc460c5Smrgthen :
1049524047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
104967015785aSmrgelse case e in #(
104977015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
104987015785aSmrgesac
1049924047306Smrgfi
105007015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
105017015785aSmrgesac
1050224047306Smrgfi
10503bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10504bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1050524047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1050624047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1050724047306Smrgfi
1050824047306Smrg
1050924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1051024047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1051124047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1051224047306Smrg	fi
1051324047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10514bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10515bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10516bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10517bdc460c5Smrgthen :
10518bdc460c5Smrg  printf %s "(cached) " >&6
105197015785aSmrgelse case e in #(
105207015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1052124047306Smrg/* end confdefs.h.  */
1052224047306Smrgint i;
1052324047306Smrg_ACEOF
10524bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
10525bdc460c5Smrgthen :
1052624047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
105277015785aSmrgelse case e in #(
105287015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
105297015785aSmrgesac
1053024047306Smrgfi
105317015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
105327015785aSmrgesac
1053324047306Smrgfi
10534bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10535bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1053624047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1053724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1053824047306Smrgfi
1053924047306Smrg
1054024047306Smrgfound="no"
1054124047306Smrg
1054224047306Smrg	if test $found = "no" ; then
1054324047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1054424047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1054524047306Smrg		fi
1054624047306Smrg
1054724047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1054824047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1054924047306Smrg		fi
1055024047306Smrg
1055124047306Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
1055224047306Smrg
10553bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10554bdc460c5Smrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; }
1055524047306Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
10556bdc460c5Smrg		if eval test \${$cacheid+y}
10557bdc460c5Smrgthen :
10558bdc460c5Smrg  printf %s "(cached) " >&6
105597015785aSmrgelse case e in #(
105607015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1056124047306Smrg/* end confdefs.h.  */
1056224047306Smrgint i;
1056324047306Smrgint
10564bdc460c5Smrgmain (void)
1056524047306Smrg{
1056624047306Smrg
1056724047306Smrg  ;
1056824047306Smrg  return 0;
1056924047306Smrg}
1057024047306Smrg_ACEOF
10571bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
10572bdc460c5Smrgthen :
1057324047306Smrg  eval $cacheid=yes
105747015785aSmrgelse case e in #(
105757015785aSmrg  e) eval $cacheid=no ;;
105767015785aSmrgesac
1057724047306Smrgfi
10578bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
105797015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
105807015785aSmrgesac
1058124047306Smrgfi
1058224047306Smrg
1058324047306Smrg
1058424047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1058524047306Smrg
1058624047306Smrg		eval supported=\$$cacheid
10587bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10588bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
1058924047306Smrg		if test "$supported" = "yes" ; then
1059024047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
1059124047306Smrg			found="yes"
1059224047306Smrg		fi
1059324047306Smrg	fi
1059424047306Smrg
1059524047306Smrg
1059624047306Smrg
1059724047306Smrg
1059824047306Smrg
1059924047306Smrg
1060024047306Smrg
1060124047306Smrg
1060224047306Smrg
1060324047306Smrg
1060424047306Smrg
1060524047306Smrg
1060624047306Smrg
1060724047306Smrg
1060824047306Smrg
1060924047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1061024047306Smrg
1061124047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1061224047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10613bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10614bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10615bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10616bdc460c5Smrgthen :
10617bdc460c5Smrg  printf %s "(cached) " >&6
106187015785aSmrgelse case e in #(
106197015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1062024047306Smrg/* end confdefs.h.  */
1062124047306Smrgint i;
1062224047306Smrg_ACEOF
10623bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
10624bdc460c5Smrgthen :
1062524047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
106267015785aSmrgelse case e in #(
106277015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
106287015785aSmrgesac
1062924047306Smrgfi
106307015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
106317015785aSmrgesac
1063224047306Smrgfi
10633bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10634bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1063524047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1063624047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1063724047306Smrgfi
1063824047306Smrg
1063924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1064024047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1064124047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1064224047306Smrg	fi
1064324047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10644bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10645bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10646bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10647bdc460c5Smrgthen :
10648bdc460c5Smrg  printf %s "(cached) " >&6
106497015785aSmrgelse case e in #(
106507015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1065124047306Smrg/* end confdefs.h.  */
1065224047306Smrgint i;
1065324047306Smrg_ACEOF
10654bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
10655bdc460c5Smrgthen :
1065624047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
106577015785aSmrgelse case e in #(
106587015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
106597015785aSmrgesac
1066024047306Smrgfi
106617015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
106627015785aSmrgesac
1066324047306Smrgfi
10664bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10665bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1066624047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1066724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1066824047306Smrgfi
1066924047306Smrg
1067024047306Smrgfound="no"
1067124047306Smrg
1067224047306Smrg	if test $found = "no" ; then
1067324047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1067424047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1067524047306Smrg		fi
1067624047306Smrg
1067724047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1067824047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1067924047306Smrg		fi
1068024047306Smrg
1068124047306Smrg		CFLAGS="$CFLAGS -Waddress"
1068224047306Smrg
10683bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10684bdc460c5Smrgprintf %s "checking if $CC supports -Waddress... " >&6; }
1068524047306Smrg		cacheid=xorg_cv_cc_flag__Waddress
10686bdc460c5Smrg		if eval test \${$cacheid+y}
10687bdc460c5Smrgthen :
10688bdc460c5Smrg  printf %s "(cached) " >&6
106897015785aSmrgelse case e in #(
106907015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1069124047306Smrg/* end confdefs.h.  */
1069224047306Smrgint i;
1069324047306Smrgint
10694bdc460c5Smrgmain (void)
1069524047306Smrg{
1069624047306Smrg
1069724047306Smrg  ;
1069824047306Smrg  return 0;
1069924047306Smrg}
1070024047306Smrg_ACEOF
10701bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
10702bdc460c5Smrgthen :
1070324047306Smrg  eval $cacheid=yes
107047015785aSmrgelse case e in #(
107057015785aSmrg  e) eval $cacheid=no ;;
107067015785aSmrgesac
1070724047306Smrgfi
10708bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
107097015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
107107015785aSmrgesac
1071124047306Smrgfi
1071224047306Smrg
1071324047306Smrg
1071424047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1071524047306Smrg
1071624047306Smrg		eval supported=\$$cacheid
10717bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10718bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
1071924047306Smrg		if test "$supported" = "yes" ; then
1072024047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
1072124047306Smrg			found="yes"
1072224047306Smrg		fi
1072324047306Smrg	fi
1072424047306Smrg
1072524047306Smrg
1072624047306Smrg
1072724047306Smrg
1072824047306Smrg
1072924047306Smrg
1073024047306Smrg
1073124047306Smrg
1073224047306Smrg
1073324047306Smrg
1073424047306Smrg
1073524047306Smrg
1073624047306Smrg
1073724047306Smrg
1073824047306Smrg
1073924047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1074024047306Smrg
1074124047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1074224047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10743bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10744bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10745bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10746bdc460c5Smrgthen :
10747bdc460c5Smrg  printf %s "(cached) " >&6
107487015785aSmrgelse case e in #(
107497015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1075024047306Smrg/* end confdefs.h.  */
1075124047306Smrgint i;
1075224047306Smrg_ACEOF
10753bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
10754bdc460c5Smrgthen :
1075524047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
107567015785aSmrgelse case e in #(
107577015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
107587015785aSmrgesac
1075924047306Smrgfi
107607015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
107617015785aSmrgesac
1076224047306Smrgfi
10763bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10764bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1076524047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1076624047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1076724047306Smrgfi
1076824047306Smrg
1076924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1077024047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1077124047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1077224047306Smrg	fi
1077324047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10774bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10775bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10776bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10777bdc460c5Smrgthen :
10778bdc460c5Smrg  printf %s "(cached) " >&6
107797015785aSmrgelse case e in #(
107807015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1078124047306Smrg/* end confdefs.h.  */
1078224047306Smrgint i;
1078324047306Smrg_ACEOF
10784bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
10785bdc460c5Smrgthen :
1078624047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
107877015785aSmrgelse case e in #(
107887015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
107897015785aSmrgesac
1079024047306Smrgfi
107917015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
107927015785aSmrgesac
1079324047306Smrgfi
10794bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10795bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1079624047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1079724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1079824047306Smrgfi
1079924047306Smrg
1080024047306Smrgfound="no"
1080124047306Smrg
1080224047306Smrg	if test $found = "no" ; then
1080324047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1080424047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1080524047306Smrg		fi
1080624047306Smrg
1080724047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1080824047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1080924047306Smrg		fi
1081024047306Smrg
1081124047306Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
1081224047306Smrg
10813bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10814bdc460c5Smrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
1081524047306Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10816bdc460c5Smrg		if eval test \${$cacheid+y}
10817bdc460c5Smrgthen :
10818bdc460c5Smrg  printf %s "(cached) " >&6
108197015785aSmrgelse case e in #(
108207015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1082124047306Smrg/* end confdefs.h.  */
1082224047306Smrgint i;
1082324047306Smrgint
10824bdc460c5Smrgmain (void)
1082524047306Smrg{
1082624047306Smrg
1082724047306Smrg  ;
1082824047306Smrg  return 0;
1082924047306Smrg}
1083024047306Smrg_ACEOF
10831bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
10832bdc460c5Smrgthen :
1083324047306Smrg  eval $cacheid=yes
108347015785aSmrgelse case e in #(
108357015785aSmrg  e) eval $cacheid=no ;;
108367015785aSmrgesac
1083724047306Smrgfi
10838bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
108397015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
108407015785aSmrgesac
1084124047306Smrgfi
1084224047306Smrg
1084324047306Smrg
1084424047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1084524047306Smrg
1084624047306Smrg		eval supported=\$$cacheid
10847bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10848bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
1084924047306Smrg		if test "$supported" = "yes" ; then
1085024047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
1085124047306Smrg			found="yes"
1085224047306Smrg		fi
1085324047306Smrg	fi
1085424047306Smrg
1085524047306Smrg
1085624047306Smrg
1085724047306Smrg
1085824047306Smrg
1085924047306Smrg
1086024047306Smrg
1086124047306Smrg
1086224047306Smrg
1086324047306Smrg
1086424047306Smrg
1086524047306Smrg
1086624047306Smrg
1086724047306Smrg
1086824047306Smrg
1086924047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1087024047306Smrg
1087124047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1087224047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10873bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10874bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10875bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10876bdc460c5Smrgthen :
10877bdc460c5Smrg  printf %s "(cached) " >&6
108787015785aSmrgelse case e in #(
108797015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1088024047306Smrg/* end confdefs.h.  */
1088124047306Smrgint i;
1088224047306Smrg_ACEOF
10883bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
10884bdc460c5Smrgthen :
1088524047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
108867015785aSmrgelse case e in #(
108877015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
108887015785aSmrgesac
1088924047306Smrgfi
108907015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
108917015785aSmrgesac
1089224047306Smrgfi
10893bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10894bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1089524047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1089624047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1089724047306Smrgfi
1089824047306Smrg
1089924047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1090024047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1090124047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1090224047306Smrg	fi
1090324047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10904bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10905bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10906bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10907bdc460c5Smrgthen :
10908bdc460c5Smrg  printf %s "(cached) " >&6
109097015785aSmrgelse case e in #(
109107015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1091124047306Smrg/* end confdefs.h.  */
1091224047306Smrgint i;
1091324047306Smrg_ACEOF
10914bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
10915bdc460c5Smrgthen :
1091624047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
109177015785aSmrgelse case e in #(
109187015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
109197015785aSmrgesac
1092024047306Smrgfi
109217015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
109227015785aSmrgesac
1092324047306Smrgfi
10924bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10925bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1092624047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1092724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1092824047306Smrgfi
1092924047306Smrg
1093024047306Smrgfound="no"
1093124047306Smrg
1093224047306Smrg	if test $found = "no" ; then
1093324047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1093424047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1093524047306Smrg		fi
1093624047306Smrg
1093724047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1093824047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1093924047306Smrg		fi
1094024047306Smrg
1094124047306Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
1094224047306Smrg
10943bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10944bdc460c5Smrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
1094524047306Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10946bdc460c5Smrg		if eval test \${$cacheid+y}
10947bdc460c5Smrgthen :
10948bdc460c5Smrg  printf %s "(cached) " >&6
109497015785aSmrgelse case e in #(
109507015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1095124047306Smrg/* end confdefs.h.  */
1095224047306Smrgint i;
1095324047306Smrgint
10954bdc460c5Smrgmain (void)
1095524047306Smrg{
1095624047306Smrg
1095724047306Smrg  ;
1095824047306Smrg  return 0;
1095924047306Smrg}
1096024047306Smrg_ACEOF
10961bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
10962bdc460c5Smrgthen :
1096324047306Smrg  eval $cacheid=yes
109647015785aSmrgelse case e in #(
109657015785aSmrg  e) eval $cacheid=no ;;
109667015785aSmrgesac
1096724047306Smrgfi
10968bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
109697015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
109707015785aSmrgesac
1097124047306Smrgfi
1097224047306Smrg
1097324047306Smrg
1097424047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1097524047306Smrg
1097624047306Smrg		eval supported=\$$cacheid
10977bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10978bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
1097924047306Smrg		if test "$supported" = "yes" ; then
1098024047306Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
1098124047306Smrg			found="yes"
1098224047306Smrg		fi
1098324047306Smrg	fi
1098424047306Smrg
1098524047306Smrg
1098624047306Smrgfi
1098724047306Smrg
1098824047306Smrg
1098924047306Smrg
1099024047306Smrg
1099124047306Smrg
1099224047306Smrg
1099324047306Smrg
1099424047306Smrg		CWARNFLAGS="$BASE_CFLAGS"
1099524047306Smrg		if  test "x$GCC" = xyes ; then
1099624047306Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
1099724047306Smrg		fi
1099824047306Smrg
1099924047306Smrg
1100024047306Smrg
1100124047306Smrg
1100224047306Smrg
1100324047306Smrg
1100424047306Smrg
1100524047306Smrg
1100624047306Smrg# Check whether --enable-strict-compilation was given.
11007bdc460c5Smrgif test ${enable_strict_compilation+y}
11008bdc460c5Smrgthen :
1100924047306Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
110107015785aSmrgelse case e in #(
110117015785aSmrg  e) STRICT_COMPILE=no ;;
110127015785aSmrgesac
1101324047306Smrgfi
1101424047306Smrg
1101524047306Smrg
1101624047306Smrg
1101724047306Smrg
1101824047306Smrg
1101924047306Smrg
1102024047306SmrgSTRICT_CFLAGS=""
1102124047306Smrg
1102224047306Smrg
1102324047306Smrg
1102424047306Smrg
1102524047306Smrg
1102624047306Smrg
1102724047306Smrg
1102824047306Smrg
1102924047306Smrg
1103024047306Smrg
1103124047306Smrg
1103224047306Smrg
1103324047306Smrg
1103424047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1103524047306Smrg
1103624047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1103724047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11038bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11039bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11040bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
11041bdc460c5Smrgthen :
11042bdc460c5Smrg  printf %s "(cached) " >&6
110437015785aSmrgelse case e in #(
110447015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1104524047306Smrg/* end confdefs.h.  */
1104624047306Smrgint i;
1104724047306Smrg_ACEOF
11048bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
11049bdc460c5Smrgthen :
1105024047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
110517015785aSmrgelse case e in #(
110527015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
110537015785aSmrgesac
1105424047306Smrgfi
110557015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
110567015785aSmrgesac
1105724047306Smrgfi
11058bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11059bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1106024047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1106124047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1106224047306Smrgfi
1106324047306Smrg
1106424047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1106524047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1106624047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1106724047306Smrg	fi
1106824047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11069bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11070bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11071bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11072bdc460c5Smrgthen :
11073bdc460c5Smrg  printf %s "(cached) " >&6
110747015785aSmrgelse case e in #(
110757015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1107624047306Smrg/* end confdefs.h.  */
1107724047306Smrgint i;
1107824047306Smrg_ACEOF
11079bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
11080bdc460c5Smrgthen :
1108124047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
110827015785aSmrgelse case e in #(
110837015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
110847015785aSmrgesac
1108524047306Smrgfi
110867015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
110877015785aSmrgesac
1108824047306Smrgfi
11089bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11090bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1109124047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1109224047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1109324047306Smrgfi
1109424047306Smrg
1109524047306Smrgfound="no"
1109624047306Smrg
1109724047306Smrg	if test $found = "no" ; then
1109824047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1109924047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1110024047306Smrg		fi
1110124047306Smrg
1110224047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1110324047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1110424047306Smrg		fi
1110524047306Smrg
1110624047306Smrg		CFLAGS="$CFLAGS -pedantic"
1110724047306Smrg
11108bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11109bdc460c5Smrgprintf %s "checking if $CC supports -pedantic... " >&6; }
1111024047306Smrg		cacheid=xorg_cv_cc_flag__pedantic
11111bdc460c5Smrg		if eval test \${$cacheid+y}
11112bdc460c5Smrgthen :
11113bdc460c5Smrg  printf %s "(cached) " >&6
111147015785aSmrgelse case e in #(
111157015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1111624047306Smrg/* end confdefs.h.  */
1111724047306Smrgint i;
1111824047306Smrgint
11119bdc460c5Smrgmain (void)
1112024047306Smrg{
1112124047306Smrg
1112224047306Smrg  ;
1112324047306Smrg  return 0;
1112424047306Smrg}
1112524047306Smrg_ACEOF
11126bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
11127bdc460c5Smrgthen :
1112824047306Smrg  eval $cacheid=yes
111297015785aSmrgelse case e in #(
111307015785aSmrg  e) eval $cacheid=no ;;
111317015785aSmrgesac
1113224047306Smrgfi
11133bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
111347015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
111357015785aSmrgesac
1113624047306Smrgfi
1113724047306Smrg
1113824047306Smrg
1113924047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1114024047306Smrg
1114124047306Smrg		eval supported=\$$cacheid
11142bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11143bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
1114424047306Smrg		if test "$supported" = "yes" ; then
1114524047306Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
1114624047306Smrg			found="yes"
1114724047306Smrg		fi
1114824047306Smrg	fi
1114924047306Smrg
1115024047306Smrg
1115124047306Smrg
1115224047306Smrg
1115324047306Smrg
1115424047306Smrg
1115524047306Smrg
1115624047306Smrg
1115724047306Smrg
1115824047306Smrg
1115924047306Smrg
1116024047306Smrg
1116124047306Smrg
1116224047306Smrg
1116324047306Smrg
1116424047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1116524047306Smrg
1116624047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1116724047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11168bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11169bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11170bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
11171bdc460c5Smrgthen :
11172bdc460c5Smrg  printf %s "(cached) " >&6
111737015785aSmrgelse case e in #(
111747015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1117524047306Smrg/* end confdefs.h.  */
1117624047306Smrgint i;
1117724047306Smrg_ACEOF
11178bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
11179bdc460c5Smrgthen :
1118024047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
111817015785aSmrgelse case e in #(
111827015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
111837015785aSmrgesac
1118424047306Smrgfi
111857015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
111867015785aSmrgesac
1118724047306Smrgfi
11188bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11189bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1119024047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1119124047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1119224047306Smrgfi
1119324047306Smrg
1119424047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1119524047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1119624047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1119724047306Smrg	fi
1119824047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11199bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11200bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11201bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11202bdc460c5Smrgthen :
11203bdc460c5Smrg  printf %s "(cached) " >&6
112047015785aSmrgelse case e in #(
112057015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1120624047306Smrg/* end confdefs.h.  */
1120724047306Smrgint i;
1120824047306Smrg_ACEOF
11209bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
11210bdc460c5Smrgthen :
1121124047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
112127015785aSmrgelse case e in #(
112137015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
112147015785aSmrgesac
11215576bae58Smrgfi
112167015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
112177015785aSmrgesac
11218576bae58Smrgfi
11219bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11220bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1122124047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1122224047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
11223576bae58Smrgfi
11224bf2eeab3Smrg
1122524047306Smrgfound="no"
11226bf2eeab3Smrg
1122724047306Smrg	if test $found = "no" ; then
1122824047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1122924047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1123024047306Smrg		fi
11231bf2eeab3Smrg
1123224047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1123324047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1123424047306Smrg		fi
11235bf2eeab3Smrg
1123624047306Smrg		CFLAGS="$CFLAGS -Werror"
1123724047306Smrg
11238bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11239bdc460c5Smrgprintf %s "checking if $CC supports -Werror... " >&6; }
1124024047306Smrg		cacheid=xorg_cv_cc_flag__Werror
11241bdc460c5Smrg		if eval test \${$cacheid+y}
11242bdc460c5Smrgthen :
11243bdc460c5Smrg  printf %s "(cached) " >&6
112447015785aSmrgelse case e in #(
112457015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1124624047306Smrg/* end confdefs.h.  */
1124724047306Smrgint i;
1124824047306Smrgint
11249bdc460c5Smrgmain (void)
1125024047306Smrg{
1125124047306Smrg
1125224047306Smrg  ;
1125324047306Smrg  return 0;
1125424047306Smrg}
1125524047306Smrg_ACEOF
11256bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
11257bdc460c5Smrgthen :
1125824047306Smrg  eval $cacheid=yes
112597015785aSmrgelse case e in #(
112607015785aSmrg  e) eval $cacheid=no ;;
112617015785aSmrgesac
11262bf2eeab3Smrgfi
11263bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
112647015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
112657015785aSmrgesac
11266bf2eeab3Smrgfi
11267bf2eeab3Smrg
11268bf2eeab3Smrg
1126924047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1127024047306Smrg
1127124047306Smrg		eval supported=\$$cacheid
11272bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11273bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
1127424047306Smrg		if test "$supported" = "yes" ; then
1127524047306Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
1127624047306Smrg			found="yes"
1127724047306Smrg		fi
1127824047306Smrg	fi
1127924047306Smrg
1128024047306Smrg	if test $found = "no" ; then
1128124047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1128224047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1128324047306Smrg		fi
1128424047306Smrg
1128524047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1128624047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1128724047306Smrg		fi
1128824047306Smrg
1128924047306Smrg		CFLAGS="$CFLAGS -errwarn"
1129024047306Smrg
11291bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11292bdc460c5Smrgprintf %s "checking if $CC supports -errwarn... " >&6; }
1129324047306Smrg		cacheid=xorg_cv_cc_flag__errwarn
11294bdc460c5Smrg		if eval test \${$cacheid+y}
11295bdc460c5Smrgthen :
11296bdc460c5Smrg  printf %s "(cached) " >&6
112977015785aSmrgelse case e in #(
112987015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1129924047306Smrg/* end confdefs.h.  */
1130024047306Smrgint i;
1130124047306Smrgint
11302bdc460c5Smrgmain (void)
1130324047306Smrg{
11304576bae58Smrg
1130524047306Smrg  ;
1130624047306Smrg  return 0;
1130724047306Smrg}
1130824047306Smrg_ACEOF
11309bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
11310bdc460c5Smrgthen :
1131124047306Smrg  eval $cacheid=yes
113127015785aSmrgelse case e in #(
113137015785aSmrg  e) eval $cacheid=no ;;
113147015785aSmrgesac
11315bf2eeab3Smrgfi
11316bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
113177015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
113187015785aSmrgesac
11319bf2eeab3Smrgfi
11320576bae58Smrg
11321576bae58Smrg
1132224047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
11323576bae58Smrg
1132424047306Smrg		eval supported=\$$cacheid
11325bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11326bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
1132724047306Smrg		if test "$supported" = "yes" ; then
1132824047306Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
1132924047306Smrg			found="yes"
1133024047306Smrg		fi
1133124047306Smrg	fi
11332576bae58Smrg
11333576bae58Smrg
113341a054510Smrg
1133524047306Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
1133624047306Smrg# activate it with -Werror, so we add it here explicitly.
11337bf2eeab3Smrg
11338bf2eeab3Smrg
11339bf2eeab3Smrg
11340bf2eeab3Smrg
11341bf2eeab3Smrg
11342bf2eeab3Smrg
113431a054510Smrg
1134424047306Smrg
1134524047306Smrg
1134624047306Smrg
1134724047306Smrg
1134824047306Smrg
1134924047306Smrg
1135024047306Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1135124047306Smrg
1135224047306Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1135324047306Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11354bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11355bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11356bdc460c5Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
11357bdc460c5Smrgthen :
11358bdc460c5Smrg  printf %s "(cached) " >&6
113597015785aSmrgelse case e in #(
113607015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1136124047306Smrg/* end confdefs.h.  */
1136224047306Smrgint i;
1136324047306Smrg_ACEOF
11364bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
11365bdc460c5Smrgthen :
1136624047306Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
113677015785aSmrgelse case e in #(
113687015785aSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
113697015785aSmrgesac
1137024047306Smrgfi
113717015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
113727015785aSmrgesac
1137324047306Smrgfi
11374bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11375bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1137624047306Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1137724047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
11378bf2eeab3Smrgfi
11379bf2eeab3Smrg
1138024047306Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1138124047306Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1138224047306Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1138324047306Smrg	fi
1138424047306Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11385bdc460c5Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11386bdc460c5Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11387bdc460c5Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11388bdc460c5Smrgthen :
11389bdc460c5Smrg  printf %s "(cached) " >&6
113907015785aSmrgelse case e in #(
113917015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
113921a054510Smrg/* end confdefs.h.  */
1139324047306Smrgint i;
113941a054510Smrg_ACEOF
11395bdc460c5Smrgif ac_fn_c_try_compile "$LINENO"
11396bdc460c5Smrgthen :
1139724047306Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
113987015785aSmrgelse case e in #(
113997015785aSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
114007015785aSmrgesac
11401bf2eeab3Smrgfi
114027015785aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
114037015785aSmrgesac
11404bf2eeab3Smrgfi
11405bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11406bdc460c5Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1140724047306Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1140824047306Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1140924047306Smrgfi
1141024047306Smrg
1141124047306Smrgfound="no"
1141224047306Smrg
1141324047306Smrg	if test $found = "no" ; then
1141424047306Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1141524047306Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1141624047306Smrg		fi
1141724047306Smrg
1141824047306Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1141924047306Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1142024047306Smrg		fi
1142124047306Smrg
1142224047306Smrg		CFLAGS="$CFLAGS -Werror=attributes"
1142324047306Smrg
11424bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11425bdc460c5Smrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; }
1142624047306Smrg		cacheid=xorg_cv_cc_flag__Werror_attributes
11427bdc460c5Smrg		if eval test \${$cacheid+y}
11428bdc460c5Smrgthen :
11429bdc460c5Smrg  printf %s "(cached) " >&6
114307015785aSmrgelse case e in #(
114317015785aSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1143224047306Smrg/* end confdefs.h.  */
1143324047306Smrgint i;
1143424047306Smrgint
11435bdc460c5Smrgmain (void)
1143624047306Smrg{
1143724047306Smrg
1143824047306Smrg  ;
1143924047306Smrg  return 0;
1144024047306Smrg}
1144124047306Smrg_ACEOF
11442bdc460c5Smrgif ac_fn_c_try_link "$LINENO"
11443bdc460c5Smrgthen :
1144424047306Smrg  eval $cacheid=yes
114457015785aSmrgelse case e in #(
114467015785aSmrg  e) eval $cacheid=no ;;
114477015785aSmrgesac
1144824047306Smrgfi
11449bdc460c5Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
114507015785aSmrg    conftest$ac_exeext conftest.$ac_ext ;;
114517015785aSmrgesac
1145224047306Smrgfi
1145324047306Smrg
1145424047306Smrg
1145524047306Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1145624047306Smrg
1145724047306Smrg		eval supported=\$$cacheid
11458bdc460c5Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11459bdc460c5Smrgprintf "%s\n" "$supported" >&6; }
1146024047306Smrg		if test "$supported" = "yes" ; then
1146124047306Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
1146224047306Smrg			found="yes"
1146324047306Smrg		fi
1146424047306Smrg	fi
1146524047306Smrg
1146624047306Smrg
1146724047306Smrg
114681a054510Smrgif test "x$STRICT_COMPILE" = "xyes"; then
1146924047306Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
114701a054510Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11471bf2eeab3Smrgfi
114721a054510Smrg
11473bf2eeab3Smrg
11474bf2eeab3Smrg
11475bf2eeab3Smrg
11476bf2eeab3Smrg
1147724047306Smrg
114787015785aSmrg
114797015785aSmrg
11480bf2eeab3Smrgcat >>confdefs.h <<_ACEOF
11481bf2eeab3Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11482bf2eeab3Smrg_ACEOF
11483bf2eeab3Smrg
11484bf2eeab3Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11485bf2eeab3Smrg	if test "x$PVM" = "x"; then
11486bf2eeab3Smrg		PVM="0"
11487bf2eeab3Smrg	fi
11488bf2eeab3Smrg
11489bdc460c5Smrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11490bf2eeab3Smrg
11491bf2eeab3Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11492bf2eeab3Smrg	if test "x$PVP" = "x"; then
11493bf2eeab3Smrg		PVP="0"
11494bf2eeab3Smrg	fi
11495bf2eeab3Smrg
11496bdc460c5Smrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11497bf2eeab3Smrg
11498bf2eeab3Smrg
11499bf2eeab3Smrg
11500bdc460c5SmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11501576bae58Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11502bdc460c5Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11503bdc460c5Smrgtouch \$(top_srcdir)/ChangeLog; \
11504bdc460c5Smrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11505bf2eeab3Smrg
11506576bae58Smrg
11507576bae58Smrg
11508576bae58Smrg
11509576bae58Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11510576bae58SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11511576bae58Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11512bdc460c5Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11513bdc460c5Smrgtouch \$(top_srcdir)/INSTALL; \
11514bdc460c5Smrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11515bdc460c5Smrg
11516576bae58Smrg
11517bf2eeab3Smrg
11518bf2eeab3Smrg
11519bf2eeab3Smrg
11520bf2eeab3Smrg
11521bdc460c5Smrgcase $host_os in
11522bdc460c5Smrg    solaris*)
11523bdc460c5Smrg        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11524bdc460c5Smrg        # check for a man page file found in later versions that use
11525bdc460c5Smrg        # traditional section numbers instead
11526bdc460c5Smrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11527bdc460c5Smrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11528bdc460c5Smrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11529bdc460c5Smrgthen :
11530bdc460c5Smrg  printf %s "(cached) " >&6
115317015785aSmrgelse case e in #(
115327015785aSmrg  e) test "$cross_compiling" = yes &&
11533bdc460c5Smrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11534bdc460c5Smrgif test -r "/usr/share/man/man7/attributes.7"; then
11535bdc460c5Smrg  ac_cv_file__usr_share_man_man7_attributes_7=yes
11536bdc460c5Smrgelse
11537bdc460c5Smrg  ac_cv_file__usr_share_man_man7_attributes_7=no
115387015785aSmrgfi ;;
115397015785aSmrgesac
11540bdc460c5Smrgfi
11541bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11542bdc460c5Smrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11543bdc460c5Smrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11544bdc460c5Smrgthen :
11545bdc460c5Smrg  SYSV_MAN_SECTIONS=false
115467015785aSmrgelse case e in #(
115477015785aSmrg  e) SYSV_MAN_SECTIONS=true ;;
115487015785aSmrgesac
11549bdc460c5Smrgfi
11550bdc460c5Smrg
11551bdc460c5Smrg        ;;
11552bdc460c5Smrg    *) SYSV_MAN_SECTIONS=false ;;
11553bdc460c5Smrgesac
11554bf2eeab3Smrg
11555bf2eeab3Smrgif test x$APP_MAN_SUFFIX = x    ; then
11556bf2eeab3Smrg    APP_MAN_SUFFIX=1
11557bf2eeab3Smrgfi
11558bf2eeab3Smrgif test x$APP_MAN_DIR = x    ; then
11559bf2eeab3Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11560bf2eeab3Smrgfi
11561bf2eeab3Smrg
11562bf2eeab3Smrgif test x$LIB_MAN_SUFFIX = x    ; then
11563bf2eeab3Smrg    LIB_MAN_SUFFIX=3
11564bf2eeab3Smrgfi
11565bf2eeab3Smrgif test x$LIB_MAN_DIR = x    ; then
11566bf2eeab3Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11567bf2eeab3Smrgfi
11568bf2eeab3Smrg
11569bf2eeab3Smrgif test x$FILE_MAN_SUFFIX = x    ; then
11570bdc460c5Smrg    case $SYSV_MAN_SECTIONS in
11571bdc460c5Smrg	true)				FILE_MAN_SUFFIX=4  ;;
11572bdc460c5Smrg	*)				FILE_MAN_SUFFIX=5  ;;
11573bf2eeab3Smrg    esac
11574bf2eeab3Smrgfi
11575bf2eeab3Smrgif test x$FILE_MAN_DIR = x    ; then
11576bf2eeab3Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11577bf2eeab3Smrgfi
11578bf2eeab3Smrg
11579bf2eeab3Smrgif test x$MISC_MAN_SUFFIX = x    ; then
11580bdc460c5Smrg    case $SYSV_MAN_SECTIONS in
11581bdc460c5Smrg	true)				MISC_MAN_SUFFIX=5  ;;
11582bdc460c5Smrg	*)				MISC_MAN_SUFFIX=7  ;;
11583bf2eeab3Smrg    esac
11584bf2eeab3Smrgfi
11585bf2eeab3Smrgif test x$MISC_MAN_DIR = x    ; then
11586bf2eeab3Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11587bf2eeab3Smrgfi
11588bf2eeab3Smrg
11589bf2eeab3Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
11590bdc460c5Smrg    case $SYSV_MAN_SECTIONS in
11591bdc460c5Smrg	true)				DRIVER_MAN_SUFFIX=7  ;;
11592bdc460c5Smrg	*)				DRIVER_MAN_SUFFIX=4  ;;
11593bf2eeab3Smrg    esac
11594bf2eeab3Smrgfi
11595bf2eeab3Smrgif test x$DRIVER_MAN_DIR = x    ; then
11596bf2eeab3Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11597bf2eeab3Smrgfi
11598bf2eeab3Smrg
11599bf2eeab3Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
11600bdc460c5Smrg    case $SYSV_MAN_SECTIONS in
11601bdc460c5Smrg	true)				ADMIN_MAN_SUFFIX=1m ;;
11602bdc460c5Smrg	*)				ADMIN_MAN_SUFFIX=8  ;;
11603bf2eeab3Smrg    esac
11604bf2eeab3Smrgfi
11605bf2eeab3Smrgif test x$ADMIN_MAN_DIR = x    ; then
11606bf2eeab3Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11607bf2eeab3Smrgfi
11608bf2eeab3Smrg
11609bf2eeab3Smrg
11610bf2eeab3Smrg
11611bf2eeab3Smrg
11612bf2eeab3Smrg
11613bf2eeab3Smrg
11614bf2eeab3Smrg
11615bf2eeab3Smrg
11616bf2eeab3Smrg
11617bf2eeab3Smrg
11618bf2eeab3Smrg
11619bf2eeab3Smrg
11620bf2eeab3Smrg
11621bf2eeab3Smrg
11622bf2eeab3Smrg
11623576bae58SmrgXORG_MAN_PAGE="X Version 11"
11624bf2eeab3Smrg
11625576bae58SmrgMAN_SUBSTS="\
11626576bae58Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11627576bae58Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11628576bae58Smrg	-e 's|__xservername__|Xorg|g' \
11629576bae58Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
11630576bae58Smrg	-e 's|__projectroot__|\$(prefix)|g' \
11631576bae58Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11632576bae58Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11633576bae58Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11634576bae58Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11635576bae58Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11636576bae58Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11637576bae58Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11638bf2eeab3Smrg
1163914c0a534Smrg
1164014c0a534Smrg
1164114c0a534Smrg
116427015785aSmrgAM_DEFAULT_VERBOSITY=0
11643576bae58Smrg
11644576bae58Smrg
11645576bae58Smrg
11646bdc460c5Smrgac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
11647bdc460c5Smrgif test "x$ac_cv_func_asprintf" = xyes
11648bdc460c5Smrgthen :
11649bdc460c5Smrg  printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
11650bdc460c5Smrg
11651bdc460c5Smrgfi
11652bdc460c5Smrgac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11653bdc460c5Smrgif test "x$ac_cv_func_mkstemp" = xyes
11654bdc460c5Smrgthen :
11655bdc460c5Smrg  printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
11656bdc460c5Smrg
11657bdc460c5Smrgfi
11658bdc460c5Smrgac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
11659bdc460c5Smrgif test "x$ac_cv_func_mktemp" = xyes
11660bdc460c5Smrgthen :
11661bdc460c5Smrg  printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
1166214c0a534Smrg
1166314c0a534Smrgfi
11664576bae58Smrg
11665576bae58Smrg
11666576bae58Smrg# Checks for pkg-config packages
1166714c0a534Smrg
1166814c0a534Smrgpkg_failed=no
11669bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SMPROXY" >&5
11670bdc460c5Smrgprintf %s "checking for SMPROXY... " >&6; }
11671bf2eeab3Smrg
11672bf2eeab3Smrgif test -n "$SMPROXY_CFLAGS"; then
11673bf2eeab3Smrg    pkg_cv_SMPROXY_CFLAGS="$SMPROXY_CFLAGS"
11674bf2eeab3Smrg elif test -n "$PKG_CONFIG"; then
11675bf2eeab3Smrg    if test -n "$PKG_CONFIG" && \
11676bdc460c5Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice xt xmuu\""; } >&5
116771a054510Smrg  ($PKG_CONFIG --exists --print-errors "sm ice xt xmuu") 2>&5
1167814c0a534Smrg  ac_status=$?
11679bdc460c5Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11680576bae58Smrg  test $ac_status = 0; }; then
116811a054510Smrg  pkg_cv_SMPROXY_CFLAGS=`$PKG_CONFIG --cflags "sm ice xt xmuu" 2>/dev/null`
11682bdc460c5Smrg		      test "x$?" != "x0" && pkg_failed=yes
1168314c0a534Smrgelse
1168414c0a534Smrg  pkg_failed=yes
1168514c0a534Smrgfi
11686bf2eeab3Smrg else
11687bf2eeab3Smrg    pkg_failed=untried
1168814c0a534Smrgfi
11689bf2eeab3Smrgif test -n "$SMPROXY_LIBS"; then
11690bf2eeab3Smrg    pkg_cv_SMPROXY_LIBS="$SMPROXY_LIBS"
11691bf2eeab3Smrg elif test -n "$PKG_CONFIG"; then
11692bf2eeab3Smrg    if test -n "$PKG_CONFIG" && \
11693bdc460c5Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice xt xmuu\""; } >&5
116941a054510Smrg  ($PKG_CONFIG --exists --print-errors "sm ice xt xmuu") 2>&5
1169514c0a534Smrg  ac_status=$?
11696bdc460c5Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11697576bae58Smrg  test $ac_status = 0; }; then
116981a054510Smrg  pkg_cv_SMPROXY_LIBS=`$PKG_CONFIG --libs "sm ice xt xmuu" 2>/dev/null`
11699bdc460c5Smrg		      test "x$?" != "x0" && pkg_failed=yes
1170014c0a534Smrgelse
1170114c0a534Smrg  pkg_failed=yes
1170214c0a534Smrgfi
11703bf2eeab3Smrg else
11704bf2eeab3Smrg    pkg_failed=untried
1170514c0a534Smrgfi
1170614c0a534Smrg
1170714c0a534Smrg
1170814c0a534Smrg
1170914c0a534Smrgif test $pkg_failed = yes; then
11710bdc460c5Smrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711bdc460c5Smrgprintf "%s\n" "no" >&6; }
1171214c0a534Smrg
1171314c0a534Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1171414c0a534Smrg        _pkg_short_errors_supported=yes
1171514c0a534Smrgelse
1171614c0a534Smrg        _pkg_short_errors_supported=no
1171714c0a534Smrgfi
1171814c0a534Smrg        if test $_pkg_short_errors_supported = yes; then
11719bdc460c5Smrg	        SMPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sm ice xt xmuu" 2>&1`
1172014c0a534Smrg        else
11721bdc460c5Smrg	        SMPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sm ice xt xmuu" 2>&1`
1172214c0a534Smrg        fi
1172314c0a534Smrg	# Put the nasty error message in config.log where it belongs
1172414c0a534Smrg	echo "$SMPROXY_PKG_ERRORS" >&5
1172514c0a534Smrg
117261a054510Smrg	as_fn_error $? "Package requirements (sm ice xt xmuu) were not met:
1172714c0a534Smrg
1172814c0a534Smrg$SMPROXY_PKG_ERRORS
1172914c0a534Smrg
1173014c0a534SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
1173114c0a534Smrginstalled software in a non-standard prefix.
1173214c0a534Smrg
1173314c0a534SmrgAlternatively, you may set the environment variables SMPROXY_CFLAGS
1173414c0a534Smrgand SMPROXY_LIBS to avoid the need to call pkg-config.
11735bdc460c5SmrgSee the pkg-config man page for more details." "$LINENO" 5
1173614c0a534Smrgelif test $pkg_failed = untried; then
11737bdc460c5Smrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738bdc460c5Smrgprintf "%s\n" "no" >&6; }
117397015785aSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
117407015785aSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11741576bae58Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
1174214c0a534Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
1174314c0a534Smrgpath to pkg-config.
1174414c0a534Smrg
1174514c0a534SmrgAlternatively, you may set the environment variables SMPROXY_CFLAGS
1174614c0a534Smrgand SMPROXY_LIBS to avoid the need to call pkg-config.
1174714c0a534SmrgSee the pkg-config man page for more details.
1174814c0a534Smrg
11749bf2eeab3SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
117507015785aSmrgSee 'config.log' for more details" "$LINENO" 5; }
1175114c0a534Smrgelse
1175214c0a534Smrg	SMPROXY_CFLAGS=$pkg_cv_SMPROXY_CFLAGS
1175314c0a534Smrg	SMPROXY_LIBS=$pkg_cv_SMPROXY_LIBS
11754bdc460c5Smrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11755bdc460c5Smrgprintf "%s\n" "yes" >&6; }
11756bdc460c5Smrg
1175714c0a534Smrgfi
1175814c0a534Smrg
117591a054510Smrgac_config_files="$ac_config_files Makefile man/Makefile"
1176014c0a534Smrg
1176114c0a534Smrgcat >confcache <<\_ACEOF
1176214c0a534Smrg# This file is a shell script that caches the results of configure
1176314c0a534Smrg# tests run on this system so they can be shared between configure
1176414c0a534Smrg# scripts and configure runs, see configure's option --config-cache.
1176514c0a534Smrg# It is not useful on other systems.  If it contains results you don't
1176614c0a534Smrg# want to keep, you may remove or edit it.
1176714c0a534Smrg#
1176814c0a534Smrg# config.status only pays attention to the cache file if you give it
1176914c0a534Smrg# the --recheck option to rerun configure.
1177014c0a534Smrg#
117717015785aSmrg# 'ac_cv_env_foo' variables (set or unset) will be overridden when
117727015785aSmrg# loading this file, other *unset* 'ac_cv_foo' will be assigned the
1177314c0a534Smrg# following values.
1177414c0a534Smrg
1177514c0a534Smrg_ACEOF
1177614c0a534Smrg
1177714c0a534Smrg# The following way of writing the cache mishandles newlines in values,
1177814c0a534Smrg# but we know of no workaround that is simple, portable, and efficient.
11779bf2eeab3Smrg# So, we kill variables containing newlines.
1178014c0a534Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
1178114c0a534Smrg# and sets the high bit in the cache file unless we assign to the vars.
11782bf2eeab3Smrg(
11783bf2eeab3Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11784bf2eeab3Smrg    eval ac_val=\$$ac_var
11785bf2eeab3Smrg    case $ac_val in #(
11786bf2eeab3Smrg    *${as_nl}*)
11787bf2eeab3Smrg      case $ac_var in #(
11788bdc460c5Smrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11789bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11790bf2eeab3Smrg      esac
11791bf2eeab3Smrg      case $ac_var in #(
11792bf2eeab3Smrg      _ | IFS | as_nl) ;; #(
11793bf2eeab3Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11794576bae58Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
11795bf2eeab3Smrg      esac ;;
11796bf2eeab3Smrg    esac
11797bf2eeab3Smrg  done
11798bf2eeab3Smrg
1179914c0a534Smrg  (set) 2>&1 |
11800bf2eeab3Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11801bf2eeab3Smrg    *${as_nl}ac_space=\ *)
118027015785aSmrg      # 'set' does not quote correctly, so add quotes: double-quote
11803576bae58Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
1180414c0a534Smrg      sed -n \
1180514c0a534Smrg	"s/'/'\\\\''/g;
1180614c0a534Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11807bf2eeab3Smrg      ;; #(
1180814c0a534Smrg    *)
118097015785aSmrg      # 'set' quotes correctly as required by POSIX, so do not add quotes.
11810bf2eeab3Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1181114c0a534Smrg      ;;
11812bf2eeab3Smrg    esac |
11813bf2eeab3Smrg    sort
11814bf2eeab3Smrg) |
1181514c0a534Smrg  sed '
11816bf2eeab3Smrg     /^ac_cv_env_/b end
1181714c0a534Smrg     t clear
11818bf2eeab3Smrg     :clear
11819bdc460c5Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1182014c0a534Smrg     t end
11821bf2eeab3Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11822bf2eeab3Smrg     :end' >>confcache
11823bf2eeab3Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11824bf2eeab3Smrg  if test -w "$cache_file"; then
11825576bae58Smrg    if test "x$cache_file" != "x/dev/null"; then
11826bdc460c5Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11827bdc460c5Smrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11828576bae58Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
11829576bae58Smrg	cat confcache >"$cache_file"
11830576bae58Smrg      else
11831576bae58Smrg        case $cache_file in #(
11832576bae58Smrg        */* | ?:*)
11833576bae58Smrg	  mv -f confcache "$cache_file"$$ &&
11834576bae58Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11835576bae58Smrg        *)
11836576bae58Smrg	  mv -f confcache "$cache_file" ;;
11837576bae58Smrg	esac
11838576bae58Smrg      fi
11839576bae58Smrg    fi
1184014c0a534Smrg  else
11841bdc460c5Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11842bdc460c5Smrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1184314c0a534Smrg  fi
1184414c0a534Smrgfi
1184514c0a534Smrgrm -f confcache
1184614c0a534Smrg
1184714c0a534Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
1184814c0a534Smrg# Let make expand exec_prefix.
1184914c0a534Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1185014c0a534Smrg
1185114c0a534SmrgDEFS=-DHAVE_CONFIG_H
1185214c0a534Smrg
1185314c0a534Smrgac_libobjs=
1185414c0a534Smrgac_ltlibobjs=
11855576bae58SmrgU=
1185614c0a534Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1185714c0a534Smrg  # 1. Remove the extension, and $U if already installed.
11858bf2eeab3Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11859bdc460c5Smrg  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11860bf2eeab3Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11861bf2eeab3Smrg  #    will be set to the directory where LIBOBJS objects are built.
11862576bae58Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11863576bae58Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1186414c0a534Smrgdone
1186514c0a534SmrgLIBOBJS=$ac_libobjs
1186614c0a534Smrg
1186714c0a534SmrgLTLIBOBJS=$ac_ltlibobjs
1186814c0a534Smrg
1186914c0a534Smrg
11870bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11871bdc460c5Smrgprintf %s "checking that generated files are newer than configure... " >&6; }
1187224047306Smrg   if test -n "$am_sleep_pid"; then
1187324047306Smrg     # Hide warnings about reused PIDs.
1187424047306Smrg     wait $am_sleep_pid 2>/dev/null
1187524047306Smrg   fi
11876bdc460c5Smrg   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11877bdc460c5Smrgprintf "%s\n" "done" >&6; }
118787015785aSmrgcase $enable_silent_rules in # (((
118797015785aSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
118807015785aSmrg   no) AM_DEFAULT_VERBOSITY=1;;
118817015785aSmrgesac
118827015785aSmrgif test $am_cv_make_support_nested_variables = yes; then
118837015785aSmrg    AM_V='$(V)'
118847015785aSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
118857015785aSmrgelse
118867015785aSmrg  AM_V=$AM_DEFAULT_VERBOSITY
118877015785aSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
118887015785aSmrgfi
118897015785aSmrg
11890bf2eeab3Smrg if test -n "$EXEEXT"; then
11891bf2eeab3Smrg  am__EXEEXT_TRUE=
11892bf2eeab3Smrg  am__EXEEXT_FALSE='#'
11893bf2eeab3Smrgelse
11894bf2eeab3Smrg  am__EXEEXT_TRUE='#'
11895bf2eeab3Smrg  am__EXEEXT_FALSE=
11896bf2eeab3Smrgfi
11897bf2eeab3Smrg
1189814c0a534Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11899576bae58Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
11900576bae58SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1190114c0a534Smrgfi
1190214c0a534Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11903576bae58Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11904576bae58SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1190514c0a534Smrgfi
1190614c0a534Smrg
11907576bae58Smrg: "${CONFIG_STATUS=./config.status}"
11908bf2eeab3Smrgac_write_fail=0
1190914c0a534Smrgac_clean_files_save=$ac_clean_files
1191014c0a534Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
11911bdc460c5Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11912bdc460c5Smrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11913576bae58Smrgas_write_fail=0
11914576bae58Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1191514c0a534Smrg#! $SHELL
1191614c0a534Smrg# Generated by $as_me.
1191714c0a534Smrg# Run this file to recreate the current configuration.
1191814c0a534Smrg# Compiler output produced by configure, useful for debugging
1191914c0a534Smrg# configure, is in config.log if it exists.
1192014c0a534Smrg
1192114c0a534Smrgdebug=false
1192214c0a534Smrgac_cs_recheck=false
1192314c0a534Smrgac_cs_silent=false
1192414c0a534Smrg
11925576bae58SmrgSHELL=\${CONFIG_SHELL-$SHELL}
11926576bae58Smrgexport SHELL
11927576bae58Smrg_ASEOF
11928576bae58Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11929576bae58Smrg## -------------------- ##
11930576bae58Smrg## M4sh Initialization. ##
11931576bae58Smrg## -------------------- ##
1193214c0a534Smrg
11933bf2eeab3Smrg# Be more Bourne compatible
11934bf2eeab3SmrgDUALCASE=1; export DUALCASE # for MKS sh
11935bdc460c5Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11936bdc460c5Smrgthen :
1193714c0a534Smrg  emulate sh
1193814c0a534Smrg  NULLCMD=:
11939bf2eeab3Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1194014c0a534Smrg  # is contrary to our usage.  Disable this feature.
1194114c0a534Smrg  alias -g '${1+"$@"}'='"$@"'
11942bf2eeab3Smrg  setopt NO_GLOB_SUBST
119437015785aSmrgelse case e in #(
119447015785aSmrg  e) case `(set -o) 2>/dev/null` in #(
11945576bae58Smrg  *posix*) :
11946576bae58Smrg    set -o posix ;; #(
11947576bae58Smrg  *) :
11948576bae58Smrg     ;;
119497015785aSmrgesac ;;
11950bf2eeab3Smrgesac
11951bf2eeab3Smrgfi
11952bf2eeab3Smrg
11953bf2eeab3Smrg
11954bdc460c5Smrg
11955bdc460c5Smrg# Reset variables that may have inherited troublesome values from
11956bdc460c5Smrg# the environment.
11957bdc460c5Smrg
11958bdc460c5Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
11959bdc460c5Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
11960bdc460c5Smrg# side effect of setting IFS to empty, thus disabling word splitting.)
11961bdc460c5Smrg# Quoting is to prevent editors from complaining about space-tab.
11962bf2eeab3Smrgas_nl='
11963bf2eeab3Smrg'
11964bf2eeab3Smrgexport as_nl
11965bdc460c5SmrgIFS=" ""	$as_nl"
11966bdc460c5Smrg
11967bdc460c5SmrgPS1='$ '
11968bdc460c5SmrgPS2='> '
11969bdc460c5SmrgPS4='+ '
11970bdc460c5Smrg
11971bdc460c5Smrg# Ensure predictable behavior from utilities with locale-dependent output.
11972bdc460c5SmrgLC_ALL=C
11973bdc460c5Smrgexport LC_ALL
11974bdc460c5SmrgLANGUAGE=C
11975bdc460c5Smrgexport LANGUAGE
11976bdc460c5Smrg
11977bdc460c5Smrg# We cannot yet rely on "unset" to work, but we need these variables
11978bdc460c5Smrg# to be unset--not just set to an empty or harmless value--now, to
11979bdc460c5Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11980bdc460c5Smrg# also avoids known problems related to "unset" and subshell syntax
11981bdc460c5Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11982bdc460c5Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11983bdc460c5Smrgdo eval test \${$as_var+y} \
11984bdc460c5Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11985bdc460c5Smrgdone
11986bdc460c5Smrg
11987bdc460c5Smrg# Ensure that fds 0, 1, and 2 are open.
11988bdc460c5Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11989bdc460c5Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11990bdc460c5Smrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11991bf2eeab3Smrg
11992bf2eeab3Smrg# The user is always right.
11993bdc460c5Smrgif ${PATH_SEPARATOR+false} :; then
11994bf2eeab3Smrg  PATH_SEPARATOR=:
11995bf2eeab3Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11996bf2eeab3Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11997bf2eeab3Smrg      PATH_SEPARATOR=';'
11998bf2eeab3Smrg  }
1199914c0a534Smrgfi
1200014c0a534Smrg
1200114c0a534Smrg
12002bf2eeab3Smrg# Find who we are.  Look in the path if we contain no directory separator.
12003576bae58Smrgas_myself=
12004576bae58Smrgcase $0 in #((
12005bf2eeab3Smrg  *[\\/]* ) as_myself=$0 ;;
12006bf2eeab3Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007bf2eeab3Smrgfor as_dir in $PATH
12008bf2eeab3Smrgdo
12009bf2eeab3Smrg  IFS=$as_save_IFS
12010bdc460c5Smrg  case $as_dir in #(((
12011bdc460c5Smrg    '') as_dir=./ ;;
12012bdc460c5Smrg    */) ;;
12013bdc460c5Smrg    *) as_dir=$as_dir/ ;;
12014bdc460c5Smrg  esac
12015bdc460c5Smrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12016576bae58Smrg  done
12017bf2eeab3SmrgIFS=$as_save_IFS
12018bf2eeab3Smrg
12019bf2eeab3Smrg     ;;
12020bf2eeab3Smrgesac
120217015785aSmrg# We did not find ourselves, most probably we were run as 'sh COMMAND'
12022bf2eeab3Smrg# in which case we are not to be found in the path.
12023bf2eeab3Smrgif test "x$as_myself" = x; then
12024bf2eeab3Smrg  as_myself=$0
12025bf2eeab3Smrgfi
12026bf2eeab3Smrgif test ! -f "$as_myself"; then
12027bdc460c5Smrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12028576bae58Smrg  exit 1
12029bf2eeab3Smrgfi
12030bf2eeab3Smrg
12031576bae58Smrg
12032576bae58Smrg
12033576bae58Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
12034576bae58Smrg# ----------------------------------------
12035576bae58Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12036576bae58Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12037576bae58Smrg# script with STATUS, using 1 if that was 0.
12038576bae58Smrgas_fn_error ()
12039576bae58Smrg{
12040576bae58Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
12041576bae58Smrg  if test "$4"; then
12042576bae58Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12043bdc460c5Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12044576bae58Smrg  fi
12045bdc460c5Smrg  printf "%s\n" "$as_me: error: $2" >&2
12046576bae58Smrg  as_fn_exit $as_status
12047576bae58Smrg} # as_fn_error
12048576bae58Smrg
12049576bae58Smrg
12050576bae58Smrg# as_fn_set_status STATUS
12051576bae58Smrg# -----------------------
12052576bae58Smrg# Set $? to STATUS, without forking.
12053576bae58Smrgas_fn_set_status ()
12054576bae58Smrg{
12055576bae58Smrg  return $1
12056576bae58Smrg} # as_fn_set_status
12057576bae58Smrg
12058576bae58Smrg# as_fn_exit STATUS
12059576bae58Smrg# -----------------
12060576bae58Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12061576bae58Smrgas_fn_exit ()
12062576bae58Smrg{
12063576bae58Smrg  set +e
12064576bae58Smrg  as_fn_set_status $1
12065576bae58Smrg  exit $1
12066576bae58Smrg} # as_fn_exit
12067576bae58Smrg
12068576bae58Smrg# as_fn_unset VAR
12069576bae58Smrg# ---------------
12070576bae58Smrg# Portably unset VAR.
12071576bae58Smrgas_fn_unset ()
12072576bae58Smrg{
12073576bae58Smrg  { eval $1=; unset $1;}
12074576bae58Smrg}
12075576bae58Smrgas_unset=as_fn_unset
12076bdc460c5Smrg
12077576bae58Smrg# as_fn_append VAR VALUE
12078576bae58Smrg# ----------------------
12079576bae58Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
12080576bae58Smrg# advantage of any shell optimizations that allow amortized linear growth over
12081576bae58Smrg# repeated appends, instead of the typical quadratic growth present in naive
12082576bae58Smrg# implementations.
12083bdc460c5Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12084bdc460c5Smrgthen :
12085576bae58Smrg  eval 'as_fn_append ()
12086576bae58Smrg  {
12087576bae58Smrg    eval $1+=\$2
12088576bae58Smrg  }'
120897015785aSmrgelse case e in #(
120907015785aSmrg  e) as_fn_append ()
12091576bae58Smrg  {
12092576bae58Smrg    eval $1=\$$1\$2
120937015785aSmrg  } ;;
120947015785aSmrgesac
12095576bae58Smrgfi # as_fn_append
12096576bae58Smrg
12097576bae58Smrg# as_fn_arith ARG...
12098576bae58Smrg# ------------------
12099576bae58Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
12100576bae58Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
12101576bae58Smrg# must be portable across $(()) and expr.
12102bdc460c5Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12103bdc460c5Smrgthen :
12104576bae58Smrg  eval 'as_fn_arith ()
12105576bae58Smrg  {
12106576bae58Smrg    as_val=$(( $* ))
12107576bae58Smrg  }'
121087015785aSmrgelse case e in #(
121097015785aSmrg  e) as_fn_arith ()
12110576bae58Smrg  {
12111576bae58Smrg    as_val=`expr "$@" || test $? -eq 1`
121127015785aSmrg  } ;;
121137015785aSmrgesac
12114576bae58Smrgfi # as_fn_arith
12115576bae58Smrg
12116576bae58Smrg
12117bf2eeab3Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
12118bf2eeab3Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1211914c0a534Smrg  as_expr=expr
1212014c0a534Smrgelse
1212114c0a534Smrg  as_expr=false
1212214c0a534Smrgfi
1212314c0a534Smrg
12124bf2eeab3Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1212514c0a534Smrg  as_basename=basename
1212614c0a534Smrgelse
1212714c0a534Smrg  as_basename=false
1212814c0a534Smrgfi
1212914c0a534Smrg
12130576bae58Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12131576bae58Smrg  as_dirname=dirname
12132576bae58Smrgelse
12133576bae58Smrg  as_dirname=false
12134576bae58Smrgfi
1213514c0a534Smrg
12136bf2eeab3Smrgas_me=`$as_basename -- "$0" ||
1213714c0a534Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1213814c0a534Smrg	 X"$0" : 'X\(//\)$' \| \
12139bf2eeab3Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12140bdc460c5Smrgprintf "%s\n" X/"$0" |
12141bf2eeab3Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
12142bf2eeab3Smrg	    s//\1/
12143bf2eeab3Smrg	    q
12144bf2eeab3Smrg	  }
12145bf2eeab3Smrg	  /^X\/\(\/\/\)$/{
12146bf2eeab3Smrg	    s//\1/
12147bf2eeab3Smrg	    q
12148bf2eeab3Smrg	  }
12149bf2eeab3Smrg	  /^X\/\(\/\).*/{
12150bf2eeab3Smrg	    s//\1/
12151bf2eeab3Smrg	    q
12152bf2eeab3Smrg	  }
12153bf2eeab3Smrg	  s/.*/./; q'`
1215414c0a534Smrg
12155576bae58Smrg# Avoid depending upon Character Ranges.
12156576bae58Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
12157576bae58Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12158576bae58Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
12159576bae58Smrgas_cr_digits='0123456789'
12160576bae58Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
1216114c0a534Smrg
12162bdc460c5Smrg
12163bdc460c5Smrg# Determine whether it's possible to make 'echo' print without a newline.
12164bdc460c5Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12165bdc460c5Smrg# for compatibility with existing Makefiles.
12166bf2eeab3SmrgECHO_C= ECHO_N= ECHO_T=
12167576bae58Smrgcase `echo -n x` in #(((((
12168bf2eeab3Smrg-n*)
12169576bae58Smrg  case `echo 'xy\c'` in
12170bf2eeab3Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12171576bae58Smrg  xy)  ECHO_C='\c';;
12172576bae58Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12173576bae58Smrg       ECHO_T='	';;
12174bf2eeab3Smrg  esac;;
12175bf2eeab3Smrg*)
12176bf2eeab3Smrg  ECHO_N='-n';;
12177bf2eeab3Smrgesac
1217814c0a534Smrg
12179bdc460c5Smrg# For backward compatibility with old third-party macros, we provide
12180bdc460c5Smrg# the shell variables $as_echo and $as_echo_n.  New code should use
12181bdc460c5Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12182bdc460c5Smrgas_echo='printf %s\n'
12183bdc460c5Smrgas_echo_n='printf %s'
12184bdc460c5Smrg
1218514c0a534Smrgrm -f conf$$ conf$$.exe conf$$.file
12186bf2eeab3Smrgif test -d conf$$.dir; then
12187bf2eeab3Smrg  rm -f conf$$.dir/conf$$.file
12188bf2eeab3Smrgelse
12189bf2eeab3Smrg  rm -f conf$$.dir
12190bf2eeab3Smrg  mkdir conf$$.dir 2>/dev/null
12191bf2eeab3Smrgfi
12192bf2eeab3Smrgif (echo >conf$$.file) 2>/dev/null; then
12193bf2eeab3Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
1219414c0a534Smrg    as_ln_s='ln -s'
12195bf2eeab3Smrg    # ... but there are two gotchas:
121967015785aSmrg    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
121977015785aSmrg    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
121987015785aSmrg    # In both cases, we have to default to 'cp -pR'.
12199bf2eeab3Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1220024047306Smrg      as_ln_s='cp -pR'
12201bf2eeab3Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
12202bf2eeab3Smrg    as_ln_s=ln
12203bf2eeab3Smrg  else
1220424047306Smrg    as_ln_s='cp -pR'
1220514c0a534Smrg  fi
1220614c0a534Smrgelse
1220724047306Smrg  as_ln_s='cp -pR'
1220814c0a534Smrgfi
12209bf2eeab3Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12210bf2eeab3Smrgrmdir conf$$.dir 2>/dev/null
1221114c0a534Smrg
12212576bae58Smrg
12213576bae58Smrg# as_fn_mkdir_p
12214576bae58Smrg# -------------
12215576bae58Smrg# Create "$as_dir" as a directory, including parents if necessary.
12216576bae58Smrgas_fn_mkdir_p ()
12217576bae58Smrg{
12218576bae58Smrg
12219576bae58Smrg  case $as_dir in #(
12220576bae58Smrg  -*) as_dir=./$as_dir;;
12221576bae58Smrg  esac
12222576bae58Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
12223576bae58Smrg    as_dirs=
12224576bae58Smrg    while :; do
12225576bae58Smrg      case $as_dir in #(
12226bdc460c5Smrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12227576bae58Smrg      *) as_qdir=$as_dir;;
12228576bae58Smrg      esac
12229576bae58Smrg      as_dirs="'$as_qdir' $as_dirs"
12230576bae58Smrg      as_dir=`$as_dirname -- "$as_dir" ||
12231576bae58Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12232576bae58Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
12233576bae58Smrg	 X"$as_dir" : 'X\(//\)$' \| \
12234576bae58Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12235bdc460c5Smrgprintf "%s\n" X"$as_dir" |
12236576bae58Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12237576bae58Smrg	    s//\1/
12238576bae58Smrg	    q
12239576bae58Smrg	  }
12240576bae58Smrg	  /^X\(\/\/\)[^/].*/{
12241576bae58Smrg	    s//\1/
12242576bae58Smrg	    q
12243576bae58Smrg	  }
12244576bae58Smrg	  /^X\(\/\/\)$/{
12245576bae58Smrg	    s//\1/
12246576bae58Smrg	    q
12247576bae58Smrg	  }
12248576bae58Smrg	  /^X\(\/\).*/{
12249576bae58Smrg	    s//\1/
12250576bae58Smrg	    q
12251576bae58Smrg	  }
12252576bae58Smrg	  s/.*/./; q'`
12253576bae58Smrg      test -d "$as_dir" && break
12254576bae58Smrg    done
12255576bae58Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
12256576bae58Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12257576bae58Smrg
12258576bae58Smrg
12259576bae58Smrg} # as_fn_mkdir_p
1226014c0a534Smrgif mkdir -p . 2>/dev/null; then
12261576bae58Smrg  as_mkdir_p='mkdir -p "$as_dir"'
1226214c0a534Smrgelse
1226314c0a534Smrg  test -d ./-p && rmdir ./-p
1226414c0a534Smrg  as_mkdir_p=false
1226514c0a534Smrgfi
1226614c0a534Smrg
1226724047306Smrg
1226824047306Smrg# as_fn_executable_p FILE
1226924047306Smrg# -----------------------
1227024047306Smrg# Test if FILE is an executable regular file.
1227124047306Smrgas_fn_executable_p ()
1227224047306Smrg{
1227324047306Smrg  test -f "$1" && test -x "$1"
1227424047306Smrg} # as_fn_executable_p
1227524047306Smrgas_test_x='test -x'
1227624047306Smrgas_executable_p=as_fn_executable_p
1227714c0a534Smrg
1227814c0a534Smrg# Sed expression to map a string onto a valid CPP name.
122797015785aSmrgas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
122807015785aSmrgas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
1228114c0a534Smrg
1228214c0a534Smrg# Sed expression to map a string onto a valid variable name.
122837015785aSmrgas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
122847015785aSmrgas_tr_sh="eval sed '$as_sed_sh'" # deprecated
1228514c0a534Smrg
1228614c0a534Smrg
1228714c0a534Smrgexec 6>&1
12288576bae58Smrg## ----------------------------------- ##
12289576bae58Smrg## Main body of $CONFIG_STATUS script. ##
12290576bae58Smrg## ----------------------------------- ##
12291576bae58Smrg_ASEOF
12292576bae58Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1229314c0a534Smrg
12294576bae58Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12295576bae58Smrg# Save the log message, to keep $0 and so on meaningful, and to
1229614c0a534Smrg# report actual input values of CONFIG_FILES etc. instead of their
12297bf2eeab3Smrg# values after options handling.
12298bf2eeab3Smrgac_log="
122997015785aSmrgThis file was extended by smproxy $as_me 1.0.8, which was
123007015785aSmrggenerated by GNU Autoconf 2.72.  Invocation command line was
1230114c0a534Smrg
1230214c0a534Smrg  CONFIG_FILES    = $CONFIG_FILES
1230314c0a534Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
1230414c0a534Smrg  CONFIG_LINKS    = $CONFIG_LINKS
1230514c0a534Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
1230614c0a534Smrg  $ $0 $@
1230714c0a534Smrg
12308bf2eeab3Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
12309bf2eeab3Smrg"
12310bf2eeab3Smrg
1231114c0a534Smrg_ACEOF
1231214c0a534Smrg
12313bf2eeab3Smrgcase $ac_config_files in *"
12314bf2eeab3Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
12315bf2eeab3Smrgesac
1231614c0a534Smrg
12317bf2eeab3Smrgcase $ac_config_headers in *"
12318bf2eeab3Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12319bf2eeab3Smrgesac
1232014c0a534Smrg
1232114c0a534Smrg
12322bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12323bf2eeab3Smrg# Files that config.status was made for.
12324bf2eeab3Smrgconfig_files="$ac_config_files"
12325bf2eeab3Smrgconfig_headers="$ac_config_headers"
12326bf2eeab3Smrgconfig_commands="$ac_config_commands"
1232714c0a534Smrg
12328bf2eeab3Smrg_ACEOF
1232914c0a534Smrg
12330bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1233114c0a534Smrgac_cs_usage="\
123327015785aSmrg'$as_me' instantiates files and other configuration actions
12333576bae58Smrgfrom templates according to the current configuration.  Unless the files
12334576bae58Smrgand actions are specified as TAGs, all are instantiated by default.
1233514c0a534Smrg
12336576bae58SmrgUsage: $0 [OPTION]... [TAG]...
1233714c0a534Smrg
1233814c0a534Smrg  -h, --help       print this help, then exit
12339bf2eeab3Smrg  -V, --version    print version number and configuration settings, then exit
12340576bae58Smrg      --config     print configuration, then exit
12341bf2eeab3Smrg  -q, --quiet, --silent
12342bf2eeab3Smrg                   do not print progress messages
1234314c0a534Smrg  -d, --debug      don't remove temporary files
1234414c0a534Smrg      --recheck    update $as_me by reconfiguring in the same conditions
12345bf2eeab3Smrg      --file=FILE[:TEMPLATE]
12346bf2eeab3Smrg                   instantiate the configuration file FILE
12347bf2eeab3Smrg      --header=FILE[:TEMPLATE]
12348bf2eeab3Smrg                   instantiate the configuration header FILE
1234914c0a534Smrg
1235014c0a534SmrgConfiguration files:
1235114c0a534Smrg$config_files
1235214c0a534Smrg
1235314c0a534SmrgConfiguration headers:
1235414c0a534Smrg$config_headers
1235514c0a534Smrg
1235614c0a534SmrgConfiguration commands:
1235714c0a534Smrg$config_commands
1235814c0a534Smrg
123597015785aSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/smproxy/-/issues>."
1236014c0a534Smrg
12361bf2eeab3Smrg_ACEOF
12362bdc460c5Smrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12363bdc460c5Smrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12364bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12365bdc460c5Smrgac_cs_config='$ac_cs_config_escaped'
1236614c0a534Smrgac_cs_version="\\
123677015785aSmrgsmproxy config.status 1.0.8
123687015785aSmrgconfigured by $0, generated by GNU Autoconf 2.72,
12369576bae58Smrg  with options \\"\$ac_cs_config\\"
1237014c0a534Smrg
123717015785aSmrgCopyright (C) 2023 Free Software Foundation, Inc.
1237214c0a534SmrgThis config.status script is free software; the Free Software Foundation
1237314c0a534Smrggives unlimited permission to copy, distribute and modify it."
12374bf2eeab3Smrg
12375bf2eeab3Smrgac_pwd='$ac_pwd'
12376bf2eeab3Smrgsrcdir='$srcdir'
12377bf2eeab3SmrgINSTALL='$INSTALL'
12378bf2eeab3SmrgMKDIR_P='$MKDIR_P'
12379bf2eeab3SmrgAWK='$AWK'
12380bf2eeab3Smrgtest -n "\$AWK" || AWK=awk
1238114c0a534Smrg_ACEOF
1238214c0a534Smrg
12383bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12384bf2eeab3Smrg# The default lists apply if the user does not specify any file.
1238514c0a534Smrgac_need_defaults=:
1238614c0a534Smrgwhile test $# != 0
1238714c0a534Smrgdo
1238814c0a534Smrg  case $1 in
12389576bae58Smrg  --*=?*)
12390bf2eeab3Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12391bf2eeab3Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1239214c0a534Smrg    ac_shift=:
1239314c0a534Smrg    ;;
12394576bae58Smrg  --*=)
12395576bae58Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12396576bae58Smrg    ac_optarg=
12397576bae58Smrg    ac_shift=:
12398576bae58Smrg    ;;
12399bf2eeab3Smrg  *)
1240014c0a534Smrg    ac_option=$1
1240114c0a534Smrg    ac_optarg=$2
1240214c0a534Smrg    ac_shift=shift
1240314c0a534Smrg    ;;
1240414c0a534Smrg  esac
1240514c0a534Smrg
1240614c0a534Smrg  case $ac_option in
1240714c0a534Smrg  # Handling of the options.
1240814c0a534Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1240914c0a534Smrg    ac_cs_recheck=: ;;
12410bf2eeab3Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12411bdc460c5Smrg    printf "%s\n" "$ac_cs_version"; exit ;;
12412576bae58Smrg  --config | --confi | --conf | --con | --co | --c )
12413bdc460c5Smrg    printf "%s\n" "$ac_cs_config"; exit ;;
12414bf2eeab3Smrg  --debug | --debu | --deb | --de | --d | -d )
1241514c0a534Smrg    debug=: ;;
1241614c0a534Smrg  --file | --fil | --fi | --f )
1241714c0a534Smrg    $ac_shift
12418bf2eeab3Smrg    case $ac_optarg in
12419bdc460c5Smrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12420576bae58Smrg    '') as_fn_error $? "missing file argument" ;;
12421bf2eeab3Smrg    esac
12422576bae58Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
1242314c0a534Smrg    ac_need_defaults=false;;
1242414c0a534Smrg  --header | --heade | --head | --hea )
1242514c0a534Smrg    $ac_shift
12426bf2eeab3Smrg    case $ac_optarg in
12427bdc460c5Smrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12428bf2eeab3Smrg    esac
12429576bae58Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1243014c0a534Smrg    ac_need_defaults=false;;
12431bf2eeab3Smrg  --he | --h)
12432bf2eeab3Smrg    # Conflict between --help and --header
124337015785aSmrg    as_fn_error $? "ambiguous option: '$1'
124347015785aSmrgTry '$0 --help' for more information.";;
12435bf2eeab3Smrg  --help | --hel | -h )
12436bdc460c5Smrg    printf "%s\n" "$ac_cs_usage"; exit ;;
1243714c0a534Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243814c0a534Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
1243914c0a534Smrg    ac_cs_silent=: ;;
1244014c0a534Smrg
1244114c0a534Smrg  # This is an error.
124427015785aSmrg  -*) as_fn_error $? "unrecognized option: '$1'
124437015785aSmrgTry '$0 --help' for more information." ;;
1244414c0a534Smrg
12445576bae58Smrg  *) as_fn_append ac_config_targets " $1"
12446bf2eeab3Smrg     ac_need_defaults=false ;;
1244714c0a534Smrg
1244814c0a534Smrg  esac
1244914c0a534Smrg  shift
1245014c0a534Smrgdone
1245114c0a534Smrg
1245214c0a534Smrgac_configure_extra_args=
1245314c0a534Smrg
1245414c0a534Smrgif $ac_cs_silent; then
1245514c0a534Smrg  exec 6>/dev/null
1245614c0a534Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
1245714c0a534Smrgfi
1245814c0a534Smrg
1245914c0a534Smrg_ACEOF
12460bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1246114c0a534Smrgif \$ac_cs_recheck; then
1246224047306Smrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12463bf2eeab3Smrg  shift
12464bdc460c5Smrg  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12465bf2eeab3Smrg  CONFIG_SHELL='$SHELL'
12466bf2eeab3Smrg  export CONFIG_SHELL
12467bf2eeab3Smrg  exec "\$@"
1246814c0a534Smrgfi
1246914c0a534Smrg
1247014c0a534Smrg_ACEOF
12471bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12472bf2eeab3Smrgexec 5>>config.log
12473bf2eeab3Smrg{
12474bf2eeab3Smrg  echo
12475bf2eeab3Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12476bf2eeab3Smrg## Running $as_me. ##
12477bf2eeab3Smrg_ASBOX
12478bdc460c5Smrg  printf "%s\n" "$ac_log"
12479bf2eeab3Smrg} >&5
1248014c0a534Smrg
12481bf2eeab3Smrg_ACEOF
12482bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1248314c0a534Smrg#
12484bf2eeab3Smrg# INIT-COMMANDS
1248514c0a534Smrg#
12486bdc460c5SmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1248714c0a534Smrg
1248814c0a534Smrg_ACEOF
1248914c0a534Smrg
12490bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1249114c0a534Smrg
12492bf2eeab3Smrg# Handling of arguments.
1249314c0a534Smrgfor ac_config_target in $ac_config_targets
1249414c0a534Smrgdo
12495bf2eeab3Smrg  case $ac_config_target in
12496bf2eeab3Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12497bf2eeab3Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12498bf2eeab3Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
124991a054510Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12500bf2eeab3Smrg
125017015785aSmrg  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
1250214c0a534Smrg  esac
1250314c0a534Smrgdone
1250414c0a534Smrg
12505bf2eeab3Smrg
1250614c0a534Smrg# If the user did not use the arguments to specify the items to instantiate,
1250714c0a534Smrg# then the envvar interface is used.  Set only those that are not.
1250814c0a534Smrg# We use the long form for the default assignment because of an extremely
1250914c0a534Smrg# bizarre bug on SunOS 4.1.3.
1251014c0a534Smrgif $ac_need_defaults; then
12511bdc460c5Smrg  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12512bdc460c5Smrg  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12513bdc460c5Smrg  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
1251414c0a534Smrgfi
1251514c0a534Smrg
1251614c0a534Smrg# Have a temporary directory for convenience.  Make it in the build tree
12517bf2eeab3Smrg# simply because there is no reason against having it here, and in addition,
1251814c0a534Smrg# creating and moving files from /tmp can sometimes cause problems.
12519bf2eeab3Smrg# Hook for its removal unless debugging.
12520bf2eeab3Smrg# Note that there is a small window in which the directory will not be cleaned:
125217015785aSmrg# after its creation but before its name has been assigned to '$tmp'.
1252214c0a534Smrg$debug ||
1252314c0a534Smrg{
12524576bae58Smrg  tmp= ac_tmp=
12525bf2eeab3Smrg  trap 'exit_status=$?
12526576bae58Smrg  : "${ac_tmp:=$tmp}"
12527576bae58Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12528bf2eeab3Smrg' 0
12529576bae58Smrg  trap 'as_fn_exit 1' 1 2 13 15
1253014c0a534Smrg}
1253114c0a534Smrg# Create a (secure) tmp directory for tmp files.
1253214c0a534Smrg
1253314c0a534Smrg{
12534bf2eeab3Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12535576bae58Smrg  test -d "$tmp"
1253614c0a534Smrg}  ||
1253714c0a534Smrg{
12538bf2eeab3Smrg  tmp=./conf$$-$RANDOM
12539bf2eeab3Smrg  (umask 077 && mkdir "$tmp")
12540576bae58Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12541576bae58Smrgac_tmp=$tmp
1254214c0a534Smrg
12543bf2eeab3Smrg# Set up the scripts for CONFIG_FILES section.
12544bf2eeab3Smrg# No need to generate them if there are no CONFIG_FILES.
125457015785aSmrg# This happens for instance with './config.status config.h'.
12546bf2eeab3Smrgif test -n "$CONFIG_FILES"; then
12547bf2eeab3Smrg
12548bf2eeab3Smrg
12549576bae58Smrgac_cr=`echo X | tr X '\015'`
12550576bae58Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
12551576bae58Smrg# But we know of no other shell where ac_cr would be empty at this
12552576bae58Smrg# point, so we can use a bashism as a fallback.
12553576bae58Smrgif test "x$ac_cr" = x; then
12554576bae58Smrg  eval ac_cr=\$\'\\r\'
12555576bae58Smrgfi
12556bf2eeab3Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12557bf2eeab3Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12558bf2eeab3Smrg  ac_cs_awk_cr='\\r'
12559bf2eeab3Smrgelse
12560bf2eeab3Smrg  ac_cs_awk_cr=$ac_cr
12561bf2eeab3Smrgfi
12562bf2eeab3Smrg
12563576bae58Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1256414c0a534Smrg_ACEOF
1256514c0a534Smrg
1256614c0a534Smrg
12567bf2eeab3Smrg{
12568bf2eeab3Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
12569bf2eeab3Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12570bf2eeab3Smrg  echo "_ACEOF"
12571bf2eeab3Smrg} >conf$$subs.sh ||
12572576bae58Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12573576bae58Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12574bf2eeab3Smrgac_delim='%!_!# '
12575bf2eeab3Smrgfor ac_last_try in false false false false false :; do
12576bf2eeab3Smrg  . ./conf$$subs.sh ||
12577576bae58Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1257814c0a534Smrg
12579bf2eeab3Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12580bf2eeab3Smrg  if test $ac_delim_n = $ac_delim_num; then
12581bf2eeab3Smrg    break
12582bf2eeab3Smrg  elif $ac_last_try; then
12583576bae58Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12584bf2eeab3Smrg  else
12585bf2eeab3Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12586bf2eeab3Smrg  fi
12587bf2eeab3Smrgdone
12588bf2eeab3Smrgrm -f conf$$subs.sh
1258914c0a534Smrg
12590bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12591576bae58Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1259214c0a534Smrg_ACEOF
12593bf2eeab3Smrgsed -n '
12594bf2eeab3Smrgh
12595bf2eeab3Smrgs/^/S["/; s/!.*/"]=/
12596bf2eeab3Smrgp
12597bf2eeab3Smrgg
12598bf2eeab3Smrgs/^[^!]*!//
12599bf2eeab3Smrg:repl
12600bf2eeab3Smrgt repl
12601bf2eeab3Smrgs/'"$ac_delim"'$//
12602bf2eeab3Smrgt delim
12603bf2eeab3Smrg:nl
12604bf2eeab3Smrgh
12605576bae58Smrgs/\(.\{148\}\)..*/\1/
12606bf2eeab3Smrgt more1
12607bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12608bf2eeab3Smrgp
12609bf2eeab3Smrgn
12610bf2eeab3Smrgb repl
12611bf2eeab3Smrg:more1
12612bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12613bf2eeab3Smrgp
12614bf2eeab3Smrgg
12615bf2eeab3Smrgs/.\{148\}//
12616bf2eeab3Smrgt nl
12617bf2eeab3Smrg:delim
12618bf2eeab3Smrgh
12619576bae58Smrgs/\(.\{148\}\)..*/\1/
12620bf2eeab3Smrgt more2
12621bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
12622bf2eeab3Smrgp
12623bf2eeab3Smrgb
12624bf2eeab3Smrg:more2
12625bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12626bf2eeab3Smrgp
12627bf2eeab3Smrgg
12628bf2eeab3Smrgs/.\{148\}//
12629bf2eeab3Smrgt delim
12630bf2eeab3Smrg' <conf$$subs.awk | sed '
12631bf2eeab3Smrg/^[^""]/{
12632bf2eeab3Smrg  N
12633bf2eeab3Smrg  s/\n//
12634bf2eeab3Smrg}
12635bf2eeab3Smrg' >>$CONFIG_STATUS || ac_write_fail=1
12636bf2eeab3Smrgrm -f conf$$subs.awk
12637bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12638bf2eeab3Smrg_ACAWK
12639576bae58Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12640bf2eeab3Smrg  for (key in S) S_is_set[key] = 1
12641bf2eeab3Smrg  FS = ""
1264214c0a534Smrg
12643bf2eeab3Smrg}
12644bf2eeab3Smrg{
12645bf2eeab3Smrg  line = $ 0
12646bf2eeab3Smrg  nfields = split(line, field, "@")
12647bf2eeab3Smrg  substed = 0
12648bf2eeab3Smrg  len = length(field[1])
12649bf2eeab3Smrg  for (i = 2; i < nfields; i++) {
12650bf2eeab3Smrg    key = field[i]
12651bf2eeab3Smrg    keylen = length(key)
12652bf2eeab3Smrg    if (S_is_set[key]) {
12653bf2eeab3Smrg      value = S[key]
12654bf2eeab3Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12655bf2eeab3Smrg      len += length(value) + length(field[++i])
12656bf2eeab3Smrg      substed = 1
12657bf2eeab3Smrg    } else
12658bf2eeab3Smrg      len += 1 + keylen
12659bf2eeab3Smrg  }
12660bf2eeab3Smrg
12661bf2eeab3Smrg  print line
12662bf2eeab3Smrg}
12663bf2eeab3Smrg
12664bf2eeab3Smrg_ACAWK
12665bf2eeab3Smrg_ACEOF
12666bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12667bf2eeab3Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12668bf2eeab3Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12669bf2eeab3Smrgelse
12670bf2eeab3Smrg  cat
12671576bae58Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12672576bae58Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12673bf2eeab3Smrg_ACEOF
12674bf2eeab3Smrg
12675576bae58Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12676576bae58Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12677bf2eeab3Smrg# trailing colons and then remove the whole line if VPATH becomes empty
12678bf2eeab3Smrg# (actually we leave an empty line to preserve line numbers).
12679bf2eeab3Smrgif test "x$srcdir" = x.; then
12680576bae58Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12681576bae58Smrgh
12682576bae58Smrgs///
12683576bae58Smrgs/^/:/
12684576bae58Smrgs/[	 ]*$/:/
12685576bae58Smrgs/:\$(srcdir):/:/g
12686576bae58Smrgs/:\${srcdir}:/:/g
12687576bae58Smrgs/:@srcdir@:/:/g
12688576bae58Smrgs/^:*//
12689bf2eeab3Smrgs/:*$//
12690576bae58Smrgx
12691576bae58Smrgs/\(=[	 ]*\).*/\1/
12692576bae58SmrgG
12693576bae58Smrgs/\n//
12694bf2eeab3Smrgs/^[^=]*=[	 ]*$//
12695bf2eeab3Smrg}'
12696bf2eeab3Smrgfi
12697bf2eeab3Smrg
12698bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1269914c0a534Smrgfi # test -n "$CONFIG_FILES"
1270014c0a534Smrg
12701bf2eeab3Smrg# Set up the scripts for CONFIG_HEADERS section.
12702bf2eeab3Smrg# No need to generate them if there are no CONFIG_HEADERS.
127037015785aSmrg# This happens for instance with './config.status Makefile'.
12704bf2eeab3Smrgif test -n "$CONFIG_HEADERS"; then
12705576bae58Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12706bf2eeab3SmrgBEGIN {
1270714c0a534Smrg_ACEOF
12708bf2eeab3Smrg
127097015785aSmrg# Transform confdefs.h into an awk script 'defines.awk', embedded as
12710bf2eeab3Smrg# here-document in config.status, that substitutes the proper values into
12711bf2eeab3Smrg# config.h.in to produce config.h.
12712bf2eeab3Smrg
12713bf2eeab3Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
12714bf2eeab3Smrg# handling of long lines.
12715bf2eeab3Smrgac_delim='%!_!# '
12716bf2eeab3Smrgfor ac_last_try in false false :; do
12717576bae58Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12718576bae58Smrg  if test -z "$ac_tt"; then
12719bf2eeab3Smrg    break
12720bf2eeab3Smrg  elif $ac_last_try; then
12721576bae58Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12722bf2eeab3Smrg  else
12723bf2eeab3Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12724bf2eeab3Smrg  fi
12725bf2eeab3Smrgdone
12726bf2eeab3Smrg
12727bf2eeab3Smrg# For the awk script, D is an array of macro values keyed by name,
12728bf2eeab3Smrg# likewise P contains macro parameters if any.  Preserve backslash
12729bf2eeab3Smrg# newline sequences.
12730bf2eeab3Smrg
12731bf2eeab3Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12732bf2eeab3Smrgsed -n '
12733bf2eeab3Smrgs/.\{148\}/&'"$ac_delim"'/g
12734bf2eeab3Smrgt rset
12735bf2eeab3Smrg:rset
12736bf2eeab3Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12737bf2eeab3Smrgt def
12738bf2eeab3Smrgd
12739bf2eeab3Smrg:def
12740bf2eeab3Smrgs/\\$//
12741bf2eeab3Smrgt bsnl
12742bf2eeab3Smrgs/["\\]/\\&/g
12743bf2eeab3Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12744bf2eeab3SmrgD["\1"]=" \3"/p
12745bf2eeab3Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12746bf2eeab3Smrgd
12747bf2eeab3Smrg:bsnl
12748bf2eeab3Smrgs/["\\]/\\&/g
12749bf2eeab3Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12750bf2eeab3SmrgD["\1"]=" \3\\\\\\n"\\/p
12751bf2eeab3Smrgt cont
12752bf2eeab3Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12753bf2eeab3Smrgt cont
12754bf2eeab3Smrgd
12755bf2eeab3Smrg:cont
12756bf2eeab3Smrgn
12757bf2eeab3Smrgs/.\{148\}/&'"$ac_delim"'/g
12758bf2eeab3Smrgt clear
12759bf2eeab3Smrg:clear
12760bf2eeab3Smrgs/\\$//
12761bf2eeab3Smrgt bsnlc
12762bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
12763bf2eeab3Smrgd
12764bf2eeab3Smrg:bsnlc
12765bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12766bf2eeab3Smrgb cont
12767bf2eeab3Smrg' <confdefs.h | sed '
12768bf2eeab3Smrgs/'"$ac_delim"'/"\\\
12769bf2eeab3Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
12770bf2eeab3Smrg
12771bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12772bf2eeab3Smrg  for (key in D) D_is_set[key] = 1
12773bf2eeab3Smrg  FS = ""
12774bf2eeab3Smrg}
12775bf2eeab3Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12776bf2eeab3Smrg  line = \$ 0
12777bf2eeab3Smrg  split(line, arg, " ")
12778bf2eeab3Smrg  if (arg[1] == "#") {
12779bf2eeab3Smrg    defundef = arg[2]
12780bf2eeab3Smrg    mac1 = arg[3]
12781bf2eeab3Smrg  } else {
12782bf2eeab3Smrg    defundef = substr(arg[1], 2)
12783bf2eeab3Smrg    mac1 = arg[2]
12784bf2eeab3Smrg  }
12785bf2eeab3Smrg  split(mac1, mac2, "(") #)
12786bf2eeab3Smrg  macro = mac2[1]
12787bf2eeab3Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
12788bf2eeab3Smrg  if (D_is_set[macro]) {
12789bf2eeab3Smrg    # Preserve the white space surrounding the "#".
12790bf2eeab3Smrg    print prefix "define", macro P[macro] D[macro]
12791bf2eeab3Smrg    next
12792bf2eeab3Smrg  } else {
12793bf2eeab3Smrg    # Replace #undef with comments.  This is necessary, for example,
12794bf2eeab3Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
12795bf2eeab3Smrg    # on some systems where configure will not decide to define it.
12796bf2eeab3Smrg    if (defundef == "undef") {
12797bf2eeab3Smrg      print "/*", prefix defundef, macro, "*/"
12798bf2eeab3Smrg      next
12799bf2eeab3Smrg    }
12800bf2eeab3Smrg  }
12801bf2eeab3Smrg}
12802bf2eeab3Smrg{ print }
12803bf2eeab3Smrg_ACAWK
12804bf2eeab3Smrg_ACEOF
12805bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12806576bae58Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12807bf2eeab3Smrgfi # test -n "$CONFIG_HEADERS"
12808bf2eeab3Smrg
12809bf2eeab3Smrg
12810bf2eeab3Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12811bf2eeab3Smrgshift
12812bf2eeab3Smrgfor ac_tag
12813bf2eeab3Smrgdo
12814bf2eeab3Smrg  case $ac_tag in
12815bf2eeab3Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
12816bf2eeab3Smrg  esac
12817bf2eeab3Smrg  case $ac_mode$ac_tag in
12818bf2eeab3Smrg  :[FHL]*:*);;
128197015785aSmrg  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12820bf2eeab3Smrg  :[FH]-) ac_tag=-:-;;
12821bf2eeab3Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12822bf2eeab3Smrg  esac
12823bf2eeab3Smrg  ac_save_IFS=$IFS
12824bf2eeab3Smrg  IFS=:
12825bf2eeab3Smrg  set x $ac_tag
12826bf2eeab3Smrg  IFS=$ac_save_IFS
12827bf2eeab3Smrg  shift
12828bf2eeab3Smrg  ac_file=$1
12829bf2eeab3Smrg  shift
12830bf2eeab3Smrg
12831bf2eeab3Smrg  case $ac_mode in
12832bf2eeab3Smrg  :L) ac_source=$1;;
12833bf2eeab3Smrg  :[FH])
12834bf2eeab3Smrg    ac_file_inputs=
12835bf2eeab3Smrg    for ac_f
12836bf2eeab3Smrg    do
12837bf2eeab3Smrg      case $ac_f in
12838576bae58Smrg      -) ac_f="$ac_tmp/stdin";;
12839bf2eeab3Smrg      *) # Look for the file first in the build tree, then in the source tree
12840bf2eeab3Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
128417015785aSmrg	 # because $ac_f cannot contain ':'.
12842bf2eeab3Smrg	 test -f "$ac_f" ||
12843bf2eeab3Smrg	   case $ac_f in
12844bf2eeab3Smrg	   [\\/$]*) false;;
12845bf2eeab3Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12846bf2eeab3Smrg	   esac ||
128477015785aSmrg	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12848bf2eeab3Smrg      esac
12849bdc460c5Smrg      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12850576bae58Smrg      as_fn_append ac_file_inputs " '$ac_f'"
12851bf2eeab3Smrg    done
12852bf2eeab3Smrg
128537015785aSmrg    # Let's still pretend it is 'configure' which instantiates (i.e., don't
12854bf2eeab3Smrg    # use $as_me), people would be surprised to read:
12855bf2eeab3Smrg    #    /* config.h.  Generated by config.status.  */
12856bf2eeab3Smrg    configure_input='Generated from '`
12857bdc460c5Smrg	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12858bf2eeab3Smrg	`' by configure.'
12859bf2eeab3Smrg    if test x"$ac_file" != x-; then
12860bf2eeab3Smrg      configure_input="$ac_file.  $configure_input"
12861bdc460c5Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12862bdc460c5Smrgprintf "%s\n" "$as_me: creating $ac_file" >&6;}
12863bf2eeab3Smrg    fi
12864bf2eeab3Smrg    # Neutralize special characters interpreted by sed in replacement strings.
12865bf2eeab3Smrg    case $configure_input in #(
12866bf2eeab3Smrg    *\&* | *\|* | *\\* )
12867bdc460c5Smrg       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12868bf2eeab3Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12869bf2eeab3Smrg    *) ac_sed_conf_input=$configure_input;;
12870bf2eeab3Smrg    esac
12871bf2eeab3Smrg
12872bf2eeab3Smrg    case $ac_tag in
12873576bae58Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12874576bae58Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12875bf2eeab3Smrg    esac
12876bf2eeab3Smrg    ;;
1287714c0a534Smrg  esac
1287814c0a534Smrg
12879bf2eeab3Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
1288014c0a534Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288114c0a534Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
1288214c0a534Smrg	 X"$ac_file" : 'X\(//\)$' \| \
12883bf2eeab3Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12884bdc460c5Smrgprintf "%s\n" X"$ac_file" |
12885bf2eeab3Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12886bf2eeab3Smrg	    s//\1/
12887bf2eeab3Smrg	    q
12888bf2eeab3Smrg	  }
12889bf2eeab3Smrg	  /^X\(\/\/\)[^/].*/{
12890bf2eeab3Smrg	    s//\1/
12891bf2eeab3Smrg	    q
12892bf2eeab3Smrg	  }
12893bf2eeab3Smrg	  /^X\(\/\/\)$/{
12894bf2eeab3Smrg	    s//\1/
12895bf2eeab3Smrg	    q
12896bf2eeab3Smrg	  }
12897bf2eeab3Smrg	  /^X\(\/\).*/{
12898bf2eeab3Smrg	    s//\1/
12899bf2eeab3Smrg	    q
12900bf2eeab3Smrg	  }
12901bf2eeab3Smrg	  s/.*/./; q'`
12902576bae58Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
1290314c0a534Smrg  ac_builddir=.
1290414c0a534Smrg
12905bf2eeab3Smrgcase "$ac_dir" in
12906bf2eeab3Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12907bf2eeab3Smrg*)
12908bdc460c5Smrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12909bf2eeab3Smrg  # A ".." for each directory in $ac_dir_suffix.
12910bdc460c5Smrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12911bf2eeab3Smrg  case $ac_top_builddir_sub in
12912bf2eeab3Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12913bf2eeab3Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12914bf2eeab3Smrg  esac ;;
12915bf2eeab3Smrgesac
12916bf2eeab3Smrgac_abs_top_builddir=$ac_pwd
12917bf2eeab3Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
12918bf2eeab3Smrg# for backward compatibility:
12919bf2eeab3Smrgac_top_builddir=$ac_top_build_prefix
1292014c0a534Smrg
1292114c0a534Smrgcase $srcdir in
12922bf2eeab3Smrg  .)  # We are building in place.
1292314c0a534Smrg    ac_srcdir=.
12924bf2eeab3Smrg    ac_top_srcdir=$ac_top_builddir_sub
12925bf2eeab3Smrg    ac_abs_top_srcdir=$ac_pwd ;;
12926bf2eeab3Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1292714c0a534Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
12928bf2eeab3Smrg    ac_top_srcdir=$srcdir
12929bf2eeab3Smrg    ac_abs_top_srcdir=$srcdir ;;
12930bf2eeab3Smrg  *) # Relative name.
12931bf2eeab3Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12932bf2eeab3Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
12933bf2eeab3Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1293414c0a534Smrgesac
12935bf2eeab3Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1293614c0a534Smrg
1293714c0a534Smrg
12938bf2eeab3Smrg  case $ac_mode in
12939bf2eeab3Smrg  :F)
12940bf2eeab3Smrg  #
12941bf2eeab3Smrg  # CONFIG_FILE
12942bf2eeab3Smrg  #
1294314c0a534Smrg
1294414c0a534Smrg  case $INSTALL in
1294514c0a534Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12946bf2eeab3Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1294714c0a534Smrg  esac
12948bf2eeab3Smrg  ac_MKDIR_P=$MKDIR_P
12949bf2eeab3Smrg  case $MKDIR_P in
12950bf2eeab3Smrg  [\\/$]* | ?:[\\/]* ) ;;
12951bf2eeab3Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12952bf2eeab3Smrg  esac
12953bf2eeab3Smrg_ACEOF
1295414c0a534Smrg
12955bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12956bf2eeab3Smrg# If the template does not know about datarootdir, expand it.
12957bf2eeab3Smrg# FIXME: This hack should be removed a few years after 2.60.
12958bf2eeab3Smrgac_datarootdir_hack=; ac_datarootdir_seen=
12959bf2eeab3Smrgac_sed_dataroot='
12960bf2eeab3Smrg/datarootdir/ {
12961bf2eeab3Smrg  p
12962bf2eeab3Smrg  q
12963bf2eeab3Smrg}
12964bf2eeab3Smrg/@datadir@/p
12965bf2eeab3Smrg/@docdir@/p
12966bf2eeab3Smrg/@infodir@/p
12967bf2eeab3Smrg/@localedir@/p
12968576bae58Smrg/@mandir@/p'
12969bf2eeab3Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12970bf2eeab3Smrg*datarootdir*) ac_datarootdir_seen=yes;;
12971bf2eeab3Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12972bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12973bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12974bf2eeab3Smrg_ACEOF
12975bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12976bf2eeab3Smrg  ac_datarootdir_hack='
12977bf2eeab3Smrg  s&@datadir@&$datadir&g
12978bf2eeab3Smrg  s&@docdir@&$docdir&g
12979bf2eeab3Smrg  s&@infodir@&$infodir&g
12980bf2eeab3Smrg  s&@localedir@&$localedir&g
12981bf2eeab3Smrg  s&@mandir@&$mandir&g
12982576bae58Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
12983bf2eeab3Smrgesac
1298414c0a534Smrg_ACEOF
12985bf2eeab3Smrg
129867015785aSmrg# Neutralize VPATH when '$srcdir' = '.'.
12987bf2eeab3Smrg# Shell code in configure.ac might set extrasub.
12988bf2eeab3Smrg# FIXME: do we really want to maintain this feature?
12989bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12990bf2eeab3Smrgac_sed_extra="$ac_vpsub
1299114c0a534Smrg$extrasub
1299214c0a534Smrg_ACEOF
12993bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1299414c0a534Smrg:t
1299514c0a534Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12996bf2eeab3Smrgs|@configure_input@|$ac_sed_conf_input|;t t
12997bf2eeab3Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
12998bf2eeab3Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
12999bf2eeab3Smrgs&@srcdir@&$ac_srcdir&;t t
13000bf2eeab3Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
13001bf2eeab3Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
13002bf2eeab3Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13003bf2eeab3Smrgs&@builddir@&$ac_builddir&;t t
13004bf2eeab3Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
13005bf2eeab3Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13006bf2eeab3Smrgs&@INSTALL@&$ac_INSTALL&;t t
13007bf2eeab3Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
13008bf2eeab3Smrg$ac_datarootdir_hack
13009bf2eeab3Smrg"
13010576bae58Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13011576bae58Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1301214c0a534Smrg
13013bf2eeab3Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13014576bae58Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13015576bae58Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13016576bae58Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
130177015785aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13018576bae58Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
130197015785aSmrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13020576bae58Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
1302114c0a534Smrg
13022576bae58Smrg  rm -f "$ac_tmp/stdin"
1302314c0a534Smrg  case $ac_file in
13024576bae58Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13025576bae58Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13026bf2eeab3Smrg  esac \
13027576bae58Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13028bf2eeab3Smrg ;;
13029bf2eeab3Smrg  :H)
13030bf2eeab3Smrg  #
13031bf2eeab3Smrg  # CONFIG_HEADER
13032bf2eeab3Smrg  #
1303314c0a534Smrg  if test x"$ac_file" != x-; then
13034bf2eeab3Smrg    {
13035bdc460c5Smrg      printf "%s\n" "/* $configure_input  */" >&1 \
13036576bae58Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13037576bae58Smrg    } >"$ac_tmp/config.h" \
13038576bae58Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13039576bae58Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13040bdc460c5Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13041bdc460c5Smrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1304214c0a534Smrg    else
13043bf2eeab3Smrg      rm -f "$ac_file"
13044576bae58Smrg      mv "$ac_tmp/config.h" "$ac_file" \
13045576bae58Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
1304614c0a534Smrg    fi
1304714c0a534Smrg  else
13048bdc460c5Smrg    printf "%s\n" "/* $configure_input  */" >&1 \
13049576bae58Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13050576bae58Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
1305114c0a534Smrg  fi
13052bf2eeab3Smrg# Compute "$ac_file"'s index in $config_headers.
13053bf2eeab3Smrg_am_arg="$ac_file"
1305414c0a534Smrg_am_stamp_count=1
1305514c0a534Smrgfor _am_header in $config_headers :; do
1305614c0a534Smrg  case $_am_header in
13057bf2eeab3Smrg    $_am_arg | $_am_arg:* )
1305814c0a534Smrg      break ;;
1305914c0a534Smrg    * )
1306014c0a534Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1306114c0a534Smrg  esac
1306214c0a534Smrgdone
13063bf2eeab3Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13064bf2eeab3Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13065bf2eeab3Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13066bf2eeab3Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
13067bf2eeab3Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13068bdc460c5Smrgprintf "%s\n" X"$_am_arg" |
13069bf2eeab3Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13070bf2eeab3Smrg	    s//\1/
13071bf2eeab3Smrg	    q
13072bf2eeab3Smrg	  }
13073bf2eeab3Smrg	  /^X\(\/\/\)[^/].*/{
13074bf2eeab3Smrg	    s//\1/
13075bf2eeab3Smrg	    q
13076bf2eeab3Smrg	  }
13077bf2eeab3Smrg	  /^X\(\/\/\)$/{
13078bf2eeab3Smrg	    s//\1/
13079bf2eeab3Smrg	    q
13080bf2eeab3Smrg	  }
13081bf2eeab3Smrg	  /^X\(\/\).*/{
13082bf2eeab3Smrg	    s//\1/
13083bf2eeab3Smrg	    q
13084bf2eeab3Smrg	  }
13085bf2eeab3Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
13086bf2eeab3Smrg ;;
1308714c0a534Smrg
13088bdc460c5Smrg  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13089bdc460c5Smrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13090bf2eeab3Smrg ;;
13091bf2eeab3Smrg  esac
1309214c0a534Smrg
1309314c0a534Smrg
13094bf2eeab3Smrg  case $ac_file$ac_mode in
13095bf2eeab3Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1309624047306Smrg  # Older Autoconf quotes --file arguments for eval, but not when files
13097bf2eeab3Smrg  # are listed without --file.  Let's play safe and only enable the eval
13098bf2eeab3Smrg  # if we detect the quoting.
13099bdc460c5Smrg  # TODO: see whether this extra hack can be removed once we start
13100bdc460c5Smrg  # requiring Autoconf 2.70 or later.
13101bdc460c5Smrg  case $CONFIG_FILES in #(
13102bdc460c5Smrg  *\'*) :
13103bdc460c5Smrg    eval set x "$CONFIG_FILES" ;; #(
13104bdc460c5Smrg  *) :
13105bdc460c5Smrg    set x $CONFIG_FILES ;; #(
13106bdc460c5Smrg  *) :
13107bdc460c5Smrg     ;;
13108bdc460c5Smrgesac
13109bf2eeab3Smrg  shift
13110bdc460c5Smrg  # Used to flag and report bootstrapping failures.
13111bdc460c5Smrg  am_rc=0
13112bdc460c5Smrg  for am_mf
13113bf2eeab3Smrg  do
13114bf2eeab3Smrg    # Strip MF so we end up with the name of the file.
13115bdc460c5Smrg    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13116bdc460c5Smrg    # Check whether this is an Automake generated Makefile which includes
13117bdc460c5Smrg    # dependency-tracking related rules and includes.
13118bdc460c5Smrg    # Grep'ing the whole file directly is not great: AIX grep has a line
13119bf2eeab3Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
13120bdc460c5Smrg    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13121bdc460c5Smrg      || continue
13122bdc460c5Smrg    am_dirpart=`$as_dirname -- "$am_mf" ||
13123bdc460c5Smrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13124bdc460c5Smrg	 X"$am_mf" : 'X\(//\)[^/]' \| \
13125bdc460c5Smrg	 X"$am_mf" : 'X\(//\)$' \| \
13126bdc460c5Smrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13127bdc460c5Smrgprintf "%s\n" X"$am_mf" |
13128bf2eeab3Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13129bf2eeab3Smrg	    s//\1/
13130bf2eeab3Smrg	    q
13131bf2eeab3Smrg	  }
13132bf2eeab3Smrg	  /^X\(\/\/\)[^/].*/{
13133bf2eeab3Smrg	    s//\1/
13134bf2eeab3Smrg	    q
13135bf2eeab3Smrg	  }
13136bf2eeab3Smrg	  /^X\(\/\/\)$/{
13137bf2eeab3Smrg	    s//\1/
13138bf2eeab3Smrg	    q
13139bf2eeab3Smrg	  }
13140bf2eeab3Smrg	  /^X\(\/\).*/{
13141bf2eeab3Smrg	    s//\1/
13142bf2eeab3Smrg	    q
13143bf2eeab3Smrg	  }
13144bf2eeab3Smrg	  s/.*/./; q'`
13145bdc460c5Smrg    am_filepart=`$as_basename -- "$am_mf" ||
13146bdc460c5Smrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13147bdc460c5Smrg	 X"$am_mf" : 'X\(//\)$' \| \
13148bdc460c5Smrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13149bdc460c5Smrgprintf "%s\n" X/"$am_mf" |
13150bdc460c5Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
13151bf2eeab3Smrg	    s//\1/
13152bf2eeab3Smrg	    q
13153bf2eeab3Smrg	  }
13154bdc460c5Smrg	  /^X\/\(\/\/\)$/{
13155bf2eeab3Smrg	    s//\1/
13156bf2eeab3Smrg	    q
13157bf2eeab3Smrg	  }
13158bdc460c5Smrg	  /^X\/\(\/\).*/{
13159bf2eeab3Smrg	    s//\1/
13160bf2eeab3Smrg	    q
13161bf2eeab3Smrg	  }
13162bf2eeab3Smrg	  s/.*/./; q'`
13163bdc460c5Smrg    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13164bdc460c5Smrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
13165bdc460c5Smrg        | $MAKE -f - am--depfiles" >&5
13166bdc460c5Smrg   (cd "$am_dirpart" \
13167bdc460c5Smrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
13168bdc460c5Smrg        | $MAKE -f - am--depfiles) >&5 2>&5
13169bdc460c5Smrg   ac_status=$?
13170bdc460c5Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171bdc460c5Smrg   (exit $ac_status); } || am_rc=$?
1317214c0a534Smrg  done
13173bdc460c5Smrg  if test $am_rc -ne 0; then
131747015785aSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
131757015785aSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13176bdc460c5Smrgas_fn_error $? "Something went wrong bootstrapping makefile fragments
13177bdc460c5Smrg    for automatic dependency tracking.  If GNU make was not used, consider
13178bdc460c5Smrg    re-running the configure script with MAKE=\"gmake\" (or whatever is
13179bdc460c5Smrg    necessary).  You can also try re-running configure with the
13180bdc460c5Smrg    '--disable-dependency-tracking' option to at least be able to build
13181bdc460c5Smrg    the package (albeit without support for automatic dependency tracking).
131827015785aSmrgSee 'config.log' for more details" "$LINENO" 5; }
13183bdc460c5Smrg  fi
13184bdc460c5Smrg  { am_dirpart=; unset am_dirpart;}
13185bdc460c5Smrg  { am_filepart=; unset am_filepart;}
13186bdc460c5Smrg  { am_mf=; unset am_mf;}
13187bdc460c5Smrg  { am_rc=; unset am_rc;}
13188bdc460c5Smrg  rm -f conftest-deps.mk
13189bf2eeab3Smrg}
1319014c0a534Smrg ;;
13191bf2eeab3Smrg
1319214c0a534Smrg  esac
13193bf2eeab3Smrgdone # for ac_tag
1319414c0a534Smrg
1319514c0a534Smrg
13196576bae58Smrgas_fn_exit 0
1319714c0a534Smrg_ACEOF
1319814c0a534Smrgac_clean_files=$ac_clean_files_save
1319914c0a534Smrg
13200bf2eeab3Smrgtest $ac_write_fail = 0 ||
13201576bae58Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13202bf2eeab3Smrg
1320314c0a534Smrg
1320414c0a534Smrg# configure is writing to config.log, and then calls config.status.
1320514c0a534Smrg# config.status does its own redirection, appending to config.log.
1320614c0a534Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
1320714c0a534Smrg# by configure, so config.status won't be able to write to it; its
1320814c0a534Smrg# output is simply discarded.  So we exec the FD to /dev/null,
1320914c0a534Smrg# effectively closing config.log, so it can be properly (re)opened and
1321014c0a534Smrg# appended to by config.status.  When coming back to configure, we
1321114c0a534Smrg# need to make the FD available again.
1321214c0a534Smrgif test "$no_create" != yes; then
1321314c0a534Smrg  ac_cs_success=:
1321414c0a534Smrg  ac_config_status_args=
1321514c0a534Smrg  test "$silent" = yes &&
1321614c0a534Smrg    ac_config_status_args="$ac_config_status_args --quiet"
1321714c0a534Smrg  exec 5>/dev/null
1321814c0a534Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1321914c0a534Smrg  exec 5>>config.log
1322014c0a534Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
1322114c0a534Smrg  # would make configure fail if this is the last instruction.
13222576bae58Smrg  $ac_cs_success || as_fn_exit 1
1322314c0a534Smrgfi
13224bf2eeab3Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13225bdc460c5Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13226bdc460c5Smrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13227bf2eeab3Smrgfi
1322814c0a534Smrg
13229bdc460c5Smrg
13230