configure revision f6d57fde
17a0395d0Smrg#! /bin/sh
27a0395d0Smrg# Guess values for system-dependent variables and create Makefiles.
3f6d57fdeSmrg# Generated by GNU Autoconf 2.72 for xauth 1.1.4.
47a0395d0Smrg#
5273c00b8Smrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/-/issues>.
67a0395d0Smrg#
72adc0320Smrg#
8273c00b8Smrg# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9765b7306Smrg# Inc.
102adc0320Smrg#
112adc0320Smrg#
127a0395d0Smrg# This configure script is free software; the Free Software Foundation
137a0395d0Smrg# gives unlimited permission to copy, distribute and modify it.
142adc0320Smrg## -------------------- ##
152adc0320Smrg## M4sh Initialization. ##
162adc0320Smrg## -------------------- ##
177a0395d0Smrg
187a0395d0Smrg# Be more Bourne compatible
197a0395d0SmrgDUALCASE=1; export DUALCASE # for MKS sh
20765b7306Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21765b7306Smrgthen :
227a0395d0Smrg  emulate sh
237a0395d0Smrg  NULLCMD=:
247366012aSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
257a0395d0Smrg  # is contrary to our usage.  Disable this feature.
267a0395d0Smrg  alias -g '${1+"$@"}'='"$@"'
277a0395d0Smrg  setopt NO_GLOB_SUBST
28273c00b8Smrgelse case e in #(
29273c00b8Smrg  e) case `(set -o) 2>/dev/null` in #(
302adc0320Smrg  *posix*) :
312adc0320Smrg    set -o posix ;; #(
322adc0320Smrg  *) :
332adc0320Smrg     ;;
34273c00b8Smrgesac ;;
357a0395d0Smrgesac
367a0395d0Smrgfi
377a0395d0Smrg
387a0395d0Smrg
39765b7306Smrg
40765b7306Smrg# Reset variables that may have inherited troublesome values from
41765b7306Smrg# the environment.
42765b7306Smrg
43765b7306Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
44765b7306Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
45765b7306Smrg# side effect of setting IFS to empty, thus disabling word splitting.)
46765b7306Smrg# Quoting is to prevent editors from complaining about space-tab.
477366012aSmrgas_nl='
487366012aSmrg'
497366012aSmrgexport as_nl
50765b7306SmrgIFS=" ""	$as_nl"
51765b7306Smrg
52765b7306SmrgPS1='$ '
53765b7306SmrgPS2='> '
54765b7306SmrgPS4='+ '
55765b7306Smrg
56765b7306Smrg# Ensure predictable behavior from utilities with locale-dependent output.
57765b7306SmrgLC_ALL=C
58765b7306Smrgexport LC_ALL
59765b7306SmrgLANGUAGE=C
60765b7306Smrgexport LANGUAGE
61765b7306Smrg
62765b7306Smrg# We cannot yet rely on "unset" to work, but we need these variables
63765b7306Smrg# to be unset--not just set to an empty or harmless value--now, to
64765b7306Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65765b7306Smrg# also avoids known problems related to "unset" and subshell syntax
66765b7306Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67765b7306Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68765b7306Smrgdo eval test \${$as_var+y} \
69765b7306Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70765b7306Smrgdone
71765b7306Smrg
72765b7306Smrg# Ensure that fds 0, 1, and 2 are open.
73765b7306Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74765b7306Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75765b7306Smrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
767366012aSmrg
777366012aSmrg# The user is always right.
78765b7306Smrgif ${PATH_SEPARATOR+false} :; then
797366012aSmrg  PATH_SEPARATOR=:
807366012aSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
817366012aSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
827366012aSmrg      PATH_SEPARATOR=';'
837366012aSmrg  }
847a0395d0Smrgfi
857a0395d0Smrg
867a0395d0Smrg
877a0395d0Smrg# Find who we are.  Look in the path if we contain no directory separator.
882adc0320Smrgas_myself=
892adc0320Smrgcase $0 in #((
907a0395d0Smrg  *[\\/]* ) as_myself=$0 ;;
917a0395d0Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
927a0395d0Smrgfor as_dir in $PATH
937a0395d0Smrgdo
947a0395d0Smrg  IFS=$as_save_IFS
95765b7306Smrg  case $as_dir in #(((
96765b7306Smrg    '') as_dir=./ ;;
97765b7306Smrg    */) ;;
98765b7306Smrg    *) as_dir=$as_dir/ ;;
99765b7306Smrg  esac
100765b7306Smrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1012adc0320Smrg  done
1027a0395d0SmrgIFS=$as_save_IFS
1037a0395d0Smrg
1047a0395d0Smrg     ;;
1057a0395d0Smrgesac
106273c00b8Smrg# We did not find ourselves, most probably we were run as 'sh COMMAND'
1077a0395d0Smrg# in which case we are not to be found in the path.
1087a0395d0Smrgif test "x$as_myself" = x; then
1097a0395d0Smrg  as_myself=$0
1107a0395d0Smrgfi
1117a0395d0Smrgif test ! -f "$as_myself"; then
112765b7306Smrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1132adc0320Smrg  exit 1
1147a0395d0Smrgfi
1157a0395d0Smrg
1162adc0320Smrg
1178abc0ccfSmrg# Use a proper internal environment variable to ensure we don't fall
1188abc0ccfSmrg  # into an infinite loop, continuously re-executing ourselves.
1198abc0ccfSmrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
1208abc0ccfSmrg    _as_can_reexec=no; export _as_can_reexec;
1218abc0ccfSmrg    # We cannot yet assume a decent shell, so we have to provide a
1228abc0ccfSmrg# neutralization value for shells without unset; and this also
1238abc0ccfSmrg# works around shells that cannot unset nonexistent variables.
1248abc0ccfSmrg# Preserve -v and -x to the replacement shell.
1258abc0ccfSmrgBASH_ENV=/dev/null
1268abc0ccfSmrgENV=/dev/null
1278abc0ccfSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
1288abc0ccfSmrgcase $- in # ((((
1298abc0ccfSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
1308abc0ccfSmrg  *v* ) as_opts=-v ;;
1318abc0ccfSmrg  *x* ) as_opts=-x ;;
1328abc0ccfSmrg  * ) as_opts= ;;
1338abc0ccfSmrgesac
1348abc0ccfSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
1358abc0ccfSmrg# Admittedly, this is quite paranoid, since all the known shells bail
136273c00b8Smrg# out after a failed 'exec'.
137765b7306Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138765b7306Smrgexit 255
1398abc0ccfSmrg  fi
1408abc0ccfSmrg  # We don't want this to propagate to other subprocesses.
1418abc0ccfSmrg          { _as_can_reexec=; unset _as_can_reexec;}
1422adc0320Smrgif test "x$CONFIG_SHELL" = x; then
143273c00b8Smrg  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144765b7306Smrgthen :
1452adc0320Smrg  emulate sh
1462adc0320Smrg  NULLCMD=:
1472adc0320Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1482adc0320Smrg  # is contrary to our usage.  Disable this feature.
1492adc0320Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1502adc0320Smrg  setopt NO_GLOB_SUBST
151273c00b8Smrgelse case e in #(
152273c00b8Smrg  e) case \`(set -o) 2>/dev/null\` in #(
1532adc0320Smrg  *posix*) :
1542adc0320Smrg    set -o posix ;; #(
1552adc0320Smrg  *) :
1562adc0320Smrg     ;;
157273c00b8Smrgesac ;;
1582adc0320Smrgesac
1592adc0320Smrgfi
1602adc0320Smrg"
1612adc0320Smrg  as_required="as_fn_return () { (exit \$1); }
1622adc0320Smrgas_fn_success () { as_fn_return 0; }
1632adc0320Smrgas_fn_failure () { as_fn_return 1; }
1642adc0320Smrgas_fn_ret_success () { return 0; }
1652adc0320Smrgas_fn_ret_failure () { return 1; }
1662adc0320Smrg
1672adc0320Smrgexitcode=0
1682adc0320Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1692adc0320Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1702adc0320Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1712adc0320Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172765b7306Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" )
173765b7306Smrgthen :
1742adc0320Smrg
175273c00b8Smrgelse case e in #(
176273c00b8Smrg  e) exitcode=1; echo positional parameters were not saved. ;;
177273c00b8Smrgesac
1782adc0320Smrgfi
1798abc0ccfSmrgtest x\$exitcode = x0 || exit 1
180765b7306Smrgblah=\$(echo \$(echo blah))
181765b7306Smrgtest x\"\$blah\" = xblah || exit 1
1828abc0ccfSmrgtest -x / || exit 1"
1832adc0320Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1842adc0320Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1852adc0320Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1862adc0320Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1872adc0320Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
188765b7306Smrg  if (eval "$as_required") 2>/dev/null
189765b7306Smrgthen :
1902adc0320Smrg  as_have_required=yes
191273c00b8Smrgelse case e in #(
192273c00b8Smrg  e) as_have_required=no ;;
193273c00b8Smrgesac
1942adc0320Smrgfi
195765b7306Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196765b7306Smrgthen :
1972adc0320Smrg
198273c00b8Smrgelse case e in #(
199273c00b8Smrg  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002adc0320Smrgas_found=false
2012adc0320Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2022adc0320Smrgdo
2032adc0320Smrg  IFS=$as_save_IFS
204765b7306Smrg  case $as_dir in #(((
205765b7306Smrg    '') as_dir=./ ;;
206765b7306Smrg    */) ;;
207765b7306Smrg    *) as_dir=$as_dir/ ;;
208765b7306Smrg  esac
2092adc0320Smrg  as_found=:
2102adc0320Smrg  case $as_dir in #(
2112adc0320Smrg	 /*)
2122adc0320Smrg	   for as_base in sh bash ksh sh5; do
2132adc0320Smrg	     # Try only shells that exist, to save several forks.
214765b7306Smrg	     as_shell=$as_dir$as_base
2152adc0320Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216765b7306Smrg		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217765b7306Smrgthen :
2182adc0320Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
219765b7306Smrg		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220765b7306Smrgthen :
2212adc0320Smrg  break 2
2222adc0320Smrgfi
2232adc0320Smrgfi
2242adc0320Smrg	   done;;
2252adc0320Smrg       esac
2262adc0320Smrg  as_found=false
2272adc0320Smrgdone
2282adc0320SmrgIFS=$as_save_IFS
229765b7306Smrgif $as_found
230765b7306Smrgthen :
231765b7306Smrg
232273c00b8Smrgelse case e in #(
233273c00b8Smrg  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234765b7306Smrg	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235765b7306Smrgthen :
236765b7306Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
237273c00b8Smrgfi ;;
238273c00b8Smrgesac
239765b7306Smrgfi
2402adc0320Smrg
2412adc0320Smrg
242765b7306Smrg      if test "x$CONFIG_SHELL" != x
243765b7306Smrgthen :
2448abc0ccfSmrg  export CONFIG_SHELL
2458abc0ccfSmrg             # We cannot yet assume a decent shell, so we have to provide a
2468abc0ccfSmrg# neutralization value for shells without unset; and this also
2478abc0ccfSmrg# works around shells that cannot unset nonexistent variables.
2488abc0ccfSmrg# Preserve -v and -x to the replacement shell.
2498abc0ccfSmrgBASH_ENV=/dev/null
2508abc0ccfSmrgENV=/dev/null
2518abc0ccfSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2528abc0ccfSmrgcase $- in # ((((
2538abc0ccfSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
2548abc0ccfSmrg  *v* ) as_opts=-v ;;
2558abc0ccfSmrg  *x* ) as_opts=-x ;;
2568abc0ccfSmrg  * ) as_opts= ;;
2578abc0ccfSmrgesac
2588abc0ccfSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
2598abc0ccfSmrg# Admittedly, this is quite paranoid, since all the known shells bail
260273c00b8Smrg# out after a failed 'exec'.
261765b7306Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
2628abc0ccfSmrgexit 255
2632adc0320Smrgfi
2642adc0320Smrg
265765b7306Smrg    if test x$as_have_required = xno
266765b7306Smrgthen :
267765b7306Smrg  printf "%s\n" "$0: This script requires a shell more modern than all"
268765b7306Smrg  printf "%s\n" "$0: the shells that I found on your system."
269765b7306Smrg  if test ${ZSH_VERSION+y} ; then
270765b7306Smrg    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271765b7306Smrg    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
2722adc0320Smrg  else
273765b7306Smrg    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
274273c00b8Smrg$0: https://gitlab.freedesktop.org/xorg/app/xauth/-/issues
2752adc0320Smrg$0: about your system, including any error possibly output
2762adc0320Smrg$0: before this message. Then install a modern shell, or
2772adc0320Smrg$0: manually run the script under such a shell if you do
2782adc0320Smrg$0: have one."
2792adc0320Smrg  fi
2802adc0320Smrg  exit 1
281273c00b8Smrgfi ;;
282273c00b8Smrgesac
2832adc0320Smrgfi
2842adc0320Smrgfi
2852adc0320SmrgSHELL=${CONFIG_SHELL-/bin/sh}
2862adc0320Smrgexport SHELL
2872adc0320Smrg# Unset more variables known to interfere with behavior of common tools.
2882adc0320SmrgCLICOLOR_FORCE= GREP_OPTIONS=
2892adc0320Smrgunset CLICOLOR_FORCE GREP_OPTIONS
2902adc0320Smrg
2912adc0320Smrg## --------------------- ##
2922adc0320Smrg## M4sh Shell Functions. ##
2932adc0320Smrg## --------------------- ##
2942adc0320Smrg# as_fn_unset VAR
2952adc0320Smrg# ---------------
2962adc0320Smrg# Portably unset VAR.
2972adc0320Smrgas_fn_unset ()
2982adc0320Smrg{
2992adc0320Smrg  { eval $1=; unset $1;}
3002adc0320Smrg}
3012adc0320Smrgas_unset=as_fn_unset
3022adc0320Smrg
303765b7306Smrg
3042adc0320Smrg# as_fn_set_status STATUS
3052adc0320Smrg# -----------------------
3062adc0320Smrg# Set $? to STATUS, without forking.
3072adc0320Smrgas_fn_set_status ()
3082adc0320Smrg{
3092adc0320Smrg  return $1
3102adc0320Smrg} # as_fn_set_status
3112adc0320Smrg
3122adc0320Smrg# as_fn_exit STATUS
3132adc0320Smrg# -----------------
3142adc0320Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3152adc0320Smrgas_fn_exit ()
3162adc0320Smrg{
3172adc0320Smrg  set +e
3182adc0320Smrg  as_fn_set_status $1
3192adc0320Smrg  exit $1
3202adc0320Smrg} # as_fn_exit
3212adc0320Smrg
3222adc0320Smrg# as_fn_mkdir_p
3232adc0320Smrg# -------------
3242adc0320Smrg# Create "$as_dir" as a directory, including parents if necessary.
3252adc0320Smrgas_fn_mkdir_p ()
3262adc0320Smrg{
3272adc0320Smrg
3282adc0320Smrg  case $as_dir in #(
3292adc0320Smrg  -*) as_dir=./$as_dir;;
3302adc0320Smrg  esac
3312adc0320Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
3322adc0320Smrg    as_dirs=
3332adc0320Smrg    while :; do
3342adc0320Smrg      case $as_dir in #(
335765b7306Smrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3362adc0320Smrg      *) as_qdir=$as_dir;;
3372adc0320Smrg      esac
3382adc0320Smrg      as_dirs="'$as_qdir' $as_dirs"
3392adc0320Smrg      as_dir=`$as_dirname -- "$as_dir" ||
3402adc0320Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3412adc0320Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3422adc0320Smrg	 X"$as_dir" : 'X\(//\)$' \| \
3432adc0320Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344765b7306Smrgprintf "%s\n" X"$as_dir" |
3452adc0320Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3462adc0320Smrg	    s//\1/
3472adc0320Smrg	    q
3482adc0320Smrg	  }
3492adc0320Smrg	  /^X\(\/\/\)[^/].*/{
3502adc0320Smrg	    s//\1/
3512adc0320Smrg	    q
3522adc0320Smrg	  }
3532adc0320Smrg	  /^X\(\/\/\)$/{
3542adc0320Smrg	    s//\1/
3552adc0320Smrg	    q
3562adc0320Smrg	  }
3572adc0320Smrg	  /^X\(\/\).*/{
3582adc0320Smrg	    s//\1/
3592adc0320Smrg	    q
3602adc0320Smrg	  }
3612adc0320Smrg	  s/.*/./; q'`
3622adc0320Smrg      test -d "$as_dir" && break
3632adc0320Smrg    done
3642adc0320Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3652adc0320Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3662adc0320Smrg
3672adc0320Smrg
3682adc0320Smrg} # as_fn_mkdir_p
3698abc0ccfSmrg
3708abc0ccfSmrg# as_fn_executable_p FILE
3718abc0ccfSmrg# -----------------------
3728abc0ccfSmrg# Test if FILE is an executable regular file.
3738abc0ccfSmrgas_fn_executable_p ()
3748abc0ccfSmrg{
3758abc0ccfSmrg  test -f "$1" && test -x "$1"
3768abc0ccfSmrg} # as_fn_executable_p
3772adc0320Smrg# as_fn_append VAR VALUE
3782adc0320Smrg# ----------------------
3792adc0320Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3802adc0320Smrg# advantage of any shell optimizations that allow amortized linear growth over
3812adc0320Smrg# repeated appends, instead of the typical quadratic growth present in naive
3822adc0320Smrg# implementations.
383765b7306Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384765b7306Smrgthen :
3852adc0320Smrg  eval 'as_fn_append ()
3862adc0320Smrg  {
3872adc0320Smrg    eval $1+=\$2
3882adc0320Smrg  }'
389273c00b8Smrgelse case e in #(
390273c00b8Smrg  e) as_fn_append ()
3912adc0320Smrg  {
3922adc0320Smrg    eval $1=\$$1\$2
393273c00b8Smrg  } ;;
394273c00b8Smrgesac
3952adc0320Smrgfi # as_fn_append
3962adc0320Smrg
3972adc0320Smrg# as_fn_arith ARG...
3982adc0320Smrg# ------------------
3992adc0320Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
4002adc0320Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
4012adc0320Smrg# must be portable across $(()) and expr.
402765b7306Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403765b7306Smrgthen :
4042adc0320Smrg  eval 'as_fn_arith ()
4052adc0320Smrg  {
4062adc0320Smrg    as_val=$(( $* ))
4072adc0320Smrg  }'
408273c00b8Smrgelse case e in #(
409273c00b8Smrg  e) as_fn_arith ()
4102adc0320Smrg  {
4112adc0320Smrg    as_val=`expr "$@" || test $? -eq 1`
412273c00b8Smrg  } ;;
413273c00b8Smrgesac
4142adc0320Smrgfi # as_fn_arith
4152adc0320Smrg
4162adc0320Smrg
4172adc0320Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
4182adc0320Smrg# ----------------------------------------
4192adc0320Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4202adc0320Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4212adc0320Smrg# script with STATUS, using 1 if that was 0.
4222adc0320Smrgas_fn_error ()
4232adc0320Smrg{
4242adc0320Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
4252adc0320Smrg  if test "$4"; then
4262adc0320Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427765b7306Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4282adc0320Smrg  fi
429765b7306Smrg  printf "%s\n" "$as_me: error: $2" >&2
4302adc0320Smrg  as_fn_exit $as_status
4312adc0320Smrg} # as_fn_error
4322adc0320Smrg
4337a0395d0Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
4347a0395d0Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4357a0395d0Smrg  as_expr=expr
4367a0395d0Smrgelse
4377a0395d0Smrg  as_expr=false
4387a0395d0Smrgfi
4397a0395d0Smrg
4407a0395d0Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4417a0395d0Smrg  as_basename=basename
4427a0395d0Smrgelse
4437a0395d0Smrg  as_basename=false
4447a0395d0Smrgfi
4457a0395d0Smrg
4462adc0320Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4472adc0320Smrg  as_dirname=dirname
4482adc0320Smrgelse
4492adc0320Smrg  as_dirname=false
4502adc0320Smrgfi
4517a0395d0Smrg
4527a0395d0Smrgas_me=`$as_basename -- "$0" ||
4537a0395d0Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4547a0395d0Smrg	 X"$0" : 'X\(//\)$' \| \
4557a0395d0Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456765b7306Smrgprintf "%s\n" X/"$0" |
4577a0395d0Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
4587a0395d0Smrg	    s//\1/
4597a0395d0Smrg	    q
4607a0395d0Smrg	  }
4617a0395d0Smrg	  /^X\/\(\/\/\)$/{
4627a0395d0Smrg	    s//\1/
4637a0395d0Smrg	    q
4647a0395d0Smrg	  }
4657a0395d0Smrg	  /^X\/\(\/\).*/{
4667a0395d0Smrg	    s//\1/
4677a0395d0Smrg	    q
4687a0395d0Smrg	  }
4697a0395d0Smrg	  s/.*/./; q'`
4707a0395d0Smrg
4712adc0320Smrg# Avoid depending upon Character Ranges.
4722adc0320Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4732adc0320Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4742adc0320Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4752adc0320Smrgas_cr_digits='0123456789'
4762adc0320Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
4777a0395d0Smrg
4787a0395d0Smrg
4792adc0320Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4802adc0320Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4812adc0320Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4822adc0320Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4832adc0320Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4842adc0320Smrg  sed -n '
4852adc0320Smrg    p
4862adc0320Smrg    /[$]LINENO/=
4872adc0320Smrg  ' <$as_myself |
4882adc0320Smrg    sed '
489273c00b8Smrg      t clear
490273c00b8Smrg      :clear
4912adc0320Smrg      s/[$]LINENO.*/&-/
4922adc0320Smrg      t lineno
4932adc0320Smrg      b
4942adc0320Smrg      :lineno
4952adc0320Smrg      N
4962adc0320Smrg      :loop
4972adc0320Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4982adc0320Smrg      t loop
4992adc0320Smrg      s/-\n.*//
5002adc0320Smrg    ' >$as_me.lineno &&
5012adc0320Smrg  chmod +x "$as_me.lineno" ||
502765b7306Smrg    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
5037a0395d0Smrg
5048abc0ccfSmrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
5058abc0ccfSmrg  # already done that, so ensure we don't try to do so again and fall
5068abc0ccfSmrg  # in an infinite loop.  This has already happened in practice.
5078abc0ccfSmrg  _as_can_reexec=no; export _as_can_reexec
5082adc0320Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
5092adc0320Smrg  # (the dirname of $[0] is not the place where we might find the
5102adc0320Smrg  # original and so on.  Autoconf is especially sensitive to this).
5112adc0320Smrg  . "./$as_me.lineno"
5122adc0320Smrg  # Exit status is that of the last command.
5132adc0320Smrg  exit
5147a0395d0Smrg}
5157a0395d0Smrg
516765b7306Smrg
517765b7306Smrg# Determine whether it's possible to make 'echo' print without a newline.
518765b7306Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519765b7306Smrg# for compatibility with existing Makefiles.
5202adc0320SmrgECHO_C= ECHO_N= ECHO_T=
5212adc0320Smrgcase `echo -n x` in #(((((
5222adc0320Smrg-n*)
5232adc0320Smrg  case `echo 'xy\c'` in
5242adc0320Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5252adc0320Smrg  xy)  ECHO_C='\c';;
5262adc0320Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5272adc0320Smrg       ECHO_T='	';;
5282adc0320Smrg  esac;;
5292adc0320Smrg*)
5302adc0320Smrg  ECHO_N='-n';;
5312adc0320Smrgesac
5327a0395d0Smrg
533765b7306Smrg# For backward compatibility with old third-party macros, we provide
534765b7306Smrg# the shell variables $as_echo and $as_echo_n.  New code should use
535765b7306Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536765b7306Smrgas_echo='printf %s\n'
537765b7306Smrgas_echo_n='printf %s'
538765b7306Smrg
5392adc0320Smrgrm -f conf$$ conf$$.exe conf$$.file
5402adc0320Smrgif test -d conf$$.dir; then
5412adc0320Smrg  rm -f conf$$.dir/conf$$.file
5422adc0320Smrgelse
5432adc0320Smrg  rm -f conf$$.dir
5442adc0320Smrg  mkdir conf$$.dir 2>/dev/null
5457a0395d0Smrgfi
5462adc0320Smrgif (echo >conf$$.file) 2>/dev/null; then
5472adc0320Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5482adc0320Smrg    as_ln_s='ln -s'
5492adc0320Smrg    # ... but there are two gotchas:
550273c00b8Smrg    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551273c00b8Smrg    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552273c00b8Smrg    # In both cases, we have to default to 'cp -pR'.
5532adc0320Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5548abc0ccfSmrg      as_ln_s='cp -pR'
5552adc0320Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5562adc0320Smrg    as_ln_s=ln
5572adc0320Smrg  else
5588abc0ccfSmrg    as_ln_s='cp -pR'
5592adc0320Smrg  fi
5607a0395d0Smrgelse
5618abc0ccfSmrg  as_ln_s='cp -pR'
5627a0395d0Smrgfi
5632adc0320Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5642adc0320Smrgrmdir conf$$.dir 2>/dev/null
5657a0395d0Smrg
5662adc0320Smrgif mkdir -p . 2>/dev/null; then
5672adc0320Smrg  as_mkdir_p='mkdir -p "$as_dir"'
5682adc0320Smrgelse
5692adc0320Smrg  test -d ./-p && rmdir ./-p
5702adc0320Smrg  as_mkdir_p=false
5717a0395d0Smrgfi
5727a0395d0Smrg
5738abc0ccfSmrgas_test_x='test -x'
5748abc0ccfSmrgas_executable_p=as_fn_executable_p
5757a0395d0Smrg
5762adc0320Smrg# Sed expression to map a string onto a valid CPP name.
577273c00b8Smrgas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578273c00b8Smrgas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
5797a0395d0Smrg
5802adc0320Smrg# Sed expression to map a string onto a valid variable name.
581273c00b8Smrgas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582273c00b8Smrgas_tr_sh="eval sed '$as_sed_sh'" # deprecated
5837a0395d0Smrg
5847a0395d0Smrg
5852adc0320Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
5862adc0320Smrgexec 6>&1
5877a0395d0Smrg
5887a0395d0Smrg# Name of the host.
5892adc0320Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5907a0395d0Smrg# so uname gets run too.
5917a0395d0Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5927a0395d0Smrg
5937a0395d0Smrg#
5947a0395d0Smrg# Initializations.
5957a0395d0Smrg#
5967a0395d0Smrgac_default_prefix=/usr/local
5977a0395d0Smrgac_clean_files=
5987a0395d0Smrgac_config_libobj_dir=.
5997a0395d0SmrgLIBOBJS=
6007a0395d0Smrgcross_compiling=no
6017a0395d0Smrgsubdirs=
6027a0395d0SmrgMFLAGS=
6037a0395d0SmrgMAKEFLAGS=
6047a0395d0Smrg
6057a0395d0Smrg# Identity of this package.
6067a0395d0SmrgPACKAGE_NAME='xauth'
6077a0395d0SmrgPACKAGE_TARNAME='xauth'
608f6d57fdeSmrgPACKAGE_VERSION='1.1.4'
609f6d57fdeSmrgPACKAGE_STRING='xauth 1.1.4'
610273c00b8SmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xauth/-/issues'
6112adc0320SmrgPACKAGE_URL=''
6127a0395d0Smrg
613273c00b8Smrgac_unique_file="xauth.c"
6147a0395d0Smrg# Factoring default headers for most tests.
6157a0395d0Smrgac_includes_default="\
616765b7306Smrg#include <stddef.h>
617765b7306Smrg#ifdef HAVE_STDIO_H
618765b7306Smrg# include <stdio.h>
6197a0395d0Smrg#endif
620765b7306Smrg#ifdef HAVE_STDLIB_H
6217a0395d0Smrg# include <stdlib.h>
6227a0395d0Smrg#endif
6237a0395d0Smrg#ifdef HAVE_STRING_H
6247a0395d0Smrg# include <string.h>
6257a0395d0Smrg#endif
6267a0395d0Smrg#ifdef HAVE_INTTYPES_H
6277a0395d0Smrg# include <inttypes.h>
6287a0395d0Smrg#endif
6297a0395d0Smrg#ifdef HAVE_STDINT_H
6307a0395d0Smrg# include <stdint.h>
6317a0395d0Smrg#endif
632765b7306Smrg#ifdef HAVE_STRINGS_H
633765b7306Smrg# include <strings.h>
634765b7306Smrg#endif
635765b7306Smrg#ifdef HAVE_SYS_TYPES_H
636765b7306Smrg# include <sys/types.h>
637765b7306Smrg#endif
638765b7306Smrg#ifdef HAVE_SYS_STAT_H
639765b7306Smrg# include <sys/stat.h>
640765b7306Smrg#endif
6417a0395d0Smrg#ifdef HAVE_UNISTD_H
6427a0395d0Smrg# include <unistd.h>
6437a0395d0Smrg#endif"
6447a0395d0Smrg
645765b7306Smrgac_header_c_list=
646273c00b8Smrgenable_year2038=no
6477366012aSmrgac_subst_vars='am__EXEEXT_FALSE
6487366012aSmrgam__EXEEXT_TRUE
6497366012aSmrgLTLIBOBJS
6507366012aSmrgLIBOBJS
6517a0395d0SmrgLINT_FALSE
6527366012aSmrgLINT_TRUE
6537366012aSmrgLINT_FLAGS
6547366012aSmrgLINT
6557366012aSmrgXAUTH_LIBS
6567366012aSmrgXAUTH_CFLAGS
6572adc0320SmrgMAN_SUBSTS
6582adc0320SmrgXORG_MAN_PAGE
6597a0395d0SmrgADMIN_MAN_DIR
6607366012aSmrgDRIVER_MAN_DIR
6617366012aSmrgMISC_MAN_DIR
6627366012aSmrgFILE_MAN_DIR
6637366012aSmrgLIB_MAN_DIR
6647366012aSmrgAPP_MAN_DIR
6657366012aSmrgADMIN_MAN_SUFFIX
6667366012aSmrgDRIVER_MAN_SUFFIX
6677366012aSmrgMISC_MAN_SUFFIX
6687366012aSmrgFILE_MAN_SUFFIX
6697366012aSmrgLIB_MAN_SUFFIX
6707366012aSmrgAPP_MAN_SUFFIX
6712adc0320SmrgSED
6727366012aSmrghost_os
6737366012aSmrghost_vendor
6747366012aSmrghost_cpu
6757366012aSmrghost
6767366012aSmrgbuild_os
6777366012aSmrgbuild_vendor
6787366012aSmrgbuild_cpu
6797366012aSmrgbuild
6802adc0320SmrgINSTALL_CMD
6818abc0ccfSmrgPKG_CONFIG_LIBDIR
6828abc0ccfSmrgPKG_CONFIG_PATH
6832adc0320SmrgPKG_CONFIG
6847366012aSmrgCHANGELOG_CMD
68596402570SmrgSTRICT_CFLAGS
6867366012aSmrgCWARNFLAGS
68796402570SmrgBASE_CFLAGS
688f6d57fdeSmrgam__xargs_n
689f6d57fdeSmrgam__rm_f_notfound
690273c00b8SmrgAM_BACKSLASH
691273c00b8SmrgAM_DEFAULT_VERBOSITY
692273c00b8SmrgAM_DEFAULT_V
693273c00b8SmrgAM_V
694273c00b8SmrgCSCOPE
695273c00b8SmrgETAGS
696273c00b8SmrgCTAGS
6977366012aSmrgam__fastdepCC_FALSE
6987366012aSmrgam__fastdepCC_TRUE
6997366012aSmrgCCDEPMODE
7008abc0ccfSmrgam__nodep
7017366012aSmrgAMDEPBACKSLASH
7027366012aSmrgAMDEP_FALSE
7037366012aSmrgAMDEP_TRUE
7047366012aSmrgam__include
7057366012aSmrgDEPDIR
7067366012aSmrgam__untar
7077366012aSmrgam__tar
7087366012aSmrgAMTAR
7097366012aSmrgam__leading_dot
7107366012aSmrgSET_MAKE
7117366012aSmrgAWK
7127366012aSmrgmkdir_p
7137366012aSmrgMKDIR_P
7147366012aSmrgINSTALL_STRIP_PROGRAM
7157366012aSmrgSTRIP
7167366012aSmrginstall_sh
7177366012aSmrgMAKEINFO
7187366012aSmrgAUTOHEADER
7197366012aSmrgAUTOMAKE
7207366012aSmrgAUTOCONF
7217366012aSmrgACLOCAL
7227366012aSmrgVERSION
7237366012aSmrgPACKAGE
7247366012aSmrgCYGPATH_W
7257366012aSmrgam__isrc
7267366012aSmrgINSTALL_DATA
7277366012aSmrgINSTALL_SCRIPT
7287366012aSmrgINSTALL_PROGRAM
729273c00b8SmrgOBJEXT
730273c00b8SmrgEXEEXT
731273c00b8Smrgac_ct_CC
732273c00b8SmrgCPPFLAGS
733273c00b8SmrgLDFLAGS
734273c00b8SmrgCFLAGS
735273c00b8SmrgCC
7367366012aSmrgtarget_alias
7377366012aSmrghost_alias
7387366012aSmrgbuild_alias
7397366012aSmrgLIBS
7407366012aSmrgECHO_T
7417366012aSmrgECHO_N
7427366012aSmrgECHO_C
7437366012aSmrgDEFS
7447366012aSmrgmandir
7457366012aSmrglocaledir
7467366012aSmrglibdir
7477366012aSmrgpsdir
7487366012aSmrgpdfdir
7497366012aSmrgdvidir
7507366012aSmrghtmldir
7517366012aSmrginfodir
7527366012aSmrgdocdir
7537366012aSmrgoldincludedir
7547366012aSmrgincludedir
755765b7306Smrgrunstatedir
7567366012aSmrglocalstatedir
7577366012aSmrgsharedstatedir
7587366012aSmrgsysconfdir
7597366012aSmrgdatadir
7607366012aSmrgdatarootdir
7617366012aSmrglibexecdir
7627366012aSmrgsbindir
7637366012aSmrgbindir
7647366012aSmrgprogram_transform_name
7657366012aSmrgprefix
7667366012aSmrgexec_prefix
7672adc0320SmrgPACKAGE_URL
7687366012aSmrgPACKAGE_BUGREPORT
7697366012aSmrgPACKAGE_STRING
7707366012aSmrgPACKAGE_VERSION
7717366012aSmrgPACKAGE_TARNAME
7727366012aSmrgPACKAGE_NAME
7737366012aSmrgPATH_SEPARATOR
7746c3c2bceSmrgSHELL
7756c3c2bceSmrgam__quote'
7767a0395d0Smrgac_subst_files=''
7777366012aSmrgac_user_opts='
7787366012aSmrgenable_option_checking
7797366012aSmrgenable_dependency_tracking
780273c00b8Smrgenable_silent_rules
78196402570Smrgenable_selective_werror
7827366012aSmrgenable_strict_compilation
783273c00b8Smrgenable_largefile
7847366012aSmrgenable_unix_transport
7857366012aSmrgenable_tcp_transport
7867366012aSmrgenable_ipv6
7877366012aSmrgenable_local_transport
7887366012aSmrgwith_lint
789273c00b8Smrgenable_year2038
7907366012aSmrg'
7917a0395d0Smrg      ac_precious_vars='build_alias
7927a0395d0Smrghost_alias
7937a0395d0Smrgtarget_alias
7947a0395d0SmrgCC
7957a0395d0SmrgCFLAGS
7967a0395d0SmrgLDFLAGS
7977a0395d0SmrgLIBS
7987a0395d0SmrgCPPFLAGS
7997a0395d0SmrgPKG_CONFIG
8008abc0ccfSmrgPKG_CONFIG_PATH
8018abc0ccfSmrgPKG_CONFIG_LIBDIR
8027a0395d0SmrgXAUTH_CFLAGS
8032adc0320SmrgXAUTH_LIBS
8042adc0320SmrgLINT
8052adc0320SmrgLINT_FLAGS'
8067a0395d0Smrg
8077a0395d0Smrg
8087a0395d0Smrg# Initialize some variables set by options.
8097a0395d0Smrgac_init_help=
8107a0395d0Smrgac_init_version=false
8117366012aSmrgac_unrecognized_opts=
8127366012aSmrgac_unrecognized_sep=
8137a0395d0Smrg# The variables have the same names as the options, with
8147a0395d0Smrg# dashes changed to underlines.
8157a0395d0Smrgcache_file=/dev/null
8167a0395d0Smrgexec_prefix=NONE
8177a0395d0Smrgno_create=
8187a0395d0Smrgno_recursion=
8197a0395d0Smrgprefix=NONE
8207a0395d0Smrgprogram_prefix=NONE
8217a0395d0Smrgprogram_suffix=NONE
8227a0395d0Smrgprogram_transform_name=s,x,x,
8237a0395d0Smrgsilent=
8247a0395d0Smrgsite=
8257a0395d0Smrgsrcdir=
8267a0395d0Smrgverbose=
8277a0395d0Smrgx_includes=NONE
8287a0395d0Smrgx_libraries=NONE
8297a0395d0Smrg
8307a0395d0Smrg# Installation directory options.
8317a0395d0Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
8327a0395d0Smrg# and all the variables that are supposed to be based on exec_prefix
8337a0395d0Smrg# by default will actually change.
8347a0395d0Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
8357a0395d0Smrg# (The list follows the same order as the GNU Coding Standards.)
8367a0395d0Smrgbindir='${exec_prefix}/bin'
8377a0395d0Smrgsbindir='${exec_prefix}/sbin'
8387a0395d0Smrglibexecdir='${exec_prefix}/libexec'
8397a0395d0Smrgdatarootdir='${prefix}/share'
8407a0395d0Smrgdatadir='${datarootdir}'
8417a0395d0Smrgsysconfdir='${prefix}/etc'
8427a0395d0Smrgsharedstatedir='${prefix}/com'
8437a0395d0Smrglocalstatedir='${prefix}/var'
844765b7306Smrgrunstatedir='${localstatedir}/run'
8457a0395d0Smrgincludedir='${prefix}/include'
8467a0395d0Smrgoldincludedir='/usr/include'
8477a0395d0Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
8487a0395d0Smrginfodir='${datarootdir}/info'
8497a0395d0Smrghtmldir='${docdir}'
8507a0395d0Smrgdvidir='${docdir}'
8517a0395d0Smrgpdfdir='${docdir}'
8527a0395d0Smrgpsdir='${docdir}'
8537a0395d0Smrglibdir='${exec_prefix}/lib'
8547a0395d0Smrglocaledir='${datarootdir}/locale'
8557a0395d0Smrgmandir='${datarootdir}/man'
8567a0395d0Smrg
8577a0395d0Smrgac_prev=
8587a0395d0Smrgac_dashdash=
8597a0395d0Smrgfor ac_option
8607a0395d0Smrgdo
8617a0395d0Smrg  # If the previous option needs an argument, assign it.
8627a0395d0Smrg  if test -n "$ac_prev"; then
8637a0395d0Smrg    eval $ac_prev=\$ac_option
8647a0395d0Smrg    ac_prev=
8657a0395d0Smrg    continue
8667a0395d0Smrg  fi
8677a0395d0Smrg
8687a0395d0Smrg  case $ac_option in
8692adc0320Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8702adc0320Smrg  *=)   ac_optarg= ;;
8712adc0320Smrg  *)    ac_optarg=yes ;;
8727a0395d0Smrg  esac
8737a0395d0Smrg
8747a0395d0Smrg  case $ac_dashdash$ac_option in
8757a0395d0Smrg  --)
8767a0395d0Smrg    ac_dashdash=yes ;;
8777a0395d0Smrg
8787a0395d0Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8797a0395d0Smrg    ac_prev=bindir ;;
8807a0395d0Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8817a0395d0Smrg    bindir=$ac_optarg ;;
8827a0395d0Smrg
8837a0395d0Smrg  -build | --build | --buil | --bui | --bu)
8847a0395d0Smrg    ac_prev=build_alias ;;
8857a0395d0Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8867a0395d0Smrg    build_alias=$ac_optarg ;;
8877a0395d0Smrg
8887a0395d0Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8897a0395d0Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8907a0395d0Smrg    ac_prev=cache_file ;;
8917a0395d0Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8927a0395d0Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8937a0395d0Smrg    cache_file=$ac_optarg ;;
8947a0395d0Smrg
8957a0395d0Smrg  --config-cache | -C)
8967a0395d0Smrg    cache_file=config.cache ;;
8977a0395d0Smrg
8987a0395d0Smrg  -datadir | --datadir | --datadi | --datad)
8997a0395d0Smrg    ac_prev=datadir ;;
9007a0395d0Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
9017a0395d0Smrg    datadir=$ac_optarg ;;
9027a0395d0Smrg
9037a0395d0Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
9047a0395d0Smrg  | --dataroo | --dataro | --datar)
9057a0395d0Smrg    ac_prev=datarootdir ;;
9067a0395d0Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
9077a0395d0Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
9087a0395d0Smrg    datarootdir=$ac_optarg ;;
9097a0395d0Smrg
9107a0395d0Smrg  -disable-* | --disable-*)
9117366012aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
9127a0395d0Smrg    # Reject names that are not valid shell variable names.
9137366012aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914273c00b8Smrg      as_fn_error $? "invalid feature name: '$ac_useropt'"
9157366012aSmrg    ac_useropt_orig=$ac_useropt
916765b7306Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
9177366012aSmrg    case $ac_user_opts in
9187366012aSmrg      *"
9197366012aSmrg"enable_$ac_useropt"
9207366012aSmrg"*) ;;
9217366012aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
9227366012aSmrg	 ac_unrecognized_sep=', ';;
9237366012aSmrg    esac
9247366012aSmrg    eval enable_$ac_useropt=no ;;
9257a0395d0Smrg
9267a0395d0Smrg  -docdir | --docdir | --docdi | --doc | --do)
9277a0395d0Smrg    ac_prev=docdir ;;
9287a0395d0Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
9297a0395d0Smrg    docdir=$ac_optarg ;;
9307a0395d0Smrg
9317a0395d0Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
9327a0395d0Smrg    ac_prev=dvidir ;;
9337a0395d0Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
9347a0395d0Smrg    dvidir=$ac_optarg ;;
9357a0395d0Smrg
9367a0395d0Smrg  -enable-* | --enable-*)
9377366012aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9387a0395d0Smrg    # Reject names that are not valid shell variable names.
9397366012aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940273c00b8Smrg      as_fn_error $? "invalid feature name: '$ac_useropt'"
9417366012aSmrg    ac_useropt_orig=$ac_useropt
942765b7306Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
9437366012aSmrg    case $ac_user_opts in
9447366012aSmrg      *"
9457366012aSmrg"enable_$ac_useropt"
9467366012aSmrg"*) ;;
9477366012aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
9487366012aSmrg	 ac_unrecognized_sep=', ';;
9497366012aSmrg    esac
9507366012aSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
9517a0395d0Smrg
9527a0395d0Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9537a0395d0Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9547a0395d0Smrg  | --exec | --exe | --ex)
9557a0395d0Smrg    ac_prev=exec_prefix ;;
9567a0395d0Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9577a0395d0Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9587a0395d0Smrg  | --exec=* | --exe=* | --ex=*)
9597a0395d0Smrg    exec_prefix=$ac_optarg ;;
9607a0395d0Smrg
9617a0395d0Smrg  -gas | --gas | --ga | --g)
9627a0395d0Smrg    # Obsolete; use --with-gas.
9637a0395d0Smrg    with_gas=yes ;;
9647a0395d0Smrg
9657a0395d0Smrg  -help | --help | --hel | --he | -h)
9667a0395d0Smrg    ac_init_help=long ;;
9677a0395d0Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9687a0395d0Smrg    ac_init_help=recursive ;;
9697a0395d0Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9707a0395d0Smrg    ac_init_help=short ;;
9717a0395d0Smrg
9727a0395d0Smrg  -host | --host | --hos | --ho)
9737a0395d0Smrg    ac_prev=host_alias ;;
9747a0395d0Smrg  -host=* | --host=* | --hos=* | --ho=*)
9757a0395d0Smrg    host_alias=$ac_optarg ;;
9767a0395d0Smrg
9777a0395d0Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
9787a0395d0Smrg    ac_prev=htmldir ;;
9797a0395d0Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
9807a0395d0Smrg  | --ht=*)
9817a0395d0Smrg    htmldir=$ac_optarg ;;
9827a0395d0Smrg
9837a0395d0Smrg  -includedir | --includedir | --includedi | --included | --include \
9847a0395d0Smrg  | --includ | --inclu | --incl | --inc)
9857a0395d0Smrg    ac_prev=includedir ;;
9867a0395d0Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9877a0395d0Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9887a0395d0Smrg    includedir=$ac_optarg ;;
9897a0395d0Smrg
9907a0395d0Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9917a0395d0Smrg    ac_prev=infodir ;;
9927a0395d0Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9937a0395d0Smrg    infodir=$ac_optarg ;;
9947a0395d0Smrg
9957a0395d0Smrg  -libdir | --libdir | --libdi | --libd)
9967a0395d0Smrg    ac_prev=libdir ;;
9977a0395d0Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9987a0395d0Smrg    libdir=$ac_optarg ;;
9997a0395d0Smrg
10007a0395d0Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
10017a0395d0Smrg  | --libexe | --libex | --libe)
10027a0395d0Smrg    ac_prev=libexecdir ;;
10037a0395d0Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
10047a0395d0Smrg  | --libexe=* | --libex=* | --libe=*)
10057a0395d0Smrg    libexecdir=$ac_optarg ;;
10067a0395d0Smrg
10077a0395d0Smrg  -localedir | --localedir | --localedi | --localed | --locale)
10087a0395d0Smrg    ac_prev=localedir ;;
10097a0395d0Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
10107a0395d0Smrg    localedir=$ac_optarg ;;
10117a0395d0Smrg
10127a0395d0Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
10137a0395d0Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
10147a0395d0Smrg    ac_prev=localstatedir ;;
10157a0395d0Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
10167a0395d0Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
10177a0395d0Smrg    localstatedir=$ac_optarg ;;
10187a0395d0Smrg
10197a0395d0Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
10207a0395d0Smrg    ac_prev=mandir ;;
10217a0395d0Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
10227a0395d0Smrg    mandir=$ac_optarg ;;
10237a0395d0Smrg
10247a0395d0Smrg  -nfp | --nfp | --nf)
10257a0395d0Smrg    # Obsolete; use --without-fp.
10267a0395d0Smrg    with_fp=no ;;
10277a0395d0Smrg
10287a0395d0Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
10297a0395d0Smrg  | --no-cr | --no-c | -n)
10307a0395d0Smrg    no_create=yes ;;
10317a0395d0Smrg
10327a0395d0Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
10337a0395d0Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
10347a0395d0Smrg    no_recursion=yes ;;
10357a0395d0Smrg
10367a0395d0Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
10377a0395d0Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
10387a0395d0Smrg  | --oldin | --oldi | --old | --ol | --o)
10397a0395d0Smrg    ac_prev=oldincludedir ;;
10407a0395d0Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
10417a0395d0Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
10427a0395d0Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
10437a0395d0Smrg    oldincludedir=$ac_optarg ;;
10447a0395d0Smrg
10457a0395d0Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10467a0395d0Smrg    ac_prev=prefix ;;
10477a0395d0Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10487a0395d0Smrg    prefix=$ac_optarg ;;
10497a0395d0Smrg
10507a0395d0Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
10517a0395d0Smrg  | --program-pre | --program-pr | --program-p)
10527a0395d0Smrg    ac_prev=program_prefix ;;
10537a0395d0Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
10547a0395d0Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10557a0395d0Smrg    program_prefix=$ac_optarg ;;
10567a0395d0Smrg
10577a0395d0Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
10587a0395d0Smrg  | --program-suf | --program-su | --program-s)
10597a0395d0Smrg    ac_prev=program_suffix ;;
10607a0395d0Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10617a0395d0Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10627a0395d0Smrg    program_suffix=$ac_optarg ;;
10637a0395d0Smrg
10647a0395d0Smrg  -program-transform-name | --program-transform-name \
10657a0395d0Smrg  | --program-transform-nam | --program-transform-na \
10667a0395d0Smrg  | --program-transform-n | --program-transform- \
10677a0395d0Smrg  | --program-transform | --program-transfor \
10687a0395d0Smrg  | --program-transfo | --program-transf \
10697a0395d0Smrg  | --program-trans | --program-tran \
10707a0395d0Smrg  | --progr-tra | --program-tr | --program-t)
10717a0395d0Smrg    ac_prev=program_transform_name ;;
10727a0395d0Smrg  -program-transform-name=* | --program-transform-name=* \
10737a0395d0Smrg  | --program-transform-nam=* | --program-transform-na=* \
10747a0395d0Smrg  | --program-transform-n=* | --program-transform-=* \
10757a0395d0Smrg  | --program-transform=* | --program-transfor=* \
10767a0395d0Smrg  | --program-transfo=* | --program-transf=* \
10777a0395d0Smrg  | --program-trans=* | --program-tran=* \
10787a0395d0Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10797a0395d0Smrg    program_transform_name=$ac_optarg ;;
10807a0395d0Smrg
10817a0395d0Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10827a0395d0Smrg    ac_prev=pdfdir ;;
10837a0395d0Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10847a0395d0Smrg    pdfdir=$ac_optarg ;;
10857a0395d0Smrg
10867a0395d0Smrg  -psdir | --psdir | --psdi | --psd | --ps)
10877a0395d0Smrg    ac_prev=psdir ;;
10887a0395d0Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10897a0395d0Smrg    psdir=$ac_optarg ;;
10907a0395d0Smrg
10917a0395d0Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10927a0395d0Smrg  | -silent | --silent | --silen | --sile | --sil)
10937a0395d0Smrg    silent=yes ;;
10947a0395d0Smrg
1095765b7306Smrg  -runstatedir | --runstatedir | --runstatedi | --runstated \
1096765b7306Smrg  | --runstate | --runstat | --runsta | --runst | --runs \
1097765b7306Smrg  | --run | --ru | --r)
1098765b7306Smrg    ac_prev=runstatedir ;;
1099765b7306Smrg  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1100765b7306Smrg  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1101765b7306Smrg  | --run=* | --ru=* | --r=*)
1102765b7306Smrg    runstatedir=$ac_optarg ;;
1103765b7306Smrg
11047a0395d0Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11057a0395d0Smrg    ac_prev=sbindir ;;
11067a0395d0Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
11077a0395d0Smrg  | --sbi=* | --sb=*)
11087a0395d0Smrg    sbindir=$ac_optarg ;;
11097a0395d0Smrg
11107a0395d0Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
11117a0395d0Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
11127a0395d0Smrg  | --sharedst | --shareds | --shared | --share | --shar \
11137a0395d0Smrg  | --sha | --sh)
11147a0395d0Smrg    ac_prev=sharedstatedir ;;
11157a0395d0Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
11167a0395d0Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
11177a0395d0Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
11187a0395d0Smrg  | --sha=* | --sh=*)
11197a0395d0Smrg    sharedstatedir=$ac_optarg ;;
11207a0395d0Smrg
11217a0395d0Smrg  -site | --site | --sit)
11227a0395d0Smrg    ac_prev=site ;;
11237a0395d0Smrg  -site=* | --site=* | --sit=*)
11247a0395d0Smrg    site=$ac_optarg ;;
11257a0395d0Smrg
11267a0395d0Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11277a0395d0Smrg    ac_prev=srcdir ;;
11287a0395d0Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11297a0395d0Smrg    srcdir=$ac_optarg ;;
11307a0395d0Smrg
11317a0395d0Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
11327a0395d0Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
11337a0395d0Smrg    ac_prev=sysconfdir ;;
11347a0395d0Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
11357a0395d0Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
11367a0395d0Smrg    sysconfdir=$ac_optarg ;;
11377a0395d0Smrg
11387a0395d0Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
11397a0395d0Smrg    ac_prev=target_alias ;;
11407a0395d0Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
11417a0395d0Smrg    target_alias=$ac_optarg ;;
11427a0395d0Smrg
11437a0395d0Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
11447a0395d0Smrg    verbose=yes ;;
11457a0395d0Smrg
11467a0395d0Smrg  -version | --version | --versio | --versi | --vers | -V)
11477a0395d0Smrg    ac_init_version=: ;;
11487a0395d0Smrg
11497a0395d0Smrg  -with-* | --with-*)
11507366012aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11517a0395d0Smrg    # Reject names that are not valid shell variable names.
11527366012aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153273c00b8Smrg      as_fn_error $? "invalid package name: '$ac_useropt'"
11547366012aSmrg    ac_useropt_orig=$ac_useropt
1155765b7306Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11567366012aSmrg    case $ac_user_opts in
11577366012aSmrg      *"
11587366012aSmrg"with_$ac_useropt"
11597366012aSmrg"*) ;;
11607366012aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
11617366012aSmrg	 ac_unrecognized_sep=', ';;
11627366012aSmrg    esac
11637366012aSmrg    eval with_$ac_useropt=\$ac_optarg ;;
11647a0395d0Smrg
11657a0395d0Smrg  -without-* | --without-*)
11667366012aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11677a0395d0Smrg    # Reject names that are not valid shell variable names.
11687366012aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169273c00b8Smrg      as_fn_error $? "invalid package name: '$ac_useropt'"
11707366012aSmrg    ac_useropt_orig=$ac_useropt
1171765b7306Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11727366012aSmrg    case $ac_user_opts in
11737366012aSmrg      *"
11747366012aSmrg"with_$ac_useropt"
11757366012aSmrg"*) ;;
11767366012aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11777366012aSmrg	 ac_unrecognized_sep=', ';;
11787366012aSmrg    esac
11797366012aSmrg    eval with_$ac_useropt=no ;;
11807a0395d0Smrg
11817a0395d0Smrg  --x)
11827a0395d0Smrg    # Obsolete; use --with-x.
11837a0395d0Smrg    with_x=yes ;;
11847a0395d0Smrg
11857a0395d0Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11867a0395d0Smrg  | --x-incl | --x-inc | --x-in | --x-i)
11877a0395d0Smrg    ac_prev=x_includes ;;
11887a0395d0Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11897a0395d0Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11907a0395d0Smrg    x_includes=$ac_optarg ;;
11917a0395d0Smrg
11927a0395d0Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11937a0395d0Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11947a0395d0Smrg    ac_prev=x_libraries ;;
11957a0395d0Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11967a0395d0Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11977a0395d0Smrg    x_libraries=$ac_optarg ;;
11987a0395d0Smrg
1199273c00b8Smrg  -*) as_fn_error $? "unrecognized option: '$ac_option'
1200273c00b8SmrgTry '$0 --help' for more information"
12017a0395d0Smrg    ;;
12027a0395d0Smrg
12037a0395d0Smrg  *=*)
12047a0395d0Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
12057a0395d0Smrg    # Reject names that are not valid shell variable names.
12062adc0320Smrg    case $ac_envvar in #(
12072adc0320Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1208273c00b8Smrg      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
12092adc0320Smrg    esac
12107a0395d0Smrg    eval $ac_envvar=\$ac_optarg
12117a0395d0Smrg    export $ac_envvar ;;
12127a0395d0Smrg
12137a0395d0Smrg  *)
12147a0395d0Smrg    # FIXME: should be removed in autoconf 3.0.
1215765b7306Smrg    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
12167a0395d0Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217765b7306Smrg      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
12182adc0320Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
12197a0395d0Smrg    ;;
12207a0395d0Smrg
12217a0395d0Smrg  esac
12227a0395d0Smrgdone
12237a0395d0Smrg
12247a0395d0Smrgif test -n "$ac_prev"; then
12257a0395d0Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12262adc0320Smrg  as_fn_error $? "missing argument to $ac_option"
12277a0395d0Smrgfi
12287a0395d0Smrg
12297366012aSmrgif test -n "$ac_unrecognized_opts"; then
12307366012aSmrg  case $enable_option_checking in
12317366012aSmrg    no) ;;
12322adc0320Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233765b7306Smrg    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12347366012aSmrg  esac
12357366012aSmrgfi
12367366012aSmrg
12377366012aSmrg# Check all directory arguments for consistency.
12387a0395d0Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
12397a0395d0Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
12407a0395d0Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241765b7306Smrg		libdir localedir mandir runstatedir
12427a0395d0Smrgdo
12437a0395d0Smrg  eval ac_val=\$$ac_var
12447366012aSmrg  # Remove trailing slashes.
12457366012aSmrg  case $ac_val in
12467366012aSmrg    */ )
12477366012aSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
12487366012aSmrg      eval $ac_var=\$ac_val;;
12497366012aSmrg  esac
12507366012aSmrg  # Be sure to have absolute directory names.
12517a0395d0Smrg  case $ac_val in
12527a0395d0Smrg    [\\/$]* | ?:[\\/]* )  continue;;
12537a0395d0Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12547a0395d0Smrg  esac
12552adc0320Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
12567a0395d0Smrgdone
12577a0395d0Smrg
1258273c00b8Smrg# There might be people who depend on the old broken behavior: '$host'
12597a0395d0Smrg# used to hold the argument of --host etc.
12607a0395d0Smrg# FIXME: To remove some day.
12617a0395d0Smrgbuild=$build_alias
12627a0395d0Smrghost=$host_alias
12637a0395d0Smrgtarget=$target_alias
12647a0395d0Smrg
12657a0395d0Smrg# FIXME: To remove some day.
12667a0395d0Smrgif test "x$host_alias" != x; then
12677a0395d0Smrg  if test "x$build_alias" = x; then
12687a0395d0Smrg    cross_compiling=maybe
12697a0395d0Smrg  elif test "x$build_alias" != "x$host_alias"; then
12707a0395d0Smrg    cross_compiling=yes
12717a0395d0Smrg  fi
12727a0395d0Smrgfi
12737a0395d0Smrg
12747a0395d0Smrgac_tool_prefix=
12757a0395d0Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12767a0395d0Smrg
12777a0395d0Smrgtest "$silent" = yes && exec 6>/dev/null
12787a0395d0Smrg
12797a0395d0Smrg
12807a0395d0Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
12817a0395d0Smrgac_ls_di=`ls -di .` &&
12827a0395d0Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12832adc0320Smrg  as_fn_error $? "working directory cannot be determined"
12847a0395d0Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12852adc0320Smrg  as_fn_error $? "pwd does not report name of working directory"
12867a0395d0Smrg
12877a0395d0Smrg
12887a0395d0Smrg# Find the source files, if location was not specified.
12897a0395d0Smrgif test -z "$srcdir"; then
12907a0395d0Smrg  ac_srcdir_defaulted=yes
12917a0395d0Smrg  # Try the directory containing this script, then the parent directory.
12927366012aSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12937366012aSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12947366012aSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12957366012aSmrg	 X"$as_myself" : 'X\(//\)$' \| \
12967366012aSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297765b7306Smrgprintf "%s\n" X"$as_myself" |
12987a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12997a0395d0Smrg	    s//\1/
13007a0395d0Smrg	    q
13017a0395d0Smrg	  }
13027a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
13037a0395d0Smrg	    s//\1/
13047a0395d0Smrg	    q
13057a0395d0Smrg	  }
13067a0395d0Smrg	  /^X\(\/\/\)$/{
13077a0395d0Smrg	    s//\1/
13087a0395d0Smrg	    q
13097a0395d0Smrg	  }
13107a0395d0Smrg	  /^X\(\/\).*/{
13117a0395d0Smrg	    s//\1/
13127a0395d0Smrg	    q
13137a0395d0Smrg	  }
13147a0395d0Smrg	  s/.*/./; q'`
13157a0395d0Smrg  srcdir=$ac_confdir
13167a0395d0Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
13177a0395d0Smrg    srcdir=..
13187a0395d0Smrg  fi
13197a0395d0Smrgelse
13207a0395d0Smrg  ac_srcdir_defaulted=no
13217a0395d0Smrgfi
13227a0395d0Smrgif test ! -r "$srcdir/$ac_unique_file"; then
13237a0395d0Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
13242adc0320Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
13257a0395d0Smrgfi
1326273c00b8Smrgac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
13277a0395d0Smrgac_abs_confdir=`(
13282adc0320Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
13297a0395d0Smrg	pwd)`
13307a0395d0Smrg# When building in place, set srcdir=.
13317a0395d0Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
13327a0395d0Smrg  srcdir=.
13337a0395d0Smrgfi
13347a0395d0Smrg# Remove unnecessary trailing slashes from srcdir.
13357a0395d0Smrg# Double slashes in file names in object file debugging info
13367a0395d0Smrg# mess up M-x gdb in Emacs.
13377a0395d0Smrgcase $srcdir in
13387a0395d0Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
13397a0395d0Smrgesac
13407a0395d0Smrgfor ac_var in $ac_precious_vars; do
13417a0395d0Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
13427a0395d0Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
13437a0395d0Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
13447a0395d0Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
13457a0395d0Smrgdone
13467a0395d0Smrg
13477a0395d0Smrg#
13487a0395d0Smrg# Report the --help message.
13497a0395d0Smrg#
13507a0395d0Smrgif test "$ac_init_help" = "long"; then
13517a0395d0Smrg  # Omit some internal or obsolete options to make the list less imposing.
13527a0395d0Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
13537a0395d0Smrg  cat <<_ACEOF
1354f6d57fdeSmrg'configure' configures xauth 1.1.4 to adapt to many kinds of systems.
13557a0395d0Smrg
13567a0395d0SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
13577a0395d0Smrg
13587a0395d0SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
13597a0395d0SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
13607a0395d0Smrg
13617a0395d0SmrgDefaults for the options are specified in brackets.
13627a0395d0Smrg
13637a0395d0SmrgConfiguration:
13647a0395d0Smrg  -h, --help              display this help and exit
13657a0395d0Smrg      --help=short        display options specific to this package
13667a0395d0Smrg      --help=recursive    display the short help of all the included packages
13677a0395d0Smrg  -V, --version           display version information and exit
1368273c00b8Smrg  -q, --quiet, --silent   do not print 'checking ...' messages
13697a0395d0Smrg      --cache-file=FILE   cache test results in FILE [disabled]
1370273c00b8Smrg  -C, --config-cache      alias for '--cache-file=config.cache'
13717a0395d0Smrg  -n, --no-create         do not create output files
1372273c00b8Smrg      --srcdir=DIR        find the sources in DIR [configure dir or '..']
13737a0395d0Smrg
13747a0395d0SmrgInstallation directories:
13757a0395d0Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13767366012aSmrg                          [$ac_default_prefix]
13777a0395d0Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13787366012aSmrg                          [PREFIX]
13797a0395d0Smrg
1380273c00b8SmrgBy default, 'make install' will install all the files in
1381273c00b8Smrg'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1382273c00b8Smrgan installation prefix other than '$ac_default_prefix' using '--prefix',
1383273c00b8Smrgfor instance '--prefix=\$HOME'.
13847a0395d0Smrg
13857a0395d0SmrgFor better control, use the options below.
13867a0395d0Smrg
13877a0395d0SmrgFine tuning of the installation directories:
13887366012aSmrg  --bindir=DIR            user executables [EPREFIX/bin]
13897366012aSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13907366012aSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13917366012aSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13927366012aSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13937366012aSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1394765b7306Smrg  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
13957366012aSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13967366012aSmrg  --includedir=DIR        C header files [PREFIX/include]
13977366012aSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13987366012aSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13997366012aSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
14007366012aSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
14017366012aSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
14027366012aSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
14037366012aSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xauth]
14047366012aSmrg  --htmldir=DIR           html documentation [DOCDIR]
14057366012aSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
14067366012aSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
14077366012aSmrg  --psdir=DIR             ps documentation [DOCDIR]
14087a0395d0Smrg_ACEOF
14097a0395d0Smrg
14107a0395d0Smrg  cat <<\_ACEOF
14117a0395d0Smrg
14127a0395d0SmrgProgram names:
14137a0395d0Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
14147a0395d0Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
14157a0395d0Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
14167a0395d0Smrg
14177a0395d0SmrgSystem types:
14187a0395d0Smrg  --build=BUILD     configure for building on BUILD [guessed]
14197a0395d0Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
14207a0395d0Smrg_ACEOF
14217a0395d0Smrgfi
14227a0395d0Smrg
14237a0395d0Smrgif test -n "$ac_init_help"; then
14247a0395d0Smrg  case $ac_init_help in
1425f6d57fdeSmrg     short | recursive ) echo "Configuration of xauth 1.1.4:";;
14267a0395d0Smrg   esac
14277a0395d0Smrg  cat <<\_ACEOF
14287a0395d0Smrg
14297a0395d0SmrgOptional Features:
14307366012aSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
14317a0395d0Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
14327a0395d0Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
14338abc0ccfSmrg  --enable-dependency-tracking
14348abc0ccfSmrg                          do not reject slow dependency extractors
14358abc0ccfSmrg  --disable-dependency-tracking
14368abc0ccfSmrg                          speeds up one-time build
1437273c00b8Smrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
1438273c00b8Smrg  --disable-silent-rules  verbose build output (undo: "make V=0")
143996402570Smrg  --disable-selective-werror
144096402570Smrg                          Turn off selective compiler errors. (default:
144196402570Smrg                          enabled)
14427366012aSmrg  --enable-strict-compilation
14437366012aSmrg                          Enable all warnings from compiler and make them
14447366012aSmrg                          errors (default: disabled)
1445273c00b8Smrg  --disable-largefile     omit support for large files
14467a0395d0Smrg  --enable-unix-transport Enable UNIX domain socket transport
14477a0395d0Smrg  --enable-tcp-transport  Enable TCP socket transport
14487366012aSmrg  --enable-ipv6           Enable IPv6 support
14497a0395d0Smrg  --enable-local-transport
14507a0395d0Smrg                          Enable os-specific local transport
1451273c00b8Smrg  --enable-year2038       support timestamps after 2038
14527a0395d0Smrg
14537a0395d0SmrgOptional Packages:
14547a0395d0Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
14557a0395d0Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14567366012aSmrg  --with-lint             Use a lint-style source code checker (default:
14577366012aSmrg                          disabled)
14587a0395d0Smrg
14597a0395d0SmrgSome influential environment variables:
14607a0395d0Smrg  CC          C compiler command
14617a0395d0Smrg  CFLAGS      C compiler flags
14627a0395d0Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
14637a0395d0Smrg              nonstandard directory <lib dir>
14647a0395d0Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
14652adc0320Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
14667a0395d0Smrg              you have headers in a nonstandard directory <include dir>
14677a0395d0Smrg  PKG_CONFIG  path to pkg-config utility
14688abc0ccfSmrg  PKG_CONFIG_PATH
14698abc0ccfSmrg              directories to add to pkg-config's search path
14708abc0ccfSmrg  PKG_CONFIG_LIBDIR
14718abc0ccfSmrg              path overriding pkg-config's built-in search path
14727a0395d0Smrg  XAUTH_CFLAGS
14737a0395d0Smrg              C compiler flags for XAUTH, overriding pkg-config
14747a0395d0Smrg  XAUTH_LIBS  linker flags for XAUTH, overriding pkg-config
14752adc0320Smrg  LINT        Path to a lint-style command
14762adc0320Smrg  LINT_FLAGS  Flags for the lint-style command
14777a0395d0Smrg
1478273c00b8SmrgUse these variables to override the choices made by 'configure' or to help
14797a0395d0Smrgit to find libraries and programs with nonstandard names/locations.
14807a0395d0Smrg
1481273c00b8SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/-/issues>.
14827a0395d0Smrg_ACEOF
14837a0395d0Smrgac_status=$?
14847a0395d0Smrgfi
14857a0395d0Smrg
14867a0395d0Smrgif test "$ac_init_help" = "recursive"; then
14877a0395d0Smrg  # If there are subdirs, report their specific --help.
14887a0395d0Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14897366012aSmrg    test -d "$ac_dir" ||
14907366012aSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14917366012aSmrg      continue
14927a0395d0Smrg    ac_builddir=.
14937a0395d0Smrg
14947a0395d0Smrgcase "$ac_dir" in
14957a0395d0Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14967a0395d0Smrg*)
1497765b7306Smrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
14987a0395d0Smrg  # A ".." for each directory in $ac_dir_suffix.
1499765b7306Smrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15007a0395d0Smrg  case $ac_top_builddir_sub in
15017a0395d0Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15027a0395d0Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15037a0395d0Smrg  esac ;;
15047a0395d0Smrgesac
15057a0395d0Smrgac_abs_top_builddir=$ac_pwd
15067a0395d0Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
15077a0395d0Smrg# for backward compatibility:
15087a0395d0Smrgac_top_builddir=$ac_top_build_prefix
15097a0395d0Smrg
15107a0395d0Smrgcase $srcdir in
15117a0395d0Smrg  .)  # We are building in place.
15127a0395d0Smrg    ac_srcdir=.
15137a0395d0Smrg    ac_top_srcdir=$ac_top_builddir_sub
15147a0395d0Smrg    ac_abs_top_srcdir=$ac_pwd ;;
15157a0395d0Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
15167a0395d0Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
15177a0395d0Smrg    ac_top_srcdir=$srcdir
15187a0395d0Smrg    ac_abs_top_srcdir=$srcdir ;;
15197a0395d0Smrg  *) # Relative name.
15207a0395d0Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15217a0395d0Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
15227a0395d0Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15237a0395d0Smrgesac
15247a0395d0Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15257a0395d0Smrg
15267a0395d0Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1527765b7306Smrg    # Check for configure.gnu first; this name is used for a wrapper for
1528765b7306Smrg    # Metaconfig's "Configure" on case-insensitive file systems.
15297a0395d0Smrg    if test -f "$ac_srcdir/configure.gnu"; then
15307a0395d0Smrg      echo &&
15317a0395d0Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
15327a0395d0Smrg    elif test -f "$ac_srcdir/configure"; then
15337a0395d0Smrg      echo &&
15347a0395d0Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
15357a0395d0Smrg    else
1536765b7306Smrg      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
15377a0395d0Smrg    fi || ac_status=$?
15387a0395d0Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
15397a0395d0Smrg  done
15407a0395d0Smrgfi
15417a0395d0Smrg
15427a0395d0Smrgtest -n "$ac_init_help" && exit $ac_status
15437a0395d0Smrgif $ac_init_version; then
15447a0395d0Smrg  cat <<\_ACEOF
1545f6d57fdeSmrgxauth configure 1.1.4
1546273c00b8Smrggenerated by GNU Autoconf 2.72
15477a0395d0Smrg
1548273c00b8SmrgCopyright (C) 2023 Free Software Foundation, Inc.
15497a0395d0SmrgThis configure script is free software; the Free Software Foundation
15507a0395d0Smrggives unlimited permission to copy, distribute and modify it.
15517a0395d0Smrg_ACEOF
15527a0395d0Smrg  exit
15537a0395d0Smrgfi
15547a0395d0Smrg
15552adc0320Smrg## ------------------------ ##
15562adc0320Smrg## Autoconf initialization. ##
15572adc0320Smrg## ------------------------ ##
15587a0395d0Smrg
15592adc0320Smrg# ac_fn_c_try_compile LINENO
15602adc0320Smrg# --------------------------
15612adc0320Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
15622adc0320Smrgac_fn_c_try_compile ()
15637a0395d0Smrg{
15642adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565765b7306Smrg  rm -f conftest.$ac_objext conftest.beam
15662adc0320Smrg  if { { ac_try="$ac_compile"
15672adc0320Smrgcase "(($ac_try" in
15682adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692adc0320Smrg  *) ac_try_echo=$ac_try;;
15702adc0320Smrgesac
15712adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572765b7306Smrgprintf "%s\n" "$ac_try_echo"; } >&5
15732adc0320Smrg  (eval "$ac_compile") 2>conftest.err
15742adc0320Smrg  ac_status=$?
15752adc0320Smrg  if test -s conftest.err; then
15762adc0320Smrg    grep -v '^ *+' conftest.err >conftest.er1
15772adc0320Smrg    cat conftest.er1 >&5
15782adc0320Smrg    mv -f conftest.er1 conftest.err
15792adc0320Smrg  fi
1580765b7306Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15812adc0320Smrg  test $ac_status = 0; } && {
15822adc0320Smrg	 test -z "$ac_c_werror_flag" ||
15832adc0320Smrg	 test ! -s conftest.err
1584765b7306Smrg       } && test -s conftest.$ac_objext
1585765b7306Smrgthen :
15862adc0320Smrg  ac_retval=0
1587273c00b8Smrgelse case e in #(
1588273c00b8Smrg  e) printf "%s\n" "$as_me: failed program was:" >&5
15892adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5
15907a0395d0Smrg
1591273c00b8Smrg	ac_retval=1 ;;
1592273c00b8Smrgesac
15932adc0320Smrgfi
15942adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15952adc0320Smrg  as_fn_set_status $ac_retval
15967a0395d0Smrg
15972adc0320Smrg} # ac_fn_c_try_compile
15982adc0320Smrg
15992adc0320Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
16002adc0320Smrg# -------------------------------------------------------
16012adc0320Smrg# Tests whether HEADER exists and can be compiled using the include files in
16022adc0320Smrg# INCLUDES, setting the cache variable VAR accordingly.
16032adc0320Smrgac_fn_c_check_header_compile ()
16042adc0320Smrg{
16052adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606765b7306Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607765b7306Smrgprintf %s "checking for $2... " >&6; }
1608765b7306Smrgif eval test \${$3+y}
1609765b7306Smrgthen :
1610765b7306Smrg  printf %s "(cached) " >&6
1611273c00b8Smrgelse case e in #(
1612273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16132adc0320Smrg/* end confdefs.h.  */
16142adc0320Smrg$4
16152adc0320Smrg#include <$2>
16162adc0320Smrg_ACEOF
1617765b7306Smrgif ac_fn_c_try_compile "$LINENO"
1618765b7306Smrgthen :
16192adc0320Smrg  eval "$3=yes"
1620273c00b8Smrgelse case e in #(
1621273c00b8Smrg  e) eval "$3=no" ;;
1622273c00b8Smrgesac
16232adc0320Smrgfi
1624273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1625273c00b8Smrgesac
16262adc0320Smrgfi
16272adc0320Smrgeval ac_res=\$$3
1628765b7306Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629765b7306Smrgprintf "%s\n" "$ac_res" >&6; }
16302adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16312adc0320Smrg
16322adc0320Smrg} # ac_fn_c_check_header_compile
16332adc0320Smrg
1634765b7306Smrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1635765b7306Smrg# ------------------------------------------------------------------
16369a011757Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1637765b7306Smrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1638765b7306Smrgac_fn_check_decl ()
16399a011757Smrg{
16409a011757Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16419a011757Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1642765b7306Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1643765b7306Smrgprintf %s "checking whether $as_decl_name is declared... " >&6; }
1644765b7306Smrgif eval test \${$3+y}
1645765b7306Smrgthen :
1646765b7306Smrg  printf %s "(cached) " >&6
1647273c00b8Smrgelse case e in #(
1648273c00b8Smrg  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1649765b7306Smrg  eval ac_save_FLAGS=\$$6
1650765b7306Smrg  as_fn_append $6 " $5"
16519a011757Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529a011757Smrg/* end confdefs.h.  */
16539a011757Smrg$4
16549a011757Smrgint
1655765b7306Smrgmain (void)
16569a011757Smrg{
16579a011757Smrg#ifndef $as_decl_name
16589a011757Smrg#ifdef __cplusplus
16599a011757Smrg  (void) $as_decl_use;
16609a011757Smrg#else
16619a011757Smrg  (void) $as_decl_name;
16629a011757Smrg#endif
16639a011757Smrg#endif
16649a011757Smrg
16659a011757Smrg  ;
16669a011757Smrg  return 0;
16679a011757Smrg}
16689a011757Smrg_ACEOF
1669765b7306Smrgif ac_fn_c_try_compile "$LINENO"
1670765b7306Smrgthen :
16719a011757Smrg  eval "$3=yes"
1672273c00b8Smrgelse case e in #(
1673273c00b8Smrg  e) eval "$3=no" ;;
1674273c00b8Smrgesac
16759a011757Smrgfi
1676765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1677765b7306Smrg  eval $6=\$ac_save_FLAGS
1678273c00b8Smrg ;;
1679273c00b8Smrgesac
16809a011757Smrgfi
16819a011757Smrgeval ac_res=\$$3
1682765b7306Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683765b7306Smrgprintf "%s\n" "$ac_res" >&6; }
16849a011757Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16859a011757Smrg
1686765b7306Smrg} # ac_fn_check_decl
16879a011757Smrg
168896402570Smrg# ac_fn_c_try_link LINENO
168996402570Smrg# -----------------------
169096402570Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
169196402570Smrgac_fn_c_try_link ()
169296402570Smrg{
169396402570Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694765b7306Smrg  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
169596402570Smrg  if { { ac_try="$ac_link"
169696402570Smrgcase "(($ac_try" in
169796402570Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
169896402570Smrg  *) ac_try_echo=$ac_try;;
169996402570Smrgesac
170096402570Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701765b7306Smrgprintf "%s\n" "$ac_try_echo"; } >&5
170296402570Smrg  (eval "$ac_link") 2>conftest.err
170396402570Smrg  ac_status=$?
170496402570Smrg  if test -s conftest.err; then
170596402570Smrg    grep -v '^ *+' conftest.err >conftest.er1
170696402570Smrg    cat conftest.er1 >&5
170796402570Smrg    mv -f conftest.er1 conftest.err
170896402570Smrg  fi
1709765b7306Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
171096402570Smrg  test $ac_status = 0; } && {
171196402570Smrg	 test -z "$ac_c_werror_flag" ||
171296402570Smrg	 test ! -s conftest.err
171396402570Smrg       } && test -s conftest$ac_exeext && {
171496402570Smrg	 test "$cross_compiling" = yes ||
17158abc0ccfSmrg	 test -x conftest$ac_exeext
1716765b7306Smrg       }
1717765b7306Smrgthen :
171896402570Smrg  ac_retval=0
1719273c00b8Smrgelse case e in #(
1720273c00b8Smrg  e) printf "%s\n" "$as_me: failed program was:" >&5
172196402570Smrgsed 's/^/| /' conftest.$ac_ext >&5
172296402570Smrg
1723273c00b8Smrg	ac_retval=1 ;;
1724273c00b8Smrgesac
172596402570Smrgfi
172696402570Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
172796402570Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
172896402570Smrg  # interfere with the next link command; also delete a directory that is
172996402570Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
173096402570Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
173196402570Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
173296402570Smrg  as_fn_set_status $ac_retval
173396402570Smrg
173496402570Smrg} # ac_fn_c_try_link
173596402570Smrg
17369a011757Smrg# ac_fn_c_check_func LINENO FUNC VAR
17379a011757Smrg# ----------------------------------
17389a011757Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
17399a011757Smrgac_fn_c_check_func ()
17402adc0320Smrg{
17412adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742765b7306Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743765b7306Smrgprintf %s "checking for $2... " >&6; }
1744765b7306Smrgif eval test \${$3+y}
1745765b7306Smrgthen :
1746765b7306Smrg  printf %s "(cached) " >&6
1747273c00b8Smrgelse case e in #(
1748273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492adc0320Smrg/* end confdefs.h.  */
17509a011757Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
17519a011757Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17529a011757Smrg#define $2 innocuous_$2
17532adc0320Smrg
17549a011757Smrg/* System header to define __stub macros and hopefully few prototypes,
1755273c00b8Smrg   which can conflict with char $2 (void); below.  */
17562adc0320Smrg
1757765b7306Smrg#include <limits.h>
17582adc0320Smrg#undef $2
17592adc0320Smrg
17602adc0320Smrg/* Override any GCC internal prototype to avoid an error.
17612adc0320Smrg   Use char because int might match the return type of a GCC
17622adc0320Smrg   builtin and then its argument prototype would still apply.  */
17632adc0320Smrg#ifdef __cplusplus
17642adc0320Smrgextern "C"
17652adc0320Smrg#endif
1766273c00b8Smrgchar $2 (void);
17672adc0320Smrg/* The GNU C library defines this for functions which it implements
17682adc0320Smrg    to always fail with ENOSYS.  Some functions are actually named
17692adc0320Smrg    something starting with __ and the normal name is an alias.  */
17702adc0320Smrg#if defined __stub_$2 || defined __stub___$2
17712adc0320Smrgchoke me
17722adc0320Smrg#endif
17732adc0320Smrg
17742adc0320Smrgint
1775765b7306Smrgmain (void)
17762adc0320Smrg{
17772adc0320Smrgreturn $2 ();
17782adc0320Smrg  ;
17792adc0320Smrg  return 0;
17802adc0320Smrg}
17812adc0320Smrg_ACEOF
1782765b7306Smrgif ac_fn_c_try_link "$LINENO"
1783765b7306Smrgthen :
17842adc0320Smrg  eval "$3=yes"
1785273c00b8Smrgelse case e in #(
1786273c00b8Smrg  e) eval "$3=no" ;;
1787273c00b8Smrgesac
17882adc0320Smrgfi
1789765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1790273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
1791273c00b8Smrgesac
17922adc0320Smrgfi
17932adc0320Smrgeval ac_res=\$$3
1794765b7306Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795765b7306Smrgprintf "%s\n" "$ac_res" >&6; }
17962adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17972adc0320Smrg
17982adc0320Smrg} # ac_fn_c_check_func
17992adc0320Smrg
18002adc0320Smrg# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
18012adc0320Smrg# ----------------------------------------------------
18022adc0320Smrg# Tries to find if the field MEMBER exists in type AGGR, after including
18032adc0320Smrg# INCLUDES, setting cache variable VAR accordingly.
18042adc0320Smrgac_fn_c_check_member ()
18052adc0320Smrg{
18062adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807765b7306Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1808765b7306Smrgprintf %s "checking for $2.$3... " >&6; }
1809765b7306Smrgif eval test \${$4+y}
1810765b7306Smrgthen :
1811765b7306Smrg  printf %s "(cached) " >&6
1812273c00b8Smrgelse case e in #(
1813273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18142adc0320Smrg/* end confdefs.h.  */
18152adc0320Smrg$5
18162adc0320Smrgint
1817765b7306Smrgmain (void)
18182adc0320Smrg{
18192adc0320Smrgstatic $2 ac_aggr;
18202adc0320Smrgif (ac_aggr.$3)
18212adc0320Smrgreturn 0;
18222adc0320Smrg  ;
18232adc0320Smrg  return 0;
18242adc0320Smrg}
18252adc0320Smrg_ACEOF
1826765b7306Smrgif ac_fn_c_try_compile "$LINENO"
1827765b7306Smrgthen :
18282adc0320Smrg  eval "$4=yes"
1829273c00b8Smrgelse case e in #(
1830273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18312adc0320Smrg/* end confdefs.h.  */
18322adc0320Smrg$5
18332adc0320Smrgint
1834765b7306Smrgmain (void)
18352adc0320Smrg{
18362adc0320Smrgstatic $2 ac_aggr;
18372adc0320Smrgif (sizeof ac_aggr.$3)
18382adc0320Smrgreturn 0;
18392adc0320Smrg  ;
18402adc0320Smrg  return 0;
18412adc0320Smrg}
18422adc0320Smrg_ACEOF
1843765b7306Smrgif ac_fn_c_try_compile "$LINENO"
1844765b7306Smrgthen :
18452adc0320Smrg  eval "$4=yes"
1846273c00b8Smrgelse case e in #(
1847273c00b8Smrg  e) eval "$4=no" ;;
1848273c00b8Smrgesac
18492adc0320Smrgfi
1850273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1851273c00b8Smrgesac
18522adc0320Smrgfi
1853273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1854273c00b8Smrgesac
18552adc0320Smrgfi
18562adc0320Smrgeval ac_res=\$$4
1857765b7306Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858765b7306Smrgprintf "%s\n" "$ac_res" >&6; }
18592adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18602adc0320Smrg
18612adc0320Smrg} # ac_fn_c_check_member
18622adc0320Smrg
18632adc0320Smrg# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
18642adc0320Smrg# -------------------------------------------
18652adc0320Smrg# Tests whether TYPE exists after having included INCLUDES, setting cache
18662adc0320Smrg# variable VAR accordingly.
18672adc0320Smrgac_fn_c_check_type ()
18682adc0320Smrg{
18692adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870765b7306Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871765b7306Smrgprintf %s "checking for $2... " >&6; }
1872765b7306Smrgif eval test \${$3+y}
1873765b7306Smrgthen :
1874765b7306Smrg  printf %s "(cached) " >&6
1875273c00b8Smrgelse case e in #(
1876273c00b8Smrg  e) eval "$3=no"
18772adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18782adc0320Smrg/* end confdefs.h.  */
18792adc0320Smrg$4
18802adc0320Smrgint
1881765b7306Smrgmain (void)
18822adc0320Smrg{
18832adc0320Smrgif (sizeof ($2))
18842adc0320Smrg	 return 0;
18852adc0320Smrg  ;
18862adc0320Smrg  return 0;
18872adc0320Smrg}
18882adc0320Smrg_ACEOF
1889765b7306Smrgif ac_fn_c_try_compile "$LINENO"
1890765b7306Smrgthen :
18912adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18922adc0320Smrg/* end confdefs.h.  */
18932adc0320Smrg$4
18942adc0320Smrgint
1895765b7306Smrgmain (void)
18962adc0320Smrg{
18972adc0320Smrgif (sizeof (($2)))
18982adc0320Smrg	    return 0;
18992adc0320Smrg  ;
19002adc0320Smrg  return 0;
19012adc0320Smrg}
19022adc0320Smrg_ACEOF
1903765b7306Smrgif ac_fn_c_try_compile "$LINENO"
1904765b7306Smrgthen :
19052adc0320Smrg
1906273c00b8Smrgelse case e in #(
1907273c00b8Smrg  e) eval "$3=yes" ;;
1908273c00b8Smrgesac
19092adc0320Smrgfi
1910765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19112adc0320Smrgfi
1912273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1913273c00b8Smrgesac
19142adc0320Smrgfi
19152adc0320Smrgeval ac_res=\$$3
1916765b7306Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917765b7306Smrgprintf "%s\n" "$ac_res" >&6; }
19182adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19192adc0320Smrg
19202adc0320Smrg} # ac_fn_c_check_type
1921765b7306Smrgac_configure_args_raw=
1922765b7306Smrgfor ac_arg
1923765b7306Smrgdo
1924765b7306Smrg  case $ac_arg in
1925765b7306Smrg  *\'*)
1926765b7306Smrg    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1927765b7306Smrg  esac
1928765b7306Smrg  as_fn_append ac_configure_args_raw " '$ac_arg'"
1929765b7306Smrgdone
1930765b7306Smrg
1931765b7306Smrgcase $ac_configure_args_raw in
1932765b7306Smrg  *$as_nl*)
1933765b7306Smrg    ac_safe_unquote= ;;
1934765b7306Smrg  *)
1935765b7306Smrg    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1936765b7306Smrg    ac_unsafe_a="$ac_unsafe_z#~"
1937765b7306Smrg    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1938765b7306Smrg    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1939765b7306Smrgesac
1940765b7306Smrg
19412adc0320Smrgcat >config.log <<_ACEOF
19422adc0320SmrgThis file contains any messages produced by compilers while
19432adc0320Smrgrunning configure, to aid debugging if configure makes a mistake.
19442adc0320Smrg
1945f6d57fdeSmrgIt was created by xauth $as_me 1.1.4, which was
1946273c00b8Smrggenerated by GNU Autoconf 2.72.  Invocation command line was
19472adc0320Smrg
1948765b7306Smrg  $ $0$ac_configure_args_raw
19492adc0320Smrg
19502adc0320Smrg_ACEOF
19512adc0320Smrgexec 5>>config.log
19522adc0320Smrg{
19532adc0320Smrgcat <<_ASUNAME
19542adc0320Smrg## --------- ##
19552adc0320Smrg## Platform. ##
19562adc0320Smrg## --------- ##
19572adc0320Smrg
19582adc0320Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
19592adc0320Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
19602adc0320Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
19612adc0320Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
19622adc0320Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
19632adc0320Smrg
19642adc0320Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
19652adc0320Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
19662adc0320Smrg
19672adc0320Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
19682adc0320Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
19692adc0320Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
19702adc0320Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
19712adc0320Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
19722adc0320Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
19732adc0320Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
19742adc0320Smrg
19752adc0320Smrg_ASUNAME
19767a0395d0Smrg
19777a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19787a0395d0Smrgfor as_dir in $PATH
19797a0395d0Smrgdo
19807a0395d0Smrg  IFS=$as_save_IFS
1981765b7306Smrg  case $as_dir in #(((
1982765b7306Smrg    '') as_dir=./ ;;
1983765b7306Smrg    */) ;;
1984765b7306Smrg    *) as_dir=$as_dir/ ;;
1985765b7306Smrg  esac
1986765b7306Smrg    printf "%s\n" "PATH: $as_dir"
19872adc0320Smrg  done
19887a0395d0SmrgIFS=$as_save_IFS
19897a0395d0Smrg
19907a0395d0Smrg} >&5
19917a0395d0Smrg
19927a0395d0Smrgcat >&5 <<_ACEOF
19937a0395d0Smrg
19947a0395d0Smrg
19957a0395d0Smrg## ----------- ##
19967a0395d0Smrg## Core tests. ##
19977a0395d0Smrg## ----------- ##
19987a0395d0Smrg
19997a0395d0Smrg_ACEOF
20007a0395d0Smrg
20017a0395d0Smrg
20027a0395d0Smrg# Keep a trace of the command line.
20037a0395d0Smrg# Strip out --no-create and --no-recursion so they do not pile up.
20047a0395d0Smrg# Strip out --silent because we don't want to record it for future runs.
20057a0395d0Smrg# Also quote any args containing shell meta-characters.
20067a0395d0Smrg# Make two passes to allow for proper duplicate-argument suppression.
20077a0395d0Smrgac_configure_args=
20087a0395d0Smrgac_configure_args0=
20097a0395d0Smrgac_configure_args1=
20107a0395d0Smrgac_must_keep_next=false
20117a0395d0Smrgfor ac_pass in 1 2
20127a0395d0Smrgdo
20137a0395d0Smrg  for ac_arg
20147a0395d0Smrg  do
20157a0395d0Smrg    case $ac_arg in
20167a0395d0Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
20177a0395d0Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20187a0395d0Smrg    | -silent | --silent | --silen | --sile | --sil)
20197a0395d0Smrg      continue ;;
20207a0395d0Smrg    *\'*)
2021765b7306Smrg      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20227a0395d0Smrg    esac
20237a0395d0Smrg    case $ac_pass in
20242adc0320Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
20257a0395d0Smrg    2)
20262adc0320Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
20277a0395d0Smrg      if test $ac_must_keep_next = true; then
20287a0395d0Smrg	ac_must_keep_next=false # Got value, back to normal.
20297a0395d0Smrg      else
20307a0395d0Smrg	case $ac_arg in
20317a0395d0Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
20327a0395d0Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
20337a0395d0Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
20347a0395d0Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
20357a0395d0Smrg	    case "$ac_configure_args0 " in
20367a0395d0Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
20377a0395d0Smrg	    esac
20387a0395d0Smrg	    ;;
20397a0395d0Smrg	  -* ) ac_must_keep_next=true ;;
20407a0395d0Smrg	esac
20417a0395d0Smrg      fi
20422adc0320Smrg      as_fn_append ac_configure_args " '$ac_arg'"
20437a0395d0Smrg      ;;
20447a0395d0Smrg    esac
20457a0395d0Smrg  done
20467a0395d0Smrgdone
20472adc0320Smrg{ ac_configure_args0=; unset ac_configure_args0;}
20482adc0320Smrg{ ac_configure_args1=; unset ac_configure_args1;}
20497a0395d0Smrg
20507a0395d0Smrg# When interrupted or exit'd, cleanup temporary files, and complete
20517a0395d0Smrg# config.log.  We remove comments because anyway the quotes in there
20527a0395d0Smrg# would cause problems or look ugly.
20537a0395d0Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
20547a0395d0Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
20557a0395d0Smrgtrap 'exit_status=$?
2056765b7306Smrg  # Sanitize IFS.
2057765b7306Smrg  IFS=" ""	$as_nl"
20587a0395d0Smrg  # Save into config.log some information that might help in debugging.
20597a0395d0Smrg  {
20607a0395d0Smrg    echo
20617a0395d0Smrg
2062765b7306Smrg    printf "%s\n" "## ---------------- ##
20637a0395d0Smrg## Cache variables. ##
20642adc0320Smrg## ---------------- ##"
20657a0395d0Smrg    echo
20667a0395d0Smrg    # The following way of writing the cache mishandles newlines in values,
20677a0395d0Smrg(
20687a0395d0Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
20697a0395d0Smrg    eval ac_val=\$$ac_var
20707a0395d0Smrg    case $ac_val in #(
20717a0395d0Smrg    *${as_nl}*)
20727a0395d0Smrg      case $ac_var in #(
2073765b7306Smrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2074765b7306Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20757a0395d0Smrg      esac
20767a0395d0Smrg      case $ac_var in #(
20777a0395d0Smrg      _ | IFS | as_nl) ;; #(
20787366012aSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20792adc0320Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
20807a0395d0Smrg      esac ;;
20817a0395d0Smrg    esac
20827a0395d0Smrg  done
20837a0395d0Smrg  (set) 2>&1 |
20847a0395d0Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
20857a0395d0Smrg    *${as_nl}ac_space=\ *)
20867a0395d0Smrg      sed -n \
20877a0395d0Smrg	"s/'\''/'\''\\\\'\'''\''/g;
20887a0395d0Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
20897a0395d0Smrg      ;; #(
20907a0395d0Smrg    *)
20917a0395d0Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20927a0395d0Smrg      ;;
20937a0395d0Smrg    esac |
20947a0395d0Smrg    sort
20957a0395d0Smrg)
20967a0395d0Smrg    echo
20977a0395d0Smrg
2098765b7306Smrg    printf "%s\n" "## ----------------- ##
20997a0395d0Smrg## Output variables. ##
21002adc0320Smrg## ----------------- ##"
21017a0395d0Smrg    echo
21027a0395d0Smrg    for ac_var in $ac_subst_vars
21037a0395d0Smrg    do
21047a0395d0Smrg      eval ac_val=\$$ac_var
21057a0395d0Smrg      case $ac_val in
2106765b7306Smrg      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
21077a0395d0Smrg      esac
2108765b7306Smrg      printf "%s\n" "$ac_var='\''$ac_val'\''"
21097a0395d0Smrg    done | sort
21107a0395d0Smrg    echo
21117a0395d0Smrg
21127a0395d0Smrg    if test -n "$ac_subst_files"; then
2113765b7306Smrg      printf "%s\n" "## ------------------- ##
21147a0395d0Smrg## File substitutions. ##
21152adc0320Smrg## ------------------- ##"
21167a0395d0Smrg      echo
21177a0395d0Smrg      for ac_var in $ac_subst_files
21187a0395d0Smrg      do
21197a0395d0Smrg	eval ac_val=\$$ac_var
21207a0395d0Smrg	case $ac_val in
2121765b7306Smrg	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
21227a0395d0Smrg	esac
2123765b7306Smrg	printf "%s\n" "$ac_var='\''$ac_val'\''"
21247a0395d0Smrg      done | sort
21257a0395d0Smrg      echo
21267a0395d0Smrg    fi
21277a0395d0Smrg
21287a0395d0Smrg    if test -s confdefs.h; then
2129765b7306Smrg      printf "%s\n" "## ----------- ##
21307a0395d0Smrg## confdefs.h. ##
21312adc0320Smrg## ----------- ##"
21327a0395d0Smrg      echo
21337a0395d0Smrg      cat confdefs.h
21347a0395d0Smrg      echo
21357a0395d0Smrg    fi
21367a0395d0Smrg    test "$ac_signal" != 0 &&
2137765b7306Smrg      printf "%s\n" "$as_me: caught signal $ac_signal"
2138765b7306Smrg    printf "%s\n" "$as_me: exit $exit_status"
21397a0395d0Smrg  } >&5
21407a0395d0Smrg  rm -f core *.core core.conftest.* &&
21417a0395d0Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
21427a0395d0Smrg    exit $exit_status
21437a0395d0Smrg' 0
21447a0395d0Smrgfor ac_signal in 1 2 13 15; do
21452adc0320Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
21467a0395d0Smrgdone
21477a0395d0Smrgac_signal=0
21487a0395d0Smrg
21497a0395d0Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
21507a0395d0Smrgrm -f -r conftest* confdefs.h
21517a0395d0Smrg
2152765b7306Smrgprintf "%s\n" "/* confdefs.h */" > confdefs.h
21532adc0320Smrg
21547a0395d0Smrg# Predefined preprocessor variables.
21557a0395d0Smrg
2156765b7306Smrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
21577a0395d0Smrg
2158765b7306Smrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
21597a0395d0Smrg
2160765b7306Smrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
21617a0395d0Smrg
2162765b7306Smrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
21637a0395d0Smrg
2164765b7306Smrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
21657a0395d0Smrg
2166765b7306Smrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
21672adc0320Smrg
21687a0395d0Smrg
21697a0395d0Smrg# Let the site file select an alternate cache file if it wants to.
21707366012aSmrg# Prefer an explicitly selected file to automatically selected ones.
21717a0395d0Smrgif test -n "$CONFIG_SITE"; then
2172765b7306Smrg  ac_site_files="$CONFIG_SITE"
21737a0395d0Smrgelif test "x$prefix" != xNONE; then
2174765b7306Smrg  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
21757a0395d0Smrgelse
2176765b7306Smrg  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
21777a0395d0Smrgfi
2178765b7306Smrg
2179765b7306Smrgfor ac_site_file in $ac_site_files
21807a0395d0Smrgdo
2181765b7306Smrg  case $ac_site_file in #(
2182765b7306Smrg  */*) :
2183765b7306Smrg     ;; #(
2184765b7306Smrg  *) :
2185765b7306Smrg    ac_site_file=./$ac_site_file ;;
2186765b7306Smrgesac
2187765b7306Smrg  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2188765b7306Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2189765b7306Smrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
21907a0395d0Smrg    sed 's/^/| /' "$ac_site_file" >&5
21912adc0320Smrg    . "$ac_site_file" \
2192273c00b8Smrg      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2193273c00b8Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21942adc0320Smrgas_fn_error $? "failed to load site script $ac_site_file
2195273c00b8SmrgSee 'config.log' for more details" "$LINENO" 5; }
21967a0395d0Smrg  fi
21977a0395d0Smrgdone
21987a0395d0Smrg
21997a0395d0Smrgif test -r "$cache_file"; then
22002adc0320Smrg  # Some versions of bash will fail to source /dev/null (special files
22012adc0320Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
22022adc0320Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2203765b7306Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2204765b7306Smrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
22057a0395d0Smrg    case $cache_file in
22067a0395d0Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
22077a0395d0Smrg      *)                      . "./$cache_file";;
22087a0395d0Smrg    esac
22097a0395d0Smrg  fi
22107a0395d0Smrgelse
2211765b7306Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2212765b7306Smrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
22137a0395d0Smrg  >$cache_file
22147a0395d0Smrgfi
22157a0395d0Smrg
2216765b7306Smrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2217765b7306Smrg# Test code for whether the C compiler supports C89 (global declarations)
2218765b7306Smrgac_c_conftest_c89_globals='
2219765b7306Smrg/* Does the compiler advertise C89 conformance?
2220765b7306Smrg   Do not test the value of __STDC__, because some compilers set it to 0
2221765b7306Smrg   while being otherwise adequately conformant. */
2222765b7306Smrg#if !defined __STDC__
2223765b7306Smrg# error "Compiler does not advertise C89 conformance"
2224765b7306Smrg#endif
22257a0395d0Smrg
2226765b7306Smrg#include <stddef.h>
2227765b7306Smrg#include <stdarg.h>
2228765b7306Smrgstruct stat;
2229765b7306Smrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2230765b7306Smrgstruct buf { int x; };
2231765b7306Smrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int);
2232273c00b8Smrgstatic char *e (char **p, int i)
2233765b7306Smrg{
2234765b7306Smrg  return p[i];
2235765b7306Smrg}
2236765b7306Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
2237765b7306Smrg{
2238765b7306Smrg  char *s;
2239765b7306Smrg  va_list v;
2240765b7306Smrg  va_start (v,p);
2241765b7306Smrg  s = g (p, va_arg (v,int));
2242765b7306Smrg  va_end (v);
2243765b7306Smrg  return s;
2244765b7306Smrg}
2245765b7306Smrg
2246273c00b8Smrg/* C89 style stringification. */
2247273c00b8Smrg#define noexpand_stringify(a) #a
2248273c00b8Smrgconst char *stringified = noexpand_stringify(arbitrary+token=sequence);
2249273c00b8Smrg
2250273c00b8Smrg/* C89 style token pasting.  Exercises some of the corner cases that
2251273c00b8Smrg   e.g. old MSVC gets wrong, but not very hard. */
2252273c00b8Smrg#define noexpand_concat(a,b) a##b
2253273c00b8Smrg#define expand_concat(a,b) noexpand_concat(a,b)
2254273c00b8Smrgextern int vA;
2255273c00b8Smrgextern int vbee;
2256273c00b8Smrg#define aye A
2257273c00b8Smrg#define bee B
2258273c00b8Smrgint *pvA = &expand_concat(v,aye);
2259273c00b8Smrgint *pvbee = &noexpand_concat(v,bee);
2260273c00b8Smrg
2261765b7306Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2262765b7306Smrg   function prototypes and stuff, but not \xHH hex character constants.
2263765b7306Smrg   These do not provoke an error unfortunately, instead are silently treated
2264765b7306Smrg   as an "x".  The following induces an error, until -std is added to get
2265765b7306Smrg   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2266765b7306Smrg   array size at least.  It is necessary to write \x00 == 0 to get something
2267765b7306Smrg   that is true only with -std.  */
2268765b7306Smrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2269765b7306Smrg
2270765b7306Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2271765b7306Smrg   inside strings and character constants.  */
2272765b7306Smrg#define FOO(x) '\''x'\''
2273765b7306Smrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2274765b7306Smrg
2275765b7306Smrgint test (int i, double x);
2276765b7306Smrgstruct s1 {int (*f) (int a);};
2277765b7306Smrgstruct s2 {int (*f) (double a);};
2278765b7306Smrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2279765b7306Smrg               int, int);'
2280765b7306Smrg
2281765b7306Smrg# Test code for whether the C compiler supports C89 (body of main).
2282765b7306Smrgac_c_conftest_c89_main='
2283765b7306Smrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2284765b7306Smrg'
2285765b7306Smrg
2286765b7306Smrg# Test code for whether the C compiler supports C99 (global declarations)
2287765b7306Smrgac_c_conftest_c99_globals='
2288273c00b8Smrg/* Does the compiler advertise C99 conformance? */
2289765b7306Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2290765b7306Smrg# error "Compiler does not advertise C99 conformance"
2291765b7306Smrg#endif
2292765b7306Smrg
2293273c00b8Smrg// See if C++-style comments work.
2294273c00b8Smrg
2295765b7306Smrg#include <stdbool.h>
2296765b7306Smrgextern int puts (const char *);
2297765b7306Smrgextern int printf (const char *, ...);
2298765b7306Smrgextern int dprintf (int, const char *, ...);
2299765b7306Smrgextern void *malloc (size_t);
2300273c00b8Smrgextern void free (void *);
2301765b7306Smrg
2302765b7306Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2303765b7306Smrg// dprintf is used instead of fprintf to avoid needing to declare
2304765b7306Smrg// FILE and stderr.
2305765b7306Smrg#define debug(...) dprintf (2, __VA_ARGS__)
2306765b7306Smrg#define showlist(...) puts (#__VA_ARGS__)
2307765b7306Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2308765b7306Smrgstatic void
2309765b7306Smrgtest_varargs_macros (void)
2310765b7306Smrg{
2311765b7306Smrg  int x = 1234;
2312765b7306Smrg  int y = 5678;
2313765b7306Smrg  debug ("Flag");
2314765b7306Smrg  debug ("X = %d\n", x);
2315765b7306Smrg  showlist (The first, second, and third items.);
2316765b7306Smrg  report (x>y, "x is %d but y is %d", x, y);
2317765b7306Smrg}
2318765b7306Smrg
2319765b7306Smrg// Check long long types.
2320765b7306Smrg#define BIG64 18446744073709551615ull
2321765b7306Smrg#define BIG32 4294967295ul
2322765b7306Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2323765b7306Smrg#if !BIG_OK
2324765b7306Smrg  #error "your preprocessor is broken"
2325765b7306Smrg#endif
2326765b7306Smrg#if BIG_OK
2327765b7306Smrg#else
2328765b7306Smrg  #error "your preprocessor is broken"
2329765b7306Smrg#endif
2330765b7306Smrgstatic long long int bignum = -9223372036854775807LL;
2331765b7306Smrgstatic unsigned long long int ubignum = BIG64;
2332765b7306Smrg
2333765b7306Smrgstruct incomplete_array
2334765b7306Smrg{
2335765b7306Smrg  int datasize;
2336765b7306Smrg  double data[];
2337765b7306Smrg};
2338765b7306Smrg
2339765b7306Smrgstruct named_init {
2340765b7306Smrg  int number;
2341765b7306Smrg  const wchar_t *name;
2342765b7306Smrg  double average;
2343765b7306Smrg};
2344765b7306Smrg
2345765b7306Smrgtypedef const char *ccp;
2346765b7306Smrg
2347765b7306Smrgstatic inline int
2348765b7306Smrgtest_restrict (ccp restrict text)
2349765b7306Smrg{
2350765b7306Smrg  // Iterate through items via the restricted pointer.
2351765b7306Smrg  // Also check for declarations in for loops.
2352765b7306Smrg  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2353765b7306Smrg    continue;
2354765b7306Smrg  return 0;
2355765b7306Smrg}
2356765b7306Smrg
2357765b7306Smrg// Check varargs and va_copy.
2358765b7306Smrgstatic bool
2359765b7306Smrgtest_varargs (const char *format, ...)
2360765b7306Smrg{
2361765b7306Smrg  va_list args;
2362765b7306Smrg  va_start (args, format);
2363765b7306Smrg  va_list args_copy;
2364765b7306Smrg  va_copy (args_copy, args);
2365765b7306Smrg
2366765b7306Smrg  const char *str = "";
2367765b7306Smrg  int number = 0;
2368765b7306Smrg  float fnumber = 0;
2369765b7306Smrg
2370765b7306Smrg  while (*format)
2371765b7306Smrg    {
2372765b7306Smrg      switch (*format++)
2373765b7306Smrg	{
2374765b7306Smrg	case '\''s'\'': // string
2375765b7306Smrg	  str = va_arg (args_copy, const char *);
2376765b7306Smrg	  break;
2377765b7306Smrg	case '\''d'\'': // int
2378765b7306Smrg	  number = va_arg (args_copy, int);
2379765b7306Smrg	  break;
2380765b7306Smrg	case '\''f'\'': // float
2381765b7306Smrg	  fnumber = va_arg (args_copy, double);
2382765b7306Smrg	  break;
2383765b7306Smrg	default:
2384765b7306Smrg	  break;
2385765b7306Smrg	}
2386765b7306Smrg    }
2387765b7306Smrg  va_end (args_copy);
2388765b7306Smrg  va_end (args);
2389765b7306Smrg
2390765b7306Smrg  return *str && number && fnumber;
2391765b7306Smrg}
2392765b7306Smrg'
2393765b7306Smrg
2394765b7306Smrg# Test code for whether the C compiler supports C99 (body of main).
2395765b7306Smrgac_c_conftest_c99_main='
2396765b7306Smrg  // Check bool.
2397765b7306Smrg  _Bool success = false;
2398765b7306Smrg  success |= (argc != 0);
2399765b7306Smrg
2400765b7306Smrg  // Check restrict.
2401765b7306Smrg  if (test_restrict ("String literal") == 0)
2402765b7306Smrg    success = true;
2403765b7306Smrg  char *restrict newvar = "Another string";
2404765b7306Smrg
2405765b7306Smrg  // Check varargs.
2406765b7306Smrg  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2407765b7306Smrg  test_varargs_macros ();
2408765b7306Smrg
2409765b7306Smrg  // Check flexible array members.
2410765b7306Smrg  struct incomplete_array *ia =
2411765b7306Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2412765b7306Smrg  ia->datasize = 10;
2413765b7306Smrg  for (int i = 0; i < ia->datasize; ++i)
2414765b7306Smrg    ia->data[i] = i * 1.234;
2415273c00b8Smrg  // Work around memory leak warnings.
2416273c00b8Smrg  free (ia);
2417765b7306Smrg
2418765b7306Smrg  // Check named initializers.
2419765b7306Smrg  struct named_init ni = {
2420765b7306Smrg    .number = 34,
2421765b7306Smrg    .name = L"Test wide string",
2422765b7306Smrg    .average = 543.34343,
2423765b7306Smrg  };
2424765b7306Smrg
2425765b7306Smrg  ni.number = 58;
2426765b7306Smrg
2427765b7306Smrg  int dynamic_array[ni.number];
2428765b7306Smrg  dynamic_array[0] = argv[0][0];
2429765b7306Smrg  dynamic_array[ni.number - 1] = 543;
2430765b7306Smrg
2431765b7306Smrg  // work around unused variable warnings
2432765b7306Smrg  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2433765b7306Smrg	 || dynamic_array[ni.number - 1] != 543);
2434765b7306Smrg'
2435765b7306Smrg
2436765b7306Smrg# Test code for whether the C compiler supports C11 (global declarations)
2437765b7306Smrgac_c_conftest_c11_globals='
2438273c00b8Smrg/* Does the compiler advertise C11 conformance? */
2439765b7306Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2440765b7306Smrg# error "Compiler does not advertise C11 conformance"
2441765b7306Smrg#endif
2442765b7306Smrg
2443765b7306Smrg// Check _Alignas.
2444765b7306Smrgchar _Alignas (double) aligned_as_double;
2445765b7306Smrgchar _Alignas (0) no_special_alignment;
2446765b7306Smrgextern char aligned_as_int;
2447765b7306Smrgchar _Alignas (0) _Alignas (int) aligned_as_int;
2448765b7306Smrg
2449765b7306Smrg// Check _Alignof.
2450765b7306Smrgenum
2451765b7306Smrg{
2452765b7306Smrg  int_alignment = _Alignof (int),
2453765b7306Smrg  int_array_alignment = _Alignof (int[100]),
2454765b7306Smrg  char_alignment = _Alignof (char)
2455765b7306Smrg};
2456765b7306Smrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2457765b7306Smrg
2458765b7306Smrg// Check _Noreturn.
2459765b7306Smrgint _Noreturn does_not_return (void) { for (;;) continue; }
2460765b7306Smrg
2461765b7306Smrg// Check _Static_assert.
2462765b7306Smrgstruct test_static_assert
2463765b7306Smrg{
2464765b7306Smrg  int x;
2465765b7306Smrg  _Static_assert (sizeof (int) <= sizeof (long int),
2466765b7306Smrg                  "_Static_assert does not work in struct");
2467765b7306Smrg  long int y;
2468765b7306Smrg};
2469765b7306Smrg
2470765b7306Smrg// Check UTF-8 literals.
2471765b7306Smrg#define u8 syntax error!
2472765b7306Smrgchar const utf8_literal[] = u8"happens to be ASCII" "another string";
2473765b7306Smrg
2474765b7306Smrg// Check duplicate typedefs.
2475765b7306Smrgtypedef long *long_ptr;
2476765b7306Smrgtypedef long int *long_ptr;
2477765b7306Smrgtypedef long_ptr long_ptr;
2478765b7306Smrg
2479765b7306Smrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2480765b7306Smrgstruct anonymous
2481765b7306Smrg{
2482765b7306Smrg  union {
2483765b7306Smrg    struct { int i; int j; };
2484765b7306Smrg    struct { int k; long int l; } w;
2485765b7306Smrg  };
2486765b7306Smrg  int m;
2487765b7306Smrg} v1;
2488765b7306Smrg'
2489765b7306Smrg
2490765b7306Smrg# Test code for whether the C compiler supports C11 (body of main).
2491765b7306Smrgac_c_conftest_c11_main='
2492765b7306Smrg  _Static_assert ((offsetof (struct anonymous, i)
2493765b7306Smrg		   == offsetof (struct anonymous, w.k)),
2494765b7306Smrg		  "Anonymous union alignment botch");
2495765b7306Smrg  v1.i = 2;
2496765b7306Smrg  v1.w.k = 5;
2497765b7306Smrg  ok |= v1.i != 5;
2498765b7306Smrg'
2499765b7306Smrg
2500765b7306Smrg# Test code for whether the C compiler supports C11 (complete).
2501765b7306Smrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2502765b7306Smrg${ac_c_conftest_c99_globals}
2503765b7306Smrg${ac_c_conftest_c11_globals}
2504765b7306Smrg
2505765b7306Smrgint
2506765b7306Smrgmain (int argc, char **argv)
2507765b7306Smrg{
2508765b7306Smrg  int ok = 0;
2509765b7306Smrg  ${ac_c_conftest_c89_main}
2510765b7306Smrg  ${ac_c_conftest_c99_main}
2511765b7306Smrg  ${ac_c_conftest_c11_main}
2512765b7306Smrg  return ok;
2513765b7306Smrg}
2514765b7306Smrg"
2515765b7306Smrg
2516765b7306Smrg# Test code for whether the C compiler supports C99 (complete).
2517765b7306Smrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2518765b7306Smrg${ac_c_conftest_c99_globals}
2519765b7306Smrg
2520765b7306Smrgint
2521765b7306Smrgmain (int argc, char **argv)
2522765b7306Smrg{
2523765b7306Smrg  int ok = 0;
2524765b7306Smrg  ${ac_c_conftest_c89_main}
2525765b7306Smrg  ${ac_c_conftest_c99_main}
2526765b7306Smrg  return ok;
2527765b7306Smrg}
2528765b7306Smrg"
2529765b7306Smrg
2530765b7306Smrg# Test code for whether the C compiler supports C89 (complete).
2531765b7306Smrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2532765b7306Smrg
2533765b7306Smrgint
2534765b7306Smrgmain (int argc, char **argv)
2535765b7306Smrg{
2536765b7306Smrg  int ok = 0;
2537765b7306Smrg  ${ac_c_conftest_c89_main}
2538765b7306Smrg  return ok;
2539765b7306Smrg}
2540765b7306Smrg"
2541765b7306Smrg
2542765b7306Smrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2543765b7306Smrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2544765b7306Smrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2545765b7306Smrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2546765b7306Smrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2547765b7306Smrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2548765b7306Smrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2549765b7306Smrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2550765b7306Smrgas_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2551765b7306Smrgas_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2552765b7306Smrg
2553765b7306Smrg# Auxiliary files required by this configure script.
2554273c00b8Smrgac_aux_files="config.guess config.sub missing install-sh compile"
2555765b7306Smrg
2556765b7306Smrg# Locations in which to look for auxiliary files.
2557765b7306Smrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2558765b7306Smrg
2559765b7306Smrg# Search for a directory containing all of the required auxiliary files,
2560765b7306Smrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2561765b7306Smrg# If we don't find one directory that contains all the files we need,
2562765b7306Smrg# we report the set of missing files from the *first* directory in
2563765b7306Smrg# $ac_aux_dir_candidates and give up.
2564765b7306Smrgac_missing_aux_files=""
2565765b7306Smrgac_first_candidate=:
2566765b7306Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2567765b7306Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568765b7306Smrgas_found=false
2569765b7306Smrgfor as_dir in $ac_aux_dir_candidates
2570765b7306Smrgdo
2571765b7306Smrg  IFS=$as_save_IFS
2572765b7306Smrg  case $as_dir in #(((
2573765b7306Smrg    '') as_dir=./ ;;
2574765b7306Smrg    */) ;;
2575765b7306Smrg    *) as_dir=$as_dir/ ;;
2576765b7306Smrg  esac
2577765b7306Smrg  as_found=:
2578765b7306Smrg
2579765b7306Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2580765b7306Smrg  ac_aux_dir_found=yes
2581765b7306Smrg  ac_install_sh=
2582765b7306Smrg  for ac_aux in $ac_aux_files
2583765b7306Smrg  do
2584765b7306Smrg    # As a special case, if "install-sh" is required, that requirement
2585765b7306Smrg    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2586765b7306Smrg    # and $ac_install_sh is set appropriately for whichever one is found.
2587765b7306Smrg    if test x"$ac_aux" = x"install-sh"
2588765b7306Smrg    then
2589765b7306Smrg      if test -f "${as_dir}install-sh"; then
2590765b7306Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2591765b7306Smrg        ac_install_sh="${as_dir}install-sh -c"
2592765b7306Smrg      elif test -f "${as_dir}install.sh"; then
2593765b7306Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2594765b7306Smrg        ac_install_sh="${as_dir}install.sh -c"
2595765b7306Smrg      elif test -f "${as_dir}shtool"; then
2596765b7306Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2597765b7306Smrg        ac_install_sh="${as_dir}shtool install -c"
2598765b7306Smrg      else
2599765b7306Smrg        ac_aux_dir_found=no
2600765b7306Smrg        if $ac_first_candidate; then
2601765b7306Smrg          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2602765b7306Smrg        else
2603765b7306Smrg          break
2604765b7306Smrg        fi
2605765b7306Smrg      fi
2606765b7306Smrg    else
2607765b7306Smrg      if test -f "${as_dir}${ac_aux}"; then
2608765b7306Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2609765b7306Smrg      else
2610765b7306Smrg        ac_aux_dir_found=no
2611765b7306Smrg        if $ac_first_candidate; then
2612765b7306Smrg          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2613765b7306Smrg        else
2614765b7306Smrg          break
2615765b7306Smrg        fi
2616765b7306Smrg      fi
2617765b7306Smrg    fi
2618765b7306Smrg  done
2619765b7306Smrg  if test "$ac_aux_dir_found" = yes; then
2620765b7306Smrg    ac_aux_dir="$as_dir"
2621765b7306Smrg    break
2622765b7306Smrg  fi
2623765b7306Smrg  ac_first_candidate=false
2624765b7306Smrg
2625765b7306Smrg  as_found=false
26267a0395d0Smrgdone
2627765b7306SmrgIFS=$as_save_IFS
2628765b7306Smrgif $as_found
2629765b7306Smrgthen :
2630765b7306Smrg
2631273c00b8Smrgelse case e in #(
2632273c00b8Smrg  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2633273c00b8Smrgesac
26347a0395d0Smrgfi
26357a0395d0Smrg
2636765b7306Smrg
26377a0395d0Smrg# These three variables are undocumented and unsupported,
26387a0395d0Smrg# and are intended to be withdrawn in a future Autoconf release.
26397a0395d0Smrg# They can cause serious problems if a builder's source tree is in a directory
26407a0395d0Smrg# whose full name contains unusual characters.
2641765b7306Smrgif test -f "${ac_aux_dir}config.guess"; then
2642765b7306Smrg  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2643765b7306Smrgfi
2644765b7306Smrgif test -f "${ac_aux_dir}config.sub"; then
2645765b7306Smrg  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2646765b7306Smrgfi
2647765b7306Smrgif test -f "$ac_aux_dir/configure"; then
2648765b7306Smrg  ac_configure="$SHELL ${ac_aux_dir}configure"
2649765b7306Smrgfi
2650765b7306Smrg
2651765b7306Smrg# Check that the precious variables saved in the cache have kept the same
2652765b7306Smrg# value.
2653765b7306Smrgac_cache_corrupted=false
2654765b7306Smrgfor ac_var in $ac_precious_vars; do
2655765b7306Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2656765b7306Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
2657765b7306Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2658765b7306Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
2659765b7306Smrg  case $ac_old_set,$ac_new_set in
2660765b7306Smrg    set,)
2661273c00b8Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2662273c00b8Smrgprintf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2663765b7306Smrg      ac_cache_corrupted=: ;;
2664765b7306Smrg    ,set)
2665273c00b8Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2666273c00b8Smrgprintf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2667765b7306Smrg      ac_cache_corrupted=: ;;
2668765b7306Smrg    ,);;
2669765b7306Smrg    *)
2670765b7306Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2671765b7306Smrg	# differences in whitespace do not lead to failure.
2672765b7306Smrg	ac_old_val_w=`echo x $ac_old_val`
2673765b7306Smrg	ac_new_val_w=`echo x $ac_new_val`
2674765b7306Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2675273c00b8Smrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2676273c00b8Smrgprintf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2677765b7306Smrg	  ac_cache_corrupted=:
2678765b7306Smrg	else
2679273c00b8Smrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2680273c00b8Smrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2681765b7306Smrg	  eval $ac_var=\$ac_old_val
2682765b7306Smrg	fi
2683273c00b8Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2684273c00b8Smrgprintf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2685273c00b8Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2686273c00b8Smrgprintf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2687765b7306Smrg      fi;;
2688765b7306Smrg  esac
2689765b7306Smrg  # Pass precious variables to config.status.
2690765b7306Smrg  if test "$ac_new_set" = set; then
2691765b7306Smrg    case $ac_new_val in
2692765b7306Smrg    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2693765b7306Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
2694765b7306Smrg    esac
2695765b7306Smrg    case " $ac_configure_args " in
2696765b7306Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2697765b7306Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2698765b7306Smrg    esac
2699765b7306Smrg  fi
2700765b7306Smrgdone
2701765b7306Smrgif $ac_cache_corrupted; then
2702273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2703273c00b8Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2704765b7306Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2705765b7306Smrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2706273c00b8Smrg  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2707765b7306Smrg	    and start over" "$LINENO" 5
2708765b7306Smrgfi
2709765b7306Smrg## -------------------- ##
2710765b7306Smrg## Main body of script. ##
2711765b7306Smrg## -------------------- ##
2712765b7306Smrg
2713765b7306Smrgac_ext=c
2714765b7306Smrgac_cpp='$CPP $CPPFLAGS'
2715765b7306Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716765b7306Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717765b7306Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2718765b7306Smrg
2719765b7306Smrg
27207a0395d0Smrg
2721273c00b8Smrgac_config_headers="$ac_config_headers config.h"
27227a0395d0Smrg
2723765b7306Smrg
2724273c00b8Smrg# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2725273c00b8Smrg# Must be called before any macros that run the compiler (like
2726273c00b8Smrg# AC_PROG_LIBTOOL) to avoid autoconf errors.
2727273c00b8Smrg
2728273c00b8Smrg
2729273c00b8Smrg
2730273c00b8Smrg
2731273c00b8Smrg
2732273c00b8Smrg
2733273c00b8Smrg
2734273c00b8Smrg
2735273c00b8Smrg
2736273c00b8Smrg
2737273c00b8Smrg
2738273c00b8Smrg# Expand $ac_aux_dir to an absolute path.
2739273c00b8Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
2740273c00b8Smrg
2741273c00b8Smrgac_ext=c
2742273c00b8Smrgac_cpp='$CPP $CPPFLAGS'
2743273c00b8Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2744273c00b8Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2745273c00b8Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2746273c00b8Smrgif test -n "$ac_tool_prefix"; then
2747273c00b8Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2748273c00b8Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2749273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2750273c00b8Smrgprintf %s "checking for $ac_word... " >&6; }
2751273c00b8Smrgif test ${ac_cv_prog_CC+y}
2752765b7306Smrgthen :
2753765b7306Smrg  printf %s "(cached) " >&6
2754273c00b8Smrgelse case e in #(
2755273c00b8Smrg  e) if test -n "$CC"; then
2756273c00b8Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2757273c00b8Smrgelse
2758273c00b8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27597a0395d0Smrgfor as_dir in $PATH
27607a0395d0Smrgdo
27617a0395d0Smrg  IFS=$as_save_IFS
2762765b7306Smrg  case $as_dir in #(((
2763765b7306Smrg    '') as_dir=./ ;;
2764765b7306Smrg    */) ;;
2765765b7306Smrg    *) as_dir=$as_dir/ ;;
2766765b7306Smrg  esac
2767273c00b8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2768273c00b8Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2769273c00b8Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2770273c00b8Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2771273c00b8Smrg    break 2
2772273c00b8Smrg  fi
2773273c00b8Smrgdone
2774273c00b8Smrg  done
2775273c00b8SmrgIFS=$as_save_IFS
2776273c00b8Smrg
2777273c00b8Smrgfi ;;
27787a0395d0Smrgesac
2779273c00b8Smrgfi
2780273c00b8SmrgCC=$ac_cv_prog_CC
2781273c00b8Smrgif test -n "$CC"; then
2782273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2783273c00b8Smrgprintf "%s\n" "$CC" >&6; }
2784273c00b8Smrgelse
2785273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786273c00b8Smrgprintf "%s\n" "no" >&6; }
2787273c00b8Smrgfi
27887366012aSmrg
2789273c00b8Smrg
2790273c00b8Smrgfi
2791273c00b8Smrgif test -z "$ac_cv_prog_CC"; then
2792273c00b8Smrg  ac_ct_CC=$CC
2793273c00b8Smrg  # Extract the first word of "gcc", so it can be a program name with args.
2794273c00b8Smrgset dummy gcc; ac_word=$2
2795273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796273c00b8Smrgprintf %s "checking for $ac_word... " >&6; }
2797273c00b8Smrgif test ${ac_cv_prog_ac_ct_CC+y}
2798273c00b8Smrgthen :
2799273c00b8Smrg  printf %s "(cached) " >&6
2800273c00b8Smrgelse case e in #(
2801273c00b8Smrg  e) if test -n "$ac_ct_CC"; then
2802273c00b8Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2803273c00b8Smrgelse
2804273c00b8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805273c00b8Smrgfor as_dir in $PATH
2806273c00b8Smrgdo
2807273c00b8Smrg  IFS=$as_save_IFS
2808273c00b8Smrg  case $as_dir in #(((
2809273c00b8Smrg    '') as_dir=./ ;;
2810273c00b8Smrg    */) ;;
2811273c00b8Smrg    *) as_dir=$as_dir/ ;;
2812273c00b8Smrg  esac
2813273c00b8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2814273c00b8Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2815273c00b8Smrg    ac_cv_prog_ac_ct_CC="gcc"
2816273c00b8Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2817273c00b8Smrg    break 2
2818273c00b8Smrg  fi
2819273c00b8Smrgdone
28202adc0320Smrg  done
28217a0395d0SmrgIFS=$as_save_IFS
28227a0395d0Smrg
2823273c00b8Smrgfi ;;
2824273c00b8Smrgesac
28257a0395d0Smrgfi
2826273c00b8Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2827273c00b8Smrgif test -n "$ac_ct_CC"; then
2828273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2829273c00b8Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
2830273c00b8Smrgelse
2831273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832273c00b8Smrgprintf "%s\n" "no" >&6; }
2833273c00b8Smrgfi
2834273c00b8Smrg
2835273c00b8Smrg  if test "x$ac_ct_CC" = x; then
2836273c00b8Smrg    CC=""
28377a0395d0Smrg  else
2838273c00b8Smrg    case $cross_compiling:$ac_tool_warned in
2839273c00b8Smrgyes:)
2840273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2841273c00b8Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2842273c00b8Smrgac_tool_warned=yes ;;
2843273c00b8Smrgesac
2844273c00b8Smrg    CC=$ac_ct_CC
28457a0395d0Smrg  fi
2846273c00b8Smrgelse
2847273c00b8Smrg  CC="$ac_cv_prog_CC"
28487a0395d0Smrgfi
28497a0395d0Smrg
2850273c00b8Smrgif test -z "$CC"; then
2851273c00b8Smrg          if test -n "$ac_tool_prefix"; then
2852273c00b8Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2853273c00b8Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2854765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855765b7306Smrgprintf %s "checking for $ac_word... " >&6; }
2856273c00b8Smrgif test ${ac_cv_prog_CC+y}
2857765b7306Smrgthen :
2858765b7306Smrg  printf %s "(cached) " >&6
2859273c00b8Smrgelse case e in #(
2860273c00b8Smrg  e) if test -n "$CC"; then
2861273c00b8Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
28627366012aSmrgelse
28637366012aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28647366012aSmrgfor as_dir in $PATH
28657366012aSmrgdo
28667366012aSmrg  IFS=$as_save_IFS
2867765b7306Smrg  case $as_dir in #(((
2868765b7306Smrg    '') as_dir=./ ;;
2869765b7306Smrg    */) ;;
2870765b7306Smrg    *) as_dir=$as_dir/ ;;
2871765b7306Smrg  esac
28722adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2873765b7306Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2874273c00b8Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2875765b7306Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28767366012aSmrg    break 2
28777366012aSmrg  fi
28787366012aSmrgdone
28792adc0320Smrg  done
28807366012aSmrgIFS=$as_save_IFS
28817366012aSmrg
2882273c00b8Smrgfi ;;
2883273c00b8Smrgesac
28847366012aSmrgfi
2885273c00b8SmrgCC=$ac_cv_prog_CC
2886273c00b8Smrgif test -n "$CC"; then
2887273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2888273c00b8Smrgprintf "%s\n" "$CC" >&6; }
28897366012aSmrgelse
2890765b7306Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891765b7306Smrgprintf "%s\n" "no" >&6; }
28927366012aSmrgfi
28937366012aSmrg
28947366012aSmrg
2895273c00b8Smrg  fi
28967366012aSmrgfi
2897273c00b8Smrgif test -z "$CC"; then
2898273c00b8Smrg  # Extract the first word of "cc", so it can be a program name with args.
2899273c00b8Smrgset dummy cc; ac_word=$2
2900765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901765b7306Smrgprintf %s "checking for $ac_word... " >&6; }
2902273c00b8Smrgif test ${ac_cv_prog_CC+y}
2903765b7306Smrgthen :
2904765b7306Smrg  printf %s "(cached) " >&6
2905273c00b8Smrgelse case e in #(
2906273c00b8Smrg  e) if test -n "$CC"; then
2907273c00b8Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
29087366012aSmrgelse
2909273c00b8Smrg  ac_prog_rejected=no
29107366012aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29117366012aSmrgfor as_dir in $PATH
29127366012aSmrgdo
29137366012aSmrg  IFS=$as_save_IFS
2914765b7306Smrg  case $as_dir in #(((
2915765b7306Smrg    '') as_dir=./ ;;
2916765b7306Smrg    */) ;;
2917765b7306Smrg    *) as_dir=$as_dir/ ;;
2918765b7306Smrg  esac
29192adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2920765b7306Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2921273c00b8Smrg    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2922273c00b8Smrg       ac_prog_rejected=yes
2923273c00b8Smrg       continue
2924273c00b8Smrg     fi
2925273c00b8Smrg    ac_cv_prog_CC="cc"
2926765b7306Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29277366012aSmrg    break 2
29287366012aSmrg  fi
29297366012aSmrgdone
29302adc0320Smrg  done
29317366012aSmrgIFS=$as_save_IFS
29327366012aSmrg
2933273c00b8Smrgif test $ac_prog_rejected = yes; then
2934273c00b8Smrg  # We found a bogon in the path, so make sure we never use it.
2935273c00b8Smrg  set dummy $ac_cv_prog_CC
2936273c00b8Smrg  shift
2937273c00b8Smrg  if test $# != 0; then
2938273c00b8Smrg    # We chose a different compiler from the bogus one.
2939273c00b8Smrg    # However, it has the same basename, so the bogon will be chosen
2940273c00b8Smrg    # first if we set CC to just the basename; use the full file name.
2941273c00b8Smrg    shift
2942273c00b8Smrg    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2943273c00b8Smrg  fi
29447366012aSmrgfi
2945273c00b8Smrgfi ;;
2946273c00b8Smrgesac
29477366012aSmrgfi
2948273c00b8SmrgCC=$ac_cv_prog_CC
2949273c00b8Smrgif test -n "$CC"; then
2950273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2951273c00b8Smrgprintf "%s\n" "$CC" >&6; }
29527366012aSmrgelse
2953765b7306Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954765b7306Smrgprintf "%s\n" "no" >&6; }
29557366012aSmrgfi
29567366012aSmrg
29577a0395d0Smrg
29587366012aSmrgfi
2959273c00b8Smrgif test -z "$CC"; then
2960273c00b8Smrg  if test -n "$ac_tool_prefix"; then
2961273c00b8Smrg  for ac_prog in cl.exe
2962273c00b8Smrg  do
2963273c00b8Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2964273c00b8Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2965273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966273c00b8Smrgprintf %s "checking for $ac_word... " >&6; }
2967273c00b8Smrgif test ${ac_cv_prog_CC+y}
2968765b7306Smrgthen :
2969765b7306Smrg  printf %s "(cached) " >&6
2970273c00b8Smrgelse case e in #(
2971273c00b8Smrg  e) if test -n "$CC"; then
2972273c00b8Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2973273c00b8Smrgelse
2974273c00b8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975273c00b8Smrgfor as_dir in $PATH
29767a0395d0Smrgdo
29777a0395d0Smrg  IFS=$as_save_IFS
2978765b7306Smrg  case $as_dir in #(((
2979765b7306Smrg    '') as_dir=./ ;;
2980765b7306Smrg    */) ;;
2981765b7306Smrg    *) as_dir=$as_dir/ ;;
2982765b7306Smrg  esac
2983273c00b8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2984273c00b8Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2985273c00b8Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2986273c00b8Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2987273c00b8Smrg    break 2
2988273c00b8Smrg  fi
2989273c00b8Smrgdone
29902adc0320Smrg  done
29917a0395d0SmrgIFS=$as_save_IFS
29927a0395d0Smrg
2993273c00b8Smrgfi ;;
2994273c00b8Smrgesac
29957a0395d0Smrgfi
2996273c00b8SmrgCC=$ac_cv_prog_CC
2997273c00b8Smrgif test -n "$CC"; then
2998273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2999273c00b8Smrgprintf "%s\n" "$CC" >&6; }
3000273c00b8Smrgelse
3001273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002273c00b8Smrgprintf "%s\n" "no" >&6; }
30037a0395d0Smrgfi
30047a0395d0Smrg
3005273c00b8Smrg
3006273c00b8Smrg    test -n "$CC" && break
3007273c00b8Smrg  done
3008273c00b8Smrgfi
3009273c00b8Smrgif test -z "$CC"; then
3010273c00b8Smrg  ac_ct_CC=$CC
3011273c00b8Smrg  for ac_prog in cl.exe
30127a0395d0Smrgdo
30137a0395d0Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
30147a0395d0Smrgset dummy $ac_prog; ac_word=$2
3015765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016765b7306Smrgprintf %s "checking for $ac_word... " >&6; }
3017273c00b8Smrgif test ${ac_cv_prog_ac_ct_CC+y}
3018765b7306Smrgthen :
3019765b7306Smrg  printf %s "(cached) " >&6
3020273c00b8Smrgelse case e in #(
3021273c00b8Smrg  e) if test -n "$ac_ct_CC"; then
3022273c00b8Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
30237a0395d0Smrgelse
30247a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30257a0395d0Smrgfor as_dir in $PATH
30267a0395d0Smrgdo
30277a0395d0Smrg  IFS=$as_save_IFS
3028765b7306Smrg  case $as_dir in #(((
3029765b7306Smrg    '') as_dir=./ ;;
3030765b7306Smrg    */) ;;
3031765b7306Smrg    *) as_dir=$as_dir/ ;;
3032765b7306Smrg  esac
30332adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3034765b7306Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3035273c00b8Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3036765b7306Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30377a0395d0Smrg    break 2
30387a0395d0Smrg  fi
30397a0395d0Smrgdone
30402adc0320Smrg  done
30417a0395d0SmrgIFS=$as_save_IFS
30427a0395d0Smrg
3043273c00b8Smrgfi ;;
3044273c00b8Smrgesac
30457a0395d0Smrgfi
3046273c00b8Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3047273c00b8Smrgif test -n "$ac_ct_CC"; then
3048273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3049273c00b8Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
30507a0395d0Smrgelse
3051765b7306Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052765b7306Smrgprintf "%s\n" "no" >&6; }
30537a0395d0Smrgfi
30547a0395d0Smrg
30557a0395d0Smrg
3056273c00b8Smrg  test -n "$ac_ct_CC" && break
30577a0395d0Smrgdone
30587a0395d0Smrg
3059273c00b8Smrg  if test "x$ac_ct_CC" = x; then
3060273c00b8Smrg    CC=""
3061273c00b8Smrg  else
3062273c00b8Smrg    case $cross_compiling:$ac_tool_warned in
3063273c00b8Smrgyes:)
3064273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3065273c00b8Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3066273c00b8Smrgac_tool_warned=yes ;;
3067273c00b8Smrgesac
3068273c00b8Smrg    CC=$ac_ct_CC
3069273c00b8Smrg  fi
3070273c00b8Smrgfi
3071273c00b8Smrg
3072273c00b8Smrgfi
3073273c00b8Smrgif test -z "$CC"; then
3074273c00b8Smrg  if test -n "$ac_tool_prefix"; then
3075273c00b8Smrg  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3076273c00b8Smrgset dummy ${ac_tool_prefix}clang; ac_word=$2
3077273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078273c00b8Smrgprintf %s "checking for $ac_word... " >&6; }
3079273c00b8Smrgif test ${ac_cv_prog_CC+y}
3080765b7306Smrgthen :
3081765b7306Smrg  printf %s "(cached) " >&6
3082273c00b8Smrgelse case e in #(
3083273c00b8Smrg  e) if test -n "$CC"; then
3084273c00b8Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3085273c00b8Smrgelse
3086273c00b8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087273c00b8Smrgfor as_dir in $PATH
3088273c00b8Smrgdo
3089273c00b8Smrg  IFS=$as_save_IFS
3090273c00b8Smrg  case $as_dir in #(((
3091273c00b8Smrg    '') as_dir=./ ;;
3092273c00b8Smrg    */) ;;
3093273c00b8Smrg    *) as_dir=$as_dir/ ;;
3094273c00b8Smrg  esac
3095273c00b8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3096273c00b8Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3097273c00b8Smrg    ac_cv_prog_CC="${ac_tool_prefix}clang"
3098273c00b8Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3099273c00b8Smrg    break 2
3100273c00b8Smrg  fi
3101273c00b8Smrgdone
3102273c00b8Smrg  done
3103273c00b8SmrgIFS=$as_save_IFS
3104273c00b8Smrg
3105273c00b8Smrgfi ;;
31067a0395d0Smrgesac
31077a0395d0Smrgfi
3108273c00b8SmrgCC=$ac_cv_prog_CC
3109273c00b8Smrgif test -n "$CC"; then
3110273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111273c00b8Smrgprintf "%s\n" "$CC" >&6; }
31127a0395d0Smrgelse
3113765b7306Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114765b7306Smrgprintf "%s\n" "no" >&6; }
31157a0395d0Smrgfi
31167a0395d0Smrg
31177a0395d0Smrg
31189a011757Smrgfi
3119273c00b8Smrgif test -z "$ac_cv_prog_CC"; then
3120273c00b8Smrg  ac_ct_CC=$CC
3121273c00b8Smrg  # Extract the first word of "clang", so it can be a program name with args.
3122273c00b8Smrgset dummy clang; ac_word=$2
3123273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124273c00b8Smrgprintf %s "checking for $ac_word... " >&6; }
3125273c00b8Smrgif test ${ac_cv_prog_ac_ct_CC+y}
3126765b7306Smrgthen :
3127765b7306Smrg  printf %s "(cached) " >&6
3128273c00b8Smrgelse case e in #(
3129273c00b8Smrg  e) if test -n "$ac_ct_CC"; then
3130273c00b8Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
31319a011757Smrgelse
3132273c00b8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133273c00b8Smrgfor as_dir in $PATH
3134273c00b8Smrgdo
3135273c00b8Smrg  IFS=$as_save_IFS
3136273c00b8Smrg  case $as_dir in #(((
3137273c00b8Smrg    '') as_dir=./ ;;
3138273c00b8Smrg    */) ;;
3139273c00b8Smrg    *) as_dir=$as_dir/ ;;
3140273c00b8Smrg  esac
3141273c00b8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3142273c00b8Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3143273c00b8Smrg    ac_cv_prog_ac_ct_CC="clang"
3144273c00b8Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3145273c00b8Smrg    break 2
3146273c00b8Smrg  fi
3147273c00b8Smrgdone
3148273c00b8Smrg  done
3149273c00b8SmrgIFS=$as_save_IFS
3150273c00b8Smrg
3151273c00b8Smrgfi ;;
3152273c00b8Smrgesac
31539a011757Smrgfi
3154273c00b8Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3155273c00b8Smrgif test -n "$ac_ct_CC"; then
3156273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3157273c00b8Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
31589a011757Smrgelse
3159273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160273c00b8Smrgprintf "%s\n" "no" >&6; }
31617a0395d0Smrgfi
31627a0395d0Smrg
3163273c00b8Smrg  if test "x$ac_ct_CC" = x; then
3164273c00b8Smrg    CC=""
31657a0395d0Smrg  else
3166273c00b8Smrg    case $cross_compiling:$ac_tool_warned in
3167273c00b8Smrgyes:)
3168273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3169273c00b8Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3170273c00b8Smrgac_tool_warned=yes ;;
3171273c00b8Smrgesac
3172273c00b8Smrg    CC=$ac_ct_CC
31737a0395d0Smrg  fi
3174273c00b8Smrgelse
3175273c00b8Smrg  CC="$ac_cv_prog_CC"
31767a0395d0Smrgfi
31777a0395d0Smrg
3178273c00b8Smrgfi
31797a0395d0Smrg
31807a0395d0Smrg
3181273c00b8Smrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3182273c00b8Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3183273c00b8Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
3184273c00b8SmrgSee 'config.log' for more details" "$LINENO" 5; }
31857a0395d0Smrg
3186273c00b8Smrg# Provide some information about the compiler.
3187273c00b8Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3188273c00b8Smrgset X $ac_compile
3189273c00b8Smrgac_compiler=$2
3190273c00b8Smrgfor ac_option in --version -v -V -qversion -version; do
3191273c00b8Smrg  { { ac_try="$ac_compiler $ac_option >&5"
3192273c00b8Smrgcase "(($ac_try" in
3193273c00b8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194273c00b8Smrg  *) ac_try_echo=$ac_try;;
3195273c00b8Smrgesac
3196273c00b8Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197273c00b8Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3198273c00b8Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3199273c00b8Smrg  ac_status=$?
3200273c00b8Smrg  if test -s conftest.err; then
3201273c00b8Smrg    sed '10a\
3202273c00b8Smrg... rest of stderr output deleted ...
3203273c00b8Smrg         10q' conftest.err >conftest.er1
3204273c00b8Smrg    cat conftest.er1 >&5
3205273c00b8Smrg  fi
3206273c00b8Smrg  rm -f conftest.er1 conftest.err
3207273c00b8Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3208273c00b8Smrg  test $ac_status = 0; }
3209273c00b8Smrgdone
32107a0395d0Smrg
3211273c00b8Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212273c00b8Smrg/* end confdefs.h.  */
32137a0395d0Smrg
3214273c00b8Smrgint
3215273c00b8Smrgmain (void)
3216273c00b8Smrg{
32177a0395d0Smrg
3218273c00b8Smrg  ;
3219273c00b8Smrg  return 0;
3220273c00b8Smrg}
3221273c00b8Smrg_ACEOF
3222273c00b8Smrgac_clean_files_save=$ac_clean_files
3223273c00b8Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3224273c00b8Smrg# Try to create an executable without -o first, disregard a.out.
3225273c00b8Smrg# It will help us diagnose broken compilers, and finding out an intuition
3226273c00b8Smrg# of exeext.
3227273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3228273c00b8Smrgprintf %s "checking whether the C compiler works... " >&6; }
3229273c00b8Smrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
32307a0395d0Smrg
3231273c00b8Smrg# The possible output files:
3232273c00b8Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
32337a0395d0Smrg
3234273c00b8Smrgac_rmfiles=
3235273c00b8Smrgfor ac_file in $ac_files
3236273c00b8Smrgdo
3237273c00b8Smrg  case $ac_file in
3238273c00b8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3239273c00b8Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3240273c00b8Smrg  esac
3241273c00b8Smrgdone
3242273c00b8Smrgrm -f $ac_rmfiles
32437a0395d0Smrg
3244273c00b8Smrgif { { ac_try="$ac_link_default"
3245273c00b8Smrgcase "(($ac_try" in
3246273c00b8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247273c00b8Smrg  *) ac_try_echo=$ac_try;;
3248273c00b8Smrgesac
3249273c00b8Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250273c00b8Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3251273c00b8Smrg  (eval "$ac_link_default") 2>&5
3252273c00b8Smrg  ac_status=$?
3253273c00b8Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254273c00b8Smrg  test $ac_status = 0; }
3255273c00b8Smrgthen :
3256273c00b8Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3257273c00b8Smrg# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3258273c00b8Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3259273c00b8Smrg# so that the user can short-circuit this test for compilers unknown to
3260273c00b8Smrg# Autoconf.
3261273c00b8Smrgfor ac_file in $ac_files ''
3262273c00b8Smrgdo
3263273c00b8Smrg  test -f "$ac_file" || continue
3264273c00b8Smrg  case $ac_file in
3265273c00b8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3266273c00b8Smrg	;;
3267273c00b8Smrg    [ab].out )
3268273c00b8Smrg	# We found the default executable, but exeext='' is most
3269273c00b8Smrg	# certainly right.
3270273c00b8Smrg	break;;
3271273c00b8Smrg    *.* )
3272273c00b8Smrg	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3273273c00b8Smrg	then :; else
3274273c00b8Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3275273c00b8Smrg	fi
3276273c00b8Smrg	# We set ac_cv_exeext here because the later test for it is not
3277273c00b8Smrg	# safe: cross compilers may not add the suffix if given an '-o'
3278273c00b8Smrg	# argument, so we may need to know it at that point already.
3279273c00b8Smrg	# Even if this section looks crufty: it has the advantage of
3280273c00b8Smrg	# actually working.
3281273c00b8Smrg	break;;
3282273c00b8Smrg    * )
3283273c00b8Smrg	break;;
3284273c00b8Smrg  esac
3285273c00b8Smrgdone
3286273c00b8Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
32877a0395d0Smrg
3288273c00b8Smrgelse case e in #(
3289273c00b8Smrg  e) ac_file='' ;;
3290273c00b8Smrgesac
3291765b7306Smrgfi
3292273c00b8Smrgif test -z "$ac_file"
3293273c00b8Smrgthen :
3294273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295273c00b8Smrgprintf "%s\n" "no" >&6; }
3296273c00b8Smrgprintf "%s\n" "$as_me: failed program was:" >&5
3297273c00b8Smrgsed 's/^/| /' conftest.$ac_ext >&5
3298765b7306Smrg
3299273c00b8Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3300273c00b8Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3301273c00b8Smrgas_fn_error 77 "C compiler cannot create executables
3302273c00b8SmrgSee 'config.log' for more details" "$LINENO" 5; }
3303273c00b8Smrgelse case e in #(
3304273c00b8Smrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3305273c00b8Smrgprintf "%s\n" "yes" >&6; } ;;
3306273c00b8Smrgesac
3307765b7306Smrgfi
3308273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3309273c00b8Smrgprintf %s "checking for C compiler default output file name... " >&6; }
3310273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3311273c00b8Smrgprintf "%s\n" "$ac_file" >&6; }
3312273c00b8Smrgac_exeext=$ac_cv_exeext
3313765b7306Smrg
3314273c00b8Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3315273c00b8Smrgac_clean_files=$ac_clean_files_save
3316273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3317273c00b8Smrgprintf %s "checking for suffix of executables... " >&6; }
3318273c00b8Smrgif { { ac_try="$ac_link"
3319273c00b8Smrgcase "(($ac_try" in
3320273c00b8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321273c00b8Smrg  *) ac_try_echo=$ac_try;;
3322273c00b8Smrgesac
3323273c00b8Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324273c00b8Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3325273c00b8Smrg  (eval "$ac_link") 2>&5
3326273c00b8Smrg  ac_status=$?
3327273c00b8Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328273c00b8Smrg  test $ac_status = 0; }
3329273c00b8Smrgthen :
3330273c00b8Smrg  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3331273c00b8Smrg# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3332273c00b8Smrg# work properly (i.e., refer to 'conftest.exe'), while it won't with
3333273c00b8Smrg# 'rm'.
3334273c00b8Smrgfor ac_file in conftest.exe conftest conftest.*; do
3335273c00b8Smrg  test -f "$ac_file" || continue
3336273c00b8Smrg  case $ac_file in
3337273c00b8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3338273c00b8Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3339273c00b8Smrg	  break;;
3340273c00b8Smrg    * ) break;;
3341273c00b8Smrg  esac
3342273c00b8Smrgdone
3343273c00b8Smrgelse case e in #(
3344273c00b8Smrg  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3345273c00b8Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3346273c00b8Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3347273c00b8SmrgSee 'config.log' for more details" "$LINENO" 5; } ;;
3348273c00b8Smrgesac
3349765b7306Smrgfi
3350273c00b8Smrgrm -f conftest conftest$ac_cv_exeext
3351273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3352273c00b8Smrgprintf "%s\n" "$ac_cv_exeext" >&6; }
3353765b7306Smrg
3354273c00b8Smrgrm -f conftest.$ac_ext
3355273c00b8SmrgEXEEXT=$ac_cv_exeext
3356273c00b8Smrgac_exeext=$EXEEXT
3357273c00b8Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358273c00b8Smrg/* end confdefs.h.  */
3359273c00b8Smrg#include <stdio.h>
3360273c00b8Smrgint
3361273c00b8Smrgmain (void)
3362273c00b8Smrg{
3363273c00b8SmrgFILE *f = fopen ("conftest.out", "w");
3364273c00b8Smrg if (!f)
3365273c00b8Smrg  return 1;
3366273c00b8Smrg return ferror (f) || fclose (f) != 0;
3367765b7306Smrg
3368273c00b8Smrg  ;
3369273c00b8Smrg  return 0;
3370273c00b8Smrg}
3371273c00b8Smrg_ACEOF
3372273c00b8Smrgac_clean_files="$ac_clean_files conftest.out"
3373273c00b8Smrg# Check that the compiler produces executables we can run.  If not, either
3374273c00b8Smrg# the compiler is broken, or we cross compile.
3375273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3376273c00b8Smrgprintf %s "checking whether we are cross compiling... " >&6; }
3377273c00b8Smrgif test "$cross_compiling" != yes; then
3378273c00b8Smrg  { { ac_try="$ac_link"
3379273c00b8Smrgcase "(($ac_try" in
3380273c00b8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381273c00b8Smrg  *) ac_try_echo=$ac_try;;
3382273c00b8Smrgesac
3383273c00b8Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384273c00b8Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3385273c00b8Smrg  (eval "$ac_link") 2>&5
3386273c00b8Smrg  ac_status=$?
3387273c00b8Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388273c00b8Smrg  test $ac_status = 0; }
3389273c00b8Smrg  if { ac_try='./conftest$ac_cv_exeext'
3390273c00b8Smrg  { { case "(($ac_try" in
3391273c00b8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392273c00b8Smrg  *) ac_try_echo=$ac_try;;
3393273c00b8Smrgesac
3394273c00b8Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395273c00b8Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3396273c00b8Smrg  (eval "$ac_try") 2>&5
3397273c00b8Smrg  ac_status=$?
3398273c00b8Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399273c00b8Smrg  test $ac_status = 0; }; }; then
3400273c00b8Smrg    cross_compiling=no
340140c5344fSmrg  else
3402273c00b8Smrg    if test "$cross_compiling" = maybe; then
3403273c00b8Smrg	cross_compiling=yes
3404273c00b8Smrg    else
3405273c00b8Smrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3406273c00b8Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3407273c00b8Smrgas_fn_error 77 "cannot run C compiled programs.
3408273c00b8SmrgIf you meant to cross compile, use '--host'.
3409273c00b8SmrgSee 'config.log' for more details" "$LINENO" 5; }
3410273c00b8Smrg    fi
341140c5344fSmrg  fi
341240c5344fSmrgfi
3413273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3414273c00b8Smrgprintf "%s\n" "$cross_compiling" >&6; }
34157a0395d0Smrg
3416273c00b8Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext \
3417273c00b8Smrg  conftest.o conftest.obj conftest.out
3418273c00b8Smrgac_clean_files=$ac_clean_files_save
3419273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3420273c00b8Smrgprintf %s "checking for suffix of object files... " >&6; }
3421273c00b8Smrgif test ${ac_cv_objext+y}
3422273c00b8Smrgthen :
3423273c00b8Smrg  printf %s "(cached) " >&6
3424273c00b8Smrgelse case e in #(
3425273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426273c00b8Smrg/* end confdefs.h.  */
34277a0395d0Smrg
3428273c00b8Smrgint
3429273c00b8Smrgmain (void)
3430273c00b8Smrg{
3431765b7306Smrg
3432273c00b8Smrg  ;
3433273c00b8Smrg  return 0;
3434273c00b8Smrg}
3435273c00b8Smrg_ACEOF
3436273c00b8Smrgrm -f conftest.o conftest.obj
3437273c00b8Smrgif { { ac_try="$ac_compile"
3438273c00b8Smrgcase "(($ac_try" in
3439273c00b8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440273c00b8Smrg  *) ac_try_echo=$ac_try;;
3441273c00b8Smrgesac
3442273c00b8Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443273c00b8Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3444273c00b8Smrg  (eval "$ac_compile") 2>&5
3445273c00b8Smrg  ac_status=$?
3446273c00b8Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447273c00b8Smrg  test $ac_status = 0; }
3448273c00b8Smrgthen :
3449273c00b8Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
3450273c00b8Smrg  test -f "$ac_file" || continue;
3451273c00b8Smrg  case $ac_file in
3452273c00b8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3453273c00b8Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3454273c00b8Smrg       break;;
3455273c00b8Smrg  esac
3456273c00b8Smrgdone
3457273c00b8Smrgelse case e in #(
3458273c00b8Smrg  e) printf "%s\n" "$as_me: failed program was:" >&5
3459273c00b8Smrgsed 's/^/| /' conftest.$ac_ext >&5
3460765b7306Smrg
3461273c00b8Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3462273c00b8Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3463273c00b8Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3464273c00b8SmrgSee 'config.log' for more details" "$LINENO" 5; } ;;
3465273c00b8Smrgesac
3466273c00b8Smrgfi
3467273c00b8Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3468273c00b8Smrgesac
3469273c00b8Smrgfi
3470273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3471273c00b8Smrgprintf "%s\n" "$ac_cv_objext" >&6; }
3472273c00b8SmrgOBJEXT=$ac_cv_objext
3473273c00b8Smrgac_objext=$OBJEXT
3474273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3475273c00b8Smrgprintf %s "checking whether the compiler supports GNU C... " >&6; }
3476273c00b8Smrgif test ${ac_cv_c_compiler_gnu+y}
3477273c00b8Smrgthen :
3478273c00b8Smrg  printf %s "(cached) " >&6
3479273c00b8Smrgelse case e in #(
3480273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481273c00b8Smrg/* end confdefs.h.  */
3482765b7306Smrg
3483273c00b8Smrgint
3484273c00b8Smrgmain (void)
3485273c00b8Smrg{
3486273c00b8Smrg#ifndef __GNUC__
3487273c00b8Smrg       choke me
3488273c00b8Smrg#endif
3489765b7306Smrg
3490273c00b8Smrg  ;
3491273c00b8Smrg  return 0;
3492273c00b8Smrg}
3493273c00b8Smrg_ACEOF
3494273c00b8Smrgif ac_fn_c_try_compile "$LINENO"
3495273c00b8Smrgthen :
3496273c00b8Smrg  ac_compiler_gnu=yes
3497273c00b8Smrgelse case e in #(
3498273c00b8Smrg  e) ac_compiler_gnu=no ;;
3499273c00b8Smrgesac
3500273c00b8Smrgfi
3501273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3502273c00b8Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3503273c00b8Smrg ;;
3504273c00b8Smrgesac
3505273c00b8Smrgfi
3506273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3507273c00b8Smrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3508273c00b8Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3509765b7306Smrg
3510273c00b8Smrgif test $ac_compiler_gnu = yes; then
3511273c00b8Smrg  GCC=yes
3512273c00b8Smrgelse
3513273c00b8Smrg  GCC=
3514273c00b8Smrgfi
3515273c00b8Smrgac_test_CFLAGS=${CFLAGS+y}
3516273c00b8Smrgac_save_CFLAGS=$CFLAGS
3517273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3518273c00b8Smrgprintf %s "checking whether $CC accepts -g... " >&6; }
3519273c00b8Smrgif test ${ac_cv_prog_cc_g+y}
3520273c00b8Smrgthen :
3521273c00b8Smrg  printf %s "(cached) " >&6
3522273c00b8Smrgelse case e in #(
3523273c00b8Smrg  e) ac_save_c_werror_flag=$ac_c_werror_flag
3524273c00b8Smrg   ac_c_werror_flag=yes
3525273c00b8Smrg   ac_cv_prog_cc_g=no
3526273c00b8Smrg   CFLAGS="-g"
3527273c00b8Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528273c00b8Smrg/* end confdefs.h.  */
3529765b7306Smrg
3530273c00b8Smrgint
3531273c00b8Smrgmain (void)
3532273c00b8Smrg{
3533765b7306Smrg
3534273c00b8Smrg  ;
3535273c00b8Smrg  return 0;
3536273c00b8Smrg}
3537273c00b8Smrg_ACEOF
3538273c00b8Smrgif ac_fn_c_try_compile "$LINENO"
3539273c00b8Smrgthen :
3540273c00b8Smrg  ac_cv_prog_cc_g=yes
3541273c00b8Smrgelse case e in #(
3542273c00b8Smrg  e) CFLAGS=""
3543273c00b8Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544273c00b8Smrg/* end confdefs.h.  */
3545765b7306Smrg
3546273c00b8Smrgint
3547273c00b8Smrgmain (void)
3548273c00b8Smrg{
3549765b7306Smrg
3550273c00b8Smrg  ;
3551273c00b8Smrg  return 0;
3552273c00b8Smrg}
3553273c00b8Smrg_ACEOF
3554273c00b8Smrgif ac_fn_c_try_compile "$LINENO"
3555273c00b8Smrgthen :
35562adc0320Smrg
3557273c00b8Smrgelse case e in #(
3558273c00b8Smrg  e) ac_c_werror_flag=$ac_save_c_werror_flag
3559273c00b8Smrg	 CFLAGS="-g"
3560273c00b8Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561273c00b8Smrg/* end confdefs.h.  */
35622adc0320Smrg
3563273c00b8Smrgint
3564273c00b8Smrgmain (void)
3565273c00b8Smrg{
35662adc0320Smrg
3567273c00b8Smrg  ;
3568273c00b8Smrg  return 0;
3569273c00b8Smrg}
3570273c00b8Smrg_ACEOF
3571273c00b8Smrgif ac_fn_c_try_compile "$LINENO"
3572765b7306Smrgthen :
3573273c00b8Smrg  ac_cv_prog_cc_g=yes
35742adc0320Smrgfi
3575273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3576273c00b8Smrgesac
35772adc0320Smrgfi
3578273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3579273c00b8Smrgesac
3580273c00b8Smrgfi
3581273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3582273c00b8Smrg   ac_c_werror_flag=$ac_save_c_werror_flag ;;
3583273c00b8Smrgesac
3584273c00b8Smrgfi
3585273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3586273c00b8Smrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3587273c00b8Smrgif test $ac_test_CFLAGS; then
3588273c00b8Smrg  CFLAGS=$ac_save_CFLAGS
3589273c00b8Smrgelif test $ac_cv_prog_cc_g = yes; then
3590273c00b8Smrg  if test "$GCC" = yes; then
3591273c00b8Smrg    CFLAGS="-g -O2"
3592273c00b8Smrg  else
3593273c00b8Smrg    CFLAGS="-g"
3594273c00b8Smrg  fi
35952adc0320Smrgelse
3596273c00b8Smrg  if test "$GCC" = yes; then
3597273c00b8Smrg    CFLAGS="-O2"
3598273c00b8Smrg  else
3599273c00b8Smrg    CFLAGS=
3600273c00b8Smrg  fi
36012adc0320Smrgfi
3602273c00b8Smrgac_prog_cc_stdc=no
3603273c00b8Smrgif test x$ac_prog_cc_stdc = xno
3604273c00b8Smrgthen :
3605273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3606273c00b8Smrgprintf %s "checking for $CC option to enable C11 features... " >&6; }
3607273c00b8Smrgif test ${ac_cv_prog_cc_c11+y}
3608765b7306Smrgthen :
3609765b7306Smrg  printf %s "(cached) " >&6
3610273c00b8Smrgelse case e in #(
3611273c00b8Smrg  e) ac_cv_prog_cc_c11=no
3612273c00b8Smrgac_save_CC=$CC
3613273c00b8Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614273c00b8Smrg/* end confdefs.h.  */
3615273c00b8Smrg$ac_c_conftest_c11_program
3616273c00b8Smrg_ACEOF
3617273c00b8Smrgfor ac_arg in '' -std=gnu11
36187a0395d0Smrgdo
3619273c00b8Smrg  CC="$ac_save_CC $ac_arg"
3620273c00b8Smrg  if ac_fn_c_try_compile "$LINENO"
3621273c00b8Smrgthen :
3622273c00b8Smrg  ac_cv_prog_cc_c11=$ac_arg
3623273c00b8Smrgfi
3624273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
3625273c00b8Smrg  test "x$ac_cv_prog_cc_c11" != "xno" && break
36267a0395d0Smrgdone
3627273c00b8Smrgrm -f conftest.$ac_ext
3628273c00b8SmrgCC=$ac_save_CC ;;
3629273c00b8Smrgesac
36307a0395d0Smrgfi
3631273c00b8Smrg
3632273c00b8Smrgif test "x$ac_cv_prog_cc_c11" = xno
3633273c00b8Smrgthen :
3634273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3635273c00b8Smrgprintf "%s\n" "unsupported" >&6; }
3636273c00b8Smrgelse case e in #(
3637273c00b8Smrg  e) if test "x$ac_cv_prog_cc_c11" = x
3638273c00b8Smrgthen :
3639273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3640273c00b8Smrgprintf "%s\n" "none needed" >&6; }
3641273c00b8Smrgelse case e in #(
3642273c00b8Smrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3643273c00b8Smrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3644273c00b8Smrg     CC="$CC $ac_cv_prog_cc_c11" ;;
3645273c00b8Smrgesac
36467a0395d0Smrgfi
3647273c00b8Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3648273c00b8Smrg  ac_prog_cc_stdc=c11 ;;
3649273c00b8Smrgesac
36507a0395d0Smrgfi
36517a0395d0Smrgfi
3652273c00b8Smrgif test x$ac_prog_cc_stdc = xno
3653273c00b8Smrgthen :
3654273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3655273c00b8Smrgprintf %s "checking for $CC option to enable C99 features... " >&6; }
3656273c00b8Smrgif test ${ac_cv_prog_cc_c99+y}
3657765b7306Smrgthen :
3658765b7306Smrg  printf %s "(cached) " >&6
3659273c00b8Smrgelse case e in #(
3660273c00b8Smrg  e) ac_cv_prog_cc_c99=no
3661273c00b8Smrgac_save_CC=$CC
3662273c00b8Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663273c00b8Smrg/* end confdefs.h.  */
3664273c00b8Smrg$ac_c_conftest_c99_program
3665273c00b8Smrg_ACEOF
3666273c00b8Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
36677a0395d0Smrgdo
3668273c00b8Smrg  CC="$ac_save_CC $ac_arg"
3669273c00b8Smrg  if ac_fn_c_try_compile "$LINENO"
3670273c00b8Smrgthen :
3671273c00b8Smrg  ac_cv_prog_cc_c99=$ac_arg
36727a0395d0Smrgfi
3673273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
3674273c00b8Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
3675273c00b8Smrgdone
3676273c00b8Smrgrm -f conftest.$ac_ext
3677273c00b8SmrgCC=$ac_save_CC ;;
36787a0395d0Smrgesac
36797a0395d0Smrgfi
36807a0395d0Smrg
3681273c00b8Smrgif test "x$ac_cv_prog_cc_c99" = xno
3682765b7306Smrgthen :
3683273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3684273c00b8Smrgprintf "%s\n" "unsupported" >&6; }
3685273c00b8Smrgelse case e in #(
3686273c00b8Smrg  e) if test "x$ac_cv_prog_cc_c99" = x
3687273c00b8Smrgthen :
3688273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3689273c00b8Smrgprintf "%s\n" "none needed" >&6; }
3690273c00b8Smrgelse case e in #(
3691273c00b8Smrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3692273c00b8Smrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3693273c00b8Smrg     CC="$CC $ac_cv_prog_cc_c99" ;;
3694273c00b8Smrgesac
36957a0395d0Smrgfi
3696273c00b8Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3697273c00b8Smrg  ac_prog_cc_stdc=c99 ;;
3698273c00b8Smrgesac
36997a0395d0Smrgfi
37007a0395d0Smrgfi
3701273c00b8Smrgif test x$ac_prog_cc_stdc = xno
3702273c00b8Smrgthen :
3703273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3704273c00b8Smrgprintf %s "checking for $CC option to enable C89 features... " >&6; }
3705273c00b8Smrgif test ${ac_cv_prog_cc_c89+y}
3706765b7306Smrgthen :
3707765b7306Smrg  printf %s "(cached) " >&6
3708273c00b8Smrgelse case e in #(
3709273c00b8Smrg  e) ac_cv_prog_cc_c89=no
3710273c00b8Smrgac_save_CC=$CC
3711273c00b8Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712273c00b8Smrg/* end confdefs.h.  */
3713273c00b8Smrg$ac_c_conftest_c89_program
3714273c00b8Smrg_ACEOF
3715273c00b8Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
37167a0395d0Smrgdo
3717273c00b8Smrg  CC="$ac_save_CC $ac_arg"
3718273c00b8Smrg  if ac_fn_c_try_compile "$LINENO"
3719273c00b8Smrgthen :
3720273c00b8Smrg  ac_cv_prog_cc_c89=$ac_arg
3721273c00b8Smrgfi
3722273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
3723273c00b8Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
37247a0395d0Smrgdone
3725273c00b8Smrgrm -f conftest.$ac_ext
3726273c00b8SmrgCC=$ac_save_CC ;;
3727273c00b8Smrgesac
37287a0395d0Smrgfi
3729273c00b8Smrg
3730273c00b8Smrgif test "x$ac_cv_prog_cc_c89" = xno
3731273c00b8Smrgthen :
3732273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3733273c00b8Smrgprintf "%s\n" "unsupported" >&6; }
3734273c00b8Smrgelse case e in #(
3735273c00b8Smrg  e) if test "x$ac_cv_prog_cc_c89" = x
3736273c00b8Smrgthen :
3737273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3738273c00b8Smrgprintf "%s\n" "none needed" >&6; }
3739273c00b8Smrgelse case e in #(
3740273c00b8Smrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3741273c00b8Smrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3742273c00b8Smrg     CC="$CC $ac_cv_prog_cc_c89" ;;
3743273c00b8Smrgesac
37447a0395d0Smrgfi
3745273c00b8Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3746273c00b8Smrg  ac_prog_cc_stdc=c89 ;;
3747273c00b8Smrgesac
37487a0395d0Smrgfi
37497a0395d0Smrgfi
37507a0395d0Smrg
3751273c00b8Smrgac_ext=c
3752273c00b8Smrgac_cpp='$CPP $CPPFLAGS'
3753273c00b8Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754273c00b8Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755273c00b8Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
37567a0395d0Smrg
3757273c00b8Smrg
3758273c00b8Smrg  ac_ext=c
3759273c00b8Smrgac_cpp='$CPP $CPPFLAGS'
3760273c00b8Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761273c00b8Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762273c00b8Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3763273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3764273c00b8Smrgprintf %s "checking whether $CC understands -c and -o together... " >&6; }
3765273c00b8Smrgif test ${am_cv_prog_cc_c_o+y}
3766765b7306Smrgthen :
3767765b7306Smrg  printf %s "(cached) " >&6
3768273c00b8Smrgelse case e in #(
3769273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770273c00b8Smrg/* end confdefs.h.  */
37717a0395d0Smrg
3772273c00b8Smrgint
3773273c00b8Smrgmain (void)
3774273c00b8Smrg{
3775273c00b8Smrg
3776273c00b8Smrg  ;
3777273c00b8Smrg  return 0;
3778273c00b8Smrg}
3779273c00b8Smrg_ACEOF
3780273c00b8Smrg  # Make sure it works both with $CC and with simple cc.
3781273c00b8Smrg  # Following AC_PROG_CC_C_O, we do the test twice because some
3782273c00b8Smrg  # compilers refuse to overwrite an existing .o file with -o,
3783273c00b8Smrg  # though they will create one.
3784273c00b8Smrg  am_cv_prog_cc_c_o=yes
3785273c00b8Smrg  for am_i in 1 2; do
3786273c00b8Smrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3787273c00b8Smrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3788273c00b8Smrg   ac_status=$?
3789273c00b8Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790273c00b8Smrg   (exit $ac_status); } \
3791273c00b8Smrg         && test -f conftest2.$ac_objext; then
3792273c00b8Smrg      : OK
3793273c00b8Smrg    else
3794273c00b8Smrg      am_cv_prog_cc_c_o=no
3795273c00b8Smrg      break
3796273c00b8Smrg    fi
3797273c00b8Smrg  done
3798273c00b8Smrg  rm -f core conftest*
3799273c00b8Smrg  unset am_i ;;
3800273c00b8Smrgesac
38017a0395d0Smrgfi
3802273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3803273c00b8Smrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3804273c00b8Smrgif test "$am_cv_prog_cc_c_o" != yes; then
3805273c00b8Smrg   # Losing compiler, so override with the script.
3806273c00b8Smrg   # FIXME: It is wrong to rewrite CC.
3807273c00b8Smrg   # But if we don't then we get into trouble of one sort or another.
3808273c00b8Smrg   # A longer-term fix would be to have automake use am__CC in this case,
3809273c00b8Smrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3810273c00b8Smrg   CC="$am_aux_dir/compile $CC"
38117a0395d0Smrgfi
3812273c00b8Smrgac_ext=c
3813273c00b8Smrgac_cpp='$CPP $CPPFLAGS'
3814273c00b8Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3815273c00b8Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3816273c00b8Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
38177a0395d0Smrg
38187a0395d0Smrg
3819273c00b8Smrg
3820273c00b8Smrgac_header= ac_cache=
3821273c00b8Smrgfor ac_item in $ac_header_c_list
38227a0395d0Smrgdo
3823273c00b8Smrg  if test $ac_cache; then
3824273c00b8Smrg    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3825273c00b8Smrg    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3826273c00b8Smrg      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3827273c00b8Smrg    fi
3828273c00b8Smrg    ac_header= ac_cache=
3829273c00b8Smrg  elif test $ac_header; then
3830273c00b8Smrg    ac_cache=$ac_item
3831273c00b8Smrg  else
3832273c00b8Smrg    ac_header=$ac_item
38337a0395d0Smrg  fi
38347a0395d0Smrgdone
38357a0395d0Smrg
38367a0395d0Smrg
38377a0395d0Smrg
38387a0395d0Smrg
38397a0395d0Smrg
3840273c00b8Smrg
3841273c00b8Smrg
3842273c00b8Smrg
3843273c00b8Smrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3844765b7306Smrgthen :
3845765b7306Smrg
3846273c00b8Smrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3847273c00b8Smrg
3848765b7306Smrgfi
3849765b7306Smrg
3850765b7306Smrg
3851273c00b8Smrg
3852273c00b8Smrg
3853273c00b8Smrg
3854273c00b8Smrg
3855273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3856273c00b8Smrgprintf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3857273c00b8Smrgif test ${ac_cv_safe_to_define___extensions__+y}
3858765b7306Smrgthen :
3859765b7306Smrg  printf %s "(cached) " >&6
3860273c00b8Smrgelse case e in #(
3861273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862273c00b8Smrg/* end confdefs.h.  */
3863765b7306Smrg
3864273c00b8Smrg#         define __EXTENSIONS__ 1
3865273c00b8Smrg          $ac_includes_default
3866273c00b8Smrgint
3867273c00b8Smrgmain (void)
3868273c00b8Smrg{
3869765b7306Smrg
3870273c00b8Smrg  ;
3871273c00b8Smrg  return 0;
3872273c00b8Smrg}
3873273c00b8Smrg_ACEOF
3874273c00b8Smrgif ac_fn_c_try_compile "$LINENO"
3875273c00b8Smrgthen :
3876273c00b8Smrg  ac_cv_safe_to_define___extensions__=yes
3877273c00b8Smrgelse case e in #(
3878273c00b8Smrg  e) ac_cv_safe_to_define___extensions__=no ;;
3879765b7306Smrgesac
3880765b7306Smrgfi
3881273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3882273c00b8Smrgesac
3883765b7306Smrgfi
3884273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3885273c00b8Smrgprintf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
38867a0395d0Smrg
3887273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3888273c00b8Smrgprintf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3889273c00b8Smrgif test ${ac_cv_should_define__xopen_source+y}
3890273c00b8Smrgthen :
3891273c00b8Smrg  printf %s "(cached) " >&6
3892273c00b8Smrgelse case e in #(
3893273c00b8Smrg  e) ac_cv_should_define__xopen_source=no
3894273c00b8Smrg    if test $ac_cv_header_wchar_h = yes
3895273c00b8Smrgthen :
3896273c00b8Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897273c00b8Smrg/* end confdefs.h.  */
3898765b7306Smrg
3899273c00b8Smrg          #include <wchar.h>
3900273c00b8Smrg          mbstate_t x;
3901273c00b8Smrgint
3902273c00b8Smrgmain (void)
3903273c00b8Smrg{
39047a0395d0Smrg
3905273c00b8Smrg  ;
3906273c00b8Smrg  return 0;
3907273c00b8Smrg}
3908273c00b8Smrg_ACEOF
3909273c00b8Smrgif ac_fn_c_try_compile "$LINENO"
3910273c00b8Smrgthen :
39117a0395d0Smrg
3912273c00b8Smrgelse case e in #(
3913273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39147a0395d0Smrg/* end confdefs.h.  */
39157a0395d0Smrg
3916273c00b8Smrg            #define _XOPEN_SOURCE 500
3917273c00b8Smrg            #include <wchar.h>
3918273c00b8Smrg            mbstate_t x;
39197a0395d0Smrgint
3920765b7306Smrgmain (void)
39217a0395d0Smrg{
39227a0395d0Smrg
39237a0395d0Smrg  ;
39247a0395d0Smrg  return 0;
39257a0395d0Smrg}
39267a0395d0Smrg_ACEOF
3927273c00b8Smrgif ac_fn_c_try_compile "$LINENO"
3928273c00b8Smrgthen :
3929273c00b8Smrg  ac_cv_should_define__xopen_source=yes
3930273c00b8Smrgfi
3931273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3932273c00b8Smrgesac
3933273c00b8Smrgfi
3934273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3935273c00b8Smrgfi ;;
3936273c00b8Smrgesac
3937273c00b8Smrgfi
3938273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3939273c00b8Smrgprintf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
39407366012aSmrg
3941273c00b8Smrg  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
39427366012aSmrg
3943273c00b8Smrg  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
39447a0395d0Smrg
3945273c00b8Smrg  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3946273c00b8Smrg
3947273c00b8Smrg  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3948273c00b8Smrg
3949273c00b8Smrg  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3950273c00b8Smrg
3951273c00b8Smrg  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3952273c00b8Smrg
3953273c00b8Smrg  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3954273c00b8Smrg
3955273c00b8Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3956273c00b8Smrg
3957273c00b8Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3958273c00b8Smrg
3959273c00b8Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3960273c00b8Smrg
3961273c00b8Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3962273c00b8Smrg
3963273c00b8Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3964273c00b8Smrg
3965273c00b8Smrg  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3966273c00b8Smrg
3967273c00b8Smrg  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3968273c00b8Smrg
3969273c00b8Smrg  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3970273c00b8Smrg
3971273c00b8Smrg  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3972273c00b8Smrg
3973273c00b8Smrg  if test $ac_cv_header_minix_config_h = yes
3974273c00b8Smrgthen :
3975273c00b8Smrg  MINIX=yes
3976273c00b8Smrg    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3977273c00b8Smrg
3978273c00b8Smrg    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3979273c00b8Smrg
3980273c00b8Smrg    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3981273c00b8Smrg
3982273c00b8Smrgelse case e in #(
3983273c00b8Smrg  e) MINIX= ;;
39847a0395d0Smrgesac
3985273c00b8Smrgfi
3986273c00b8Smrg  if test $ac_cv_safe_to_define___extensions__ = yes
3987765b7306Smrgthen :
3988273c00b8Smrg  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
39897a0395d0Smrg
39907a0395d0Smrgfi
3991273c00b8Smrg  if test $ac_cv_should_define__xopen_source = yes
3992765b7306Smrgthen :
3993273c00b8Smrg  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
39947a0395d0Smrg
3995765b7306Smrgfi
39967a0395d0Smrg
3997273c00b8Smrg
3998273c00b8Smrg# Initialize Automake
3999f6d57fdeSmrgam__api_version='1.17'
4000273c00b8Smrg
4001273c00b8Smrg
4002273c00b8Smrg  # Find a good install program.  We prefer a C program (faster),
4003273c00b8Smrg# so one script is as good as another.  But avoid the broken or
4004273c00b8Smrg# incompatible versions:
4005273c00b8Smrg# SysV /etc/install, /usr/sbin/install
4006273c00b8Smrg# SunOS /usr/etc/install
4007273c00b8Smrg# IRIX /sbin/install
4008273c00b8Smrg# AIX /bin/install
4009273c00b8Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
4010273c00b8Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4011273c00b8Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4012273c00b8Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4013273c00b8Smrg# OS/2's system install, which has a completely different semantic
4014273c00b8Smrg# ./install, which can be erroneously created by make from ./install.sh.
4015273c00b8Smrg# Reject install programs that cannot install multiple files.
4016273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4017273c00b8Smrgprintf %s "checking for a BSD-compatible install... " >&6; }
4018273c00b8Smrgif test -z "$INSTALL"; then
4019273c00b8Smrgif test ${ac_cv_path_install+y}
4020765b7306Smrgthen :
4021273c00b8Smrg  printf %s "(cached) " >&6
4022273c00b8Smrgelse case e in #(
4023273c00b8Smrg  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024273c00b8Smrgfor as_dir in $PATH
4025273c00b8Smrgdo
4026273c00b8Smrg  IFS=$as_save_IFS
4027273c00b8Smrg  case $as_dir in #(((
4028273c00b8Smrg    '') as_dir=./ ;;
4029273c00b8Smrg    */) ;;
4030273c00b8Smrg    *) as_dir=$as_dir/ ;;
40317a0395d0Smrg  esac
4032273c00b8Smrg    # Account for fact that we put trailing slashes in our PATH walk.
4033273c00b8Smrgcase $as_dir in #((
4034273c00b8Smrg  ./ | /[cC]/* | \
4035273c00b8Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4036273c00b8Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4037273c00b8Smrg  /usr/ucb/* ) ;;
4038273c00b8Smrg  *)
4039273c00b8Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
4040273c00b8Smrg    # Don't use installbsd from OSF since it installs stuff as root
4041273c00b8Smrg    # by default.
4042273c00b8Smrg    for ac_prog in ginstall scoinst install; do
4043273c00b8Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
4044273c00b8Smrg	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4045273c00b8Smrg	  if test $ac_prog = install &&
4046273c00b8Smrg	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4047273c00b8Smrg	    # AIX install.  It has an incompatible calling convention.
4048273c00b8Smrg	    :
4049273c00b8Smrg	  elif test $ac_prog = install &&
4050273c00b8Smrg	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4051273c00b8Smrg	    # program-specific install script used by HP pwplus--don't use.
4052273c00b8Smrg	    :
4053273c00b8Smrg	  else
4054273c00b8Smrg	    rm -rf conftest.one conftest.two conftest.dir
4055273c00b8Smrg	    echo one > conftest.one
4056273c00b8Smrg	    echo two > conftest.two
4057273c00b8Smrg	    mkdir conftest.dir
4058273c00b8Smrg	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4059273c00b8Smrg	      test -s conftest.one && test -s conftest.two &&
4060273c00b8Smrg	      test -s conftest.dir/conftest.one &&
4061273c00b8Smrg	      test -s conftest.dir/conftest.two
4062273c00b8Smrg	    then
4063273c00b8Smrg	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4064273c00b8Smrg	      break 3
4065273c00b8Smrg	    fi
4066273c00b8Smrg	  fi
4067273c00b8Smrg	fi
4068273c00b8Smrg      done
4069273c00b8Smrg    done
4070273c00b8Smrg    ;;
4071273c00b8Smrgesac
40727a0395d0Smrg
4073273c00b8Smrg  done
4074273c00b8SmrgIFS=$as_save_IFS
40752adc0320Smrg
4076273c00b8Smrgrm -rf conftest.one conftest.two conftest.dir
4077273c00b8Smrg ;;
40782adc0320Smrgesac
4079273c00b8Smrgfi
4080273c00b8Smrg  if test ${ac_cv_path_install+y}; then
4081273c00b8Smrg    INSTALL=$ac_cv_path_install
40822adc0320Smrg  else
4083273c00b8Smrg    # As a last resort, use the slow shell script.  Don't cache a
4084273c00b8Smrg    # value for INSTALL within a source directory, because that will
4085273c00b8Smrg    # break other packages using the cache if that directory is
4086273c00b8Smrg    # removed, or if the value is a relative name.
4087273c00b8Smrg    INSTALL=$ac_install_sh
40882adc0320Smrg  fi
40892adc0320Smrgfi
4090273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4091273c00b8Smrgprintf "%s\n" "$INSTALL" >&6; }
40922adc0320Smrg
4093273c00b8Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4094273c00b8Smrg# It thinks the first close brace ends the variable substitution.
4095273c00b8Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
40967a0395d0Smrg
4097273c00b8Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
40987a0395d0Smrg
4099273c00b8Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4100273c00b8Smrg
4101f6d57fdeSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4102f6d57fdeSmrgprintf %s "checking whether sleep supports fractional seconds... " >&6; }
4103f6d57fdeSmrgif test ${am_cv_sleep_fractional_seconds+y}
4104f6d57fdeSmrgthen :
4105f6d57fdeSmrg  printf %s "(cached) " >&6
4106f6d57fdeSmrgelse case e in #(
4107f6d57fdeSmrg  e) if sleep 0.001 2>/dev/null
4108f6d57fdeSmrgthen :
4109f6d57fdeSmrg  am_cv_sleep_fractional_seconds=yes
4110f6d57fdeSmrgelse case e in #(
4111f6d57fdeSmrg  e) am_cv_sleep_fractional_seconds=no ;;
4112f6d57fdeSmrgesac
4113f6d57fdeSmrgfi
4114f6d57fdeSmrg ;;
4115f6d57fdeSmrgesac
4116f6d57fdeSmrgfi
4117f6d57fdeSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4118f6d57fdeSmrgprintf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
4119f6d57fdeSmrg
4120f6d57fdeSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4121f6d57fdeSmrgprintf %s "checking filesystem timestamp resolution... " >&6; }
4122f6d57fdeSmrgif test ${am_cv_filesystem_timestamp_resolution+y}
4123f6d57fdeSmrgthen :
4124f6d57fdeSmrg  printf %s "(cached) " >&6
4125f6d57fdeSmrgelse case e in #(
4126f6d57fdeSmrg  e) # Default to the worst case.
4127f6d57fdeSmrgam_cv_filesystem_timestamp_resolution=2
4128f6d57fdeSmrg
4129f6d57fdeSmrg# Only try to go finer than 1 sec if sleep can do it.
4130f6d57fdeSmrg# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4131f6d57fdeSmrg# - 1 sec is not much of a win compared to 2 sec, and
4132f6d57fdeSmrg# - it takes 2 seconds to perform the test whether 1 sec works.
4133f6d57fdeSmrg#
4134f6d57fdeSmrg# Instead, just use the default 2s on platforms that have 1s resolution,
4135f6d57fdeSmrg# accept the extra 1s delay when using $sleep in the Automake tests, in
4136f6d57fdeSmrg# exchange for not incurring the 2s delay for running the test for all
4137f6d57fdeSmrg# packages.
4138f6d57fdeSmrg#
4139f6d57fdeSmrgam_try_resolutions=
4140f6d57fdeSmrgif test "$am_cv_sleep_fractional_seconds" = yes; then
4141f6d57fdeSmrg  # Even a millisecond often causes a bunch of false positives,
4142f6d57fdeSmrg  # so just try a hundredth of a second. The time saved between .001 and
4143f6d57fdeSmrg  # .01 is not terribly consequential.
4144f6d57fdeSmrg  am_try_resolutions="0.01 0.1 $am_try_resolutions"
4145f6d57fdeSmrgfi
4146f6d57fdeSmrg
4147f6d57fdeSmrg# In order to catch current-generation FAT out, we must *modify* files
4148f6d57fdeSmrg# that already exist; the *creation* timestamp is finer.  Use names
4149f6d57fdeSmrg# that make ls -t sort them differently when they have equal
4150f6d57fdeSmrg# timestamps than when they have distinct timestamps, keeping
4151f6d57fdeSmrg# in mind that ls -t prints the *newest* file first.
4152f6d57fdeSmrgrm -f conftest.ts?
4153f6d57fdeSmrg: > conftest.ts1
4154f6d57fdeSmrg: > conftest.ts2
4155f6d57fdeSmrg: > conftest.ts3
4156f6d57fdeSmrg
4157f6d57fdeSmrg# Make sure ls -t actually works.  Do 'set' in a subshell so we don't
4158f6d57fdeSmrg# clobber the current shell's arguments. (Outer-level square brackets
4159f6d57fdeSmrg# are removed by m4; they're present so that m4 does not expand
4160f6d57fdeSmrg# <dollar><star>; be careful, easy to get confused.)
4161f6d57fdeSmrgif (
4162f6d57fdeSmrg     set X `ls -t conftest.ts[12]` &&
4163f6d57fdeSmrg     {
4164f6d57fdeSmrg       test "$*" != "X conftest.ts1 conftest.ts2" ||
4165f6d57fdeSmrg       test "$*" != "X conftest.ts2 conftest.ts1";
4166f6d57fdeSmrg     }
4167f6d57fdeSmrg); then :; else
4168f6d57fdeSmrg  # If neither matched, then we have a broken ls.  This can happen
4169f6d57fdeSmrg  # if, for instance, CONFIG_SHELL is bash and it inherits a
4170f6d57fdeSmrg  # broken ls alias from the environment.  This has actually
4171f6d57fdeSmrg  # happened.  Such a system could not be considered "sane".
4172f6d57fdeSmrg  printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4173f6d57fdeSmrg  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4174f6d57fdeSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4175f6d57fdeSmrgas_fn_error $? "ls -t produces unexpected output.
4176f6d57fdeSmrgMake sure there is not a broken ls alias in your environment.
4177f6d57fdeSmrgSee 'config.log' for more details" "$LINENO" 5; }
4178f6d57fdeSmrgfi
4179f6d57fdeSmrg
4180f6d57fdeSmrgfor am_try_res in $am_try_resolutions; do
4181f6d57fdeSmrg  # Any one fine-grained sleep might happen to cross the boundary
4182f6d57fdeSmrg  # between two values of a coarser actual resolution, but if we do
4183f6d57fdeSmrg  # two fine-grained sleeps in a row, at least one of them will fall
4184f6d57fdeSmrg  # entirely within a coarse interval.
4185f6d57fdeSmrg  echo alpha > conftest.ts1
4186f6d57fdeSmrg  sleep $am_try_res
4187f6d57fdeSmrg  echo beta > conftest.ts2
4188f6d57fdeSmrg  sleep $am_try_res
4189f6d57fdeSmrg  echo gamma > conftest.ts3
4190f6d57fdeSmrg
4191f6d57fdeSmrg  # We assume that 'ls -t' will make use of high-resolution
4192f6d57fdeSmrg  # timestamps if the operating system supports them at all.
4193f6d57fdeSmrg  if (set X `ls -t conftest.ts?` &&
4194f6d57fdeSmrg      test "$2" = conftest.ts3 &&
4195f6d57fdeSmrg      test "$3" = conftest.ts2 &&
4196f6d57fdeSmrg      test "$4" = conftest.ts1); then
4197f6d57fdeSmrg    #
4198f6d57fdeSmrg    # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4199f6d57fdeSmrg    # because we don't need to test make.
4200f6d57fdeSmrg    make_ok=true
4201f6d57fdeSmrg    if test $am_try_res != 1; then
4202f6d57fdeSmrg      # But if we've succeeded so far with a subsecond resolution, we
4203f6d57fdeSmrg      # have one more thing to check: make. It can happen that
4204f6d57fdeSmrg      # everything else supports the subsecond mtimes, but make doesn't;
4205f6d57fdeSmrg      # notably on macOS, which ships make 3.81 from 2006 (the last one
4206f6d57fdeSmrg      # released under GPLv2). https://bugs.gnu.org/68808
4207f6d57fdeSmrg      #
4208f6d57fdeSmrg      # We test $MAKE if it is defined in the environment, else "make".
4209f6d57fdeSmrg      # It might get overridden later, but our hope is that in practice
4210f6d57fdeSmrg      # it does not matter: it is the system "make" which is (by far)
4211f6d57fdeSmrg      # the most likely to be broken, whereas if the user overrides it,
4212f6d57fdeSmrg      # probably they did so with a better, or at least not worse, make.
4213f6d57fdeSmrg      # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4214f6d57fdeSmrg      #
4215f6d57fdeSmrg      # Create a Makefile (real tab character here):
4216f6d57fdeSmrg      rm -f conftest.mk
4217f6d57fdeSmrg      echo 'conftest.ts1: conftest.ts2' >conftest.mk
4218f6d57fdeSmrg      echo '	touch conftest.ts2' >>conftest.mk
4219f6d57fdeSmrg      #
4220f6d57fdeSmrg      # Now, running
4221f6d57fdeSmrg      #   touch conftest.ts1; touch conftest.ts2; make
4222f6d57fdeSmrg      # should touch ts1 because ts2 is newer. This could happen by luck,
4223f6d57fdeSmrg      # but most often, it will fail if make's support is insufficient. So
4224f6d57fdeSmrg      # test for several consecutive successes.
4225f6d57fdeSmrg      #
4226f6d57fdeSmrg      # (We reuse conftest.ts[12] because we still want to modify existing
4227f6d57fdeSmrg      # files, not create new ones, per above.)
4228f6d57fdeSmrg      n=0
4229f6d57fdeSmrg      make=${MAKE-make}
4230f6d57fdeSmrg      until test $n -eq 3; do
4231f6d57fdeSmrg        echo one > conftest.ts1
4232f6d57fdeSmrg        sleep $am_try_res
4233f6d57fdeSmrg        echo two > conftest.ts2 # ts2 should now be newer than ts1
4234f6d57fdeSmrg        if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4235f6d57fdeSmrg          make_ok=false
4236f6d57fdeSmrg          break # out of $n loop
4237f6d57fdeSmrg        fi
4238f6d57fdeSmrg        n=`expr $n + 1`
4239f6d57fdeSmrg      done
4240f6d57fdeSmrg    fi
4241f6d57fdeSmrg    #
4242f6d57fdeSmrg    if $make_ok; then
4243f6d57fdeSmrg      # Everything we know to check worked out, so call this resolution good.
4244f6d57fdeSmrg      am_cv_filesystem_timestamp_resolution=$am_try_res
4245f6d57fdeSmrg      break # out of $am_try_res loop
4246f6d57fdeSmrg    fi
4247f6d57fdeSmrg    # Otherwise, we'll go on to check the next resolution.
4248f6d57fdeSmrg  fi
4249f6d57fdeSmrgdone
4250f6d57fdeSmrgrm -f conftest.ts?
4251f6d57fdeSmrg# (end _am_filesystem_timestamp_resolution)
4252f6d57fdeSmrg ;;
4253f6d57fdeSmrgesac
4254f6d57fdeSmrgfi
4255f6d57fdeSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4256f6d57fdeSmrgprintf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4257f6d57fdeSmrg
4258f6d57fdeSmrg# This check should not be cached, as it may vary across builds of
4259f6d57fdeSmrg# different projects.
4260273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4261273c00b8Smrgprintf %s "checking whether build environment is sane... " >&6; }
4262273c00b8Smrg# Reject unsafe characters in $srcdir or the absolute working directory
4263273c00b8Smrg# name.  Accept space and tab only in the latter.
4264273c00b8Smrgam_lf='
4265273c00b8Smrg'
4266273c00b8Smrgcase `pwd` in
4267273c00b8Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
4268273c00b8Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
42697a0395d0Smrgesac
4270273c00b8Smrgcase $srcdir in
4271273c00b8Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4272273c00b8Smrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4273273c00b8Smrgesac
4274273c00b8Smrg
4275273c00b8Smrg# Do 'set' in a subshell so we don't clobber the current shell's
4276273c00b8Smrg# arguments.  Must try -L first in case configure is actually a
4277273c00b8Smrg# symlink; some systems play weird games with the mod time of symlinks
4278273c00b8Smrg# (eg FreeBSD returns the mod time of the symlink's containing
4279273c00b8Smrg# directory).
4280f6d57fdeSmrgam_build_env_is_sane=no
4281f6d57fdeSmrgam_has_slept=no
4282f6d57fdeSmrgrm -f conftest.file
4283f6d57fdeSmrgfor am_try in 1 2; do
4284f6d57fdeSmrg  echo "timestamp, slept: $am_has_slept" > conftest.file
4285f6d57fdeSmrg  if (
4286f6d57fdeSmrg    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4287f6d57fdeSmrg    if test "$*" = "X"; then
4288f6d57fdeSmrg      # -L didn't work.
4289f6d57fdeSmrg      set X `ls -t "$srcdir/configure" conftest.file`
4290f6d57fdeSmrg    fi
4291f6d57fdeSmrg    test "$2" = conftest.file
4292f6d57fdeSmrg  ); then
4293f6d57fdeSmrg    am_build_env_is_sane=yes
4294f6d57fdeSmrg    break
4295f6d57fdeSmrg  fi
4296f6d57fdeSmrg  # Just in case.
4297f6d57fdeSmrg  sleep "$am_cv_filesystem_timestamp_resolution"
4298f6d57fdeSmrg  am_has_slept=yes
4299f6d57fdeSmrgdone
4300f6d57fdeSmrg
4301f6d57fdeSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4302f6d57fdeSmrgprintf "%s\n" "$am_build_env_is_sane" >&6; }
4303f6d57fdeSmrgif test "$am_build_env_is_sane" = no; then
4304f6d57fdeSmrg  as_fn_error $? "newly created file is older than distributed files!
4305273c00b8SmrgCheck your system clock" "$LINENO" 5
4306273c00b8Smrgfi
4307f6d57fdeSmrg
4308273c00b8Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and
4309273c00b8Smrg# generated files are strictly newer.
4310273c00b8Smrgam_sleep_pid=
4311f6d57fdeSmrgif test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4312f6d57fdeSmrgthen :
4313f6d57fdeSmrg
4314f6d57fdeSmrgelse case e in #(
4315f6d57fdeSmrg  e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4316273c00b8Smrg  am_sleep_pid=$!
4317f6d57fdeSmrg ;;
4318f6d57fdeSmrgesac
4319273c00b8Smrgfi
4320273c00b8Smrg
4321273c00b8Smrgrm -f conftest.file
4322273c00b8Smrg
4323273c00b8Smrgtest "$program_prefix" != NONE &&
4324273c00b8Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4325273c00b8Smrg# Use a double $ so make ignores it.
4326273c00b8Smrgtest "$program_suffix" != NONE &&
4327273c00b8Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4328273c00b8Smrg# Double any \ or $.
4329273c00b8Smrg# By default was 's,x,x', remove it if useless.
4330273c00b8Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4331273c00b8Smrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
43327a0395d0Smrg
4333273c00b8Smrg
4334273c00b8Smrg  if test x"${MISSING+set}" != xset; then
4335273c00b8Smrg  MISSING="\${SHELL} '$am_aux_dir/missing'"
43367a0395d0Smrgfi
4337273c00b8Smrg# Use eval to expand $SHELL
4338273c00b8Smrgif eval "$MISSING --is-lightweight"; then
4339273c00b8Smrg  am_missing_run="$MISSING "
4340273c00b8Smrgelse
4341273c00b8Smrg  am_missing_run=
4342273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4343273c00b8Smrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
43447a0395d0Smrgfi
43457a0395d0Smrg
4346273c00b8Smrgif test x"${install_sh+set}" != xset; then
4347273c00b8Smrg  case $am_aux_dir in
4348273c00b8Smrg  *\ * | *\	*)
4349273c00b8Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4350273c00b8Smrg  *)
4351273c00b8Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
4352273c00b8Smrg  esac
4353273c00b8Smrgfi
43547a0395d0Smrg
4355273c00b8Smrg# Installed binaries are usually stripped using 'strip' when the user
4356273c00b8Smrg# run "make install-strip".  However 'strip' might not be the right
4357273c00b8Smrg# tool to use in cross-compilation environments, therefore Automake
4358273c00b8Smrg# will honor the 'STRIP' environment variable to overrule this program.
4359273c00b8Smrgif test "$cross_compiling" != no; then
4360273c00b8Smrg  if test -n "$ac_tool_prefix"; then
4361273c00b8Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4362273c00b8Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
4363273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364273c00b8Smrgprintf %s "checking for $ac_word... " >&6; }
4365273c00b8Smrgif test ${ac_cv_prog_STRIP+y}
4366765b7306Smrgthen :
4367273c00b8Smrg  printf %s "(cached) " >&6
4368273c00b8Smrgelse case e in #(
4369273c00b8Smrg  e) if test -n "$STRIP"; then
4370273c00b8Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4371273c00b8Smrgelse
4372273c00b8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373273c00b8Smrgfor as_dir in $PATH
4374273c00b8Smrgdo
4375273c00b8Smrg  IFS=$as_save_IFS
4376273c00b8Smrg  case $as_dir in #(((
4377273c00b8Smrg    '') as_dir=./ ;;
4378273c00b8Smrg    */) ;;
4379273c00b8Smrg    *) as_dir=$as_dir/ ;;
4380273c00b8Smrg  esac
4381273c00b8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4382273c00b8Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4383273c00b8Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4384273c00b8Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4385273c00b8Smrg    break 2
4386273c00b8Smrg  fi
4387273c00b8Smrgdone
4388273c00b8Smrg  done
4389273c00b8SmrgIFS=$as_save_IFS
43907a0395d0Smrg
4391273c00b8Smrgfi ;;
4392273c00b8Smrgesac
43937a0395d0Smrgfi
4394273c00b8SmrgSTRIP=$ac_cv_prog_STRIP
4395273c00b8Smrgif test -n "$STRIP"; then
4396273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4397273c00b8Smrgprintf "%s\n" "$STRIP" >&6; }
43987366012aSmrgelse
4399273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400273c00b8Smrgprintf "%s\n" "no" >&6; }
44017366012aSmrgfi
44027a0395d0Smrg
44037a0395d0Smrg
4404273c00b8Smrgfi
4405273c00b8Smrgif test -z "$ac_cv_prog_STRIP"; then
4406273c00b8Smrg  ac_ct_STRIP=$STRIP
4407273c00b8Smrg  # Extract the first word of "strip", so it can be a program name with args.
4408273c00b8Smrgset dummy strip; ac_word=$2
4409273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4410273c00b8Smrgprintf %s "checking for $ac_word... " >&6; }
4411273c00b8Smrgif test ${ac_cv_prog_ac_ct_STRIP+y}
4412765b7306Smrgthen :
4413273c00b8Smrg  printf %s "(cached) " >&6
4414273c00b8Smrgelse case e in #(
4415273c00b8Smrg  e) if test -n "$ac_ct_STRIP"; then
4416273c00b8Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4417273c00b8Smrgelse
4418273c00b8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419273c00b8Smrgfor as_dir in $PATH
4420273c00b8Smrgdo
4421273c00b8Smrg  IFS=$as_save_IFS
4422273c00b8Smrg  case $as_dir in #(((
4423273c00b8Smrg    '') as_dir=./ ;;
4424273c00b8Smrg    */) ;;
4425273c00b8Smrg    *) as_dir=$as_dir/ ;;
4426273c00b8Smrg  esac
4427273c00b8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4428273c00b8Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4429273c00b8Smrg    ac_cv_prog_ac_ct_STRIP="strip"
4430273c00b8Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4431273c00b8Smrg    break 2
4432273c00b8Smrg  fi
4433273c00b8Smrgdone
4434273c00b8Smrg  done
4435273c00b8SmrgIFS=$as_save_IFS
44367a0395d0Smrg
4437273c00b8Smrgfi ;;
4438273c00b8Smrgesac
44397a0395d0Smrgfi
4440273c00b8Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4441273c00b8Smrgif test -n "$ac_ct_STRIP"; then
4442273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4443273c00b8Smrgprintf "%s\n" "$ac_ct_STRIP" >&6; }
4444273c00b8Smrgelse
4445273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446273c00b8Smrgprintf "%s\n" "no" >&6; }
44477a0395d0Smrgfi
4448273c00b8Smrg
4449273c00b8Smrg  if test "x$ac_ct_STRIP" = x; then
4450273c00b8Smrg    STRIP=":"
44517a0395d0Smrg  else
4452273c00b8Smrg    case $cross_compiling:$ac_tool_warned in
4453273c00b8Smrgyes:)
4454273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4455273c00b8Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4456273c00b8Smrgac_tool_warned=yes ;;
4457273c00b8Smrgesac
4458273c00b8Smrg    STRIP=$ac_ct_STRIP
44597a0395d0Smrg  fi
44607a0395d0Smrgelse
4461273c00b8Smrg  STRIP="$ac_cv_prog_STRIP"
44627a0395d0Smrgfi
4463273c00b8Smrg
4464273c00b8Smrgfi
4465273c00b8SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4466273c00b8Smrg
4467273c00b8Smrg
4468273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4469273c00b8Smrgprintf %s "checking for a race-free mkdir -p... " >&6; }
4470273c00b8Smrgif test -z "$MKDIR_P"; then
4471273c00b8Smrg  if test ${ac_cv_path_mkdir+y}
4472765b7306Smrgthen :
4473273c00b8Smrg  printf %s "(cached) " >&6
4474273c00b8Smrgelse case e in #(
4475273c00b8Smrg  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476273c00b8Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4477273c00b8Smrgdo
4478273c00b8Smrg  IFS=$as_save_IFS
4479273c00b8Smrg  case $as_dir in #(((
4480273c00b8Smrg    '') as_dir=./ ;;
4481273c00b8Smrg    */) ;;
4482273c00b8Smrg    *) as_dir=$as_dir/ ;;
4483273c00b8Smrg  esac
4484273c00b8Smrg    for ac_prog in mkdir gmkdir; do
4485273c00b8Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
4486273c00b8Smrg	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4487273c00b8Smrg	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4488273c00b8Smrg	     'mkdir ('*'coreutils) '* | \
4489273c00b8Smrg	     *'BusyBox '* | \
4490273c00b8Smrg	     'mkdir (fileutils) '4.1*)
4491273c00b8Smrg	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4492273c00b8Smrg	       break 3;;
4493273c00b8Smrg	   esac
4494273c00b8Smrg	 done
4495273c00b8Smrg       done
4496273c00b8Smrg  done
4497273c00b8SmrgIFS=$as_save_IFS
4498273c00b8Smrg ;;
4499273c00b8Smrgesac
4500273c00b8Smrgfi
4501273c00b8Smrg
4502273c00b8Smrg  test -d ./--version && rmdir ./--version
4503273c00b8Smrg  if test ${ac_cv_path_mkdir+y}; then
4504273c00b8Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
4505273c00b8Smrg  else
4506273c00b8Smrg    # As a last resort, use plain mkdir -p,
4507273c00b8Smrg    # in the hope it doesn't have the bugs of ancient mkdir.
4508273c00b8Smrg    MKDIR_P='mkdir -p'
4509273c00b8Smrg  fi
4510273c00b8Smrgfi
4511273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4512273c00b8Smrgprintf "%s\n" "$MKDIR_P" >&6; }
4513273c00b8Smrg
4514273c00b8Smrgfor ac_prog in gawk mawk nawk awk
4515273c00b8Smrgdo
4516273c00b8Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
4517273c00b8Smrgset dummy $ac_prog; ac_word=$2
4518273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4519273c00b8Smrgprintf %s "checking for $ac_word... " >&6; }
4520273c00b8Smrgif test ${ac_cv_prog_AWK+y}
4521765b7306Smrgthen :
4522765b7306Smrg  printf %s "(cached) " >&6
4523273c00b8Smrgelse case e in #(
4524273c00b8Smrg  e) if test -n "$AWK"; then
4525273c00b8Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4526273c00b8Smrgelse
4527273c00b8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528273c00b8Smrgfor as_dir in $PATH
4529765b7306Smrgdo
4530273c00b8Smrg  IFS=$as_save_IFS
4531273c00b8Smrg  case $as_dir in #(((
4532273c00b8Smrg    '') as_dir=./ ;;
4533273c00b8Smrg    */) ;;
4534273c00b8Smrg    *) as_dir=$as_dir/ ;;
4535273c00b8Smrg  esac
4536273c00b8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4537273c00b8Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4538273c00b8Smrg    ac_cv_prog_AWK="$ac_prog"
4539273c00b8Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4540273c00b8Smrg    break 2
4541273c00b8Smrg  fi
4542765b7306Smrgdone
4543273c00b8Smrg  done
4544273c00b8SmrgIFS=$as_save_IFS
45457a0395d0Smrg
4546273c00b8Smrgfi ;;
4547273c00b8Smrgesac
4548765b7306Smrgfi
4549273c00b8SmrgAWK=$ac_cv_prog_AWK
4550273c00b8Smrgif test -n "$AWK"; then
4551273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4552273c00b8Smrgprintf "%s\n" "$AWK" >&6; }
4553273c00b8Smrgelse
4554273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555273c00b8Smrgprintf "%s\n" "no" >&6; }
4556765b7306Smrgfi
4557273c00b8Smrg
4558273c00b8Smrg
4559273c00b8Smrg  test -n "$AWK" && break
4560273c00b8Smrgdone
4561273c00b8Smrg
4562273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4563273c00b8Smrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4564273c00b8Smrgset x ${MAKE-make}
4565273c00b8Smrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4566273c00b8Smrgif eval test \${ac_cv_prog_make_${ac_make}_set+y}
4567765b7306Smrgthen :
4568765b7306Smrg  printf %s "(cached) " >&6
4569273c00b8Smrgelse case e in #(
4570273c00b8Smrg  e) cat >conftest.make <<\_ACEOF
4571273c00b8SmrgSHELL = /bin/sh
4572273c00b8Smrgall:
4573273c00b8Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
4574765b7306Smrg_ACEOF
4575273c00b8Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4576273c00b8Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
4577273c00b8Smrg  *@@@%%%=?*=@@@%%%*)
4578273c00b8Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
4579273c00b8Smrg  *)
4580273c00b8Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
4581273c00b8Smrgesac
4582273c00b8Smrgrm -f conftest.make ;;
4583273c00b8Smrgesac
4584765b7306Smrgfi
4585273c00b8Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4586273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4587273c00b8Smrgprintf "%s\n" "yes" >&6; }
4588273c00b8Smrg  SET_MAKE=
4589273c00b8Smrgelse
4590273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591273c00b8Smrgprintf "%s\n" "no" >&6; }
4592273c00b8Smrg  SET_MAKE="MAKE=${MAKE-make}"
4593765b7306Smrgfi
45947a0395d0Smrg
4595273c00b8Smrgrm -rf .tst 2>/dev/null
4596273c00b8Smrgmkdir .tst 2>/dev/null
4597273c00b8Smrgif test -d .tst; then
4598273c00b8Smrg  am__leading_dot=.
4599273c00b8Smrgelse
4600273c00b8Smrg  am__leading_dot=_
4601273c00b8Smrgfi
4602273c00b8Smrgrmdir .tst 2>/dev/null
4603273c00b8Smrg
4604273c00b8SmrgDEPDIR="${am__leading_dot}deps"
4605273c00b8Smrg
4606273c00b8Smrgac_config_commands="$ac_config_commands depfiles"
4607273c00b8Smrg
4608273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4609273c00b8Smrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4610273c00b8Smrgcat > confinc.mk << 'END'
4611273c00b8Smrgam__doit:
4612273c00b8Smrg	@echo this is the am__doit target >confinc.out
4613273c00b8Smrg.PHONY: am__doit
4614273c00b8SmrgEND
4615273c00b8Smrgam__include="#"
4616273c00b8Smrgam__quote=
4617273c00b8Smrg# BSD make does it like this.
4618273c00b8Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD
4619273c00b8Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4620273c00b8Smrgecho 'include confinc.mk # ignored' > confmf.GNU
4621273c00b8Smrg_am_result=no
4622273c00b8Smrgfor s in GNU BSD; do
4623273c00b8Smrg  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4624273c00b8Smrg   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4625273c00b8Smrg   ac_status=$?
4626273c00b8Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627273c00b8Smrg   (exit $ac_status); }
4628273c00b8Smrg  case $?:`cat confinc.out 2>/dev/null` in #(
4629273c00b8Smrg  '0:this is the am__doit target') :
4630273c00b8Smrg    case $s in #(
4631273c00b8Smrg  BSD) :
4632273c00b8Smrg    am__include='.include' am__quote='"' ;; #(
4633273c00b8Smrg  *) :
4634273c00b8Smrg    am__include='include' am__quote='' ;;
4635273c00b8Smrgesac ;; #(
4636273c00b8Smrg  *) :
4637273c00b8Smrg     ;;
4638273c00b8Smrgesac
4639273c00b8Smrg  if test "$am__include" != "#"; then
4640273c00b8Smrg    _am_result="yes ($s style)"
4641273c00b8Smrg    break
4642273c00b8Smrg  fi
4643273c00b8Smrgdone
4644273c00b8Smrgrm -f confinc.* confmf.*
4645273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4646273c00b8Smrgprintf "%s\n" "${_am_result}" >&6; }
4647273c00b8Smrg
4648273c00b8Smrg# Check whether --enable-dependency-tracking was given.
4649273c00b8Smrgif test ${enable_dependency_tracking+y}
4650765b7306Smrgthen :
4651273c00b8Smrg  enableval=$enable_dependency_tracking;
4652765b7306Smrgfi
4653273c00b8Smrg
4654273c00b8Smrgif test "x$enable_dependency_tracking" != xno; then
4655273c00b8Smrg  am_depcomp="$ac_aux_dir/depcomp"
4656273c00b8Smrg  AMDEPBACKSLASH='\'
4657273c00b8Smrg  am__nodep='_no'
4658765b7306Smrgfi
4659273c00b8Smrg if test "x$enable_dependency_tracking" != xno; then
4660273c00b8Smrg  AMDEP_TRUE=
4661273c00b8Smrg  AMDEP_FALSE='#'
4662273c00b8Smrgelse
4663273c00b8Smrg  AMDEP_TRUE='#'
4664273c00b8Smrg  AMDEP_FALSE=
4665765b7306Smrgfi
4666273c00b8Smrg
4667273c00b8Smrg
4668f6d57fdeSmrgAM_DEFAULT_VERBOSITY=1
4669273c00b8Smrg# Check whether --enable-silent-rules was given.
4670273c00b8Smrgif test ${enable_silent_rules+y}
4671765b7306Smrgthen :
4672273c00b8Smrg  enableval=$enable_silent_rules;
4673273c00b8Smrgfi
4674273c00b8Smrg
4675273c00b8Smrgam_make=${MAKE-make}
4676273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4677273c00b8Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
4678273c00b8Smrgif test ${am_cv_make_support_nested_variables+y}
4679765b7306Smrgthen :
4680765b7306Smrg  printf %s "(cached) " >&6
4681273c00b8Smrgelse case e in #(
4682273c00b8Smrg  e) if printf "%s\n" 'TRUE=$(BAR$(V))
4683273c00b8SmrgBAR0=false
4684273c00b8SmrgBAR1=true
4685273c00b8SmrgV=1
4686273c00b8Smrgam__doit:
4687273c00b8Smrg	@$(TRUE)
4688273c00b8Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4689273c00b8Smrg  am_cv_make_support_nested_variables=yes
4690273c00b8Smrgelse
4691273c00b8Smrg  am_cv_make_support_nested_variables=no
4692273c00b8Smrgfi ;;
4693273c00b8Smrgesac
46947a0395d0Smrgfi
4695273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4696273c00b8Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4697273c00b8SmrgAM_BACKSLASH='\'
46987a0395d0Smrg
4699f6d57fdeSmrgam__rm_f_notfound=
4700f6d57fdeSmrgif (rm -f && rm -fr && rm -rf) 2>/dev/null
4701f6d57fdeSmrgthen :
4702f6d57fdeSmrg
4703f6d57fdeSmrgelse case e in #(
4704f6d57fdeSmrg  e) am__rm_f_notfound='""' ;;
4705f6d57fdeSmrgesac
4706f6d57fdeSmrgfi
4707f6d57fdeSmrg
4708f6d57fdeSmrg
4709f6d57fdeSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4710f6d57fdeSmrgprintf %s "checking xargs -n works... " >&6; }
4711f6d57fdeSmrgif test ${am_cv_xargs_n_works+y}
4712f6d57fdeSmrgthen :
4713f6d57fdeSmrg  printf %s "(cached) " >&6
4714f6d57fdeSmrgelse case e in #(
4715f6d57fdeSmrg  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4716f6d57fdeSmrg3"
4717f6d57fdeSmrgthen :
4718f6d57fdeSmrg  am_cv_xargs_n_works=yes
4719f6d57fdeSmrgelse case e in #(
4720f6d57fdeSmrg  e) am_cv_xargs_n_works=no ;;
4721f6d57fdeSmrgesac
4722f6d57fdeSmrgfi ;;
4723f6d57fdeSmrgesac
4724f6d57fdeSmrgfi
4725f6d57fdeSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4726f6d57fdeSmrgprintf "%s\n" "$am_cv_xargs_n_works" >&6; }
4727f6d57fdeSmrgif test "$am_cv_xargs_n_works" = yes
4728f6d57fdeSmrgthen :
4729f6d57fdeSmrg  am__xargs_n='xargs -n'
4730f6d57fdeSmrgelse case e in #(
4731f6d57fdeSmrg  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4732f6d57fdeSmrg ;;
4733f6d57fdeSmrgesac
4734f6d57fdeSmrgfi
4735f6d57fdeSmrg
4736273c00b8Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
4737273c00b8Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4738273c00b8Smrg  # is not polluted with repeated "-I."
4739273c00b8Smrg  am__isrc=' -I$(srcdir)'
4740273c00b8Smrg  # test to see if srcdir already configured
4741273c00b8Smrg  if test -f $srcdir/config.status; then
4742273c00b8Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4743273c00b8Smrg  fi
4744765b7306Smrgfi
4745273c00b8Smrg
4746273c00b8Smrg# test whether we have cygpath
4747273c00b8Smrgif test -z "$CYGPATH_W"; then
4748273c00b8Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
4749273c00b8Smrg    CYGPATH_W='cygpath -w'
4750273c00b8Smrg  else
4751273c00b8Smrg    CYGPATH_W=echo
4752273c00b8Smrg  fi
47532adc0320Smrgfi
47547a0395d0Smrg
47557a0395d0Smrg
4756273c00b8Smrg# Define the identity of the package.
4757273c00b8Smrg PACKAGE='xauth'
4758f6d57fdeSmrg VERSION='1.1.4'
4759273c00b8Smrg
4760273c00b8Smrg
4761273c00b8Smrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4762273c00b8Smrg
4763273c00b8Smrg
4764273c00b8Smrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4765273c00b8Smrg
4766273c00b8Smrg# Some tools Automake needs.
4767273c00b8Smrg
4768273c00b8SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4769273c00b8Smrg
4770273c00b8Smrg
4771273c00b8SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4772273c00b8Smrg
4773273c00b8Smrg
4774273c00b8SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4775273c00b8Smrg
4776273c00b8Smrg
4777273c00b8SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4778273c00b8Smrg
4779273c00b8Smrg
4780273c00b8SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4781273c00b8Smrg
4782273c00b8Smrg# For better backward compatibility.  To be removed once Automake 1.9.x
4783273c00b8Smrg# dies out for good.  For more background, see:
4784273c00b8Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4785273c00b8Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4786273c00b8Smrgmkdir_p='$(MKDIR_P)'
4787273c00b8Smrg
4788273c00b8Smrg# We need awk for the "check" target (and possibly the TAP driver).  The
4789273c00b8Smrg# system "awk" is bad on some platforms.
4790273c00b8Smrg# Always define AMTAR for backward compatibility.  Yes, it's still used
4791273c00b8Smrg# in the wild :-(  We should find a proper way to deprecate it ...
4792273c00b8SmrgAMTAR='$${TAR-tar}'
4793273c00b8Smrg
4794273c00b8Smrg
4795273c00b8Smrg# We'll loop over all known methods to create a tar archive until one works.
4796273c00b8Smrg_am_tools='gnutar  pax cpio none'
4797273c00b8Smrg
4798273c00b8Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4799765b7306Smrg
480040c5344fSmrg
480140c5344fSmrg
480240c5344fSmrg
480340c5344fSmrg
48047a0395d0Smrgdepcc="$CC"   am_compiler_list=
48057a0395d0Smrg
4806765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4807765b7306Smrgprintf %s "checking dependency style of $depcc... " >&6; }
4808765b7306Smrgif test ${am_cv_CC_dependencies_compiler_type+y}
4809765b7306Smrgthen :
4810765b7306Smrg  printf %s "(cached) " >&6
4811273c00b8Smrgelse case e in #(
4812273c00b8Smrg  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
48137a0395d0Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
48147a0395d0Smrg  # making bogus files that we don't know about and never remove.  For
48157a0395d0Smrg  # instance it was reported that on HP-UX the gcc test will end up
48168abc0ccfSmrg  # making a dummy file named 'D' -- because '-MD' means "put the output
48178abc0ccfSmrg  # in D".
48188abc0ccfSmrg  rm -rf conftest.dir
48197a0395d0Smrg  mkdir conftest.dir
48207a0395d0Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
48217a0395d0Smrg  # using a relative directory.
48227a0395d0Smrg  cp "$am_depcomp" conftest.dir
48237a0395d0Smrg  cd conftest.dir
48247a0395d0Smrg  # We will build objects and dependencies in a subdirectory because
48257a0395d0Smrg  # it helps to detect inapplicable dependency modes.  For instance
48267a0395d0Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
48277a0395d0Smrg  # side effect of compilation, but ICC will put the dependencies in
48287a0395d0Smrg  # the current directory while Tru64 will put them in the object
48297a0395d0Smrg  # directory.
48307a0395d0Smrg  mkdir sub
48317a0395d0Smrg
48327a0395d0Smrg  am_cv_CC_dependencies_compiler_type=none
48337a0395d0Smrg  if test "$am_compiler_list" = ""; then
48347a0395d0Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
48357a0395d0Smrg  fi
48367366012aSmrg  am__universal=false
48377366012aSmrg  case " $depcc " in #(
48387366012aSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
48397366012aSmrg     esac
48407366012aSmrg
48417a0395d0Smrg  for depmode in $am_compiler_list; do
48427a0395d0Smrg    # Setup a source with many dependencies, because some compilers
48437a0395d0Smrg    # like to wrap large dependency lists on column 80 (with \), and
48447a0395d0Smrg    # we should not choose a depcomp mode which is confused by this.
48457a0395d0Smrg    #
48467a0395d0Smrg    # We need to recreate these files for each test, as the compiler may
48477a0395d0Smrg    # overwrite some of them when testing with obscure command lines.
48487a0395d0Smrg    # This happens at least with the AIX C compiler.
48497a0395d0Smrg    : > sub/conftest.c
48507a0395d0Smrg    for i in 1 2 3 4 5 6; do
48517a0395d0Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
48528abc0ccfSmrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
48538abc0ccfSmrg      # Solaris 10 /bin/sh.
48548abc0ccfSmrg      echo '/* dummy */' > sub/conftst$i.h
48557a0395d0Smrg    done
48567a0395d0Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
48577a0395d0Smrg
48588abc0ccfSmrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
48592adc0320Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
48608abc0ccfSmrg    # handle '-M -o', and we need to detect this.  Also, some Intel
48618abc0ccfSmrg    # versions had trouble with output in subdirs.
48622adc0320Smrg    am__obj=sub/conftest.${OBJEXT-o}
48632adc0320Smrg    am__minus_obj="-o $am__obj"
48642adc0320Smrg    case $depmode in
48652adc0320Smrg    gcc)
48662adc0320Smrg      # This depmode causes a compiler race in universal mode.
48672adc0320Smrg      test "$am__universal" = false || continue
48682adc0320Smrg      ;;
48692adc0320Smrg    nosideeffect)
48708abc0ccfSmrg      # After this tag, mechanisms are not by side-effect, so they'll
48718abc0ccfSmrg      # only be used when explicitly requested.
48722adc0320Smrg      if test "x$enable_dependency_tracking" = xyes; then
48732adc0320Smrg	continue
48742adc0320Smrg      else
48752adc0320Smrg	break
48762adc0320Smrg      fi
48772adc0320Smrg      ;;
48788abc0ccfSmrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
48798abc0ccfSmrg      # This compiler won't grok '-c -o', but also, the minuso test has
48802adc0320Smrg      # not run yet.  These depmodes are late enough in the game, and
48812adc0320Smrg      # so weak that their functioning should not be impacted.
48822adc0320Smrg      am__obj=conftest.${OBJEXT-o}
48832adc0320Smrg      am__minus_obj=
48842adc0320Smrg      ;;
48852adc0320Smrg    none) break ;;
48862adc0320Smrg    esac
48872adc0320Smrg    if depmode=$depmode \
48882adc0320Smrg       source=sub/conftest.c object=$am__obj \
48892adc0320Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
48902adc0320Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
48912adc0320Smrg         >/dev/null 2>conftest.err &&
48922adc0320Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
48932adc0320Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
48942adc0320Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
48952adc0320Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
48962adc0320Smrg      # icc doesn't choke on unknown options, it will just issue warnings
48972adc0320Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
48982adc0320Smrg      # that says an option was ignored or not supported.
4899f6d57fdeSmrg      # When given -MP, icc 7.0 and 7.1 complain thus:
49002adc0320Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
49012adc0320Smrg      # The diagnosis changed in icc 8.0:
49022adc0320Smrg      #   icc: Command line remark: option '-MP' not supported
49032adc0320Smrg      if (grep 'ignoring option' conftest.err ||
49042adc0320Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
49052adc0320Smrg        am_cv_CC_dependencies_compiler_type=$depmode
49062adc0320Smrg        break
49072adc0320Smrg      fi
49082adc0320Smrg    fi
49092adc0320Smrg  done
49102adc0320Smrg
49112adc0320Smrg  cd ..
49122adc0320Smrg  rm -rf conftest.dir
49132adc0320Smrgelse
49142adc0320Smrg  am_cv_CC_dependencies_compiler_type=none
49152adc0320Smrgfi
4916273c00b8Smrg ;;
4917273c00b8Smrgesac
49182adc0320Smrgfi
4919765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4920765b7306Smrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
49212adc0320SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
49222adc0320Smrg
49232adc0320Smrg if
49242adc0320Smrg  test "x$enable_dependency_tracking" != xno \
49252adc0320Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
49262adc0320Smrg  am__fastdepCC_TRUE=
49272adc0320Smrg  am__fastdepCC_FALSE='#'
49282adc0320Smrgelse
49292adc0320Smrg  am__fastdepCC_TRUE='#'
49302adc0320Smrg  am__fastdepCC_FALSE=
49312adc0320Smrgfi
49322adc0320Smrg
49332adc0320Smrg
4934273c00b8Smrg# Variables for tags utilities; see am/tags.am
4935273c00b8Smrgif test -z "$CTAGS"; then
4936273c00b8Smrg  CTAGS=ctags
49377a0395d0Smrgfi
49387a0395d0Smrg
4939273c00b8Smrgif test -z "$ETAGS"; then
4940273c00b8Smrg  ETAGS=etags
49419a011757Smrgfi
49429a011757Smrg
4943273c00b8Smrgif test -z "$CSCOPE"; then
4944273c00b8Smrg  CSCOPE=cscope
4945765b7306Smrgfi
49469a011757Smrg
49479a011757Smrg
49489a011757Smrg
49499a011757Smrg
49509a011757Smrg
49519a011757Smrg
49527a0395d0Smrg
49537a0395d0Smrg
4954765b7306Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
49559a011757Smrg
49567a0395d0Smrg
49577a0395d0Smrg
49582adc0320Smrg
49597a0395d0Smrg
49607a0395d0Smrg
49617a0395d0Smrg
49622adc0320Smrg
49637a0395d0Smrg
49647a0395d0Smrg
49657a0395d0Smrg
4966765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4967765b7306Smrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4968765b7306Smrgif test ${ac_cv_c_undeclared_builtin_options+y}
4969765b7306Smrgthen :
4970765b7306Smrg  printf %s "(cached) " >&6
4971273c00b8Smrgelse case e in #(
4972273c00b8Smrg  e) ac_save_CFLAGS=$CFLAGS
4973765b7306Smrg   ac_cv_c_undeclared_builtin_options='cannot detect'
4974765b7306Smrg   for ac_arg in '' -fno-builtin; do
4975765b7306Smrg     CFLAGS="$ac_save_CFLAGS $ac_arg"
4976765b7306Smrg     # This test program should *not* compile successfully.
4977765b7306Smrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978765b7306Smrg/* end confdefs.h.  */
4979765b7306Smrg
4980765b7306Smrgint
4981765b7306Smrgmain (void)
4982765b7306Smrg{
4983765b7306Smrg(void) strchr;
49849a011757Smrg  ;
49857a0395d0Smrg  return 0;
49867a0395d0Smrg}
49877a0395d0Smrg_ACEOF
4988765b7306Smrgif ac_fn_c_try_compile "$LINENO"
4989765b7306Smrgthen :
49907366012aSmrg
4991273c00b8Smrgelse case e in #(
4992273c00b8Smrg  e) # This test program should compile successfully.
4993765b7306Smrg        # No library function is consistently available on
4994765b7306Smrg        # freestanding implementations, so test against a dummy
4995765b7306Smrg        # declaration.  Include always-available headers on the
4996765b7306Smrg        # off chance that they somehow elicit warnings.
4997765b7306Smrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998765b7306Smrg/* end confdefs.h.  */
4999765b7306Smrg#include <float.h>
5000765b7306Smrg#include <limits.h>
5001765b7306Smrg#include <stdarg.h>
5002765b7306Smrg#include <stddef.h>
5003765b7306Smrgextern void ac_decl (int, char *);
50047366012aSmrg
5005765b7306Smrgint
5006765b7306Smrgmain (void)
5007765b7306Smrg{
5008765b7306Smrg(void) ac_decl (0, (char *) 0);
5009765b7306Smrg  (void) ac_decl;
50107366012aSmrg
5011765b7306Smrg  ;
5012765b7306Smrg  return 0;
5013765b7306Smrg}
5014765b7306Smrg_ACEOF
5015765b7306Smrgif ac_fn_c_try_compile "$LINENO"
5016765b7306Smrgthen :
5017765b7306Smrg  if test x"$ac_arg" = x
5018765b7306Smrgthen :
5019765b7306Smrg  ac_cv_c_undeclared_builtin_options='none needed'
5020273c00b8Smrgelse case e in #(
5021273c00b8Smrg  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
5022273c00b8Smrgesac
5023765b7306Smrgfi
5024765b7306Smrg          break
5025765b7306Smrgfi
5026273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5027273c00b8Smrgesac
5028765b7306Smrgfi
5029765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5030765b7306Smrg    done
5031765b7306Smrg    CFLAGS=$ac_save_CFLAGS
5032273c00b8Smrg   ;;
5033273c00b8Smrgesac
5034765b7306Smrgfi
5035765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5036765b7306Smrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
5037765b7306Smrg  case $ac_cv_c_undeclared_builtin_options in #(
5038765b7306Smrg  'cannot detect') :
5039273c00b8Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5040273c00b8Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5041765b7306Smrgas_fn_error $? "cannot make $CC report undeclared builtins
5042273c00b8SmrgSee 'config.log' for more details" "$LINENO" 5; } ;; #(
5043765b7306Smrg  'none needed') :
5044765b7306Smrg    ac_c_undeclared_builtin_options='' ;; #(
5045765b7306Smrg  *) :
5046765b7306Smrg    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5047765b7306Smrgesac
50487366012aSmrg
50497366012aSmrg
50507366012aSmrg
50512852888eSmrg
50522852888eSmrg
5053765b7306Smrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5054765b7306Smrgif test "x$ac_cv_have_decl___clang__" = xyes
5055765b7306Smrgthen :
505696402570Smrg  CLANGCC="yes"
5057273c00b8Smrgelse case e in #(
5058273c00b8Smrg  e) CLANGCC="no" ;;
5059273c00b8Smrgesac
506096402570Smrgfi
5061765b7306Smrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5062765b7306Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
5063765b7306Smrgthen :
506496402570Smrg  INTELCC="yes"
5065273c00b8Smrgelse case e in #(
5066273c00b8Smrg  e) INTELCC="no" ;;
5067273c00b8Smrgesac
506896402570Smrgfi
5069765b7306Smrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5070765b7306Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes
5071765b7306Smrgthen :
507296402570Smrg  SUNCC="yes"
5073273c00b8Smrgelse case e in #(
5074273c00b8Smrg  e) SUNCC="no" ;;
5075273c00b8Smrgesac
507696402570Smrgfi
507796402570Smrg
507896402570Smrg
50792852888eSmrg
50802852888eSmrg
50818abc0ccfSmrg
50828abc0ccfSmrg
50838abc0ccfSmrg
50848abc0ccfSmrg
50852adc0320Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
50862adc0320Smrg	if test -n "$ac_tool_prefix"; then
50872adc0320Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
50882adc0320Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5089765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090765b7306Smrgprintf %s "checking for $ac_word... " >&6; }
5091765b7306Smrgif test ${ac_cv_path_PKG_CONFIG+y}
5092765b7306Smrgthen :
5093765b7306Smrg  printf %s "(cached) " >&6
5094273c00b8Smrgelse case e in #(
5095273c00b8Smrg  e) case $PKG_CONFIG in
50962adc0320Smrg  [\\/]* | ?:[\\/]*)
50972adc0320Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
50982adc0320Smrg  ;;
50992adc0320Smrg  *)
51002adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51012adc0320Smrgfor as_dir in $PATH
51027366012aSmrgdo
51032adc0320Smrg  IFS=$as_save_IFS
5104765b7306Smrg  case $as_dir in #(((
5105765b7306Smrg    '') as_dir=./ ;;
5106765b7306Smrg    */) ;;
5107765b7306Smrg    *) as_dir=$as_dir/ ;;
5108765b7306Smrg  esac
51092adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5110765b7306Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5111765b7306Smrg    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5112765b7306Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
51132adc0320Smrg    break 2
51142adc0320Smrg  fi
51152adc0320Smrgdone
51162adc0320Smrg  done
51172adc0320SmrgIFS=$as_save_IFS
51182adc0320Smrg
51192adc0320Smrg  ;;
5120273c00b8Smrgesac ;;
51217366012aSmrgesac
51222adc0320Smrgfi
51232adc0320SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
51242adc0320Smrgif test -n "$PKG_CONFIG"; then
5125765b7306Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5126765b7306Smrgprintf "%s\n" "$PKG_CONFIG" >&6; }
51277366012aSmrgelse
5128765b7306Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129765b7306Smrgprintf "%s\n" "no" >&6; }
51307366012aSmrgfi
51317366012aSmrg
51327366012aSmrg
51337366012aSmrgfi
51342adc0320Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
51352adc0320Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
51362adc0320Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
51372adc0320Smrgset dummy pkg-config; ac_word=$2
5138765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139765b7306Smrgprintf %s "checking for $ac_word... " >&6; }
5140765b7306Smrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5141765b7306Smrgthen :
5142765b7306Smrg  printf %s "(cached) " >&6
5143273c00b8Smrgelse case e in #(
5144273c00b8Smrg  e) case $ac_pt_PKG_CONFIG in
51452adc0320Smrg  [\\/]* | ?:[\\/]*)
51462adc0320Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
51472adc0320Smrg  ;;
51487366012aSmrg  *)
51492adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51502adc0320Smrgfor as_dir in $PATH
51512adc0320Smrgdo
51522adc0320Smrg  IFS=$as_save_IFS
5153765b7306Smrg  case $as_dir in #(((
5154765b7306Smrg    '') as_dir=./ ;;
5155765b7306Smrg    */) ;;
5156765b7306Smrg    *) as_dir=$as_dir/ ;;
5157765b7306Smrg  esac
51582adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5159765b7306Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5160765b7306Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5161765b7306Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
51622adc0320Smrg    break 2
51632adc0320Smrg  fi
51642adc0320Smrgdone
51652adc0320Smrg  done
51662adc0320SmrgIFS=$as_save_IFS
51672adc0320Smrg
51682adc0320Smrg  ;;
5169273c00b8Smrgesac ;;
51707366012aSmrgesac
51712adc0320Smrgfi
51722adc0320Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
51732adc0320Smrgif test -n "$ac_pt_PKG_CONFIG"; then
5174765b7306Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5175765b7306Smrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
51762adc0320Smrgelse
5177765b7306Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178765b7306Smrgprintf "%s\n" "no" >&6; }
51792adc0320Smrgfi
51807366012aSmrg
51812adc0320Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
51822adc0320Smrg    PKG_CONFIG=""
51832adc0320Smrg  else
51842adc0320Smrg    case $cross_compiling:$ac_tool_warned in
51852adc0320Smrgyes:)
5186765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5187765b7306Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
51882adc0320Smrgac_tool_warned=yes ;;
51892adc0320Smrgesac
51902adc0320Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
51912adc0320Smrg  fi
51922adc0320Smrgelse
51932adc0320Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
51942adc0320Smrgfi
51957366012aSmrg
51962adc0320Smrgfi
51972adc0320Smrgif test -n "$PKG_CONFIG"; then
51982adc0320Smrg	_pkg_min_version=0.9.0
5199765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5200765b7306Smrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
52012adc0320Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5202765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5203765b7306Smrgprintf "%s\n" "yes" >&6; }
52042adc0320Smrg	else
5205765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206765b7306Smrgprintf "%s\n" "no" >&6; }
52072adc0320Smrg		PKG_CONFIG=""
52082adc0320Smrg	fi
52092adc0320Smrgfi
52107366012aSmrg
5211765b7306Smrg
5212765b7306Smrg  # Make sure we can run config.sub.
5213765b7306Smrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5214765b7306Smrg  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5215765b7306Smrg
5216765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5217765b7306Smrgprintf %s "checking build system type... " >&6; }
5218765b7306Smrgif test ${ac_cv_build+y}
5219765b7306Smrgthen :
5220765b7306Smrg  printf %s "(cached) " >&6
5221273c00b8Smrgelse case e in #(
5222273c00b8Smrg  e) ac_build_alias=$build_alias
52237366012aSmrgtest "x$ac_build_alias" = x &&
5224765b7306Smrg  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
52257366012aSmrgtest "x$ac_build_alias" = x &&
52262adc0320Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5227765b7306Smrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5228765b7306Smrg  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5229273c00b8Smrg ;;
5230273c00b8Smrgesac
52317366012aSmrgfi
5232765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5233765b7306Smrgprintf "%s\n" "$ac_cv_build" >&6; }
52347366012aSmrgcase $ac_cv_build in
52357366012aSmrg*-*-*) ;;
52362adc0320Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
52377366012aSmrgesac
52387366012aSmrgbuild=$ac_cv_build
52397366012aSmrgac_save_IFS=$IFS; IFS='-'
52407366012aSmrgset x $ac_cv_build
52417366012aSmrgshift
52427366012aSmrgbuild_cpu=$1
52437366012aSmrgbuild_vendor=$2
52447366012aSmrgshift; shift
52457366012aSmrg# Remember, the first character of IFS is used to create $*,
52467366012aSmrg# except with old shells:
52477366012aSmrgbuild_os=$*
52487366012aSmrgIFS=$ac_save_IFS
52497366012aSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
52507366012aSmrg
52517366012aSmrg
5252765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5253765b7306Smrgprintf %s "checking host system type... " >&6; }
5254765b7306Smrgif test ${ac_cv_host+y}
5255765b7306Smrgthen :
5256765b7306Smrg  printf %s "(cached) " >&6
5257273c00b8Smrgelse case e in #(
5258273c00b8Smrg  e) if test "x$host_alias" = x; then
52597366012aSmrg  ac_cv_host=$ac_cv_build
52607366012aSmrgelse
5261765b7306Smrg  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5262765b7306Smrg    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
52637366012aSmrgfi
5264273c00b8Smrg ;;
5265273c00b8Smrgesac
52667366012aSmrgfi
5267765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5268765b7306Smrgprintf "%s\n" "$ac_cv_host" >&6; }
52697366012aSmrgcase $ac_cv_host in
52707366012aSmrg*-*-*) ;;
52712adc0320Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
52727366012aSmrgesac
52737366012aSmrghost=$ac_cv_host
52747366012aSmrgac_save_IFS=$IFS; IFS='-'
52757366012aSmrgset x $ac_cv_host
52767366012aSmrgshift
52777366012aSmrghost_cpu=$1
52787366012aSmrghost_vendor=$2
52797366012aSmrgshift; shift
52807366012aSmrg# Remember, the first character of IFS is used to create $*,
52817366012aSmrg# except with old shells:
52827366012aSmrghost_os=$*
52837366012aSmrgIFS=$ac_save_IFS
52847366012aSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
52857366012aSmrg
52867366012aSmrg
5287765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5288765b7306Smrgprintf %s "checking for a sed that does not truncate output... " >&6; }
5289765b7306Smrgif test ${ac_cv_path_SED+y}
5290765b7306Smrgthen :
5291765b7306Smrg  printf %s "(cached) " >&6
5292273c00b8Smrgelse case e in #(
5293273c00b8Smrg  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
52942adc0320Smrg     for ac_i in 1 2 3 4 5 6 7; do
52952adc0320Smrg       ac_script="$ac_script$as_nl$ac_script"
52962adc0320Smrg     done
52972adc0320Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
52982adc0320Smrg     { ac_script=; unset ac_script;}
52992adc0320Smrg     if test -z "$SED"; then
53002adc0320Smrg  ac_path_SED_found=false
53012adc0320Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
53022adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53032adc0320Smrgfor as_dir in $PATH
53042adc0320Smrgdo
53052adc0320Smrg  IFS=$as_save_IFS
5306765b7306Smrg  case $as_dir in #(((
5307765b7306Smrg    '') as_dir=./ ;;
5308765b7306Smrg    */) ;;
5309765b7306Smrg    *) as_dir=$as_dir/ ;;
5310765b7306Smrg  esac
5311765b7306Smrg    for ac_prog in sed gsed
5312765b7306Smrg   do
53132adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5314765b7306Smrg      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
53158abc0ccfSmrg      as_fn_executable_p "$ac_path_SED" || continue
53162adc0320Smrg# Check for GNU ac_path_SED and select it if it is found.
53172adc0320Smrg  # Check for GNU $ac_path_SED
5318273c00b8Smrgcase `"$ac_path_SED" --version 2>&1` in #(
53192adc0320Smrg*GNU*)
53202adc0320Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5321273c00b8Smrg#(
53222adc0320Smrg*)
53232adc0320Smrg  ac_count=0
5324765b7306Smrg  printf %s 0123456789 >"conftest.in"
53252adc0320Smrg  while :
53262adc0320Smrg  do
53272adc0320Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
53282adc0320Smrg    mv "conftest.tmp" "conftest.in"
53292adc0320Smrg    cp "conftest.in" "conftest.nl"
5330765b7306Smrg    printf "%s\n" '' >> "conftest.nl"
53312adc0320Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
53322adc0320Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
53332adc0320Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
53342adc0320Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
53352adc0320Smrg      # Best one so far, save it but keep looking for a better one
53362adc0320Smrg      ac_cv_path_SED="$ac_path_SED"
53372adc0320Smrg      ac_path_SED_max=$ac_count
53382adc0320Smrg    fi
53392adc0320Smrg    # 10*(2^10) chars as input seems more than enough
53402adc0320Smrg    test $ac_count -gt 10 && break
53412adc0320Smrg  done
53422adc0320Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
53437366012aSmrgesac
53447366012aSmrg
53452adc0320Smrg      $ac_path_SED_found && break 3
53462adc0320Smrg    done
53472adc0320Smrg  done
53482adc0320Smrg  done
53492adc0320SmrgIFS=$as_save_IFS
53502adc0320Smrg  if test -z "$ac_cv_path_SED"; then
53512adc0320Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
53522adc0320Smrg  fi
53537366012aSmrgelse
53542adc0320Smrg  ac_cv_path_SED=$SED
53557366012aSmrgfi
5356273c00b8Smrg ;;
5357273c00b8Smrgesac
53587366012aSmrgfi
5359765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5360765b7306Smrgprintf "%s\n" "$ac_cv_path_SED" >&6; }
53612adc0320Smrg SED="$ac_cv_path_SED"
53622adc0320Smrg  rm -f conftest.sed
53637366012aSmrg
53647366012aSmrg
53657366012aSmrg
53667366012aSmrg
53677366012aSmrg
53687366012aSmrg
536996402570Smrg# Check whether --enable-selective-werror was given.
5370765b7306Smrgif test ${enable_selective_werror+y}
5371765b7306Smrgthen :
537296402570Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5373273c00b8Smrgelse case e in #(
5374273c00b8Smrg  e) SELECTIVE_WERROR=yes ;;
5375273c00b8Smrgesac
53762adc0320Smrgfi
53772adc0320Smrg
53782adc0320Smrg
53792adc0320Smrg
53807366012aSmrg
53812adc0320Smrg
538296402570Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
538396402570Smrgif test "x$SUNCC" = "xyes"; then
538496402570Smrg    BASE_CFLAGS="-v"
53857366012aSmrgelse
538696402570Smrg    BASE_CFLAGS=""
53877366012aSmrgfi
53887366012aSmrg
538996402570Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
53907366012aSmrg
53917366012aSmrg
53927366012aSmrg
53937366012aSmrg
53947366012aSmrg
53957366012aSmrg
53967366012aSmrg
53977366012aSmrg
53987366012aSmrg
53997366012aSmrg
54002adc0320Smrg
54012adc0320Smrg
54022adc0320Smrg
540396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
54042adc0320Smrg
540596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
540696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5407765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5408765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5409765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5410765b7306Smrgthen :
5411765b7306Smrg  printf %s "(cached) " >&6
5412273c00b8Smrgelse case e in #(
5413273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
541496402570Smrg/* end confdefs.h.  */
541596402570Smrgint i;
541696402570Smrg_ACEOF
5417765b7306Smrgif ac_fn_c_try_compile "$LINENO"
5418765b7306Smrgthen :
541996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5420273c00b8Smrgelse case e in #(
5421273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5422273c00b8Smrgesac
542396402570Smrgfi
5424273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5425273c00b8Smrgesac
542696402570Smrgfi
5427765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5428765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
542996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
543096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
543196402570Smrgfi
54327366012aSmrg
543396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
543496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
543596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
543696402570Smrg	fi
543796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5438765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5439765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5440765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5441765b7306Smrgthen :
5442765b7306Smrg  printf %s "(cached) " >&6
5443273c00b8Smrgelse case e in #(
5444273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
544596402570Smrg/* end confdefs.h.  */
544696402570Smrgint i;
544796402570Smrg_ACEOF
5448765b7306Smrgif ac_fn_c_try_compile "$LINENO"
5449765b7306Smrgthen :
545096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5451273c00b8Smrgelse case e in #(
5452273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5453273c00b8Smrgesac
545496402570Smrgfi
5455273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5456273c00b8Smrgesac
545796402570Smrgfi
5458765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5459765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
546096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
546196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
546296402570Smrgfi
54637366012aSmrg
546496402570Smrgfound="no"
54657366012aSmrg
546696402570Smrg	if test $found = "no" ; then
546740c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
546896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
546996402570Smrg		fi
54707366012aSmrg
547140c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
547296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
547396402570Smrg		fi
54747366012aSmrg
547596402570Smrg		CFLAGS="$CFLAGS -Wall"
54767366012aSmrg
5477765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5478765b7306Smrgprintf %s "checking if $CC supports -Wall... " >&6; }
547996402570Smrg		cacheid=xorg_cv_cc_flag__Wall
5480765b7306Smrg		if eval test \${$cacheid+y}
5481765b7306Smrgthen :
5482765b7306Smrg  printf %s "(cached) " >&6
5483273c00b8Smrgelse case e in #(
5484273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
548596402570Smrg/* end confdefs.h.  */
548696402570Smrgint i;
548796402570Smrgint
5488765b7306Smrgmain (void)
548996402570Smrg{
54907366012aSmrg
549196402570Smrg  ;
549296402570Smrg  return 0;
549396402570Smrg}
549496402570Smrg_ACEOF
5495765b7306Smrgif ac_fn_c_try_link "$LINENO"
5496765b7306Smrgthen :
549796402570Smrg  eval $cacheid=yes
5498273c00b8Smrgelse case e in #(
5499273c00b8Smrg  e) eval $cacheid=no ;;
5500273c00b8Smrgesac
55017366012aSmrgfi
5502765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5503273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
5504273c00b8Smrgesac
55057366012aSmrgfi
55067366012aSmrg
55077366012aSmrg
550896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
55097366012aSmrg
551096402570Smrg		eval supported=\$$cacheid
5511765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5512765b7306Smrgprintf "%s\n" "$supported" >&6; }
551396402570Smrg		if test "$supported" = "yes" ; then
551496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
551596402570Smrg			found="yes"
551696402570Smrg		fi
551796402570Smrg	fi
55187366012aSmrg
55197366012aSmrg
55207366012aSmrg
55217366012aSmrg
55227366012aSmrg
55237a0395d0Smrg
55247a0395d0Smrg
55257a0395d0Smrg
55267a0395d0Smrg
55277a0395d0Smrg
55287a0395d0Smrg
55297a0395d0Smrg
55307a0395d0Smrg
55317a0395d0Smrg
55327a0395d0Smrg
553396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
55342adc0320Smrg
553596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
553696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5537765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5538765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5539765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5540765b7306Smrgthen :
5541765b7306Smrg  printf %s "(cached) " >&6
5542273c00b8Smrgelse case e in #(
5543273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
554496402570Smrg/* end confdefs.h.  */
554596402570Smrgint i;
554696402570Smrg_ACEOF
5547765b7306Smrgif ac_fn_c_try_compile "$LINENO"
5548765b7306Smrgthen :
554996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5550273c00b8Smrgelse case e in #(
5551273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5552273c00b8Smrgesac
555396402570Smrgfi
5554273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5555273c00b8Smrgesac
555696402570Smrgfi
5557765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5558765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
555996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
556096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
556196402570Smrgfi
556296402570Smrg
556396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
556496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
556596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
556696402570Smrg	fi
556796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5568765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5569765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5570765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5571765b7306Smrgthen :
5572765b7306Smrg  printf %s "(cached) " >&6
5573273c00b8Smrgelse case e in #(
5574273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
557596402570Smrg/* end confdefs.h.  */
557696402570Smrgint i;
557796402570Smrg_ACEOF
5578765b7306Smrgif ac_fn_c_try_compile "$LINENO"
5579765b7306Smrgthen :
558096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5581273c00b8Smrgelse case e in #(
5582273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5583273c00b8Smrgesac
558496402570Smrgfi
5585273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5586273c00b8Smrgesac
558796402570Smrgfi
5588765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5589765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
559096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
559196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
559296402570Smrgfi
559396402570Smrg
559496402570Smrgfound="no"
559596402570Smrg
559696402570Smrg	if test $found = "no" ; then
559740c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
559896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
559996402570Smrg		fi
560096402570Smrg
560140c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
560296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
560396402570Smrg		fi
560496402570Smrg
560596402570Smrg		CFLAGS="$CFLAGS -Wpointer-arith"
560696402570Smrg
5607765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5608765b7306Smrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; }
560996402570Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
5610765b7306Smrg		if eval test \${$cacheid+y}
5611765b7306Smrgthen :
5612765b7306Smrg  printf %s "(cached) " >&6
5613273c00b8Smrgelse case e in #(
5614273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
561596402570Smrg/* end confdefs.h.  */
561696402570Smrgint i;
561796402570Smrgint
5618765b7306Smrgmain (void)
561996402570Smrg{
562096402570Smrg
562196402570Smrg  ;
562296402570Smrg  return 0;
562396402570Smrg}
562496402570Smrg_ACEOF
5625765b7306Smrgif ac_fn_c_try_link "$LINENO"
5626765b7306Smrgthen :
562796402570Smrg  eval $cacheid=yes
5628273c00b8Smrgelse case e in #(
5629273c00b8Smrg  e) eval $cacheid=no ;;
5630273c00b8Smrgesac
563196402570Smrgfi
5632765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5633273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
5634273c00b8Smrgesac
563596402570Smrgfi
563696402570Smrg
563796402570Smrg
563896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
563996402570Smrg
564096402570Smrg		eval supported=\$$cacheid
5641765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5642765b7306Smrgprintf "%s\n" "$supported" >&6; }
564396402570Smrg		if test "$supported" = "yes" ; then
564496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
564596402570Smrg			found="yes"
564696402570Smrg		fi
564796402570Smrg	fi
564896402570Smrg
564996402570Smrg
565096402570Smrg
565196402570Smrg
565296402570Smrg
565396402570Smrg
565496402570Smrg
565596402570Smrg
565696402570Smrg
565796402570Smrg
565896402570Smrg
565996402570Smrg
566096402570Smrg
566196402570Smrg
566296402570Smrg
566396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
566496402570Smrg
566596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
566696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5667765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5668765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5669765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5670765b7306Smrgthen :
5671765b7306Smrg  printf %s "(cached) " >&6
5672273c00b8Smrgelse case e in #(
5673273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
567496402570Smrg/* end confdefs.h.  */
567596402570Smrgint i;
567696402570Smrg_ACEOF
5677765b7306Smrgif ac_fn_c_try_compile "$LINENO"
5678765b7306Smrgthen :
567996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5680273c00b8Smrgelse case e in #(
5681273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5682273c00b8Smrgesac
568396402570Smrgfi
5684273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5685273c00b8Smrgesac
568696402570Smrgfi
5687765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5688765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
568996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
569096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
569196402570Smrgfi
569296402570Smrg
569396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
569496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
569596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
569696402570Smrg	fi
569796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5698765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5699765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5700765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5701765b7306Smrgthen :
5702765b7306Smrg  printf %s "(cached) " >&6
5703273c00b8Smrgelse case e in #(
5704273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
570596402570Smrg/* end confdefs.h.  */
570696402570Smrgint i;
570796402570Smrg_ACEOF
5708765b7306Smrgif ac_fn_c_try_compile "$LINENO"
5709765b7306Smrgthen :
571096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5711273c00b8Smrgelse case e in #(
5712273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5713273c00b8Smrgesac
571496402570Smrgfi
5715273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5716273c00b8Smrgesac
571796402570Smrgfi
5718765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5719765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
572096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
572196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
572296402570Smrgfi
572396402570Smrg
572496402570Smrgfound="no"
572596402570Smrg
572696402570Smrg	if test $found = "no" ; then
572740c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
572896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
572996402570Smrg		fi
573096402570Smrg
573140c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
573296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
573396402570Smrg		fi
573496402570Smrg
573596402570Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
573696402570Smrg
5737765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5738765b7306Smrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
573996402570Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5740765b7306Smrg		if eval test \${$cacheid+y}
5741765b7306Smrgthen :
5742765b7306Smrg  printf %s "(cached) " >&6
5743273c00b8Smrgelse case e in #(
5744273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
574596402570Smrg/* end confdefs.h.  */
574696402570Smrgint i;
574796402570Smrgint
5748765b7306Smrgmain (void)
574996402570Smrg{
575096402570Smrg
575196402570Smrg  ;
575296402570Smrg  return 0;
575396402570Smrg}
575496402570Smrg_ACEOF
5755765b7306Smrgif ac_fn_c_try_link "$LINENO"
5756765b7306Smrgthen :
575796402570Smrg  eval $cacheid=yes
5758273c00b8Smrgelse case e in #(
5759273c00b8Smrg  e) eval $cacheid=no ;;
5760273c00b8Smrgesac
576196402570Smrgfi
5762765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5763273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
5764273c00b8Smrgesac
576596402570Smrgfi
576696402570Smrg
576796402570Smrg
576896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
576996402570Smrg
577096402570Smrg		eval supported=\$$cacheid
5771765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5772765b7306Smrgprintf "%s\n" "$supported" >&6; }
577396402570Smrg		if test "$supported" = "yes" ; then
577496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
577596402570Smrg			found="yes"
577696402570Smrg		fi
577796402570Smrg	fi
577896402570Smrg
577996402570Smrg
578096402570Smrg
578196402570Smrg
578296402570Smrg
578396402570Smrg
578496402570Smrg
578596402570Smrg
578696402570Smrg
578796402570Smrg
578896402570Smrg
578996402570Smrg
579096402570Smrg
579196402570Smrg
579296402570Smrg
579396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
579496402570Smrg
579596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
579696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5797765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5798765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5799765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5800765b7306Smrgthen :
5801765b7306Smrg  printf %s "(cached) " >&6
5802273c00b8Smrgelse case e in #(
5803273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
580496402570Smrg/* end confdefs.h.  */
580596402570Smrgint i;
580696402570Smrg_ACEOF
5807765b7306Smrgif ac_fn_c_try_compile "$LINENO"
5808765b7306Smrgthen :
580996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5810273c00b8Smrgelse case e in #(
5811273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5812273c00b8Smrgesac
581396402570Smrgfi
5814273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5815273c00b8Smrgesac
581696402570Smrgfi
5817765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5818765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
581996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
582096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
582196402570Smrgfi
582296402570Smrg
582396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
582496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
582596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
582696402570Smrg	fi
582796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5828765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5829765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5830765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5831765b7306Smrgthen :
5832765b7306Smrg  printf %s "(cached) " >&6
5833273c00b8Smrgelse case e in #(
5834273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
583596402570Smrg/* end confdefs.h.  */
583696402570Smrgint i;
583796402570Smrg_ACEOF
5838765b7306Smrgif ac_fn_c_try_compile "$LINENO"
5839765b7306Smrgthen :
584096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5841273c00b8Smrgelse case e in #(
5842273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5843273c00b8Smrgesac
584496402570Smrgfi
5845273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5846273c00b8Smrgesac
584796402570Smrgfi
5848765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5849765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
585096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
585196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
585296402570Smrgfi
585396402570Smrg
585496402570Smrgfound="no"
585596402570Smrg
585696402570Smrg	if test $found = "no" ; then
585740c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
585896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
585996402570Smrg		fi
586096402570Smrg
586140c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
586296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
586396402570Smrg		fi
586496402570Smrg
586596402570Smrg		CFLAGS="$CFLAGS -Wformat=2"
586696402570Smrg
5867765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5868765b7306Smrgprintf %s "checking if $CC supports -Wformat=2... " >&6; }
58698abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Wformat_2
5870765b7306Smrg		if eval test \${$cacheid+y}
5871765b7306Smrgthen :
5872765b7306Smrg  printf %s "(cached) " >&6
5873273c00b8Smrgelse case e in #(
5874273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
587596402570Smrg/* end confdefs.h.  */
587696402570Smrgint i;
587796402570Smrgint
5878765b7306Smrgmain (void)
587996402570Smrg{
588096402570Smrg
588196402570Smrg  ;
588296402570Smrg  return 0;
588396402570Smrg}
588496402570Smrg_ACEOF
5885765b7306Smrgif ac_fn_c_try_link "$LINENO"
5886765b7306Smrgthen :
588796402570Smrg  eval $cacheid=yes
5888273c00b8Smrgelse case e in #(
5889273c00b8Smrg  e) eval $cacheid=no ;;
5890273c00b8Smrgesac
589196402570Smrgfi
5892765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5893273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
5894273c00b8Smrgesac
589596402570Smrgfi
589696402570Smrg
589796402570Smrg
589896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
589996402570Smrg
590096402570Smrg		eval supported=\$$cacheid
5901765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5902765b7306Smrgprintf "%s\n" "$supported" >&6; }
590396402570Smrg		if test "$supported" = "yes" ; then
590496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
590596402570Smrg			found="yes"
590696402570Smrg		fi
590796402570Smrg	fi
590896402570Smrg
590996402570Smrg	if test $found = "no" ; then
591040c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
591196402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
591296402570Smrg		fi
591396402570Smrg
591440c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
591596402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
591696402570Smrg		fi
591796402570Smrg
591896402570Smrg		CFLAGS="$CFLAGS -Wformat"
591996402570Smrg
5920765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5921765b7306Smrgprintf %s "checking if $CC supports -Wformat... " >&6; }
592296402570Smrg		cacheid=xorg_cv_cc_flag__Wformat
5923765b7306Smrg		if eval test \${$cacheid+y}
5924765b7306Smrgthen :
5925765b7306Smrg  printf %s "(cached) " >&6
5926273c00b8Smrgelse case e in #(
5927273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
592896402570Smrg/* end confdefs.h.  */
592996402570Smrgint i;
593096402570Smrgint
5931765b7306Smrgmain (void)
593296402570Smrg{
593396402570Smrg
593496402570Smrg  ;
593596402570Smrg  return 0;
593696402570Smrg}
593796402570Smrg_ACEOF
5938765b7306Smrgif ac_fn_c_try_link "$LINENO"
5939765b7306Smrgthen :
594096402570Smrg  eval $cacheid=yes
5941273c00b8Smrgelse case e in #(
5942273c00b8Smrg  e) eval $cacheid=no ;;
5943273c00b8Smrgesac
594496402570Smrgfi
5945765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5946273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
5947273c00b8Smrgesac
594896402570Smrgfi
594996402570Smrg
595096402570Smrg
595196402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
595296402570Smrg
595396402570Smrg		eval supported=\$$cacheid
5954765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5955765b7306Smrgprintf "%s\n" "$supported" >&6; }
595696402570Smrg		if test "$supported" = "yes" ; then
595796402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
595896402570Smrg			found="yes"
595996402570Smrg		fi
596096402570Smrg	fi
596196402570Smrg
596296402570Smrg
596396402570Smrg
596496402570Smrg
596596402570Smrg
596696402570Smrg
596796402570Smrg
596896402570Smrg
596996402570Smrg
597096402570Smrg
597196402570Smrg
597296402570Smrg
597396402570Smrg
597496402570Smrg
597596402570Smrg
597696402570Smrg
597796402570Smrg
597896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
597996402570Smrg
598096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
598196402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5982765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5983765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5984765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5985765b7306Smrgthen :
5986765b7306Smrg  printf %s "(cached) " >&6
5987273c00b8Smrgelse case e in #(
5988273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
598996402570Smrg/* end confdefs.h.  */
599096402570Smrgint i;
599196402570Smrg_ACEOF
5992765b7306Smrgif ac_fn_c_try_compile "$LINENO"
5993765b7306Smrgthen :
599496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5995273c00b8Smrgelse case e in #(
5996273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5997273c00b8Smrgesac
599896402570Smrgfi
5999273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6000273c00b8Smrgesac
600196402570Smrgfi
6002765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6003765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
600496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
600596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
600696402570Smrgfi
600796402570Smrg
600896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
600996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
601096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
601196402570Smrg	fi
601296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6013765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6014765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6015765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6016765b7306Smrgthen :
6017765b7306Smrg  printf %s "(cached) " >&6
6018273c00b8Smrgelse case e in #(
6019273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
602096402570Smrg/* end confdefs.h.  */
602196402570Smrgint i;
602296402570Smrg_ACEOF
6023765b7306Smrgif ac_fn_c_try_compile "$LINENO"
6024765b7306Smrgthen :
602596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6026273c00b8Smrgelse case e in #(
6027273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6028273c00b8Smrgesac
602996402570Smrgfi
6030273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6031273c00b8Smrgesac
603296402570Smrgfi
6033765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6034765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
603596402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
603696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
603796402570Smrgfi
603896402570Smrg
603996402570Smrgfound="no"
604096402570Smrg
604196402570Smrg	if test $found = "no" ; then
604240c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
604396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
604496402570Smrg		fi
604596402570Smrg
604640c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
604796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
604896402570Smrg		fi
604996402570Smrg
605096402570Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
605196402570Smrg
6052765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6053765b7306Smrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
605496402570Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6055765b7306Smrg		if eval test \${$cacheid+y}
6056765b7306Smrgthen :
6057765b7306Smrg  printf %s "(cached) " >&6
6058273c00b8Smrgelse case e in #(
6059273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
606096402570Smrg/* end confdefs.h.  */
606196402570Smrgint i;
606296402570Smrgint
6063765b7306Smrgmain (void)
606496402570Smrg{
606596402570Smrg
606696402570Smrg  ;
606796402570Smrg  return 0;
606896402570Smrg}
606996402570Smrg_ACEOF
6070765b7306Smrgif ac_fn_c_try_link "$LINENO"
6071765b7306Smrgthen :
607296402570Smrg  eval $cacheid=yes
6073273c00b8Smrgelse case e in #(
6074273c00b8Smrg  e) eval $cacheid=no ;;
6075273c00b8Smrgesac
607696402570Smrgfi
6077765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6078273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
6079273c00b8Smrgesac
608096402570Smrgfi
608196402570Smrg
608296402570Smrg
608396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
608496402570Smrg
608596402570Smrg		eval supported=\$$cacheid
6086765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6087765b7306Smrgprintf "%s\n" "$supported" >&6; }
608896402570Smrg		if test "$supported" = "yes" ; then
608996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
609096402570Smrg			found="yes"
609196402570Smrg		fi
609296402570Smrg	fi
609396402570Smrg
609496402570Smrg
609596402570Smrg
609696402570Smrg
609796402570Smrg
609896402570Smrg
609996402570Smrg
610096402570Smrg
610196402570Smrg
610296402570Smrg
610396402570Smrg
610496402570Smrg
610596402570Smrg
610696402570Smrg
610796402570Smrg
610896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
610996402570Smrg
611096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
611196402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6112765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6113765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6114765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6115765b7306Smrgthen :
6116765b7306Smrg  printf %s "(cached) " >&6
6117273c00b8Smrgelse case e in #(
6118273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
611996402570Smrg/* end confdefs.h.  */
612096402570Smrgint i;
612196402570Smrg_ACEOF
6122765b7306Smrgif ac_fn_c_try_compile "$LINENO"
6123765b7306Smrgthen :
612496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6125273c00b8Smrgelse case e in #(
6126273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6127273c00b8Smrgesac
612896402570Smrgfi
6129273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6130273c00b8Smrgesac
613196402570Smrgfi
6132765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6133765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
613496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
613596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
613696402570Smrgfi
613796402570Smrg
613896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
613996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
614096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
614196402570Smrg	fi
614296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6143765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6144765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6145765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6146765b7306Smrgthen :
6147765b7306Smrg  printf %s "(cached) " >&6
6148273c00b8Smrgelse case e in #(
6149273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
615096402570Smrg/* end confdefs.h.  */
615196402570Smrgint i;
615296402570Smrg_ACEOF
6153765b7306Smrgif ac_fn_c_try_compile "$LINENO"
6154765b7306Smrgthen :
615596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6156273c00b8Smrgelse case e in #(
6157273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6158273c00b8Smrgesac
615996402570Smrgfi
6160273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6161273c00b8Smrgesac
616296402570Smrgfi
6163765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6164765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
616596402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
616696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
616796402570Smrgfi
616896402570Smrg
616996402570Smrgfound="no"
617096402570Smrg
617196402570Smrg	if test $found = "no" ; then
617240c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
617396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
617496402570Smrg		fi
617596402570Smrg
617640c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
617796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
617896402570Smrg		fi
617996402570Smrg
618096402570Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
618196402570Smrg
6182765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6183765b7306Smrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
618496402570Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6185765b7306Smrg		if eval test \${$cacheid+y}
6186765b7306Smrgthen :
6187765b7306Smrg  printf %s "(cached) " >&6
6188273c00b8Smrgelse case e in #(
6189273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
619096402570Smrg/* end confdefs.h.  */
619196402570Smrgint i;
619296402570Smrgint
6193765b7306Smrgmain (void)
619496402570Smrg{
619596402570Smrg
619696402570Smrg  ;
619796402570Smrg  return 0;
619896402570Smrg}
619996402570Smrg_ACEOF
6200765b7306Smrgif ac_fn_c_try_link "$LINENO"
6201765b7306Smrgthen :
620296402570Smrg  eval $cacheid=yes
6203273c00b8Smrgelse case e in #(
6204273c00b8Smrg  e) eval $cacheid=no ;;
6205273c00b8Smrgesac
620696402570Smrgfi
6207765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6208273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
6209273c00b8Smrgesac
621096402570Smrgfi
621196402570Smrg
621296402570Smrg
621396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
621496402570Smrg
621596402570Smrg		eval supported=\$$cacheid
6216765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6217765b7306Smrgprintf "%s\n" "$supported" >&6; }
621896402570Smrg		if test "$supported" = "yes" ; then
621996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
622096402570Smrg			found="yes"
622196402570Smrg		fi
622296402570Smrg	fi
622396402570Smrg
622496402570Smrg
622596402570Smrg
622696402570Smrg
622796402570Smrg
622896402570Smrg
622996402570Smrg
623096402570Smrg
623196402570Smrg
623296402570Smrg
623396402570Smrg
623496402570Smrg
623596402570Smrg
623696402570Smrg
623796402570Smrg
623896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
623996402570Smrg
624096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
624196402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6242765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6243765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6244765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6245765b7306Smrgthen :
6246765b7306Smrg  printf %s "(cached) " >&6
6247273c00b8Smrgelse case e in #(
6248273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
624996402570Smrg/* end confdefs.h.  */
625096402570Smrgint i;
625196402570Smrg_ACEOF
6252765b7306Smrgif ac_fn_c_try_compile "$LINENO"
6253765b7306Smrgthen :
625496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6255273c00b8Smrgelse case e in #(
6256273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6257273c00b8Smrgesac
625896402570Smrgfi
6259273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6260273c00b8Smrgesac
626196402570Smrgfi
6262765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6263765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
626496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
626596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
626696402570Smrgfi
626796402570Smrg
626896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
626996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
627096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
627196402570Smrg	fi
627296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6273765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6274765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6275765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6276765b7306Smrgthen :
6277765b7306Smrg  printf %s "(cached) " >&6
6278273c00b8Smrgelse case e in #(
6279273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
628096402570Smrg/* end confdefs.h.  */
628196402570Smrgint i;
628296402570Smrg_ACEOF
6283765b7306Smrgif ac_fn_c_try_compile "$LINENO"
6284765b7306Smrgthen :
628596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6286273c00b8Smrgelse case e in #(
6287273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6288273c00b8Smrgesac
628996402570Smrgfi
6290273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6291273c00b8Smrgesac
629296402570Smrgfi
6293765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6294765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
629596402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
629696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
629796402570Smrgfi
629896402570Smrg
629996402570Smrgfound="no"
630096402570Smrg
630196402570Smrg	if test $found = "no" ; then
630240c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
630396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
630496402570Smrg		fi
630596402570Smrg
630640c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
630796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
630896402570Smrg		fi
630996402570Smrg
631096402570Smrg		CFLAGS="$CFLAGS -Wnested-externs"
631196402570Smrg
6312765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6313765b7306Smrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; }
631496402570Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
6315765b7306Smrg		if eval test \${$cacheid+y}
6316765b7306Smrgthen :
6317765b7306Smrg  printf %s "(cached) " >&6
6318273c00b8Smrgelse case e in #(
6319273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632096402570Smrg/* end confdefs.h.  */
632196402570Smrgint i;
632296402570Smrgint
6323765b7306Smrgmain (void)
632496402570Smrg{
632596402570Smrg
632696402570Smrg  ;
632796402570Smrg  return 0;
632896402570Smrg}
632996402570Smrg_ACEOF
6330765b7306Smrgif ac_fn_c_try_link "$LINENO"
6331765b7306Smrgthen :
633296402570Smrg  eval $cacheid=yes
6333273c00b8Smrgelse case e in #(
6334273c00b8Smrg  e) eval $cacheid=no ;;
6335273c00b8Smrgesac
633696402570Smrgfi
6337765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6338273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
6339273c00b8Smrgesac
634096402570Smrgfi
634196402570Smrg
634296402570Smrg
634396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
634496402570Smrg
634596402570Smrg		eval supported=\$$cacheid
6346765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6347765b7306Smrgprintf "%s\n" "$supported" >&6; }
634896402570Smrg		if test "$supported" = "yes" ; then
634996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
635096402570Smrg			found="yes"
635196402570Smrg		fi
635296402570Smrg	fi
635396402570Smrg
635496402570Smrg
635596402570Smrg
635696402570Smrg
635796402570Smrg
635896402570Smrg
635996402570Smrg
636096402570Smrg
636196402570Smrg
636296402570Smrg
636396402570Smrg
636496402570Smrg
636596402570Smrg
636696402570Smrg
636796402570Smrg
636896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
636996402570Smrg
637096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
637196402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6372765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6373765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6374765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6375765b7306Smrgthen :
6376765b7306Smrg  printf %s "(cached) " >&6
6377273c00b8Smrgelse case e in #(
6378273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
637996402570Smrg/* end confdefs.h.  */
638096402570Smrgint i;
638196402570Smrg_ACEOF
6382765b7306Smrgif ac_fn_c_try_compile "$LINENO"
6383765b7306Smrgthen :
638496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6385273c00b8Smrgelse case e in #(
6386273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6387273c00b8Smrgesac
638896402570Smrgfi
6389273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6390273c00b8Smrgesac
639196402570Smrgfi
6392765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6393765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
639496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
639596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
639696402570Smrgfi
639796402570Smrg
639896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
639996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
640096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
640196402570Smrg	fi
640296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6403765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6404765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6405765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6406765b7306Smrgthen :
6407765b7306Smrg  printf %s "(cached) " >&6
6408273c00b8Smrgelse case e in #(
6409273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
641096402570Smrg/* end confdefs.h.  */
641196402570Smrgint i;
641296402570Smrg_ACEOF
6413765b7306Smrgif ac_fn_c_try_compile "$LINENO"
6414765b7306Smrgthen :
641596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6416273c00b8Smrgelse case e in #(
6417273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6418273c00b8Smrgesac
641996402570Smrgfi
6420273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6421273c00b8Smrgesac
642296402570Smrgfi
6423765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6424765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
642596402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
642696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
642796402570Smrgfi
642896402570Smrg
642996402570Smrgfound="no"
643096402570Smrg
643196402570Smrg	if test $found = "no" ; then
643240c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
643396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
643496402570Smrg		fi
643596402570Smrg
643640c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
643796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
643896402570Smrg		fi
643996402570Smrg
644096402570Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
644196402570Smrg
6442765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6443765b7306Smrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
644496402570Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6445765b7306Smrg		if eval test \${$cacheid+y}
6446765b7306Smrgthen :
6447765b7306Smrg  printf %s "(cached) " >&6
6448273c00b8Smrgelse case e in #(
6449273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
645096402570Smrg/* end confdefs.h.  */
645196402570Smrgint i;
645296402570Smrgint
6453765b7306Smrgmain (void)
645496402570Smrg{
645596402570Smrg
645696402570Smrg  ;
645796402570Smrg  return 0;
645896402570Smrg}
645996402570Smrg_ACEOF
6460765b7306Smrgif ac_fn_c_try_link "$LINENO"
6461765b7306Smrgthen :
646296402570Smrg  eval $cacheid=yes
6463273c00b8Smrgelse case e in #(
6464273c00b8Smrg  e) eval $cacheid=no ;;
6465273c00b8Smrgesac
646696402570Smrgfi
6467765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6468273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
6469273c00b8Smrgesac
647096402570Smrgfi
647196402570Smrg
647296402570Smrg
647396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
647496402570Smrg
647596402570Smrg		eval supported=\$$cacheid
6476765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6477765b7306Smrgprintf "%s\n" "$supported" >&6; }
647896402570Smrg		if test "$supported" = "yes" ; then
647996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
648096402570Smrg			found="yes"
648196402570Smrg		fi
648296402570Smrg	fi
648396402570Smrg
648496402570Smrg
648596402570Smrg
648696402570Smrg
648796402570Smrg
648896402570Smrg
648996402570Smrg
649096402570Smrg
649196402570Smrg
649296402570Smrg
649396402570Smrg
649496402570Smrg
649596402570Smrg
649696402570Smrg
649796402570Smrg
649896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
649996402570Smrg
650096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
650196402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6502765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6503765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6504765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6505765b7306Smrgthen :
6506765b7306Smrg  printf %s "(cached) " >&6
6507273c00b8Smrgelse case e in #(
6508273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
650996402570Smrg/* end confdefs.h.  */
651096402570Smrgint i;
651196402570Smrg_ACEOF
6512765b7306Smrgif ac_fn_c_try_compile "$LINENO"
6513765b7306Smrgthen :
651496402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6515273c00b8Smrgelse case e in #(
6516273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6517273c00b8Smrgesac
651896402570Smrgfi
6519273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6520273c00b8Smrgesac
652196402570Smrgfi
6522765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6523765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
652496402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
652596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
652696402570Smrgfi
652796402570Smrg
652896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
652996402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
653096402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
653196402570Smrg	fi
653296402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6533765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6534765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6535765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6536765b7306Smrgthen :
6537765b7306Smrg  printf %s "(cached) " >&6
6538273c00b8Smrgelse case e in #(
6539273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
654096402570Smrg/* end confdefs.h.  */
654196402570Smrgint i;
654296402570Smrg_ACEOF
6543765b7306Smrgif ac_fn_c_try_compile "$LINENO"
6544765b7306Smrgthen :
654596402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6546273c00b8Smrgelse case e in #(
6547273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6548273c00b8Smrgesac
654996402570Smrgfi
6550273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6551273c00b8Smrgesac
655296402570Smrgfi
6553765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6554765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
655596402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
655696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
655796402570Smrgfi
655896402570Smrg
655996402570Smrgfound="no"
656096402570Smrg
656196402570Smrg	if test $found = "no" ; then
656240c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
656396402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
656496402570Smrg		fi
656596402570Smrg
656640c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
656796402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
656896402570Smrg		fi
656996402570Smrg
657096402570Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
657196402570Smrg
6572765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6573765b7306Smrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; }
657496402570Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
6575765b7306Smrg		if eval test \${$cacheid+y}
6576765b7306Smrgthen :
6577765b7306Smrg  printf %s "(cached) " >&6
6578273c00b8Smrgelse case e in #(
6579273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
658096402570Smrg/* end confdefs.h.  */
658196402570Smrgint i;
658296402570Smrgint
6583765b7306Smrgmain (void)
658496402570Smrg{
658596402570Smrg
658696402570Smrg  ;
658796402570Smrg  return 0;
658896402570Smrg}
658996402570Smrg_ACEOF
6590765b7306Smrgif ac_fn_c_try_link "$LINENO"
6591765b7306Smrgthen :
659296402570Smrg  eval $cacheid=yes
6593273c00b8Smrgelse case e in #(
6594273c00b8Smrg  e) eval $cacheid=no ;;
6595273c00b8Smrgesac
659696402570Smrgfi
6597765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6598273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
6599273c00b8Smrgesac
660096402570Smrgfi
660196402570Smrg
660296402570Smrg
660396402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
660496402570Smrg
660596402570Smrg		eval supported=\$$cacheid
6606765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6607765b7306Smrgprintf "%s\n" "$supported" >&6; }
660896402570Smrg		if test "$supported" = "yes" ; then
660996402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
661096402570Smrg			found="yes"
661196402570Smrg		fi
661296402570Smrg	fi
661396402570Smrg
661440c5344fSmrg	if test $found = "no" ; then
661540c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
661640c5344fSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
661740c5344fSmrg		fi
661840c5344fSmrg
661940c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
662040c5344fSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
662140c5344fSmrg		fi
662240c5344fSmrg
662340c5344fSmrg		CFLAGS="$CFLAGS -fd"
662440c5344fSmrg
6625765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6626765b7306Smrgprintf %s "checking if $CC supports -fd... " >&6; }
662740c5344fSmrg		cacheid=xorg_cv_cc_flag__fd
6628765b7306Smrg		if eval test \${$cacheid+y}
6629765b7306Smrgthen :
6630765b7306Smrg  printf %s "(cached) " >&6
6631273c00b8Smrgelse case e in #(
6632273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
663340c5344fSmrg/* end confdefs.h.  */
663440c5344fSmrgint i;
663540c5344fSmrgint
6636765b7306Smrgmain (void)
663740c5344fSmrg{
663840c5344fSmrg
663940c5344fSmrg  ;
664040c5344fSmrg  return 0;
664140c5344fSmrg}
664240c5344fSmrg_ACEOF
6643765b7306Smrgif ac_fn_c_try_link "$LINENO"
6644765b7306Smrgthen :
664540c5344fSmrg  eval $cacheid=yes
6646273c00b8Smrgelse case e in #(
6647273c00b8Smrg  e) eval $cacheid=no ;;
6648273c00b8Smrgesac
664940c5344fSmrgfi
6650765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6651273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
6652273c00b8Smrgesac
665340c5344fSmrgfi
665440c5344fSmrg
665540c5344fSmrg
665640c5344fSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
665740c5344fSmrg
665840c5344fSmrg		eval supported=\$$cacheid
6659765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6660765b7306Smrgprintf "%s\n" "$supported" >&6; }
666140c5344fSmrg		if test "$supported" = "yes" ; then
666240c5344fSmrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
666340c5344fSmrg			found="yes"
666440c5344fSmrg		fi
666540c5344fSmrg	fi
666640c5344fSmrg
666796402570Smrg
666896402570Smrg
666996402570Smrg
667096402570Smrg
667196402570Smrg# This chunk adds additional warnings that could catch undesired effects.
667296402570Smrg
667396402570Smrg
667496402570Smrg
667596402570Smrg
667696402570Smrg
667796402570Smrg
667896402570Smrg
667996402570Smrg
668096402570Smrg
668196402570Smrg
668296402570Smrg
668396402570Smrg
668496402570Smrg
668596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
668696402570Smrg
668796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
668896402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6689765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6690765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6691765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6692765b7306Smrgthen :
6693765b7306Smrg  printf %s "(cached) " >&6
6694273c00b8Smrgelse case e in #(
6695273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
669696402570Smrg/* end confdefs.h.  */
669796402570Smrgint i;
669896402570Smrg_ACEOF
6699765b7306Smrgif ac_fn_c_try_compile "$LINENO"
6700765b7306Smrgthen :
670196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6702273c00b8Smrgelse case e in #(
6703273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6704273c00b8Smrgesac
670596402570Smrgfi
6706273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6707273c00b8Smrgesac
670896402570Smrgfi
6709765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6710765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
671196402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
671296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
671396402570Smrgfi
671496402570Smrg
671596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
671696402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
671796402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
671896402570Smrg	fi
671996402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6720765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6721765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6722765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6723765b7306Smrgthen :
6724765b7306Smrg  printf %s "(cached) " >&6
6725273c00b8Smrgelse case e in #(
6726273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
672796402570Smrg/* end confdefs.h.  */
672896402570Smrgint i;
672996402570Smrg_ACEOF
6730765b7306Smrgif ac_fn_c_try_compile "$LINENO"
6731765b7306Smrgthen :
673296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6733273c00b8Smrgelse case e in #(
6734273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6735273c00b8Smrgesac
673696402570Smrgfi
6737273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6738273c00b8Smrgesac
673996402570Smrgfi
6740765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6741765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
674296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
674396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
674496402570Smrgfi
674596402570Smrg
674696402570Smrgfound="no"
674796402570Smrg
674896402570Smrg	if test $found = "no" ; then
674940c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
675096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
675196402570Smrg		fi
675296402570Smrg
675340c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
675496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
675596402570Smrg		fi
675696402570Smrg
675796402570Smrg		CFLAGS="$CFLAGS -Wunused"
675896402570Smrg
6759765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6760765b7306Smrgprintf %s "checking if $CC supports -Wunused... " >&6; }
676196402570Smrg		cacheid=xorg_cv_cc_flag__Wunused
6762765b7306Smrg		if eval test \${$cacheid+y}
6763765b7306Smrgthen :
6764765b7306Smrg  printf %s "(cached) " >&6
6765273c00b8Smrgelse case e in #(
6766273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
676796402570Smrg/* end confdefs.h.  */
676896402570Smrgint i;
676996402570Smrgint
6770765b7306Smrgmain (void)
677196402570Smrg{
677296402570Smrg
677396402570Smrg  ;
677496402570Smrg  return 0;
677596402570Smrg}
677696402570Smrg_ACEOF
6777765b7306Smrgif ac_fn_c_try_link "$LINENO"
6778765b7306Smrgthen :
677996402570Smrg  eval $cacheid=yes
6780273c00b8Smrgelse case e in #(
6781273c00b8Smrg  e) eval $cacheid=no ;;
6782273c00b8Smrgesac
678396402570Smrgfi
6784765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6785273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
6786273c00b8Smrgesac
678796402570Smrgfi
678896402570Smrg
678996402570Smrg
679096402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
679196402570Smrg
679296402570Smrg		eval supported=\$$cacheid
6793765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6794765b7306Smrgprintf "%s\n" "$supported" >&6; }
679596402570Smrg		if test "$supported" = "yes" ; then
679696402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
679796402570Smrg			found="yes"
679896402570Smrg		fi
679996402570Smrg	fi
680096402570Smrg
680196402570Smrg
680296402570Smrg
680396402570Smrg
680496402570Smrg
680596402570Smrg
680696402570Smrg
680796402570Smrg
680896402570Smrg
680996402570Smrg
681096402570Smrg
681196402570Smrg
681296402570Smrg
681396402570Smrg
681496402570Smrg
681596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
681696402570Smrg
681796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
681896402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6819765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6820765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6821765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6822765b7306Smrgthen :
6823765b7306Smrg  printf %s "(cached) " >&6
6824273c00b8Smrgelse case e in #(
6825273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
682696402570Smrg/* end confdefs.h.  */
682796402570Smrgint i;
682896402570Smrg_ACEOF
6829765b7306Smrgif ac_fn_c_try_compile "$LINENO"
6830765b7306Smrgthen :
683196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6832273c00b8Smrgelse case e in #(
6833273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6834273c00b8Smrgesac
683596402570Smrgfi
6836273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6837273c00b8Smrgesac
683896402570Smrgfi
6839765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6840765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
684196402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
684296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
684396402570Smrgfi
684496402570Smrg
684596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
684696402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
684796402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
684896402570Smrg	fi
684996402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6850765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6851765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6852765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6853765b7306Smrgthen :
6854765b7306Smrg  printf %s "(cached) " >&6
6855273c00b8Smrgelse case e in #(
6856273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
685796402570Smrg/* end confdefs.h.  */
685896402570Smrgint i;
685996402570Smrg_ACEOF
6860765b7306Smrgif ac_fn_c_try_compile "$LINENO"
6861765b7306Smrgthen :
686296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6863273c00b8Smrgelse case e in #(
6864273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6865273c00b8Smrgesac
686696402570Smrgfi
6867273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6868273c00b8Smrgesac
686996402570Smrgfi
6870765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6871765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
687296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
687396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
687496402570Smrgfi
687596402570Smrg
687696402570Smrgfound="no"
687796402570Smrg
687896402570Smrg	if test $found = "no" ; then
687940c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
688096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
688196402570Smrg		fi
688296402570Smrg
688340c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
688496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
688596402570Smrg		fi
688696402570Smrg
688796402570Smrg		CFLAGS="$CFLAGS -Wuninitialized"
688896402570Smrg
6889765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6890765b7306Smrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; }
689196402570Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
6892765b7306Smrg		if eval test \${$cacheid+y}
6893765b7306Smrgthen :
6894765b7306Smrg  printf %s "(cached) " >&6
6895273c00b8Smrgelse case e in #(
6896273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
689796402570Smrg/* end confdefs.h.  */
689896402570Smrgint i;
689996402570Smrgint
6900765b7306Smrgmain (void)
690196402570Smrg{
690296402570Smrg
690396402570Smrg  ;
690496402570Smrg  return 0;
690596402570Smrg}
690696402570Smrg_ACEOF
6907765b7306Smrgif ac_fn_c_try_link "$LINENO"
6908765b7306Smrgthen :
690996402570Smrg  eval $cacheid=yes
6910273c00b8Smrgelse case e in #(
6911273c00b8Smrg  e) eval $cacheid=no ;;
6912273c00b8Smrgesac
691396402570Smrgfi
6914765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6915273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
6916273c00b8Smrgesac
691796402570Smrgfi
691896402570Smrg
691996402570Smrg
692096402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
692196402570Smrg
692296402570Smrg		eval supported=\$$cacheid
6923765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6924765b7306Smrgprintf "%s\n" "$supported" >&6; }
692596402570Smrg		if test "$supported" = "yes" ; then
692696402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
692796402570Smrg			found="yes"
692896402570Smrg		fi
692996402570Smrg	fi
693096402570Smrg
693196402570Smrg
693296402570Smrg
693396402570Smrg
693496402570Smrg
693596402570Smrg
693696402570Smrg
693796402570Smrg
693896402570Smrg
693996402570Smrg
694096402570Smrg
694196402570Smrg
694296402570Smrg
694396402570Smrg
694496402570Smrg
694596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
694696402570Smrg
694796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
694896402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6949765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6950765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6951765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6952765b7306Smrgthen :
6953765b7306Smrg  printf %s "(cached) " >&6
6954273c00b8Smrgelse case e in #(
6955273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
695696402570Smrg/* end confdefs.h.  */
695796402570Smrgint i;
695896402570Smrg_ACEOF
6959765b7306Smrgif ac_fn_c_try_compile "$LINENO"
6960765b7306Smrgthen :
696196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6962273c00b8Smrgelse case e in #(
6963273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6964273c00b8Smrgesac
696596402570Smrgfi
6966273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6967273c00b8Smrgesac
696896402570Smrgfi
6969765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6970765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
697196402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
697296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
697396402570Smrgfi
697496402570Smrg
697596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
697696402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
697796402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
697896402570Smrg	fi
697996402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6980765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6981765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6982765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6983765b7306Smrgthen :
6984765b7306Smrg  printf %s "(cached) " >&6
6985273c00b8Smrgelse case e in #(
6986273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
698796402570Smrg/* end confdefs.h.  */
698896402570Smrgint i;
698996402570Smrg_ACEOF
6990765b7306Smrgif ac_fn_c_try_compile "$LINENO"
6991765b7306Smrgthen :
699296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6993273c00b8Smrgelse case e in #(
6994273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6995273c00b8Smrgesac
699696402570Smrgfi
6997273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6998273c00b8Smrgesac
699996402570Smrgfi
7000765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7001765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
700296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
700396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
700496402570Smrgfi
700596402570Smrg
700696402570Smrgfound="no"
700796402570Smrg
700896402570Smrg	if test $found = "no" ; then
700940c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
701096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
701196402570Smrg		fi
701296402570Smrg
701340c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
701496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
701596402570Smrg		fi
701696402570Smrg
701796402570Smrg		CFLAGS="$CFLAGS -Wshadow"
701896402570Smrg
7019765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7020765b7306Smrgprintf %s "checking if $CC supports -Wshadow... " >&6; }
702196402570Smrg		cacheid=xorg_cv_cc_flag__Wshadow
7022765b7306Smrg		if eval test \${$cacheid+y}
7023765b7306Smrgthen :
7024765b7306Smrg  printf %s "(cached) " >&6
7025273c00b8Smrgelse case e in #(
7026273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
702796402570Smrg/* end confdefs.h.  */
702896402570Smrgint i;
702996402570Smrgint
7030765b7306Smrgmain (void)
703196402570Smrg{
703296402570Smrg
703396402570Smrg  ;
703496402570Smrg  return 0;
703596402570Smrg}
703696402570Smrg_ACEOF
7037765b7306Smrgif ac_fn_c_try_link "$LINENO"
7038765b7306Smrgthen :
703996402570Smrg  eval $cacheid=yes
7040273c00b8Smrgelse case e in #(
7041273c00b8Smrg  e) eval $cacheid=no ;;
7042273c00b8Smrgesac
704396402570Smrgfi
7044765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7045273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
7046273c00b8Smrgesac
704796402570Smrgfi
704896402570Smrg
704996402570Smrg
705096402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
705196402570Smrg
705296402570Smrg		eval supported=\$$cacheid
7053765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7054765b7306Smrgprintf "%s\n" "$supported" >&6; }
705596402570Smrg		if test "$supported" = "yes" ; then
705696402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
705796402570Smrg			found="yes"
705896402570Smrg		fi
705996402570Smrg	fi
706096402570Smrg
706196402570Smrg
706296402570Smrg
706396402570Smrg
706496402570Smrg
706596402570Smrg
706696402570Smrg
706796402570Smrg
706896402570Smrg
706996402570Smrg
707096402570Smrg
707196402570Smrg
707296402570Smrg
707396402570Smrg
707496402570Smrg
707596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
707696402570Smrg
707796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
707896402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7079765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7080765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7081765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7082765b7306Smrgthen :
7083765b7306Smrg  printf %s "(cached) " >&6
7084273c00b8Smrgelse case e in #(
7085273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
708696402570Smrg/* end confdefs.h.  */
708796402570Smrgint i;
708896402570Smrg_ACEOF
7089765b7306Smrgif ac_fn_c_try_compile "$LINENO"
7090765b7306Smrgthen :
709196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7092273c00b8Smrgelse case e in #(
7093273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7094273c00b8Smrgesac
709596402570Smrgfi
7096273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7097273c00b8Smrgesac
709896402570Smrgfi
7099765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7100765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
710196402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
710296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
710396402570Smrgfi
710496402570Smrg
710596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
710696402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
710796402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
710896402570Smrg	fi
710996402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7110765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7111765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7112765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7113765b7306Smrgthen :
7114765b7306Smrg  printf %s "(cached) " >&6
7115273c00b8Smrgelse case e in #(
7116273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
711796402570Smrg/* end confdefs.h.  */
711896402570Smrgint i;
711996402570Smrg_ACEOF
7120765b7306Smrgif ac_fn_c_try_compile "$LINENO"
7121765b7306Smrgthen :
712296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7123273c00b8Smrgelse case e in #(
7124273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7125273c00b8Smrgesac
712696402570Smrgfi
7127273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7128273c00b8Smrgesac
712996402570Smrgfi
7130765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7131765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
713296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
713396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
713496402570Smrgfi
713596402570Smrg
713696402570Smrgfound="no"
713796402570Smrg
713896402570Smrg	if test $found = "no" ; then
713940c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
714096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
714196402570Smrg		fi
714296402570Smrg
714340c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
714496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
714596402570Smrg		fi
714696402570Smrg
714740c5344fSmrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
714896402570Smrg
7149765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7150765b7306Smrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
715140c5344fSmrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7152765b7306Smrg		if eval test \${$cacheid+y}
7153765b7306Smrgthen :
7154765b7306Smrg  printf %s "(cached) " >&6
7155273c00b8Smrgelse case e in #(
7156273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
715796402570Smrg/* end confdefs.h.  */
715896402570Smrgint i;
715996402570Smrgint
7160765b7306Smrgmain (void)
716196402570Smrg{
716296402570Smrg
716396402570Smrg  ;
716496402570Smrg  return 0;
716596402570Smrg}
716696402570Smrg_ACEOF
7167765b7306Smrgif ac_fn_c_try_link "$LINENO"
7168765b7306Smrgthen :
716996402570Smrg  eval $cacheid=yes
7170273c00b8Smrgelse case e in #(
7171273c00b8Smrg  e) eval $cacheid=no ;;
7172273c00b8Smrgesac
717396402570Smrgfi
7174765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7175273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
7176273c00b8Smrgesac
717796402570Smrgfi
717896402570Smrg
717996402570Smrg
718096402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
718196402570Smrg
718296402570Smrg		eval supported=\$$cacheid
7183765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7184765b7306Smrgprintf "%s\n" "$supported" >&6; }
718596402570Smrg		if test "$supported" = "yes" ; then
718640c5344fSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
718796402570Smrg			found="yes"
718896402570Smrg		fi
718996402570Smrg	fi
719096402570Smrg
719196402570Smrg
719296402570Smrg
719396402570Smrg
719496402570Smrg
719596402570Smrg
719696402570Smrg
719796402570Smrg
719896402570Smrg
719996402570Smrg
720096402570Smrg
720196402570Smrg
720296402570Smrg
720396402570Smrg
720496402570Smrg
720596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
720696402570Smrg
720796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
720896402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7209765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7210765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7211765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7212765b7306Smrgthen :
7213765b7306Smrg  printf %s "(cached) " >&6
7214273c00b8Smrgelse case e in #(
7215273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
721696402570Smrg/* end confdefs.h.  */
721796402570Smrgint i;
721896402570Smrg_ACEOF
7219765b7306Smrgif ac_fn_c_try_compile "$LINENO"
7220765b7306Smrgthen :
722196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7222273c00b8Smrgelse case e in #(
7223273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7224273c00b8Smrgesac
722596402570Smrgfi
7226273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7227273c00b8Smrgesac
722896402570Smrgfi
7229765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7230765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
723196402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
723296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
723396402570Smrgfi
723496402570Smrg
723596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
723696402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
723796402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
723896402570Smrg	fi
723996402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7240765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7241765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7242765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7243765b7306Smrgthen :
7244765b7306Smrg  printf %s "(cached) " >&6
7245273c00b8Smrgelse case e in #(
7246273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
724796402570Smrg/* end confdefs.h.  */
724896402570Smrgint i;
724996402570Smrg_ACEOF
7250765b7306Smrgif ac_fn_c_try_compile "$LINENO"
7251765b7306Smrgthen :
725296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7253273c00b8Smrgelse case e in #(
7254273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7255273c00b8Smrgesac
725696402570Smrgfi
7257273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7258273c00b8Smrgesac
725996402570Smrgfi
7260765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7261765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
726296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
726396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
726496402570Smrgfi
726596402570Smrg
726696402570Smrgfound="no"
726796402570Smrg
726896402570Smrg	if test $found = "no" ; then
726940c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
727096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
727196402570Smrg		fi
727296402570Smrg
727340c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
727496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
727596402570Smrg		fi
727696402570Smrg
727740c5344fSmrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
727896402570Smrg
7279765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7280765b7306Smrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
728140c5344fSmrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7282765b7306Smrg		if eval test \${$cacheid+y}
7283765b7306Smrgthen :
7284765b7306Smrg  printf %s "(cached) " >&6
7285273c00b8Smrgelse case e in #(
7286273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
728796402570Smrg/* end confdefs.h.  */
728896402570Smrgint i;
728996402570Smrgint
7290765b7306Smrgmain (void)
729196402570Smrg{
729296402570Smrg
729396402570Smrg  ;
729496402570Smrg  return 0;
729596402570Smrg}
729696402570Smrg_ACEOF
7297765b7306Smrgif ac_fn_c_try_link "$LINENO"
7298765b7306Smrgthen :
729996402570Smrg  eval $cacheid=yes
7300273c00b8Smrgelse case e in #(
7301273c00b8Smrg  e) eval $cacheid=no ;;
7302273c00b8Smrgesac
730396402570Smrgfi
7304765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7305273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
7306273c00b8Smrgesac
730796402570Smrgfi
730896402570Smrg
730996402570Smrg
731096402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
731196402570Smrg
731296402570Smrg		eval supported=\$$cacheid
7313765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7314765b7306Smrgprintf "%s\n" "$supported" >&6; }
731596402570Smrg		if test "$supported" = "yes" ; then
731640c5344fSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
731796402570Smrg			found="yes"
731896402570Smrg		fi
731996402570Smrg	fi
732096402570Smrg
732196402570Smrg
732296402570Smrg
732396402570Smrg
732496402570Smrg
732596402570Smrg
732696402570Smrg
732796402570Smrg
732896402570Smrg
732996402570Smrg
733096402570Smrg
733196402570Smrg
733296402570Smrg
733396402570Smrg
733496402570Smrg
733596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
733696402570Smrg
733796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
733896402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7339765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7340765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7341765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7342765b7306Smrgthen :
7343765b7306Smrg  printf %s "(cached) " >&6
7344273c00b8Smrgelse case e in #(
7345273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
734696402570Smrg/* end confdefs.h.  */
734796402570Smrgint i;
734896402570Smrg_ACEOF
7349765b7306Smrgif ac_fn_c_try_compile "$LINENO"
7350765b7306Smrgthen :
735196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7352273c00b8Smrgelse case e in #(
7353273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7354273c00b8Smrgesac
735596402570Smrgfi
7356273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7357273c00b8Smrgesac
735896402570Smrgfi
7359765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7360765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
736196402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
736296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
736396402570Smrgfi
736496402570Smrg
736596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
736696402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
736796402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
736896402570Smrg	fi
736996402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7370765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7371765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7372765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7373765b7306Smrgthen :
7374765b7306Smrg  printf %s "(cached) " >&6
7375273c00b8Smrgelse case e in #(
7376273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
737796402570Smrg/* end confdefs.h.  */
737896402570Smrgint i;
737996402570Smrg_ACEOF
7380765b7306Smrgif ac_fn_c_try_compile "$LINENO"
7381765b7306Smrgthen :
738296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7383273c00b8Smrgelse case e in #(
7384273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7385273c00b8Smrgesac
738696402570Smrgfi
7387273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7388273c00b8Smrgesac
738996402570Smrgfi
7390765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7391765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
739296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
739396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
739496402570Smrgfi
739596402570Smrg
739696402570Smrgfound="no"
739796402570Smrg
739896402570Smrg	if test $found = "no" ; then
739940c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
740096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
740196402570Smrg		fi
740296402570Smrg
740340c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
740496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
740596402570Smrg		fi
740696402570Smrg
740740c5344fSmrg		CFLAGS="$CFLAGS -Wredundant-decls"
740896402570Smrg
7409765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7410765b7306Smrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; }
741140c5344fSmrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
7412765b7306Smrg		if eval test \${$cacheid+y}
7413765b7306Smrgthen :
7414765b7306Smrg  printf %s "(cached) " >&6
7415273c00b8Smrgelse case e in #(
7416273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
741796402570Smrg/* end confdefs.h.  */
741896402570Smrgint i;
741996402570Smrgint
7420765b7306Smrgmain (void)
742196402570Smrg{
742296402570Smrg
742396402570Smrg  ;
742496402570Smrg  return 0;
742596402570Smrg}
742696402570Smrg_ACEOF
7427765b7306Smrgif ac_fn_c_try_link "$LINENO"
7428765b7306Smrgthen :
742996402570Smrg  eval $cacheid=yes
7430273c00b8Smrgelse case e in #(
7431273c00b8Smrg  e) eval $cacheid=no ;;
7432273c00b8Smrgesac
743396402570Smrgfi
7434765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7435273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
7436273c00b8Smrgesac
743796402570Smrgfi
743896402570Smrg
743996402570Smrg
744096402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
744196402570Smrg
744296402570Smrg		eval supported=\$$cacheid
7443765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7444765b7306Smrgprintf "%s\n" "$supported" >&6; }
744596402570Smrg		if test "$supported" = "yes" ; then
744640c5344fSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
744796402570Smrg			found="yes"
744896402570Smrg		fi
744996402570Smrg	fi
745096402570Smrg
745196402570Smrg
745296402570Smrg
745396402570Smrg
745496402570Smrg
745596402570Smrg
745696402570Smrg
745796402570Smrg
745896402570Smrg
745996402570Smrg
746096402570Smrg
746196402570Smrg
746296402570Smrg
746396402570Smrg
746496402570Smrg
746596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
746696402570Smrg
746796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
746896402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7469765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7470765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7471765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7472765b7306Smrgthen :
7473765b7306Smrg  printf %s "(cached) " >&6
7474273c00b8Smrgelse case e in #(
7475273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
747696402570Smrg/* end confdefs.h.  */
747796402570Smrgint i;
747896402570Smrg_ACEOF
7479765b7306Smrgif ac_fn_c_try_compile "$LINENO"
7480765b7306Smrgthen :
748196402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7482273c00b8Smrgelse case e in #(
7483273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7484273c00b8Smrgesac
748596402570Smrgfi
7486273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7487273c00b8Smrgesac
748896402570Smrgfi
7489765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7490765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
749196402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
749296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
749396402570Smrgfi
749496402570Smrg
749596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
749696402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
749796402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
749896402570Smrg	fi
749996402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7500765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7501765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7502765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7503765b7306Smrgthen :
7504765b7306Smrg  printf %s "(cached) " >&6
7505273c00b8Smrgelse case e in #(
7506273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
750796402570Smrg/* end confdefs.h.  */
750896402570Smrgint i;
750996402570Smrg_ACEOF
7510765b7306Smrgif ac_fn_c_try_compile "$LINENO"
7511765b7306Smrgthen :
751296402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7513273c00b8Smrgelse case e in #(
7514273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7515273c00b8Smrgesac
751696402570Smrgfi
7517273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7518273c00b8Smrgesac
751996402570Smrgfi
7520765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7521765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
752296402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
752396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
752496402570Smrgfi
752596402570Smrg
752696402570Smrgfound="no"
752796402570Smrg
752896402570Smrg	if test $found = "no" ; then
752940c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
753096402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
753196402570Smrg		fi
753296402570Smrg
753340c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
753496402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
753596402570Smrg		fi
753696402570Smrg
753740c5344fSmrg		CFLAGS="$CFLAGS -Wlogical-op"
753896402570Smrg
7539765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7540765b7306Smrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; }
754140c5344fSmrg		cacheid=xorg_cv_cc_flag__Wlogical_op
7542765b7306Smrg		if eval test \${$cacheid+y}
7543765b7306Smrgthen :
7544765b7306Smrg  printf %s "(cached) " >&6
7545273c00b8Smrgelse case e in #(
7546273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
754796402570Smrg/* end confdefs.h.  */
754896402570Smrgint i;
754996402570Smrgint
7550765b7306Smrgmain (void)
755196402570Smrg{
755296402570Smrg
755396402570Smrg  ;
755496402570Smrg  return 0;
755596402570Smrg}
755696402570Smrg_ACEOF
7557765b7306Smrgif ac_fn_c_try_link "$LINENO"
7558765b7306Smrgthen :
755996402570Smrg  eval $cacheid=yes
7560273c00b8Smrgelse case e in #(
7561273c00b8Smrg  e) eval $cacheid=no ;;
7562273c00b8Smrgesac
756396402570Smrgfi
7564765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7565273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
7566273c00b8Smrgesac
756796402570Smrgfi
756896402570Smrg
756996402570Smrg
757096402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
757196402570Smrg
757296402570Smrg		eval supported=\$$cacheid
7573765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7574765b7306Smrgprintf "%s\n" "$supported" >&6; }
757596402570Smrg		if test "$supported" = "yes" ; then
757640c5344fSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
757796402570Smrg			found="yes"
757896402570Smrg		fi
757996402570Smrg	fi
758096402570Smrg
758196402570Smrg
758296402570Smrg
758396402570Smrg# These are currently disabled because they are noisy.  They will be enabled
758496402570Smrg# in the future once the codebase is sufficiently modernized to silence
758596402570Smrg# them.  For now, I don't want them to drown out the other warnings.
758696402570Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
758796402570Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
758840c5344fSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
758996402570Smrg
7590273c00b8Smrg# Turn some warnings into errors, so we don't accidentally get successful builds
759196402570Smrg# when there are problems that should be fixed.
759296402570Smrg
759396402570Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
759496402570Smrg
759596402570Smrg
759696402570Smrg
759796402570Smrg
759896402570Smrg
759996402570Smrg
760096402570Smrg
760196402570Smrg
760296402570Smrg
760396402570Smrg
760496402570Smrg
760596402570Smrg
760696402570Smrg
760796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
760896402570Smrg
760996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
761096402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7611765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7612765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7613765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7614765b7306Smrgthen :
7615765b7306Smrg  printf %s "(cached) " >&6
7616273c00b8Smrgelse case e in #(
7617273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
761896402570Smrg/* end confdefs.h.  */
761996402570Smrgint i;
762096402570Smrg_ACEOF
7621765b7306Smrgif ac_fn_c_try_compile "$LINENO"
7622765b7306Smrgthen :
762396402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7624273c00b8Smrgelse case e in #(
7625273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7626273c00b8Smrgesac
762796402570Smrgfi
7628273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7629273c00b8Smrgesac
763096402570Smrgfi
7631765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7632765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
763396402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
763496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
763596402570Smrgfi
763696402570Smrg
763796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
763896402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
763996402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
764096402570Smrg	fi
764196402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7642765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7643765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7644765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7645765b7306Smrgthen :
7646765b7306Smrg  printf %s "(cached) " >&6
7647273c00b8Smrgelse case e in #(
7648273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
764996402570Smrg/* end confdefs.h.  */
765096402570Smrgint i;
765196402570Smrg_ACEOF
7652765b7306Smrgif ac_fn_c_try_compile "$LINENO"
7653765b7306Smrgthen :
765496402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7655273c00b8Smrgelse case e in #(
7656273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7657273c00b8Smrgesac
765896402570Smrgfi
7659273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7660273c00b8Smrgesac
766196402570Smrgfi
7662765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7663765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
766496402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
766596402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
766696402570Smrgfi
766796402570Smrg
766896402570Smrgfound="no"
766996402570Smrg
767096402570Smrg	if test $found = "no" ; then
767140c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
767296402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
767396402570Smrg		fi
767496402570Smrg
767540c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
767696402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
767796402570Smrg		fi
767896402570Smrg
767996402570Smrg		CFLAGS="$CFLAGS -Werror=implicit"
768096402570Smrg
7681765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7682765b7306Smrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; }
76838abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_implicit
7684765b7306Smrg		if eval test \${$cacheid+y}
7685765b7306Smrgthen :
7686765b7306Smrg  printf %s "(cached) " >&6
7687273c00b8Smrgelse case e in #(
7688273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
768996402570Smrg/* end confdefs.h.  */
769096402570Smrgint i;
769196402570Smrgint
7692765b7306Smrgmain (void)
769396402570Smrg{
769496402570Smrg
769596402570Smrg  ;
769696402570Smrg  return 0;
769796402570Smrg}
769896402570Smrg_ACEOF
7699765b7306Smrgif ac_fn_c_try_link "$LINENO"
7700765b7306Smrgthen :
770196402570Smrg  eval $cacheid=yes
7702273c00b8Smrgelse case e in #(
7703273c00b8Smrg  e) eval $cacheid=no ;;
7704273c00b8Smrgesac
770596402570Smrgfi
7706765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7707273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
7708273c00b8Smrgesac
770996402570Smrgfi
771096402570Smrg
771196402570Smrg
771296402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
771396402570Smrg
771496402570Smrg		eval supported=\$$cacheid
7715765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7716765b7306Smrgprintf "%s\n" "$supported" >&6; }
771796402570Smrg		if test "$supported" = "yes" ; then
771896402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
771996402570Smrg			found="yes"
772096402570Smrg		fi
772196402570Smrg	fi
772296402570Smrg
772396402570Smrg	if test $found = "no" ; then
772440c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
772596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
772696402570Smrg		fi
772796402570Smrg
772840c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
772996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
773096402570Smrg		fi
773196402570Smrg
773296402570Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
773396402570Smrg
7734765b7306Smrg		{ 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
7735765b7306Smrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
77368abc0ccfSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7737765b7306Smrg		if eval test \${$cacheid+y}
7738765b7306Smrgthen :
7739765b7306Smrg  printf %s "(cached) " >&6
7740273c00b8Smrgelse case e in #(
7741273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
774296402570Smrg/* end confdefs.h.  */
774396402570Smrgint i;
774496402570Smrgint
7745765b7306Smrgmain (void)
774696402570Smrg{
774796402570Smrg
774896402570Smrg  ;
774996402570Smrg  return 0;
775096402570Smrg}
775196402570Smrg_ACEOF
7752765b7306Smrgif ac_fn_c_try_link "$LINENO"
7753765b7306Smrgthen :
775496402570Smrg  eval $cacheid=yes
7755273c00b8Smrgelse case e in #(
7756273c00b8Smrg  e) eval $cacheid=no ;;
7757273c00b8Smrgesac
775896402570Smrgfi
7759765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7760273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
7761273c00b8Smrgesac
776296402570Smrgfi
776396402570Smrg
776496402570Smrg
776596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
776696402570Smrg
776796402570Smrg		eval supported=\$$cacheid
7768765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7769765b7306Smrgprintf "%s\n" "$supported" >&6; }
777096402570Smrg		if test "$supported" = "yes" ; then
777196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
777296402570Smrg			found="yes"
777396402570Smrg		fi
777496402570Smrg	fi
777596402570Smrg
777696402570Smrg
777796402570Smrg
777896402570Smrg
777996402570Smrg
778096402570Smrg
778196402570Smrg
778296402570Smrg
778396402570Smrg
778496402570Smrg
778596402570Smrg
778696402570Smrg
778796402570Smrg
778896402570Smrg
778996402570Smrg
779096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
779196402570Smrg
779296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
779396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7794765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7795765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7796765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7797765b7306Smrgthen :
7798765b7306Smrg  printf %s "(cached) " >&6
7799273c00b8Smrgelse case e in #(
7800273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
780196402570Smrg/* end confdefs.h.  */
780296402570Smrgint i;
780396402570Smrg_ACEOF
7804765b7306Smrgif ac_fn_c_try_compile "$LINENO"
7805765b7306Smrgthen :
780696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7807273c00b8Smrgelse case e in #(
7808273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7809273c00b8Smrgesac
781096402570Smrgfi
7811273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7812273c00b8Smrgesac
781396402570Smrgfi
7814765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7815765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
781696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
781796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
781896402570Smrgfi
781996402570Smrg
782096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
782196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
782296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
782396402570Smrg	fi
782496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7825765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7826765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7827765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7828765b7306Smrgthen :
7829765b7306Smrg  printf %s "(cached) " >&6
7830273c00b8Smrgelse case e in #(
7831273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783296402570Smrg/* end confdefs.h.  */
783396402570Smrgint i;
783496402570Smrg_ACEOF
7835765b7306Smrgif ac_fn_c_try_compile "$LINENO"
7836765b7306Smrgthen :
783796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7838273c00b8Smrgelse case e in #(
7839273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7840273c00b8Smrgesac
784196402570Smrgfi
7842273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7843273c00b8Smrgesac
784496402570Smrgfi
7845765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7846765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
784796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
784896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
784996402570Smrgfi
785096402570Smrg
785196402570Smrgfound="no"
785296402570Smrg
785396402570Smrg	if test $found = "no" ; then
785440c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
785596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
785696402570Smrg		fi
785796402570Smrg
785840c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
785996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
786096402570Smrg		fi
786196402570Smrg
786296402570Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
786396402570Smrg
7864765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7865765b7306Smrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; }
78668abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
7867765b7306Smrg		if eval test \${$cacheid+y}
7868765b7306Smrgthen :
7869765b7306Smrg  printf %s "(cached) " >&6
7870273c00b8Smrgelse case e in #(
7871273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
787296402570Smrg/* end confdefs.h.  */
787396402570Smrgint i;
787496402570Smrgint
7875765b7306Smrgmain (void)
787696402570Smrg{
787796402570Smrg
787896402570Smrg  ;
787996402570Smrg  return 0;
788096402570Smrg}
788196402570Smrg_ACEOF
7882765b7306Smrgif ac_fn_c_try_link "$LINENO"
7883765b7306Smrgthen :
788496402570Smrg  eval $cacheid=yes
7885273c00b8Smrgelse case e in #(
7886273c00b8Smrg  e) eval $cacheid=no ;;
7887273c00b8Smrgesac
788896402570Smrgfi
7889765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7890273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
7891273c00b8Smrgesac
789296402570Smrgfi
789396402570Smrg
789496402570Smrg
789596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
789696402570Smrg
789796402570Smrg		eval supported=\$$cacheid
7898765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7899765b7306Smrgprintf "%s\n" "$supported" >&6; }
790096402570Smrg		if test "$supported" = "yes" ; then
790196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
790296402570Smrg			found="yes"
790396402570Smrg		fi
790496402570Smrg	fi
790596402570Smrg
790696402570Smrg
790796402570Smrg
790896402570Smrg
790996402570Smrg
791096402570Smrg
791196402570Smrg
791296402570Smrg
791396402570Smrg
791496402570Smrg
791596402570Smrg
791696402570Smrg
791796402570Smrg
791896402570Smrg
791996402570Smrg
792096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
792196402570Smrg
792296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
792396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7925765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7926765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7927765b7306Smrgthen :
7928765b7306Smrg  printf %s "(cached) " >&6
7929273c00b8Smrgelse case e in #(
7930273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
793196402570Smrg/* end confdefs.h.  */
793296402570Smrgint i;
793396402570Smrg_ACEOF
7934765b7306Smrgif ac_fn_c_try_compile "$LINENO"
7935765b7306Smrgthen :
793696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7937273c00b8Smrgelse case e in #(
7938273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7939273c00b8Smrgesac
794096402570Smrgfi
7941273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7942273c00b8Smrgesac
794396402570Smrgfi
7944765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7945765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
794696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
794796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
794896402570Smrgfi
794996402570Smrg
795096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
795196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
795296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
795396402570Smrg	fi
795496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7955765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7956765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7957765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7958765b7306Smrgthen :
7959765b7306Smrg  printf %s "(cached) " >&6
7960273c00b8Smrgelse case e in #(
7961273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
796296402570Smrg/* end confdefs.h.  */
796396402570Smrgint i;
796496402570Smrg_ACEOF
7965765b7306Smrgif ac_fn_c_try_compile "$LINENO"
7966765b7306Smrgthen :
796796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7968273c00b8Smrgelse case e in #(
7969273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7970273c00b8Smrgesac
797196402570Smrgfi
7972273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7973273c00b8Smrgesac
797496402570Smrgfi
7975765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7976765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
797796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
797896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
797996402570Smrgfi
798096402570Smrg
798196402570Smrgfound="no"
798296402570Smrg
798396402570Smrg	if test $found = "no" ; then
798440c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
798596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
798696402570Smrg		fi
798796402570Smrg
798840c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
798996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
799096402570Smrg		fi
799196402570Smrg
799296402570Smrg		CFLAGS="$CFLAGS -Werror=init-self"
799396402570Smrg
7994765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7995765b7306Smrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; }
79968abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_init_self
7997765b7306Smrg		if eval test \${$cacheid+y}
7998765b7306Smrgthen :
7999765b7306Smrg  printf %s "(cached) " >&6
8000273c00b8Smrgelse case e in #(
8001273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
800296402570Smrg/* end confdefs.h.  */
800396402570Smrgint i;
800496402570Smrgint
8005765b7306Smrgmain (void)
800696402570Smrg{
800796402570Smrg
800896402570Smrg  ;
800996402570Smrg  return 0;
801096402570Smrg}
801196402570Smrg_ACEOF
8012765b7306Smrgif ac_fn_c_try_link "$LINENO"
8013765b7306Smrgthen :
801496402570Smrg  eval $cacheid=yes
8015273c00b8Smrgelse case e in #(
8016273c00b8Smrg  e) eval $cacheid=no ;;
8017273c00b8Smrgesac
801896402570Smrgfi
8019765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8020273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
8021273c00b8Smrgesac
802296402570Smrgfi
802396402570Smrg
802496402570Smrg
802596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
802696402570Smrg
802796402570Smrg		eval supported=\$$cacheid
8028765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8029765b7306Smrgprintf "%s\n" "$supported" >&6; }
803096402570Smrg		if test "$supported" = "yes" ; then
803196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
803296402570Smrg			found="yes"
803396402570Smrg		fi
803496402570Smrg	fi
803596402570Smrg
803696402570Smrg
803796402570Smrg
803896402570Smrg
803996402570Smrg
804096402570Smrg
804196402570Smrg
804296402570Smrg
804396402570Smrg
804496402570Smrg
804596402570Smrg
804696402570Smrg
804796402570Smrg
804896402570Smrg
804996402570Smrg
805096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
805196402570Smrg
805296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
805396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8054765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8055765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8056765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8057765b7306Smrgthen :
8058765b7306Smrg  printf %s "(cached) " >&6
8059273c00b8Smrgelse case e in #(
8060273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
806196402570Smrg/* end confdefs.h.  */
806296402570Smrgint i;
806396402570Smrg_ACEOF
8064765b7306Smrgif ac_fn_c_try_compile "$LINENO"
8065765b7306Smrgthen :
806696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8067273c00b8Smrgelse case e in #(
8068273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8069273c00b8Smrgesac
807096402570Smrgfi
8071273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8072273c00b8Smrgesac
807396402570Smrgfi
8074765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8075765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
807696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
807796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
807896402570Smrgfi
807996402570Smrg
808096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
808196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
808296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
808396402570Smrg	fi
808496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8085765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8086765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8087765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8088765b7306Smrgthen :
8089765b7306Smrg  printf %s "(cached) " >&6
8090273c00b8Smrgelse case e in #(
8091273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
809296402570Smrg/* end confdefs.h.  */
809396402570Smrgint i;
809496402570Smrg_ACEOF
8095765b7306Smrgif ac_fn_c_try_compile "$LINENO"
8096765b7306Smrgthen :
809796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8098273c00b8Smrgelse case e in #(
8099273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8100273c00b8Smrgesac
810196402570Smrgfi
8102273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8103273c00b8Smrgesac
810496402570Smrgfi
8105765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8106765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
810796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
810896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
810996402570Smrgfi
811096402570Smrg
811196402570Smrgfound="no"
811296402570Smrg
811396402570Smrg	if test $found = "no" ; then
811440c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
811596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
811696402570Smrg		fi
811796402570Smrg
811840c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
811996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
812096402570Smrg		fi
812196402570Smrg
812296402570Smrg		CFLAGS="$CFLAGS -Werror=main"
812396402570Smrg
8124765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8125765b7306Smrgprintf %s "checking if $CC supports -Werror=main... " >&6; }
81268abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_main
8127765b7306Smrg		if eval test \${$cacheid+y}
8128765b7306Smrgthen :
8129765b7306Smrg  printf %s "(cached) " >&6
8130273c00b8Smrgelse case e in #(
8131273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
813296402570Smrg/* end confdefs.h.  */
813396402570Smrgint i;
813496402570Smrgint
8135765b7306Smrgmain (void)
813696402570Smrg{
813796402570Smrg
813896402570Smrg  ;
813996402570Smrg  return 0;
814096402570Smrg}
814196402570Smrg_ACEOF
8142765b7306Smrgif ac_fn_c_try_link "$LINENO"
8143765b7306Smrgthen :
814496402570Smrg  eval $cacheid=yes
8145273c00b8Smrgelse case e in #(
8146273c00b8Smrg  e) eval $cacheid=no ;;
8147273c00b8Smrgesac
814896402570Smrgfi
8149765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8150273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
8151273c00b8Smrgesac
815296402570Smrgfi
815396402570Smrg
815496402570Smrg
815596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
815696402570Smrg
815796402570Smrg		eval supported=\$$cacheid
8158765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8159765b7306Smrgprintf "%s\n" "$supported" >&6; }
816096402570Smrg		if test "$supported" = "yes" ; then
816196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
816296402570Smrg			found="yes"
816396402570Smrg		fi
816496402570Smrg	fi
816596402570Smrg
816696402570Smrg
816796402570Smrg
816896402570Smrg
816996402570Smrg
817096402570Smrg
817196402570Smrg
817296402570Smrg
817396402570Smrg
817496402570Smrg
817596402570Smrg
817696402570Smrg
817796402570Smrg
817896402570Smrg
817996402570Smrg
818096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
818196402570Smrg
818296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
818396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8184765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8185765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8186765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8187765b7306Smrgthen :
8188765b7306Smrg  printf %s "(cached) " >&6
8189273c00b8Smrgelse case e in #(
8190273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
819196402570Smrg/* end confdefs.h.  */
819296402570Smrgint i;
819396402570Smrg_ACEOF
8194765b7306Smrgif ac_fn_c_try_compile "$LINENO"
8195765b7306Smrgthen :
819696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8197273c00b8Smrgelse case e in #(
8198273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8199273c00b8Smrgesac
820096402570Smrgfi
8201273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8202273c00b8Smrgesac
820396402570Smrgfi
8204765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8205765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
820696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
820796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
820896402570Smrgfi
820996402570Smrg
821096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
821196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
821296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
821396402570Smrg	fi
821496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8215765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8216765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8217765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8218765b7306Smrgthen :
8219765b7306Smrg  printf %s "(cached) " >&6
8220273c00b8Smrgelse case e in #(
8221273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
822296402570Smrg/* end confdefs.h.  */
822396402570Smrgint i;
822496402570Smrg_ACEOF
8225765b7306Smrgif ac_fn_c_try_compile "$LINENO"
8226765b7306Smrgthen :
822796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8228273c00b8Smrgelse case e in #(
8229273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8230273c00b8Smrgesac
823196402570Smrgfi
8232273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8233273c00b8Smrgesac
823496402570Smrgfi
8235765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8236765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
823796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
823896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
823996402570Smrgfi
824096402570Smrg
824196402570Smrgfound="no"
824296402570Smrg
824396402570Smrg	if test $found = "no" ; then
824440c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
824596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
824696402570Smrg		fi
824796402570Smrg
824840c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
824996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
825096402570Smrg		fi
825196402570Smrg
825296402570Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
825396402570Smrg
8254765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8255765b7306Smrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
82568abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8257765b7306Smrg		if eval test \${$cacheid+y}
8258765b7306Smrgthen :
8259765b7306Smrg  printf %s "(cached) " >&6
8260273c00b8Smrgelse case e in #(
8261273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
826296402570Smrg/* end confdefs.h.  */
826396402570Smrgint i;
826496402570Smrgint
8265765b7306Smrgmain (void)
826696402570Smrg{
826796402570Smrg
826896402570Smrg  ;
826996402570Smrg  return 0;
827096402570Smrg}
827196402570Smrg_ACEOF
8272765b7306Smrgif ac_fn_c_try_link "$LINENO"
8273765b7306Smrgthen :
827496402570Smrg  eval $cacheid=yes
8275273c00b8Smrgelse case e in #(
8276273c00b8Smrg  e) eval $cacheid=no ;;
8277273c00b8Smrgesac
827896402570Smrgfi
8279765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8280273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
8281273c00b8Smrgesac
828296402570Smrgfi
828396402570Smrg
828496402570Smrg
828596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
828696402570Smrg
828796402570Smrg		eval supported=\$$cacheid
8288765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8289765b7306Smrgprintf "%s\n" "$supported" >&6; }
829096402570Smrg		if test "$supported" = "yes" ; then
829196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
829296402570Smrg			found="yes"
829396402570Smrg		fi
829496402570Smrg	fi
829596402570Smrg
829696402570Smrg
829796402570Smrg
829896402570Smrg
829996402570Smrg
830096402570Smrg
830196402570Smrg
830296402570Smrg
830396402570Smrg
830496402570Smrg
830596402570Smrg
830696402570Smrg
830796402570Smrg
830896402570Smrg
830996402570Smrg
831096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
831196402570Smrg
831296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
831396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8314765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8315765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8316765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8317765b7306Smrgthen :
8318765b7306Smrg  printf %s "(cached) " >&6
8319273c00b8Smrgelse case e in #(
8320273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
832196402570Smrg/* end confdefs.h.  */
832296402570Smrgint i;
832396402570Smrg_ACEOF
8324765b7306Smrgif ac_fn_c_try_compile "$LINENO"
8325765b7306Smrgthen :
832696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8327273c00b8Smrgelse case e in #(
8328273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8329273c00b8Smrgesac
833096402570Smrgfi
8331273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8332273c00b8Smrgesac
833396402570Smrgfi
8334765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8335765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
833696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
833796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
833896402570Smrgfi
833996402570Smrg
834096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
834196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
834296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
834396402570Smrg	fi
834496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8345765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8346765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8347765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8348765b7306Smrgthen :
8349765b7306Smrg  printf %s "(cached) " >&6
8350273c00b8Smrgelse case e in #(
8351273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
835296402570Smrg/* end confdefs.h.  */
835396402570Smrgint i;
835496402570Smrg_ACEOF
8355765b7306Smrgif ac_fn_c_try_compile "$LINENO"
8356765b7306Smrgthen :
835796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8358273c00b8Smrgelse case e in #(
8359273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8360273c00b8Smrgesac
836196402570Smrgfi
8362273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8363273c00b8Smrgesac
836496402570Smrgfi
8365765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8366765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
836796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
836896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
836996402570Smrgfi
837096402570Smrg
837196402570Smrgfound="no"
837296402570Smrg
837396402570Smrg	if test $found = "no" ; then
837440c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
837596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
837696402570Smrg		fi
837796402570Smrg
837840c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
837996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
838096402570Smrg		fi
838196402570Smrg
838296402570Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
838396402570Smrg
8384765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8385765b7306Smrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
83868abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8387765b7306Smrg		if eval test \${$cacheid+y}
8388765b7306Smrgthen :
8389765b7306Smrg  printf %s "(cached) " >&6
8390273c00b8Smrgelse case e in #(
8391273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
839296402570Smrg/* end confdefs.h.  */
839396402570Smrgint i;
839496402570Smrgint
8395765b7306Smrgmain (void)
839696402570Smrg{
839796402570Smrg
839896402570Smrg  ;
839996402570Smrg  return 0;
840096402570Smrg}
840196402570Smrg_ACEOF
8402765b7306Smrgif ac_fn_c_try_link "$LINENO"
8403765b7306Smrgthen :
840496402570Smrg  eval $cacheid=yes
8405273c00b8Smrgelse case e in #(
8406273c00b8Smrg  e) eval $cacheid=no ;;
8407273c00b8Smrgesac
840896402570Smrgfi
8409765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8410273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
8411273c00b8Smrgesac
841296402570Smrgfi
841396402570Smrg
841496402570Smrg
841596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
841696402570Smrg
841796402570Smrg		eval supported=\$$cacheid
8418765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8419765b7306Smrgprintf "%s\n" "$supported" >&6; }
842096402570Smrg		if test "$supported" = "yes" ; then
842196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
842296402570Smrg			found="yes"
842396402570Smrg		fi
842496402570Smrg	fi
842596402570Smrg
842696402570Smrg
842796402570Smrg
842896402570Smrg
842996402570Smrg
843096402570Smrg
843196402570Smrg
843296402570Smrg
843396402570Smrg
843496402570Smrg
843596402570Smrg
843696402570Smrg
843796402570Smrg
843896402570Smrg
843996402570Smrg
844096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
844196402570Smrg
844296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
844396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8444765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8445765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8446765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8447765b7306Smrgthen :
8448765b7306Smrg  printf %s "(cached) " >&6
8449273c00b8Smrgelse case e in #(
8450273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
845196402570Smrg/* end confdefs.h.  */
845296402570Smrgint i;
845396402570Smrg_ACEOF
8454765b7306Smrgif ac_fn_c_try_compile "$LINENO"
8455765b7306Smrgthen :
845696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8457273c00b8Smrgelse case e in #(
8458273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8459273c00b8Smrgesac
846096402570Smrgfi
8461273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8462273c00b8Smrgesac
846396402570Smrgfi
8464765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8465765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
846696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
846796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
846896402570Smrgfi
846996402570Smrg
847096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
847196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
847296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
847396402570Smrg	fi
847496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8475765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8476765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8477765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8478765b7306Smrgthen :
8479765b7306Smrg  printf %s "(cached) " >&6
8480273c00b8Smrgelse case e in #(
8481273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
848296402570Smrg/* end confdefs.h.  */
848396402570Smrgint i;
848496402570Smrg_ACEOF
8485765b7306Smrgif ac_fn_c_try_compile "$LINENO"
8486765b7306Smrgthen :
848796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8488273c00b8Smrgelse case e in #(
8489273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8490273c00b8Smrgesac
849196402570Smrgfi
8492273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8493273c00b8Smrgesac
849496402570Smrgfi
8495765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8496765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
849796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
849896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
849996402570Smrgfi
850096402570Smrg
850196402570Smrgfound="no"
850296402570Smrg
850396402570Smrg	if test $found = "no" ; then
850440c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
850596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
850696402570Smrg		fi
850796402570Smrg
850840c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
850996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
851096402570Smrg		fi
851196402570Smrg
851296402570Smrg		CFLAGS="$CFLAGS -Werror=return-type"
851396402570Smrg
8514765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8515765b7306Smrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; }
85168abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_return_type
8517765b7306Smrg		if eval test \${$cacheid+y}
8518765b7306Smrgthen :
8519765b7306Smrg  printf %s "(cached) " >&6
8520273c00b8Smrgelse case e in #(
8521273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
852296402570Smrg/* end confdefs.h.  */
852396402570Smrgint i;
852496402570Smrgint
8525765b7306Smrgmain (void)
852696402570Smrg{
852796402570Smrg
852896402570Smrg  ;
852996402570Smrg  return 0;
853096402570Smrg}
853196402570Smrg_ACEOF
8532765b7306Smrgif ac_fn_c_try_link "$LINENO"
8533765b7306Smrgthen :
853496402570Smrg  eval $cacheid=yes
8535273c00b8Smrgelse case e in #(
8536273c00b8Smrg  e) eval $cacheid=no ;;
8537273c00b8Smrgesac
853896402570Smrgfi
8539765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8540273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
8541273c00b8Smrgesac
854296402570Smrgfi
854396402570Smrg
854496402570Smrg
854596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
854696402570Smrg
854796402570Smrg		eval supported=\$$cacheid
8548765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8549765b7306Smrgprintf "%s\n" "$supported" >&6; }
855096402570Smrg		if test "$supported" = "yes" ; then
855196402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
855296402570Smrg			found="yes"
855396402570Smrg		fi
855496402570Smrg	fi
855596402570Smrg
855696402570Smrg	if test $found = "no" ; then
855740c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
855896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
855996402570Smrg		fi
856096402570Smrg
856140c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
856296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
856396402570Smrg		fi
856496402570Smrg
856596402570Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
856696402570Smrg
8567765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8568765b7306Smrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
85698abc0ccfSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8570765b7306Smrg		if eval test \${$cacheid+y}
8571765b7306Smrgthen :
8572765b7306Smrg  printf %s "(cached) " >&6
8573273c00b8Smrgelse case e in #(
8574273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
857596402570Smrg/* end confdefs.h.  */
857696402570Smrgint i;
857796402570Smrgint
8578765b7306Smrgmain (void)
857996402570Smrg{
858096402570Smrg
858196402570Smrg  ;
858296402570Smrg  return 0;
858396402570Smrg}
858496402570Smrg_ACEOF
8585765b7306Smrgif ac_fn_c_try_link "$LINENO"
8586765b7306Smrgthen :
858796402570Smrg  eval $cacheid=yes
8588273c00b8Smrgelse case e in #(
8589273c00b8Smrg  e) eval $cacheid=no ;;
8590273c00b8Smrgesac
859196402570Smrgfi
8592765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8593273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
8594273c00b8Smrgesac
859596402570Smrgfi
859696402570Smrg
859796402570Smrg
859896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
859996402570Smrg
860096402570Smrg		eval supported=\$$cacheid
8601765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8602765b7306Smrgprintf "%s\n" "$supported" >&6; }
860396402570Smrg		if test "$supported" = "yes" ; then
860496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
860596402570Smrg			found="yes"
860696402570Smrg		fi
860796402570Smrg	fi
860896402570Smrg
860996402570Smrg
861096402570Smrg
861196402570Smrg
861296402570Smrg
861396402570Smrg
861496402570Smrg
861596402570Smrg
861696402570Smrg
861796402570Smrg
861896402570Smrg
861996402570Smrg
862096402570Smrg
862196402570Smrg
862296402570Smrg
862396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
862496402570Smrg
862596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
862696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8627765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8628765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8629765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8630765b7306Smrgthen :
8631765b7306Smrg  printf %s "(cached) " >&6
8632273c00b8Smrgelse case e in #(
8633273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
863496402570Smrg/* end confdefs.h.  */
863596402570Smrgint i;
863696402570Smrg_ACEOF
8637765b7306Smrgif ac_fn_c_try_compile "$LINENO"
8638765b7306Smrgthen :
863996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8640273c00b8Smrgelse case e in #(
8641273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8642273c00b8Smrgesac
864396402570Smrgfi
8644273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8645273c00b8Smrgesac
864696402570Smrgfi
8647765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8648765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
864996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
865096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
865196402570Smrgfi
865296402570Smrg
865396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
865496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
865596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
865696402570Smrg	fi
865796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8658765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8659765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8660765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8661765b7306Smrgthen :
8662765b7306Smrg  printf %s "(cached) " >&6
8663273c00b8Smrgelse case e in #(
8664273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
866596402570Smrg/* end confdefs.h.  */
866696402570Smrgint i;
866796402570Smrg_ACEOF
8668765b7306Smrgif ac_fn_c_try_compile "$LINENO"
8669765b7306Smrgthen :
867096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8671273c00b8Smrgelse case e in #(
8672273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8673273c00b8Smrgesac
867496402570Smrgfi
8675273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8676273c00b8Smrgesac
867796402570Smrgfi
8678765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8679765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
868096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
868196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
868296402570Smrgfi
868396402570Smrg
868496402570Smrgfound="no"
868596402570Smrg
868696402570Smrg	if test $found = "no" ; then
868740c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
868896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
868996402570Smrg		fi
869096402570Smrg
869140c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
869296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
869396402570Smrg		fi
869496402570Smrg
869596402570Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
869696402570Smrg
8697765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8698765b7306Smrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
86998abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8700765b7306Smrg		if eval test \${$cacheid+y}
8701765b7306Smrgthen :
8702765b7306Smrg  printf %s "(cached) " >&6
8703273c00b8Smrgelse case e in #(
8704273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
870596402570Smrg/* end confdefs.h.  */
870696402570Smrgint i;
870796402570Smrgint
8708765b7306Smrgmain (void)
870996402570Smrg{
871096402570Smrg
871196402570Smrg  ;
871296402570Smrg  return 0;
871396402570Smrg}
871496402570Smrg_ACEOF
8715765b7306Smrgif ac_fn_c_try_link "$LINENO"
8716765b7306Smrgthen :
871796402570Smrg  eval $cacheid=yes
8718273c00b8Smrgelse case e in #(
8719273c00b8Smrg  e) eval $cacheid=no ;;
8720273c00b8Smrgesac
872196402570Smrgfi
8722765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8723273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
8724273c00b8Smrgesac
872596402570Smrgfi
872696402570Smrg
872796402570Smrg
872896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
872996402570Smrg
873096402570Smrg		eval supported=\$$cacheid
8731765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8732765b7306Smrgprintf "%s\n" "$supported" >&6; }
873396402570Smrg		if test "$supported" = "yes" ; then
873496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
873596402570Smrg			found="yes"
873696402570Smrg		fi
873796402570Smrg	fi
873896402570Smrg
873996402570Smrg
874096402570Smrg
874196402570Smrg
874296402570Smrg
874396402570Smrg
874496402570Smrg
874596402570Smrg
874696402570Smrg
874796402570Smrg
874896402570Smrg
874996402570Smrg
875096402570Smrg
875196402570Smrg
875296402570Smrg
875396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
875496402570Smrg
875596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
875696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8757765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8758765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8759765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8760765b7306Smrgthen :
8761765b7306Smrg  printf %s "(cached) " >&6
8762273c00b8Smrgelse case e in #(
8763273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
876496402570Smrg/* end confdefs.h.  */
876596402570Smrgint i;
876696402570Smrg_ACEOF
8767765b7306Smrgif ac_fn_c_try_compile "$LINENO"
8768765b7306Smrgthen :
876996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8770273c00b8Smrgelse case e in #(
8771273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8772273c00b8Smrgesac
877396402570Smrgfi
8774273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8775273c00b8Smrgesac
877696402570Smrgfi
8777765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8778765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
877996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
878096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
878196402570Smrgfi
878296402570Smrg
878396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
878496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
878596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
878696402570Smrg	fi
878796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8788765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8789765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8790765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8791765b7306Smrgthen :
8792765b7306Smrg  printf %s "(cached) " >&6
8793273c00b8Smrgelse case e in #(
8794273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
879596402570Smrg/* end confdefs.h.  */
879696402570Smrgint i;
879796402570Smrg_ACEOF
8798765b7306Smrgif ac_fn_c_try_compile "$LINENO"
8799765b7306Smrgthen :
880096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8801273c00b8Smrgelse case e in #(
8802273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8803273c00b8Smrgesac
880496402570Smrgfi
8805273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8806273c00b8Smrgesac
880796402570Smrgfi
8808765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8809765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
881096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
881196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
881296402570Smrgfi
881396402570Smrg
881496402570Smrgfound="no"
881596402570Smrg
881696402570Smrg	if test $found = "no" ; then
881740c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
881896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
881996402570Smrg		fi
882096402570Smrg
882140c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
882296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
882396402570Smrg		fi
882496402570Smrg
882596402570Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
882696402570Smrg
8827765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8828765b7306Smrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
88298abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8830765b7306Smrg		if eval test \${$cacheid+y}
8831765b7306Smrgthen :
8832765b7306Smrg  printf %s "(cached) " >&6
8833273c00b8Smrgelse case e in #(
8834273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
883596402570Smrg/* end confdefs.h.  */
883696402570Smrgint i;
883796402570Smrgint
8838765b7306Smrgmain (void)
883996402570Smrg{
884096402570Smrg
884196402570Smrg  ;
884296402570Smrg  return 0;
884396402570Smrg}
884496402570Smrg_ACEOF
8845765b7306Smrgif ac_fn_c_try_link "$LINENO"
8846765b7306Smrgthen :
884796402570Smrg  eval $cacheid=yes
8848273c00b8Smrgelse case e in #(
8849273c00b8Smrg  e) eval $cacheid=no ;;
8850273c00b8Smrgesac
885196402570Smrgfi
8852765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8853273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
8854273c00b8Smrgesac
885596402570Smrgfi
885696402570Smrg
885796402570Smrg
885896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
885996402570Smrg
886096402570Smrg		eval supported=\$$cacheid
8861765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8862765b7306Smrgprintf "%s\n" "$supported" >&6; }
886396402570Smrg		if test "$supported" = "yes" ; then
886496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
886596402570Smrg			found="yes"
886696402570Smrg		fi
886796402570Smrg	fi
886896402570Smrg
886996402570Smrg
887096402570Smrg
887196402570Smrg
887296402570Smrg
887396402570Smrg
887496402570Smrg
887596402570Smrg
887696402570Smrg
887796402570Smrg
887896402570Smrg
887996402570Smrg
888096402570Smrg
888196402570Smrg
888296402570Smrg
888396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
888496402570Smrg
888596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
888696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8887765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8888765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8889765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8890765b7306Smrgthen :
8891765b7306Smrg  printf %s "(cached) " >&6
8892273c00b8Smrgelse case e in #(
8893273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
889496402570Smrg/* end confdefs.h.  */
889596402570Smrgint i;
889696402570Smrg_ACEOF
8897765b7306Smrgif ac_fn_c_try_compile "$LINENO"
8898765b7306Smrgthen :
889996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8900273c00b8Smrgelse case e in #(
8901273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8902273c00b8Smrgesac
890396402570Smrgfi
8904273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8905273c00b8Smrgesac
890696402570Smrgfi
8907765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8908765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
890996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
891096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
891196402570Smrgfi
891296402570Smrg
891396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
891496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
891596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
891696402570Smrg	fi
891796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8918765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8919765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8920765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8921765b7306Smrgthen :
8922765b7306Smrg  printf %s "(cached) " >&6
8923273c00b8Smrgelse case e in #(
8924273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
892596402570Smrg/* end confdefs.h.  */
892696402570Smrgint i;
892796402570Smrg_ACEOF
8928765b7306Smrgif ac_fn_c_try_compile "$LINENO"
8929765b7306Smrgthen :
893096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8931273c00b8Smrgelse case e in #(
8932273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8933273c00b8Smrgesac
893496402570Smrgfi
8935273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8936273c00b8Smrgesac
893796402570Smrgfi
8938765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8939765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
894096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
894196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
894296402570Smrgfi
894396402570Smrg
894496402570Smrgfound="no"
894596402570Smrg
894696402570Smrg	if test $found = "no" ; then
894740c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
894896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
894996402570Smrg		fi
895096402570Smrg
895140c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
895296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
895396402570Smrg		fi
895496402570Smrg
895596402570Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
895696402570Smrg
8957765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8958765b7306Smrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; }
89598abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
8960765b7306Smrg		if eval test \${$cacheid+y}
8961765b7306Smrgthen :
8962765b7306Smrg  printf %s "(cached) " >&6
8963273c00b8Smrgelse case e in #(
8964273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
896596402570Smrg/* end confdefs.h.  */
896696402570Smrgint i;
896796402570Smrgint
8968765b7306Smrgmain (void)
896996402570Smrg{
897096402570Smrg
897196402570Smrg  ;
897296402570Smrg  return 0;
897396402570Smrg}
897496402570Smrg_ACEOF
8975765b7306Smrgif ac_fn_c_try_link "$LINENO"
8976765b7306Smrgthen :
897796402570Smrg  eval $cacheid=yes
8978273c00b8Smrgelse case e in #(
8979273c00b8Smrg  e) eval $cacheid=no ;;
8980273c00b8Smrgesac
898196402570Smrgfi
8982765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8983273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
8984273c00b8Smrgesac
898596402570Smrgfi
898696402570Smrg
898796402570Smrg
898896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
898996402570Smrg
899096402570Smrg		eval supported=\$$cacheid
8991765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8992765b7306Smrgprintf "%s\n" "$supported" >&6; }
899396402570Smrg		if test "$supported" = "yes" ; then
899496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
899596402570Smrg			found="yes"
899696402570Smrg		fi
899796402570Smrg	fi
899896402570Smrg
899996402570Smrg
900096402570Smrg
900196402570Smrg
900296402570Smrg
900396402570Smrg
900496402570Smrg
900596402570Smrg
900696402570Smrg
900796402570Smrg
900896402570Smrg
900996402570Smrg
901096402570Smrg
901196402570Smrg
901296402570Smrg
901396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
901496402570Smrg
901596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
901696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9017765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9018765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9019765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9020765b7306Smrgthen :
9021765b7306Smrg  printf %s "(cached) " >&6
9022273c00b8Smrgelse case e in #(
9023273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
902496402570Smrg/* end confdefs.h.  */
902596402570Smrgint i;
902696402570Smrg_ACEOF
9027765b7306Smrgif ac_fn_c_try_compile "$LINENO"
9028765b7306Smrgthen :
902996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9030273c00b8Smrgelse case e in #(
9031273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9032273c00b8Smrgesac
903396402570Smrgfi
9034273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9035273c00b8Smrgesac
903696402570Smrgfi
9037765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9038765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
903996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
904096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
904196402570Smrgfi
904296402570Smrg
904396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
904496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
904596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
904696402570Smrg	fi
904796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9048765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9049765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9050765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9051765b7306Smrgthen :
9052765b7306Smrg  printf %s "(cached) " >&6
9053273c00b8Smrgelse case e in #(
9054273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
905596402570Smrg/* end confdefs.h.  */
905696402570Smrgint i;
905796402570Smrg_ACEOF
9058765b7306Smrgif ac_fn_c_try_compile "$LINENO"
9059765b7306Smrgthen :
906096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9061273c00b8Smrgelse case e in #(
9062273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9063273c00b8Smrgesac
906496402570Smrgfi
9065273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9066273c00b8Smrgesac
906796402570Smrgfi
9068765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9069765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
907096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
907196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
907296402570Smrgfi
907396402570Smrg
907496402570Smrgfound="no"
907596402570Smrg
907696402570Smrg	if test $found = "no" ; then
907740c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
907896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
907996402570Smrg		fi
908096402570Smrg
908140c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
908296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
908396402570Smrg		fi
908496402570Smrg
908596402570Smrg		CFLAGS="$CFLAGS -Werror=address"
908696402570Smrg
9087765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9088765b7306Smrgprintf %s "checking if $CC supports -Werror=address... " >&6; }
90898abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_address
9090765b7306Smrg		if eval test \${$cacheid+y}
9091765b7306Smrgthen :
9092765b7306Smrg  printf %s "(cached) " >&6
9093273c00b8Smrgelse case e in #(
9094273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
909596402570Smrg/* end confdefs.h.  */
909696402570Smrgint i;
909796402570Smrgint
9098765b7306Smrgmain (void)
909996402570Smrg{
910096402570Smrg
910196402570Smrg  ;
910296402570Smrg  return 0;
910396402570Smrg}
910496402570Smrg_ACEOF
9105765b7306Smrgif ac_fn_c_try_link "$LINENO"
9106765b7306Smrgthen :
910796402570Smrg  eval $cacheid=yes
9108273c00b8Smrgelse case e in #(
9109273c00b8Smrg  e) eval $cacheid=no ;;
9110273c00b8Smrgesac
911196402570Smrgfi
9112765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9113273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
9114273c00b8Smrgesac
911596402570Smrgfi
911696402570Smrg
911796402570Smrg
911896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
911996402570Smrg
912096402570Smrg		eval supported=\$$cacheid
9121765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9122765b7306Smrgprintf "%s\n" "$supported" >&6; }
912396402570Smrg		if test "$supported" = "yes" ; then
912496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
912596402570Smrg			found="yes"
912696402570Smrg		fi
912796402570Smrg	fi
912896402570Smrg
912996402570Smrg
913096402570Smrg
913196402570Smrg
913296402570Smrg
913396402570Smrg
913496402570Smrg
913596402570Smrg
913696402570Smrg
913796402570Smrg
913896402570Smrg
913996402570Smrg
914096402570Smrg
914196402570Smrg
914296402570Smrg
914396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
914496402570Smrg
914596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
914696402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9147765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9148765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9149765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9150765b7306Smrgthen :
9151765b7306Smrg  printf %s "(cached) " >&6
9152273c00b8Smrgelse case e in #(
9153273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
915496402570Smrg/* end confdefs.h.  */
915596402570Smrgint i;
915696402570Smrg_ACEOF
9157765b7306Smrgif ac_fn_c_try_compile "$LINENO"
9158765b7306Smrgthen :
915996402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9160273c00b8Smrgelse case e in #(
9161273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9162273c00b8Smrgesac
916396402570Smrgfi
9164273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9165273c00b8Smrgesac
916696402570Smrgfi
9167765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9168765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
916996402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
917096402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
917196402570Smrgfi
917296402570Smrg
917396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
917496402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
917596402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
917696402570Smrg	fi
917796402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9178765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9179765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9180765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9181765b7306Smrgthen :
9182765b7306Smrg  printf %s "(cached) " >&6
9183273c00b8Smrgelse case e in #(
9184273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
918596402570Smrg/* end confdefs.h.  */
918696402570Smrgint i;
918796402570Smrg_ACEOF
9188765b7306Smrgif ac_fn_c_try_compile "$LINENO"
9189765b7306Smrgthen :
919096402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9191273c00b8Smrgelse case e in #(
9192273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9193273c00b8Smrgesac
919496402570Smrgfi
9195273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9196273c00b8Smrgesac
919796402570Smrgfi
9198765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9199765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
920096402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
920196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
920296402570Smrgfi
920396402570Smrg
920496402570Smrgfound="no"
920596402570Smrg
920696402570Smrg	if test $found = "no" ; then
920740c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
920896402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
920996402570Smrg		fi
921096402570Smrg
921140c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
921296402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
921396402570Smrg		fi
921496402570Smrg
921596402570Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
921696402570Smrg
9217765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9218765b7306Smrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
92198abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9220765b7306Smrg		if eval test \${$cacheid+y}
9221765b7306Smrgthen :
9222765b7306Smrg  printf %s "(cached) " >&6
9223273c00b8Smrgelse case e in #(
9224273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
922596402570Smrg/* end confdefs.h.  */
922696402570Smrgint i;
922796402570Smrgint
9228765b7306Smrgmain (void)
922996402570Smrg{
923096402570Smrg
923196402570Smrg  ;
923296402570Smrg  return 0;
923396402570Smrg}
923496402570Smrg_ACEOF
9235765b7306Smrgif ac_fn_c_try_link "$LINENO"
9236765b7306Smrgthen :
923796402570Smrg  eval $cacheid=yes
9238273c00b8Smrgelse case e in #(
9239273c00b8Smrg  e) eval $cacheid=no ;;
9240273c00b8Smrgesac
924196402570Smrgfi
9242765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9243273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
9244273c00b8Smrgesac
924596402570Smrgfi
924696402570Smrg
924796402570Smrg
924896402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
924996402570Smrg
925096402570Smrg		eval supported=\$$cacheid
9251765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9252765b7306Smrgprintf "%s\n" "$supported" >&6; }
925396402570Smrg		if test "$supported" = "yes" ; then
925496402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
925596402570Smrg			found="yes"
925696402570Smrg		fi
925796402570Smrg	fi
925896402570Smrg
925996402570Smrg	if test $found = "no" ; then
926040c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
926196402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
926296402570Smrg		fi
926396402570Smrg
926440c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
926596402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
926696402570Smrg		fi
926796402570Smrg
926896402570Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
926996402570Smrg
9270765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9271765b7306Smrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
92728abc0ccfSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9273765b7306Smrg		if eval test \${$cacheid+y}
9274765b7306Smrgthen :
9275765b7306Smrg  printf %s "(cached) " >&6
9276273c00b8Smrgelse case e in #(
9277273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
927896402570Smrg/* end confdefs.h.  */
927996402570Smrgint i;
928096402570Smrgint
9281765b7306Smrgmain (void)
928296402570Smrg{
928396402570Smrg
928496402570Smrg  ;
928596402570Smrg  return 0;
928696402570Smrg}
928796402570Smrg_ACEOF
9288765b7306Smrgif ac_fn_c_try_link "$LINENO"
9289765b7306Smrgthen :
929096402570Smrg  eval $cacheid=yes
9291273c00b8Smrgelse case e in #(
9292273c00b8Smrg  e) eval $cacheid=no ;;
9293273c00b8Smrgesac
929496402570Smrgfi
9295765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9296273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
9297273c00b8Smrgesac
929896402570Smrgfi
929996402570Smrg
930096402570Smrg
930196402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
930296402570Smrg
930396402570Smrg		eval supported=\$$cacheid
9304765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9305765b7306Smrgprintf "%s\n" "$supported" >&6; }
930696402570Smrg		if test "$supported" = "yes" ; then
930796402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
930896402570Smrg			found="yes"
930996402570Smrg		fi
931096402570Smrg	fi
931196402570Smrg
931296402570Smrg
931396402570Smrg
931496402570Smrg
931596402570Smrg
931696402570Smrg
931796402570Smrg
931896402570Smrg
931996402570Smrg
932096402570Smrg
932196402570Smrg
932296402570Smrg
932396402570Smrg
932496402570Smrg
932596402570Smrg
932696402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
932796402570Smrg
932896402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
932996402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9330765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9331765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9332765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9333765b7306Smrgthen :
9334765b7306Smrg  printf %s "(cached) " >&6
9335273c00b8Smrgelse case e in #(
9336273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
933796402570Smrg/* end confdefs.h.  */
933896402570Smrgint i;
933996402570Smrg_ACEOF
9340765b7306Smrgif ac_fn_c_try_compile "$LINENO"
9341765b7306Smrgthen :
934296402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9343273c00b8Smrgelse case e in #(
9344273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9345273c00b8Smrgesac
934696402570Smrgfi
9347273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9348273c00b8Smrgesac
934996402570Smrgfi
9350765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9351765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
935296402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
935396402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
935496402570Smrgfi
935596402570Smrg
935696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
935796402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
935896402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
935996402570Smrg	fi
936096402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9361765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9362765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9363765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9364765b7306Smrgthen :
9365765b7306Smrg  printf %s "(cached) " >&6
9366273c00b8Smrgelse case e in #(
9367273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
936896402570Smrg/* end confdefs.h.  */
936996402570Smrgint i;
937096402570Smrg_ACEOF
9371765b7306Smrgif ac_fn_c_try_compile "$LINENO"
9372765b7306Smrgthen :
937396402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9374273c00b8Smrgelse case e in #(
9375273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9376273c00b8Smrgesac
937796402570Smrgfi
9378273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9379273c00b8Smrgesac
938096402570Smrgfi
9381765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9382765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
938396402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
938496402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
938596402570Smrgfi
938696402570Smrg
938796402570Smrgfound="no"
938896402570Smrg
938996402570Smrg	if test $found = "no" ; then
939040c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
939196402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
939296402570Smrg		fi
939396402570Smrg
939440c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
939596402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
939696402570Smrg		fi
939796402570Smrg
939896402570Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
939996402570Smrg
9400765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9401765b7306Smrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
94028abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9403765b7306Smrg		if eval test \${$cacheid+y}
9404765b7306Smrgthen :
9405765b7306Smrg  printf %s "(cached) " >&6
9406273c00b8Smrgelse case e in #(
9407273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
940896402570Smrg/* end confdefs.h.  */
940996402570Smrgint i;
941096402570Smrgint
9411765b7306Smrgmain (void)
941296402570Smrg{
941396402570Smrg
941496402570Smrg  ;
941596402570Smrg  return 0;
941696402570Smrg}
941796402570Smrg_ACEOF
9418765b7306Smrgif ac_fn_c_try_link "$LINENO"
9419765b7306Smrgthen :
942096402570Smrg  eval $cacheid=yes
9421273c00b8Smrgelse case e in #(
9422273c00b8Smrg  e) eval $cacheid=no ;;
9423273c00b8Smrgesac
942496402570Smrgfi
9425765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9426273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
9427273c00b8Smrgesac
942896402570Smrgfi
942996402570Smrg
943096402570Smrg
943196402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
943296402570Smrg
943396402570Smrg		eval supported=\$$cacheid
9434765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9435765b7306Smrgprintf "%s\n" "$supported" >&6; }
943696402570Smrg		if test "$supported" = "yes" ; then
943796402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
943896402570Smrg			found="yes"
943996402570Smrg		fi
944096402570Smrg	fi
944196402570Smrg
944296402570Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
944396402570Smrgelse
9444765b7306Smrg{ 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
9445765b7306Smrgprintf "%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;}
944696402570Smrg
944796402570Smrg
944896402570Smrg
944996402570Smrg
945096402570Smrg
945196402570Smrg
945296402570Smrg
945396402570Smrg
945496402570Smrg
945596402570Smrg
945696402570Smrg
945796402570Smrg
945896402570Smrg
945996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
946096402570Smrg
946196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
946296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9463765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9464765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9465765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9466765b7306Smrgthen :
9467765b7306Smrg  printf %s "(cached) " >&6
9468273c00b8Smrgelse case e in #(
9469273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
947096402570Smrg/* end confdefs.h.  */
947196402570Smrgint i;
947296402570Smrg_ACEOF
9473765b7306Smrgif ac_fn_c_try_compile "$LINENO"
9474765b7306Smrgthen :
947596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9476273c00b8Smrgelse case e in #(
9477273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9478273c00b8Smrgesac
947996402570Smrgfi
9480273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9481273c00b8Smrgesac
948296402570Smrgfi
9483765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9484765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
948596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
948696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
948796402570Smrgfi
948896402570Smrg
948996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
949096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
949196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
949296402570Smrg	fi
949396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9494765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9495765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9496765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9497765b7306Smrgthen :
9498765b7306Smrg  printf %s "(cached) " >&6
9499273c00b8Smrgelse case e in #(
9500273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
950196402570Smrg/* end confdefs.h.  */
950296402570Smrgint i;
950396402570Smrg_ACEOF
9504765b7306Smrgif ac_fn_c_try_compile "$LINENO"
9505765b7306Smrgthen :
950696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9507273c00b8Smrgelse case e in #(
9508273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9509273c00b8Smrgesac
951096402570Smrgfi
9511273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9512273c00b8Smrgesac
951396402570Smrgfi
9514765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9515765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
951696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
951796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
951896402570Smrgfi
951996402570Smrg
952096402570Smrgfound="no"
952196402570Smrg
952296402570Smrg	if test $found = "no" ; then
952340c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
952496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
952596402570Smrg		fi
952696402570Smrg
952740c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
952896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
952996402570Smrg		fi
953096402570Smrg
953196402570Smrg		CFLAGS="$CFLAGS -Wimplicit"
953296402570Smrg
9533765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9534765b7306Smrgprintf %s "checking if $CC supports -Wimplicit... " >&6; }
953596402570Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
9536765b7306Smrg		if eval test \${$cacheid+y}
9537765b7306Smrgthen :
9538765b7306Smrg  printf %s "(cached) " >&6
9539273c00b8Smrgelse case e in #(
9540273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
954196402570Smrg/* end confdefs.h.  */
954296402570Smrgint i;
954396402570Smrgint
9544765b7306Smrgmain (void)
954596402570Smrg{
954696402570Smrg
954796402570Smrg  ;
954896402570Smrg  return 0;
954996402570Smrg}
955096402570Smrg_ACEOF
9551765b7306Smrgif ac_fn_c_try_link "$LINENO"
9552765b7306Smrgthen :
955396402570Smrg  eval $cacheid=yes
9554273c00b8Smrgelse case e in #(
9555273c00b8Smrg  e) eval $cacheid=no ;;
9556273c00b8Smrgesac
955796402570Smrgfi
9558765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9559273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
9560273c00b8Smrgesac
956196402570Smrgfi
956296402570Smrg
956396402570Smrg
956496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
956596402570Smrg
956696402570Smrg		eval supported=\$$cacheid
9567765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9568765b7306Smrgprintf "%s\n" "$supported" >&6; }
956996402570Smrg		if test "$supported" = "yes" ; then
957096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
957196402570Smrg			found="yes"
957296402570Smrg		fi
957396402570Smrg	fi
957496402570Smrg
957596402570Smrg
957696402570Smrg
957796402570Smrg
957896402570Smrg
957996402570Smrg
958096402570Smrg
958196402570Smrg
958296402570Smrg
958396402570Smrg
958496402570Smrg
958596402570Smrg
958696402570Smrg
958796402570Smrg
958896402570Smrg
958996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
959096402570Smrg
959196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
959296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9593765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9594765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9595765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9596765b7306Smrgthen :
9597765b7306Smrg  printf %s "(cached) " >&6
9598273c00b8Smrgelse case e in #(
9599273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
960096402570Smrg/* end confdefs.h.  */
960196402570Smrgint i;
960296402570Smrg_ACEOF
9603765b7306Smrgif ac_fn_c_try_compile "$LINENO"
9604765b7306Smrgthen :
960596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9606273c00b8Smrgelse case e in #(
9607273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9608273c00b8Smrgesac
960996402570Smrgfi
9610273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9611273c00b8Smrgesac
961296402570Smrgfi
9613765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9614765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
961596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
961696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
961796402570Smrgfi
961896402570Smrg
961996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
962096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
962196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
962296402570Smrg	fi
962396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9624765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9625765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9626765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9627765b7306Smrgthen :
9628765b7306Smrg  printf %s "(cached) " >&6
9629273c00b8Smrgelse case e in #(
9630273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
963196402570Smrg/* end confdefs.h.  */
963296402570Smrgint i;
963396402570Smrg_ACEOF
9634765b7306Smrgif ac_fn_c_try_compile "$LINENO"
9635765b7306Smrgthen :
963696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9637273c00b8Smrgelse case e in #(
9638273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9639273c00b8Smrgesac
964096402570Smrgfi
9641273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9642273c00b8Smrgesac
964396402570Smrgfi
9644765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9645765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
964696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
964796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
964896402570Smrgfi
964996402570Smrg
965096402570Smrgfound="no"
965196402570Smrg
965296402570Smrg	if test $found = "no" ; then
965340c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
965496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
965596402570Smrg		fi
965696402570Smrg
965740c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
965896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
965996402570Smrg		fi
966096402570Smrg
966196402570Smrg		CFLAGS="$CFLAGS -Wnonnull"
966296402570Smrg
9663765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9664765b7306Smrgprintf %s "checking if $CC supports -Wnonnull... " >&6; }
966596402570Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
9666765b7306Smrg		if eval test \${$cacheid+y}
9667765b7306Smrgthen :
9668765b7306Smrg  printf %s "(cached) " >&6
9669273c00b8Smrgelse case e in #(
9670273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
967196402570Smrg/* end confdefs.h.  */
967296402570Smrgint i;
967396402570Smrgint
9674765b7306Smrgmain (void)
967596402570Smrg{
967696402570Smrg
967796402570Smrg  ;
967896402570Smrg  return 0;
967996402570Smrg}
968096402570Smrg_ACEOF
9681765b7306Smrgif ac_fn_c_try_link "$LINENO"
9682765b7306Smrgthen :
968396402570Smrg  eval $cacheid=yes
9684273c00b8Smrgelse case e in #(
9685273c00b8Smrg  e) eval $cacheid=no ;;
9686273c00b8Smrgesac
968796402570Smrgfi
9688765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9689273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
9690273c00b8Smrgesac
969196402570Smrgfi
969296402570Smrg
969396402570Smrg
969496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
969596402570Smrg
969696402570Smrg		eval supported=\$$cacheid
9697765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9698765b7306Smrgprintf "%s\n" "$supported" >&6; }
969996402570Smrg		if test "$supported" = "yes" ; then
970096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
970196402570Smrg			found="yes"
970296402570Smrg		fi
970396402570Smrg	fi
970496402570Smrg
970596402570Smrg
970696402570Smrg
970796402570Smrg
970896402570Smrg
970996402570Smrg
971096402570Smrg
971196402570Smrg
971296402570Smrg
971396402570Smrg
971496402570Smrg
971596402570Smrg
971696402570Smrg
971796402570Smrg
971896402570Smrg
971996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
972096402570Smrg
972196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
972296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9723765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9724765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9725765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9726765b7306Smrgthen :
9727765b7306Smrg  printf %s "(cached) " >&6
9728273c00b8Smrgelse case e in #(
9729273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
973096402570Smrg/* end confdefs.h.  */
973196402570Smrgint i;
973296402570Smrg_ACEOF
9733765b7306Smrgif ac_fn_c_try_compile "$LINENO"
9734765b7306Smrgthen :
973596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9736273c00b8Smrgelse case e in #(
9737273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9738273c00b8Smrgesac
973996402570Smrgfi
9740273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9741273c00b8Smrgesac
974296402570Smrgfi
9743765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9744765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
974596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
974696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
974796402570Smrgfi
974896402570Smrg
974996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
975096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
975196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
975296402570Smrg	fi
975396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9754765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9755765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9756765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9757765b7306Smrgthen :
9758765b7306Smrg  printf %s "(cached) " >&6
9759273c00b8Smrgelse case e in #(
9760273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
976196402570Smrg/* end confdefs.h.  */
976296402570Smrgint i;
976396402570Smrg_ACEOF
9764765b7306Smrgif ac_fn_c_try_compile "$LINENO"
9765765b7306Smrgthen :
976696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9767273c00b8Smrgelse case e in #(
9768273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9769273c00b8Smrgesac
977096402570Smrgfi
9771273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9772273c00b8Smrgesac
977396402570Smrgfi
9774765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9775765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
977696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
977796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
977896402570Smrgfi
977996402570Smrg
978096402570Smrgfound="no"
978196402570Smrg
978296402570Smrg	if test $found = "no" ; then
978340c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
978496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
978596402570Smrg		fi
978696402570Smrg
978740c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
978896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
978996402570Smrg		fi
979096402570Smrg
979196402570Smrg		CFLAGS="$CFLAGS -Winit-self"
979296402570Smrg
9793765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9794765b7306Smrgprintf %s "checking if $CC supports -Winit-self... " >&6; }
979596402570Smrg		cacheid=xorg_cv_cc_flag__Winit_self
9796765b7306Smrg		if eval test \${$cacheid+y}
9797765b7306Smrgthen :
9798765b7306Smrg  printf %s "(cached) " >&6
9799273c00b8Smrgelse case e in #(
9800273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
980196402570Smrg/* end confdefs.h.  */
980296402570Smrgint i;
980396402570Smrgint
9804765b7306Smrgmain (void)
980596402570Smrg{
980696402570Smrg
980796402570Smrg  ;
980896402570Smrg  return 0;
980996402570Smrg}
981096402570Smrg_ACEOF
9811765b7306Smrgif ac_fn_c_try_link "$LINENO"
9812765b7306Smrgthen :
981396402570Smrg  eval $cacheid=yes
9814273c00b8Smrgelse case e in #(
9815273c00b8Smrg  e) eval $cacheid=no ;;
9816273c00b8Smrgesac
981796402570Smrgfi
9818765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9819273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
9820273c00b8Smrgesac
982196402570Smrgfi
982296402570Smrg
982396402570Smrg
982496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
982596402570Smrg
982696402570Smrg		eval supported=\$$cacheid
9827765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9828765b7306Smrgprintf "%s\n" "$supported" >&6; }
982996402570Smrg		if test "$supported" = "yes" ; then
983096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
983196402570Smrg			found="yes"
983296402570Smrg		fi
983396402570Smrg	fi
983496402570Smrg
983596402570Smrg
983696402570Smrg
983796402570Smrg
983896402570Smrg
983996402570Smrg
984096402570Smrg
984196402570Smrg
984296402570Smrg
984396402570Smrg
984496402570Smrg
984596402570Smrg
984696402570Smrg
984796402570Smrg
984896402570Smrg
984996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
985096402570Smrg
985196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
985296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9853765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9854765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9855765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9856765b7306Smrgthen :
9857765b7306Smrg  printf %s "(cached) " >&6
9858273c00b8Smrgelse case e in #(
9859273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
986096402570Smrg/* end confdefs.h.  */
986196402570Smrgint i;
986296402570Smrg_ACEOF
9863765b7306Smrgif ac_fn_c_try_compile "$LINENO"
9864765b7306Smrgthen :
986596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9866273c00b8Smrgelse case e in #(
9867273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9868273c00b8Smrgesac
986996402570Smrgfi
9870273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9871273c00b8Smrgesac
987296402570Smrgfi
9873765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9874765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
987596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
987696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
987796402570Smrgfi
987896402570Smrg
987996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
988096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
988196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
988296402570Smrg	fi
988396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9884765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9885765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9886765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9887765b7306Smrgthen :
9888765b7306Smrg  printf %s "(cached) " >&6
9889273c00b8Smrgelse case e in #(
9890273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
989196402570Smrg/* end confdefs.h.  */
989296402570Smrgint i;
989396402570Smrg_ACEOF
9894765b7306Smrgif ac_fn_c_try_compile "$LINENO"
9895765b7306Smrgthen :
989696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9897273c00b8Smrgelse case e in #(
9898273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9899273c00b8Smrgesac
990096402570Smrgfi
9901273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9902273c00b8Smrgesac
990396402570Smrgfi
9904765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9905765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
990696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
990796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
990896402570Smrgfi
990996402570Smrg
991096402570Smrgfound="no"
991196402570Smrg
991296402570Smrg	if test $found = "no" ; then
991340c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
991496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
991596402570Smrg		fi
991696402570Smrg
991740c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
991896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
991996402570Smrg		fi
992096402570Smrg
992196402570Smrg		CFLAGS="$CFLAGS -Wmain"
992296402570Smrg
9923765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9924765b7306Smrgprintf %s "checking if $CC supports -Wmain... " >&6; }
992596402570Smrg		cacheid=xorg_cv_cc_flag__Wmain
9926765b7306Smrg		if eval test \${$cacheid+y}
9927765b7306Smrgthen :
9928765b7306Smrg  printf %s "(cached) " >&6
9929273c00b8Smrgelse case e in #(
9930273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
993196402570Smrg/* end confdefs.h.  */
993296402570Smrgint i;
993396402570Smrgint
9934765b7306Smrgmain (void)
993596402570Smrg{
993696402570Smrg
993796402570Smrg  ;
993896402570Smrg  return 0;
993996402570Smrg}
994096402570Smrg_ACEOF
9941765b7306Smrgif ac_fn_c_try_link "$LINENO"
9942765b7306Smrgthen :
994396402570Smrg  eval $cacheid=yes
9944273c00b8Smrgelse case e in #(
9945273c00b8Smrg  e) eval $cacheid=no ;;
9946273c00b8Smrgesac
994796402570Smrgfi
9948765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9949273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
9950273c00b8Smrgesac
995196402570Smrgfi
995296402570Smrg
995396402570Smrg
995496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
995596402570Smrg
995696402570Smrg		eval supported=\$$cacheid
9957765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9958765b7306Smrgprintf "%s\n" "$supported" >&6; }
995996402570Smrg		if test "$supported" = "yes" ; then
996096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
996196402570Smrg			found="yes"
996296402570Smrg		fi
996396402570Smrg	fi
996496402570Smrg
996596402570Smrg
996696402570Smrg
996796402570Smrg
996896402570Smrg
996996402570Smrg
997096402570Smrg
997196402570Smrg
997296402570Smrg
997396402570Smrg
997496402570Smrg
997596402570Smrg
997696402570Smrg
997796402570Smrg
997896402570Smrg
997996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
998096402570Smrg
998196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
998296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9983765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9984765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9985765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9986765b7306Smrgthen :
9987765b7306Smrg  printf %s "(cached) " >&6
9988273c00b8Smrgelse case e in #(
9989273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
999096402570Smrg/* end confdefs.h.  */
999196402570Smrgint i;
999296402570Smrg_ACEOF
9993765b7306Smrgif ac_fn_c_try_compile "$LINENO"
9994765b7306Smrgthen :
999596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9996273c00b8Smrgelse case e in #(
9997273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9998273c00b8Smrgesac
999996402570Smrgfi
10000273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10001273c00b8Smrgesac
1000296402570Smrgfi
10003765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10004765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1000596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1000696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1000796402570Smrgfi
1000896402570Smrg
1000996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1001096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1001196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1001296402570Smrg	fi
1001396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10014765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10015765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10016765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10017765b7306Smrgthen :
10018765b7306Smrg  printf %s "(cached) " >&6
10019273c00b8Smrgelse case e in #(
10020273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1002196402570Smrg/* end confdefs.h.  */
1002296402570Smrgint i;
1002396402570Smrg_ACEOF
10024765b7306Smrgif ac_fn_c_try_compile "$LINENO"
10025765b7306Smrgthen :
1002696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10027273c00b8Smrgelse case e in #(
10028273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10029273c00b8Smrgesac
1003096402570Smrgfi
10031273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10032273c00b8Smrgesac
1003396402570Smrgfi
10034765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10035765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1003696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1003796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1003896402570Smrgfi
1003996402570Smrg
1004096402570Smrgfound="no"
1004196402570Smrg
1004296402570Smrg	if test $found = "no" ; then
1004340c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1004496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1004596402570Smrg		fi
1004696402570Smrg
1004740c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1004896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1004996402570Smrg		fi
1005096402570Smrg
1005196402570Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
1005296402570Smrg
10053765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10054765b7306Smrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; }
1005596402570Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
10056765b7306Smrg		if eval test \${$cacheid+y}
10057765b7306Smrgthen :
10058765b7306Smrg  printf %s "(cached) " >&6
10059273c00b8Smrgelse case e in #(
10060273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1006196402570Smrg/* end confdefs.h.  */
1006296402570Smrgint i;
1006396402570Smrgint
10064765b7306Smrgmain (void)
1006596402570Smrg{
1006696402570Smrg
1006796402570Smrg  ;
1006896402570Smrg  return 0;
1006996402570Smrg}
1007096402570Smrg_ACEOF
10071765b7306Smrgif ac_fn_c_try_link "$LINENO"
10072765b7306Smrgthen :
1007396402570Smrg  eval $cacheid=yes
10074273c00b8Smrgelse case e in #(
10075273c00b8Smrg  e) eval $cacheid=no ;;
10076273c00b8Smrgesac
1007796402570Smrgfi
10078765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10079273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
10080273c00b8Smrgesac
1008196402570Smrgfi
1008296402570Smrg
1008396402570Smrg
1008496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1008596402570Smrg
1008696402570Smrg		eval supported=\$$cacheid
10087765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10088765b7306Smrgprintf "%s\n" "$supported" >&6; }
1008996402570Smrg		if test "$supported" = "yes" ; then
1009096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
1009196402570Smrg			found="yes"
1009296402570Smrg		fi
1009396402570Smrg	fi
1009496402570Smrg
1009596402570Smrg
1009696402570Smrg
1009796402570Smrg
1009896402570Smrg
1009996402570Smrg
1010096402570Smrg
1010196402570Smrg
1010296402570Smrg
1010396402570Smrg
1010496402570Smrg
1010596402570Smrg
1010696402570Smrg
1010796402570Smrg
1010896402570Smrg
1010996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1011096402570Smrg
1011196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1011296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10113765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10114765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10115765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10116765b7306Smrgthen :
10117765b7306Smrg  printf %s "(cached) " >&6
10118273c00b8Smrgelse case e in #(
10119273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1012096402570Smrg/* end confdefs.h.  */
1012196402570Smrgint i;
1012296402570Smrg_ACEOF
10123765b7306Smrgif ac_fn_c_try_compile "$LINENO"
10124765b7306Smrgthen :
1012596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10126273c00b8Smrgelse case e in #(
10127273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10128273c00b8Smrgesac
1012996402570Smrgfi
10130273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10131273c00b8Smrgesac
1013296402570Smrgfi
10133765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10134765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1013596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1013696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1013796402570Smrgfi
1013896402570Smrg
1013996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1014096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1014196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1014296402570Smrg	fi
1014396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10144765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10145765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10146765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10147765b7306Smrgthen :
10148765b7306Smrg  printf %s "(cached) " >&6
10149273c00b8Smrgelse case e in #(
10150273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1015196402570Smrg/* end confdefs.h.  */
1015296402570Smrgint i;
1015396402570Smrg_ACEOF
10154765b7306Smrgif ac_fn_c_try_compile "$LINENO"
10155765b7306Smrgthen :
1015696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10157273c00b8Smrgelse case e in #(
10158273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10159273c00b8Smrgesac
1016096402570Smrgfi
10161273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10162273c00b8Smrgesac
1016396402570Smrgfi
10164765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10165765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1016696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1016796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1016896402570Smrgfi
1016996402570Smrg
1017096402570Smrgfound="no"
1017196402570Smrg
1017296402570Smrg	if test $found = "no" ; then
1017340c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1017496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1017596402570Smrg		fi
1017696402570Smrg
1017740c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1017896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1017996402570Smrg		fi
1018096402570Smrg
1018196402570Smrg		CFLAGS="$CFLAGS -Wsequence-point"
1018296402570Smrg
10183765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10184765b7306Smrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; }
1018596402570Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
10186765b7306Smrg		if eval test \${$cacheid+y}
10187765b7306Smrgthen :
10188765b7306Smrg  printf %s "(cached) " >&6
10189273c00b8Smrgelse case e in #(
10190273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1019196402570Smrg/* end confdefs.h.  */
1019296402570Smrgint i;
1019396402570Smrgint
10194765b7306Smrgmain (void)
1019596402570Smrg{
1019696402570Smrg
1019796402570Smrg  ;
1019896402570Smrg  return 0;
1019996402570Smrg}
1020096402570Smrg_ACEOF
10201765b7306Smrgif ac_fn_c_try_link "$LINENO"
10202765b7306Smrgthen :
1020396402570Smrg  eval $cacheid=yes
10204273c00b8Smrgelse case e in #(
10205273c00b8Smrg  e) eval $cacheid=no ;;
10206273c00b8Smrgesac
1020796402570Smrgfi
10208765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10209273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
10210273c00b8Smrgesac
1021196402570Smrgfi
1021296402570Smrg
1021396402570Smrg
1021496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1021596402570Smrg
1021696402570Smrg		eval supported=\$$cacheid
10217765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10218765b7306Smrgprintf "%s\n" "$supported" >&6; }
1021996402570Smrg		if test "$supported" = "yes" ; then
1022096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
1022196402570Smrg			found="yes"
1022296402570Smrg		fi
1022396402570Smrg	fi
1022496402570Smrg
1022596402570Smrg
1022696402570Smrg
1022796402570Smrg
1022896402570Smrg
1022996402570Smrg
1023096402570Smrg
1023196402570Smrg
1023296402570Smrg
1023396402570Smrg
1023496402570Smrg
1023596402570Smrg
1023696402570Smrg
1023796402570Smrg
1023896402570Smrg
1023996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1024096402570Smrg
1024196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1024296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10243765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10244765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10245765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10246765b7306Smrgthen :
10247765b7306Smrg  printf %s "(cached) " >&6
10248273c00b8Smrgelse case e in #(
10249273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1025096402570Smrg/* end confdefs.h.  */
1025196402570Smrgint i;
1025296402570Smrg_ACEOF
10253765b7306Smrgif ac_fn_c_try_compile "$LINENO"
10254765b7306Smrgthen :
1025596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10256273c00b8Smrgelse case e in #(
10257273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10258273c00b8Smrgesac
1025996402570Smrgfi
10260273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10261273c00b8Smrgesac
1026296402570Smrgfi
10263765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10264765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1026596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1026696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1026796402570Smrgfi
1026896402570Smrg
1026996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1027096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1027196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1027296402570Smrg	fi
1027396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10274765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10275765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10276765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10277765b7306Smrgthen :
10278765b7306Smrg  printf %s "(cached) " >&6
10279273c00b8Smrgelse case e in #(
10280273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1028196402570Smrg/* end confdefs.h.  */
1028296402570Smrgint i;
1028396402570Smrg_ACEOF
10284765b7306Smrgif ac_fn_c_try_compile "$LINENO"
10285765b7306Smrgthen :
1028696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10287273c00b8Smrgelse case e in #(
10288273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10289273c00b8Smrgesac
1029096402570Smrgfi
10291273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10292273c00b8Smrgesac
1029396402570Smrgfi
10294765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10295765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1029696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1029796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1029896402570Smrgfi
1029996402570Smrg
1030096402570Smrgfound="no"
1030196402570Smrg
1030296402570Smrg	if test $found = "no" ; then
1030340c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1030496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1030596402570Smrg		fi
1030696402570Smrg
1030740c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1030896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1030996402570Smrg		fi
1031096402570Smrg
1031196402570Smrg		CFLAGS="$CFLAGS -Wreturn-type"
1031296402570Smrg
10313765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10314765b7306Smrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; }
1031596402570Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
10316765b7306Smrg		if eval test \${$cacheid+y}
10317765b7306Smrgthen :
10318765b7306Smrg  printf %s "(cached) " >&6
10319273c00b8Smrgelse case e in #(
10320273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1032196402570Smrg/* end confdefs.h.  */
1032296402570Smrgint i;
1032396402570Smrgint
10324765b7306Smrgmain (void)
1032596402570Smrg{
1032696402570Smrg
1032796402570Smrg  ;
1032896402570Smrg  return 0;
1032996402570Smrg}
1033096402570Smrg_ACEOF
10331765b7306Smrgif ac_fn_c_try_link "$LINENO"
10332765b7306Smrgthen :
1033396402570Smrg  eval $cacheid=yes
10334273c00b8Smrgelse case e in #(
10335273c00b8Smrg  e) eval $cacheid=no ;;
10336273c00b8Smrgesac
1033796402570Smrgfi
10338765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10339273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
10340273c00b8Smrgesac
1034196402570Smrgfi
1034296402570Smrg
1034396402570Smrg
1034496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1034596402570Smrg
1034696402570Smrg		eval supported=\$$cacheid
10347765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10348765b7306Smrgprintf "%s\n" "$supported" >&6; }
1034996402570Smrg		if test "$supported" = "yes" ; then
1035096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
1035196402570Smrg			found="yes"
1035296402570Smrg		fi
1035396402570Smrg	fi
1035496402570Smrg
1035596402570Smrg
1035696402570Smrg
1035796402570Smrg
1035896402570Smrg
1035996402570Smrg
1036096402570Smrg
1036196402570Smrg
1036296402570Smrg
1036396402570Smrg
1036496402570Smrg
1036596402570Smrg
1036696402570Smrg
1036796402570Smrg
1036896402570Smrg
1036996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1037096402570Smrg
1037196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1037296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10373765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10374765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10375765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10376765b7306Smrgthen :
10377765b7306Smrg  printf %s "(cached) " >&6
10378273c00b8Smrgelse case e in #(
10379273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1038096402570Smrg/* end confdefs.h.  */
1038196402570Smrgint i;
1038296402570Smrg_ACEOF
10383765b7306Smrgif ac_fn_c_try_compile "$LINENO"
10384765b7306Smrgthen :
1038596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10386273c00b8Smrgelse case e in #(
10387273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10388273c00b8Smrgesac
1038996402570Smrgfi
10390273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10391273c00b8Smrgesac
1039296402570Smrgfi
10393765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10394765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1039596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1039696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1039796402570Smrgfi
1039896402570Smrg
1039996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1040096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1040196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1040296402570Smrg	fi
1040396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10404765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10405765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10406765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10407765b7306Smrgthen :
10408765b7306Smrg  printf %s "(cached) " >&6
10409273c00b8Smrgelse case e in #(
10410273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1041196402570Smrg/* end confdefs.h.  */
1041296402570Smrgint i;
1041396402570Smrg_ACEOF
10414765b7306Smrgif ac_fn_c_try_compile "$LINENO"
10415765b7306Smrgthen :
1041696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10417273c00b8Smrgelse case e in #(
10418273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10419273c00b8Smrgesac
1042096402570Smrgfi
10421273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10422273c00b8Smrgesac
1042396402570Smrgfi
10424765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10425765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1042696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1042796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1042896402570Smrgfi
1042996402570Smrg
1043096402570Smrgfound="no"
1043196402570Smrg
1043296402570Smrg	if test $found = "no" ; then
1043340c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1043496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1043596402570Smrg		fi
1043696402570Smrg
1043740c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1043896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1043996402570Smrg		fi
1044096402570Smrg
1044196402570Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
1044296402570Smrg
10443765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10444765b7306Smrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; }
1044596402570Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
10446765b7306Smrg		if eval test \${$cacheid+y}
10447765b7306Smrgthen :
10448765b7306Smrg  printf %s "(cached) " >&6
10449273c00b8Smrgelse case e in #(
10450273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1045196402570Smrg/* end confdefs.h.  */
1045296402570Smrgint i;
1045396402570Smrgint
10454765b7306Smrgmain (void)
1045596402570Smrg{
1045696402570Smrg
1045796402570Smrg  ;
1045896402570Smrg  return 0;
1045996402570Smrg}
1046096402570Smrg_ACEOF
10461765b7306Smrgif ac_fn_c_try_link "$LINENO"
10462765b7306Smrgthen :
1046396402570Smrg  eval $cacheid=yes
10464273c00b8Smrgelse case e in #(
10465273c00b8Smrg  e) eval $cacheid=no ;;
10466273c00b8Smrgesac
1046796402570Smrgfi
10468765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10469273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
10470273c00b8Smrgesac
1047196402570Smrgfi
1047296402570Smrg
1047396402570Smrg
1047496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1047596402570Smrg
1047696402570Smrg		eval supported=\$$cacheid
10477765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10478765b7306Smrgprintf "%s\n" "$supported" >&6; }
1047996402570Smrg		if test "$supported" = "yes" ; then
1048096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
1048196402570Smrg			found="yes"
1048296402570Smrg		fi
1048396402570Smrg	fi
1048496402570Smrg
1048596402570Smrg
1048696402570Smrg
1048796402570Smrg
1048896402570Smrg
1048996402570Smrg
1049096402570Smrg
1049196402570Smrg
1049296402570Smrg
1049396402570Smrg
1049496402570Smrg
1049596402570Smrg
1049696402570Smrg
1049796402570Smrg
1049896402570Smrg
1049996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1050096402570Smrg
1050196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1050296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10503765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10504765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10505765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10506765b7306Smrgthen :
10507765b7306Smrg  printf %s "(cached) " >&6
10508273c00b8Smrgelse case e in #(
10509273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1051096402570Smrg/* end confdefs.h.  */
1051196402570Smrgint i;
1051296402570Smrg_ACEOF
10513765b7306Smrgif ac_fn_c_try_compile "$LINENO"
10514765b7306Smrgthen :
1051596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10516273c00b8Smrgelse case e in #(
10517273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10518273c00b8Smrgesac
1051996402570Smrgfi
10520273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10521273c00b8Smrgesac
1052296402570Smrgfi
10523765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10524765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1052596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1052696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1052796402570Smrgfi
1052896402570Smrg
1052996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1053096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1053196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1053296402570Smrg	fi
1053396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10534765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10535765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10536765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10537765b7306Smrgthen :
10538765b7306Smrg  printf %s "(cached) " >&6
10539273c00b8Smrgelse case e in #(
10540273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1054196402570Smrg/* end confdefs.h.  */
1054296402570Smrgint i;
1054396402570Smrg_ACEOF
10544765b7306Smrgif ac_fn_c_try_compile "$LINENO"
10545765b7306Smrgthen :
1054696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10547273c00b8Smrgelse case e in #(
10548273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10549273c00b8Smrgesac
1055096402570Smrgfi
10551273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10552273c00b8Smrgesac
1055396402570Smrgfi
10554765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10555765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1055696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1055796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1055896402570Smrgfi
1055996402570Smrg
1056096402570Smrgfound="no"
1056196402570Smrg
1056296402570Smrg	if test $found = "no" ; then
1056340c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1056496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1056596402570Smrg		fi
1056696402570Smrg
1056740c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1056896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1056996402570Smrg		fi
1057096402570Smrg
1057196402570Smrg		CFLAGS="$CFLAGS -Warray-bounds"
1057296402570Smrg
10573765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10574765b7306Smrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; }
1057596402570Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
10576765b7306Smrg		if eval test \${$cacheid+y}
10577765b7306Smrgthen :
10578765b7306Smrg  printf %s "(cached) " >&6
10579273c00b8Smrgelse case e in #(
10580273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1058196402570Smrg/* end confdefs.h.  */
1058296402570Smrgint i;
1058396402570Smrgint
10584765b7306Smrgmain (void)
1058596402570Smrg{
1058696402570Smrg
1058796402570Smrg  ;
1058896402570Smrg  return 0;
1058996402570Smrg}
1059096402570Smrg_ACEOF
10591765b7306Smrgif ac_fn_c_try_link "$LINENO"
10592765b7306Smrgthen :
1059396402570Smrg  eval $cacheid=yes
10594273c00b8Smrgelse case e in #(
10595273c00b8Smrg  e) eval $cacheid=no ;;
10596273c00b8Smrgesac
1059796402570Smrgfi
10598765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10599273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
10600273c00b8Smrgesac
1060196402570Smrgfi
1060296402570Smrg
1060396402570Smrg
1060496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1060596402570Smrg
1060696402570Smrg		eval supported=\$$cacheid
10607765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10608765b7306Smrgprintf "%s\n" "$supported" >&6; }
1060996402570Smrg		if test "$supported" = "yes" ; then
1061096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
1061196402570Smrg			found="yes"
1061296402570Smrg		fi
1061396402570Smrg	fi
1061496402570Smrg
1061596402570Smrg
1061696402570Smrg
1061796402570Smrg
1061896402570Smrg
1061996402570Smrg
1062096402570Smrg
1062196402570Smrg
1062296402570Smrg
1062396402570Smrg
1062496402570Smrg
1062596402570Smrg
1062696402570Smrg
1062796402570Smrg
1062896402570Smrg
1062996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1063096402570Smrg
1063196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1063296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10633765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10634765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10635765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10636765b7306Smrgthen :
10637765b7306Smrg  printf %s "(cached) " >&6
10638273c00b8Smrgelse case e in #(
10639273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1064096402570Smrg/* end confdefs.h.  */
1064196402570Smrgint i;
1064296402570Smrg_ACEOF
10643765b7306Smrgif ac_fn_c_try_compile "$LINENO"
10644765b7306Smrgthen :
1064596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10646273c00b8Smrgelse case e in #(
10647273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10648273c00b8Smrgesac
1064996402570Smrgfi
10650273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10651273c00b8Smrgesac
1065296402570Smrgfi
10653765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10654765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1065596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1065696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1065796402570Smrgfi
1065896402570Smrg
1065996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1066096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1066196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1066296402570Smrg	fi
1066396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10664765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10665765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10666765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10667765b7306Smrgthen :
10668765b7306Smrg  printf %s "(cached) " >&6
10669273c00b8Smrgelse case e in #(
10670273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1067196402570Smrg/* end confdefs.h.  */
1067296402570Smrgint i;
1067396402570Smrg_ACEOF
10674765b7306Smrgif ac_fn_c_try_compile "$LINENO"
10675765b7306Smrgthen :
1067696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10677273c00b8Smrgelse case e in #(
10678273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10679273c00b8Smrgesac
1068096402570Smrgfi
10681273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10682273c00b8Smrgesac
1068396402570Smrgfi
10684765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10685765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1068696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1068796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1068896402570Smrgfi
1068996402570Smrg
1069096402570Smrgfound="no"
1069196402570Smrg
1069296402570Smrg	if test $found = "no" ; then
1069340c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1069496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1069596402570Smrg		fi
1069696402570Smrg
1069740c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1069896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1069996402570Smrg		fi
1070096402570Smrg
1070196402570Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
1070296402570Smrg
10703765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10704765b7306Smrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; }
1070596402570Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
10706765b7306Smrg		if eval test \${$cacheid+y}
10707765b7306Smrgthen :
10708765b7306Smrg  printf %s "(cached) " >&6
10709273c00b8Smrgelse case e in #(
10710273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1071196402570Smrg/* end confdefs.h.  */
1071296402570Smrgint i;
1071396402570Smrgint
10714765b7306Smrgmain (void)
1071596402570Smrg{
1071696402570Smrg
1071796402570Smrg  ;
1071896402570Smrg  return 0;
1071996402570Smrg}
1072096402570Smrg_ACEOF
10721765b7306Smrgif ac_fn_c_try_link "$LINENO"
10722765b7306Smrgthen :
1072396402570Smrg  eval $cacheid=yes
10724273c00b8Smrgelse case e in #(
10725273c00b8Smrg  e) eval $cacheid=no ;;
10726273c00b8Smrgesac
1072796402570Smrgfi
10728765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10729273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
10730273c00b8Smrgesac
1073196402570Smrgfi
1073296402570Smrg
1073396402570Smrg
1073496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1073596402570Smrg
1073696402570Smrg		eval supported=\$$cacheid
10737765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10738765b7306Smrgprintf "%s\n" "$supported" >&6; }
1073996402570Smrg		if test "$supported" = "yes" ; then
1074096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
1074196402570Smrg			found="yes"
1074296402570Smrg		fi
1074396402570Smrg	fi
1074496402570Smrg
1074596402570Smrg
1074696402570Smrg
1074796402570Smrg
1074896402570Smrg
1074996402570Smrg
1075096402570Smrg
1075196402570Smrg
1075296402570Smrg
1075396402570Smrg
1075496402570Smrg
1075596402570Smrg
1075696402570Smrg
1075796402570Smrg
1075896402570Smrg
1075996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1076096402570Smrg
1076196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1076296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10763765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10764765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10765765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10766765b7306Smrgthen :
10767765b7306Smrg  printf %s "(cached) " >&6
10768273c00b8Smrgelse case e in #(
10769273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1077096402570Smrg/* end confdefs.h.  */
1077196402570Smrgint i;
1077296402570Smrg_ACEOF
10773765b7306Smrgif ac_fn_c_try_compile "$LINENO"
10774765b7306Smrgthen :
1077596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10776273c00b8Smrgelse case e in #(
10777273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10778273c00b8Smrgesac
1077996402570Smrgfi
10780273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10781273c00b8Smrgesac
1078296402570Smrgfi
10783765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10784765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1078596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1078696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1078796402570Smrgfi
1078896402570Smrg
1078996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1079096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1079196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1079296402570Smrg	fi
1079396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10794765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10795765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10796765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10797765b7306Smrgthen :
10798765b7306Smrg  printf %s "(cached) " >&6
10799273c00b8Smrgelse case e in #(
10800273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1080196402570Smrg/* end confdefs.h.  */
1080296402570Smrgint i;
1080396402570Smrg_ACEOF
10804765b7306Smrgif ac_fn_c_try_compile "$LINENO"
10805765b7306Smrgthen :
1080696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10807273c00b8Smrgelse case e in #(
10808273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10809273c00b8Smrgesac
1081096402570Smrgfi
10811273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10812273c00b8Smrgesac
1081396402570Smrgfi
10814765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10815765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1081696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1081796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1081896402570Smrgfi
1081996402570Smrg
1082096402570Smrgfound="no"
1082196402570Smrg
1082296402570Smrg	if test $found = "no" ; then
1082340c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1082496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1082596402570Smrg		fi
1082696402570Smrg
1082740c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1082896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1082996402570Smrg		fi
1083096402570Smrg
1083196402570Smrg		CFLAGS="$CFLAGS -Waddress"
1083296402570Smrg
10833765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10834765b7306Smrgprintf %s "checking if $CC supports -Waddress... " >&6; }
1083596402570Smrg		cacheid=xorg_cv_cc_flag__Waddress
10836765b7306Smrg		if eval test \${$cacheid+y}
10837765b7306Smrgthen :
10838765b7306Smrg  printf %s "(cached) " >&6
10839273c00b8Smrgelse case e in #(
10840273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1084196402570Smrg/* end confdefs.h.  */
1084296402570Smrgint i;
1084396402570Smrgint
10844765b7306Smrgmain (void)
1084596402570Smrg{
1084696402570Smrg
1084796402570Smrg  ;
1084896402570Smrg  return 0;
1084996402570Smrg}
1085096402570Smrg_ACEOF
10851765b7306Smrgif ac_fn_c_try_link "$LINENO"
10852765b7306Smrgthen :
1085396402570Smrg  eval $cacheid=yes
10854273c00b8Smrgelse case e in #(
10855273c00b8Smrg  e) eval $cacheid=no ;;
10856273c00b8Smrgesac
1085796402570Smrgfi
10858765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10859273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
10860273c00b8Smrgesac
1086196402570Smrgfi
1086296402570Smrg
1086396402570Smrg
1086496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1086596402570Smrg
1086696402570Smrg		eval supported=\$$cacheid
10867765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10868765b7306Smrgprintf "%s\n" "$supported" >&6; }
1086996402570Smrg		if test "$supported" = "yes" ; then
1087096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
1087196402570Smrg			found="yes"
1087296402570Smrg		fi
1087396402570Smrg	fi
1087496402570Smrg
1087596402570Smrg
1087696402570Smrg
1087796402570Smrg
1087896402570Smrg
1087996402570Smrg
1088096402570Smrg
1088196402570Smrg
1088296402570Smrg
1088396402570Smrg
1088496402570Smrg
1088596402570Smrg
1088696402570Smrg
1088796402570Smrg
1088896402570Smrg
1088996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1089096402570Smrg
1089196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1089296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10893765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10894765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10895765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10896765b7306Smrgthen :
10897765b7306Smrg  printf %s "(cached) " >&6
10898273c00b8Smrgelse case e in #(
10899273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1090096402570Smrg/* end confdefs.h.  */
1090196402570Smrgint i;
1090296402570Smrg_ACEOF
10903765b7306Smrgif ac_fn_c_try_compile "$LINENO"
10904765b7306Smrgthen :
1090596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10906273c00b8Smrgelse case e in #(
10907273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10908273c00b8Smrgesac
1090996402570Smrgfi
10910273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10911273c00b8Smrgesac
1091296402570Smrgfi
10913765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10914765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1091596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1091696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1091796402570Smrgfi
1091896402570Smrg
1091996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1092096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1092196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1092296402570Smrg	fi
1092396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10924765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10925765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10926765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10927765b7306Smrgthen :
10928765b7306Smrg  printf %s "(cached) " >&6
10929273c00b8Smrgelse case e in #(
10930273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1093196402570Smrg/* end confdefs.h.  */
1093296402570Smrgint i;
1093396402570Smrg_ACEOF
10934765b7306Smrgif ac_fn_c_try_compile "$LINENO"
10935765b7306Smrgthen :
1093696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10937273c00b8Smrgelse case e in #(
10938273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10939273c00b8Smrgesac
1094096402570Smrgfi
10941273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10942273c00b8Smrgesac
1094396402570Smrgfi
10944765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10945765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1094696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1094796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1094896402570Smrgfi
1094996402570Smrg
1095096402570Smrgfound="no"
1095196402570Smrg
1095296402570Smrg	if test $found = "no" ; then
1095340c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1095496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1095596402570Smrg		fi
1095696402570Smrg
1095740c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1095896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1095996402570Smrg		fi
1096096402570Smrg
1096196402570Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
1096296402570Smrg
10963765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10964765b7306Smrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
1096596402570Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10966765b7306Smrg		if eval test \${$cacheid+y}
10967765b7306Smrgthen :
10968765b7306Smrg  printf %s "(cached) " >&6
10969273c00b8Smrgelse case e in #(
10970273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1097196402570Smrg/* end confdefs.h.  */
1097296402570Smrgint i;
1097396402570Smrgint
10974765b7306Smrgmain (void)
1097596402570Smrg{
1097696402570Smrg
1097796402570Smrg  ;
1097896402570Smrg  return 0;
1097996402570Smrg}
1098096402570Smrg_ACEOF
10981765b7306Smrgif ac_fn_c_try_link "$LINENO"
10982765b7306Smrgthen :
1098396402570Smrg  eval $cacheid=yes
10984273c00b8Smrgelse case e in #(
10985273c00b8Smrg  e) eval $cacheid=no ;;
10986273c00b8Smrgesac
1098796402570Smrgfi
10988765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10989273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
10990273c00b8Smrgesac
1099196402570Smrgfi
1099296402570Smrg
1099396402570Smrg
1099496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1099596402570Smrg
1099696402570Smrg		eval supported=\$$cacheid
10997765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10998765b7306Smrgprintf "%s\n" "$supported" >&6; }
1099996402570Smrg		if test "$supported" = "yes" ; then
1100096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
1100196402570Smrg			found="yes"
1100296402570Smrg		fi
1100396402570Smrg	fi
1100496402570Smrg
1100596402570Smrg
1100696402570Smrg
1100796402570Smrg
1100896402570Smrg
1100996402570Smrg
1101096402570Smrg
1101196402570Smrg
1101296402570Smrg
1101396402570Smrg
1101496402570Smrg
1101596402570Smrg
1101696402570Smrg
1101796402570Smrg
1101896402570Smrg
1101996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1102096402570Smrg
1102196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1102296402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11023765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11024765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11025765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
11026765b7306Smrgthen :
11027765b7306Smrg  printf %s "(cached) " >&6
11028273c00b8Smrgelse case e in #(
11029273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1103096402570Smrg/* end confdefs.h.  */
1103196402570Smrgint i;
1103296402570Smrg_ACEOF
11033765b7306Smrgif ac_fn_c_try_compile "$LINENO"
11034765b7306Smrgthen :
1103596402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
11036273c00b8Smrgelse case e in #(
11037273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11038273c00b8Smrgesac
1103996402570Smrgfi
11040273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11041273c00b8Smrgesac
1104296402570Smrgfi
11043765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11044765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1104596402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1104696402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1104796402570Smrgfi
1104896402570Smrg
1104996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1105096402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1105196402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1105296402570Smrg	fi
1105396402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11054765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11055765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11056765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11057765b7306Smrgthen :
11058765b7306Smrg  printf %s "(cached) " >&6
11059273c00b8Smrgelse case e in #(
11060273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1106196402570Smrg/* end confdefs.h.  */
1106296402570Smrgint i;
1106396402570Smrg_ACEOF
11064765b7306Smrgif ac_fn_c_try_compile "$LINENO"
11065765b7306Smrgthen :
1106696402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
11067273c00b8Smrgelse case e in #(
11068273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11069273c00b8Smrgesac
1107096402570Smrgfi
11071273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11072273c00b8Smrgesac
1107396402570Smrgfi
11074765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11075765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1107696402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1107796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1107896402570Smrgfi
1107996402570Smrg
1108096402570Smrgfound="no"
1108196402570Smrg
1108296402570Smrg	if test $found = "no" ; then
1108340c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1108496402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1108596402570Smrg		fi
1108696402570Smrg
1108740c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1108896402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1108996402570Smrg		fi
1109096402570Smrg
1109196402570Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
1109296402570Smrg
11093765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11094765b7306Smrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
1109596402570Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11096765b7306Smrg		if eval test \${$cacheid+y}
11097765b7306Smrgthen :
11098765b7306Smrg  printf %s "(cached) " >&6
11099273c00b8Smrgelse case e in #(
11100273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1110196402570Smrg/* end confdefs.h.  */
1110296402570Smrgint i;
1110396402570Smrgint
11104765b7306Smrgmain (void)
1110596402570Smrg{
1110696402570Smrg
1110796402570Smrg  ;
1110896402570Smrg  return 0;
1110996402570Smrg}
1111096402570Smrg_ACEOF
11111765b7306Smrgif ac_fn_c_try_link "$LINENO"
11112765b7306Smrgthen :
1111396402570Smrg  eval $cacheid=yes
11114273c00b8Smrgelse case e in #(
11115273c00b8Smrg  e) eval $cacheid=no ;;
11116273c00b8Smrgesac
1111796402570Smrgfi
11118765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
11119273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
11120273c00b8Smrgesac
1112196402570Smrgfi
1112296402570Smrg
1112396402570Smrg
1112496402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1112596402570Smrg
1112696402570Smrg		eval supported=\$$cacheid
11127765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11128765b7306Smrgprintf "%s\n" "$supported" >&6; }
1112996402570Smrg		if test "$supported" = "yes" ; then
1113096402570Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
1113196402570Smrg			found="yes"
1113296402570Smrg		fi
1113396402570Smrg	fi
1113496402570Smrg
1113596402570Smrg
1113696402570Smrgfi
1113796402570Smrg
1113896402570Smrg
1113996402570Smrg
1114096402570Smrg
1114196402570Smrg
1114296402570Smrg
1114396402570Smrg
1114496402570Smrg		CWARNFLAGS="$BASE_CFLAGS"
1114596402570Smrg		if  test "x$GCC" = xyes ; then
1114696402570Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
1114796402570Smrg		fi
1114896402570Smrg
1114996402570Smrg
1115096402570Smrg
1115196402570Smrg
1115296402570Smrg
1115396402570Smrg
1115496402570Smrg
1115596402570Smrg
1115696402570Smrg# Check whether --enable-strict-compilation was given.
11157765b7306Smrgif test ${enable_strict_compilation+y}
11158765b7306Smrgthen :
1115996402570Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11160273c00b8Smrgelse case e in #(
11161273c00b8Smrg  e) STRICT_COMPILE=no ;;
11162273c00b8Smrgesac
1116396402570Smrgfi
1116496402570Smrg
1116596402570Smrg
1116696402570Smrg
1116796402570Smrg
1116896402570Smrg
1116996402570Smrg
1117096402570SmrgSTRICT_CFLAGS=""
1117196402570Smrg
1117296402570Smrg
1117396402570Smrg
1117496402570Smrg
1117596402570Smrg
1117696402570Smrg
1117796402570Smrg
1117896402570Smrg
1117996402570Smrg
1118096402570Smrg
1118196402570Smrg
1118296402570Smrg
1118396402570Smrg
1118496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1118596402570Smrg
1118696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1118796402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11188765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11189765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11190765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
11191765b7306Smrgthen :
11192765b7306Smrg  printf %s "(cached) " >&6
11193273c00b8Smrgelse case e in #(
11194273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1119596402570Smrg/* end confdefs.h.  */
1119696402570Smrgint i;
1119796402570Smrg_ACEOF
11198765b7306Smrgif ac_fn_c_try_compile "$LINENO"
11199765b7306Smrgthen :
1120096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
11201273c00b8Smrgelse case e in #(
11202273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11203273c00b8Smrgesac
1120496402570Smrgfi
11205273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11206273c00b8Smrgesac
1120796402570Smrgfi
11208765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11209765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1121096402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1121196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1121296402570Smrgfi
1121396402570Smrg
1121496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1121596402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1121696402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1121796402570Smrg	fi
1121896402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11219765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11220765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11221765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11222765b7306Smrgthen :
11223765b7306Smrg  printf %s "(cached) " >&6
11224273c00b8Smrgelse case e in #(
11225273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1122696402570Smrg/* end confdefs.h.  */
1122796402570Smrgint i;
1122896402570Smrg_ACEOF
11229765b7306Smrgif ac_fn_c_try_compile "$LINENO"
11230765b7306Smrgthen :
1123196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
11232273c00b8Smrgelse case e in #(
11233273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11234273c00b8Smrgesac
1123596402570Smrgfi
11236273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11237273c00b8Smrgesac
1123896402570Smrgfi
11239765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11240765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1124196402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1124296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1124396402570Smrgfi
1124496402570Smrg
1124596402570Smrgfound="no"
1124696402570Smrg
1124796402570Smrg	if test $found = "no" ; then
1124840c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1124996402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1125096402570Smrg		fi
1125196402570Smrg
1125240c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1125396402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1125496402570Smrg		fi
1125596402570Smrg
1125696402570Smrg		CFLAGS="$CFLAGS -pedantic"
1125796402570Smrg
11258765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11259765b7306Smrgprintf %s "checking if $CC supports -pedantic... " >&6; }
1126096402570Smrg		cacheid=xorg_cv_cc_flag__pedantic
11261765b7306Smrg		if eval test \${$cacheid+y}
11262765b7306Smrgthen :
11263765b7306Smrg  printf %s "(cached) " >&6
11264273c00b8Smrgelse case e in #(
11265273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1126696402570Smrg/* end confdefs.h.  */
1126796402570Smrgint i;
1126896402570Smrgint
11269765b7306Smrgmain (void)
1127096402570Smrg{
1127196402570Smrg
1127296402570Smrg  ;
1127396402570Smrg  return 0;
1127496402570Smrg}
1127596402570Smrg_ACEOF
11276765b7306Smrgif ac_fn_c_try_link "$LINENO"
11277765b7306Smrgthen :
1127896402570Smrg  eval $cacheid=yes
11279273c00b8Smrgelse case e in #(
11280273c00b8Smrg  e) eval $cacheid=no ;;
11281273c00b8Smrgesac
1128296402570Smrgfi
11283765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
11284273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
11285273c00b8Smrgesac
1128696402570Smrgfi
1128796402570Smrg
1128896402570Smrg
1128996402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1129096402570Smrg
1129196402570Smrg		eval supported=\$$cacheid
11292765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11293765b7306Smrgprintf "%s\n" "$supported" >&6; }
1129496402570Smrg		if test "$supported" = "yes" ; then
1129596402570Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
1129696402570Smrg			found="yes"
1129796402570Smrg		fi
1129896402570Smrg	fi
1129996402570Smrg
1130096402570Smrg
1130196402570Smrg
1130296402570Smrg
1130396402570Smrg
1130496402570Smrg
1130596402570Smrg
1130696402570Smrg
1130796402570Smrg
1130896402570Smrg
1130996402570Smrg
1131096402570Smrg
1131196402570Smrg
1131296402570Smrg
1131396402570Smrg
1131496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1131596402570Smrg
1131696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1131796402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11318765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11319765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11320765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
11321765b7306Smrgthen :
11322765b7306Smrg  printf %s "(cached) " >&6
11323273c00b8Smrgelse case e in #(
11324273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1132596402570Smrg/* end confdefs.h.  */
1132696402570Smrgint i;
1132796402570Smrg_ACEOF
11328765b7306Smrgif ac_fn_c_try_compile "$LINENO"
11329765b7306Smrgthen :
1133096402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
11331273c00b8Smrgelse case e in #(
11332273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11333273c00b8Smrgesac
1133496402570Smrgfi
11335273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11336273c00b8Smrgesac
1133796402570Smrgfi
11338765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11339765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1134096402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1134196402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1134296402570Smrgfi
1134396402570Smrg
1134496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1134596402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1134696402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1134796402570Smrg	fi
1134896402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11349765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11350765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11351765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11352765b7306Smrgthen :
11353765b7306Smrg  printf %s "(cached) " >&6
11354273c00b8Smrgelse case e in #(
11355273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1135696402570Smrg/* end confdefs.h.  */
1135796402570Smrgint i;
1135896402570Smrg_ACEOF
11359765b7306Smrgif ac_fn_c_try_compile "$LINENO"
11360765b7306Smrgthen :
1136196402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
11362273c00b8Smrgelse case e in #(
11363273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11364273c00b8Smrgesac
1136596402570Smrgfi
11366273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11367273c00b8Smrgesac
1136896402570Smrgfi
11369765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11370765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1137196402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1137296402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1137396402570Smrgfi
1137496402570Smrg
1137596402570Smrgfound="no"
1137696402570Smrg
1137796402570Smrg	if test $found = "no" ; then
1137840c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1137996402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1138096402570Smrg		fi
1138196402570Smrg
1138240c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1138396402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1138496402570Smrg		fi
1138596402570Smrg
1138696402570Smrg		CFLAGS="$CFLAGS -Werror"
1138796402570Smrg
11388765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11389765b7306Smrgprintf %s "checking if $CC supports -Werror... " >&6; }
1139096402570Smrg		cacheid=xorg_cv_cc_flag__Werror
11391765b7306Smrg		if eval test \${$cacheid+y}
11392765b7306Smrgthen :
11393765b7306Smrg  printf %s "(cached) " >&6
11394273c00b8Smrgelse case e in #(
11395273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1139696402570Smrg/* end confdefs.h.  */
1139796402570Smrgint i;
1139896402570Smrgint
11399765b7306Smrgmain (void)
1140096402570Smrg{
1140196402570Smrg
1140296402570Smrg  ;
1140396402570Smrg  return 0;
1140496402570Smrg}
1140596402570Smrg_ACEOF
11406765b7306Smrgif ac_fn_c_try_link "$LINENO"
11407765b7306Smrgthen :
1140896402570Smrg  eval $cacheid=yes
11409273c00b8Smrgelse case e in #(
11410273c00b8Smrg  e) eval $cacheid=no ;;
11411273c00b8Smrgesac
1141296402570Smrgfi
11413765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
11414273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
11415273c00b8Smrgesac
1141696402570Smrgfi
1141796402570Smrg
1141896402570Smrg
1141996402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1142096402570Smrg
1142196402570Smrg		eval supported=\$$cacheid
11422765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11423765b7306Smrgprintf "%s\n" "$supported" >&6; }
1142496402570Smrg		if test "$supported" = "yes" ; then
1142596402570Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
1142696402570Smrg			found="yes"
1142796402570Smrg		fi
1142896402570Smrg	fi
1142996402570Smrg
1143096402570Smrg	if test $found = "no" ; then
1143140c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1143296402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1143396402570Smrg		fi
1143496402570Smrg
1143540c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1143696402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1143796402570Smrg		fi
1143896402570Smrg
1143996402570Smrg		CFLAGS="$CFLAGS -errwarn"
1144096402570Smrg
11441765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11442765b7306Smrgprintf %s "checking if $CC supports -errwarn... " >&6; }
1144396402570Smrg		cacheid=xorg_cv_cc_flag__errwarn
11444765b7306Smrg		if eval test \${$cacheid+y}
11445765b7306Smrgthen :
11446765b7306Smrg  printf %s "(cached) " >&6
11447273c00b8Smrgelse case e in #(
11448273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1144996402570Smrg/* end confdefs.h.  */
1145096402570Smrgint i;
1145196402570Smrgint
11452765b7306Smrgmain (void)
1145396402570Smrg{
1145496402570Smrg
1145596402570Smrg  ;
1145696402570Smrg  return 0;
1145796402570Smrg}
1145896402570Smrg_ACEOF
11459765b7306Smrgif ac_fn_c_try_link "$LINENO"
11460765b7306Smrgthen :
1146196402570Smrg  eval $cacheid=yes
11462273c00b8Smrgelse case e in #(
11463273c00b8Smrg  e) eval $cacheid=no ;;
11464273c00b8Smrgesac
1146596402570Smrgfi
11466765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
11467273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
11468273c00b8Smrgesac
1146996402570Smrgfi
1147096402570Smrg
1147196402570Smrg
1147296402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1147396402570Smrg
1147496402570Smrg		eval supported=\$$cacheid
11475765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11476765b7306Smrgprintf "%s\n" "$supported" >&6; }
1147796402570Smrg		if test "$supported" = "yes" ; then
1147896402570Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
1147996402570Smrg			found="yes"
1148096402570Smrg		fi
1148196402570Smrg	fi
1148296402570Smrg
1148396402570Smrg
1148496402570Smrg
1148596402570Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
1148696402570Smrg# activate it with -Werror, so we add it here explicitly.
1148796402570Smrg
1148896402570Smrg
1148996402570Smrg
1149096402570Smrg
1149196402570Smrg
1149296402570Smrg
1149396402570Smrg
1149496402570Smrg
1149596402570Smrg
1149696402570Smrg
1149796402570Smrg
1149896402570Smrg
1149996402570Smrg
1150096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1150196402570Smrg
1150296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1150396402570Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11504765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11505765b7306Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11506765b7306Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
11507765b7306Smrgthen :
11508765b7306Smrg  printf %s "(cached) " >&6
11509273c00b8Smrgelse case e in #(
11510273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1151196402570Smrg/* end confdefs.h.  */
1151296402570Smrgint i;
1151396402570Smrg_ACEOF
11514765b7306Smrgif ac_fn_c_try_compile "$LINENO"
11515765b7306Smrgthen :
1151696402570Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
11517273c00b8Smrgelse case e in #(
11518273c00b8Smrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11519273c00b8Smrgesac
1152096402570Smrgfi
11521273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11522273c00b8Smrgesac
1152396402570Smrgfi
11524765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11525765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1152696402570Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1152796402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1152896402570Smrgfi
1152996402570Smrg
1153096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1153196402570Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1153296402570Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1153396402570Smrg	fi
1153496402570Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11535765b7306Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11536765b7306Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11537765b7306Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11538765b7306Smrgthen :
11539765b7306Smrg  printf %s "(cached) " >&6
11540273c00b8Smrgelse case e in #(
11541273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1154296402570Smrg/* end confdefs.h.  */
1154396402570Smrgint i;
1154496402570Smrg_ACEOF
11545765b7306Smrgif ac_fn_c_try_compile "$LINENO"
11546765b7306Smrgthen :
1154796402570Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
11548273c00b8Smrgelse case e in #(
11549273c00b8Smrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11550273c00b8Smrgesac
1155196402570Smrgfi
11552273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11553273c00b8Smrgesac
1155496402570Smrgfi
11555765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11556765b7306Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1155796402570Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1155896402570Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1155996402570Smrgfi
1156096402570Smrg
1156196402570Smrgfound="no"
1156296402570Smrg
1156396402570Smrg	if test $found = "no" ; then
1156440c5344fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1156596402570Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1156696402570Smrg		fi
1156796402570Smrg
1156840c5344fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1156996402570Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1157096402570Smrg		fi
1157196402570Smrg
1157296402570Smrg		CFLAGS="$CFLAGS -Werror=attributes"
1157396402570Smrg
11574765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11575765b7306Smrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; }
115768abc0ccfSmrg		cacheid=xorg_cv_cc_flag__Werror_attributes
11577765b7306Smrg		if eval test \${$cacheid+y}
11578765b7306Smrgthen :
11579765b7306Smrg  printf %s "(cached) " >&6
11580273c00b8Smrgelse case e in #(
11581273c00b8Smrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1158296402570Smrg/* end confdefs.h.  */
1158396402570Smrgint i;
1158496402570Smrgint
11585765b7306Smrgmain (void)
1158696402570Smrg{
1158796402570Smrg
1158896402570Smrg  ;
1158996402570Smrg  return 0;
1159096402570Smrg}
1159196402570Smrg_ACEOF
11592765b7306Smrgif ac_fn_c_try_link "$LINENO"
11593765b7306Smrgthen :
1159496402570Smrg  eval $cacheid=yes
11595273c00b8Smrgelse case e in #(
11596273c00b8Smrg  e) eval $cacheid=no ;;
11597273c00b8Smrgesac
1159896402570Smrgfi
11599765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
11600273c00b8Smrg    conftest$ac_exeext conftest.$ac_ext ;;
11601273c00b8Smrgesac
1160296402570Smrgfi
1160396402570Smrg
1160496402570Smrg
1160596402570Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1160696402570Smrg
1160796402570Smrg		eval supported=\$$cacheid
11608765b7306Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11609765b7306Smrgprintf "%s\n" "$supported" >&6; }
1161096402570Smrg		if test "$supported" = "yes" ; then
1161196402570Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
1161296402570Smrg			found="yes"
1161396402570Smrg		fi
1161496402570Smrg	fi
1161596402570Smrg
1161696402570Smrg
1161796402570Smrg
1161896402570Smrgif test "x$STRICT_COMPILE" = "xyes"; then
1161996402570Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
1162096402570Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
1162196402570Smrgfi
1162296402570Smrg
1162396402570Smrg
1162496402570Smrg
1162596402570Smrg
1162696402570Smrg
1162796402570Smrg
11628273c00b8Smrg
11629273c00b8Smrg
1163096402570Smrgcat >>confdefs.h <<_ACEOF
1163196402570Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
1163296402570Smrg_ACEOF
1163396402570Smrg
1163496402570Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
1163596402570Smrg	if test "x$PVM" = "x"; then
1163696402570Smrg		PVM="0"
1163796402570Smrg	fi
1163896402570Smrg
11639765b7306Smrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
1164096402570Smrg
1164196402570Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
1164296402570Smrg	if test "x$PVP" = "x"; then
1164396402570Smrg		PVP="0"
1164496402570Smrg	fi
1164596402570Smrg
11646765b7306Smrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
1164796402570Smrg
1164896402570Smrg
1164996402570Smrg
116506c3c2bceSmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
1165196402570Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
116526c3c2bceSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
116536c3c2bceSmrgtouch \$(top_srcdir)/ChangeLog; \
116546c3c2bceSmrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
1165596402570Smrg
1165696402570Smrg
1165796402570Smrg
1165896402570Smrg
1165996402570Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
1166096402570SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
1166196402570Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
116626c3c2bceSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
116636c3c2bceSmrgtouch \$(top_srcdir)/INSTALL; \
116646c3c2bceSmrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
1166596402570Smrg
1166696402570Smrg
1166796402570Smrg
1166896402570Smrg
1166996402570Smrg
1167096402570Smrg
116716c3c2bceSmrgcase $host_os in
116726c3c2bceSmrg    solaris*)
116736c3c2bceSmrg        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
116746c3c2bceSmrg        # check for a man page file found in later versions that use
116756c3c2bceSmrg        # traditional section numbers instead
11676765b7306Smrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11677765b7306Smrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11678765b7306Smrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11679765b7306Smrgthen :
11680765b7306Smrg  printf %s "(cached) " >&6
11681273c00b8Smrgelse case e in #(
11682273c00b8Smrg  e) test "$cross_compiling" = yes &&
116836c3c2bceSmrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
116846c3c2bceSmrgif test -r "/usr/share/man/man7/attributes.7"; then
116856c3c2bceSmrg  ac_cv_file__usr_share_man_man7_attributes_7=yes
116866c3c2bceSmrgelse
116876c3c2bceSmrg  ac_cv_file__usr_share_man_man7_attributes_7=no
11688273c00b8Smrgfi ;;
11689273c00b8Smrgesac
116906c3c2bceSmrgfi
11691765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11692765b7306Smrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11693765b7306Smrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11694765b7306Smrgthen :
116956c3c2bceSmrg  SYSV_MAN_SECTIONS=false
11696273c00b8Smrgelse case e in #(
11697273c00b8Smrg  e) SYSV_MAN_SECTIONS=true ;;
11698273c00b8Smrgesac
116996c3c2bceSmrgfi
117006c3c2bceSmrg
117016c3c2bceSmrg        ;;
117026c3c2bceSmrg    *) SYSV_MAN_SECTIONS=false ;;
117036c3c2bceSmrgesac
117046c3c2bceSmrg
1170596402570Smrgif test x$APP_MAN_SUFFIX = x    ; then
1170696402570Smrg    APP_MAN_SUFFIX=1
1170796402570Smrgfi
1170896402570Smrgif test x$APP_MAN_DIR = x    ; then
1170996402570Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
1171096402570Smrgfi
1171196402570Smrg
1171296402570Smrgif test x$LIB_MAN_SUFFIX = x    ; then
1171396402570Smrg    LIB_MAN_SUFFIX=3
1171496402570Smrgfi
1171596402570Smrgif test x$LIB_MAN_DIR = x    ; then
1171696402570Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
1171796402570Smrgfi
1171896402570Smrg
1171996402570Smrgif test x$FILE_MAN_SUFFIX = x    ; then
117206c3c2bceSmrg    case $SYSV_MAN_SECTIONS in
117216c3c2bceSmrg	true)				FILE_MAN_SUFFIX=4  ;;
1172240c5344fSmrg	*)				FILE_MAN_SUFFIX=5  ;;
1172396402570Smrg    esac
1172496402570Smrgfi
1172596402570Smrgif test x$FILE_MAN_DIR = x    ; then
1172696402570Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
1172796402570Smrgfi
1172896402570Smrg
1172996402570Smrgif test x$MISC_MAN_SUFFIX = x    ; then
117306c3c2bceSmrg    case $SYSV_MAN_SECTIONS in
117316c3c2bceSmrg	true)				MISC_MAN_SUFFIX=5  ;;
1173240c5344fSmrg	*)				MISC_MAN_SUFFIX=7  ;;
1173396402570Smrg    esac
1173496402570Smrgfi
1173596402570Smrgif test x$MISC_MAN_DIR = x    ; then
1173696402570Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
1173796402570Smrgfi
1173896402570Smrg
1173996402570Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
117406c3c2bceSmrg    case $SYSV_MAN_SECTIONS in
117416c3c2bceSmrg	true)				DRIVER_MAN_SUFFIX=7  ;;
1174240c5344fSmrg	*)				DRIVER_MAN_SUFFIX=4  ;;
1174396402570Smrg    esac
1174496402570Smrgfi
1174596402570Smrgif test x$DRIVER_MAN_DIR = x    ; then
1174696402570Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
1174796402570Smrgfi
1174896402570Smrg
1174996402570Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
117506c3c2bceSmrg    case $SYSV_MAN_SECTIONS in
117516c3c2bceSmrg	true)				ADMIN_MAN_SUFFIX=1m ;;
1175240c5344fSmrg	*)				ADMIN_MAN_SUFFIX=8  ;;
1175396402570Smrg    esac
1175496402570Smrgfi
1175596402570Smrgif test x$ADMIN_MAN_DIR = x    ; then
1175696402570Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
1175796402570Smrgfi
1175896402570Smrg
1175996402570Smrg
1176096402570Smrg
1176196402570Smrg
1176296402570Smrg
1176396402570Smrg
1176496402570Smrg
1176596402570Smrg
1176696402570Smrg
1176796402570Smrg
1176896402570Smrg
1176996402570Smrg
1177096402570Smrg
1177196402570Smrg
1177296402570Smrg
1177396402570SmrgXORG_MAN_PAGE="X Version 11"
1177496402570Smrg
1177596402570SmrgMAN_SUBSTS="\
1177696402570Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1177796402570Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
117782adc0320Smrg	-e 's|__xservername__|Xorg|g' \
117792adc0320Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
117802adc0320Smrg	-e 's|__projectroot__|\$(prefix)|g' \
117812adc0320Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
117822adc0320Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
117832adc0320Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
117842adc0320Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
117852adc0320Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
117862adc0320Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
117872adc0320Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
117882adc0320Smrg
117892adc0320Smrg
117902adc0320Smrg
117917a0395d0Smrg
11792f6d57fdeSmrgAM_DEFAULT_VERBOSITY=0
117937a0395d0Smrg
117947a0395d0Smrg
11795273c00b8Smrg
11796273c00b8Smrg# Checks for header files.
11797765b7306Smrgac_fn_c_check_header_compile "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
11798765b7306Smrgif test "x$ac_cv_header_net_errno_h" = xyes
11799765b7306Smrgthen :
11800765b7306Smrg  printf "%s\n" "#define HAVE_NET_ERRNO_H 1" >>confdefs.h
118017a0395d0Smrg
118027a0395d0Smrgfi
118037a0395d0Smrg
118047a0395d0Smrg
11805273c00b8Smrg# Checks for typedefs, structures, and compiler characteristics.
11806273c00b8Smrg# Check whether --enable-largefile was given.
11807273c00b8Smrgif test ${enable_largefile+y}
11808273c00b8Smrgthen :
11809273c00b8Smrg  enableval=$enable_largefile;
11810273c00b8Smrgfi
11811273c00b8Smrgif test "$enable_largefile,$enable_year2038" != no,no
11812273c00b8Smrgthen :
11813273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
11814273c00b8Smrgprintf %s "checking for $CC option to enable large file support... " >&6; }
11815273c00b8Smrgif test ${ac_cv_sys_largefile_opts+y}
11816273c00b8Smrgthen :
11817273c00b8Smrg  printf %s "(cached) " >&6
11818273c00b8Smrgelse case e in #(
11819273c00b8Smrg  e) ac_save_CC="$CC"
11820273c00b8Smrg  ac_opt_found=no
11821273c00b8Smrg  for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
11822273c00b8Smrg    if test x"$ac_opt" != x"none needed"
11823273c00b8Smrgthen :
11824273c00b8Smrg  CC="$ac_save_CC $ac_opt"
11825273c00b8Smrgfi
11826273c00b8Smrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827273c00b8Smrg/* end confdefs.h.  */
11828273c00b8Smrg#include <sys/types.h>
11829273c00b8Smrg#ifndef FTYPE
11830273c00b8Smrg# define FTYPE off_t
11831273c00b8Smrg#endif
11832273c00b8Smrg /* Check that FTYPE can represent 2**63 - 1 correctly.
11833273c00b8Smrg    We can't simply define LARGE_FTYPE to be 9223372036854775807,
11834273c00b8Smrg    since some C++ compilers masquerading as C compilers
11835273c00b8Smrg    incorrectly reject 9223372036854775807.  */
11836273c00b8Smrg#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
11837273c00b8Smrg  int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
11838273c00b8Smrg		       && LARGE_FTYPE % 2147483647 == 1)
11839273c00b8Smrg		      ? 1 : -1];
11840273c00b8Smrgint
11841273c00b8Smrgmain (void)
11842273c00b8Smrg{
11843273c00b8Smrg
11844273c00b8Smrg  ;
11845273c00b8Smrg  return 0;
11846273c00b8Smrg}
11847273c00b8Smrg_ACEOF
11848273c00b8Smrgif ac_fn_c_try_compile "$LINENO"
11849273c00b8Smrgthen :
11850273c00b8Smrg  if test x"$ac_opt" = x"none needed"
11851273c00b8Smrgthen :
11852273c00b8Smrg  # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
11853273c00b8Smrg	 CC="$CC -DFTYPE=ino_t"
11854273c00b8Smrg	 if ac_fn_c_try_compile "$LINENO"
11855273c00b8Smrgthen :
11856273c00b8Smrg
11857273c00b8Smrgelse case e in #(
11858273c00b8Smrg  e) CC="$CC -D_FILE_OFFSET_BITS=64"
11859273c00b8Smrg	    if ac_fn_c_try_compile "$LINENO"
11860273c00b8Smrgthen :
11861273c00b8Smrg  ac_opt='-D_FILE_OFFSET_BITS=64'
11862273c00b8Smrgfi
11863273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam ;;
11864273c00b8Smrgesac
11865273c00b8Smrgfi
11866273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
11867273c00b8Smrgfi
11868273c00b8Smrg      ac_cv_sys_largefile_opts=$ac_opt
11869273c00b8Smrg      ac_opt_found=yes
11870273c00b8Smrgfi
11871273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11872273c00b8Smrg    test $ac_opt_found = no || break
11873273c00b8Smrg  done
11874273c00b8Smrg  CC="$ac_save_CC"
11875273c00b8Smrg
11876273c00b8Smrg  test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
11877273c00b8Smrgesac
11878273c00b8Smrgfi
11879273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
11880273c00b8Smrgprintf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
11881273c00b8Smrg
11882273c00b8Smrgac_have_largefile=yes
11883273c00b8Smrgcase $ac_cv_sys_largefile_opts in #(
11884273c00b8Smrg  "none needed") :
11885273c00b8Smrg     ;; #(
11886273c00b8Smrg  "supported through gnulib") :
11887273c00b8Smrg     ;; #(
11888273c00b8Smrg  "support not detected") :
11889273c00b8Smrg    ac_have_largefile=no ;; #(
11890273c00b8Smrg  "-D_FILE_OFFSET_BITS=64") :
11891273c00b8Smrg
11892273c00b8Smrgprintf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11893273c00b8Smrg ;; #(
11894273c00b8Smrg  "-D_LARGE_FILES=1") :
11895273c00b8Smrg
11896273c00b8Smrgprintf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11897273c00b8Smrg ;; #(
11898273c00b8Smrg  "-n32") :
11899273c00b8Smrg    CC="$CC -n32" ;; #(
11900273c00b8Smrg  *) :
11901273c00b8Smrg    as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
11902273c00b8Smrgesac
11903273c00b8Smrg
11904273c00b8Smrgif test "$enable_year2038" != no
11905273c00b8Smrgthen :
11906273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
11907273c00b8Smrgprintf %s "checking for $CC option for timestamps after 2038... " >&6; }
11908273c00b8Smrgif test ${ac_cv_sys_year2038_opts+y}
11909273c00b8Smrgthen :
11910273c00b8Smrg  printf %s "(cached) " >&6
11911273c00b8Smrgelse case e in #(
11912273c00b8Smrg  e) ac_save_CPPFLAGS="$CPPFLAGS"
11913273c00b8Smrg  ac_opt_found=no
11914273c00b8Smrg  for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
11915273c00b8Smrg    if test x"$ac_opt" != x"none needed"
11916273c00b8Smrgthen :
11917273c00b8Smrg  CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
11918273c00b8Smrgfi
11919273c00b8Smrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920273c00b8Smrg/* end confdefs.h.  */
11921273c00b8Smrg
11922273c00b8Smrg  #include <time.h>
11923273c00b8Smrg  /* Check that time_t can represent 2**32 - 1 correctly.  */
11924273c00b8Smrg  #define LARGE_TIME_T \\
11925273c00b8Smrg    ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
11926273c00b8Smrg  int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
11927273c00b8Smrg                           && LARGE_TIME_T % 65537 == 0)
11928273c00b8Smrg                          ? 1 : -1];
11929273c00b8Smrg
11930273c00b8Smrgint
11931273c00b8Smrgmain (void)
11932273c00b8Smrg{
11933273c00b8Smrg
11934273c00b8Smrg  ;
11935273c00b8Smrg  return 0;
11936273c00b8Smrg}
11937273c00b8Smrg_ACEOF
11938273c00b8Smrgif ac_fn_c_try_compile "$LINENO"
11939273c00b8Smrgthen :
11940273c00b8Smrg  ac_cv_sys_year2038_opts="$ac_opt"
11941273c00b8Smrg      ac_opt_found=yes
11942273c00b8Smrgfi
11943273c00b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11944273c00b8Smrg    test $ac_opt_found = no || break
11945273c00b8Smrg  done
11946273c00b8Smrg  CPPFLAGS="$ac_save_CPPFLAGS"
11947273c00b8Smrg  test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
11948273c00b8Smrgesac
11949273c00b8Smrgfi
11950273c00b8Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
11951273c00b8Smrgprintf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
11952273c00b8Smrg
11953273c00b8Smrgac_have_year2038=yes
11954273c00b8Smrgcase $ac_cv_sys_year2038_opts in #(
11955273c00b8Smrg  "none needed") :
11956273c00b8Smrg     ;; #(
11957273c00b8Smrg  "support not detected") :
11958273c00b8Smrg    ac_have_year2038=no ;; #(
11959273c00b8Smrg  "-D_TIME_BITS=64") :
11960273c00b8Smrg
11961273c00b8Smrgprintf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
11962273c00b8Smrg ;; #(
11963273c00b8Smrg  "-D__MINGW_USE_VC2005_COMPAT") :
11964273c00b8Smrg
11965273c00b8Smrgprintf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
11966273c00b8Smrg ;; #(
11967273c00b8Smrg  "-U_USE_32_BIT_TIME_T"*) :
11968273c00b8Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11969273c00b8Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11970273c00b8Smrgas_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
11971273c00b8Smrgwill stop working after mid-January 2038. Remove
11972273c00b8Smrg_USE_32BIT_TIME_T from the compiler flags.
11973273c00b8SmrgSee 'config.log' for more details" "$LINENO" 5; } ;; #(
11974273c00b8Smrg  *) :
11975273c00b8Smrg    as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
11976273c00b8Smrgesac
11977273c00b8Smrg
11978273c00b8Smrgfi
11979273c00b8Smrg
11980273c00b8Smrgfi
11981273c00b8Smrg
119827a0395d0Smrg# Checks for pkg-config packages
119837a0395d0Smrg
119847a0395d0Smrgpkg_failed=no
11985765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5
11986765b7306Smrgprintf %s "checking for XAUTH... " >&6; }
119877a0395d0Smrg
119887a0395d0Smrgif test -n "$XAUTH_CFLAGS"; then
119897a0395d0Smrg    pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS"
119907a0395d0Smrg elif test -n "$PKG_CONFIG"; then
119917a0395d0Smrg    if test -n "$PKG_CONFIG" && \
11992765b7306Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
119938abc0ccfSmrg  ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
119947a0395d0Smrg  ac_status=$?
11995765b7306Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
119962adc0320Smrg  test $ac_status = 0; }; then
119978abc0ccfSmrg  pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
119988abc0ccfSmrg		      test "x$?" != "x0" && pkg_failed=yes
119997a0395d0Smrgelse
120007a0395d0Smrg  pkg_failed=yes
120017a0395d0Smrgfi
120027a0395d0Smrg else
120037a0395d0Smrg    pkg_failed=untried
120047a0395d0Smrgfi
120057a0395d0Smrgif test -n "$XAUTH_LIBS"; then
120067a0395d0Smrg    pkg_cv_XAUTH_LIBS="$XAUTH_LIBS"
120077a0395d0Smrg elif test -n "$PKG_CONFIG"; then
120087a0395d0Smrg    if test -n "$PKG_CONFIG" && \
12009765b7306Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5
120108abc0ccfSmrg  ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5
120117a0395d0Smrg  ac_status=$?
12012765b7306Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
120132adc0320Smrg  test $ac_status = 0; }; then
120148abc0ccfSmrg  pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null`
120158abc0ccfSmrg		      test "x$?" != "x0" && pkg_failed=yes
120167a0395d0Smrgelse
120177a0395d0Smrg  pkg_failed=yes
120187a0395d0Smrgfi
120197a0395d0Smrg else
120207a0395d0Smrg    pkg_failed=untried
120217a0395d0Smrgfi
120227a0395d0Smrg
120237a0395d0Smrg
120247a0395d0Smrg
120257a0395d0Smrgif test $pkg_failed = yes; then
12026765b7306Smrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027765b7306Smrgprintf "%s\n" "no" >&6; }
120287a0395d0Smrg
120297a0395d0Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
120307a0395d0Smrg        _pkg_short_errors_supported=yes
120317a0395d0Smrgelse
120327a0395d0Smrg        _pkg_short_errors_supported=no
120337a0395d0Smrgfi
120347a0395d0Smrg        if test $_pkg_short_errors_supported = yes; then
120358abc0ccfSmrg	        XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
120367a0395d0Smrg        else
120378abc0ccfSmrg	        XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1`
120387a0395d0Smrg        fi
120397a0395d0Smrg	# Put the nasty error message in config.log where it belongs
120407a0395d0Smrg	echo "$XAUTH_PKG_ERRORS" >&5
120417a0395d0Smrg
120428abc0ccfSmrg	as_fn_error $? "Package requirements (x11 xau xext xmuu xproto >= 7.0.17) were not met:
120437a0395d0Smrg
120447a0395d0Smrg$XAUTH_PKG_ERRORS
120457a0395d0Smrg
120467a0395d0SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
120477a0395d0Smrginstalled software in a non-standard prefix.
120487a0395d0Smrg
120497a0395d0SmrgAlternatively, you may set the environment variables XAUTH_CFLAGS
120507a0395d0Smrgand XAUTH_LIBS to avoid the need to call pkg-config.
120518abc0ccfSmrgSee the pkg-config man page for more details." "$LINENO" 5
120527a0395d0Smrgelif test $pkg_failed = untried; then
12053765b7306Smrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12054765b7306Smrgprintf "%s\n" "no" >&6; }
12055273c00b8Smrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12056273c00b8Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
120572adc0320Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
120587a0395d0Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
120597a0395d0Smrgpath to pkg-config.
120607a0395d0Smrg
120617a0395d0SmrgAlternatively, you may set the environment variables XAUTH_CFLAGS
120627a0395d0Smrgand XAUTH_LIBS to avoid the need to call pkg-config.
120637a0395d0SmrgSee the pkg-config man page for more details.
120647a0395d0Smrg
120657a0395d0SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
12066273c00b8SmrgSee 'config.log' for more details" "$LINENO" 5; }
120677a0395d0Smrgelse
120687a0395d0Smrg	XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS
120697a0395d0Smrg	XAUTH_LIBS=$pkg_cv_XAUTH_LIBS
12070765b7306Smrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12071765b7306Smrgprintf "%s\n" "yes" >&6; }
120728abc0ccfSmrg
120737a0395d0Smrgfi
120747a0395d0Smrg
12075765b7306Smrg# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
12076765b7306Smrg# was not expanded, since xauth with no address support is rather broken.
12077765b7306Smrg#
12078765b7306Smrg# If you're seeing an error here, be sure you installed the lib/xtrans module
12079765b7306Smrg# first and if it's not in the default location, that you set the ACLOCAL
12080765b7306Smrg# environment variable to find it, such as:
12081765b7306Smrg#       ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
12082765b7306Smrg
12083765b7306Smrg
120847a0395d0Smrg# Transport selection macro from xtrans.m4
120857a0395d0Smrg# Needed to set *CONN defines for gethost.c & parsedpy.c
120867a0395d0Smrg
120877a0395d0Smrg
120887366012aSmrg case $host_os in
120897366012aSmrg	mingw*)	unixdef="no"   ;;
120907366012aSmrg	*)	unixdef="yes"  ;;
120917366012aSmrg esac
120927a0395d0Smrg # Check whether --enable-unix-transport was given.
12093765b7306Smrgif test ${enable_unix_transport+y}
12094765b7306Smrgthen :
120957a0395d0Smrg  enableval=$enable_unix_transport; UNIXCONN=$enableval
12096273c00b8Smrgelse case e in #(
12097273c00b8Smrg  e) UNIXCONN=$unixdef ;;
12098273c00b8Smrgesac
120997a0395d0Smrgfi
121007a0395d0Smrg
12101765b7306Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
12102765b7306Smrgprintf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
121037a0395d0Smrg if test "$UNIXCONN" = "yes"; then
121047a0395d0Smrg
12105765b7306Smrgprintf "%s\n" "#define UNIXCONN 1" >>confdefs.h
121067a0395d0Smrg
121077a0395d0Smrg fi
12108765b7306Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
12109765b7306Smrgprintf "%s\n" "$UNIXCONN" >&6; }
121107366012aSmrg # Check whether --enable-tcp-transport was given.
12111765b7306Smrgif test ${enable_tcp_transport+y}
12112765b7306Smrgthen :
121137366012aSmrg  enableval=$enable_tcp_transport; TCPCONN=$enableval
12114273c00b8Smrgelse case e in #(
12115273c00b8Smrg  e) TCPCONN=yes ;;
12116273c00b8Smrgesac
121177366012aSmrgfi
121187366012aSmrg
12119765b7306Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
12120765b7306Smrgprintf %s "checking if Xtrans should support TCP socket connections... " >&6; }
12121765b7306Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
12122765b7306Smrgprintf "%s\n" "$TCPCONN" >&6; }
121237a0395d0Smrg if test "$TCPCONN" = "yes"; then
121247a0395d0Smrg
12125765b7306Smrgprintf "%s\n" "#define TCPCONN 1" >>confdefs.h
121267a0395d0Smrg
121277a0395d0Smrg
121287a0395d0Smrg # SVR4 hides these in libraries other than libc
12129765b7306Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12130765b7306Smrgprintf %s "checking for library containing socket... " >&6; }
12131765b7306Smrgif test ${ac_cv_search_socket+y}
12132765b7306Smrgthen :
12133765b7306Smrg  printf %s "(cached) " >&6
12134273c00b8Smrgelse case e in #(
12135273c00b8Smrg  e) ac_func_search_save_LIBS=$LIBS
121362adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
121377a0395d0Smrg/* end confdefs.h.  */
121387a0395d0Smrg
121397a0395d0Smrg/* Override any GCC internal prototype to avoid an error.
121407a0395d0Smrg   Use char because int might match the return type of a GCC
12141273c00b8Smrg   builtin and then its argument prototype would still apply.
12142273c00b8Smrg   The 'extern "C"' is for builds by C++ compilers;
12143273c00b8Smrg   although this is not generally supported in C code supporting it here
12144273c00b8Smrg   has little cost and some practical benefit (sr 110532).  */
12145273c00b8Smrg#ifdef __cplusplus
12146273c00b8Smrgextern "C"
12147273c00b8Smrg#endif
12148273c00b8Smrgchar socket (void);
121497a0395d0Smrgint
12150765b7306Smrgmain (void)
121517a0395d0Smrg{
121527a0395d0Smrgreturn socket ();
121537a0395d0Smrg  ;
121547a0395d0Smrg  return 0;
121557a0395d0Smrg}
121567a0395d0Smrg_ACEOF
12157765b7306Smrgfor ac_lib in '' socket
12158765b7306Smrgdo
121597a0395d0Smrg  if test -z "$ac_lib"; then
121607a0395d0Smrg    ac_res="none required"
121617a0395d0Smrg  else
121627a0395d0Smrg    ac_res=-l$ac_lib
121637a0395d0Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
121642adc0320Smrg  fi
12165765b7306Smrg  if ac_fn_c_try_link "$LINENO"
12166765b7306Smrgthen :
121672adc0320Smrg  ac_cv_search_socket=$ac_res
121687a0395d0Smrgfi
12169765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
121702adc0320Smrg    conftest$ac_exeext
12171765b7306Smrg  if test ${ac_cv_search_socket+y}
12172765b7306Smrgthen :
121737a0395d0Smrg  break
121747a0395d0Smrgfi
121757a0395d0Smrgdone
12176765b7306Smrgif test ${ac_cv_search_socket+y}
12177765b7306Smrgthen :
121782adc0320Smrg
12179273c00b8Smrgelse case e in #(
12180273c00b8Smrg  e) ac_cv_search_socket=no ;;
12181273c00b8Smrgesac
121827a0395d0Smrgfi
121837a0395d0Smrgrm conftest.$ac_ext
12184273c00b8SmrgLIBS=$ac_func_search_save_LIBS ;;
12185273c00b8Smrgesac
121867a0395d0Smrgfi
12187765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12188765b7306Smrgprintf "%s\n" "$ac_cv_search_socket" >&6; }
121897a0395d0Smrgac_res=$ac_cv_search_socket
12190765b7306Smrgif test "$ac_res" != no
12191765b7306Smrgthen :
121927a0395d0Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
121937a0395d0Smrg
121947a0395d0Smrgfi
121957a0395d0Smrg
12196765b7306Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12197765b7306Smrgprintf %s "checking for library containing gethostbyname... " >&6; }
12198765b7306Smrgif test ${ac_cv_search_gethostbyname+y}
12199765b7306Smrgthen :
12200765b7306Smrg  printf %s "(cached) " >&6
12201273c00b8Smrgelse case e in #(
12202273c00b8Smrg  e) ac_func_search_save_LIBS=$LIBS
122032adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
122047a0395d0Smrg/* end confdefs.h.  */
122057a0395d0Smrg
122067a0395d0Smrg/* Override any GCC internal prototype to avoid an error.
122077a0395d0Smrg   Use char because int might match the return type of a GCC
12208273c00b8Smrg   builtin and then its argument prototype would still apply.
12209273c00b8Smrg   The 'extern "C"' is for builds by C++ compilers;
12210273c00b8Smrg   although this is not generally supported in C code supporting it here
12211273c00b8Smrg   has little cost and some practical benefit (sr 110532).  */
12212273c00b8Smrg#ifdef __cplusplus
12213273c00b8Smrgextern "C"
12214273c00b8Smrg#endif
12215273c00b8Smrgchar gethostbyname (void);
122167a0395d0Smrgint
12217765b7306Smrgmain (void)
122187a0395d0Smrg{
122197a0395d0Smrgreturn gethostbyname ();
122207a0395d0Smrg  ;
122217a0395d0Smrg  return 0;
122227a0395d0Smrg}
122237a0395d0Smrg_ACEOF
12224765b7306Smrgfor ac_lib in '' nsl
12225765b7306Smrgdo
122267a0395d0Smrg  if test -z "$ac_lib"; then
122277a0395d0Smrg    ac_res="none required"
122287a0395d0Smrg  else
122297a0395d0Smrg    ac_res=-l$ac_lib
122307a0395d0Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
122317a0395d0Smrg  fi
12232765b7306Smrg  if ac_fn_c_try_link "$LINENO"
12233765b7306Smrgthen :
122347a0395d0Smrg  ac_cv_search_gethostbyname=$ac_res
122357a0395d0Smrgfi
12236765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
122372adc0320Smrg    conftest$ac_exeext
12238765b7306Smrg  if test ${ac_cv_search_gethostbyname+y}
12239765b7306Smrgthen :
122407a0395d0Smrg  break
122417a0395d0Smrgfi
122427a0395d0Smrgdone
12243765b7306Smrgif test ${ac_cv_search_gethostbyname+y}
12244765b7306Smrgthen :
122452adc0320Smrg
12246273c00b8Smrgelse case e in #(
12247273c00b8Smrg  e) ac_cv_search_gethostbyname=no ;;
12248273c00b8Smrgesac
122497a0395d0Smrgfi
122507a0395d0Smrgrm conftest.$ac_ext
12251273c00b8SmrgLIBS=$ac_func_search_save_LIBS ;;
12252273c00b8Smrgesac
122537a0395d0Smrgfi
12254765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12255765b7306Smrgprintf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
122567a0395d0Smrgac_res=$ac_cv_search_gethostbyname
12257765b7306Smrgif test "$ac_res" != no
12258765b7306Smrgthen :
122597a0395d0Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
122607a0395d0Smrg
122617a0395d0Smrgfi
122627a0395d0Smrg
122632adc0320Smrg if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
12264765b7306Smrg   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
12265765b7306Smrgprintf %s "checking for main in -lws2_32... " >&6; }
12266765b7306Smrgif test ${ac_cv_lib_ws2_32_main+y}
12267765b7306Smrgthen :
12268765b7306Smrg  printf %s "(cached) " >&6
12269273c00b8Smrgelse case e in #(
12270273c00b8Smrg  e) ac_check_lib_save_LIBS=$LIBS
122717366012aSmrgLIBS="-lws2_32  $LIBS"
122722adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
122737366012aSmrg/* end confdefs.h.  */
122747366012aSmrg
122757366012aSmrg
122767366012aSmrgint
12277765b7306Smrgmain (void)
122787366012aSmrg{
122797366012aSmrgreturn main ();
122807366012aSmrg  ;
122817366012aSmrg  return 0;
122827366012aSmrg}
122837366012aSmrg_ACEOF
12284765b7306Smrgif ac_fn_c_try_link "$LINENO"
12285765b7306Smrgthen :
122867366012aSmrg  ac_cv_lib_ws2_32_main=yes
12287273c00b8Smrgelse case e in #(
12288273c00b8Smrg  e) ac_cv_lib_ws2_32_main=no ;;
12289273c00b8Smrgesac
122907366012aSmrgfi
12291765b7306Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
122922adc0320Smrg    conftest$ac_exeext conftest.$ac_ext
12293273c00b8SmrgLIBS=$ac_check_lib_save_LIBS ;;
12294273c00b8Smrgesac
122957366012aSmrgfi
12296765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
12297765b7306Smrgprintf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
12298765b7306Smrgif test "x$ac_cv_lib_ws2_32_main" = xyes
12299765b7306Smrgthen :
12300765b7306Smrg  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
123017366012aSmrg
123027366012aSmrg  LIBS="-lws2_32 $LIBS"
123037366012aSmrg
123047366012aSmrgfi
123057366012aSmrg
123062adc0320Smrg fi
123077366012aSmrg
123087a0395d0Smrg # Needs to come after above checks for libsocket & libnsl for SVR4 systems
12309f6d57fdeSmrg ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12310f6d57fdeSmrgif test "x$ac_cv_func_getaddrinfo" = xyes
12311f6d57fdeSmrgthen :
12312f6d57fdeSmrg  printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
12313f6d57fdeSmrg
12314f6d57fdeSmrgfi
12315f6d57fdeSmrgac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
12316f6d57fdeSmrgif test "x$ac_cv_func_inet_ntop" = xyes
12317f6d57fdeSmrgthen :
12318f6d57fdeSmrg  printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
12319f6d57fdeSmrg
12320f6d57fdeSmrgfi
12321f6d57fdeSmrg
12322f6d57fdeSmrg
123237a0395d0Smrg # Check whether --enable-ipv6 was given.
12324765b7306Smrgif test ${enable_ipv6+y}
12325765b7306Smrgthen :
123267a0395d0Smrg  enableval=$enable_ipv6; IPV6CONN=$enableval
12327273c00b8Smrgelse case e in #(
12328f6d57fdeSmrg  e) IPV6CONN=$ac_cv_func_getaddrinfo ;;
12329273c00b8Smrgesac
123307a0395d0Smrgfi
123317a0395d0Smrg
12332765b7306Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
12333765b7306Smrgprintf %s "checking if IPv6 support should be built... " >&6; }
123347a0395d0Smrg if test "$IPV6CONN" = "yes"; then
123357a0395d0Smrg
12336765b7306Smrgprintf "%s\n" "#define IPv6 1" >>confdefs.h
123377a0395d0Smrg
123387a0395d0Smrg fi
12339765b7306Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
12340765b7306Smrgprintf "%s\n" "$IPV6CONN" >&6; }
123417a0395d0Smrg
123427a0395d0Smrg # 4.3BSD-Reno added a new member to struct sockaddr_in
123432adc0320Smrg ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
123447a0395d0Smrg#include <sys/types.h>
123457a0395d0Smrg#include <sys/socket.h>
123467a0395d0Smrg#include <netinet/in.h>
123477a0395d0Smrg
123482adc0320Smrg"
12349765b7306Smrgif test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
12350765b7306Smrgthen :
123517a0395d0Smrg
12352765b7306Smrgprintf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
123537366012aSmrg
123542adc0320Smrgfi
123557366012aSmrg
123567366012aSmrg
123572adc0320Smrg # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
12358f6d57fdeSmrg # and added a type defined to be large enough to hold any sockaddr format.
123592adc0320Smrg ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
123602adc0320Smrg$ac_includes_default
123612adc0320Smrg#include <sys/socket.h>
12362f6d57fdeSmrg
123632adc0320Smrg"
12364765b7306Smrgif test "x$ac_cv_type_socklen_t" = xyes
12365765b7306Smrgthen :
123667366012aSmrg
12367765b7306Smrgprintf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
123687366012aSmrg
123697366012aSmrg
12370f6d57fdeSmrgfi
12371f6d57fdeSmrgac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
12372f6d57fdeSmrg$ac_includes_default
12373f6d57fdeSmrg#include <sys/socket.h>
12374f6d57fdeSmrg
12375f6d57fdeSmrg"
12376f6d57fdeSmrgif test "x$ac_cv_type_struct_sockaddr_storage" = xyes
12377f6d57fdeSmrgthen :
12378f6d57fdeSmrg
12379f6d57fdeSmrgprintf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
12380f6d57fdeSmrg
12381f6d57fdeSmrg
123827366012aSmrgfi
123837366012aSmrg
123847366012aSmrg
123859a011757Smrg # XPG4v2/UNIX95 added msg_control - check to see if we need to define
123869a011757Smrg # _XOPEN_SOURCE to get it (such as on Solaris)
123879a011757Smrg ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
123889a011757Smrg$ac_includes_default
123899a011757Smrg#include <sys/socket.h>
123909a011757Smrg
123919a011757Smrg"
12392765b7306Smrgif test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
12393765b7306Smrgthen :
123949a011757Smrg
123959a011757Smrgfi
123969a011757Smrg
123979a011757Smrg # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
123989a011757Smrg if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
123999a011757Smrg     unset ac_cv_member_struct_msghdr_msg_control
12400765b7306Smrg     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
12401765b7306Smrgprintf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
124029a011757Smrg     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
124039a011757Smrg#define _XOPEN_SOURCE 600
124049a011757Smrg$ac_includes_default
124059a011757Smrg#include <sys/socket.h>
124069a011757Smrg
124079a011757Smrg"
12408765b7306Smrgif test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
12409765b7306Smrgthen :
124109a011757Smrg
12411765b7306Smrgprintf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
124129a011757Smrg
124139a011757Smrg
124149a011757Smrgfi
124159a011757Smrg
124169a011757Smrg fi
124179a011757Smrg # If that didn't work, fall back to XPG5/UNIX98 with C89
124189a011757Smrg if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
124199a011757Smrg     unset ac_cv_member_struct_msghdr_msg_control
12420765b7306Smrg     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
12421765b7306Smrgprintf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
124229a011757Smrg     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
124239a011757Smrg#define _XOPEN_SOURCE 500
124249a011757Smrg$ac_includes_default
124259a011757Smrg#include <sys/socket.h>
124269a011757Smrg
124279a011757Smrg"
12428765b7306Smrgif test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
12429765b7306Smrgthen :
124309a011757Smrg
12431765b7306Smrgprintf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
124329a011757Smrg
124339a011757Smrg
124349a011757Smrgfi
124359a011757Smrg
124369a011757Smrg fi
124379a011757Smrg
124389a011757Smrg
124397366012aSmrg
124402adc0320Smrg fi
124412adc0320Smrg case $host_os in
12442273c00b8Smrg	solaris*)		localdef="yes" ;;
124432adc0320Smrg	*)			localdef="no"  ;;
124442adc0320Smrg esac
124452adc0320Smrg # Check whether --enable-local-transport was given.
12446765b7306Smrgif test ${enable_local_transport+y}
12447765b7306Smrgthen :
124482adc0320Smrg  enableval=$enable_local_transport; LOCALCONN=$enableval
12449273c00b8Smrgelse case e in #(
12450273c00b8Smrg  e) LOCALCONN=$localdef ;;
12451273c00b8Smrgesac
124522adc0320Smrgfi
124537366012aSmrg
12454765b7306Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
12455765b7306Smrgprintf %s "checking if Xtrans should support os-specific local connections... " >&6; }
12456765b7306Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
12457765b7306Smrgprintf "%s\n" "$LOCALCONN" >&6; }
124582adc0320Smrg if test "$LOCALCONN" = "yes"; then
124597a0395d0Smrg
12460765b7306Smrgprintf "%s\n" "#define LOCALCONN 1" >>confdefs.h
124617a0395d0Smrg
124622adc0320Smrg fi
124637a0395d0Smrg
124640d22642bSmrg # Other functions Xtrans may need
12465765b7306Smrg ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
12466765b7306Smrgif test "x$ac_cv_func_strcasecmp" = xyes
12467765b7306Smrgthen :
12468765b7306Smrg  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
12469765b7306Smrg
12470765b7306Smrgfi
12471765b7306Smrgac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
12472765b7306Smrgif test "x$ac_cv_func_strlcpy" = xyes
12473765b7306Smrgthen :
12474765b7306Smrg  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
124750d22642bSmrg
124760d22642bSmrgfi
124770d22642bSmrg
124780d22642bSmrg
124797a0395d0Smrg
124807366012aSmrg
12481f6d57fdeSmrg# Checks for library functions.
12482f6d57fdeSmrgac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12483f6d57fdeSmrgif test "x$ac_cv_func_getaddrinfo" = xyes
12484f6d57fdeSmrgthen :
12485f6d57fdeSmrg  printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
12486f6d57fdeSmrg
12487f6d57fdeSmrgfi
12488f6d57fdeSmrgac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
12489f6d57fdeSmrgif test "x$ac_cv_func_inet_ntop" = xyes
12490f6d57fdeSmrgthen :
12491f6d57fdeSmrg  printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
12492f6d57fdeSmrg
12493f6d57fdeSmrgfi
12494f6d57fdeSmrgac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
12495f6d57fdeSmrgif test "x$ac_cv_func_reallocarray" = xyes
12496f6d57fdeSmrgthen :
12497f6d57fdeSmrg  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
12498f6d57fdeSmrg
12499f6d57fdeSmrgfi
12500f6d57fdeSmrgac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
12501f6d57fdeSmrgif test "x$ac_cv_func_strlcpy" = xyes
12502f6d57fdeSmrgthen :
12503f6d57fdeSmrg  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
12504f6d57fdeSmrg
12505f6d57fdeSmrgfi
12506f6d57fdeSmrg
12507f6d57fdeSmrg
125087366012aSmrg
125097a0395d0Smrg
125107a0395d0Smrg
125117a0395d0Smrg
125127366012aSmrg
125132adc0320Smrg# Check whether --with-lint was given.
12514765b7306Smrgif test ${with_lint+y}
12515765b7306Smrgthen :
125162adc0320Smrg  withval=$with_lint; use_lint=$withval
12517273c00b8Smrgelse case e in #(
12518273c00b8Smrg  e) use_lint=no ;;
12519273c00b8Smrgesac
125207a0395d0Smrgfi
125217a0395d0Smrg
125227a0395d0Smrg
125232adc0320Smrg# Obtain platform specific info like program name and options
125242adc0320Smrg# The lint program on FreeBSD and NetBSD is different from the one on Solaris
125252adc0320Smrgcase $host_os in
125262adc0320Smrg  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
125272adc0320Smrg	lint_name=splint
125282adc0320Smrg	lint_options="-badflag"
125292adc0320Smrg	;;
125302adc0320Smrg  *freebsd* | *netbsd*)
125312adc0320Smrg	lint_name=lint
125322adc0320Smrg	lint_options="-u -b"
125332adc0320Smrg	;;
125342adc0320Smrg  *solaris*)
125352adc0320Smrg	lint_name=lint
125362adc0320Smrg	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
125372adc0320Smrg	;;
125382adc0320Smrgesac
125397366012aSmrg
125402adc0320Smrg# Test for the presence of the program (either guessed by the code or spelled out by the user)
125412adc0320Smrgif test "x$use_lint" = x"yes" ; then
125422adc0320Smrg   # Extract the first word of "$lint_name", so it can be a program name with args.
125432adc0320Smrgset dummy $lint_name; ac_word=$2
12544765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12545765b7306Smrgprintf %s "checking for $ac_word... " >&6; }
12546765b7306Smrgif test ${ac_cv_path_LINT+y}
12547765b7306Smrgthen :
12548765b7306Smrg  printf %s "(cached) " >&6
12549273c00b8Smrgelse case e in #(
12550273c00b8Smrg  e) case $LINT in
125512adc0320Smrg  [\\/]* | ?:[\\/]*)
125522adc0320Smrg  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
125532adc0320Smrg  ;;
125542adc0320Smrg  *)
125552adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
125562adc0320Smrgfor as_dir in $PATH
125572adc0320Smrgdo
125582adc0320Smrg  IFS=$as_save_IFS
12559765b7306Smrg  case $as_dir in #(((
12560765b7306Smrg    '') as_dir=./ ;;
12561765b7306Smrg    */) ;;
12562765b7306Smrg    *) as_dir=$as_dir/ ;;
12563765b7306Smrg  esac
125642adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
12565765b7306Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12566765b7306Smrg    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
12567765b7306Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
125682adc0320Smrg    break 2
125692adc0320Smrg  fi
125702adc0320Smrgdone
125712adc0320Smrg  done
125722adc0320SmrgIFS=$as_save_IFS
125732adc0320Smrg
125742adc0320Smrg  ;;
12575273c00b8Smrgesac ;;
125762adc0320Smrgesac
125772adc0320Smrgfi
125782adc0320SmrgLINT=$ac_cv_path_LINT
125792adc0320Smrgif test -n "$LINT"; then
12580765b7306Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
12581765b7306Smrgprintf "%s\n" "$LINT" >&6; }
125827a0395d0Smrgelse
12583765b7306Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12584765b7306Smrgprintf "%s\n" "no" >&6; }
125857a0395d0Smrgfi
125867a0395d0Smrg
125877a0395d0Smrg
125882adc0320Smrg   if test "x$LINT" = "x"; then
125892adc0320Smrg        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
125902adc0320Smrg   fi
125912adc0320Smrgelif test "x$use_lint" = x"no" ; then
125922adc0320Smrg   if test "x$LINT" != "x"; then
12593765b7306Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12594765b7306Smrgprintf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
125952adc0320Smrg   fi
125967a0395d0Smrgelse
125972adc0320Smrg   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
125987a0395d0Smrgfi
125997a0395d0Smrg
126002adc0320Smrg# User supplied flags override default flags
126012adc0320Smrgif test "x$LINT_FLAGS" != "x"; then
126022adc0320Smrg   lint_options=$LINT_FLAGS
126037a0395d0Smrgfi
126047a0395d0Smrg
126052adc0320SmrgLINT_FLAGS=$lint_options
126067a0395d0Smrg
126072adc0320Smrg if test "x$LINT" != x; then
126087a0395d0Smrg  LINT_TRUE=
126097a0395d0Smrg  LINT_FALSE='#'
126107a0395d0Smrgelse
126117a0395d0Smrg  LINT_TRUE='#'
126127a0395d0Smrg  LINT_FALSE=
126137a0395d0Smrgfi
126147a0395d0Smrg
126157a0395d0Smrg
126167a0395d0Smrg
126177a0395d0Smrg
126188abc0ccfSmrgac_config_files="$ac_config_files Makefile tests/Makefile man/Makefile"
126197a0395d0Smrg
126207a0395d0Smrgcat >confcache <<\_ACEOF
126217a0395d0Smrg# This file is a shell script that caches the results of configure
126227a0395d0Smrg# tests run on this system so they can be shared between configure
126237a0395d0Smrg# scripts and configure runs, see configure's option --config-cache.
126247a0395d0Smrg# It is not useful on other systems.  If it contains results you don't
126257a0395d0Smrg# want to keep, you may remove or edit it.
126267a0395d0Smrg#
126277a0395d0Smrg# config.status only pays attention to the cache file if you give it
126287a0395d0Smrg# the --recheck option to rerun configure.
126297a0395d0Smrg#
12630273c00b8Smrg# 'ac_cv_env_foo' variables (set or unset) will be overridden when
12631273c00b8Smrg# loading this file, other *unset* 'ac_cv_foo' will be assigned the
126327a0395d0Smrg# following values.
126337a0395d0Smrg
126347a0395d0Smrg_ACEOF
126357a0395d0Smrg
126367a0395d0Smrg# The following way of writing the cache mishandles newlines in values,
126377a0395d0Smrg# but we know of no workaround that is simple, portable, and efficient.
126387a0395d0Smrg# So, we kill variables containing newlines.
126397a0395d0Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
126407a0395d0Smrg# and sets the high bit in the cache file unless we assign to the vars.
126417a0395d0Smrg(
126427a0395d0Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
126437a0395d0Smrg    eval ac_val=\$$ac_var
126447a0395d0Smrg    case $ac_val in #(
126457a0395d0Smrg    *${as_nl}*)
126467a0395d0Smrg      case $ac_var in #(
12647765b7306Smrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12648765b7306Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
126497a0395d0Smrg      esac
126507a0395d0Smrg      case $ac_var in #(
126517a0395d0Smrg      _ | IFS | as_nl) ;; #(
126527366012aSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
126532adc0320Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
126547a0395d0Smrg      esac ;;
126557a0395d0Smrg    esac
126567a0395d0Smrg  done
126577a0395d0Smrg
126587a0395d0Smrg  (set) 2>&1 |
126597a0395d0Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
126607a0395d0Smrg    *${as_nl}ac_space=\ *)
12661273c00b8Smrg      # 'set' does not quote correctly, so add quotes: double-quote
126622adc0320Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
126637a0395d0Smrg      sed -n \
126647a0395d0Smrg	"s/'/'\\\\''/g;
126657a0395d0Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
126667a0395d0Smrg      ;; #(
126677a0395d0Smrg    *)
12668273c00b8Smrg      # 'set' quotes correctly as required by POSIX, so do not add quotes.
126697a0395d0Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
126707a0395d0Smrg      ;;
126717a0395d0Smrg    esac |
126727a0395d0Smrg    sort
126737a0395d0Smrg) |
126747a0395d0Smrg  sed '
126757a0395d0Smrg     /^ac_cv_env_/b end
126767a0395d0Smrg     t clear
126777a0395d0Smrg     :clear
12678765b7306Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
126797a0395d0Smrg     t end
126807a0395d0Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
126817a0395d0Smrg     :end' >>confcache
126827a0395d0Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
126837a0395d0Smrg  if test -w "$cache_file"; then
126842adc0320Smrg    if test "x$cache_file" != "x/dev/null"; then
12685765b7306Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12686765b7306Smrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
126872adc0320Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
126882adc0320Smrg	cat confcache >"$cache_file"
126892adc0320Smrg      else
126902adc0320Smrg        case $cache_file in #(
126912adc0320Smrg        */* | ?:*)
126922adc0320Smrg	  mv -f confcache "$cache_file"$$ &&
126932adc0320Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
126942adc0320Smrg        *)
126952adc0320Smrg	  mv -f confcache "$cache_file" ;;
126962adc0320Smrg	esac
126972adc0320Smrg      fi
126982adc0320Smrg    fi
126997a0395d0Smrg  else
12700765b7306Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12701765b7306Smrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
127027a0395d0Smrg  fi
127037a0395d0Smrgfi
127047a0395d0Smrgrm -f confcache
127057a0395d0Smrg
127067a0395d0Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
127077a0395d0Smrg# Let make expand exec_prefix.
127087a0395d0Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
127097a0395d0Smrg
127107a0395d0SmrgDEFS=-DHAVE_CONFIG_H
127117a0395d0Smrg
127127a0395d0Smrgac_libobjs=
127137a0395d0Smrgac_ltlibobjs=
127142adc0320SmrgU=
127157a0395d0Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
127167a0395d0Smrg  # 1. Remove the extension, and $U if already installed.
127177a0395d0Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12718765b7306Smrg  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
127197a0395d0Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
127207a0395d0Smrg  #    will be set to the directory where LIBOBJS objects are built.
127212adc0320Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
127222adc0320Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
127237a0395d0Smrgdone
127247a0395d0SmrgLIBOBJS=$ac_libobjs
127257a0395d0Smrg
127267a0395d0SmrgLTLIBOBJS=$ac_ltlibobjs
127277a0395d0Smrg
127287a0395d0Smrg
12729765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12730765b7306Smrgprintf %s "checking that generated files are newer than configure... " >&6; }
127318abc0ccfSmrg   if test -n "$am_sleep_pid"; then
127328abc0ccfSmrg     # Hide warnings about reused PIDs.
127338abc0ccfSmrg     wait $am_sleep_pid 2>/dev/null
127348abc0ccfSmrg   fi
12735765b7306Smrg   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12736765b7306Smrgprintf "%s\n" "done" >&6; }
12737273c00b8Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12738273c00b8Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
12739273c00b8SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
12740273c00b8Smrgfi
12741273c00b8Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12742273c00b8Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12743273c00b8SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
12744273c00b8Smrgfi
12745f6d57fdeSmrgcase $enable_silent_rules in # (((
12746f6d57fdeSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
12747f6d57fdeSmrg   no) AM_DEFAULT_VERBOSITY=1;;
12748f6d57fdeSmrgesac
12749f6d57fdeSmrgif test $am_cv_make_support_nested_variables = yes; then
12750f6d57fdeSmrg    AM_V='$(V)'
12751f6d57fdeSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12752f6d57fdeSmrgelse
12753f6d57fdeSmrg  AM_V=$AM_DEFAULT_VERBOSITY
12754f6d57fdeSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12755f6d57fdeSmrgfi
12756f6d57fdeSmrg
127577366012aSmrg if test -n "$EXEEXT"; then
127587366012aSmrg  am__EXEEXT_TRUE=
127597366012aSmrg  am__EXEEXT_FALSE='#'
127607366012aSmrgelse
127617366012aSmrg  am__EXEEXT_TRUE='#'
127627366012aSmrg  am__EXEEXT_FALSE=
127637366012aSmrgfi
127647366012aSmrg
12765273c00b8Smrg# Check whether --enable-year2038 was given.
12766273c00b8Smrgif test ${enable_year2038+y}
12767273c00b8Smrgthen :
12768273c00b8Smrg  enableval=$enable_year2038;
127697a0395d0Smrgfi
12770273c00b8Smrg
127717a0395d0Smrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
127722adc0320Smrg  as_fn_error $? "conditional \"LINT\" was never defined.
127732adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
127747a0395d0Smrgfi
127757a0395d0Smrg
127762adc0320Smrg: "${CONFIG_STATUS=./config.status}"
127777366012aSmrgac_write_fail=0
127787a0395d0Smrgac_clean_files_save=$ac_clean_files
127797a0395d0Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
12780765b7306Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12781765b7306Smrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
127822adc0320Smrgas_write_fail=0
127832adc0320Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
127847a0395d0Smrg#! $SHELL
127857a0395d0Smrg# Generated by $as_me.
127867a0395d0Smrg# Run this file to recreate the current configuration.
127877a0395d0Smrg# Compiler output produced by configure, useful for debugging
127887a0395d0Smrg# configure, is in config.log if it exists.
127897a0395d0Smrg
127907a0395d0Smrgdebug=false
127917a0395d0Smrgac_cs_recheck=false
127927a0395d0Smrgac_cs_silent=false
127937a0395d0Smrg
127942adc0320SmrgSHELL=\${CONFIG_SHELL-$SHELL}
127952adc0320Smrgexport SHELL
127962adc0320Smrg_ASEOF
127972adc0320Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
127982adc0320Smrg## -------------------- ##
127992adc0320Smrg## M4sh Initialization. ##
128002adc0320Smrg## -------------------- ##
128017a0395d0Smrg
128027a0395d0Smrg# Be more Bourne compatible
128037a0395d0SmrgDUALCASE=1; export DUALCASE # for MKS sh
12804765b7306Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12805765b7306Smrgthen :
128067a0395d0Smrg  emulate sh
128077a0395d0Smrg  NULLCMD=:
128087366012aSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
128097a0395d0Smrg  # is contrary to our usage.  Disable this feature.
128107a0395d0Smrg  alias -g '${1+"$@"}'='"$@"'
128117a0395d0Smrg  setopt NO_GLOB_SUBST
12812273c00b8Smrgelse case e in #(
12813273c00b8Smrg  e) case `(set -o) 2>/dev/null` in #(
128142adc0320Smrg  *posix*) :
128152adc0320Smrg    set -o posix ;; #(
128162adc0320Smrg  *) :
128172adc0320Smrg     ;;
12818273c00b8Smrgesac ;;
128197a0395d0Smrgesac
128207a0395d0Smrgfi
128217a0395d0Smrg
128227a0395d0Smrg
12823765b7306Smrg
12824765b7306Smrg# Reset variables that may have inherited troublesome values from
12825765b7306Smrg# the environment.
12826765b7306Smrg
12827765b7306Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
12828765b7306Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
12829765b7306Smrg# side effect of setting IFS to empty, thus disabling word splitting.)
12830765b7306Smrg# Quoting is to prevent editors from complaining about space-tab.
128317366012aSmrgas_nl='
128327366012aSmrg'
128337366012aSmrgexport as_nl
12834765b7306SmrgIFS=" ""	$as_nl"
12835765b7306Smrg
12836765b7306SmrgPS1='$ '
12837765b7306SmrgPS2='> '
12838765b7306SmrgPS4='+ '
12839765b7306Smrg
12840765b7306Smrg# Ensure predictable behavior from utilities with locale-dependent output.
12841765b7306SmrgLC_ALL=C
12842765b7306Smrgexport LC_ALL
12843765b7306SmrgLANGUAGE=C
12844765b7306Smrgexport LANGUAGE
12845765b7306Smrg
12846765b7306Smrg# We cannot yet rely on "unset" to work, but we need these variables
12847765b7306Smrg# to be unset--not just set to an empty or harmless value--now, to
12848765b7306Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12849765b7306Smrg# also avoids known problems related to "unset" and subshell syntax
12850765b7306Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12851765b7306Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12852765b7306Smrgdo eval test \${$as_var+y} \
12853765b7306Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12854765b7306Smrgdone
12855765b7306Smrg
12856765b7306Smrg# Ensure that fds 0, 1, and 2 are open.
12857765b7306Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12858765b7306Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12859765b7306Smrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
128607366012aSmrg
128617366012aSmrg# The user is always right.
12862765b7306Smrgif ${PATH_SEPARATOR+false} :; then
128637366012aSmrg  PATH_SEPARATOR=:
128647366012aSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
128657366012aSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
128667366012aSmrg      PATH_SEPARATOR=';'
128677366012aSmrg  }
128687a0395d0Smrgfi
128697a0395d0Smrg
128707a0395d0Smrg
128717a0395d0Smrg# Find who we are.  Look in the path if we contain no directory separator.
128722adc0320Smrgas_myself=
128732adc0320Smrgcase $0 in #((
128747a0395d0Smrg  *[\\/]* ) as_myself=$0 ;;
128757a0395d0Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128767a0395d0Smrgfor as_dir in $PATH
128777a0395d0Smrgdo
128787a0395d0Smrg  IFS=$as_save_IFS
12879765b7306Smrg  case $as_dir in #(((
12880765b7306Smrg    '') as_dir=./ ;;
12881765b7306Smrg    */) ;;
12882765b7306Smrg    *) as_dir=$as_dir/ ;;
12883765b7306Smrg  esac
12884765b7306Smrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
128852adc0320Smrg  done
128867a0395d0SmrgIFS=$as_save_IFS
128877a0395d0Smrg
128887a0395d0Smrg     ;;
128897a0395d0Smrgesac
12890273c00b8Smrg# We did not find ourselves, most probably we were run as 'sh COMMAND'
128917a0395d0Smrg# in which case we are not to be found in the path.
128927a0395d0Smrgif test "x$as_myself" = x; then
128937a0395d0Smrg  as_myself=$0
128947a0395d0Smrgfi
128957a0395d0Smrgif test ! -f "$as_myself"; then
12896765b7306Smrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
128972adc0320Smrg  exit 1
128987a0395d0Smrgfi
128997a0395d0Smrg
129002adc0320Smrg
129012adc0320Smrg
129022adc0320Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
129032adc0320Smrg# ----------------------------------------
129042adc0320Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
129052adc0320Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
129062adc0320Smrg# script with STATUS, using 1 if that was 0.
129072adc0320Smrgas_fn_error ()
129082adc0320Smrg{
129092adc0320Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
129102adc0320Smrg  if test "$4"; then
129112adc0320Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12912765b7306Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
129132adc0320Smrg  fi
12914765b7306Smrg  printf "%s\n" "$as_me: error: $2" >&2
129152adc0320Smrg  as_fn_exit $as_status
129162adc0320Smrg} # as_fn_error
129172adc0320Smrg
129182adc0320Smrg
129192adc0320Smrg# as_fn_set_status STATUS
129202adc0320Smrg# -----------------------
129212adc0320Smrg# Set $? to STATUS, without forking.
129222adc0320Smrgas_fn_set_status ()
129232adc0320Smrg{
129242adc0320Smrg  return $1
129252adc0320Smrg} # as_fn_set_status
129262adc0320Smrg
129272adc0320Smrg# as_fn_exit STATUS
129282adc0320Smrg# -----------------
129292adc0320Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
129302adc0320Smrgas_fn_exit ()
129312adc0320Smrg{
129322adc0320Smrg  set +e
129332adc0320Smrg  as_fn_set_status $1
129342adc0320Smrg  exit $1
129352adc0320Smrg} # as_fn_exit
129362adc0320Smrg
129372adc0320Smrg# as_fn_unset VAR
129382adc0320Smrg# ---------------
129392adc0320Smrg# Portably unset VAR.
129402adc0320Smrgas_fn_unset ()
129412adc0320Smrg{
129422adc0320Smrg  { eval $1=; unset $1;}
129432adc0320Smrg}
129442adc0320Smrgas_unset=as_fn_unset
12945765b7306Smrg
129462adc0320Smrg# as_fn_append VAR VALUE
129472adc0320Smrg# ----------------------
129482adc0320Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
129492adc0320Smrg# advantage of any shell optimizations that allow amortized linear growth over
129502adc0320Smrg# repeated appends, instead of the typical quadratic growth present in naive
129512adc0320Smrg# implementations.
12952765b7306Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12953765b7306Smrgthen :
129542adc0320Smrg  eval 'as_fn_append ()
129552adc0320Smrg  {
129562adc0320Smrg    eval $1+=\$2
129572adc0320Smrg  }'
12958273c00b8Smrgelse case e in #(
12959273c00b8Smrg  e) as_fn_append ()
129602adc0320Smrg  {
129612adc0320Smrg    eval $1=\$$1\$2
12962273c00b8Smrg  } ;;
12963273c00b8Smrgesac
129642adc0320Smrgfi # as_fn_append
129652adc0320Smrg
129662adc0320Smrg# as_fn_arith ARG...
129672adc0320Smrg# ------------------
129682adc0320Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
129692adc0320Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
129702adc0320Smrg# must be portable across $(()) and expr.
12971765b7306Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12972765b7306Smrgthen :
129732adc0320Smrg  eval 'as_fn_arith ()
129742adc0320Smrg  {
129752adc0320Smrg    as_val=$(( $* ))
129762adc0320Smrg  }'
12977273c00b8Smrgelse case e in #(
12978273c00b8Smrg  e) as_fn_arith ()
129792adc0320Smrg  {
129802adc0320Smrg    as_val=`expr "$@" || test $? -eq 1`
12981273c00b8Smrg  } ;;
12982273c00b8Smrgesac
129832adc0320Smrgfi # as_fn_arith
129842adc0320Smrg
129852adc0320Smrg
129867a0395d0Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
129877a0395d0Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
129887a0395d0Smrg  as_expr=expr
129897a0395d0Smrgelse
129907a0395d0Smrg  as_expr=false
129917a0395d0Smrgfi
129927a0395d0Smrg
129937a0395d0Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
129947a0395d0Smrg  as_basename=basename
129957a0395d0Smrgelse
129967a0395d0Smrg  as_basename=false
129977a0395d0Smrgfi
129987a0395d0Smrg
129992adc0320Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
130002adc0320Smrg  as_dirname=dirname
130012adc0320Smrgelse
130022adc0320Smrg  as_dirname=false
130032adc0320Smrgfi
130047a0395d0Smrg
130057a0395d0Smrgas_me=`$as_basename -- "$0" ||
130067a0395d0Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
130077a0395d0Smrg	 X"$0" : 'X\(//\)$' \| \
130087a0395d0Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13009765b7306Smrgprintf "%s\n" X/"$0" |
130107a0395d0Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
130117a0395d0Smrg	    s//\1/
130127a0395d0Smrg	    q
130137a0395d0Smrg	  }
130147a0395d0Smrg	  /^X\/\(\/\/\)$/{
130157a0395d0Smrg	    s//\1/
130167a0395d0Smrg	    q
130177a0395d0Smrg	  }
130187a0395d0Smrg	  /^X\/\(\/\).*/{
130197a0395d0Smrg	    s//\1/
130207a0395d0Smrg	    q
130217a0395d0Smrg	  }
130227a0395d0Smrg	  s/.*/./; q'`
130237a0395d0Smrg
130242adc0320Smrg# Avoid depending upon Character Ranges.
130252adc0320Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
130262adc0320Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
130272adc0320Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
130282adc0320Smrgas_cr_digits='0123456789'
130292adc0320Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
130307a0395d0Smrg
13031765b7306Smrg
13032765b7306Smrg# Determine whether it's possible to make 'echo' print without a newline.
13033765b7306Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
13034765b7306Smrg# for compatibility with existing Makefiles.
130357a0395d0SmrgECHO_C= ECHO_N= ECHO_T=
130362adc0320Smrgcase `echo -n x` in #(((((
130377a0395d0Smrg-n*)
130382adc0320Smrg  case `echo 'xy\c'` in
130397a0395d0Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
130402adc0320Smrg  xy)  ECHO_C='\c';;
130412adc0320Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
130422adc0320Smrg       ECHO_T='	';;
130437a0395d0Smrg  esac;;
130447a0395d0Smrg*)
130457a0395d0Smrg  ECHO_N='-n';;
130467a0395d0Smrgesac
130477a0395d0Smrg
13048765b7306Smrg# For backward compatibility with old third-party macros, we provide
13049765b7306Smrg# the shell variables $as_echo and $as_echo_n.  New code should use
13050765b7306Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
13051765b7306Smrgas_echo='printf %s\n'
13052765b7306Smrgas_echo_n='printf %s'
13053765b7306Smrg
130547a0395d0Smrgrm -f conf$$ conf$$.exe conf$$.file
130557a0395d0Smrgif test -d conf$$.dir; then
130567a0395d0Smrg  rm -f conf$$.dir/conf$$.file
130577a0395d0Smrgelse
130587a0395d0Smrg  rm -f conf$$.dir
130597366012aSmrg  mkdir conf$$.dir 2>/dev/null
130607366012aSmrgfi
130617366012aSmrgif (echo >conf$$.file) 2>/dev/null; then
130627366012aSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
130637366012aSmrg    as_ln_s='ln -s'
130647366012aSmrg    # ... but there are two gotchas:
13065273c00b8Smrg    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
13066273c00b8Smrg    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
13067273c00b8Smrg    # In both cases, we have to default to 'cp -pR'.
130687366012aSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
130698abc0ccfSmrg      as_ln_s='cp -pR'
130707366012aSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
130717366012aSmrg    as_ln_s=ln
130727366012aSmrg  else
130738abc0ccfSmrg    as_ln_s='cp -pR'
130747366012aSmrg  fi
130757a0395d0Smrgelse
130768abc0ccfSmrg  as_ln_s='cp -pR'
130777a0395d0Smrgfi
130787a0395d0Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
130797a0395d0Smrgrmdir conf$$.dir 2>/dev/null
130807a0395d0Smrg
130812adc0320Smrg
130822adc0320Smrg# as_fn_mkdir_p
130832adc0320Smrg# -------------
130842adc0320Smrg# Create "$as_dir" as a directory, including parents if necessary.
130852adc0320Smrgas_fn_mkdir_p ()
130862adc0320Smrg{
130872adc0320Smrg
130882adc0320Smrg  case $as_dir in #(
130892adc0320Smrg  -*) as_dir=./$as_dir;;
130902adc0320Smrg  esac
130912adc0320Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
130922adc0320Smrg    as_dirs=
130932adc0320Smrg    while :; do
130942adc0320Smrg      case $as_dir in #(
13095765b7306Smrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
130962adc0320Smrg      *) as_qdir=$as_dir;;
130972adc0320Smrg      esac
130982adc0320Smrg      as_dirs="'$as_qdir' $as_dirs"
130992adc0320Smrg      as_dir=`$as_dirname -- "$as_dir" ||
131002adc0320Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
131012adc0320Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
131022adc0320Smrg	 X"$as_dir" : 'X\(//\)$' \| \
131032adc0320Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13104765b7306Smrgprintf "%s\n" X"$as_dir" |
131052adc0320Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
131062adc0320Smrg	    s//\1/
131072adc0320Smrg	    q
131082adc0320Smrg	  }
131092adc0320Smrg	  /^X\(\/\/\)[^/].*/{
131102adc0320Smrg	    s//\1/
131112adc0320Smrg	    q
131122adc0320Smrg	  }
131132adc0320Smrg	  /^X\(\/\/\)$/{
131142adc0320Smrg	    s//\1/
131152adc0320Smrg	    q
131162adc0320Smrg	  }
131172adc0320Smrg	  /^X\(\/\).*/{
131182adc0320Smrg	    s//\1/
131192adc0320Smrg	    q
131202adc0320Smrg	  }
131212adc0320Smrg	  s/.*/./; q'`
131222adc0320Smrg      test -d "$as_dir" && break
131232adc0320Smrg    done
131242adc0320Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
131252adc0320Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
131262adc0320Smrg
131272adc0320Smrg
131282adc0320Smrg} # as_fn_mkdir_p
131297a0395d0Smrgif mkdir -p . 2>/dev/null; then
131302adc0320Smrg  as_mkdir_p='mkdir -p "$as_dir"'
131317a0395d0Smrgelse
131327a0395d0Smrg  test -d ./-p && rmdir ./-p
131337a0395d0Smrg  as_mkdir_p=false
131347a0395d0Smrgfi
131357a0395d0Smrg
131368abc0ccfSmrg
131378abc0ccfSmrg# as_fn_executable_p FILE
131388abc0ccfSmrg# -----------------------
131398abc0ccfSmrg# Test if FILE is an executable regular file.
131408abc0ccfSmrgas_fn_executable_p ()
131418abc0ccfSmrg{
131428abc0ccfSmrg  test -f "$1" && test -x "$1"
131438abc0ccfSmrg} # as_fn_executable_p
131448abc0ccfSmrgas_test_x='test -x'
131458abc0ccfSmrgas_executable_p=as_fn_executable_p
131467a0395d0Smrg
131477a0395d0Smrg# Sed expression to map a string onto a valid CPP name.
13148273c00b8Smrgas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13149273c00b8Smrgas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
131507a0395d0Smrg
131517a0395d0Smrg# Sed expression to map a string onto a valid variable name.
13152273c00b8Smrgas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13153273c00b8Smrgas_tr_sh="eval sed '$as_sed_sh'" # deprecated
131547a0395d0Smrg
131557a0395d0Smrg
131567a0395d0Smrgexec 6>&1
131572adc0320Smrg## ----------------------------------- ##
131582adc0320Smrg## Main body of $CONFIG_STATUS script. ##
131592adc0320Smrg## ----------------------------------- ##
131602adc0320Smrg_ASEOF
131612adc0320Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
131627a0395d0Smrg
131632adc0320Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
131642adc0320Smrg# Save the log message, to keep $0 and so on meaningful, and to
131657a0395d0Smrg# report actual input values of CONFIG_FILES etc. instead of their
131667a0395d0Smrg# values after options handling.
131677a0395d0Smrgac_log="
13168f6d57fdeSmrgThis file was extended by xauth $as_me 1.1.4, which was
13169273c00b8Smrggenerated by GNU Autoconf 2.72.  Invocation command line was
131707a0395d0Smrg
131717a0395d0Smrg  CONFIG_FILES    = $CONFIG_FILES
131727a0395d0Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
131737a0395d0Smrg  CONFIG_LINKS    = $CONFIG_LINKS
131747a0395d0Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
131757a0395d0Smrg  $ $0 $@
131767a0395d0Smrg
131777a0395d0Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
131787a0395d0Smrg"
131797a0395d0Smrg
131807a0395d0Smrg_ACEOF
131817a0395d0Smrg
131827366012aSmrgcase $ac_config_files in *"
131837366012aSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
131847366012aSmrgesac
131857366012aSmrg
131867366012aSmrgcase $ac_config_headers in *"
131877366012aSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
131887366012aSmrgesac
131897366012aSmrg
131907366012aSmrg
131917366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
131927a0395d0Smrg# Files that config.status was made for.
131937a0395d0Smrgconfig_files="$ac_config_files"
131947a0395d0Smrgconfig_headers="$ac_config_headers"
131957a0395d0Smrgconfig_commands="$ac_config_commands"
131967a0395d0Smrg
131977a0395d0Smrg_ACEOF
131987a0395d0Smrg
131997366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
132007a0395d0Smrgac_cs_usage="\
13201273c00b8Smrg'$as_me' instantiates files and other configuration actions
132022adc0320Smrgfrom templates according to the current configuration.  Unless the files
132032adc0320Smrgand actions are specified as TAGs, all are instantiated by default.
132047a0395d0Smrg
132052adc0320SmrgUsage: $0 [OPTION]... [TAG]...
132067a0395d0Smrg
132077a0395d0Smrg  -h, --help       print this help, then exit
132087a0395d0Smrg  -V, --version    print version number and configuration settings, then exit
132092adc0320Smrg      --config     print configuration, then exit
132107366012aSmrg  -q, --quiet, --silent
132117366012aSmrg                   do not print progress messages
132127a0395d0Smrg  -d, --debug      don't remove temporary files
132137a0395d0Smrg      --recheck    update $as_me by reconfiguring in the same conditions
132147366012aSmrg      --file=FILE[:TEMPLATE]
132157366012aSmrg                   instantiate the configuration file FILE
132167366012aSmrg      --header=FILE[:TEMPLATE]
132177366012aSmrg                   instantiate the configuration header FILE
132187a0395d0Smrg
132197a0395d0SmrgConfiguration files:
132207a0395d0Smrg$config_files
132217a0395d0Smrg
132227a0395d0SmrgConfiguration headers:
132237a0395d0Smrg$config_headers
132247a0395d0Smrg
132257a0395d0SmrgConfiguration commands:
132267a0395d0Smrg$config_commands
132277a0395d0Smrg
13228273c00b8SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/-/issues>."
132297a0395d0Smrg
132307a0395d0Smrg_ACEOF
13231765b7306Smrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
13232765b7306Smrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
132337366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13234765b7306Smrgac_cs_config='$ac_cs_config_escaped'
132357a0395d0Smrgac_cs_version="\\
13236f6d57fdeSmrgxauth config.status 1.1.4
13237273c00b8Smrgconfigured by $0, generated by GNU Autoconf 2.72,
132382adc0320Smrg  with options \\"\$ac_cs_config\\"
132397a0395d0Smrg
13240273c00b8SmrgCopyright (C) 2023 Free Software Foundation, Inc.
132417a0395d0SmrgThis config.status script is free software; the Free Software Foundation
132427a0395d0Smrggives unlimited permission to copy, distribute and modify it."
132437a0395d0Smrg
132447a0395d0Smrgac_pwd='$ac_pwd'
132457a0395d0Smrgsrcdir='$srcdir'
132467a0395d0SmrgINSTALL='$INSTALL'
132477a0395d0SmrgMKDIR_P='$MKDIR_P'
132487366012aSmrgAWK='$AWK'
132497366012aSmrgtest -n "\$AWK" || AWK=awk
132507a0395d0Smrg_ACEOF
132517a0395d0Smrg
132527366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
132537366012aSmrg# The default lists apply if the user does not specify any file.
132547a0395d0Smrgac_need_defaults=:
132557a0395d0Smrgwhile test $# != 0
132567a0395d0Smrgdo
132577a0395d0Smrg  case $1 in
132582adc0320Smrg  --*=?*)
132597a0395d0Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
132607a0395d0Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
132617a0395d0Smrg    ac_shift=:
132627a0395d0Smrg    ;;
132632adc0320Smrg  --*=)
132642adc0320Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
132652adc0320Smrg    ac_optarg=
132662adc0320Smrg    ac_shift=:
132672adc0320Smrg    ;;
132687a0395d0Smrg  *)
132697a0395d0Smrg    ac_option=$1
132707a0395d0Smrg    ac_optarg=$2
132717a0395d0Smrg    ac_shift=shift
132727a0395d0Smrg    ;;
132737a0395d0Smrg  esac
132747a0395d0Smrg
132757a0395d0Smrg  case $ac_option in
132767a0395d0Smrg  # Handling of the options.
132777a0395d0Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
132787a0395d0Smrg    ac_cs_recheck=: ;;
132797a0395d0Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13280765b7306Smrg    printf "%s\n" "$ac_cs_version"; exit ;;
132812adc0320Smrg  --config | --confi | --conf | --con | --co | --c )
13282765b7306Smrg    printf "%s\n" "$ac_cs_config"; exit ;;
132837a0395d0Smrg  --debug | --debu | --deb | --de | --d | -d )
132847a0395d0Smrg    debug=: ;;
132857a0395d0Smrg  --file | --fil | --fi | --f )
132867a0395d0Smrg    $ac_shift
132877366012aSmrg    case $ac_optarg in
13288765b7306Smrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
132892adc0320Smrg    '') as_fn_error $? "missing file argument" ;;
132907366012aSmrg    esac
132912adc0320Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
132927a0395d0Smrg    ac_need_defaults=false;;
132937a0395d0Smrg  --header | --heade | --head | --hea )
132947a0395d0Smrg    $ac_shift
132957366012aSmrg    case $ac_optarg in
13296765b7306Smrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
132977366012aSmrg    esac
132982adc0320Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
132997a0395d0Smrg    ac_need_defaults=false;;
133007a0395d0Smrg  --he | --h)
133017a0395d0Smrg    # Conflict between --help and --header
13302273c00b8Smrg    as_fn_error $? "ambiguous option: '$1'
13303273c00b8SmrgTry '$0 --help' for more information.";;
133047a0395d0Smrg  --help | --hel | -h )
13305765b7306Smrg    printf "%s\n" "$ac_cs_usage"; exit ;;
133067a0395d0Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
133077a0395d0Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
133087a0395d0Smrg    ac_cs_silent=: ;;
133097a0395d0Smrg
133107a0395d0Smrg  # This is an error.
13311273c00b8Smrg  -*) as_fn_error $? "unrecognized option: '$1'
13312273c00b8SmrgTry '$0 --help' for more information." ;;
133137a0395d0Smrg
133142adc0320Smrg  *) as_fn_append ac_config_targets " $1"
133157a0395d0Smrg     ac_need_defaults=false ;;
133167a0395d0Smrg
133177a0395d0Smrg  esac
133187a0395d0Smrg  shift
133197a0395d0Smrgdone
133207a0395d0Smrg
133217a0395d0Smrgac_configure_extra_args=
133227a0395d0Smrg
133237a0395d0Smrgif $ac_cs_silent; then
133247a0395d0Smrg  exec 6>/dev/null
133257a0395d0Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
133267a0395d0Smrgfi
133277a0395d0Smrg
133287a0395d0Smrg_ACEOF
133297366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
133307a0395d0Smrgif \$ac_cs_recheck; then
133318abc0ccfSmrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
133327366012aSmrg  shift
13333765b7306Smrg  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
133347366012aSmrg  CONFIG_SHELL='$SHELL'
133357a0395d0Smrg  export CONFIG_SHELL
133367366012aSmrg  exec "\$@"
133377a0395d0Smrgfi
133387a0395d0Smrg
133397a0395d0Smrg_ACEOF
133407366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
133417a0395d0Smrgexec 5>>config.log
133427a0395d0Smrg{
133437a0395d0Smrg  echo
133447a0395d0Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
133457a0395d0Smrg## Running $as_me. ##
133467a0395d0Smrg_ASBOX
13347765b7306Smrg  printf "%s\n" "$ac_log"
133487a0395d0Smrg} >&5
133497a0395d0Smrg
133507a0395d0Smrg_ACEOF
133517366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
133527a0395d0Smrg#
133537a0395d0Smrg# INIT-COMMANDS
133547a0395d0Smrg#
133556c3c2bceSmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
133567a0395d0Smrg
133577a0395d0Smrg_ACEOF
133587a0395d0Smrg
133597366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
133607a0395d0Smrg
133617a0395d0Smrg# Handling of arguments.
133627a0395d0Smrgfor ac_config_target in $ac_config_targets
133637a0395d0Smrgdo
133647a0395d0Smrg  case $ac_config_target in
133657a0395d0Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
133667a0395d0Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
133677a0395d0Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
133688abc0ccfSmrg    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
133692852888eSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
133707a0395d0Smrg
13371273c00b8Smrg  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
133727a0395d0Smrg  esac
133737a0395d0Smrgdone
133747a0395d0Smrg
133757a0395d0Smrg
133767a0395d0Smrg# If the user did not use the arguments to specify the items to instantiate,
133777a0395d0Smrg# then the envvar interface is used.  Set only those that are not.
133787a0395d0Smrg# We use the long form for the default assignment because of an extremely
133797a0395d0Smrg# bizarre bug on SunOS 4.1.3.
133807a0395d0Smrgif $ac_need_defaults; then
13381765b7306Smrg  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13382765b7306Smrg  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
13383765b7306Smrg  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
133847a0395d0Smrgfi
133857a0395d0Smrg
133867a0395d0Smrg# Have a temporary directory for convenience.  Make it in the build tree
133877a0395d0Smrg# simply because there is no reason against having it here, and in addition,
133887a0395d0Smrg# creating and moving files from /tmp can sometimes cause problems.
133897a0395d0Smrg# Hook for its removal unless debugging.
133907a0395d0Smrg# Note that there is a small window in which the directory will not be cleaned:
13391273c00b8Smrg# after its creation but before its name has been assigned to '$tmp'.
133927a0395d0Smrg$debug ||
133937a0395d0Smrg{
133942adc0320Smrg  tmp= ac_tmp=
133957a0395d0Smrg  trap 'exit_status=$?
133962adc0320Smrg  : "${ac_tmp:=$tmp}"
133972adc0320Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
133987a0395d0Smrg' 0
133992adc0320Smrg  trap 'as_fn_exit 1' 1 2 13 15
134007a0395d0Smrg}
134017a0395d0Smrg# Create a (secure) tmp directory for tmp files.
134027a0395d0Smrg
134037a0395d0Smrg{
134047a0395d0Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
134052adc0320Smrg  test -d "$tmp"
134067a0395d0Smrg}  ||
134077a0395d0Smrg{
134087a0395d0Smrg  tmp=./conf$$-$RANDOM
134097a0395d0Smrg  (umask 077 && mkdir "$tmp")
134102adc0320Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
134112adc0320Smrgac_tmp=$tmp
134127a0395d0Smrg
134137366012aSmrg# Set up the scripts for CONFIG_FILES section.
134147366012aSmrg# No need to generate them if there are no CONFIG_FILES.
13415273c00b8Smrg# This happens for instance with './config.status config.h'.
134167a0395d0Smrgif test -n "$CONFIG_FILES"; then
134177a0395d0Smrg
134187a0395d0Smrg
134192adc0320Smrgac_cr=`echo X | tr X '\015'`
134202adc0320Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
134212adc0320Smrg# But we know of no other shell where ac_cr would be empty at this
134222adc0320Smrg# point, so we can use a bashism as a fallback.
134232adc0320Smrgif test "x$ac_cr" = x; then
134242adc0320Smrg  eval ac_cr=\$\'\\r\'
134252adc0320Smrgfi
134267366012aSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
134277366012aSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
134287366012aSmrg  ac_cs_awk_cr='\\r'
134297366012aSmrgelse
134307366012aSmrg  ac_cs_awk_cr=$ac_cr
134317a0395d0Smrgfi
134327a0395d0Smrg
134332adc0320Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
134347a0395d0Smrg_ACEOF
134357a0395d0Smrg
134367a0395d0Smrg
134377366012aSmrg{
134387366012aSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
134397366012aSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
134407366012aSmrg  echo "_ACEOF"
134417366012aSmrg} >conf$$subs.sh ||
134422adc0320Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
134432adc0320Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
134447a0395d0Smrgac_delim='%!_!# '
134457a0395d0Smrgfor ac_last_try in false false false false false :; do
134467366012aSmrg  . ./conf$$subs.sh ||
134472adc0320Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
134487a0395d0Smrg
134497366012aSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
134507366012aSmrg  if test $ac_delim_n = $ac_delim_num; then
134517a0395d0Smrg    break
134527a0395d0Smrg  elif $ac_last_try; then
134532adc0320Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
134547a0395d0Smrg  else
134557a0395d0Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
134567a0395d0Smrg  fi
134577a0395d0Smrgdone
134587366012aSmrgrm -f conf$$subs.sh
134597a0395d0Smrg
134607366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
134612adc0320Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
134627366012aSmrg_ACEOF
134637366012aSmrgsed -n '
134647366012aSmrgh
134657366012aSmrgs/^/S["/; s/!.*/"]=/
134667366012aSmrgp
134677366012aSmrgg
134687366012aSmrgs/^[^!]*!//
134697366012aSmrg:repl
134707366012aSmrgt repl
134717366012aSmrgs/'"$ac_delim"'$//
134727366012aSmrgt delim
134737366012aSmrg:nl
134747366012aSmrgh
134752adc0320Smrgs/\(.\{148\}\)..*/\1/
134767366012aSmrgt more1
134777366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
134787366012aSmrgp
134797366012aSmrgn
134807366012aSmrgb repl
134817366012aSmrg:more1
134827366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
134837366012aSmrgp
134847366012aSmrgg
134857366012aSmrgs/.\{148\}//
134867366012aSmrgt nl
134877366012aSmrg:delim
134887366012aSmrgh
134892adc0320Smrgs/\(.\{148\}\)..*/\1/
134907366012aSmrgt more2
134917366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
134927366012aSmrgp
134937366012aSmrgb
134947366012aSmrg:more2
134957366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
134967366012aSmrgp
134977366012aSmrgg
134987366012aSmrgs/.\{148\}//
134997366012aSmrgt delim
135007366012aSmrg' <conf$$subs.awk | sed '
135017366012aSmrg/^[^""]/{
135027366012aSmrg  N
135037366012aSmrg  s/\n//
135047366012aSmrg}
135057366012aSmrg' >>$CONFIG_STATUS || ac_write_fail=1
135067366012aSmrgrm -f conf$$subs.awk
135077366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
135087366012aSmrg_ACAWK
135092adc0320Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
135107366012aSmrg  for (key in S) S_is_set[key] = 1
135117366012aSmrg  FS = ""
135127366012aSmrg
135137366012aSmrg}
135147366012aSmrg{
135157366012aSmrg  line = $ 0
135167366012aSmrg  nfields = split(line, field, "@")
135177366012aSmrg  substed = 0
135187366012aSmrg  len = length(field[1])
135197366012aSmrg  for (i = 2; i < nfields; i++) {
135207366012aSmrg    key = field[i]
135217366012aSmrg    keylen = length(key)
135227366012aSmrg    if (S_is_set[key]) {
135237366012aSmrg      value = S[key]
135247366012aSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
135257366012aSmrg      len += length(value) + length(field[++i])
135267366012aSmrg      substed = 1
135277366012aSmrg    } else
135287366012aSmrg      len += 1 + keylen
135297366012aSmrg  }
135307366012aSmrg
135317366012aSmrg  print line
135327366012aSmrg}
135337a0395d0Smrg
135347366012aSmrg_ACAWK
135357a0395d0Smrg_ACEOF
135367366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
135377366012aSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
135387366012aSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
135397366012aSmrgelse
135407366012aSmrg  cat
135412adc0320Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
135422adc0320Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
135437a0395d0Smrg_ACEOF
135447a0395d0Smrg
135452adc0320Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
135462adc0320Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
135477a0395d0Smrg# trailing colons and then remove the whole line if VPATH becomes empty
135487a0395d0Smrg# (actually we leave an empty line to preserve line numbers).
135497a0395d0Smrgif test "x$srcdir" = x.; then
135502adc0320Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
135512adc0320Smrgh
135522adc0320Smrgs///
135532adc0320Smrgs/^/:/
135542adc0320Smrgs/[	 ]*$/:/
135552adc0320Smrgs/:\$(srcdir):/:/g
135562adc0320Smrgs/:\${srcdir}:/:/g
135572adc0320Smrgs/:@srcdir@:/:/g
135582adc0320Smrgs/^:*//
135597a0395d0Smrgs/:*$//
135602adc0320Smrgx
135612adc0320Smrgs/\(=[	 ]*\).*/\1/
135622adc0320SmrgG
135632adc0320Smrgs/\n//
135647a0395d0Smrgs/^[^=]*=[	 ]*$//
135657a0395d0Smrg}'
135667a0395d0Smrgfi
135677a0395d0Smrg
135687366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
135697a0395d0Smrgfi # test -n "$CONFIG_FILES"
135707a0395d0Smrg
135717366012aSmrg# Set up the scripts for CONFIG_HEADERS section.
135727366012aSmrg# No need to generate them if there are no CONFIG_HEADERS.
13573273c00b8Smrg# This happens for instance with './config.status Makefile'.
135747366012aSmrgif test -n "$CONFIG_HEADERS"; then
135752adc0320Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
135767366012aSmrgBEGIN {
135777366012aSmrg_ACEOF
135787366012aSmrg
13579273c00b8Smrg# Transform confdefs.h into an awk script 'defines.awk', embedded as
135807366012aSmrg# here-document in config.status, that substitutes the proper values into
135817366012aSmrg# config.h.in to produce config.h.
135827366012aSmrg
135837366012aSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
135847366012aSmrg# handling of long lines.
135857366012aSmrgac_delim='%!_!# '
135867366012aSmrgfor ac_last_try in false false :; do
135872adc0320Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
135882adc0320Smrg  if test -z "$ac_tt"; then
135897366012aSmrg    break
135907366012aSmrg  elif $ac_last_try; then
135912adc0320Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
135927366012aSmrg  else
135937366012aSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
135947366012aSmrg  fi
135957366012aSmrgdone
135967366012aSmrg
135977366012aSmrg# For the awk script, D is an array of macro values keyed by name,
135987366012aSmrg# likewise P contains macro parameters if any.  Preserve backslash
135997366012aSmrg# newline sequences.
136007366012aSmrg
136017366012aSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
136027366012aSmrgsed -n '
136037366012aSmrgs/.\{148\}/&'"$ac_delim"'/g
136047366012aSmrgt rset
136057366012aSmrg:rset
136067366012aSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
136077366012aSmrgt def
136087366012aSmrgd
136097366012aSmrg:def
136107366012aSmrgs/\\$//
136117366012aSmrgt bsnl
136127366012aSmrgs/["\\]/\\&/g
136137366012aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
136147366012aSmrgD["\1"]=" \3"/p
136157366012aSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
136167366012aSmrgd
136177366012aSmrg:bsnl
136187366012aSmrgs/["\\]/\\&/g
136197366012aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
136207366012aSmrgD["\1"]=" \3\\\\\\n"\\/p
136217366012aSmrgt cont
136227366012aSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
136237366012aSmrgt cont
136247366012aSmrgd
136257366012aSmrg:cont
136267366012aSmrgn
136277366012aSmrgs/.\{148\}/&'"$ac_delim"'/g
136287366012aSmrgt clear
136297366012aSmrg:clear
136307366012aSmrgs/\\$//
136317366012aSmrgt bsnlc
136327366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
136337366012aSmrgd
136347366012aSmrg:bsnlc
136357366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
136367366012aSmrgb cont
136377366012aSmrg' <confdefs.h | sed '
136387366012aSmrgs/'"$ac_delim"'/"\\\
136397366012aSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
136407366012aSmrg
136417366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
136427366012aSmrg  for (key in D) D_is_set[key] = 1
136437366012aSmrg  FS = ""
136447366012aSmrg}
136457366012aSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
136467366012aSmrg  line = \$ 0
136477366012aSmrg  split(line, arg, " ")
136487366012aSmrg  if (arg[1] == "#") {
136497366012aSmrg    defundef = arg[2]
136507366012aSmrg    mac1 = arg[3]
136517366012aSmrg  } else {
136527366012aSmrg    defundef = substr(arg[1], 2)
136537366012aSmrg    mac1 = arg[2]
136547366012aSmrg  }
136557366012aSmrg  split(mac1, mac2, "(") #)
136567366012aSmrg  macro = mac2[1]
136577366012aSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
136587366012aSmrg  if (D_is_set[macro]) {
136597366012aSmrg    # Preserve the white space surrounding the "#".
136607366012aSmrg    print prefix "define", macro P[macro] D[macro]
136617366012aSmrg    next
136627366012aSmrg  } else {
136637366012aSmrg    # Replace #undef with comments.  This is necessary, for example,
136647366012aSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
136657366012aSmrg    # on some systems where configure will not decide to define it.
136667366012aSmrg    if (defundef == "undef") {
136677366012aSmrg      print "/*", prefix defundef, macro, "*/"
136687366012aSmrg      next
136697366012aSmrg    }
136707366012aSmrg  }
136717366012aSmrg}
136727366012aSmrg{ print }
136737366012aSmrg_ACAWK
136747366012aSmrg_ACEOF
136757366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
136762adc0320Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
136777366012aSmrgfi # test -n "$CONFIG_HEADERS"
136787366012aSmrg
136797a0395d0Smrg
136807366012aSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
136817366012aSmrgshift
136827366012aSmrgfor ac_tag
136837a0395d0Smrgdo
136847a0395d0Smrg  case $ac_tag in
136857a0395d0Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
136867a0395d0Smrg  esac
136877a0395d0Smrg  case $ac_mode$ac_tag in
136887a0395d0Smrg  :[FHL]*:*);;
13689273c00b8Smrg  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
136907a0395d0Smrg  :[FH]-) ac_tag=-:-;;
136917a0395d0Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
136927a0395d0Smrg  esac
136937a0395d0Smrg  ac_save_IFS=$IFS
136947a0395d0Smrg  IFS=:
136957a0395d0Smrg  set x $ac_tag
136967a0395d0Smrg  IFS=$ac_save_IFS
136977a0395d0Smrg  shift
136987a0395d0Smrg  ac_file=$1
136997a0395d0Smrg  shift
137007a0395d0Smrg
137017a0395d0Smrg  case $ac_mode in
137027a0395d0Smrg  :L) ac_source=$1;;
137037a0395d0Smrg  :[FH])
137047a0395d0Smrg    ac_file_inputs=
137057a0395d0Smrg    for ac_f
137067a0395d0Smrg    do
137077a0395d0Smrg      case $ac_f in
137082adc0320Smrg      -) ac_f="$ac_tmp/stdin";;
137097a0395d0Smrg      *) # Look for the file first in the build tree, then in the source tree
137107a0395d0Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13711273c00b8Smrg	 # because $ac_f cannot contain ':'.
137127a0395d0Smrg	 test -f "$ac_f" ||
137137a0395d0Smrg	   case $ac_f in
137147a0395d0Smrg	   [\\/$]*) false;;
137157a0395d0Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
137167a0395d0Smrg	   esac ||
13717273c00b8Smrg	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
137187a0395d0Smrg      esac
13719765b7306Smrg      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
137202adc0320Smrg      as_fn_append ac_file_inputs " '$ac_f'"
137217a0395d0Smrg    done
137227a0395d0Smrg
13723273c00b8Smrg    # Let's still pretend it is 'configure' which instantiates (i.e., don't
137247a0395d0Smrg    # use $as_me), people would be surprised to read:
137257a0395d0Smrg    #    /* config.h.  Generated by config.status.  */
137267366012aSmrg    configure_input='Generated from '`
13727765b7306Smrg	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
137287366012aSmrg	`' by configure.'
137297a0395d0Smrg    if test x"$ac_file" != x-; then
137307a0395d0Smrg      configure_input="$ac_file.  $configure_input"
13731765b7306Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13732765b7306Smrgprintf "%s\n" "$as_me: creating $ac_file" >&6;}
137337a0395d0Smrg    fi
137347366012aSmrg    # Neutralize special characters interpreted by sed in replacement strings.
137357366012aSmrg    case $configure_input in #(
137367366012aSmrg    *\&* | *\|* | *\\* )
13737765b7306Smrg       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
137387366012aSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
137397366012aSmrg    *) ac_sed_conf_input=$configure_input;;
137407366012aSmrg    esac
137417a0395d0Smrg
137427a0395d0Smrg    case $ac_tag in
137432adc0320Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
137442adc0320Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
137457a0395d0Smrg    esac
137467a0395d0Smrg    ;;
137477a0395d0Smrg  esac
137487a0395d0Smrg
137497a0395d0Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
137507a0395d0Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
137517a0395d0Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
137527a0395d0Smrg	 X"$ac_file" : 'X\(//\)$' \| \
137537a0395d0Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13754765b7306Smrgprintf "%s\n" X"$ac_file" |
137557a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
137567a0395d0Smrg	    s//\1/
137577a0395d0Smrg	    q
137587a0395d0Smrg	  }
137597a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
137607a0395d0Smrg	    s//\1/
137617a0395d0Smrg	    q
137627a0395d0Smrg	  }
137637a0395d0Smrg	  /^X\(\/\/\)$/{
137647a0395d0Smrg	    s//\1/
137657a0395d0Smrg	    q
137667a0395d0Smrg	  }
137677a0395d0Smrg	  /^X\(\/\).*/{
137687a0395d0Smrg	    s//\1/
137697a0395d0Smrg	    q
137707a0395d0Smrg	  }
137717a0395d0Smrg	  s/.*/./; q'`
137722adc0320Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
137737a0395d0Smrg  ac_builddir=.
137747a0395d0Smrg
137757a0395d0Smrgcase "$ac_dir" in
137767a0395d0Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
137777a0395d0Smrg*)
13778765b7306Smrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
137797a0395d0Smrg  # A ".." for each directory in $ac_dir_suffix.
13780765b7306Smrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
137817a0395d0Smrg  case $ac_top_builddir_sub in
137827a0395d0Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
137837a0395d0Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
137847a0395d0Smrg  esac ;;
137857a0395d0Smrgesac
137867a0395d0Smrgac_abs_top_builddir=$ac_pwd
137877a0395d0Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
137887a0395d0Smrg# for backward compatibility:
137897a0395d0Smrgac_top_builddir=$ac_top_build_prefix
137907a0395d0Smrg
137917a0395d0Smrgcase $srcdir in
137927a0395d0Smrg  .)  # We are building in place.
137937a0395d0Smrg    ac_srcdir=.
137947a0395d0Smrg    ac_top_srcdir=$ac_top_builddir_sub
137957a0395d0Smrg    ac_abs_top_srcdir=$ac_pwd ;;
137967a0395d0Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
137977a0395d0Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
137987a0395d0Smrg    ac_top_srcdir=$srcdir
137997a0395d0Smrg    ac_abs_top_srcdir=$srcdir ;;
138007a0395d0Smrg  *) # Relative name.
138017a0395d0Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
138027a0395d0Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
138037a0395d0Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
138047a0395d0Smrgesac
138057a0395d0Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
138067a0395d0Smrg
138077a0395d0Smrg
138087a0395d0Smrg  case $ac_mode in
138097a0395d0Smrg  :F)
138107a0395d0Smrg  #
138117a0395d0Smrg  # CONFIG_FILE
138127a0395d0Smrg  #
138137a0395d0Smrg
138147a0395d0Smrg  case $INSTALL in
138157a0395d0Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
138167a0395d0Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
138177a0395d0Smrg  esac
138187a0395d0Smrg  ac_MKDIR_P=$MKDIR_P
138197a0395d0Smrg  case $MKDIR_P in
138207a0395d0Smrg  [\\/$]* | ?:[\\/]* ) ;;
138217a0395d0Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
138227a0395d0Smrg  esac
138237a0395d0Smrg_ACEOF
138247a0395d0Smrg
138257366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
138267a0395d0Smrg# If the template does not know about datarootdir, expand it.
138277a0395d0Smrg# FIXME: This hack should be removed a few years after 2.60.
138287a0395d0Smrgac_datarootdir_hack=; ac_datarootdir_seen=
138297366012aSmrgac_sed_dataroot='
138307366012aSmrg/datarootdir/ {
138317a0395d0Smrg  p
138327a0395d0Smrg  q
138337a0395d0Smrg}
138347a0395d0Smrg/@datadir@/p
138357a0395d0Smrg/@docdir@/p
138367a0395d0Smrg/@infodir@/p
138377a0395d0Smrg/@localedir@/p
138382adc0320Smrg/@mandir@/p'
138397366012aSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
138407a0395d0Smrg*datarootdir*) ac_datarootdir_seen=yes;;
138417a0395d0Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13842765b7306Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13843765b7306Smrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
138447a0395d0Smrg_ACEOF
138457366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
138467a0395d0Smrg  ac_datarootdir_hack='
138477a0395d0Smrg  s&@datadir@&$datadir&g
138487a0395d0Smrg  s&@docdir@&$docdir&g
138497a0395d0Smrg  s&@infodir@&$infodir&g
138507a0395d0Smrg  s&@localedir@&$localedir&g
138517a0395d0Smrg  s&@mandir@&$mandir&g
138522adc0320Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
138537a0395d0Smrgesac
138547a0395d0Smrg_ACEOF
138557a0395d0Smrg
13856273c00b8Smrg# Neutralize VPATH when '$srcdir' = '.'.
138577a0395d0Smrg# Shell code in configure.ac might set extrasub.
138587a0395d0Smrg# FIXME: do we really want to maintain this feature?
138597366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
138607366012aSmrgac_sed_extra="$ac_vpsub
138617a0395d0Smrg$extrasub
138627a0395d0Smrg_ACEOF
138637366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
138647a0395d0Smrg:t
138657a0395d0Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
138667366012aSmrgs|@configure_input@|$ac_sed_conf_input|;t t
138677a0395d0Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
138687366012aSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
138697a0395d0Smrgs&@srcdir@&$ac_srcdir&;t t
138707a0395d0Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
138717a0395d0Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
138727a0395d0Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
138737a0395d0Smrgs&@builddir@&$ac_builddir&;t t
138747a0395d0Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
138757a0395d0Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
138767a0395d0Smrgs&@INSTALL@&$ac_INSTALL&;t t
138777a0395d0Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
138787a0395d0Smrg$ac_datarootdir_hack
138797366012aSmrg"
138802adc0320Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
138812adc0320Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
138827a0395d0Smrg
138837a0395d0Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
138842adc0320Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
138852adc0320Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
138862adc0320Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13887273c00b8Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
138882adc0320Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
13889273c00b8Smrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
138902adc0320Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
138917a0395d0Smrg
138922adc0320Smrg  rm -f "$ac_tmp/stdin"
138937a0395d0Smrg  case $ac_file in
138942adc0320Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
138952adc0320Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
138967366012aSmrg  esac \
138972adc0320Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
138987a0395d0Smrg ;;
138997a0395d0Smrg  :H)
139007a0395d0Smrg  #
139017a0395d0Smrg  # CONFIG_HEADER
139027a0395d0Smrg  #
139037a0395d0Smrg  if test x"$ac_file" != x-; then
139047366012aSmrg    {
13905765b7306Smrg      printf "%s\n" "/* $configure_input  */" >&1 \
139062adc0320Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
139072adc0320Smrg    } >"$ac_tmp/config.h" \
139082adc0320Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
139092adc0320Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13910765b7306Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13911765b7306Smrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
139127a0395d0Smrg    else
139137366012aSmrg      rm -f "$ac_file"
139142adc0320Smrg      mv "$ac_tmp/config.h" "$ac_file" \
139152adc0320Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
139167a0395d0Smrg    fi
139177a0395d0Smrg  else
13918765b7306Smrg    printf "%s\n" "/* $configure_input  */" >&1 \
139192adc0320Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
139202adc0320Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
139217a0395d0Smrg  fi
139227366012aSmrg# Compute "$ac_file"'s index in $config_headers.
139237366012aSmrg_am_arg="$ac_file"
139247a0395d0Smrg_am_stamp_count=1
139257a0395d0Smrgfor _am_header in $config_headers :; do
139267a0395d0Smrg  case $_am_header in
139277a0395d0Smrg    $_am_arg | $_am_arg:* )
139287a0395d0Smrg      break ;;
139297a0395d0Smrg    * )
139307a0395d0Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
139317a0395d0Smrg  esac
139327a0395d0Smrgdone
139337a0395d0Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
139347a0395d0Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
139357a0395d0Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
139367a0395d0Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
139377a0395d0Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13938765b7306Smrgprintf "%s\n" X"$_am_arg" |
139397a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
139407a0395d0Smrg	    s//\1/
139417a0395d0Smrg	    q
139427a0395d0Smrg	  }
139437a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
139447a0395d0Smrg	    s//\1/
139457a0395d0Smrg	    q
139467a0395d0Smrg	  }
139477a0395d0Smrg	  /^X\(\/\/\)$/{
139487a0395d0Smrg	    s//\1/
139497a0395d0Smrg	    q
139507a0395d0Smrg	  }
139517a0395d0Smrg	  /^X\(\/\).*/{
139527a0395d0Smrg	    s//\1/
139537a0395d0Smrg	    q
139547a0395d0Smrg	  }
139557a0395d0Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
139567a0395d0Smrg ;;
139577a0395d0Smrg
13958765b7306Smrg  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13959765b7306Smrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;}
139607a0395d0Smrg ;;
139617a0395d0Smrg  esac
139627a0395d0Smrg
139637a0395d0Smrg
139647a0395d0Smrg  case $ac_file$ac_mode in
139657366012aSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
139669a011757Smrg  # Older Autoconf quotes --file arguments for eval, but not when files
139677366012aSmrg  # are listed without --file.  Let's play safe and only enable the eval
139687366012aSmrg  # if we detect the quoting.
139696c3c2bceSmrg  # TODO: see whether this extra hack can be removed once we start
139706c3c2bceSmrg  # requiring Autoconf 2.70 or later.
139716c3c2bceSmrg  case $CONFIG_FILES in #(
139726c3c2bceSmrg  *\'*) :
139736c3c2bceSmrg    eval set x "$CONFIG_FILES" ;; #(
139746c3c2bceSmrg  *) :
139756c3c2bceSmrg    set x $CONFIG_FILES ;; #(
139766c3c2bceSmrg  *) :
139776c3c2bceSmrg     ;;
139786c3c2bceSmrgesac
139797366012aSmrg  shift
139806c3c2bceSmrg  # Used to flag and report bootstrapping failures.
139816c3c2bceSmrg  am_rc=0
139826c3c2bceSmrg  for am_mf
139837366012aSmrg  do
139847366012aSmrg    # Strip MF so we end up with the name of the file.
13985765b7306Smrg    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
139866c3c2bceSmrg    # Check whether this is an Automake generated Makefile which includes
139876c3c2bceSmrg    # dependency-tracking related rules and includes.
139886c3c2bceSmrg    # Grep'ing the whole file directly is not great: AIX grep has a line
139897366012aSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
139906c3c2bceSmrg    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
139916c3c2bceSmrg      || continue
139926c3c2bceSmrg    am_dirpart=`$as_dirname -- "$am_mf" ||
139936c3c2bceSmrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
139946c3c2bceSmrg	 X"$am_mf" : 'X\(//\)[^/]' \| \
139956c3c2bceSmrg	 X"$am_mf" : 'X\(//\)$' \| \
139966c3c2bceSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13997765b7306Smrgprintf "%s\n" X"$am_mf" |
139987a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
139997a0395d0Smrg	    s//\1/
140007a0395d0Smrg	    q
140017a0395d0Smrg	  }
140027a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
140037a0395d0Smrg	    s//\1/
140047a0395d0Smrg	    q
140057a0395d0Smrg	  }
140067a0395d0Smrg	  /^X\(\/\/\)$/{
140077a0395d0Smrg	    s//\1/
140087a0395d0Smrg	    q
140097a0395d0Smrg	  }
140107a0395d0Smrg	  /^X\(\/\).*/{
140117a0395d0Smrg	    s//\1/
140127a0395d0Smrg	    q
140137a0395d0Smrg	  }
140147a0395d0Smrg	  s/.*/./; q'`
140156c3c2bceSmrg    am_filepart=`$as_basename -- "$am_mf" ||
140166c3c2bceSmrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
140176c3c2bceSmrg	 X"$am_mf" : 'X\(//\)$' \| \
140186c3c2bceSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14019765b7306Smrgprintf "%s\n" X/"$am_mf" |
140206c3c2bceSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
140217a0395d0Smrg	    s//\1/
140227a0395d0Smrg	    q
140237a0395d0Smrg	  }
140246c3c2bceSmrg	  /^X\/\(\/\/\)$/{
140257a0395d0Smrg	    s//\1/
140267a0395d0Smrg	    q
140277a0395d0Smrg	  }
140286c3c2bceSmrg	  /^X\/\(\/\).*/{
140297a0395d0Smrg	    s//\1/
140307a0395d0Smrg	    q
140317a0395d0Smrg	  }
140327a0395d0Smrg	  s/.*/./; q'`
140336c3c2bceSmrg    { echo "$as_me:$LINENO: cd "$am_dirpart" \
140346c3c2bceSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
140356c3c2bceSmrg        | $MAKE -f - am--depfiles" >&5
140366c3c2bceSmrg   (cd "$am_dirpart" \
140376c3c2bceSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
140386c3c2bceSmrg        | $MAKE -f - am--depfiles) >&5 2>&5
140396c3c2bceSmrg   ac_status=$?
140406c3c2bceSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
140416c3c2bceSmrg   (exit $ac_status); } || am_rc=$?
140427a0395d0Smrg  done
140436c3c2bceSmrg  if test $am_rc -ne 0; then
14044273c00b8Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14045273c00b8Smrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
140466c3c2bceSmrgas_fn_error $? "Something went wrong bootstrapping makefile fragments
140470d22642bSmrg    for automatic dependency tracking.  If GNU make was not used, consider
140480d22642bSmrg    re-running the configure script with MAKE=\"gmake\" (or whatever is
140490d22642bSmrg    necessary).  You can also try re-running configure with the
140506c3c2bceSmrg    '--disable-dependency-tracking' option to at least be able to build
140516c3c2bceSmrg    the package (albeit without support for automatic dependency tracking).
14052273c00b8SmrgSee 'config.log' for more details" "$LINENO" 5; }
140536c3c2bceSmrg  fi
140546c3c2bceSmrg  { am_dirpart=; unset am_dirpart;}
140556c3c2bceSmrg  { am_filepart=; unset am_filepart;}
140566c3c2bceSmrg  { am_mf=; unset am_mf;}
140576c3c2bceSmrg  { am_rc=; unset am_rc;}
140586c3c2bceSmrg  rm -f conftest-deps.mk
140597366012aSmrg}
140607a0395d0Smrg ;;
140617a0395d0Smrg
140627a0395d0Smrg  esac
140637a0395d0Smrgdone # for ac_tag
140647a0395d0Smrg
140657a0395d0Smrg
140662adc0320Smrgas_fn_exit 0
140677a0395d0Smrg_ACEOF
140687a0395d0Smrgac_clean_files=$ac_clean_files_save
140697a0395d0Smrg
140707366012aSmrgtest $ac_write_fail = 0 ||
140712adc0320Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
140727366012aSmrg
140737a0395d0Smrg
140747a0395d0Smrg# configure is writing to config.log, and then calls config.status.
140757a0395d0Smrg# config.status does its own redirection, appending to config.log.
140767a0395d0Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
140777a0395d0Smrg# by configure, so config.status won't be able to write to it; its
140787a0395d0Smrg# output is simply discarded.  So we exec the FD to /dev/null,
140797a0395d0Smrg# effectively closing config.log, so it can be properly (re)opened and
140807a0395d0Smrg# appended to by config.status.  When coming back to configure, we
140817a0395d0Smrg# need to make the FD available again.
140827a0395d0Smrgif test "$no_create" != yes; then
140837a0395d0Smrg  ac_cs_success=:
140847a0395d0Smrg  ac_config_status_args=
140857a0395d0Smrg  test "$silent" = yes &&
140867a0395d0Smrg    ac_config_status_args="$ac_config_status_args --quiet"
140877a0395d0Smrg  exec 5>/dev/null
140887a0395d0Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
140897a0395d0Smrg  exec 5>>config.log
140907a0395d0Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
140917a0395d0Smrg  # would make configure fail if this is the last instruction.
140922adc0320Smrg  $ac_cs_success || as_fn_exit 1
140937a0395d0Smrgfi
140947366012aSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14095765b7306Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14096765b7306Smrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
140977366012aSmrgfi
140987a0395d0Smrg
14099765b7306Smrg
14100