configure revision 3a99fc18
13da7aff1Smrg#! /bin/sh
23da7aff1Smrg# Guess values for system-dependent variables and create Makefiles.
33a99fc18Smrg# Generated by GNU Autoconf 2.71 for xlogo 1.0.6.
43da7aff1Smrg#
53a99fc18Smrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues>.
63da7aff1Smrg#
7e531b1a7Smrg#
83a99fc18Smrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
93a99fc18Smrg# Inc.
10e531b1a7Smrg#
11e531b1a7Smrg#
123da7aff1Smrg# This configure script is free software; the Free Software Foundation
133da7aff1Smrg# gives unlimited permission to copy, distribute and modify it.
14e531b1a7Smrg## -------------------- ##
15e531b1a7Smrg## M4sh Initialization. ##
16e531b1a7Smrg## -------------------- ##
173da7aff1Smrg
18e531b1a7Smrg# Be more Bourne compatible
19e531b1a7SmrgDUALCASE=1; export DUALCASE # for MKS sh
203a99fc18Smrgas_nop=:
213a99fc18Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
223a99fc18Smrgthen :
233da7aff1Smrg  emulate sh
243da7aff1Smrg  NULLCMD=:
25e531b1a7Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263da7aff1Smrg  # is contrary to our usage.  Disable this feature.
273da7aff1Smrg  alias -g '${1+"$@"}'='"$@"'
28e531b1a7Smrg  setopt NO_GLOB_SUBST
293a99fc18Smrgelse $as_nop
30e531b1a7Smrg  case `(set -o) 2>/dev/null` in #(
31e531b1a7Smrg  *posix*) :
32e531b1a7Smrg    set -o posix ;; #(
33e531b1a7Smrg  *) :
34e531b1a7Smrg     ;;
35e531b1a7Smrgesac
363da7aff1Smrgfi
373da7aff1Smrg
38e531b1a7Smrg
393a99fc18Smrg
403a99fc18Smrg# Reset variables that may have inherited troublesome values from
413a99fc18Smrg# the environment.
423a99fc18Smrg
433a99fc18Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
443a99fc18Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
453a99fc18Smrg# side effect of setting IFS to empty, thus disabling word splitting.)
463a99fc18Smrg# Quoting is to prevent editors from complaining about space-tab.
47e531b1a7Smrgas_nl='
48e531b1a7Smrg'
49e531b1a7Smrgexport as_nl
503a99fc18SmrgIFS=" ""	$as_nl"
513a99fc18Smrg
523a99fc18SmrgPS1='$ '
533a99fc18SmrgPS2='> '
543a99fc18SmrgPS4='+ '
553a99fc18Smrg
563a99fc18Smrg# Ensure predictable behavior from utilities with locale-dependent output.
573a99fc18SmrgLC_ALL=C
583a99fc18Smrgexport LC_ALL
593a99fc18SmrgLANGUAGE=C
603a99fc18Smrgexport LANGUAGE
613a99fc18Smrg
623a99fc18Smrg# We cannot yet rely on "unset" to work, but we need these variables
633a99fc18Smrg# to be unset--not just set to an empty or harmless value--now, to
643a99fc18Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
653a99fc18Smrg# also avoids known problems related to "unset" and subshell syntax
663a99fc18Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
673a99fc18Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
683a99fc18Smrgdo eval test \${$as_var+y} \
693a99fc18Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
703a99fc18Smrgdone
713a99fc18Smrg
723a99fc18Smrg# Ensure that fds 0, 1, and 2 are open.
733a99fc18Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
743a99fc18Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
753a99fc18Smrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76e531b1a7Smrg
77e531b1a7Smrg# The user is always right.
783a99fc18Smrgif ${PATH_SEPARATOR+false} :; then
79e531b1a7Smrg  PATH_SEPARATOR=:
80e531b1a7Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81e531b1a7Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82e531b1a7Smrg      PATH_SEPARATOR=';'
83e531b1a7Smrg  }
843da7aff1Smrgfi
853da7aff1Smrg
863da7aff1Smrg
87e531b1a7Smrg# Find who we are.  Look in the path if we contain no directory separator.
88f9d592e5Smrgas_myself=
89e531b1a7Smrgcase $0 in #((
90e531b1a7Smrg  *[\\/]* ) as_myself=$0 ;;
91e531b1a7Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92e531b1a7Smrgfor as_dir in $PATH
93e531b1a7Smrgdo
94e531b1a7Smrg  IFS=$as_save_IFS
953a99fc18Smrg  case $as_dir in #(((
963a99fc18Smrg    '') as_dir=./ ;;
973a99fc18Smrg    */) ;;
983a99fc18Smrg    *) as_dir=$as_dir/ ;;
993a99fc18Smrg  esac
1003a99fc18Smrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101e531b1a7Smrg  done
102e531b1a7SmrgIFS=$as_save_IFS
103e531b1a7Smrg
104e531b1a7Smrg     ;;
105e531b1a7Smrgesac
106e531b1a7Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
107e531b1a7Smrg# in which case we are not to be found in the path.
108e531b1a7Smrgif test "x$as_myself" = x; then
109e531b1a7Smrg  as_myself=$0
110e531b1a7Smrgfi
111e531b1a7Smrgif test ! -f "$as_myself"; then
1123a99fc18Smrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113e531b1a7Smrg  exit 1
114e531b1a7Smrgfi
115e531b1a7Smrg
116e531b1a7Smrg
1173e999d35Smrg# Use a proper internal environment variable to ensure we don't fall
1183e999d35Smrg  # into an infinite loop, continuously re-executing ourselves.
1193e999d35Smrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
1203e999d35Smrg    _as_can_reexec=no; export _as_can_reexec;
1213e999d35Smrg    # We cannot yet assume a decent shell, so we have to provide a
1223e999d35Smrg# neutralization value for shells without unset; and this also
1233e999d35Smrg# works around shells that cannot unset nonexistent variables.
1243e999d35Smrg# Preserve -v and -x to the replacement shell.
1253e999d35SmrgBASH_ENV=/dev/null
1263e999d35SmrgENV=/dev/null
1273e999d35Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
1283e999d35Smrgcase $- in # ((((
1293e999d35Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
1303e999d35Smrg  *v* ) as_opts=-v ;;
1313e999d35Smrg  *x* ) as_opts=-x ;;
1323e999d35Smrg  * ) as_opts= ;;
1333e999d35Smrgesac
1343e999d35Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
1353e999d35Smrg# Admittedly, this is quite paranoid, since all the known shells bail
1363e999d35Smrg# out after a failed `exec'.
1373a99fc18Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
1383a99fc18Smrgexit 255
1393e999d35Smrg  fi
1403e999d35Smrg  # We don't want this to propagate to other subprocesses.
1413e999d35Smrg          { _as_can_reexec=; unset _as_can_reexec;}
142e531b1a7Smrgif test "x$CONFIG_SHELL" = x; then
1433a99fc18Smrg  as_bourne_compatible="as_nop=:
1443a99fc18Smrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
1453a99fc18Smrgthen :
146e531b1a7Smrg  emulate sh
147e531b1a7Smrg  NULLCMD=:
148e531b1a7Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149e531b1a7Smrg  # is contrary to our usage.  Disable this feature.
150e531b1a7Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151e531b1a7Smrg  setopt NO_GLOB_SUBST
1523a99fc18Smrgelse \$as_nop
153e531b1a7Smrg  case \`(set -o) 2>/dev/null\` in #(
154e531b1a7Smrg  *posix*) :
155e531b1a7Smrg    set -o posix ;; #(
156e531b1a7Smrg  *) :
157e531b1a7Smrg     ;;
158e531b1a7Smrgesac
159e531b1a7Smrgfi
160e531b1a7Smrg"
161e531b1a7Smrg  as_required="as_fn_return () { (exit \$1); }
162e531b1a7Smrgas_fn_success () { as_fn_return 0; }
163e531b1a7Smrgas_fn_failure () { as_fn_return 1; }
164e531b1a7Smrgas_fn_ret_success () { return 0; }
165e531b1a7Smrgas_fn_ret_failure () { return 1; }
166e531b1a7Smrg
167e531b1a7Smrgexitcode=0
168e531b1a7Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
169e531b1a7Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170e531b1a7Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171e531b1a7Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1723a99fc18Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" )
1733a99fc18Smrgthen :
174e531b1a7Smrg
1753a99fc18Smrgelse \$as_nop
176e531b1a7Smrg  exitcode=1; echo positional parameters were not saved.
177e531b1a7Smrgfi
1783e999d35Smrgtest x\$exitcode = x0 || exit 1
1793a99fc18Smrgblah=\$(echo \$(echo blah))
1803a99fc18Smrgtest x\"\$blah\" = xblah || exit 1
1813e999d35Smrgtest -x / || exit 1"
182e531b1a7Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183e531b1a7Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184e531b1a7Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185e531b1a7Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186e531b1a7Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
1873a99fc18Smrg  if (eval "$as_required") 2>/dev/null
1883a99fc18Smrgthen :
189e531b1a7Smrg  as_have_required=yes
1903a99fc18Smrgelse $as_nop
191e531b1a7Smrg  as_have_required=no
192e531b1a7Smrgfi
1933a99fc18Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
1943a99fc18Smrgthen :
195e531b1a7Smrg
1963a99fc18Smrgelse $as_nop
197e531b1a7Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198e531b1a7Smrgas_found=false
199e531b1a7Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2003da7aff1Smrgdo
201e531b1a7Smrg  IFS=$as_save_IFS
2023a99fc18Smrg  case $as_dir in #(((
2033a99fc18Smrg    '') as_dir=./ ;;
2043a99fc18Smrg    */) ;;
2053a99fc18Smrg    *) as_dir=$as_dir/ ;;
2063a99fc18Smrg  esac
207e531b1a7Smrg  as_found=:
208e531b1a7Smrg  case $as_dir in #(
209e531b1a7Smrg	 /*)
210e531b1a7Smrg	   for as_base in sh bash ksh sh5; do
211e531b1a7Smrg	     # Try only shells that exist, to save several forks.
2123a99fc18Smrg	     as_shell=$as_dir$as_base
213e531b1a7Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2143a99fc18Smrg		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
2153a99fc18Smrgthen :
216e531b1a7Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
2173a99fc18Smrg		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
2183a99fc18Smrgthen :
219e531b1a7Smrg  break 2
220e531b1a7Smrgfi
221e531b1a7Smrgfi
222e531b1a7Smrg	   done;;
223e531b1a7Smrg       esac
224e531b1a7Smrg  as_found=false
225e531b1a7Smrgdone
226e531b1a7SmrgIFS=$as_save_IFS
2273a99fc18Smrgif $as_found
2283a99fc18Smrgthen :
2293a99fc18Smrg
2303a99fc18Smrgelse $as_nop
2313a99fc18Smrg  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2323a99fc18Smrg	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
2333a99fc18Smrgthen :
2343a99fc18Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
2353a99fc18Smrgfi
2363a99fc18Smrgfi
237e531b1a7Smrg
238e531b1a7Smrg
2393a99fc18Smrg      if test "x$CONFIG_SHELL" != x
2403a99fc18Smrgthen :
2413e999d35Smrg  export CONFIG_SHELL
2423e999d35Smrg             # We cannot yet assume a decent shell, so we have to provide a
2433e999d35Smrg# neutralization value for shells without unset; and this also
2443e999d35Smrg# works around shells that cannot unset nonexistent variables.
2453e999d35Smrg# Preserve -v and -x to the replacement shell.
2463e999d35SmrgBASH_ENV=/dev/null
2473e999d35SmrgENV=/dev/null
2483e999d35Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2493e999d35Smrgcase $- in # ((((
2503e999d35Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
2513e999d35Smrg  *v* ) as_opts=-v ;;
2523e999d35Smrg  *x* ) as_opts=-x ;;
2533e999d35Smrg  * ) as_opts= ;;
2543e999d35Smrgesac
2553e999d35Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
2563e999d35Smrg# Admittedly, this is quite paranoid, since all the known shells bail
2573e999d35Smrg# out after a failed `exec'.
2583a99fc18Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
2593e999d35Smrgexit 255
260e531b1a7Smrgfi
261e531b1a7Smrg
2623a99fc18Smrg    if test x$as_have_required = xno
2633a99fc18Smrgthen :
2643a99fc18Smrg  printf "%s\n" "$0: This script requires a shell more modern than all"
2653a99fc18Smrg  printf "%s\n" "$0: the shells that I found on your system."
2663a99fc18Smrg  if test ${ZSH_VERSION+y} ; then
2673a99fc18Smrg    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2683a99fc18Smrg    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
2693da7aff1Smrg  else
2703a99fc18Smrg    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
2713a99fc18Smrg$0: https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues
272e531b1a7Smrg$0: about your system, including any error possibly output
273e531b1a7Smrg$0: before this message. Then install a modern shell, or
274e531b1a7Smrg$0: manually run the script under such a shell if you do
275e531b1a7Smrg$0: have one."
2763da7aff1Smrg  fi
277e531b1a7Smrg  exit 1
278e531b1a7Smrgfi
279e531b1a7Smrgfi
280e531b1a7Smrgfi
281e531b1a7SmrgSHELL=${CONFIG_SHELL-/bin/sh}
282e531b1a7Smrgexport SHELL
283e531b1a7Smrg# Unset more variables known to interfere with behavior of common tools.
284e531b1a7SmrgCLICOLOR_FORCE= GREP_OPTIONS=
285e531b1a7Smrgunset CLICOLOR_FORCE GREP_OPTIONS
286e531b1a7Smrg
287e531b1a7Smrg## --------------------- ##
288e531b1a7Smrg## M4sh Shell Functions. ##
289e531b1a7Smrg## --------------------- ##
290e531b1a7Smrg# as_fn_unset VAR
291e531b1a7Smrg# ---------------
292e531b1a7Smrg# Portably unset VAR.
293e531b1a7Smrgas_fn_unset ()
294e531b1a7Smrg{
295e531b1a7Smrg  { eval $1=; unset $1;}
296e531b1a7Smrg}
297e531b1a7Smrgas_unset=as_fn_unset
298e531b1a7Smrg
2993a99fc18Smrg
300e531b1a7Smrg# as_fn_set_status STATUS
301e531b1a7Smrg# -----------------------
302e531b1a7Smrg# Set $? to STATUS, without forking.
303e531b1a7Smrgas_fn_set_status ()
304e531b1a7Smrg{
305e531b1a7Smrg  return $1
306e531b1a7Smrg} # as_fn_set_status
307e531b1a7Smrg
308e531b1a7Smrg# as_fn_exit STATUS
309e531b1a7Smrg# -----------------
310e531b1a7Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311e531b1a7Smrgas_fn_exit ()
312e531b1a7Smrg{
313e531b1a7Smrg  set +e
314e531b1a7Smrg  as_fn_set_status $1
315e531b1a7Smrg  exit $1
316e531b1a7Smrg} # as_fn_exit
3173a99fc18Smrg# as_fn_nop
3183a99fc18Smrg# ---------
3193a99fc18Smrg# Do nothing but, unlike ":", preserve the value of $?.
3203a99fc18Smrgas_fn_nop ()
3213a99fc18Smrg{
3223a99fc18Smrg  return $?
3233a99fc18Smrg}
3243a99fc18Smrgas_nop=as_fn_nop
325e531b1a7Smrg
326e531b1a7Smrg# as_fn_mkdir_p
327e531b1a7Smrg# -------------
328e531b1a7Smrg# Create "$as_dir" as a directory, including parents if necessary.
329e531b1a7Smrgas_fn_mkdir_p ()
330e531b1a7Smrg{
331e531b1a7Smrg
332e531b1a7Smrg  case $as_dir in #(
333e531b1a7Smrg  -*) as_dir=./$as_dir;;
334e531b1a7Smrg  esac
335e531b1a7Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
336e531b1a7Smrg    as_dirs=
337e531b1a7Smrg    while :; do
338e531b1a7Smrg      case $as_dir in #(
3393a99fc18Smrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340e531b1a7Smrg      *) as_qdir=$as_dir;;
341e531b1a7Smrg      esac
342e531b1a7Smrg      as_dirs="'$as_qdir' $as_dirs"
343e531b1a7Smrg      as_dir=`$as_dirname -- "$as_dir" ||
344e531b1a7Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345e531b1a7Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
346e531b1a7Smrg	 X"$as_dir" : 'X\(//\)$' \| \
347e531b1a7Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3483a99fc18Smrgprintf "%s\n" X"$as_dir" |
349e531b1a7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350e531b1a7Smrg	    s//\1/
351e531b1a7Smrg	    q
352e531b1a7Smrg	  }
353e531b1a7Smrg	  /^X\(\/\/\)[^/].*/{
354e531b1a7Smrg	    s//\1/
355e531b1a7Smrg	    q
356e531b1a7Smrg	  }
357e531b1a7Smrg	  /^X\(\/\/\)$/{
358e531b1a7Smrg	    s//\1/
359e531b1a7Smrg	    q
360e531b1a7Smrg	  }
361e531b1a7Smrg	  /^X\(\/\).*/{
362e531b1a7Smrg	    s//\1/
363e531b1a7Smrg	    q
364e531b1a7Smrg	  }
365e531b1a7Smrg	  s/.*/./; q'`
366e531b1a7Smrg      test -d "$as_dir" && break
367e531b1a7Smrg    done
368e531b1a7Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
369f9d592e5Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370e531b1a7Smrg
371e531b1a7Smrg
372e531b1a7Smrg} # as_fn_mkdir_p
3733e999d35Smrg
3743e999d35Smrg# as_fn_executable_p FILE
3753e999d35Smrg# -----------------------
3763e999d35Smrg# Test if FILE is an executable regular file.
3773e999d35Smrgas_fn_executable_p ()
3783e999d35Smrg{
3793e999d35Smrg  test -f "$1" && test -x "$1"
3803e999d35Smrg} # as_fn_executable_p
381e531b1a7Smrg# as_fn_append VAR VALUE
382e531b1a7Smrg# ----------------------
383e531b1a7Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
384e531b1a7Smrg# advantage of any shell optimizations that allow amortized linear growth over
385e531b1a7Smrg# repeated appends, instead of the typical quadratic growth present in naive
386e531b1a7Smrg# implementations.
3873a99fc18Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
3883a99fc18Smrgthen :
389e531b1a7Smrg  eval 'as_fn_append ()
390e531b1a7Smrg  {
391e531b1a7Smrg    eval $1+=\$2
392e531b1a7Smrg  }'
3933a99fc18Smrgelse $as_nop
394e531b1a7Smrg  as_fn_append ()
395e531b1a7Smrg  {
396e531b1a7Smrg    eval $1=\$$1\$2
397e531b1a7Smrg  }
398e531b1a7Smrgfi # as_fn_append
399e531b1a7Smrg
400e531b1a7Smrg# as_fn_arith ARG...
401e531b1a7Smrg# ------------------
402e531b1a7Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
403e531b1a7Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
404e531b1a7Smrg# must be portable across $(()) and expr.
4053a99fc18Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
4063a99fc18Smrgthen :
407e531b1a7Smrg  eval 'as_fn_arith ()
408e531b1a7Smrg  {
409e531b1a7Smrg    as_val=$(( $* ))
410e531b1a7Smrg  }'
4113a99fc18Smrgelse $as_nop
412e531b1a7Smrg  as_fn_arith ()
413e531b1a7Smrg  {
414e531b1a7Smrg    as_val=`expr "$@" || test $? -eq 1`
415e531b1a7Smrg  }
416e531b1a7Smrgfi # as_fn_arith
417e531b1a7Smrg
4183a99fc18Smrg# as_fn_nop
4193a99fc18Smrg# ---------
4203a99fc18Smrg# Do nothing but, unlike ":", preserve the value of $?.
4213a99fc18Smrgas_fn_nop ()
4223a99fc18Smrg{
4233a99fc18Smrg  return $?
4243a99fc18Smrg}
4253a99fc18Smrgas_nop=as_fn_nop
4263da7aff1Smrg
427f9d592e5Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
428f9d592e5Smrg# ----------------------------------------
429e531b1a7Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430e531b1a7Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431f9d592e5Smrg# script with STATUS, using 1 if that was 0.
432e531b1a7Smrgas_fn_error ()
433e531b1a7Smrg{
434f9d592e5Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
435f9d592e5Smrg  if test "$4"; then
436f9d592e5Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4373a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438e531b1a7Smrg  fi
4393a99fc18Smrg  printf "%s\n" "$as_me: error: $2" >&2
440e531b1a7Smrg  as_fn_exit $as_status
441e531b1a7Smrg} # as_fn_error
442e531b1a7Smrg
443e531b1a7Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
444e531b1a7Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4453da7aff1Smrg  as_expr=expr
4463da7aff1Smrgelse
4473da7aff1Smrg  as_expr=false
4483da7aff1Smrgfi
4493da7aff1Smrg
450e531b1a7Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4513da7aff1Smrg  as_basename=basename
4523da7aff1Smrgelse
4533da7aff1Smrg  as_basename=false
4543da7aff1Smrgfi
4553da7aff1Smrg
456e531b1a7Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457e531b1a7Smrg  as_dirname=dirname
458e531b1a7Smrgelse
459e531b1a7Smrg  as_dirname=false
460e531b1a7Smrgfi
4613da7aff1Smrg
462e531b1a7Smrgas_me=`$as_basename -- "$0" ||
4633da7aff1Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4643da7aff1Smrg	 X"$0" : 'X\(//\)$' \| \
465e531b1a7Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4663a99fc18Smrgprintf "%s\n" X/"$0" |
467e531b1a7Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
468e531b1a7Smrg	    s//\1/
469e531b1a7Smrg	    q
470e531b1a7Smrg	  }
471e531b1a7Smrg	  /^X\/\(\/\/\)$/{
472e531b1a7Smrg	    s//\1/
473e531b1a7Smrg	    q
474e531b1a7Smrg	  }
475e531b1a7Smrg	  /^X\/\(\/\).*/{
476e531b1a7Smrg	    s//\1/
477e531b1a7Smrg	    q
478e531b1a7Smrg	  }
479e531b1a7Smrg	  s/.*/./; q'`
4803da7aff1Smrg
4813da7aff1Smrg# Avoid depending upon Character Ranges.
4823da7aff1Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4833da7aff1Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4843da7aff1Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4853da7aff1Smrgas_cr_digits='0123456789'
4863da7aff1Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
4873da7aff1Smrg
4883da7aff1Smrg
489e531b1a7Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
490e531b1a7Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
491e531b1a7Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492e531b1a7Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493e531b1a7Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
494e531b1a7Smrg  sed -n '
495e531b1a7Smrg    p
496e531b1a7Smrg    /[$]LINENO/=
497e531b1a7Smrg  ' <$as_myself |
4983da7aff1Smrg    sed '
499e531b1a7Smrg      s/[$]LINENO.*/&-/
500e531b1a7Smrg      t lineno
501e531b1a7Smrg      b
502e531b1a7Smrg      :lineno
5033da7aff1Smrg      N
504e531b1a7Smrg      :loop
505e531b1a7Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5063da7aff1Smrg      t loop
507e531b1a7Smrg      s/-\n.*//
5083da7aff1Smrg    ' >$as_me.lineno &&
509e531b1a7Smrg  chmod +x "$as_me.lineno" ||
5103a99fc18Smrg    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
5113da7aff1Smrg
5123e999d35Smrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
5133e999d35Smrg  # already done that, so ensure we don't try to do so again and fall
5143e999d35Smrg  # in an infinite loop.  This has already happened in practice.
5153e999d35Smrg  _as_can_reexec=no; export _as_can_reexec
5163da7aff1Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
5173da7aff1Smrg  # (the dirname of $[0] is not the place where we might find the
518e531b1a7Smrg  # original and so on.  Autoconf is especially sensitive to this).
519e531b1a7Smrg  . "./$as_me.lineno"
5203da7aff1Smrg  # Exit status is that of the last command.
5213da7aff1Smrg  exit
5223da7aff1Smrg}
5233da7aff1Smrg
5243a99fc18Smrg
5253a99fc18Smrg# Determine whether it's possible to make 'echo' print without a newline.
5263a99fc18Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
5273a99fc18Smrg# for compatibility with existing Makefiles.
528e531b1a7SmrgECHO_C= ECHO_N= ECHO_T=
529e531b1a7Smrgcase `echo -n x` in #(((((
530e531b1a7Smrg-n*)
531e531b1a7Smrg  case `echo 'xy\c'` in
532e531b1a7Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533e531b1a7Smrg  xy)  ECHO_C='\c';;
534e531b1a7Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535e531b1a7Smrg       ECHO_T='	';;
536e531b1a7Smrg  esac;;
537e531b1a7Smrg*)
538e531b1a7Smrg  ECHO_N='-n';;
5393da7aff1Smrgesac
5403da7aff1Smrg
5413a99fc18Smrg# For backward compatibility with old third-party macros, we provide
5423a99fc18Smrg# the shell variables $as_echo and $as_echo_n.  New code should use
5433a99fc18Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
5443a99fc18Smrgas_echo='printf %s\n'
5453a99fc18Smrgas_echo_n='printf %s'
5463a99fc18Smrg
5473a99fc18Smrg
548e531b1a7Smrgrm -f conf$$ conf$$.exe conf$$.file
549e531b1a7Smrgif test -d conf$$.dir; then
550e531b1a7Smrg  rm -f conf$$.dir/conf$$.file
5513da7aff1Smrgelse
552e531b1a7Smrg  rm -f conf$$.dir
553e531b1a7Smrg  mkdir conf$$.dir 2>/dev/null
5543da7aff1Smrgfi
555e531b1a7Smrgif (echo >conf$$.file) 2>/dev/null; then
556e531b1a7Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5573da7aff1Smrg    as_ln_s='ln -s'
558e531b1a7Smrg    # ... but there are two gotchas:
559e531b1a7Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560e531b1a7Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5613e999d35Smrg    # In both cases, we have to default to `cp -pR'.
562e531b1a7Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5633e999d35Smrg      as_ln_s='cp -pR'
564e531b1a7Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
565e531b1a7Smrg    as_ln_s=ln
566e531b1a7Smrg  else
5673e999d35Smrg    as_ln_s='cp -pR'
5683da7aff1Smrg  fi
5693da7aff1Smrgelse
5703e999d35Smrg  as_ln_s='cp -pR'
5713da7aff1Smrgfi
572e531b1a7Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573e531b1a7Smrgrmdir conf$$.dir 2>/dev/null
5743da7aff1Smrg
5753da7aff1Smrgif mkdir -p . 2>/dev/null; then
576e531b1a7Smrg  as_mkdir_p='mkdir -p "$as_dir"'
5773da7aff1Smrgelse
5783da7aff1Smrg  test -d ./-p && rmdir ./-p
5793da7aff1Smrg  as_mkdir_p=false
5803da7aff1Smrgfi
5813da7aff1Smrg
5823e999d35Smrgas_test_x='test -x'
5833e999d35Smrgas_executable_p=as_fn_executable_p
5843da7aff1Smrg
5853da7aff1Smrg# Sed expression to map a string onto a valid CPP name.
5863da7aff1Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5873da7aff1Smrg
5883da7aff1Smrg# Sed expression to map a string onto a valid variable name.
5893da7aff1Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5903da7aff1Smrg
5913da7aff1Smrg
592e531b1a7Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
593e531b1a7Smrgexec 6>&1
5943da7aff1Smrg
5953da7aff1Smrg# Name of the host.
596f9d592e5Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5973da7aff1Smrg# so uname gets run too.
5983da7aff1Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5993da7aff1Smrg
6003da7aff1Smrg#
6013da7aff1Smrg# Initializations.
6023da7aff1Smrg#
6033da7aff1Smrgac_default_prefix=/usr/local
604e531b1a7Smrgac_clean_files=
6053da7aff1Smrgac_config_libobj_dir=.
606e531b1a7SmrgLIBOBJS=
6073da7aff1Smrgcross_compiling=no
6083da7aff1Smrgsubdirs=
6093da7aff1SmrgMFLAGS=
6103da7aff1SmrgMAKEFLAGS=
6113da7aff1Smrg
6123da7aff1Smrg# Identity of this package.
6133da7aff1SmrgPACKAGE_NAME='xlogo'
6143da7aff1SmrgPACKAGE_TARNAME='xlogo'
6153a99fc18SmrgPACKAGE_VERSION='1.0.6'
6163a99fc18SmrgPACKAGE_STRING='xlogo 1.0.6'
6173a99fc18SmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues'
618e531b1a7SmrgPACKAGE_URL=''
6193da7aff1Smrg
6203e999d35Smrgac_unique_file="Makefile.am"
621e531b1a7Smrg# Factoring default headers for most tests.
622e531b1a7Smrgac_includes_default="\
6233a99fc18Smrg#include <stddef.h>
6243a99fc18Smrg#ifdef HAVE_STDIO_H
6253a99fc18Smrg# include <stdio.h>
626e531b1a7Smrg#endif
6273a99fc18Smrg#ifdef HAVE_STDLIB_H
628e531b1a7Smrg# include <stdlib.h>
629e531b1a7Smrg#endif
630e531b1a7Smrg#ifdef HAVE_STRING_H
631e531b1a7Smrg# include <string.h>
632e531b1a7Smrg#endif
633e531b1a7Smrg#ifdef HAVE_INTTYPES_H
634e531b1a7Smrg# include <inttypes.h>
635e531b1a7Smrg#endif
636e531b1a7Smrg#ifdef HAVE_STDINT_H
637e531b1a7Smrg# include <stdint.h>
638e531b1a7Smrg#endif
6393a99fc18Smrg#ifdef HAVE_STRINGS_H
6403a99fc18Smrg# include <strings.h>
6413a99fc18Smrg#endif
6423a99fc18Smrg#ifdef HAVE_SYS_TYPES_H
6433a99fc18Smrg# include <sys/types.h>
6443a99fc18Smrg#endif
6453a99fc18Smrg#ifdef HAVE_SYS_STAT_H
6463a99fc18Smrg# include <sys/stat.h>
6473a99fc18Smrg#endif
648e531b1a7Smrg#ifdef HAVE_UNISTD_H
649e531b1a7Smrg# include <unistd.h>
650e531b1a7Smrg#endif"
651e531b1a7Smrg
6523a99fc18Smrgac_header_c_list=
653e531b1a7Smrgac_subst_vars='am__EXEEXT_FALSE
654e531b1a7Smrgam__EXEEXT_TRUE
655e531b1a7SmrgLTLIBOBJS
656e531b1a7SmrgLIBOBJS
657e531b1a7Smrgappdefaultdir
658e531b1a7SmrgAPPDEFS_LIBS
659e531b1a7SmrgAPPDEFS_CFLAGS
660e531b1a7SmrgXLOGO_LIBS
661e531b1a7SmrgXLOGO_CFLAGS
6623fe82118SmrgUSE_RENDER_FALSE
6633fe82118SmrgUSE_RENDER_TRUE
664f9d592e5SmrgMAN_SUBSTS
665f9d592e5SmrgXORG_MAN_PAGE
666e531b1a7SmrgADMIN_MAN_DIR
667e531b1a7SmrgDRIVER_MAN_DIR
668e531b1a7SmrgMISC_MAN_DIR
669e531b1a7SmrgFILE_MAN_DIR
670e531b1a7SmrgLIB_MAN_DIR
671e531b1a7SmrgAPP_MAN_DIR
672e531b1a7SmrgADMIN_MAN_SUFFIX
673e531b1a7SmrgDRIVER_MAN_SUFFIX
674e531b1a7SmrgMISC_MAN_SUFFIX
675e531b1a7SmrgFILE_MAN_SUFFIX
676e531b1a7SmrgLIB_MAN_SUFFIX
677e531b1a7SmrgAPP_MAN_SUFFIX
678f9d592e5SmrgSED
679e531b1a7Smrghost_os
680e531b1a7Smrghost_vendor
681e531b1a7Smrghost_cpu
682e531b1a7Smrghost
683e531b1a7Smrgbuild_os
684e531b1a7Smrgbuild_vendor
685e531b1a7Smrgbuild_cpu
686e531b1a7Smrgbuild
687e531b1a7SmrgINSTALL_CMD
6883e999d35SmrgPKG_CONFIG_LIBDIR
6893e999d35SmrgPKG_CONFIG_PATH
690e531b1a7SmrgPKG_CONFIG
691e531b1a7SmrgCHANGELOG_CMD
6923fe82118SmrgSTRICT_CFLAGS
693e531b1a7SmrgCWARNFLAGS
6943fe82118SmrgBASE_CFLAGS
695e531b1a7Smrgam__fastdepCC_FALSE
696e531b1a7Smrgam__fastdepCC_TRUE
697e531b1a7SmrgCCDEPMODE
6983e999d35Smrgam__nodep
699e531b1a7SmrgAMDEPBACKSLASH
700e531b1a7SmrgAMDEP_FALSE
701e531b1a7SmrgAMDEP_TRUE
702e531b1a7Smrgam__include
703e531b1a7SmrgDEPDIR
704e531b1a7SmrgOBJEXT
705e531b1a7SmrgEXEEXT
706e531b1a7Smrgac_ct_CC
707e531b1a7SmrgCPPFLAGS
708e531b1a7SmrgLDFLAGS
709e531b1a7SmrgCFLAGS
710e531b1a7SmrgCC
7113e999d35SmrgAM_BACKSLASH
7123e999d35SmrgAM_DEFAULT_VERBOSITY
7133e999d35SmrgAM_DEFAULT_V
7143e999d35SmrgAM_V
7153a99fc18SmrgCSCOPE
7163a99fc18SmrgETAGS
7173a99fc18SmrgCTAGS
718e531b1a7Smrgam__untar
719e531b1a7Smrgam__tar
720e531b1a7SmrgAMTAR
721e531b1a7Smrgam__leading_dot
722e531b1a7SmrgSET_MAKE
723e531b1a7SmrgAWK
724e531b1a7Smrgmkdir_p
725e531b1a7SmrgMKDIR_P
726e531b1a7SmrgINSTALL_STRIP_PROGRAM
727e531b1a7SmrgSTRIP
728e531b1a7Smrginstall_sh
729e531b1a7SmrgMAKEINFO
730e531b1a7SmrgAUTOHEADER
731e531b1a7SmrgAUTOMAKE
732e531b1a7SmrgAUTOCONF
733e531b1a7SmrgACLOCAL
734e531b1a7SmrgVERSION
735e531b1a7SmrgPACKAGE
736e531b1a7SmrgCYGPATH_W
737e531b1a7Smrgam__isrc
738e531b1a7SmrgINSTALL_DATA
739e531b1a7SmrgINSTALL_SCRIPT
740e531b1a7SmrgINSTALL_PROGRAM
741e531b1a7Smrgtarget_alias
742e531b1a7Smrghost_alias
743e531b1a7Smrgbuild_alias
744e531b1a7SmrgLIBS
745e531b1a7SmrgECHO_T
746e531b1a7SmrgECHO_N
747e531b1a7SmrgECHO_C
748e531b1a7SmrgDEFS
749e531b1a7Smrgmandir
750e531b1a7Smrglocaledir
751e531b1a7Smrglibdir
752e531b1a7Smrgpsdir
753e531b1a7Smrgpdfdir
754e531b1a7Smrgdvidir
755e531b1a7Smrghtmldir
756e531b1a7Smrginfodir
757e531b1a7Smrgdocdir
758e531b1a7Smrgoldincludedir
759e531b1a7Smrgincludedir
7603a99fc18Smrgrunstatedir
761e531b1a7Smrglocalstatedir
762e531b1a7Smrgsharedstatedir
763e531b1a7Smrgsysconfdir
764e531b1a7Smrgdatadir
765e531b1a7Smrgdatarootdir
766e531b1a7Smrglibexecdir
767e531b1a7Smrgsbindir
768e531b1a7Smrgbindir
769e531b1a7Smrgprogram_transform_name
770e531b1a7Smrgprefix
771e531b1a7Smrgexec_prefix
772e531b1a7SmrgPACKAGE_URL
773e531b1a7SmrgPACKAGE_BUGREPORT
774e531b1a7SmrgPACKAGE_STRING
775e531b1a7SmrgPACKAGE_VERSION
776e531b1a7SmrgPACKAGE_TARNAME
777e531b1a7SmrgPACKAGE_NAME
778e531b1a7SmrgPATH_SEPARATOR
7793a99fc18SmrgSHELL
7803a99fc18Smrgam__quote'
7813da7aff1Smrgac_subst_files=''
782e531b1a7Smrgac_user_opts='
783e531b1a7Smrgenable_option_checking
7843e999d35Smrgenable_silent_rules
785e531b1a7Smrgenable_dependency_tracking
7863fe82118Smrgenable_selective_werror
787e531b1a7Smrgenable_strict_compilation
788e531b1a7Smrgwith_render
7893a99fc18Smrgwith_xkb
790e531b1a7Smrgwith_appdefaultdir
791e531b1a7Smrg'
792e531b1a7Smrg      ac_precious_vars='build_alias
793e531b1a7Smrghost_alias
794e531b1a7Smrgtarget_alias
795e531b1a7SmrgCC
796e531b1a7SmrgCFLAGS
797e531b1a7SmrgLDFLAGS
798e531b1a7SmrgLIBS
799e531b1a7SmrgCPPFLAGS
800e531b1a7SmrgPKG_CONFIG
8013e999d35SmrgPKG_CONFIG_PATH
8023e999d35SmrgPKG_CONFIG_LIBDIR
803e531b1a7SmrgXLOGO_CFLAGS
804e531b1a7SmrgXLOGO_LIBS
805e531b1a7SmrgAPPDEFS_CFLAGS
806e531b1a7SmrgAPPDEFS_LIBS'
807e531b1a7Smrg
8083da7aff1Smrg
8093da7aff1Smrg# Initialize some variables set by options.
8103da7aff1Smrgac_init_help=
8113da7aff1Smrgac_init_version=false
812e531b1a7Smrgac_unrecognized_opts=
813e531b1a7Smrgac_unrecognized_sep=
8143da7aff1Smrg# The variables have the same names as the options, with
8153da7aff1Smrg# dashes changed to underlines.
8163da7aff1Smrgcache_file=/dev/null
8173da7aff1Smrgexec_prefix=NONE
8183da7aff1Smrgno_create=
8193da7aff1Smrgno_recursion=
8203da7aff1Smrgprefix=NONE
8213da7aff1Smrgprogram_prefix=NONE
8223da7aff1Smrgprogram_suffix=NONE
8233da7aff1Smrgprogram_transform_name=s,x,x,
8243da7aff1Smrgsilent=
8253da7aff1Smrgsite=
8263da7aff1Smrgsrcdir=
8273da7aff1Smrgverbose=
8283da7aff1Smrgx_includes=NONE
8293da7aff1Smrgx_libraries=NONE
8303da7aff1Smrg
8313da7aff1Smrg# Installation directory options.
8323da7aff1Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
8333da7aff1Smrg# and all the variables that are supposed to be based on exec_prefix
8343da7aff1Smrg# by default will actually change.
8353da7aff1Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
836e531b1a7Smrg# (The list follows the same order as the GNU Coding Standards.)
8373da7aff1Smrgbindir='${exec_prefix}/bin'
8383da7aff1Smrgsbindir='${exec_prefix}/sbin'
8393da7aff1Smrglibexecdir='${exec_prefix}/libexec'
840e531b1a7Smrgdatarootdir='${prefix}/share'
841e531b1a7Smrgdatadir='${datarootdir}'
8423da7aff1Smrgsysconfdir='${prefix}/etc'
8433da7aff1Smrgsharedstatedir='${prefix}/com'
8443da7aff1Smrglocalstatedir='${prefix}/var'
8453a99fc18Smrgrunstatedir='${localstatedir}/run'
8463da7aff1Smrgincludedir='${prefix}/include'
8473da7aff1Smrgoldincludedir='/usr/include'
848e531b1a7Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849e531b1a7Smrginfodir='${datarootdir}/info'
850e531b1a7Smrghtmldir='${docdir}'
851e531b1a7Smrgdvidir='${docdir}'
852e531b1a7Smrgpdfdir='${docdir}'
853e531b1a7Smrgpsdir='${docdir}'
854e531b1a7Smrglibdir='${exec_prefix}/lib'
855e531b1a7Smrglocaledir='${datarootdir}/locale'
856e531b1a7Smrgmandir='${datarootdir}/man'
8573da7aff1Smrg
8583da7aff1Smrgac_prev=
859e531b1a7Smrgac_dashdash=
8603da7aff1Smrgfor ac_option
8613da7aff1Smrgdo
8623da7aff1Smrg  # If the previous option needs an argument, assign it.
8633da7aff1Smrg  if test -n "$ac_prev"; then
864e531b1a7Smrg    eval $ac_prev=\$ac_option
8653da7aff1Smrg    ac_prev=
8663da7aff1Smrg    continue
8673da7aff1Smrg  fi
8683da7aff1Smrg
869e531b1a7Smrg  case $ac_option in
870f9d592e5Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871f9d592e5Smrg  *=)   ac_optarg= ;;
872f9d592e5Smrg  *)    ac_optarg=yes ;;
873e531b1a7Smrg  esac
8743da7aff1Smrg
875e531b1a7Smrg  case $ac_dashdash$ac_option in
876e531b1a7Smrg  --)
877e531b1a7Smrg    ac_dashdash=yes ;;
8783da7aff1Smrg
8793da7aff1Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8803da7aff1Smrg    ac_prev=bindir ;;
8813da7aff1Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8823da7aff1Smrg    bindir=$ac_optarg ;;
8833da7aff1Smrg
8843da7aff1Smrg  -build | --build | --buil | --bui | --bu)
8853da7aff1Smrg    ac_prev=build_alias ;;
8863da7aff1Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8873da7aff1Smrg    build_alias=$ac_optarg ;;
8883da7aff1Smrg
8893da7aff1Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8903da7aff1Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8913da7aff1Smrg    ac_prev=cache_file ;;
8923da7aff1Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8933da7aff1Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8943da7aff1Smrg    cache_file=$ac_optarg ;;
8953da7aff1Smrg
8963da7aff1Smrg  --config-cache | -C)
8973da7aff1Smrg    cache_file=config.cache ;;
8983da7aff1Smrg
899e531b1a7Smrg  -datadir | --datadir | --datadi | --datad)
9003da7aff1Smrg    ac_prev=datadir ;;
901e531b1a7Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
9023da7aff1Smrg    datadir=$ac_optarg ;;
9033da7aff1Smrg
904e531b1a7Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905e531b1a7Smrg  | --dataroo | --dataro | --datar)
906e531b1a7Smrg    ac_prev=datarootdir ;;
907e531b1a7Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908e531b1a7Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909e531b1a7Smrg    datarootdir=$ac_optarg ;;
910e531b1a7Smrg
9113da7aff1Smrg  -disable-* | --disable-*)
912e531b1a7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
9133da7aff1Smrg    # Reject names that are not valid shell variable names.
914e531b1a7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9153a99fc18Smrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
916e531b1a7Smrg    ac_useropt_orig=$ac_useropt
9173a99fc18Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
918e531b1a7Smrg    case $ac_user_opts in
919e531b1a7Smrg      *"
920e531b1a7Smrg"enable_$ac_useropt"
921e531b1a7Smrg"*) ;;
922e531b1a7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923e531b1a7Smrg	 ac_unrecognized_sep=', ';;
924e531b1a7Smrg    esac
925e531b1a7Smrg    eval enable_$ac_useropt=no ;;
926e531b1a7Smrg
927e531b1a7Smrg  -docdir | --docdir | --docdi | --doc | --do)
928e531b1a7Smrg    ac_prev=docdir ;;
929e531b1a7Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930e531b1a7Smrg    docdir=$ac_optarg ;;
931e531b1a7Smrg
932e531b1a7Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933e531b1a7Smrg    ac_prev=dvidir ;;
934e531b1a7Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935e531b1a7Smrg    dvidir=$ac_optarg ;;
9363da7aff1Smrg
9373da7aff1Smrg  -enable-* | --enable-*)
938e531b1a7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9393da7aff1Smrg    # Reject names that are not valid shell variable names.
940e531b1a7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9413a99fc18Smrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
942e531b1a7Smrg    ac_useropt_orig=$ac_useropt
9433a99fc18Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
944e531b1a7Smrg    case $ac_user_opts in
945e531b1a7Smrg      *"
946e531b1a7Smrg"enable_$ac_useropt"
947e531b1a7Smrg"*) ;;
948e531b1a7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949e531b1a7Smrg	 ac_unrecognized_sep=', ';;
9503da7aff1Smrg    esac
951e531b1a7Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
9523da7aff1Smrg
9533da7aff1Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9543da7aff1Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9553da7aff1Smrg  | --exec | --exe | --ex)
9563da7aff1Smrg    ac_prev=exec_prefix ;;
9573da7aff1Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9583da7aff1Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9593da7aff1Smrg  | --exec=* | --exe=* | --ex=*)
9603da7aff1Smrg    exec_prefix=$ac_optarg ;;
9613da7aff1Smrg
9623da7aff1Smrg  -gas | --gas | --ga | --g)
9633da7aff1Smrg    # Obsolete; use --with-gas.
9643da7aff1Smrg    with_gas=yes ;;
9653da7aff1Smrg
9663da7aff1Smrg  -help | --help | --hel | --he | -h)
9673da7aff1Smrg    ac_init_help=long ;;
9683da7aff1Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9693da7aff1Smrg    ac_init_help=recursive ;;
9703da7aff1Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9713da7aff1Smrg    ac_init_help=short ;;
9723da7aff1Smrg
9733da7aff1Smrg  -host | --host | --hos | --ho)
9743da7aff1Smrg    ac_prev=host_alias ;;
9753da7aff1Smrg  -host=* | --host=* | --hos=* | --ho=*)
9763da7aff1Smrg    host_alias=$ac_optarg ;;
9773da7aff1Smrg
978e531b1a7Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979e531b1a7Smrg    ac_prev=htmldir ;;
980e531b1a7Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981e531b1a7Smrg  | --ht=*)
982e531b1a7Smrg    htmldir=$ac_optarg ;;
983e531b1a7Smrg
9843da7aff1Smrg  -includedir | --includedir | --includedi | --included | --include \
9853da7aff1Smrg  | --includ | --inclu | --incl | --inc)
9863da7aff1Smrg    ac_prev=includedir ;;
9873da7aff1Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9883da7aff1Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9893da7aff1Smrg    includedir=$ac_optarg ;;
9903da7aff1Smrg
9913da7aff1Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9923da7aff1Smrg    ac_prev=infodir ;;
9933da7aff1Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9943da7aff1Smrg    infodir=$ac_optarg ;;
9953da7aff1Smrg
9963da7aff1Smrg  -libdir | --libdir | --libdi | --libd)
9973da7aff1Smrg    ac_prev=libdir ;;
9983da7aff1Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9993da7aff1Smrg    libdir=$ac_optarg ;;
10003da7aff1Smrg
10013da7aff1Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
10023da7aff1Smrg  | --libexe | --libex | --libe)
10033da7aff1Smrg    ac_prev=libexecdir ;;
10043da7aff1Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
10053da7aff1Smrg  | --libexe=* | --libex=* | --libe=*)
10063da7aff1Smrg    libexecdir=$ac_optarg ;;
10073da7aff1Smrg
1008e531b1a7Smrg  -localedir | --localedir | --localedi | --localed | --locale)
1009e531b1a7Smrg    ac_prev=localedir ;;
1010e531b1a7Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011e531b1a7Smrg    localedir=$ac_optarg ;;
1012e531b1a7Smrg
10133da7aff1Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
1014e531b1a7Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
10153da7aff1Smrg    ac_prev=localstatedir ;;
10163da7aff1Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017e531b1a7Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
10183da7aff1Smrg    localstatedir=$ac_optarg ;;
10193da7aff1Smrg
10203da7aff1Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
10213da7aff1Smrg    ac_prev=mandir ;;
10223da7aff1Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
10233da7aff1Smrg    mandir=$ac_optarg ;;
10243da7aff1Smrg
10253da7aff1Smrg  -nfp | --nfp | --nf)
10263da7aff1Smrg    # Obsolete; use --without-fp.
10273da7aff1Smrg    with_fp=no ;;
10283da7aff1Smrg
10293da7aff1Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
10303da7aff1Smrg  | --no-cr | --no-c | -n)
10313da7aff1Smrg    no_create=yes ;;
10323da7aff1Smrg
10333da7aff1Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
10343da7aff1Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
10353da7aff1Smrg    no_recursion=yes ;;
10363da7aff1Smrg
10373da7aff1Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
10383da7aff1Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
10393da7aff1Smrg  | --oldin | --oldi | --old | --ol | --o)
10403da7aff1Smrg    ac_prev=oldincludedir ;;
10413da7aff1Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
10423da7aff1Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
10433da7aff1Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
10443da7aff1Smrg    oldincludedir=$ac_optarg ;;
10453da7aff1Smrg
10463da7aff1Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10473da7aff1Smrg    ac_prev=prefix ;;
10483da7aff1Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10493da7aff1Smrg    prefix=$ac_optarg ;;
10503da7aff1Smrg
10513da7aff1Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
10523da7aff1Smrg  | --program-pre | --program-pr | --program-p)
10533da7aff1Smrg    ac_prev=program_prefix ;;
10543da7aff1Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
10553da7aff1Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10563da7aff1Smrg    program_prefix=$ac_optarg ;;
10573da7aff1Smrg
10583da7aff1Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
10593da7aff1Smrg  | --program-suf | --program-su | --program-s)
10603da7aff1Smrg    ac_prev=program_suffix ;;
10613da7aff1Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10623da7aff1Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10633da7aff1Smrg    program_suffix=$ac_optarg ;;
10643da7aff1Smrg
10653da7aff1Smrg  -program-transform-name | --program-transform-name \
10663da7aff1Smrg  | --program-transform-nam | --program-transform-na \
10673da7aff1Smrg  | --program-transform-n | --program-transform- \
10683da7aff1Smrg  | --program-transform | --program-transfor \
10693da7aff1Smrg  | --program-transfo | --program-transf \
10703da7aff1Smrg  | --program-trans | --program-tran \
10713da7aff1Smrg  | --progr-tra | --program-tr | --program-t)
10723da7aff1Smrg    ac_prev=program_transform_name ;;
10733da7aff1Smrg  -program-transform-name=* | --program-transform-name=* \
10743da7aff1Smrg  | --program-transform-nam=* | --program-transform-na=* \
10753da7aff1Smrg  | --program-transform-n=* | --program-transform-=* \
10763da7aff1Smrg  | --program-transform=* | --program-transfor=* \
10773da7aff1Smrg  | --program-transfo=* | --program-transf=* \
10783da7aff1Smrg  | --program-trans=* | --program-tran=* \
10793da7aff1Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10803da7aff1Smrg    program_transform_name=$ac_optarg ;;
10813da7aff1Smrg
1082e531b1a7Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083e531b1a7Smrg    ac_prev=pdfdir ;;
1084e531b1a7Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085e531b1a7Smrg    pdfdir=$ac_optarg ;;
1086e531b1a7Smrg
1087e531b1a7Smrg  -psdir | --psdir | --psdi | --psd | --ps)
1088e531b1a7Smrg    ac_prev=psdir ;;
1089e531b1a7Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090e531b1a7Smrg    psdir=$ac_optarg ;;
1091e531b1a7Smrg
10923da7aff1Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10933da7aff1Smrg  | -silent | --silent | --silen | --sile | --sil)
10943da7aff1Smrg    silent=yes ;;
10953da7aff1Smrg
10963a99fc18Smrg  -runstatedir | --runstatedir | --runstatedi | --runstated \
10973a99fc18Smrg  | --runstate | --runstat | --runsta | --runst | --runs \
10983a99fc18Smrg  | --run | --ru | --r)
10993a99fc18Smrg    ac_prev=runstatedir ;;
11003a99fc18Smrg  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
11013a99fc18Smrg  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
11023a99fc18Smrg  | --run=* | --ru=* | --r=*)
11033a99fc18Smrg    runstatedir=$ac_optarg ;;
11043a99fc18Smrg
11053da7aff1Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11063da7aff1Smrg    ac_prev=sbindir ;;
11073da7aff1Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
11083da7aff1Smrg  | --sbi=* | --sb=*)
11093da7aff1Smrg    sbindir=$ac_optarg ;;
11103da7aff1Smrg
11113da7aff1Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
11123da7aff1Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
11133da7aff1Smrg  | --sharedst | --shareds | --shared | --share | --shar \
11143da7aff1Smrg  | --sha | --sh)
11153da7aff1Smrg    ac_prev=sharedstatedir ;;
11163da7aff1Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
11173da7aff1Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
11183da7aff1Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
11193da7aff1Smrg  | --sha=* | --sh=*)
11203da7aff1Smrg    sharedstatedir=$ac_optarg ;;
11213da7aff1Smrg
11223da7aff1Smrg  -site | --site | --sit)
11233da7aff1Smrg    ac_prev=site ;;
11243da7aff1Smrg  -site=* | --site=* | --sit=*)
11253da7aff1Smrg    site=$ac_optarg ;;
11263da7aff1Smrg
11273da7aff1Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11283da7aff1Smrg    ac_prev=srcdir ;;
11293da7aff1Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11303da7aff1Smrg    srcdir=$ac_optarg ;;
11313da7aff1Smrg
11323da7aff1Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
11333da7aff1Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
11343da7aff1Smrg    ac_prev=sysconfdir ;;
11353da7aff1Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
11363da7aff1Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
11373da7aff1Smrg    sysconfdir=$ac_optarg ;;
11383da7aff1Smrg
11393da7aff1Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
11403da7aff1Smrg    ac_prev=target_alias ;;
11413da7aff1Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
11423da7aff1Smrg    target_alias=$ac_optarg ;;
11433da7aff1Smrg
11443da7aff1Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
11453da7aff1Smrg    verbose=yes ;;
11463da7aff1Smrg
11473da7aff1Smrg  -version | --version | --versio | --versi | --vers | -V)
11483da7aff1Smrg    ac_init_version=: ;;
11493da7aff1Smrg
11503da7aff1Smrg  -with-* | --with-*)
1151e531b1a7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11523da7aff1Smrg    # Reject names that are not valid shell variable names.
1153e531b1a7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11543a99fc18Smrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
1155e531b1a7Smrg    ac_useropt_orig=$ac_useropt
11563a99fc18Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1157e531b1a7Smrg    case $ac_user_opts in
1158e531b1a7Smrg      *"
1159e531b1a7Smrg"with_$ac_useropt"
1160e531b1a7Smrg"*) ;;
1161e531b1a7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162e531b1a7Smrg	 ac_unrecognized_sep=', ';;
11633da7aff1Smrg    esac
1164e531b1a7Smrg    eval with_$ac_useropt=\$ac_optarg ;;
11653da7aff1Smrg
11663da7aff1Smrg  -without-* | --without-*)
1167e531b1a7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11683da7aff1Smrg    # Reject names that are not valid shell variable names.
1169e531b1a7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11703a99fc18Smrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
1171e531b1a7Smrg    ac_useropt_orig=$ac_useropt
11723a99fc18Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1173e531b1a7Smrg    case $ac_user_opts in
1174e531b1a7Smrg      *"
1175e531b1a7Smrg"with_$ac_useropt"
1176e531b1a7Smrg"*) ;;
1177e531b1a7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178e531b1a7Smrg	 ac_unrecognized_sep=', ';;
1179e531b1a7Smrg    esac
1180e531b1a7Smrg    eval with_$ac_useropt=no ;;
11813da7aff1Smrg
11823da7aff1Smrg  --x)
11833da7aff1Smrg    # Obsolete; use --with-x.
11843da7aff1Smrg    with_x=yes ;;
11853da7aff1Smrg
11863da7aff1Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11873da7aff1Smrg  | --x-incl | --x-inc | --x-in | --x-i)
11883da7aff1Smrg    ac_prev=x_includes ;;
11893da7aff1Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11903da7aff1Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11913da7aff1Smrg    x_includes=$ac_optarg ;;
11923da7aff1Smrg
11933da7aff1Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11943da7aff1Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11953da7aff1Smrg    ac_prev=x_libraries ;;
11963da7aff1Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11973da7aff1Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11983da7aff1Smrg    x_libraries=$ac_optarg ;;
11993da7aff1Smrg
1200f9d592e5Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1201f9d592e5SmrgTry \`$0 --help' for more information"
12023da7aff1Smrg    ;;
12033da7aff1Smrg
12043da7aff1Smrg  *=*)
12053da7aff1Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
12063da7aff1Smrg    # Reject names that are not valid shell variable names.
1207e531b1a7Smrg    case $ac_envvar in #(
1208e531b1a7Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1209f9d592e5Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1210e531b1a7Smrg    esac
1211e531b1a7Smrg    eval $ac_envvar=\$ac_optarg
12123da7aff1Smrg    export $ac_envvar ;;
12133da7aff1Smrg
12143da7aff1Smrg  *)
12153da7aff1Smrg    # FIXME: should be removed in autoconf 3.0.
12163a99fc18Smrg    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
12173da7aff1Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
12183a99fc18Smrg      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1219f9d592e5Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
12203da7aff1Smrg    ;;
12213da7aff1Smrg
12223da7aff1Smrg  esac
12233da7aff1Smrgdone
12243da7aff1Smrg
12253da7aff1Smrgif test -n "$ac_prev"; then
12263da7aff1Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227f9d592e5Smrg  as_fn_error $? "missing argument to $ac_option"
12283da7aff1Smrgfi
12293da7aff1Smrg
1230e531b1a7Smrgif test -n "$ac_unrecognized_opts"; then
1231e531b1a7Smrg  case $enable_option_checking in
1232e531b1a7Smrg    no) ;;
1233f9d592e5Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
12343a99fc18Smrg    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12353da7aff1Smrg  esac
1236e531b1a7Smrgfi
12373da7aff1Smrg
1238e531b1a7Smrg# Check all directory arguments for consistency.
1239e531b1a7Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240e531b1a7Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1241e531b1a7Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
12423a99fc18Smrg		libdir localedir mandir runstatedir
12433da7aff1Smrgdo
1244e531b1a7Smrg  eval ac_val=\$$ac_var
1245e531b1a7Smrg  # Remove trailing slashes.
1246e531b1a7Smrg  case $ac_val in
1247e531b1a7Smrg    */ )
1248e531b1a7Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249e531b1a7Smrg      eval $ac_var=\$ac_val;;
1250e531b1a7Smrg  esac
1251e531b1a7Smrg  # Be sure to have absolute directory names.
12523da7aff1Smrg  case $ac_val in
1253e531b1a7Smrg    [\\/$]* | ?:[\\/]* )  continue;;
1254e531b1a7Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12553da7aff1Smrg  esac
1256f9d592e5Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
12573da7aff1Smrgdone
12583da7aff1Smrg
12593da7aff1Smrg# There might be people who depend on the old broken behavior: `$host'
12603da7aff1Smrg# used to hold the argument of --host etc.
12613da7aff1Smrg# FIXME: To remove some day.
12623da7aff1Smrgbuild=$build_alias
12633da7aff1Smrghost=$host_alias
12643da7aff1Smrgtarget=$target_alias
12653da7aff1Smrg
12663da7aff1Smrg# FIXME: To remove some day.
12673da7aff1Smrgif test "x$host_alias" != x; then
12683da7aff1Smrg  if test "x$build_alias" = x; then
12693da7aff1Smrg    cross_compiling=maybe
12703da7aff1Smrg  elif test "x$build_alias" != "x$host_alias"; then
12713da7aff1Smrg    cross_compiling=yes
12723da7aff1Smrg  fi
12733da7aff1Smrgfi
12743da7aff1Smrg
12753da7aff1Smrgac_tool_prefix=
12763da7aff1Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12773da7aff1Smrg
12783da7aff1Smrgtest "$silent" = yes && exec 6>/dev/null
12793da7aff1Smrg
12803da7aff1Smrg
1281e531b1a7Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1282e531b1a7Smrgac_ls_di=`ls -di .` &&
1283e531b1a7Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284f9d592e5Smrg  as_fn_error $? "working directory cannot be determined"
1285e531b1a7Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286f9d592e5Smrg  as_fn_error $? "pwd does not report name of working directory"
1287e531b1a7Smrg
1288e531b1a7Smrg
12893da7aff1Smrg# Find the source files, if location was not specified.
12903da7aff1Smrgif test -z "$srcdir"; then
12913da7aff1Smrg  ac_srcdir_defaulted=yes
1292e531b1a7Smrg  # Try the directory containing this script, then the parent directory.
1293e531b1a7Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1294e531b1a7Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295e531b1a7Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1296e531b1a7Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1297e531b1a7Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12983a99fc18Smrgprintf "%s\n" X"$as_myself" |
1299e531b1a7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300e531b1a7Smrg	    s//\1/
1301e531b1a7Smrg	    q
1302e531b1a7Smrg	  }
1303e531b1a7Smrg	  /^X\(\/\/\)[^/].*/{
1304e531b1a7Smrg	    s//\1/
1305e531b1a7Smrg	    q
1306e531b1a7Smrg	  }
1307e531b1a7Smrg	  /^X\(\/\/\)$/{
1308e531b1a7Smrg	    s//\1/
1309e531b1a7Smrg	    q
1310e531b1a7Smrg	  }
1311e531b1a7Smrg	  /^X\(\/\).*/{
1312e531b1a7Smrg	    s//\1/
1313e531b1a7Smrg	    q
1314e531b1a7Smrg	  }
1315e531b1a7Smrg	  s/.*/./; q'`
13163da7aff1Smrg  srcdir=$ac_confdir
1317e531b1a7Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
13183da7aff1Smrg    srcdir=..
13193da7aff1Smrg  fi
13203da7aff1Smrgelse
13213da7aff1Smrg  ac_srcdir_defaulted=no
13223da7aff1Smrgfi
1323e531b1a7Smrgif test ! -r "$srcdir/$ac_unique_file"; then
1324e531b1a7Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325f9d592e5Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1326e531b1a7Smrgfi
1327e531b1a7Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328e531b1a7Smrgac_abs_confdir=`(
1329f9d592e5Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1330e531b1a7Smrg	pwd)`
1331e531b1a7Smrg# When building in place, set srcdir=.
1332e531b1a7Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1333e531b1a7Smrg  srcdir=.
1334e531b1a7Smrgfi
1335e531b1a7Smrg# Remove unnecessary trailing slashes from srcdir.
1336e531b1a7Smrg# Double slashes in file names in object file debugging info
1337e531b1a7Smrg# mess up M-x gdb in Emacs.
1338e531b1a7Smrgcase $srcdir in
1339e531b1a7Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340e531b1a7Smrgesac
1341e531b1a7Smrgfor ac_var in $ac_precious_vars; do
1342e531b1a7Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343e531b1a7Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
1344e531b1a7Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345e531b1a7Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346e531b1a7Smrgdone
13473da7aff1Smrg
13483da7aff1Smrg#
13493da7aff1Smrg# Report the --help message.
13503da7aff1Smrg#
13513da7aff1Smrgif test "$ac_init_help" = "long"; then
13523da7aff1Smrg  # Omit some internal or obsolete options to make the list less imposing.
13533da7aff1Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
13543da7aff1Smrg  cat <<_ACEOF
13553a99fc18Smrg\`configure' configures xlogo 1.0.6 to adapt to many kinds of systems.
13563da7aff1Smrg
13573da7aff1SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
13583da7aff1Smrg
13593da7aff1SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
13603da7aff1SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
13613da7aff1Smrg
13623da7aff1SmrgDefaults for the options are specified in brackets.
13633da7aff1Smrg
13643da7aff1SmrgConfiguration:
13653da7aff1Smrg  -h, --help              display this help and exit
13663da7aff1Smrg      --help=short        display options specific to this package
13673da7aff1Smrg      --help=recursive    display the short help of all the included packages
13683da7aff1Smrg  -V, --version           display version information and exit
1369f9d592e5Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
13703da7aff1Smrg      --cache-file=FILE   cache test results in FILE [disabled]
13713da7aff1Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
13723da7aff1Smrg  -n, --no-create         do not create output files
13733da7aff1Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
13743da7aff1Smrg
13753da7aff1SmrgInstallation directories:
13763da7aff1Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1377e531b1a7Smrg                          [$ac_default_prefix]
13783da7aff1Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1379e531b1a7Smrg                          [PREFIX]
13803da7aff1Smrg
13813da7aff1SmrgBy default, \`make install' will install all the files in
13823da7aff1Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
13833da7aff1Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
13843da7aff1Smrgfor instance \`--prefix=\$HOME'.
13853da7aff1Smrg
13863da7aff1SmrgFor better control, use the options below.
13873da7aff1Smrg
13883da7aff1SmrgFine tuning of the installation directories:
1389e531b1a7Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1390e531b1a7Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1391e531b1a7Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1392e531b1a7Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1393e531b1a7Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1394e531b1a7Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13953a99fc18Smrg  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1396e531b1a7Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1397e531b1a7Smrg  --includedir=DIR        C header files [PREFIX/include]
1398e531b1a7Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1399e531b1a7Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1400e531b1a7Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1401e531b1a7Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1402e531b1a7Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1403e531b1a7Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1404e531b1a7Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xlogo]
1405e531b1a7Smrg  --htmldir=DIR           html documentation [DOCDIR]
1406e531b1a7Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1407e531b1a7Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1408e531b1a7Smrg  --psdir=DIR             ps documentation [DOCDIR]
14093da7aff1Smrg_ACEOF
14103da7aff1Smrg
14113da7aff1Smrg  cat <<\_ACEOF
14123da7aff1Smrg
14133da7aff1SmrgProgram names:
14143da7aff1Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
14153da7aff1Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
14163da7aff1Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
14173da7aff1Smrg
14183da7aff1SmrgSystem types:
14193da7aff1Smrg  --build=BUILD     configure for building on BUILD [guessed]
14203da7aff1Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
14213da7aff1Smrg_ACEOF
14223da7aff1Smrgfi
14233da7aff1Smrg
14243da7aff1Smrgif test -n "$ac_init_help"; then
14253da7aff1Smrg  case $ac_init_help in
14263a99fc18Smrg     short | recursive ) echo "Configuration of xlogo 1.0.6:";;
14273da7aff1Smrg   esac
14283da7aff1Smrg  cat <<\_ACEOF
14293da7aff1Smrg
14303da7aff1SmrgOptional Features:
1431e531b1a7Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
14323da7aff1Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
14333da7aff1Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
14343e999d35Smrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
14353e999d35Smrg  --disable-silent-rules  verbose build output (undo: "make V=0")
14363e999d35Smrg  --enable-dependency-tracking
14373e999d35Smrg                          do not reject slow dependency extractors
14383e999d35Smrg  --disable-dependency-tracking
14393e999d35Smrg                          speeds up one-time build
14403fe82118Smrg  --disable-selective-werror
14413fe82118Smrg                          Turn off selective compiler errors. (default:
14423fe82118Smrg                          enabled)
1443e531b1a7Smrg  --enable-strict-compilation
1444e531b1a7Smrg                          Enable all warnings from compiler and make them
1445e531b1a7Smrg                          errors (default: disabled)
14463da7aff1Smrg
14473da7aff1SmrgOptional Packages:
14483da7aff1Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
14493da7aff1Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14503a99fc18Smrg  --with-render           Use Xrender & Xft2 to draw logo
14513a99fc18Smrg  --with-xkb              Use XKB to sound bells
1452e531b1a7Smrg  --with-appdefaultdir=<pathname>
1453e531b1a7Smrg                          specify directory for app-defaults files (default is
1454e531b1a7Smrg                          autodetected)
14553da7aff1Smrg
14563da7aff1SmrgSome influential environment variables:
14573da7aff1Smrg  CC          C compiler command
14583da7aff1Smrg  CFLAGS      C compiler flags
14593da7aff1Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
14603da7aff1Smrg              nonstandard directory <lib dir>
1461e531b1a7Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1462e531b1a7Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1463e531b1a7Smrg              you have headers in a nonstandard directory <include dir>
14643da7aff1Smrg  PKG_CONFIG  path to pkg-config utility
14653e999d35Smrg  PKG_CONFIG_PATH
14663e999d35Smrg              directories to add to pkg-config's search path
14673e999d35Smrg  PKG_CONFIG_LIBDIR
14683e999d35Smrg              path overriding pkg-config's built-in search path
1469e531b1a7Smrg  XLOGO_CFLAGS
1470e531b1a7Smrg              C compiler flags for XLOGO, overriding pkg-config
1471e531b1a7Smrg  XLOGO_LIBS  linker flags for XLOGO, overriding pkg-config
14723da7aff1Smrg  APPDEFS_CFLAGS
14733da7aff1Smrg              C compiler flags for APPDEFS, overriding pkg-config
14743da7aff1Smrg  APPDEFS_LIBS
14753da7aff1Smrg              linker flags for APPDEFS, overriding pkg-config
14763da7aff1Smrg
14773da7aff1SmrgUse these variables to override the choices made by `configure' or to help
14783da7aff1Smrgit to find libraries and programs with nonstandard names/locations.
14793da7aff1Smrg
14803a99fc18SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues>.
14813da7aff1Smrg_ACEOF
1482e531b1a7Smrgac_status=$?
14833da7aff1Smrgfi
14843da7aff1Smrg
14853da7aff1Smrgif test "$ac_init_help" = "recursive"; then
14863da7aff1Smrg  # If there are subdirs, report their specific --help.
14873da7aff1Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488e531b1a7Smrg    test -d "$ac_dir" ||
1489e531b1a7Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490e531b1a7Smrg      continue
14913da7aff1Smrg    ac_builddir=.
14923da7aff1Smrg
1493e531b1a7Smrgcase "$ac_dir" in
1494e531b1a7Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495e531b1a7Smrg*)
14963a99fc18Smrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1497e531b1a7Smrg  # A ".." for each directory in $ac_dir_suffix.
14983a99fc18Smrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499e531b1a7Smrg  case $ac_top_builddir_sub in
1500e531b1a7Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501e531b1a7Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502e531b1a7Smrg  esac ;;
1503e531b1a7Smrgesac
1504e531b1a7Smrgac_abs_top_builddir=$ac_pwd
1505e531b1a7Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1506e531b1a7Smrg# for backward compatibility:
1507e531b1a7Smrgac_top_builddir=$ac_top_build_prefix
15083da7aff1Smrg
15093da7aff1Smrgcase $srcdir in
1510e531b1a7Smrg  .)  # We are building in place.
15113da7aff1Smrg    ac_srcdir=.
1512e531b1a7Smrg    ac_top_srcdir=$ac_top_builddir_sub
1513e531b1a7Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1514e531b1a7Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
15153da7aff1Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1516e531b1a7Smrg    ac_top_srcdir=$srcdir
1517e531b1a7Smrg    ac_abs_top_srcdir=$srcdir ;;
1518e531b1a7Smrg  *) # Relative name.
1519e531b1a7Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520e531b1a7Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1521e531b1a7Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15223da7aff1Smrgesac
1523e531b1a7Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524e531b1a7Smrg
1525e531b1a7Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
15263a99fc18Smrg    # Check for configure.gnu first; this name is used for a wrapper for
15273a99fc18Smrg    # Metaconfig's "Configure" on case-insensitive file systems.
1528e531b1a7Smrg    if test -f "$ac_srcdir/configure.gnu"; then
1529e531b1a7Smrg      echo &&
1530e531b1a7Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531e531b1a7Smrg    elif test -f "$ac_srcdir/configure"; then
1532e531b1a7Smrg      echo &&
1533e531b1a7Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
15343da7aff1Smrg    else
15353a99fc18Smrg      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536e531b1a7Smrg    fi || ac_status=$?
1537e531b1a7Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
15383da7aff1Smrg  done
15393da7aff1Smrgfi
15403da7aff1Smrg
1541e531b1a7Smrgtest -n "$ac_init_help" && exit $ac_status
15423da7aff1Smrgif $ac_init_version; then
15433da7aff1Smrg  cat <<\_ACEOF
15443a99fc18Smrgxlogo configure 1.0.6
15453a99fc18Smrggenerated by GNU Autoconf 2.71
15463da7aff1Smrg
15473a99fc18SmrgCopyright (C) 2021 Free Software Foundation, Inc.
15483da7aff1SmrgThis configure script is free software; the Free Software Foundation
15493da7aff1Smrggives unlimited permission to copy, distribute and modify it.
15503da7aff1Smrg_ACEOF
1551e531b1a7Smrg  exit
15523da7aff1Smrgfi
15533da7aff1Smrg
1554e531b1a7Smrg## ------------------------ ##
1555e531b1a7Smrg## Autoconf initialization. ##
1556e531b1a7Smrg## ------------------------ ##
15573da7aff1Smrg
1558e531b1a7Smrg# ac_fn_c_try_compile LINENO
1559e531b1a7Smrg# --------------------------
1560e531b1a7Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1561e531b1a7Smrgac_fn_c_try_compile ()
15623da7aff1Smrg{
1563e531b1a7Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15643a99fc18Smrg  rm -f conftest.$ac_objext conftest.beam
1565e531b1a7Smrg  if { { ac_try="$ac_compile"
1566e531b1a7Smrgcase "(($ac_try" in
1567e531b1a7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568e531b1a7Smrg  *) ac_try_echo=$ac_try;;
1569e531b1a7Smrgesac
1570e531b1a7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15713a99fc18Smrgprintf "%s\n" "$ac_try_echo"; } >&5
1572e531b1a7Smrg  (eval "$ac_compile") 2>conftest.err
1573e531b1a7Smrg  ac_status=$?
1574e531b1a7Smrg  if test -s conftest.err; then
1575e531b1a7Smrg    grep -v '^ *+' conftest.err >conftest.er1
1576e531b1a7Smrg    cat conftest.er1 >&5
1577e531b1a7Smrg    mv -f conftest.er1 conftest.err
1578e531b1a7Smrg  fi
15793a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580e531b1a7Smrg  test $ac_status = 0; } && {
1581e531b1a7Smrg	 test -z "$ac_c_werror_flag" ||
1582e531b1a7Smrg	 test ! -s conftest.err
15833a99fc18Smrg       } && test -s conftest.$ac_objext
15843a99fc18Smrgthen :
1585e531b1a7Smrg  ac_retval=0
15863a99fc18Smrgelse $as_nop
15873a99fc18Smrg  printf "%s\n" "$as_me: failed program was:" >&5
1588e531b1a7Smrgsed 's/^/| /' conftest.$ac_ext >&5
15893da7aff1Smrg
1590e531b1a7Smrg	ac_retval=1
1591e531b1a7Smrgfi
1592f9d592e5Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593e531b1a7Smrg  as_fn_set_status $ac_retval
15943da7aff1Smrg
1595e531b1a7Smrg} # ac_fn_c_try_compile
15963da7aff1Smrg
15973a99fc18Smrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
15983a99fc18Smrg# ------------------------------------------------------------------
1599f9d592e5Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
16003a99fc18Smrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
16013a99fc18Smrgac_fn_check_decl ()
1602e531b1a7Smrg{
1603e531b1a7Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604f9d592e5Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
16053a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
16063a99fc18Smrgprintf %s "checking whether $as_decl_name is declared... " >&6; }
16073a99fc18Smrgif eval test \${$3+y}
16083a99fc18Smrgthen :
16093a99fc18Smrg  printf %s "(cached) " >&6
16103a99fc18Smrgelse $as_nop
1611f9d592e5Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
16123a99fc18Smrg  eval ac_save_FLAGS=\$$6
16133a99fc18Smrg  as_fn_append $6 " $5"
1614e531b1a7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615e531b1a7Smrg/* end confdefs.h.  */
1616e531b1a7Smrg$4
1617e531b1a7Smrgint
16183a99fc18Smrgmain (void)
1619e531b1a7Smrg{
1620f9d592e5Smrg#ifndef $as_decl_name
1621f9d592e5Smrg#ifdef __cplusplus
1622f9d592e5Smrg  (void) $as_decl_use;
1623f9d592e5Smrg#else
1624f9d592e5Smrg  (void) $as_decl_name;
1625f9d592e5Smrg#endif
1626e531b1a7Smrg#endif
16273da7aff1Smrg
1628e531b1a7Smrg  ;
1629e531b1a7Smrg  return 0;
1630e531b1a7Smrg}
1631e531b1a7Smrg_ACEOF
16323a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
16333a99fc18Smrgthen :
1634e531b1a7Smrg  eval "$3=yes"
16353a99fc18Smrgelse $as_nop
1636e531b1a7Smrg  eval "$3=no"
1637e531b1a7Smrgfi
16383a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16393a99fc18Smrg  eval $6=\$ac_save_FLAGS
1640e531b1a7Smrg
1641e531b1a7Smrgfi
16423a99fc18Smrgeval ac_res=\$$3
16433a99fc18Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16443a99fc18Smrgprintf "%s\n" "$ac_res" >&6; }
1645f9d592e5Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646e531b1a7Smrg
16473a99fc18Smrg} # ac_fn_check_decl
1648e531b1a7Smrg
1649e531b1a7Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1650e531b1a7Smrg# -------------------------------------------------------
1651e531b1a7Smrg# Tests whether HEADER exists and can be compiled using the include files in
1652e531b1a7Smrg# INCLUDES, setting the cache variable VAR accordingly.
1653e531b1a7Smrgac_fn_c_check_header_compile ()
1654e531b1a7Smrg{
1655e531b1a7Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16563a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16573a99fc18Smrgprintf %s "checking for $2... " >&6; }
16583a99fc18Smrgif eval test \${$3+y}
16593a99fc18Smrgthen :
16603a99fc18Smrg  printf %s "(cached) " >&6
16613a99fc18Smrgelse $as_nop
1662e531b1a7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1663e531b1a7Smrg/* end confdefs.h.  */
1664e531b1a7Smrg$4
1665e531b1a7Smrg#include <$2>
1666e531b1a7Smrg_ACEOF
16673a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
16683a99fc18Smrgthen :
1669e531b1a7Smrg  eval "$3=yes"
16703a99fc18Smrgelse $as_nop
1671e531b1a7Smrg  eval "$3=no"
1672e531b1a7Smrgfi
16733a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1674e531b1a7Smrgfi
1675e531b1a7Smrgeval ac_res=\$$3
16763a99fc18Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16773a99fc18Smrgprintf "%s\n" "$ac_res" >&6; }
1678f9d592e5Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679e531b1a7Smrg
1680e531b1a7Smrg} # ac_fn_c_check_header_compile
16813fe82118Smrg
16823fe82118Smrg# ac_fn_c_try_link LINENO
16833fe82118Smrg# -----------------------
16843fe82118Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
16853fe82118Smrgac_fn_c_try_link ()
16863fe82118Smrg{
16873fe82118Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16883a99fc18Smrg  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
16893fe82118Smrg  if { { ac_try="$ac_link"
16903fe82118Smrgcase "(($ac_try" in
16913fe82118Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923fe82118Smrg  *) ac_try_echo=$ac_try;;
16933fe82118Smrgesac
16943fe82118Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16953a99fc18Smrgprintf "%s\n" "$ac_try_echo"; } >&5
16963fe82118Smrg  (eval "$ac_link") 2>conftest.err
16973fe82118Smrg  ac_status=$?
16983fe82118Smrg  if test -s conftest.err; then
16993fe82118Smrg    grep -v '^ *+' conftest.err >conftest.er1
17003fe82118Smrg    cat conftest.er1 >&5
17013fe82118Smrg    mv -f conftest.er1 conftest.err
17023fe82118Smrg  fi
17033a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17043fe82118Smrg  test $ac_status = 0; } && {
17053fe82118Smrg	 test -z "$ac_c_werror_flag" ||
17063fe82118Smrg	 test ! -s conftest.err
17073fe82118Smrg       } && test -s conftest$ac_exeext && {
17083fe82118Smrg	 test "$cross_compiling" = yes ||
17093e999d35Smrg	 test -x conftest$ac_exeext
17103a99fc18Smrg       }
17113a99fc18Smrgthen :
17123fe82118Smrg  ac_retval=0
17133a99fc18Smrgelse $as_nop
17143a99fc18Smrg  printf "%s\n" "$as_me: failed program was:" >&5
17153fe82118Smrgsed 's/^/| /' conftest.$ac_ext >&5
17163fe82118Smrg
17173fe82118Smrg	ac_retval=1
17183fe82118Smrgfi
17193fe82118Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
17203fe82118Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
17213fe82118Smrg  # interfere with the next link command; also delete a directory that is
17223fe82118Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
17233fe82118Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17243fe82118Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17253fe82118Smrg  as_fn_set_status $ac_retval
17263fe82118Smrg
17273fe82118Smrg} # ac_fn_c_try_link
17283a99fc18Smrgac_configure_args_raw=
17293a99fc18Smrgfor ac_arg
17303a99fc18Smrgdo
17313a99fc18Smrg  case $ac_arg in
17323a99fc18Smrg  *\'*)
17333a99fc18Smrg    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17343a99fc18Smrg  esac
17353a99fc18Smrg  as_fn_append ac_configure_args_raw " '$ac_arg'"
17363a99fc18Smrgdone
17373a99fc18Smrg
17383a99fc18Smrgcase $ac_configure_args_raw in
17393a99fc18Smrg  *$as_nl*)
17403a99fc18Smrg    ac_safe_unquote= ;;
17413a99fc18Smrg  *)
17423a99fc18Smrg    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
17433a99fc18Smrg    ac_unsafe_a="$ac_unsafe_z#~"
17443a99fc18Smrg    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
17453a99fc18Smrg    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
17463a99fc18Smrgesac
17473a99fc18Smrg
1748e531b1a7Smrgcat >config.log <<_ACEOF
1749e531b1a7SmrgThis file contains any messages produced by compilers while
1750e531b1a7Smrgrunning configure, to aid debugging if configure makes a mistake.
1751e531b1a7Smrg
17523a99fc18SmrgIt was created by xlogo $as_me 1.0.6, which was
17533a99fc18Smrggenerated by GNU Autoconf 2.71.  Invocation command line was
1754e531b1a7Smrg
17553a99fc18Smrg  $ $0$ac_configure_args_raw
1756e531b1a7Smrg
1757e531b1a7Smrg_ACEOF
1758e531b1a7Smrgexec 5>>config.log
1759e531b1a7Smrg{
1760e531b1a7Smrgcat <<_ASUNAME
1761e531b1a7Smrg## --------- ##
1762e531b1a7Smrg## Platform. ##
1763e531b1a7Smrg## --------- ##
1764e531b1a7Smrg
1765e531b1a7Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1766e531b1a7Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1767e531b1a7Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1768e531b1a7Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1769e531b1a7Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1770e531b1a7Smrg
1771e531b1a7Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1772e531b1a7Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1773e531b1a7Smrg
1774e531b1a7Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1775e531b1a7Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1776e531b1a7Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1777e531b1a7Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1778e531b1a7Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1779e531b1a7Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1780e531b1a7Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1781e531b1a7Smrg
1782e531b1a7Smrg_ASUNAME
1783e531b1a7Smrg
1784e531b1a7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785e531b1a7Smrgfor as_dir in $PATH
17863da7aff1Smrgdo
17873da7aff1Smrg  IFS=$as_save_IFS
17883a99fc18Smrg  case $as_dir in #(((
17893a99fc18Smrg    '') as_dir=./ ;;
17903a99fc18Smrg    */) ;;
17913a99fc18Smrg    *) as_dir=$as_dir/ ;;
17923a99fc18Smrg  esac
17933a99fc18Smrg    printf "%s\n" "PATH: $as_dir"
1794e531b1a7Smrg  done
1795e531b1a7SmrgIFS=$as_save_IFS
17963da7aff1Smrg
17973da7aff1Smrg} >&5
17983da7aff1Smrg
17993da7aff1Smrgcat >&5 <<_ACEOF
18003da7aff1Smrg
18013da7aff1Smrg
18023da7aff1Smrg## ----------- ##
18033da7aff1Smrg## Core tests. ##
18043da7aff1Smrg## ----------- ##
18053da7aff1Smrg
18063da7aff1Smrg_ACEOF
18073da7aff1Smrg
18083da7aff1Smrg
18093da7aff1Smrg# Keep a trace of the command line.
18103da7aff1Smrg# Strip out --no-create and --no-recursion so they do not pile up.
18113da7aff1Smrg# Strip out --silent because we don't want to record it for future runs.
18123da7aff1Smrg# Also quote any args containing shell meta-characters.
18133da7aff1Smrg# Make two passes to allow for proper duplicate-argument suppression.
18143da7aff1Smrgac_configure_args=
18153da7aff1Smrgac_configure_args0=
18163da7aff1Smrgac_configure_args1=
18173da7aff1Smrgac_must_keep_next=false
18183da7aff1Smrgfor ac_pass in 1 2
18193da7aff1Smrgdo
18203da7aff1Smrg  for ac_arg
18213da7aff1Smrg  do
18223da7aff1Smrg    case $ac_arg in
18233da7aff1Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
18243da7aff1Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18253da7aff1Smrg    | -silent | --silent | --silen | --sile | --sil)
18263da7aff1Smrg      continue ;;
1827e531b1a7Smrg    *\'*)
18283a99fc18Smrg      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18293da7aff1Smrg    esac
18303da7aff1Smrg    case $ac_pass in
1831e531b1a7Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
18323da7aff1Smrg    2)
1833e531b1a7Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
18343da7aff1Smrg      if test $ac_must_keep_next = true; then
18353da7aff1Smrg	ac_must_keep_next=false # Got value, back to normal.
18363da7aff1Smrg      else
18373da7aff1Smrg	case $ac_arg in
18383da7aff1Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
18393da7aff1Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
18403da7aff1Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
18413da7aff1Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
18423da7aff1Smrg	    case "$ac_configure_args0 " in
18433da7aff1Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
18443da7aff1Smrg	    esac
18453da7aff1Smrg	    ;;
18463da7aff1Smrg	  -* ) ac_must_keep_next=true ;;
18473da7aff1Smrg	esac
18483da7aff1Smrg      fi
1849e531b1a7Smrg      as_fn_append ac_configure_args " '$ac_arg'"
18503da7aff1Smrg      ;;
18513da7aff1Smrg    esac
18523da7aff1Smrg  done
18533da7aff1Smrgdone
1854e531b1a7Smrg{ ac_configure_args0=; unset ac_configure_args0;}
1855e531b1a7Smrg{ ac_configure_args1=; unset ac_configure_args1;}
18563da7aff1Smrg
18573da7aff1Smrg# When interrupted or exit'd, cleanup temporary files, and complete
18583da7aff1Smrg# config.log.  We remove comments because anyway the quotes in there
18593da7aff1Smrg# would cause problems or look ugly.
1860e531b1a7Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1861e531b1a7Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
18623da7aff1Smrgtrap 'exit_status=$?
18633a99fc18Smrg  # Sanitize IFS.
18643a99fc18Smrg  IFS=" ""	$as_nl"
18653da7aff1Smrg  # Save into config.log some information that might help in debugging.
18663da7aff1Smrg  {
18673da7aff1Smrg    echo
18683da7aff1Smrg
18693a99fc18Smrg    printf "%s\n" "## ---------------- ##
18703da7aff1Smrg## Cache variables. ##
1871f9d592e5Smrg## ---------------- ##"
18723da7aff1Smrg    echo
18733da7aff1Smrg    # The following way of writing the cache mishandles newlines in values,
1874e531b1a7Smrg(
1875e531b1a7Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1876e531b1a7Smrg    eval ac_val=\$$ac_var
1877e531b1a7Smrg    case $ac_val in #(
1878e531b1a7Smrg    *${as_nl}*)
1879e531b1a7Smrg      case $ac_var in #(
18803a99fc18Smrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18813a99fc18Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1882e531b1a7Smrg      esac
1883e531b1a7Smrg      case $ac_var in #(
1884e531b1a7Smrg      _ | IFS | as_nl) ;; #(
1885e531b1a7Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1886e531b1a7Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1887e531b1a7Smrg      esac ;;
1888e531b1a7Smrg    esac
1889e531b1a7Smrg  done
18903da7aff1Smrg  (set) 2>&1 |
1891e531b1a7Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1892e531b1a7Smrg    *${as_nl}ac_space=\ *)
18933da7aff1Smrg      sed -n \
1894e531b1a7Smrg	"s/'\''/'\''\\\\'\'''\''/g;
1895e531b1a7Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1896e531b1a7Smrg      ;; #(
18973da7aff1Smrg    *)
1898e531b1a7Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18993da7aff1Smrg      ;;
1900e531b1a7Smrg    esac |
1901e531b1a7Smrg    sort
1902e531b1a7Smrg)
19033da7aff1Smrg    echo
19043da7aff1Smrg
19053a99fc18Smrg    printf "%s\n" "## ----------------- ##
19063da7aff1Smrg## Output variables. ##
1907f9d592e5Smrg## ----------------- ##"
19083da7aff1Smrg    echo
19093da7aff1Smrg    for ac_var in $ac_subst_vars
19103da7aff1Smrg    do
1911e531b1a7Smrg      eval ac_val=\$$ac_var
1912e531b1a7Smrg      case $ac_val in
19133a99fc18Smrg      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914e531b1a7Smrg      esac
19153a99fc18Smrg      printf "%s\n" "$ac_var='\''$ac_val'\''"
19163da7aff1Smrg    done | sort
19173da7aff1Smrg    echo
19183da7aff1Smrg
19193da7aff1Smrg    if test -n "$ac_subst_files"; then
19203a99fc18Smrg      printf "%s\n" "## ------------------- ##
1921e531b1a7Smrg## File substitutions. ##
1922f9d592e5Smrg## ------------------- ##"
19233da7aff1Smrg      echo
19243da7aff1Smrg      for ac_var in $ac_subst_files
19253da7aff1Smrg      do
1926e531b1a7Smrg	eval ac_val=\$$ac_var
1927e531b1a7Smrg	case $ac_val in
19283a99fc18Smrg	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1929e531b1a7Smrg	esac
19303a99fc18Smrg	printf "%s\n" "$ac_var='\''$ac_val'\''"
19313da7aff1Smrg      done | sort
19323da7aff1Smrg      echo
19333da7aff1Smrg    fi
19343da7aff1Smrg
19353da7aff1Smrg    if test -s confdefs.h; then
19363a99fc18Smrg      printf "%s\n" "## ----------- ##
19373da7aff1Smrg## confdefs.h. ##
1938f9d592e5Smrg## ----------- ##"
19393da7aff1Smrg      echo
1940e531b1a7Smrg      cat confdefs.h
19413da7aff1Smrg      echo
19423da7aff1Smrg    fi
19433da7aff1Smrg    test "$ac_signal" != 0 &&
19443a99fc18Smrg      printf "%s\n" "$as_me: caught signal $ac_signal"
19453a99fc18Smrg    printf "%s\n" "$as_me: exit $exit_status"
19463da7aff1Smrg  } >&5
1947e531b1a7Smrg  rm -f core *.core core.conftest.* &&
1948e531b1a7Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
19493da7aff1Smrg    exit $exit_status
1950e531b1a7Smrg' 0
19513da7aff1Smrgfor ac_signal in 1 2 13 15; do
1952e531b1a7Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
19533da7aff1Smrgdone
19543da7aff1Smrgac_signal=0
19553da7aff1Smrg
19563da7aff1Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
1957e531b1a7Smrgrm -f -r conftest* confdefs.h
1958e531b1a7Smrg
19593a99fc18Smrgprintf "%s\n" "/* confdefs.h */" > confdefs.h
19603da7aff1Smrg
19613da7aff1Smrg# Predefined preprocessor variables.
19623da7aff1Smrg
19633a99fc18Smrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
19643da7aff1Smrg
19653a99fc18Smrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
19663da7aff1Smrg
19673a99fc18Smrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
19683da7aff1Smrg
19693a99fc18Smrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
19703da7aff1Smrg
19713a99fc18Smrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
19723da7aff1Smrg
19733a99fc18Smrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1974e531b1a7Smrg
19753da7aff1Smrg
19763da7aff1Smrg# Let the site file select an alternate cache file if it wants to.
1977e531b1a7Smrg# Prefer an explicitly selected file to automatically selected ones.
1978e531b1a7Smrgif test -n "$CONFIG_SITE"; then
19793a99fc18Smrg  ac_site_files="$CONFIG_SITE"
1980e531b1a7Smrgelif test "x$prefix" != xNONE; then
19813a99fc18Smrg  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1982e531b1a7Smrgelse
19833a99fc18Smrg  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1984e531b1a7Smrgfi
19853a99fc18Smrg
19863a99fc18Smrgfor ac_site_file in $ac_site_files
1987e531b1a7Smrgdo
19883a99fc18Smrg  case $ac_site_file in #(
19893a99fc18Smrg  */*) :
19903a99fc18Smrg     ;; #(
19913a99fc18Smrg  *) :
19923a99fc18Smrg    ac_site_file=./$ac_site_file ;;
19933a99fc18Smrgesac
19943a99fc18Smrg  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
19953a99fc18Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
19963a99fc18Smrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
19973da7aff1Smrg    sed 's/^/| /' "$ac_site_file" >&5
1998f9d592e5Smrg    . "$ac_site_file" \
19993a99fc18Smrg      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20003a99fc18Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2001f9d592e5Smrgas_fn_error $? "failed to load site script $ac_site_file
2002f9d592e5SmrgSee \`config.log' for more details" "$LINENO" 5; }
20033da7aff1Smrg  fi
20043da7aff1Smrgdone
20053da7aff1Smrg
20063da7aff1Smrgif test -r "$cache_file"; then
2007e531b1a7Smrg  # Some versions of bash will fail to source /dev/null (special files
2008e531b1a7Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2009e531b1a7Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
20103a99fc18Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
20113a99fc18Smrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
20123da7aff1Smrg    case $cache_file in
2013e531b1a7Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2014e531b1a7Smrg      *)                      . "./$cache_file";;
20153da7aff1Smrg    esac
20163da7aff1Smrg  fi
20173da7aff1Smrgelse
20183a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
20193a99fc18Smrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
20203da7aff1Smrg  >$cache_file
20213da7aff1Smrgfi
20223da7aff1Smrg
20233a99fc18Smrg# Test code for whether the C compiler supports C89 (global declarations)
20243a99fc18Smrgac_c_conftest_c89_globals='
20253a99fc18Smrg/* Does the compiler advertise C89 conformance?
20263a99fc18Smrg   Do not test the value of __STDC__, because some compilers set it to 0
20273a99fc18Smrg   while being otherwise adequately conformant. */
20283a99fc18Smrg#if !defined __STDC__
20293a99fc18Smrg# error "Compiler does not advertise C89 conformance"
20303a99fc18Smrg#endif
20313da7aff1Smrg
20323a99fc18Smrg#include <stddef.h>
20333a99fc18Smrg#include <stdarg.h>
20343a99fc18Smrgstruct stat;
20353a99fc18Smrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
20363a99fc18Smrgstruct buf { int x; };
20373a99fc18Smrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int);
20383a99fc18Smrgstatic char *e (p, i)
20393a99fc18Smrg     char **p;
20403a99fc18Smrg     int i;
20413a99fc18Smrg{
20423a99fc18Smrg  return p[i];
20433a99fc18Smrg}
20443a99fc18Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
20453a99fc18Smrg{
20463a99fc18Smrg  char *s;
20473a99fc18Smrg  va_list v;
20483a99fc18Smrg  va_start (v,p);
20493a99fc18Smrg  s = g (p, va_arg (v,int));
20503a99fc18Smrg  va_end (v);
20513a99fc18Smrg  return s;
20523a99fc18Smrg}
20533e999d35Smrg
20543a99fc18Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20553a99fc18Smrg   function prototypes and stuff, but not \xHH hex character constants.
20563a99fc18Smrg   These do not provoke an error unfortunately, instead are silently treated
20573a99fc18Smrg   as an "x".  The following induces an error, until -std is added to get
20583a99fc18Smrg   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
20593a99fc18Smrg   array size at least.  It is necessary to write \x00 == 0 to get something
20603a99fc18Smrg   that is true only with -std.  */
20613a99fc18Smrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
20623e999d35Smrg
20633a99fc18Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20643a99fc18Smrg   inside strings and character constants.  */
20653a99fc18Smrg#define FOO(x) '\''x'\''
20663a99fc18Smrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
20673e999d35Smrg
20683a99fc18Smrgint test (int i, double x);
20693a99fc18Smrgstruct s1 {int (*f) (int a);};
20703a99fc18Smrgstruct s2 {int (*f) (double a);};
20713a99fc18Smrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
20723a99fc18Smrg               int, int);'
20733da7aff1Smrg
20743a99fc18Smrg# Test code for whether the C compiler supports C89 (body of main).
20753a99fc18Smrgac_c_conftest_c89_main='
20763a99fc18Smrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
20773a99fc18Smrg'
2078e531b1a7Smrg
20793a99fc18Smrg# Test code for whether the C compiler supports C99 (global declarations)
20803a99fc18Smrgac_c_conftest_c99_globals='
20813a99fc18Smrg// Does the compiler advertise C99 conformance?
20823a99fc18Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
20833a99fc18Smrg# error "Compiler does not advertise C99 conformance"
20843a99fc18Smrg#endif
2085e531b1a7Smrg
20863a99fc18Smrg#include <stdbool.h>
20873a99fc18Smrgextern int puts (const char *);
20883a99fc18Smrgextern int printf (const char *, ...);
20893a99fc18Smrgextern int dprintf (int, const char *, ...);
20903a99fc18Smrgextern void *malloc (size_t);
20913da7aff1Smrg
20923a99fc18Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
20933a99fc18Smrg// dprintf is used instead of fprintf to avoid needing to declare
20943a99fc18Smrg// FILE and stderr.
20953a99fc18Smrg#define debug(...) dprintf (2, __VA_ARGS__)
20963a99fc18Smrg#define showlist(...) puts (#__VA_ARGS__)
20973a99fc18Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
20983a99fc18Smrgstatic void
20993a99fc18Smrgtest_varargs_macros (void)
21003a99fc18Smrg{
21013a99fc18Smrg  int x = 1234;
21023a99fc18Smrg  int y = 5678;
21033a99fc18Smrg  debug ("Flag");
21043a99fc18Smrg  debug ("X = %d\n", x);
21053a99fc18Smrg  showlist (The first, second, and third items.);
21063a99fc18Smrg  report (x>y, "x is %d but y is %d", x, y);
21073a99fc18Smrg}
21083a99fc18Smrg
21093a99fc18Smrg// Check long long types.
21103a99fc18Smrg#define BIG64 18446744073709551615ull
21113a99fc18Smrg#define BIG32 4294967295ul
21123a99fc18Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
21133a99fc18Smrg#if !BIG_OK
21143a99fc18Smrg  #error "your preprocessor is broken"
21153a99fc18Smrg#endif
21163a99fc18Smrg#if BIG_OK
21173a99fc18Smrg#else
21183a99fc18Smrg  #error "your preprocessor is broken"
21193a99fc18Smrg#endif
21203a99fc18Smrgstatic long long int bignum = -9223372036854775807LL;
21213a99fc18Smrgstatic unsigned long long int ubignum = BIG64;
21223a99fc18Smrg
21233a99fc18Smrgstruct incomplete_array
21243a99fc18Smrg{
21253a99fc18Smrg  int datasize;
21263a99fc18Smrg  double data[];
21273a99fc18Smrg};
21283a99fc18Smrg
21293a99fc18Smrgstruct named_init {
21303a99fc18Smrg  int number;
21313a99fc18Smrg  const wchar_t *name;
21323a99fc18Smrg  double average;
21333a99fc18Smrg};
21343a99fc18Smrg
21353a99fc18Smrgtypedef const char *ccp;
21363a99fc18Smrg
21373a99fc18Smrgstatic inline int
21383a99fc18Smrgtest_restrict (ccp restrict text)
21393a99fc18Smrg{
21403a99fc18Smrg  // See if C++-style comments work.
21413a99fc18Smrg  // Iterate through items via the restricted pointer.
21423a99fc18Smrg  // Also check for declarations in for loops.
21433a99fc18Smrg  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
21443a99fc18Smrg    continue;
21453a99fc18Smrg  return 0;
21463a99fc18Smrg}
21473a99fc18Smrg
21483a99fc18Smrg// Check varargs and va_copy.
21493a99fc18Smrgstatic bool
21503a99fc18Smrgtest_varargs (const char *format, ...)
21513a99fc18Smrg{
21523a99fc18Smrg  va_list args;
21533a99fc18Smrg  va_start (args, format);
21543a99fc18Smrg  va_list args_copy;
21553a99fc18Smrg  va_copy (args_copy, args);
21563a99fc18Smrg
21573a99fc18Smrg  const char *str = "";
21583a99fc18Smrg  int number = 0;
21593a99fc18Smrg  float fnumber = 0;
21603a99fc18Smrg
21613a99fc18Smrg  while (*format)
21623a99fc18Smrg    {
21633a99fc18Smrg      switch (*format++)
21643a99fc18Smrg	{
21653a99fc18Smrg	case '\''s'\'': // string
21663a99fc18Smrg	  str = va_arg (args_copy, const char *);
21673a99fc18Smrg	  break;
21683a99fc18Smrg	case '\''d'\'': // int
21693a99fc18Smrg	  number = va_arg (args_copy, int);
21703a99fc18Smrg	  break;
21713a99fc18Smrg	case '\''f'\'': // float
21723a99fc18Smrg	  fnumber = va_arg (args_copy, double);
21733a99fc18Smrg	  break;
21743a99fc18Smrg	default:
21753a99fc18Smrg	  break;
21763a99fc18Smrg	}
21773a99fc18Smrg    }
21783a99fc18Smrg  va_end (args_copy);
21793a99fc18Smrg  va_end (args);
21803a99fc18Smrg
21813a99fc18Smrg  return *str && number && fnumber;
21823a99fc18Smrg}
21833a99fc18Smrg'
21843a99fc18Smrg
21853a99fc18Smrg# Test code for whether the C compiler supports C99 (body of main).
21863a99fc18Smrgac_c_conftest_c99_main='
21873a99fc18Smrg  // Check bool.
21883a99fc18Smrg  _Bool success = false;
21893a99fc18Smrg  success |= (argc != 0);
21903a99fc18Smrg
21913a99fc18Smrg  // Check restrict.
21923a99fc18Smrg  if (test_restrict ("String literal") == 0)
21933a99fc18Smrg    success = true;
21943a99fc18Smrg  char *restrict newvar = "Another string";
21953a99fc18Smrg
21963a99fc18Smrg  // Check varargs.
21973a99fc18Smrg  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
21983a99fc18Smrg  test_varargs_macros ();
21993a99fc18Smrg
22003a99fc18Smrg  // Check flexible array members.
22013a99fc18Smrg  struct incomplete_array *ia =
22023a99fc18Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
22033a99fc18Smrg  ia->datasize = 10;
22043a99fc18Smrg  for (int i = 0; i < ia->datasize; ++i)
22053a99fc18Smrg    ia->data[i] = i * 1.234;
22063a99fc18Smrg
22073a99fc18Smrg  // Check named initializers.
22083a99fc18Smrg  struct named_init ni = {
22093a99fc18Smrg    .number = 34,
22103a99fc18Smrg    .name = L"Test wide string",
22113a99fc18Smrg    .average = 543.34343,
22123a99fc18Smrg  };
22133a99fc18Smrg
22143a99fc18Smrg  ni.number = 58;
22153a99fc18Smrg
22163a99fc18Smrg  int dynamic_array[ni.number];
22173a99fc18Smrg  dynamic_array[0] = argv[0][0];
22183a99fc18Smrg  dynamic_array[ni.number - 1] = 543;
22193a99fc18Smrg
22203a99fc18Smrg  // work around unused variable warnings
22213a99fc18Smrg  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
22223a99fc18Smrg	 || dynamic_array[ni.number - 1] != 543);
22233a99fc18Smrg'
22243a99fc18Smrg
22253a99fc18Smrg# Test code for whether the C compiler supports C11 (global declarations)
22263a99fc18Smrgac_c_conftest_c11_globals='
22273a99fc18Smrg// Does the compiler advertise C11 conformance?
22283a99fc18Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
22293a99fc18Smrg# error "Compiler does not advertise C11 conformance"
22303a99fc18Smrg#endif
22313a99fc18Smrg
22323a99fc18Smrg// Check _Alignas.
22333a99fc18Smrgchar _Alignas (double) aligned_as_double;
22343a99fc18Smrgchar _Alignas (0) no_special_alignment;
22353a99fc18Smrgextern char aligned_as_int;
22363a99fc18Smrgchar _Alignas (0) _Alignas (int) aligned_as_int;
22373a99fc18Smrg
22383a99fc18Smrg// Check _Alignof.
22393a99fc18Smrgenum
22403a99fc18Smrg{
22413a99fc18Smrg  int_alignment = _Alignof (int),
22423a99fc18Smrg  int_array_alignment = _Alignof (int[100]),
22433a99fc18Smrg  char_alignment = _Alignof (char)
22443a99fc18Smrg};
22453a99fc18Smrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
22463a99fc18Smrg
22473a99fc18Smrg// Check _Noreturn.
22483a99fc18Smrgint _Noreturn does_not_return (void) { for (;;) continue; }
22493a99fc18Smrg
22503a99fc18Smrg// Check _Static_assert.
22513a99fc18Smrgstruct test_static_assert
22523a99fc18Smrg{
22533a99fc18Smrg  int x;
22543a99fc18Smrg  _Static_assert (sizeof (int) <= sizeof (long int),
22553a99fc18Smrg                  "_Static_assert does not work in struct");
22563a99fc18Smrg  long int y;
22573a99fc18Smrg};
22583a99fc18Smrg
22593a99fc18Smrg// Check UTF-8 literals.
22603a99fc18Smrg#define u8 syntax error!
22613a99fc18Smrgchar const utf8_literal[] = u8"happens to be ASCII" "another string";
22623a99fc18Smrg
22633a99fc18Smrg// Check duplicate typedefs.
22643a99fc18Smrgtypedef long *long_ptr;
22653a99fc18Smrgtypedef long int *long_ptr;
22663a99fc18Smrgtypedef long_ptr long_ptr;
22673a99fc18Smrg
22683a99fc18Smrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
22693a99fc18Smrgstruct anonymous
22703a99fc18Smrg{
22713a99fc18Smrg  union {
22723a99fc18Smrg    struct { int i; int j; };
22733a99fc18Smrg    struct { int k; long int l; } w;
22743a99fc18Smrg  };
22753a99fc18Smrg  int m;
22763a99fc18Smrg} v1;
22773a99fc18Smrg'
22783a99fc18Smrg
22793a99fc18Smrg# Test code for whether the C compiler supports C11 (body of main).
22803a99fc18Smrgac_c_conftest_c11_main='
22813a99fc18Smrg  _Static_assert ((offsetof (struct anonymous, i)
22823a99fc18Smrg		   == offsetof (struct anonymous, w.k)),
22833a99fc18Smrg		  "Anonymous union alignment botch");
22843a99fc18Smrg  v1.i = 2;
22853a99fc18Smrg  v1.w.k = 5;
22863a99fc18Smrg  ok |= v1.i != 5;
22873a99fc18Smrg'
22883a99fc18Smrg
22893a99fc18Smrg# Test code for whether the C compiler supports C11 (complete).
22903a99fc18Smrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
22913a99fc18Smrg${ac_c_conftest_c99_globals}
22923a99fc18Smrg${ac_c_conftest_c11_globals}
22933a99fc18Smrg
22943a99fc18Smrgint
22953a99fc18Smrgmain (int argc, char **argv)
22963a99fc18Smrg{
22973a99fc18Smrg  int ok = 0;
22983a99fc18Smrg  ${ac_c_conftest_c89_main}
22993a99fc18Smrg  ${ac_c_conftest_c99_main}
23003a99fc18Smrg  ${ac_c_conftest_c11_main}
23013a99fc18Smrg  return ok;
23023a99fc18Smrg}
23033a99fc18Smrg"
23043a99fc18Smrg
23053a99fc18Smrg# Test code for whether the C compiler supports C99 (complete).
23063a99fc18Smrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
23073a99fc18Smrg${ac_c_conftest_c99_globals}
23083a99fc18Smrg
23093a99fc18Smrgint
23103a99fc18Smrgmain (int argc, char **argv)
23113a99fc18Smrg{
23123a99fc18Smrg  int ok = 0;
23133a99fc18Smrg  ${ac_c_conftest_c89_main}
23143a99fc18Smrg  ${ac_c_conftest_c99_main}
23153a99fc18Smrg  return ok;
23163a99fc18Smrg}
23173a99fc18Smrg"
23183a99fc18Smrg
23193a99fc18Smrg# Test code for whether the C compiler supports C89 (complete).
23203a99fc18Smrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
23213a99fc18Smrg
23223a99fc18Smrgint
23233a99fc18Smrgmain (int argc, char **argv)
23243a99fc18Smrg{
23253a99fc18Smrg  int ok = 0;
23263a99fc18Smrg  ${ac_c_conftest_c89_main}
23273a99fc18Smrg  return ok;
23283a99fc18Smrg}
23293a99fc18Smrg"
23303a99fc18Smrg
23313a99fc18Smrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
23323a99fc18Smrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
23333a99fc18Smrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
23343a99fc18Smrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
23353a99fc18Smrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
23363a99fc18Smrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
23373a99fc18Smrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
23383a99fc18Smrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
23393a99fc18Smrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
23403a99fc18Smrg
23413a99fc18Smrg# Auxiliary files required by this configure script.
23423a99fc18Smrgac_aux_files="config.guess config.sub compile missing install-sh"
23433a99fc18Smrg
23443a99fc18Smrg# Locations in which to look for auxiliary files.
23453a99fc18Smrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
23463a99fc18Smrg
23473a99fc18Smrg# Search for a directory containing all of the required auxiliary files,
23483a99fc18Smrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
23493a99fc18Smrg# If we don't find one directory that contains all the files we need,
23503a99fc18Smrg# we report the set of missing files from the *first* directory in
23513a99fc18Smrg# $ac_aux_dir_candidates and give up.
23523a99fc18Smrgac_missing_aux_files=""
23533a99fc18Smrgac_first_candidate=:
23543a99fc18Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
23553a99fc18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23563a99fc18Smrgas_found=false
23573a99fc18Smrgfor as_dir in $ac_aux_dir_candidates
23583a99fc18Smrgdo
23593a99fc18Smrg  IFS=$as_save_IFS
23603a99fc18Smrg  case $as_dir in #(((
23613a99fc18Smrg    '') as_dir=./ ;;
23623a99fc18Smrg    */) ;;
23633a99fc18Smrg    *) as_dir=$as_dir/ ;;
23643a99fc18Smrg  esac
23653a99fc18Smrg  as_found=:
23663a99fc18Smrg
23673a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
23683a99fc18Smrg  ac_aux_dir_found=yes
23693a99fc18Smrg  ac_install_sh=
23703a99fc18Smrg  for ac_aux in $ac_aux_files
23713a99fc18Smrg  do
23723a99fc18Smrg    # As a special case, if "install-sh" is required, that requirement
23733a99fc18Smrg    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
23743a99fc18Smrg    # and $ac_install_sh is set appropriately for whichever one is found.
23753a99fc18Smrg    if test x"$ac_aux" = x"install-sh"
23763a99fc18Smrg    then
23773a99fc18Smrg      if test -f "${as_dir}install-sh"; then
23783a99fc18Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
23793a99fc18Smrg        ac_install_sh="${as_dir}install-sh -c"
23803a99fc18Smrg      elif test -f "${as_dir}install.sh"; then
23813a99fc18Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
23823a99fc18Smrg        ac_install_sh="${as_dir}install.sh -c"
23833a99fc18Smrg      elif test -f "${as_dir}shtool"; then
23843a99fc18Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
23853a99fc18Smrg        ac_install_sh="${as_dir}shtool install -c"
23863a99fc18Smrg      else
23873a99fc18Smrg        ac_aux_dir_found=no
23883a99fc18Smrg        if $ac_first_candidate; then
23893a99fc18Smrg          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
23903a99fc18Smrg        else
23913a99fc18Smrg          break
23923a99fc18Smrg        fi
23933a99fc18Smrg      fi
23943a99fc18Smrg    else
23953a99fc18Smrg      if test -f "${as_dir}${ac_aux}"; then
23963a99fc18Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
23973a99fc18Smrg      else
23983a99fc18Smrg        ac_aux_dir_found=no
23993a99fc18Smrg        if $ac_first_candidate; then
24003a99fc18Smrg          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
24013a99fc18Smrg        else
24023a99fc18Smrg          break
24033a99fc18Smrg        fi
24043a99fc18Smrg      fi
24053a99fc18Smrg    fi
24063a99fc18Smrg  done
24073a99fc18Smrg  if test "$ac_aux_dir_found" = yes; then
24083a99fc18Smrg    ac_aux_dir="$as_dir"
24093a99fc18Smrg    break
24103a99fc18Smrg  fi
24113a99fc18Smrg  ac_first_candidate=false
24123a99fc18Smrg
24133a99fc18Smrg  as_found=false
24143a99fc18Smrgdone
24153a99fc18SmrgIFS=$as_save_IFS
24163a99fc18Smrgif $as_found
24173a99fc18Smrgthen :
24183a99fc18Smrg
24193a99fc18Smrgelse $as_nop
24203a99fc18Smrg  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
24213a99fc18Smrgfi
24223a99fc18Smrg
24233a99fc18Smrg
24243a99fc18Smrg# These three variables are undocumented and unsupported,
24253a99fc18Smrg# and are intended to be withdrawn in a future Autoconf release.
24263a99fc18Smrg# They can cause serious problems if a builder's source tree is in a directory
24273a99fc18Smrg# whose full name contains unusual characters.
24283a99fc18Smrgif test -f "${ac_aux_dir}config.guess"; then
24293a99fc18Smrg  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
24303a99fc18Smrgfi
24313a99fc18Smrgif test -f "${ac_aux_dir}config.sub"; then
24323a99fc18Smrg  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
24333a99fc18Smrgfi
24343a99fc18Smrgif test -f "$ac_aux_dir/configure"; then
24353a99fc18Smrg  ac_configure="$SHELL ${ac_aux_dir}configure"
24363a99fc18Smrgfi
24373a99fc18Smrg
24383a99fc18Smrg# Check that the precious variables saved in the cache have kept the same
24393a99fc18Smrg# value.
24403a99fc18Smrgac_cache_corrupted=false
24413a99fc18Smrgfor ac_var in $ac_precious_vars; do
24423a99fc18Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
24433a99fc18Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
24443a99fc18Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
24453a99fc18Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
24463a99fc18Smrg  case $ac_old_set,$ac_new_set in
24473a99fc18Smrg    set,)
24483a99fc18Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
24493a99fc18Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
24503a99fc18Smrg      ac_cache_corrupted=: ;;
24513a99fc18Smrg    ,set)
24523a99fc18Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
24533a99fc18Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
24543a99fc18Smrg      ac_cache_corrupted=: ;;
24553a99fc18Smrg    ,);;
24563a99fc18Smrg    *)
24573a99fc18Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
24583a99fc18Smrg	# differences in whitespace do not lead to failure.
24593a99fc18Smrg	ac_old_val_w=`echo x $ac_old_val`
24603a99fc18Smrg	ac_new_val_w=`echo x $ac_new_val`
24613a99fc18Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
24623a99fc18Smrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
24633a99fc18Smrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
24643a99fc18Smrg	  ac_cache_corrupted=:
24653a99fc18Smrg	else
24663a99fc18Smrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
24673a99fc18Smrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
24683a99fc18Smrg	  eval $ac_var=\$ac_old_val
24693a99fc18Smrg	fi
24703a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
24713a99fc18Smrgprintf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
24723a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
24733a99fc18Smrgprintf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
24743a99fc18Smrg      fi;;
24753a99fc18Smrg  esac
24763a99fc18Smrg  # Pass precious variables to config.status.
24773a99fc18Smrg  if test "$ac_new_set" = set; then
24783a99fc18Smrg    case $ac_new_val in
24793a99fc18Smrg    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
24803a99fc18Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
24813a99fc18Smrg    esac
24823a99fc18Smrg    case " $ac_configure_args " in
24833a99fc18Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
24843a99fc18Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
24853a99fc18Smrg    esac
24863a99fc18Smrg  fi
24873a99fc18Smrgdone
24883a99fc18Smrgif $ac_cache_corrupted; then
24893a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24903a99fc18Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24913a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
24923a99fc18Smrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
24933a99fc18Smrg  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
24943a99fc18Smrg	    and start over" "$LINENO" 5
24953a99fc18Smrgfi
24963a99fc18Smrg## -------------------- ##
24973a99fc18Smrg## Main body of script. ##
24983a99fc18Smrg## -------------------- ##
24993a99fc18Smrg
25003a99fc18Smrgac_ext=c
25013a99fc18Smrgac_cpp='$CPP $CPPFLAGS'
25023a99fc18Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25033a99fc18Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25043a99fc18Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
25053a99fc18Smrg
25063a99fc18Smrg
25073a99fc18Smrg
25083a99fc18Smrgac_config_headers="$ac_config_headers config.h"
25093a99fc18Smrg
25103a99fc18Smrg
25113a99fc18Smrg# Initialize Automake
25123a99fc18Smrgam__api_version='1.16'
25133a99fc18Smrg
25143a99fc18Smrg
25153a99fc18Smrg
25163a99fc18Smrg  # Find a good install program.  We prefer a C program (faster),
25173a99fc18Smrg# so one script is as good as another.  But avoid the broken or
25183a99fc18Smrg# incompatible versions:
25193a99fc18Smrg# SysV /etc/install, /usr/sbin/install
25203a99fc18Smrg# SunOS /usr/etc/install
25213a99fc18Smrg# IRIX /sbin/install
25223a99fc18Smrg# AIX /bin/install
25233da7aff1Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
25243da7aff1Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
25253da7aff1Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
25263da7aff1Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
25273da7aff1Smrg# OS/2's system install, which has a completely different semantic
25283da7aff1Smrg# ./install, which can be erroneously created by make from ./install.sh.
2529e531b1a7Smrg# Reject install programs that cannot install multiple files.
25303a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
25313a99fc18Smrgprintf %s "checking for a BSD-compatible install... " >&6; }
25323da7aff1Smrgif test -z "$INSTALL"; then
25333a99fc18Smrgif test ${ac_cv_path_install+y}
25343a99fc18Smrgthen :
25353a99fc18Smrg  printf %s "(cached) " >&6
25363a99fc18Smrgelse $as_nop
25373da7aff1Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25383da7aff1Smrgfor as_dir in $PATH
25393da7aff1Smrgdo
25403da7aff1Smrg  IFS=$as_save_IFS
25413a99fc18Smrg  case $as_dir in #(((
25423a99fc18Smrg    '') as_dir=./ ;;
25433a99fc18Smrg    */) ;;
25443a99fc18Smrg    *) as_dir=$as_dir/ ;;
25453a99fc18Smrg  esac
25463a99fc18Smrg    # Account for fact that we put trailing slashes in our PATH walk.
25473a99fc18Smrgcase $as_dir in #((
25483a99fc18Smrg  ./ | /[cC]/* | \
25493da7aff1Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2550e531b1a7Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
25513da7aff1Smrg  /usr/ucb/* ) ;;
25523da7aff1Smrg  *)
25533da7aff1Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
25543da7aff1Smrg    # Don't use installbsd from OSF since it installs stuff as root
25553da7aff1Smrg    # by default.
25563da7aff1Smrg    for ac_prog in ginstall scoinst install; do
25573da7aff1Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
25583a99fc18Smrg	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
25593da7aff1Smrg	  if test $ac_prog = install &&
25603a99fc18Smrg	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
25613da7aff1Smrg	    # AIX install.  It has an incompatible calling convention.
25623da7aff1Smrg	    :
25633da7aff1Smrg	  elif test $ac_prog = install &&
25643a99fc18Smrg	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
25653da7aff1Smrg	    # program-specific install script used by HP pwplus--don't use.
25663da7aff1Smrg	    :
25673da7aff1Smrg	  else
2568e531b1a7Smrg	    rm -rf conftest.one conftest.two conftest.dir
2569e531b1a7Smrg	    echo one > conftest.one
2570e531b1a7Smrg	    echo two > conftest.two
2571e531b1a7Smrg	    mkdir conftest.dir
25723a99fc18Smrg	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2573e531b1a7Smrg	      test -s conftest.one && test -s conftest.two &&
2574e531b1a7Smrg	      test -s conftest.dir/conftest.one &&
2575e531b1a7Smrg	      test -s conftest.dir/conftest.two
2576e531b1a7Smrg	    then
25773a99fc18Smrg	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2578e531b1a7Smrg	      break 3
2579e531b1a7Smrg	    fi
25803da7aff1Smrg	  fi
25813da7aff1Smrg	fi
25823da7aff1Smrg      done
25833da7aff1Smrg    done
25843da7aff1Smrg    ;;
25853da7aff1Smrgesac
25863da7aff1Smrg
2587e531b1a7Smrg  done
2588e531b1a7SmrgIFS=$as_save_IFS
2589e531b1a7Smrg
2590e531b1a7Smrgrm -rf conftest.one conftest.two conftest.dir
25913da7aff1Smrg
25923da7aff1Smrgfi
25933a99fc18Smrg  if test ${ac_cv_path_install+y}; then
25943da7aff1Smrg    INSTALL=$ac_cv_path_install
25953da7aff1Smrg  else
2596e531b1a7Smrg    # As a last resort, use the slow shell script.  Don't cache a
2597e531b1a7Smrg    # value for INSTALL within a source directory, because that will
25983da7aff1Smrg    # break other packages using the cache if that directory is
2599e531b1a7Smrg    # removed, or if the value is a relative name.
26003da7aff1Smrg    INSTALL=$ac_install_sh
26013da7aff1Smrg  fi
26023da7aff1Smrgfi
26033a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
26043a99fc18Smrgprintf "%s\n" "$INSTALL" >&6; }
26053da7aff1Smrg
26063da7aff1Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
26073da7aff1Smrg# It thinks the first close brace ends the variable substitution.
26083da7aff1Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
26093da7aff1Smrg
26103da7aff1Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
26113da7aff1Smrg
26123da7aff1Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
26133da7aff1Smrg
26143a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
26153a99fc18Smrgprintf %s "checking whether build environment is sane... " >&6; }
2616e531b1a7Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2617e531b1a7Smrg# name.  Accept space and tab only in the latter.
2618e531b1a7Smrgam_lf='
2619e531b1a7Smrg'
2620e531b1a7Smrgcase `pwd` in
2621e531b1a7Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
2622f9d592e5Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2623e531b1a7Smrgesac
2624e531b1a7Smrgcase $srcdir in
2625e531b1a7Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
26263e999d35Smrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2627e531b1a7Smrgesac
2628e531b1a7Smrg
26293e999d35Smrg# Do 'set' in a subshell so we don't clobber the current shell's
26303da7aff1Smrg# arguments.  Must try -L first in case configure is actually a
26313da7aff1Smrg# symlink; some systems play weird games with the mod time of symlinks
26323da7aff1Smrg# (eg FreeBSD returns the mod time of the symlink's containing
26333da7aff1Smrg# directory).
26343da7aff1Smrgif (
26353e999d35Smrg   am_has_slept=no
26363e999d35Smrg   for am_try in 1 2; do
26373e999d35Smrg     echo "timestamp, slept: $am_has_slept" > conftest.file
26383e999d35Smrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
26393e999d35Smrg     if test "$*" = "X"; then
26403e999d35Smrg	# -L didn't work.
26413e999d35Smrg	set X `ls -t "$srcdir/configure" conftest.file`
26423e999d35Smrg     fi
26433e999d35Smrg     if test "$*" != "X $srcdir/configure conftest.file" \
26443e999d35Smrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
26453e999d35Smrg
26463e999d35Smrg	# If neither matched, then we have a broken ls.  This can happen
26473e999d35Smrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
26483e999d35Smrg	# broken ls alias from the environment.  This has actually
26493e999d35Smrg	# happened.  Such a system could not be considered "sane".
26503e999d35Smrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
26513e999d35Smrg  alias in your environment" "$LINENO" 5
26523e999d35Smrg     fi
26533e999d35Smrg     if test "$2" = conftest.file || test $am_try -eq 2; then
26543e999d35Smrg       break
26553e999d35Smrg     fi
26563e999d35Smrg     # Just in case.
26573e999d35Smrg     sleep 1
26583e999d35Smrg     am_has_slept=yes
26593e999d35Smrg   done
26603da7aff1Smrg   test "$2" = conftest.file
26613da7aff1Smrg   )
26623da7aff1Smrgthen
26633da7aff1Smrg   # Ok.
26643da7aff1Smrg   :
26653da7aff1Smrgelse
2666f9d592e5Smrg   as_fn_error $? "newly created file is older than distributed files!
2667e531b1a7SmrgCheck your system clock" "$LINENO" 5
26683da7aff1Smrgfi
26693a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26703a99fc18Smrgprintf "%s\n" "yes" >&6; }
26713e999d35Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and
26723e999d35Smrg# generated files are strictly newer.
26733e999d35Smrgam_sleep_pid=
26743e999d35Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
26753e999d35Smrg  ( sleep 1 ) &
26763e999d35Smrg  am_sleep_pid=$!
26773e999d35Smrgfi
26783e999d35Smrg
26793e999d35Smrgrm -f conftest.file
26803e999d35Smrg
26813da7aff1Smrgtest "$program_prefix" != NONE &&
2682e531b1a7Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
26833da7aff1Smrg# Use a double $ so make ignores it.
26843da7aff1Smrgtest "$program_suffix" != NONE &&
2685e531b1a7Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2686e531b1a7Smrg# Double any \ or $.
26873da7aff1Smrg# By default was `s,x,x', remove it if useless.
2688e531b1a7Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
26893a99fc18Smrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
26903a99fc18Smrg
26913da7aff1Smrg
26923e999d35Smrg# Expand $ac_aux_dir to an absolute path.
26933e999d35Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
26943da7aff1Smrg
26953a99fc18Smrg
26963a99fc18Smrg  if test x"${MISSING+set}" != xset; then
26973a99fc18Smrg  MISSING="\${SHELL} '$am_aux_dir/missing'"
2698e531b1a7Smrgfi
26993da7aff1Smrg# Use eval to expand $SHELL
27003e999d35Smrgif eval "$MISSING --is-lightweight"; then
27013e999d35Smrg  am_missing_run="$MISSING "
27023da7aff1Smrgelse
27033da7aff1Smrg  am_missing_run=
27043a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
27053a99fc18Smrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2706e531b1a7Smrgfi
2707e531b1a7Smrg
27083e999d35Smrgif test x"${install_sh+set}" != xset; then
2709e531b1a7Smrg  case $am_aux_dir in
2710e531b1a7Smrg  *\ * | *\	*)
2711e531b1a7Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2712e531b1a7Smrg  *)
2713e531b1a7Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2714e531b1a7Smrg  esac
2715e531b1a7Smrgfi
2716e531b1a7Smrg
27173e999d35Smrg# Installed binaries are usually stripped using 'strip' when the user
27183e999d35Smrg# run "make install-strip".  However 'strip' might not be the right
2719e531b1a7Smrg# tool to use in cross-compilation environments, therefore Automake
27203e999d35Smrg# will honor the 'STRIP' environment variable to overrule this program.
2721e531b1a7Smrgif test "$cross_compiling" != no; then
2722e531b1a7Smrg  if test -n "$ac_tool_prefix"; then
2723e531b1a7Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2724e531b1a7Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
27253a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27263a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
27273a99fc18Smrgif test ${ac_cv_prog_STRIP+y}
27283a99fc18Smrgthen :
27293a99fc18Smrg  printf %s "(cached) " >&6
27303a99fc18Smrgelse $as_nop
2731e531b1a7Smrg  if test -n "$STRIP"; then
2732e531b1a7Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2733e531b1a7Smrgelse
2734e531b1a7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735e531b1a7Smrgfor as_dir in $PATH
2736e531b1a7Smrgdo
2737e531b1a7Smrg  IFS=$as_save_IFS
27383a99fc18Smrg  case $as_dir in #(((
27393a99fc18Smrg    '') as_dir=./ ;;
27403a99fc18Smrg    */) ;;
27413a99fc18Smrg    *) as_dir=$as_dir/ ;;
27423a99fc18Smrg  esac
2743e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
27443a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2745e531b1a7Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
27463a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2747e531b1a7Smrg    break 2
2748e531b1a7Smrg  fi
2749e531b1a7Smrgdone
2750e531b1a7Smrg  done
2751e531b1a7SmrgIFS=$as_save_IFS
2752e531b1a7Smrg
2753e531b1a7Smrgfi
2754e531b1a7Smrgfi
2755e531b1a7SmrgSTRIP=$ac_cv_prog_STRIP
2756e531b1a7Smrgif test -n "$STRIP"; then
27573a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
27583a99fc18Smrgprintf "%s\n" "$STRIP" >&6; }
2759e531b1a7Smrgelse
27603a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27613a99fc18Smrgprintf "%s\n" "no" >&6; }
2762e531b1a7Smrgfi
2763e531b1a7Smrg
2764e531b1a7Smrg
2765e531b1a7Smrgfi
2766e531b1a7Smrgif test -z "$ac_cv_prog_STRIP"; then
2767e531b1a7Smrg  ac_ct_STRIP=$STRIP
2768e531b1a7Smrg  # Extract the first word of "strip", so it can be a program name with args.
2769e531b1a7Smrgset dummy strip; ac_word=$2
27703a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27713a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
27723a99fc18Smrgif test ${ac_cv_prog_ac_ct_STRIP+y}
27733a99fc18Smrgthen :
27743a99fc18Smrg  printf %s "(cached) " >&6
27753a99fc18Smrgelse $as_nop
2776e531b1a7Smrg  if test -n "$ac_ct_STRIP"; then
2777e531b1a7Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2778e531b1a7Smrgelse
2779e531b1a7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780e531b1a7Smrgfor as_dir in $PATH
2781e531b1a7Smrgdo
2782e531b1a7Smrg  IFS=$as_save_IFS
27833a99fc18Smrg  case $as_dir in #(((
27843a99fc18Smrg    '') as_dir=./ ;;
27853a99fc18Smrg    */) ;;
27863a99fc18Smrg    *) as_dir=$as_dir/ ;;
27873a99fc18Smrg  esac
2788e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
27893a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2790e531b1a7Smrg    ac_cv_prog_ac_ct_STRIP="strip"
27913a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2792e531b1a7Smrg    break 2
2793e531b1a7Smrg  fi
2794e531b1a7Smrgdone
2795e531b1a7Smrg  done
2796e531b1a7SmrgIFS=$as_save_IFS
2797e531b1a7Smrg
2798e531b1a7Smrgfi
27993da7aff1Smrgfi
2800e531b1a7Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2801e531b1a7Smrgif test -n "$ac_ct_STRIP"; then
28023a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
28033a99fc18Smrgprintf "%s\n" "$ac_ct_STRIP" >&6; }
2804e531b1a7Smrgelse
28053a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28063a99fc18Smrgprintf "%s\n" "no" >&6; }
2807e531b1a7Smrgfi
2808e531b1a7Smrg
2809e531b1a7Smrg  if test "x$ac_ct_STRIP" = x; then
2810e531b1a7Smrg    STRIP=":"
2811e531b1a7Smrg  else
2812e531b1a7Smrg    case $cross_compiling:$ac_tool_warned in
2813e531b1a7Smrgyes:)
28143a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28153a99fc18Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2816e531b1a7Smrgac_tool_warned=yes ;;
2817e531b1a7Smrgesac
2818e531b1a7Smrg    STRIP=$ac_ct_STRIP
2819e531b1a7Smrg  fi
2820e531b1a7Smrgelse
2821e531b1a7Smrg  STRIP="$ac_cv_prog_STRIP"
2822e531b1a7Smrgfi
2823e531b1a7Smrg
2824e531b1a7Smrgfi
2825e531b1a7SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2826e531b1a7Smrg
28273a99fc18Smrg
28283a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
28293a99fc18Smrgprintf %s "checking for a race-free mkdir -p... " >&6; }
2830e531b1a7Smrgif test -z "$MKDIR_P"; then
28313a99fc18Smrg  if test ${ac_cv_path_mkdir+y}
28323a99fc18Smrgthen :
28333a99fc18Smrg  printf %s "(cached) " >&6
28343a99fc18Smrgelse $as_nop
2835e531b1a7Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836e531b1a7Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2837e531b1a7Smrgdo
2838e531b1a7Smrg  IFS=$as_save_IFS
28393a99fc18Smrg  case $as_dir in #(((
28403a99fc18Smrg    '') as_dir=./ ;;
28413a99fc18Smrg    */) ;;
28423a99fc18Smrg    *) as_dir=$as_dir/ ;;
28433a99fc18Smrg  esac
2844e531b1a7Smrg    for ac_prog in mkdir gmkdir; do
2845e531b1a7Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
28463a99fc18Smrg	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
28473a99fc18Smrg	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
28483a99fc18Smrg	     'mkdir ('*'coreutils) '* | \
28493a99fc18Smrg	     'BusyBox '* | \
2850e531b1a7Smrg	     'mkdir (fileutils) '4.1*)
28513a99fc18Smrg	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2852e531b1a7Smrg	       break 3;;
2853e531b1a7Smrg	   esac
2854e531b1a7Smrg	 done
2855e531b1a7Smrg       done
2856e531b1a7Smrg  done
2857e531b1a7SmrgIFS=$as_save_IFS
2858e531b1a7Smrg
2859e531b1a7Smrgfi
2860e531b1a7Smrg
2861e531b1a7Smrg  test -d ./--version && rmdir ./--version
28623a99fc18Smrg  if test ${ac_cv_path_mkdir+y}; then
2863e531b1a7Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
2864e531b1a7Smrg  else
2865e531b1a7Smrg    # As a last resort, use the slow shell script.  Don't cache a
2866e531b1a7Smrg    # value for MKDIR_P within a source directory, because that will
2867e531b1a7Smrg    # break other packages using the cache if that directory is
2868e531b1a7Smrg    # removed, or if the value is a relative name.
2869e531b1a7Smrg    MKDIR_P="$ac_install_sh -d"
2870e531b1a7Smrg  fi
2871e531b1a7Smrgfi
28723a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
28733a99fc18Smrgprintf "%s\n" "$MKDIR_P" >&6; }
2874e531b1a7Smrg
28753da7aff1Smrgfor ac_prog in gawk mawk nawk awk
28763da7aff1Smrgdo
28773da7aff1Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
28783da7aff1Smrgset dummy $ac_prog; ac_word=$2
28793a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28803a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
28813a99fc18Smrgif test ${ac_cv_prog_AWK+y}
28823a99fc18Smrgthen :
28833a99fc18Smrg  printf %s "(cached) " >&6
28843a99fc18Smrgelse $as_nop
28853da7aff1Smrg  if test -n "$AWK"; then
28863da7aff1Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
28873da7aff1Smrgelse
28883da7aff1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28893da7aff1Smrgfor as_dir in $PATH
28903da7aff1Smrgdo
28913da7aff1Smrg  IFS=$as_save_IFS
28923a99fc18Smrg  case $as_dir in #(((
28933a99fc18Smrg    '') as_dir=./ ;;
28943a99fc18Smrg    */) ;;
28953a99fc18Smrg    *) as_dir=$as_dir/ ;;
28963a99fc18Smrg  esac
2897e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
28983a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28993da7aff1Smrg    ac_cv_prog_AWK="$ac_prog"
29003a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29013da7aff1Smrg    break 2
29023da7aff1Smrg  fi
29033da7aff1Smrgdone
2904e531b1a7Smrg  done
2905e531b1a7SmrgIFS=$as_save_IFS
29063da7aff1Smrg
29073da7aff1Smrgfi
29083da7aff1Smrgfi
29093da7aff1SmrgAWK=$ac_cv_prog_AWK
29103da7aff1Smrgif test -n "$AWK"; then
29113a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
29123a99fc18Smrgprintf "%s\n" "$AWK" >&6; }
29133da7aff1Smrgelse
29143a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29153a99fc18Smrgprintf "%s\n" "no" >&6; }
29163da7aff1Smrgfi
29173da7aff1Smrg
2918e531b1a7Smrg
29193da7aff1Smrg  test -n "$AWK" && break
29203da7aff1Smrgdone
29213da7aff1Smrg
29223a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
29233a99fc18Smrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2924e531b1a7Smrgset x ${MAKE-make}
29253a99fc18Smrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
29263a99fc18Smrgif eval test \${ac_cv_prog_make_${ac_make}_set+y}
29273a99fc18Smrgthen :
29283a99fc18Smrg  printf %s "(cached) " >&6
29293a99fc18Smrgelse $as_nop
29303da7aff1Smrg  cat >conftest.make <<\_ACEOF
2931e531b1a7SmrgSHELL = /bin/sh
29323da7aff1Smrgall:
2933e531b1a7Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
29343da7aff1Smrg_ACEOF
2935f9d592e5Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2936e531b1a7Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2937e531b1a7Smrg  *@@@%%%=?*=@@@%%%*)
2938e531b1a7Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2939e531b1a7Smrg  *)
2940e531b1a7Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2941e531b1a7Smrgesac
29423da7aff1Smrgrm -f conftest.make
29433da7aff1Smrgfi
2944e531b1a7Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
29453a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29463a99fc18Smrgprintf "%s\n" "yes" >&6; }
29473da7aff1Smrg  SET_MAKE=
29483da7aff1Smrgelse
29493a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29503a99fc18Smrgprintf "%s\n" "no" >&6; }
29513da7aff1Smrg  SET_MAKE="MAKE=${MAKE-make}"
29523da7aff1Smrgfi
29533da7aff1Smrg
29543da7aff1Smrgrm -rf .tst 2>/dev/null
29553da7aff1Smrgmkdir .tst 2>/dev/null
29563da7aff1Smrgif test -d .tst; then
29573da7aff1Smrg  am__leading_dot=.
29583da7aff1Smrgelse
29593da7aff1Smrg  am__leading_dot=_
29603da7aff1Smrgfi
29613da7aff1Smrgrmdir .tst 2>/dev/null
29623da7aff1Smrg
29633e999d35Smrg# Check whether --enable-silent-rules was given.
29643a99fc18Smrgif test ${enable_silent_rules+y}
29653a99fc18Smrgthen :
29663e999d35Smrg  enableval=$enable_silent_rules;
29673e999d35Smrgfi
29683e999d35Smrg
29693e999d35Smrgcase $enable_silent_rules in # (((
29703e999d35Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
29713e999d35Smrg   no) AM_DEFAULT_VERBOSITY=1;;
29723e999d35Smrg    *) AM_DEFAULT_VERBOSITY=1;;
29733e999d35Smrgesac
29743e999d35Smrgam_make=${MAKE-make}
29753a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
29763a99fc18Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
29773a99fc18Smrgif test ${am_cv_make_support_nested_variables+y}
29783a99fc18Smrgthen :
29793a99fc18Smrg  printf %s "(cached) " >&6
29803a99fc18Smrgelse $as_nop
29813a99fc18Smrg  if printf "%s\n" 'TRUE=$(BAR$(V))
29823e999d35SmrgBAR0=false
29833e999d35SmrgBAR1=true
29843e999d35SmrgV=1
29853e999d35Smrgam__doit:
29863e999d35Smrg	@$(TRUE)
29873e999d35Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
29883e999d35Smrg  am_cv_make_support_nested_variables=yes
29893e999d35Smrgelse
29903e999d35Smrg  am_cv_make_support_nested_variables=no
29913e999d35Smrgfi
29923e999d35Smrgfi
29933a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
29943a99fc18Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
29953e999d35Smrgif test $am_cv_make_support_nested_variables = yes; then
29963e999d35Smrg    AM_V='$(V)'
29973e999d35Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
29983e999d35Smrgelse
29993e999d35Smrg  AM_V=$AM_DEFAULT_VERBOSITY
30003e999d35Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
30013e999d35Smrgfi
30023e999d35SmrgAM_BACKSLASH='\'
30033e999d35Smrg
3004e531b1a7Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
3005e531b1a7Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3006e531b1a7Smrg  # is not polluted with repeated "-I."
3007e531b1a7Smrg  am__isrc=' -I$(srcdir)'
3008e531b1a7Smrg  # test to see if srcdir already configured
3009e531b1a7Smrg  if test -f $srcdir/config.status; then
3010f9d592e5Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3011e531b1a7Smrg  fi
30123da7aff1Smrgfi
30133da7aff1Smrg
30143da7aff1Smrg# test whether we have cygpath
30153da7aff1Smrgif test -z "$CYGPATH_W"; then
30163da7aff1Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
30173da7aff1Smrg    CYGPATH_W='cygpath -w'
30183da7aff1Smrg  else
30193da7aff1Smrg    CYGPATH_W=echo
30203da7aff1Smrg  fi
30213da7aff1Smrgfi
30223da7aff1Smrg
30233da7aff1Smrg
30243da7aff1Smrg# Define the identity of the package.
30253da7aff1Smrg PACKAGE='xlogo'
30263a99fc18Smrg VERSION='1.0.6'
30273da7aff1Smrg
30283da7aff1Smrg
30293a99fc18Smrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
30303da7aff1Smrg
30313da7aff1Smrg
30323a99fc18Smrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
30333da7aff1Smrg
30343da7aff1Smrg# Some tools Automake needs.
30353da7aff1Smrg
30363da7aff1SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
30373da7aff1Smrg
30383da7aff1Smrg
30393da7aff1SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30403da7aff1Smrg
30413da7aff1Smrg
30423da7aff1SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
30433da7aff1Smrg
30443da7aff1Smrg
30453da7aff1SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30463da7aff1Smrg
30473da7aff1Smrg
30483da7aff1SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
30493da7aff1Smrg
30503e999d35Smrg# For better backward compatibility.  To be removed once Automake 1.9.x
30513e999d35Smrg# dies out for good.  For more background, see:
30523a99fc18Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
30533a99fc18Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
30543e999d35Smrgmkdir_p='$(MKDIR_P)'
30553da7aff1Smrg
30563e999d35Smrg# We need awk for the "check" target (and possibly the TAP driver).  The
30573e999d35Smrg# system "awk" is bad on some platforms.
30583e999d35Smrg# Always define AMTAR for backward compatibility.  Yes, it's still used
30593e999d35Smrg# in the wild :-(  We should find a proper way to deprecate it ...
30603e999d35SmrgAMTAR='$${TAR-tar}'
30613da7aff1Smrg
30623da7aff1Smrg
30633e999d35Smrg# We'll loop over all known methods to create a tar archive until one works.
30643e999d35Smrg_am_tools='gnutar  pax cpio none'
3065e531b1a7Smrg
30663e999d35Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3067e531b1a7Smrg
3068e531b1a7Smrg
3069e531b1a7Smrg
3070e531b1a7Smrg
3071e531b1a7Smrg
30723a99fc18Smrg# Variables for tags utilities; see am/tags.am
30733a99fc18Smrgif test -z "$CTAGS"; then
30743a99fc18Smrg  CTAGS=ctags
30753a99fc18Smrgfi
30763a99fc18Smrg
30773a99fc18Smrgif test -z "$ETAGS"; then
30783a99fc18Smrg  ETAGS=etags
30793a99fc18Smrgfi
30803a99fc18Smrg
30813a99fc18Smrgif test -z "$CSCOPE"; then
30823a99fc18Smrg  CSCOPE=cscope
30833a99fc18Smrgfi
30843a99fc18Smrg
30853a99fc18Smrg
30863da7aff1Smrg
30873e999d35Smrg# POSIX will say in a future version that running "rm -f" with no argument
30883e999d35Smrg# is OK; and we want to be able to make that assumption in our Makefile
30893e999d35Smrg# recipes.  So use an aggressive probe to check that the usage we want is
30903e999d35Smrg# actually supported "in the wild" to an acceptable degree.
30913e999d35Smrg# See automake bug#10828.
30923e999d35Smrg# To make any issue more visible, cause the running configure to be aborted
30933e999d35Smrg# by default if the 'rm' program in use doesn't match our expectations; the
30943e999d35Smrg# user can still override this though.
30953e999d35Smrgif rm -f && rm -fr && rm -rf; then : OK; else
30963e999d35Smrg  cat >&2 <<'END'
30973e999d35SmrgOops!
30983da7aff1Smrg
30993e999d35SmrgYour 'rm' program seems unable to run without file operands specified
31003e999d35Smrgon the command line, even when the '-f' option is present.  This is contrary
31013e999d35Smrgto the behaviour of most rm programs out there, and not conforming with
31023e999d35Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
31033e999d35Smrg
31043e999d35SmrgPlease tell bug-automake@gnu.org about your system, including the value
31053e999d35Smrgof your $PATH and any error possibly output before this message.  This
31063e999d35Smrgcan help us improve future automake versions.
31073e999d35Smrg
31083e999d35SmrgEND
31093e999d35Smrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
31103e999d35Smrg    echo 'Configuration will proceed anyway, since you have set the' >&2
31113e999d35Smrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
31123e999d35Smrg    echo >&2
31133e999d35Smrg  else
31143e999d35Smrg    cat >&2 <<'END'
31153e999d35SmrgAborting the configuration process, to ensure you take notice of the issue.
31163e999d35Smrg
31173e999d35SmrgYou can download and install GNU coreutils to get an 'rm' implementation
31183a99fc18Smrgthat behaves properly: <https://www.gnu.org/software/coreutils/>.
31193e999d35Smrg
31203e999d35SmrgIf you want to complete the configuration process using your problematic
31213e999d35Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
31223e999d35Smrgto "yes", and re-run configure.
31233e999d35Smrg
31243e999d35SmrgEND
31253e999d35Smrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
31263e999d35Smrg  fi
31273e999d35Smrgfi
31283da7aff1Smrg
31293da7aff1Smrg
3130f9d592e5Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
31313da7aff1Smrg
31323da7aff1Smrg
31333da7aff1Smrg
31343da7aff1Smrg
31353da7aff1Smrg
31363da7aff1Smrg
3137e531b1a7Smrg
3138e531b1a7Smrg
3139e531b1a7Smrg
3140e531b1a7Smrg
3141e531b1a7Smrg
31423a99fc18Smrg
31433a99fc18Smrg
31443a99fc18Smrg
31453a99fc18Smrg
31463a99fc18Smrg
31473a99fc18Smrg
31483a99fc18Smrg
31493a99fc18Smrg
31503a99fc18Smrg
3151e531b1a7SmrgDEPDIR="${am__leading_dot}deps"
3152e531b1a7Smrg
3153e531b1a7Smrgac_config_commands="$ac_config_commands depfiles"
3154e531b1a7Smrg
31553a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
31563a99fc18Smrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
31573a99fc18Smrgcat > confinc.mk << 'END'
3158e531b1a7Smrgam__doit:
31593a99fc18Smrg	@echo this is the am__doit target >confinc.out
3160e531b1a7Smrg.PHONY: am__doit
3161e531b1a7SmrgEND
3162e531b1a7Smrgam__include="#"
3163e531b1a7Smrgam__quote=
31643a99fc18Smrg# BSD make does it like this.
31653a99fc18Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD
31663a99fc18Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this.
31673a99fc18Smrgecho 'include confinc.mk # ignored' > confmf.GNU
31683a99fc18Smrg_am_result=no
31693a99fc18Smrgfor s in GNU BSD; do
31703a99fc18Smrg  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
31713a99fc18Smrg   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
31723a99fc18Smrg   ac_status=$?
31733a99fc18Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743a99fc18Smrg   (exit $ac_status); }
31753a99fc18Smrg  case $?:`cat confinc.out 2>/dev/null` in #(
31763a99fc18Smrg  '0:this is the am__doit target') :
31773a99fc18Smrg    case $s in #(
31783a99fc18Smrg  BSD) :
31793a99fc18Smrg    am__include='.include' am__quote='"' ;; #(
31803a99fc18Smrg  *) :
31813a99fc18Smrg    am__include='include' am__quote='' ;;
31823a99fc18Smrgesac ;; #(
31833a99fc18Smrg  *) :
3184e531b1a7Smrg     ;;
31853a99fc18Smrgesac
31863a99fc18Smrg  if test "$am__include" != "#"; then
31873a99fc18Smrg    _am_result="yes ($s style)"
31883a99fc18Smrg    break
31893a99fc18Smrg  fi
31903a99fc18Smrgdone
31913a99fc18Smrgrm -f confinc.* confmf.*
31923a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
31933a99fc18Smrgprintf "%s\n" "${_am_result}" >&6; }
31943da7aff1Smrg
3195e531b1a7Smrg# Check whether --enable-dependency-tracking was given.
31963a99fc18Smrgif test ${enable_dependency_tracking+y}
31973a99fc18Smrgthen :
3198e531b1a7Smrg  enableval=$enable_dependency_tracking;
3199e531b1a7Smrgfi
32003da7aff1Smrg
3201e531b1a7Smrgif test "x$enable_dependency_tracking" != xno; then
3202e531b1a7Smrg  am_depcomp="$ac_aux_dir/depcomp"
3203e531b1a7Smrg  AMDEPBACKSLASH='\'
32043e999d35Smrg  am__nodep='_no'
3205e531b1a7Smrgfi
3206e531b1a7Smrg if test "x$enable_dependency_tracking" != xno; then
3207e531b1a7Smrg  AMDEP_TRUE=
3208e531b1a7Smrg  AMDEP_FALSE='#'
3209e531b1a7Smrgelse
3210e531b1a7Smrg  AMDEP_TRUE='#'
3211e531b1a7Smrg  AMDEP_FALSE=
3212e531b1a7Smrgfi
32133da7aff1Smrg
32143da7aff1Smrg
32153da7aff1Smrgac_ext=c
32163da7aff1Smrgac_cpp='$CPP $CPPFLAGS'
32173da7aff1Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32183da7aff1Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32193da7aff1Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
32203da7aff1Smrgif test -n "$ac_tool_prefix"; then
32213da7aff1Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
32223da7aff1Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
32233a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32243a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
32253a99fc18Smrgif test ${ac_cv_prog_CC+y}
32263a99fc18Smrgthen :
32273a99fc18Smrg  printf %s "(cached) " >&6
32283a99fc18Smrgelse $as_nop
32293da7aff1Smrg  if test -n "$CC"; then
32303da7aff1Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
32313da7aff1Smrgelse
32323da7aff1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32333da7aff1Smrgfor as_dir in $PATH
32343da7aff1Smrgdo
32353da7aff1Smrg  IFS=$as_save_IFS
32363a99fc18Smrg  case $as_dir in #(((
32373a99fc18Smrg    '') as_dir=./ ;;
32383a99fc18Smrg    */) ;;
32393a99fc18Smrg    *) as_dir=$as_dir/ ;;
32403a99fc18Smrg  esac
3241e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
32423a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32433da7aff1Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
32443a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32453da7aff1Smrg    break 2
32463da7aff1Smrg  fi
32473da7aff1Smrgdone
3248e531b1a7Smrg  done
3249e531b1a7SmrgIFS=$as_save_IFS
32503da7aff1Smrg
32513da7aff1Smrgfi
32523da7aff1Smrgfi
32533da7aff1SmrgCC=$ac_cv_prog_CC
32543da7aff1Smrgif test -n "$CC"; then
32553a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
32563a99fc18Smrgprintf "%s\n" "$CC" >&6; }
32573da7aff1Smrgelse
32583a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32593a99fc18Smrgprintf "%s\n" "no" >&6; }
32603da7aff1Smrgfi
32613da7aff1Smrg
3262e531b1a7Smrg
32633da7aff1Smrgfi
32643da7aff1Smrgif test -z "$ac_cv_prog_CC"; then
32653da7aff1Smrg  ac_ct_CC=$CC
32663da7aff1Smrg  # Extract the first word of "gcc", so it can be a program name with args.
32673da7aff1Smrgset dummy gcc; ac_word=$2
32683a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32693a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
32703a99fc18Smrgif test ${ac_cv_prog_ac_ct_CC+y}
32713a99fc18Smrgthen :
32723a99fc18Smrg  printf %s "(cached) " >&6
32733a99fc18Smrgelse $as_nop
32743da7aff1Smrg  if test -n "$ac_ct_CC"; then
32753da7aff1Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
32763da7aff1Smrgelse
32773da7aff1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32783da7aff1Smrgfor as_dir in $PATH
32793da7aff1Smrgdo
32803da7aff1Smrg  IFS=$as_save_IFS
32813a99fc18Smrg  case $as_dir in #(((
32823a99fc18Smrg    '') as_dir=./ ;;
32833a99fc18Smrg    */) ;;
32843a99fc18Smrg    *) as_dir=$as_dir/ ;;
32853a99fc18Smrg  esac
3286e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
32873a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32883da7aff1Smrg    ac_cv_prog_ac_ct_CC="gcc"
32893a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32903da7aff1Smrg    break 2
32913da7aff1Smrg  fi
32923da7aff1Smrgdone
3293e531b1a7Smrg  done
3294e531b1a7SmrgIFS=$as_save_IFS
32953da7aff1Smrg
32963da7aff1Smrgfi
32973da7aff1Smrgfi
32983da7aff1Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
32993da7aff1Smrgif test -n "$ac_ct_CC"; then
33003a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
33013a99fc18Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
33023da7aff1Smrgelse
33033a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33043a99fc18Smrgprintf "%s\n" "no" >&6; }
33053da7aff1Smrgfi
33063da7aff1Smrg
3307e531b1a7Smrg  if test "x$ac_ct_CC" = x; then
3308e531b1a7Smrg    CC=""
3309e531b1a7Smrg  else
3310e531b1a7Smrg    case $cross_compiling:$ac_tool_warned in
3311e531b1a7Smrgyes:)
33123a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
33133a99fc18Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3314e531b1a7Smrgac_tool_warned=yes ;;
3315e531b1a7Smrgesac
3316e531b1a7Smrg    CC=$ac_ct_CC
3317e531b1a7Smrg  fi
33183da7aff1Smrgelse
33193da7aff1Smrg  CC="$ac_cv_prog_CC"
33203da7aff1Smrgfi
33213da7aff1Smrg
33223da7aff1Smrgif test -z "$CC"; then
3323e531b1a7Smrg          if test -n "$ac_tool_prefix"; then
3324e531b1a7Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
33253da7aff1Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
33263a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33273a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
33283a99fc18Smrgif test ${ac_cv_prog_CC+y}
33293a99fc18Smrgthen :
33303a99fc18Smrg  printf %s "(cached) " >&6
33313a99fc18Smrgelse $as_nop
33323da7aff1Smrg  if test -n "$CC"; then
33333da7aff1Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
33343da7aff1Smrgelse
33353da7aff1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33363da7aff1Smrgfor as_dir in $PATH
33373da7aff1Smrgdo
33383da7aff1Smrg  IFS=$as_save_IFS
33393a99fc18Smrg  case $as_dir in #(((
33403a99fc18Smrg    '') as_dir=./ ;;
33413a99fc18Smrg    */) ;;
33423a99fc18Smrg    *) as_dir=$as_dir/ ;;
33433a99fc18Smrg  esac
3344e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
33453a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33463da7aff1Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
33473a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33483da7aff1Smrg    break 2
33493da7aff1Smrg  fi
33503da7aff1Smrgdone
3351e531b1a7Smrg  done
3352e531b1a7SmrgIFS=$as_save_IFS
33533da7aff1Smrg
33543da7aff1Smrgfi
33553da7aff1Smrgfi
33563da7aff1SmrgCC=$ac_cv_prog_CC
33573da7aff1Smrgif test -n "$CC"; then
33583a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
33593a99fc18Smrgprintf "%s\n" "$CC" >&6; }
33603da7aff1Smrgelse
33613a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33623a99fc18Smrgprintf "%s\n" "no" >&6; }
33633da7aff1Smrgfi
33643da7aff1Smrg
33653da7aff1Smrg
3366e531b1a7Smrg  fi
33673da7aff1Smrgfi
33683da7aff1Smrgif test -z "$CC"; then
33693da7aff1Smrg  # Extract the first word of "cc", so it can be a program name with args.
33703da7aff1Smrgset dummy cc; ac_word=$2
33713a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33723a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
33733a99fc18Smrgif test ${ac_cv_prog_CC+y}
33743a99fc18Smrgthen :
33753a99fc18Smrg  printf %s "(cached) " >&6
33763a99fc18Smrgelse $as_nop
33773da7aff1Smrg  if test -n "$CC"; then
33783da7aff1Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
33793da7aff1Smrgelse
33803da7aff1Smrg  ac_prog_rejected=no
33813da7aff1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33823da7aff1Smrgfor as_dir in $PATH
33833da7aff1Smrgdo
33843da7aff1Smrg  IFS=$as_save_IFS
33853a99fc18Smrg  case $as_dir in #(((
33863a99fc18Smrg    '') as_dir=./ ;;
33873a99fc18Smrg    */) ;;
33883a99fc18Smrg    *) as_dir=$as_dir/ ;;
33893a99fc18Smrg  esac
3390e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
33913a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33923a99fc18Smrg    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
33933da7aff1Smrg       ac_prog_rejected=yes
33943da7aff1Smrg       continue
33953da7aff1Smrg     fi
33963da7aff1Smrg    ac_cv_prog_CC="cc"
33973a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33983da7aff1Smrg    break 2
33993da7aff1Smrg  fi
34003da7aff1Smrgdone
3401e531b1a7Smrg  done
3402e531b1a7SmrgIFS=$as_save_IFS
34033da7aff1Smrg
34043da7aff1Smrgif test $ac_prog_rejected = yes; then
34053da7aff1Smrg  # We found a bogon in the path, so make sure we never use it.
34063da7aff1Smrg  set dummy $ac_cv_prog_CC
34073da7aff1Smrg  shift
34083da7aff1Smrg  if test $# != 0; then
34093da7aff1Smrg    # We chose a different compiler from the bogus one.
34103da7aff1Smrg    # However, it has the same basename, so the bogon will be chosen
34113da7aff1Smrg    # first if we set CC to just the basename; use the full file name.
34123da7aff1Smrg    shift
34133a99fc18Smrg    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
34143da7aff1Smrg  fi
34153da7aff1Smrgfi
34163da7aff1Smrgfi
34173da7aff1Smrgfi
34183da7aff1SmrgCC=$ac_cv_prog_CC
34193da7aff1Smrgif test -n "$CC"; then
34203a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
34213a99fc18Smrgprintf "%s\n" "$CC" >&6; }
34223da7aff1Smrgelse
34233a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34243a99fc18Smrgprintf "%s\n" "no" >&6; }
34253da7aff1Smrgfi
34263da7aff1Smrg
3427e531b1a7Smrg
34283da7aff1Smrgfi
34293da7aff1Smrgif test -z "$CC"; then
34303da7aff1Smrg  if test -n "$ac_tool_prefix"; then
3431e531b1a7Smrg  for ac_prog in cl.exe
34323da7aff1Smrg  do
34333da7aff1Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
34343da7aff1Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
34353a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34363a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
34373a99fc18Smrgif test ${ac_cv_prog_CC+y}
34383a99fc18Smrgthen :
34393a99fc18Smrg  printf %s "(cached) " >&6
34403a99fc18Smrgelse $as_nop
34413da7aff1Smrg  if test -n "$CC"; then
34423da7aff1Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
34433da7aff1Smrgelse
34443da7aff1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34453da7aff1Smrgfor as_dir in $PATH
34463da7aff1Smrgdo
34473da7aff1Smrg  IFS=$as_save_IFS
34483a99fc18Smrg  case $as_dir in #(((
34493a99fc18Smrg    '') as_dir=./ ;;
34503a99fc18Smrg    */) ;;
34513a99fc18Smrg    *) as_dir=$as_dir/ ;;
34523a99fc18Smrg  esac
3453e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
34543a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
34553da7aff1Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
34563a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
34573da7aff1Smrg    break 2
34583da7aff1Smrg  fi
34593da7aff1Smrgdone
3460e531b1a7Smrg  done
3461e531b1a7SmrgIFS=$as_save_IFS
34623da7aff1Smrg
34633da7aff1Smrgfi
34643da7aff1Smrgfi
34653da7aff1SmrgCC=$ac_cv_prog_CC
34663da7aff1Smrgif test -n "$CC"; then
34673a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
34683a99fc18Smrgprintf "%s\n" "$CC" >&6; }
34693da7aff1Smrgelse
34703a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34713a99fc18Smrgprintf "%s\n" "no" >&6; }
34723da7aff1Smrgfi
34733da7aff1Smrg
3474e531b1a7Smrg
34753da7aff1Smrg    test -n "$CC" && break
34763da7aff1Smrg  done
34773da7aff1Smrgfi
34783da7aff1Smrgif test -z "$CC"; then
34793da7aff1Smrg  ac_ct_CC=$CC
3480e531b1a7Smrg  for ac_prog in cl.exe
34813da7aff1Smrgdo
34823da7aff1Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
34833da7aff1Smrgset dummy $ac_prog; ac_word=$2
34843a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34853a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
34863a99fc18Smrgif test ${ac_cv_prog_ac_ct_CC+y}
34873a99fc18Smrgthen :
34883a99fc18Smrg  printf %s "(cached) " >&6
34893a99fc18Smrgelse $as_nop
34903da7aff1Smrg  if test -n "$ac_ct_CC"; then
34913da7aff1Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
34923da7aff1Smrgelse
34933da7aff1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34943da7aff1Smrgfor as_dir in $PATH
34953da7aff1Smrgdo
34963da7aff1Smrg  IFS=$as_save_IFS
34973a99fc18Smrg  case $as_dir in #(((
34983a99fc18Smrg    '') as_dir=./ ;;
34993a99fc18Smrg    */) ;;
35003a99fc18Smrg    *) as_dir=$as_dir/ ;;
35013a99fc18Smrg  esac
3502e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
35033a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
35043da7aff1Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
35053a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
35063da7aff1Smrg    break 2
35073da7aff1Smrg  fi
35083da7aff1Smrgdone
3509e531b1a7Smrg  done
3510e531b1a7SmrgIFS=$as_save_IFS
35113da7aff1Smrg
35123da7aff1Smrgfi
35133da7aff1Smrgfi
35143da7aff1Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
35153da7aff1Smrgif test -n "$ac_ct_CC"; then
35163a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
35173a99fc18Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
35183da7aff1Smrgelse
35193a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35203a99fc18Smrgprintf "%s\n" "no" >&6; }
35213da7aff1Smrgfi
35223da7aff1Smrg
3523e531b1a7Smrg
35243da7aff1Smrg  test -n "$ac_ct_CC" && break
35253da7aff1Smrgdone
35263da7aff1Smrg
3527e531b1a7Smrg  if test "x$ac_ct_CC" = x; then
3528e531b1a7Smrg    CC=""
3529e531b1a7Smrg  else
3530e531b1a7Smrg    case $cross_compiling:$ac_tool_warned in
3531e531b1a7Smrgyes:)
35323a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
35333a99fc18Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
35343a99fc18Smrgac_tool_warned=yes ;;
35353a99fc18Smrgesac
35363a99fc18Smrg    CC=$ac_ct_CC
35373a99fc18Smrg  fi
35383a99fc18Smrgfi
35393a99fc18Smrg
35403a99fc18Smrgfi
35413a99fc18Smrgif test -z "$CC"; then
35423a99fc18Smrg  if test -n "$ac_tool_prefix"; then
35433a99fc18Smrg  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
35443a99fc18Smrgset dummy ${ac_tool_prefix}clang; ac_word=$2
35453a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35463a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
35473a99fc18Smrgif test ${ac_cv_prog_CC+y}
35483a99fc18Smrgthen :
35493a99fc18Smrg  printf %s "(cached) " >&6
35503a99fc18Smrgelse $as_nop
35513a99fc18Smrg  if test -n "$CC"; then
35523a99fc18Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
35533a99fc18Smrgelse
35543a99fc18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35553a99fc18Smrgfor as_dir in $PATH
35563a99fc18Smrgdo
35573a99fc18Smrg  IFS=$as_save_IFS
35583a99fc18Smrg  case $as_dir in #(((
35593a99fc18Smrg    '') as_dir=./ ;;
35603a99fc18Smrg    */) ;;
35613a99fc18Smrg    *) as_dir=$as_dir/ ;;
35623a99fc18Smrg  esac
35633a99fc18Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
35643a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
35653a99fc18Smrg    ac_cv_prog_CC="${ac_tool_prefix}clang"
35663a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
35673a99fc18Smrg    break 2
35683a99fc18Smrg  fi
35693a99fc18Smrgdone
35703a99fc18Smrg  done
35713a99fc18SmrgIFS=$as_save_IFS
35723a99fc18Smrg
35733a99fc18Smrgfi
35743a99fc18Smrgfi
35753a99fc18SmrgCC=$ac_cv_prog_CC
35763a99fc18Smrgif test -n "$CC"; then
35773a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
35783a99fc18Smrgprintf "%s\n" "$CC" >&6; }
35793a99fc18Smrgelse
35803a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35813a99fc18Smrgprintf "%s\n" "no" >&6; }
35823a99fc18Smrgfi
35833a99fc18Smrg
35843a99fc18Smrg
35853a99fc18Smrgfi
35863a99fc18Smrgif test -z "$ac_cv_prog_CC"; then
35873a99fc18Smrg  ac_ct_CC=$CC
35883a99fc18Smrg  # Extract the first word of "clang", so it can be a program name with args.
35893a99fc18Smrgset dummy clang; ac_word=$2
35903a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35913a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
35923a99fc18Smrgif test ${ac_cv_prog_ac_ct_CC+y}
35933a99fc18Smrgthen :
35943a99fc18Smrg  printf %s "(cached) " >&6
35953a99fc18Smrgelse $as_nop
35963a99fc18Smrg  if test -n "$ac_ct_CC"; then
35973a99fc18Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35983a99fc18Smrgelse
35993a99fc18Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36003a99fc18Smrgfor as_dir in $PATH
36013a99fc18Smrgdo
36023a99fc18Smrg  IFS=$as_save_IFS
36033a99fc18Smrg  case $as_dir in #(((
36043a99fc18Smrg    '') as_dir=./ ;;
36053a99fc18Smrg    */) ;;
36063a99fc18Smrg    *) as_dir=$as_dir/ ;;
36073a99fc18Smrg  esac
36083a99fc18Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
36093a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
36103a99fc18Smrg    ac_cv_prog_ac_ct_CC="clang"
36113a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
36123a99fc18Smrg    break 2
36133a99fc18Smrg  fi
36143a99fc18Smrgdone
36153a99fc18Smrg  done
36163a99fc18SmrgIFS=$as_save_IFS
36173a99fc18Smrg
36183a99fc18Smrgfi
36193a99fc18Smrgfi
36203a99fc18Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
36213a99fc18Smrgif test -n "$ac_ct_CC"; then
36223a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
36233a99fc18Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
36243a99fc18Smrgelse
36253a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36263a99fc18Smrgprintf "%s\n" "no" >&6; }
36273a99fc18Smrgfi
36283a99fc18Smrg
36293a99fc18Smrg  if test "x$ac_ct_CC" = x; then
36303a99fc18Smrg    CC=""
36313a99fc18Smrg  else
36323a99fc18Smrg    case $cross_compiling:$ac_tool_warned in
36333a99fc18Smrgyes:)
36343a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36353a99fc18Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3636e531b1a7Smrgac_tool_warned=yes ;;
3637e531b1a7Smrgesac
3638e531b1a7Smrg    CC=$ac_ct_CC
3639e531b1a7Smrg  fi
36403a99fc18Smrgelse
36413a99fc18Smrg  CC="$ac_cv_prog_CC"
36423da7aff1Smrgfi
36433da7aff1Smrg
36443da7aff1Smrgfi
36453da7aff1Smrg
36463da7aff1Smrg
36473a99fc18Smrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36483a99fc18Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3649f9d592e5Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
3650f9d592e5SmrgSee \`config.log' for more details" "$LINENO" 5; }
36513da7aff1Smrg
36523da7aff1Smrg# Provide some information about the compiler.
36533a99fc18Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3654e531b1a7Smrgset X $ac_compile
3655e531b1a7Smrgac_compiler=$2
36563a99fc18Smrgfor ac_option in --version -v -V -qversion -version; do
3657e531b1a7Smrg  { { ac_try="$ac_compiler $ac_option >&5"
3658e531b1a7Smrgcase "(($ac_try" in
3659e531b1a7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660e531b1a7Smrg  *) ac_try_echo=$ac_try;;
3661e531b1a7Smrgesac
3662e531b1a7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
36633a99fc18Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3664e531b1a7Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
36653da7aff1Smrg  ac_status=$?
3666e531b1a7Smrg  if test -s conftest.err; then
3667e531b1a7Smrg    sed '10a\
3668e531b1a7Smrg... rest of stderr output deleted ...
3669e531b1a7Smrg         10q' conftest.err >conftest.er1
3670e531b1a7Smrg    cat conftest.er1 >&5
3671e531b1a7Smrg  fi
3672e531b1a7Smrg  rm -f conftest.er1 conftest.err
36733a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674e531b1a7Smrg  test $ac_status = 0; }
3675e531b1a7Smrgdone
36763da7aff1Smrg
3677e531b1a7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
36783da7aff1Smrg/* end confdefs.h.  */
36793da7aff1Smrg
36803da7aff1Smrgint
36813a99fc18Smrgmain (void)
36823da7aff1Smrg{
36833da7aff1Smrg
36843da7aff1Smrg  ;
36853da7aff1Smrg  return 0;
36863da7aff1Smrg}
36873da7aff1Smrg_ACEOF
36883da7aff1Smrgac_clean_files_save=$ac_clean_files
3689e531b1a7Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
36903da7aff1Smrg# Try to create an executable without -o first, disregard a.out.
36913da7aff1Smrg# It will help us diagnose broken compilers, and finding out an intuition
36923da7aff1Smrg# of exeext.
36933a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
36943a99fc18Smrgprintf %s "checking whether the C compiler works... " >&6; }
36953a99fc18Smrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3696e531b1a7Smrg
3697e531b1a7Smrg# The possible output files:
3698e531b1a7Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3699e531b1a7Smrg
3700e531b1a7Smrgac_rmfiles=
3701e531b1a7Smrgfor ac_file in $ac_files
3702e531b1a7Smrgdo
3703e531b1a7Smrg  case $ac_file in
3704e531b1a7Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3705e531b1a7Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3706e531b1a7Smrg  esac
3707e531b1a7Smrgdone
3708e531b1a7Smrgrm -f $ac_rmfiles
3709e531b1a7Smrg
3710e531b1a7Smrgif { { ac_try="$ac_link_default"
3711e531b1a7Smrgcase "(($ac_try" in
3712e531b1a7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713e531b1a7Smrg  *) ac_try_echo=$ac_try;;
3714e531b1a7Smrgesac
3715e531b1a7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
37163a99fc18Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3717e531b1a7Smrg  (eval "$ac_link_default") 2>&5
37183da7aff1Smrg  ac_status=$?
37193a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37203a99fc18Smrg  test $ac_status = 0; }
37213a99fc18Smrgthen :
3722e531b1a7Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3723e531b1a7Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3724e531b1a7Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3725e531b1a7Smrg# so that the user can short-circuit this test for compilers unknown to
3726e531b1a7Smrg# Autoconf.
3727e531b1a7Smrgfor ac_file in $ac_files ''
37283da7aff1Smrgdo
37293da7aff1Smrg  test -f "$ac_file" || continue
37303da7aff1Smrg  case $ac_file in
3731e531b1a7Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
37323da7aff1Smrg	;;
37333da7aff1Smrg    [ab].out )
37343da7aff1Smrg	# We found the default executable, but exeext='' is most
37353da7aff1Smrg	# certainly right.
37363da7aff1Smrg	break;;
37373da7aff1Smrg    *.* )
37383a99fc18Smrg	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3739e531b1a7Smrg	then :; else
3740e531b1a7Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3741e531b1a7Smrg	fi
3742e531b1a7Smrg	# We set ac_cv_exeext here because the later test for it is not
3743e531b1a7Smrg	# safe: cross compilers may not add the suffix if given an `-o'
3744e531b1a7Smrg	# argument, so we may need to know it at that point already.
3745e531b1a7Smrg	# Even if this section looks crufty: it has the advantage of
3746e531b1a7Smrg	# actually working.
37473da7aff1Smrg	break;;
37483da7aff1Smrg    * )
37493da7aff1Smrg	break;;
37503da7aff1Smrg  esac
37513da7aff1Smrgdone
3752e531b1a7Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3753e531b1a7Smrg
37543a99fc18Smrgelse $as_nop
3755e531b1a7Smrg  ac_file=''
3756e531b1a7Smrgfi
37573a99fc18Smrgif test -z "$ac_file"
37583a99fc18Smrgthen :
37593a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37603a99fc18Smrgprintf "%s\n" "no" >&6; }
37613a99fc18Smrgprintf "%s\n" "$as_me: failed program was:" >&5
37623da7aff1Smrgsed 's/^/| /' conftest.$ac_ext >&5
37633da7aff1Smrg
37643a99fc18Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37653a99fc18Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3766f9d592e5Smrgas_fn_error 77 "C compiler cannot create executables
3767f9d592e5SmrgSee \`config.log' for more details" "$LINENO" 5; }
37683a99fc18Smrgelse $as_nop
37693a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37703a99fc18Smrgprintf "%s\n" "yes" >&6; }
37713a99fc18Smrgfi
37723a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
37733a99fc18Smrgprintf %s "checking for C compiler default output file name... " >&6; }
37743a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
37753a99fc18Smrgprintf "%s\n" "$ac_file" >&6; }
37763da7aff1Smrgac_exeext=$ac_cv_exeext
37773da7aff1Smrg
3778e531b1a7Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
37793da7aff1Smrgac_clean_files=$ac_clean_files_save
37803a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
37813a99fc18Smrgprintf %s "checking for suffix of executables... " >&6; }
3782e531b1a7Smrgif { { ac_try="$ac_link"
3783e531b1a7Smrgcase "(($ac_try" in
3784e531b1a7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785e531b1a7Smrg  *) ac_try_echo=$ac_try;;
3786e531b1a7Smrgesac
3787e531b1a7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
37883a99fc18Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3789e531b1a7Smrg  (eval "$ac_link") 2>&5
37903da7aff1Smrg  ac_status=$?
37913a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37923a99fc18Smrg  test $ac_status = 0; }
37933a99fc18Smrgthen :
37943da7aff1Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
37953da7aff1Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
37963da7aff1Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
37973da7aff1Smrg# `rm'.
37983da7aff1Smrgfor ac_file in conftest.exe conftest conftest.*; do
37993da7aff1Smrg  test -f "$ac_file" || continue
38003da7aff1Smrg  case $ac_file in
3801e531b1a7Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
38023da7aff1Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
38033da7aff1Smrg	  break;;
38043da7aff1Smrg    * ) break;;
38053da7aff1Smrg  esac
38063da7aff1Smrgdone
38073a99fc18Smrgelse $as_nop
38083a99fc18Smrg  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38093a99fc18Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3810f9d592e5Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3811f9d592e5SmrgSee \`config.log' for more details" "$LINENO" 5; }
38123da7aff1Smrgfi
3813e531b1a7Smrgrm -f conftest conftest$ac_cv_exeext
38143a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
38153a99fc18Smrgprintf "%s\n" "$ac_cv_exeext" >&6; }
38163da7aff1Smrg
38173da7aff1Smrgrm -f conftest.$ac_ext
38183da7aff1SmrgEXEEXT=$ac_cv_exeext
38193da7aff1Smrgac_exeext=$EXEEXT
3820e531b1a7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821e531b1a7Smrg/* end confdefs.h.  */
3822e531b1a7Smrg#include <stdio.h>
3823e531b1a7Smrgint
38243a99fc18Smrgmain (void)
3825e531b1a7Smrg{
3826e531b1a7SmrgFILE *f = fopen ("conftest.out", "w");
3827e531b1a7Smrg return ferror (f) || fclose (f) != 0;
3828e531b1a7Smrg
3829e531b1a7Smrg  ;
3830e531b1a7Smrg  return 0;
3831e531b1a7Smrg}
38323da7aff1Smrg_ACEOF
3833e531b1a7Smrgac_clean_files="$ac_clean_files conftest.out"
3834e531b1a7Smrg# Check that the compiler produces executables we can run.  If not, either
3835e531b1a7Smrg# the compiler is broken, or we cross compile.
38363a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
38373a99fc18Smrgprintf %s "checking whether we are cross compiling... " >&6; }
3838e531b1a7Smrgif test "$cross_compiling" != yes; then
3839e531b1a7Smrg  { { ac_try="$ac_link"
3840e531b1a7Smrgcase "(($ac_try" in
3841e531b1a7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842e531b1a7Smrg  *) ac_try_echo=$ac_try;;
3843e531b1a7Smrgesac
3844e531b1a7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
38453a99fc18Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3846e531b1a7Smrg  (eval "$ac_link") 2>&5
3847e531b1a7Smrg  ac_status=$?
38483a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849e531b1a7Smrg  test $ac_status = 0; }
3850e531b1a7Smrg  if { ac_try='./conftest$ac_cv_exeext'
3851e531b1a7Smrg  { { case "(($ac_try" in
3852e531b1a7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853e531b1a7Smrg  *) ac_try_echo=$ac_try;;
3854e531b1a7Smrgesac
3855e531b1a7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
38563a99fc18Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3857e531b1a7Smrg  (eval "$ac_try") 2>&5
3858e531b1a7Smrg  ac_status=$?
38593a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860e531b1a7Smrg  test $ac_status = 0; }; }; then
3861e531b1a7Smrg    cross_compiling=no
3862e531b1a7Smrg  else
3863e531b1a7Smrg    if test "$cross_compiling" = maybe; then
3864e531b1a7Smrg	cross_compiling=yes
3865e531b1a7Smrg    else
38663a99fc18Smrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38673a99fc18Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
38683a99fc18Smrgas_fn_error 77 "cannot run C compiled programs.
3869e531b1a7SmrgIf you meant to cross compile, use \`--host'.
3870f9d592e5SmrgSee \`config.log' for more details" "$LINENO" 5; }
3871e531b1a7Smrg    fi
3872e531b1a7Smrg  fi
3873e531b1a7Smrgfi
38743a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
38753a99fc18Smrgprintf "%s\n" "$cross_compiling" >&6; }
3876e531b1a7Smrg
3877e531b1a7Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3878e531b1a7Smrgac_clean_files=$ac_clean_files_save
38793a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
38803a99fc18Smrgprintf %s "checking for suffix of object files... " >&6; }
38813a99fc18Smrgif test ${ac_cv_objext+y}
38823a99fc18Smrgthen :
38833a99fc18Smrg  printf %s "(cached) " >&6
38843a99fc18Smrgelse $as_nop
3885e531b1a7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38863da7aff1Smrg/* end confdefs.h.  */
38873da7aff1Smrg
38883da7aff1Smrgint
38893a99fc18Smrgmain (void)
38903da7aff1Smrg{
38913da7aff1Smrg
38923da7aff1Smrg  ;
38933da7aff1Smrg  return 0;
38943da7aff1Smrg}
38953da7aff1Smrg_ACEOF
38963da7aff1Smrgrm -f conftest.o conftest.obj
3897e531b1a7Smrgif { { ac_try="$ac_compile"
3898e531b1a7Smrgcase "(($ac_try" in
3899e531b1a7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900e531b1a7Smrg  *) ac_try_echo=$ac_try;;
3901e531b1a7Smrgesac
3902e531b1a7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
39033a99fc18Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3904e531b1a7Smrg  (eval "$ac_compile") 2>&5
39053da7aff1Smrg  ac_status=$?
39063a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39073a99fc18Smrg  test $ac_status = 0; }
39083a99fc18Smrgthen :
3909e531b1a7Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
3910e531b1a7Smrg  test -f "$ac_file" || continue;
39113da7aff1Smrg  case $ac_file in
3912e531b1a7Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
39133da7aff1Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
39143da7aff1Smrg       break;;
39153da7aff1Smrg  esac
39163da7aff1Smrgdone
39173a99fc18Smrgelse $as_nop
39183a99fc18Smrg  printf "%s\n" "$as_me: failed program was:" >&5
39193da7aff1Smrgsed 's/^/| /' conftest.$ac_ext >&5
39203da7aff1Smrg
39213a99fc18Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39223a99fc18Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3923f9d592e5Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3924f9d592e5SmrgSee \`config.log' for more details" "$LINENO" 5; }
39253da7aff1Smrgfi
39263da7aff1Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
39273da7aff1Smrgfi
39283a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
39293a99fc18Smrgprintf "%s\n" "$ac_cv_objext" >&6; }
39303da7aff1SmrgOBJEXT=$ac_cv_objext
39313da7aff1Smrgac_objext=$OBJEXT
39323a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
39333a99fc18Smrgprintf %s "checking whether the compiler supports GNU C... " >&6; }
39343a99fc18Smrgif test ${ac_cv_c_compiler_gnu+y}
39353a99fc18Smrgthen :
39363a99fc18Smrg  printf %s "(cached) " >&6
39373a99fc18Smrgelse $as_nop
3938e531b1a7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39393da7aff1Smrg/* end confdefs.h.  */
39403da7aff1Smrg
39413da7aff1Smrgint
39423a99fc18Smrgmain (void)
39433da7aff1Smrg{
39443da7aff1Smrg#ifndef __GNUC__
39453da7aff1Smrg       choke me
39463da7aff1Smrg#endif
39473da7aff1Smrg
39483da7aff1Smrg  ;
39493da7aff1Smrg  return 0;
39503da7aff1Smrg}
39513da7aff1Smrg_ACEOF
39523a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
39533a99fc18Smrgthen :
39543da7aff1Smrg  ac_compiler_gnu=yes
39553a99fc18Smrgelse $as_nop
3956e531b1a7Smrg  ac_compiler_gnu=no
39573da7aff1Smrgfi
39583a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39593da7aff1Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
39603da7aff1Smrg
39613da7aff1Smrgfi
39623a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
39633a99fc18Smrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
39643a99fc18Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
39653a99fc18Smrg
3966e531b1a7Smrgif test $ac_compiler_gnu = yes; then
3967e531b1a7Smrg  GCC=yes
3968e531b1a7Smrgelse
3969e531b1a7Smrg  GCC=
3970e531b1a7Smrgfi
39713a99fc18Smrgac_test_CFLAGS=${CFLAGS+y}
39723da7aff1Smrgac_save_CFLAGS=$CFLAGS
39733a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
39743a99fc18Smrgprintf %s "checking whether $CC accepts -g... " >&6; }
39753a99fc18Smrgif test ${ac_cv_prog_cc_g+y}
39763a99fc18Smrgthen :
39773a99fc18Smrg  printf %s "(cached) " >&6
39783a99fc18Smrgelse $as_nop
3979e531b1a7Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
3980e531b1a7Smrg   ac_c_werror_flag=yes
3981e531b1a7Smrg   ac_cv_prog_cc_g=no
3982e531b1a7Smrg   CFLAGS="-g"
3983e531b1a7Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39843da7aff1Smrg/* end confdefs.h.  */
39853da7aff1Smrg
39863da7aff1Smrgint
39873a99fc18Smrgmain (void)
39883da7aff1Smrg{
39893da7aff1Smrg
39903da7aff1Smrg  ;
39913da7aff1Smrg  return 0;
39923da7aff1Smrg}
39933da7aff1Smrg_ACEOF
39943a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
39953a99fc18Smrgthen :
39963da7aff1Smrg  ac_cv_prog_cc_g=yes
39973a99fc18Smrgelse $as_nop
3998e531b1a7Smrg  CFLAGS=""
3999e531b1a7Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000e531b1a7Smrg/* end confdefs.h.  */
4001e531b1a7Smrg
4002e531b1a7Smrgint
40033a99fc18Smrgmain (void)
4004e531b1a7Smrg{
4005e531b1a7Smrg
4006e531b1a7Smrg  ;
4007e531b1a7Smrg  return 0;
4008e531b1a7Smrg}
4009e531b1a7Smrg_ACEOF
40103a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
40113a99fc18Smrgthen :
4012e531b1a7Smrg
40133a99fc18Smrgelse $as_nop
4014e531b1a7Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
4015e531b1a7Smrg	 CFLAGS="-g"
4016e531b1a7Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017e531b1a7Smrg/* end confdefs.h.  */
4018e531b1a7Smrg
4019e531b1a7Smrgint
40203a99fc18Smrgmain (void)
4021e531b1a7Smrg{
40223da7aff1Smrg
4023e531b1a7Smrg  ;
4024e531b1a7Smrg  return 0;
4025e531b1a7Smrg}
4026e531b1a7Smrg_ACEOF
40273a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
40283a99fc18Smrgthen :
4029e531b1a7Smrg  ac_cv_prog_cc_g=yes
4030e531b1a7Smrgfi
40313a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40323da7aff1Smrgfi
40333a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40343da7aff1Smrgfi
40353a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4036e531b1a7Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
4037e531b1a7Smrgfi
40383a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
40393a99fc18Smrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
40403a99fc18Smrgif test $ac_test_CFLAGS; then
40413da7aff1Smrg  CFLAGS=$ac_save_CFLAGS
40423da7aff1Smrgelif test $ac_cv_prog_cc_g = yes; then
40433da7aff1Smrg  if test "$GCC" = yes; then
40443da7aff1Smrg    CFLAGS="-g -O2"
40453da7aff1Smrg  else
40463da7aff1Smrg    CFLAGS="-g"
40473da7aff1Smrg  fi
40483da7aff1Smrgelse
40493da7aff1Smrg  if test "$GCC" = yes; then
40503da7aff1Smrg    CFLAGS="-O2"
40513da7aff1Smrg  else
40523da7aff1Smrg    CFLAGS=
40533da7aff1Smrg  fi
40543da7aff1Smrgfi
40553a99fc18Smrgac_prog_cc_stdc=no
40563a99fc18Smrgif test x$ac_prog_cc_stdc = xno
40573a99fc18Smrgthen :
40583a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
40593a99fc18Smrgprintf %s "checking for $CC option to enable C11 features... " >&6; }
40603a99fc18Smrgif test ${ac_cv_prog_cc_c11+y}
40613a99fc18Smrgthen :
40623a99fc18Smrg  printf %s "(cached) " >&6
40633a99fc18Smrgelse $as_nop
40643a99fc18Smrg  ac_cv_prog_cc_c11=no
40653da7aff1Smrgac_save_CC=$CC
4066e531b1a7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
40673da7aff1Smrg/* end confdefs.h.  */
40683a99fc18Smrg$ac_c_conftest_c11_program
40693a99fc18Smrg_ACEOF
40703a99fc18Smrgfor ac_arg in '' -std=gnu11
40713a99fc18Smrgdo
40723a99fc18Smrg  CC="$ac_save_CC $ac_arg"
40733a99fc18Smrg  if ac_fn_c_try_compile "$LINENO"
40743a99fc18Smrgthen :
40753a99fc18Smrg  ac_cv_prog_cc_c11=$ac_arg
40763a99fc18Smrgfi
40773a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
40783a99fc18Smrg  test "x$ac_cv_prog_cc_c11" != "xno" && break
40793a99fc18Smrgdone
40803a99fc18Smrgrm -f conftest.$ac_ext
40813a99fc18SmrgCC=$ac_save_CC
40823a99fc18Smrgfi
40833da7aff1Smrg
40843a99fc18Smrgif test "x$ac_cv_prog_cc_c11" = xno
40853a99fc18Smrgthen :
40863a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
40873a99fc18Smrgprintf "%s\n" "unsupported" >&6; }
40883a99fc18Smrgelse $as_nop
40893a99fc18Smrg  if test "x$ac_cv_prog_cc_c11" = x
40903a99fc18Smrgthen :
40913a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
40923a99fc18Smrgprintf "%s\n" "none needed" >&6; }
40933a99fc18Smrgelse $as_nop
40943a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
40953a99fc18Smrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
40963a99fc18Smrg     CC="$CC $ac_cv_prog_cc_c11"
40973a99fc18Smrgfi
40983a99fc18Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
40993a99fc18Smrg  ac_prog_cc_stdc=c11
41003a99fc18Smrgfi
41013a99fc18Smrgfi
41023a99fc18Smrgif test x$ac_prog_cc_stdc = xno
41033a99fc18Smrgthen :
41043a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
41053a99fc18Smrgprintf %s "checking for $CC option to enable C99 features... " >&6; }
41063a99fc18Smrgif test ${ac_cv_prog_cc_c99+y}
41073a99fc18Smrgthen :
41083a99fc18Smrg  printf %s "(cached) " >&6
41093a99fc18Smrgelse $as_nop
41103a99fc18Smrg  ac_cv_prog_cc_c99=no
41113a99fc18Smrgac_save_CC=$CC
41123a99fc18Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
41133a99fc18Smrg/* end confdefs.h.  */
41143a99fc18Smrg$ac_c_conftest_c99_program
41153a99fc18Smrg_ACEOF
41163a99fc18Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
41173a99fc18Smrgdo
41183a99fc18Smrg  CC="$ac_save_CC $ac_arg"
41193a99fc18Smrg  if ac_fn_c_try_compile "$LINENO"
41203a99fc18Smrgthen :
41213a99fc18Smrg  ac_cv_prog_cc_c99=$ac_arg
41223a99fc18Smrgfi
41233a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
41243a99fc18Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
41253a99fc18Smrgdone
41263a99fc18Smrgrm -f conftest.$ac_ext
41273a99fc18SmrgCC=$ac_save_CC
41283a99fc18Smrgfi
4129e531b1a7Smrg
41303a99fc18Smrgif test "x$ac_cv_prog_cc_c99" = xno
41313a99fc18Smrgthen :
41323a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
41333a99fc18Smrgprintf "%s\n" "unsupported" >&6; }
41343a99fc18Smrgelse $as_nop
41353a99fc18Smrg  if test "x$ac_cv_prog_cc_c99" = x
41363a99fc18Smrgthen :
41373a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
41383a99fc18Smrgprintf "%s\n" "none needed" >&6; }
41393a99fc18Smrgelse $as_nop
41403a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
41413a99fc18Smrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
41423a99fc18Smrg     CC="$CC $ac_cv_prog_cc_c99"
41433a99fc18Smrgfi
41443a99fc18Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
41453a99fc18Smrg  ac_prog_cc_stdc=c99
41463a99fc18Smrgfi
41473a99fc18Smrgfi
41483a99fc18Smrgif test x$ac_prog_cc_stdc = xno
41493a99fc18Smrgthen :
41503a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
41513a99fc18Smrgprintf %s "checking for $CC option to enable C89 features... " >&6; }
41523a99fc18Smrgif test ${ac_cv_prog_cc_c89+y}
41533a99fc18Smrgthen :
41543a99fc18Smrg  printf %s "(cached) " >&6
41553a99fc18Smrgelse $as_nop
41563a99fc18Smrg  ac_cv_prog_cc_c89=no
41573a99fc18Smrgac_save_CC=$CC
41583a99fc18Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
41593a99fc18Smrg/* end confdefs.h.  */
41603a99fc18Smrg$ac_c_conftest_c89_program
41613da7aff1Smrg_ACEOF
41623a99fc18Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
41633da7aff1Smrgdo
41643da7aff1Smrg  CC="$ac_save_CC $ac_arg"
41653a99fc18Smrg  if ac_fn_c_try_compile "$LINENO"
41663a99fc18Smrgthen :
4167e531b1a7Smrg  ac_cv_prog_cc_c89=$ac_arg
41683da7aff1Smrgfi
41693a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4170e531b1a7Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
41713da7aff1Smrgdone
4172e531b1a7Smrgrm -f conftest.$ac_ext
41733da7aff1SmrgCC=$ac_save_CC
41743da7aff1Smrgfi
41753da7aff1Smrg
41763a99fc18Smrgif test "x$ac_cv_prog_cc_c89" = xno
41773a99fc18Smrgthen :
41783a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
41793a99fc18Smrgprintf "%s\n" "unsupported" >&6; }
41803a99fc18Smrgelse $as_nop
41813a99fc18Smrg  if test "x$ac_cv_prog_cc_c89" = x
41823a99fc18Smrgthen :
41833a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
41843a99fc18Smrgprintf "%s\n" "none needed" >&6; }
41853a99fc18Smrgelse $as_nop
41863a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
41873a99fc18Smrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
41883a99fc18Smrg     CC="$CC $ac_cv_prog_cc_c89"
41893a99fc18Smrgfi
41903a99fc18Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
41913a99fc18Smrg  ac_prog_cc_stdc=c89
41923a99fc18Smrgfi
41933da7aff1Smrgfi
41943da7aff1Smrg
41953da7aff1Smrgac_ext=c
41963da7aff1Smrgac_cpp='$CPP $CPPFLAGS'
41973da7aff1Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41983da7aff1Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41993da7aff1Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
42003da7aff1Smrg
42013a99fc18Smrg
42023a99fc18Smrg  ac_ext=c
42033e999d35Smrgac_cpp='$CPP $CPPFLAGS'
42043e999d35Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42053e999d35Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42063e999d35Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
42073a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
42083a99fc18Smrgprintf %s "checking whether $CC understands -c and -o together... " >&6; }
42093a99fc18Smrgif test ${am_cv_prog_cc_c_o+y}
42103a99fc18Smrgthen :
42113a99fc18Smrg  printf %s "(cached) " >&6
42123a99fc18Smrgelse $as_nop
42133e999d35Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42143e999d35Smrg/* end confdefs.h.  */
42153e999d35Smrg
42163e999d35Smrgint
42173a99fc18Smrgmain (void)
42183e999d35Smrg{
42193e999d35Smrg
42203e999d35Smrg  ;
42213e999d35Smrg  return 0;
42223e999d35Smrg}
42233e999d35Smrg_ACEOF
42243e999d35Smrg  # Make sure it works both with $CC and with simple cc.
42253e999d35Smrg  # Following AC_PROG_CC_C_O, we do the test twice because some
42263e999d35Smrg  # compilers refuse to overwrite an existing .o file with -o,
42273e999d35Smrg  # though they will create one.
42283e999d35Smrg  am_cv_prog_cc_c_o=yes
42293e999d35Smrg  for am_i in 1 2; do
42303e999d35Smrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
42313e999d35Smrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
42323e999d35Smrg   ac_status=$?
42333e999d35Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42343e999d35Smrg   (exit $ac_status); } \
42353e999d35Smrg         && test -f conftest2.$ac_objext; then
42363e999d35Smrg      : OK
42373e999d35Smrg    else
42383e999d35Smrg      am_cv_prog_cc_c_o=no
42393e999d35Smrg      break
42403e999d35Smrg    fi
42413e999d35Smrg  done
42423e999d35Smrg  rm -f core conftest*
42433e999d35Smrg  unset am_i
42443e999d35Smrgfi
42453a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
42463a99fc18Smrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
42473e999d35Smrgif test "$am_cv_prog_cc_c_o" != yes; then
42483e999d35Smrg   # Losing compiler, so override with the script.
42493e999d35Smrg   # FIXME: It is wrong to rewrite CC.
42503e999d35Smrg   # But if we don't then we get into trouble of one sort or another.
42513e999d35Smrg   # A longer-term fix would be to have automake use am__CC in this case,
42523e999d35Smrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
42533e999d35Smrg   CC="$am_aux_dir/compile $CC"
42543e999d35Smrgfi
42553e999d35Smrgac_ext=c
42563e999d35Smrgac_cpp='$CPP $CPPFLAGS'
42573e999d35Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42583e999d35Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42593e999d35Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
42603e999d35Smrg
42613e999d35Smrg
42623da7aff1Smrgdepcc="$CC"   am_compiler_list=
42633da7aff1Smrg
42643a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
42653a99fc18Smrgprintf %s "checking dependency style of $depcc... " >&6; }
42663a99fc18Smrgif test ${am_cv_CC_dependencies_compiler_type+y}
42673a99fc18Smrgthen :
42683a99fc18Smrg  printf %s "(cached) " >&6
42693a99fc18Smrgelse $as_nop
42703da7aff1Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
42713da7aff1Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
42723da7aff1Smrg  # making bogus files that we don't know about and never remove.  For
42733da7aff1Smrg  # instance it was reported that on HP-UX the gcc test will end up
42743e999d35Smrg  # making a dummy file named 'D' -- because '-MD' means "put the output
42753e999d35Smrg  # in D".
42763e999d35Smrg  rm -rf conftest.dir
42773da7aff1Smrg  mkdir conftest.dir
42783da7aff1Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
42793da7aff1Smrg  # using a relative directory.
42803da7aff1Smrg  cp "$am_depcomp" conftest.dir
42813da7aff1Smrg  cd conftest.dir
42823da7aff1Smrg  # We will build objects and dependencies in a subdirectory because
42833da7aff1Smrg  # it helps to detect inapplicable dependency modes.  For instance
42843da7aff1Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
42853da7aff1Smrg  # side effect of compilation, but ICC will put the dependencies in
42863da7aff1Smrg  # the current directory while Tru64 will put them in the object
42873da7aff1Smrg  # directory.
42883da7aff1Smrg  mkdir sub
42893da7aff1Smrg
42903da7aff1Smrg  am_cv_CC_dependencies_compiler_type=none
42913da7aff1Smrg  if test "$am_compiler_list" = ""; then
42923da7aff1Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
42933da7aff1Smrg  fi
4294e531b1a7Smrg  am__universal=false
4295e531b1a7Smrg  case " $depcc " in #(
4296e531b1a7Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4297e531b1a7Smrg     esac
4298e531b1a7Smrg
42993da7aff1Smrg  for depmode in $am_compiler_list; do
43003da7aff1Smrg    # Setup a source with many dependencies, because some compilers
43013da7aff1Smrg    # like to wrap large dependency lists on column 80 (with \), and
43023da7aff1Smrg    # we should not choose a depcomp mode which is confused by this.
43033da7aff1Smrg    #
43043da7aff1Smrg    # We need to recreate these files for each test, as the compiler may
43053da7aff1Smrg    # overwrite some of them when testing with obscure command lines.
43063da7aff1Smrg    # This happens at least with the AIX C compiler.
43073da7aff1Smrg    : > sub/conftest.c
43083da7aff1Smrg    for i in 1 2 3 4 5 6; do
43093da7aff1Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
43103e999d35Smrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
43113e999d35Smrg      # Solaris 10 /bin/sh.
43123e999d35Smrg      echo '/* dummy */' > sub/conftst$i.h
43133da7aff1Smrg    done
43143da7aff1Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
43153da7aff1Smrg
43163e999d35Smrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4317e531b1a7Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
43183e999d35Smrg    # handle '-M -o', and we need to detect this.  Also, some Intel
43193e999d35Smrg    # versions had trouble with output in subdirs.
4320e531b1a7Smrg    am__obj=sub/conftest.${OBJEXT-o}
4321e531b1a7Smrg    am__minus_obj="-o $am__obj"
43223da7aff1Smrg    case $depmode in
4323e531b1a7Smrg    gcc)
4324e531b1a7Smrg      # This depmode causes a compiler race in universal mode.
4325e531b1a7Smrg      test "$am__universal" = false || continue
4326e531b1a7Smrg      ;;
43273da7aff1Smrg    nosideeffect)
43283e999d35Smrg      # After this tag, mechanisms are not by side-effect, so they'll
43293e999d35Smrg      # only be used when explicitly requested.
43303da7aff1Smrg      if test "x$enable_dependency_tracking" = xyes; then
43313da7aff1Smrg	continue
43323da7aff1Smrg      else
43333da7aff1Smrg	break
43343da7aff1Smrg      fi
43353da7aff1Smrg      ;;
43363e999d35Smrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
43373e999d35Smrg      # This compiler won't grok '-c -o', but also, the minuso test has
4338e531b1a7Smrg      # not run yet.  These depmodes are late enough in the game, and
4339e531b1a7Smrg      # so weak that their functioning should not be impacted.
4340e531b1a7Smrg      am__obj=conftest.${OBJEXT-o}
4341e531b1a7Smrg      am__minus_obj=
4342e531b1a7Smrg      ;;
43433da7aff1Smrg    none) break ;;
43443da7aff1Smrg    esac
43453da7aff1Smrg    if depmode=$depmode \
4346e531b1a7Smrg       source=sub/conftest.c object=$am__obj \
43473da7aff1Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4348e531b1a7Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
43493da7aff1Smrg         >/dev/null 2>conftest.err &&
4350e531b1a7Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
43513da7aff1Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4352e531b1a7Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
43533da7aff1Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
43543da7aff1Smrg      # icc doesn't choke on unknown options, it will just issue warnings
4355e531b1a7Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
4356e531b1a7Smrg      # that says an option was ignored or not supported.
4357e531b1a7Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
4358e531b1a7Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
4359e531b1a7Smrg      # The diagnosis changed in icc 8.0:
4360e531b1a7Smrg      #   icc: Command line remark: option '-MP' not supported
4361e531b1a7Smrg      if (grep 'ignoring option' conftest.err ||
4362e531b1a7Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
43633da7aff1Smrg        am_cv_CC_dependencies_compiler_type=$depmode
43643da7aff1Smrg        break
43653da7aff1Smrg      fi
43663da7aff1Smrg    fi
43673da7aff1Smrg  done
43683da7aff1Smrg
43693da7aff1Smrg  cd ..
43703da7aff1Smrg  rm -rf conftest.dir
43713da7aff1Smrgelse
43723da7aff1Smrg  am_cv_CC_dependencies_compiler_type=none
43733da7aff1Smrgfi
43743da7aff1Smrg
43753da7aff1Smrgfi
43763a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
43773a99fc18Smrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
43783da7aff1SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
43793da7aff1Smrg
4380e531b1a7Smrg if
43813da7aff1Smrg  test "x$enable_dependency_tracking" != xno \
43823da7aff1Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
43833da7aff1Smrg  am__fastdepCC_TRUE=
43843da7aff1Smrg  am__fastdepCC_FALSE='#'
43853da7aff1Smrgelse
43863da7aff1Smrg  am__fastdepCC_TRUE='#'
43873da7aff1Smrg  am__fastdepCC_FALSE=
43883da7aff1Smrgfi
43893da7aff1Smrg
43903da7aff1Smrg
43913a99fc18Smrg
43923a99fc18Smrg
43933a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
43943a99fc18Smrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
43953a99fc18Smrgif test ${ac_cv_c_undeclared_builtin_options+y}
43963a99fc18Smrgthen :
43973a99fc18Smrg  printf %s "(cached) " >&6
43983a99fc18Smrgelse $as_nop
43993a99fc18Smrg  ac_save_CFLAGS=$CFLAGS
44003a99fc18Smrg   ac_cv_c_undeclared_builtin_options='cannot detect'
44013a99fc18Smrg   for ac_arg in '' -fno-builtin; do
44023a99fc18Smrg     CFLAGS="$ac_save_CFLAGS $ac_arg"
44033a99fc18Smrg     # This test program should *not* compile successfully.
44043a99fc18Smrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405f9d592e5Smrg/* end confdefs.h.  */
4406f9d592e5Smrg
44073a99fc18Smrgint
44083a99fc18Smrgmain (void)
4409f9d592e5Smrg{
44103a99fc18Smrg(void) strchr;
44113a99fc18Smrg  ;
44123a99fc18Smrg  return 0;
4413f9d592e5Smrg}
44143a99fc18Smrg_ACEOF
44153a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
44163a99fc18Smrgthen :
4417f9d592e5Smrg
44183a99fc18Smrgelse $as_nop
44193a99fc18Smrg  # This test program should compile successfully.
44203a99fc18Smrg        # No library function is consistently available on
44213a99fc18Smrg        # freestanding implementations, so test against a dummy
44223a99fc18Smrg        # declaration.  Include always-available headers on the
44233a99fc18Smrg        # off chance that they somehow elicit warnings.
44243a99fc18Smrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44253a99fc18Smrg/* end confdefs.h.  */
44263a99fc18Smrg#include <float.h>
44273a99fc18Smrg#include <limits.h>
44283a99fc18Smrg#include <stdarg.h>
44293a99fc18Smrg#include <stddef.h>
44303a99fc18Smrgextern void ac_decl (int, char *);
4431f9d592e5Smrg
44323a99fc18Smrgint
44333a99fc18Smrgmain (void)
4434f9d592e5Smrg{
44353a99fc18Smrg(void) ac_decl (0, (char *) 0);
44363a99fc18Smrg  (void) ac_decl;
4437f9d592e5Smrg
4438f9d592e5Smrg  ;
4439f9d592e5Smrg  return 0;
44403a99fc18Smrg}
44413a99fc18Smrg_ACEOF
44423a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
44433a99fc18Smrgthen :
44443a99fc18Smrg  if test x"$ac_arg" = x
44453a99fc18Smrgthen :
44463a99fc18Smrg  ac_cv_c_undeclared_builtin_options='none needed'
44473a99fc18Smrgelse $as_nop
44483a99fc18Smrg  ac_cv_c_undeclared_builtin_options=$ac_arg
4449e531b1a7Smrgfi
44503a99fc18Smrg          break
4451e531b1a7Smrgfi
44523a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4453e531b1a7Smrgfi
44543a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
44553a99fc18Smrg    done
44563a99fc18Smrg    CFLAGS=$ac_save_CFLAGS
44573a99fc18Smrg
44583a99fc18Smrgfi
44593a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
44603a99fc18Smrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
44613a99fc18Smrg  case $ac_cv_c_undeclared_builtin_options in #(
44623a99fc18Smrg  'cannot detect') :
44633a99fc18Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
44643a99fc18Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
44653a99fc18Smrgas_fn_error $? "cannot make $CC report undeclared builtins
44663a99fc18SmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #(
44673a99fc18Smrg  'none needed') :
44683a99fc18Smrg    ac_c_undeclared_builtin_options='' ;; #(
44693a99fc18Smrg  *) :
44703a99fc18Smrg    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
44713a99fc18Smrgesac
4472e531b1a7Smrg
44733a99fc18Smrgac_header= ac_cache=
44743a99fc18Smrgfor ac_item in $ac_header_c_list
44753a99fc18Smrgdo
44763a99fc18Smrg  if test $ac_cache; then
44773a99fc18Smrg    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
44783a99fc18Smrg    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
44793a99fc18Smrg      printf "%s\n" "#define $ac_item 1" >> confdefs.h
44803a99fc18Smrg    fi
44813a99fc18Smrg    ac_header= ac_cache=
44823a99fc18Smrg  elif test $ac_header; then
44833a99fc18Smrg    ac_cache=$ac_item
44843a99fc18Smrg  else
44853a99fc18Smrg    ac_header=$ac_item
44863a99fc18Smrg  fi
44873a99fc18Smrgdone
4488e531b1a7Smrg
4489e531b1a7Smrg
4490e531b1a7Smrg
4491e531b1a7Smrg
4492e531b1a7Smrg
4493e531b1a7Smrg
4494f9d592e5Smrg
4495f9d592e5Smrg
44963a99fc18Smrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
44973a99fc18Smrgthen :
44983fe82118Smrg
44993a99fc18Smrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
45003fe82118Smrg
45013a99fc18Smrgfi
45023a99fc18Smrg
45033a99fc18Smrg
45043a99fc18Smrg
45053a99fc18Smrg
45063a99fc18Smrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
45073a99fc18Smrgif test "x$ac_cv_have_decl___clang__" = xyes
45083a99fc18Smrgthen :
45093fe82118Smrg  CLANGCC="yes"
45103a99fc18Smrgelse $as_nop
45113fe82118Smrg  CLANGCC="no"
45123fe82118Smrgfi
45133a99fc18Smrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
45143a99fc18Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
45153a99fc18Smrgthen :
45163fe82118Smrg  INTELCC="yes"
45173a99fc18Smrgelse $as_nop
45183fe82118Smrg  INTELCC="no"
45193fe82118Smrgfi
45203a99fc18Smrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
45213a99fc18Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes
45223a99fc18Smrgthen :
45233fe82118Smrg  SUNCC="yes"
45243a99fc18Smrgelse $as_nop
45253fe82118Smrg  SUNCC="no"
45263fe82118Smrgfi
45273fe82118Smrg
45283fe82118Smrg
45293fe82118Smrg
45303fe82118Smrg
45313e999d35Smrg
45323e999d35Smrg
45333e999d35Smrg
45343e999d35Smrg
4535f9d592e5Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4536f9d592e5Smrg	if test -n "$ac_tool_prefix"; then
4537f9d592e5Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4538f9d592e5Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
45393a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
45403a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
45413a99fc18Smrgif test ${ac_cv_path_PKG_CONFIG+y}
45423a99fc18Smrgthen :
45433a99fc18Smrg  printf %s "(cached) " >&6
45443a99fc18Smrgelse $as_nop
4545f9d592e5Smrg  case $PKG_CONFIG in
4546f9d592e5Smrg  [\\/]* | ?:[\\/]*)
4547f9d592e5Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4548f9d592e5Smrg  ;;
4549f9d592e5Smrg  *)
4550f9d592e5Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551f9d592e5Smrgfor as_dir in $PATH
4552f9d592e5Smrgdo
4553f9d592e5Smrg  IFS=$as_save_IFS
45543a99fc18Smrg  case $as_dir in #(((
45553a99fc18Smrg    '') as_dir=./ ;;
45563a99fc18Smrg    */) ;;
45573a99fc18Smrg    *) as_dir=$as_dir/ ;;
45583a99fc18Smrg  esac
4559f9d592e5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
45603a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
45613a99fc18Smrg    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
45623a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4563f9d592e5Smrg    break 2
4564f9d592e5Smrg  fi
4565f9d592e5Smrgdone
4566f9d592e5Smrg  done
4567f9d592e5SmrgIFS=$as_save_IFS
4568e531b1a7Smrg
4569e531b1a7Smrg  ;;
4570e531b1a7Smrgesac
4571e531b1a7Smrgfi
4572e531b1a7SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4573e531b1a7Smrgif test -n "$PKG_CONFIG"; then
45743a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
45753a99fc18Smrgprintf "%s\n" "$PKG_CONFIG" >&6; }
4576e531b1a7Smrgelse
45773a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45783a99fc18Smrgprintf "%s\n" "no" >&6; }
4579e531b1a7Smrgfi
4580e531b1a7Smrg
4581e531b1a7Smrg
4582e531b1a7Smrgfi
4583e531b1a7Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4584e531b1a7Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4585e531b1a7Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4586e531b1a7Smrgset dummy pkg-config; ac_word=$2
45873a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
45883a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
45893a99fc18Smrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
45903a99fc18Smrgthen :
45913a99fc18Smrg  printf %s "(cached) " >&6
45923a99fc18Smrgelse $as_nop
4593e531b1a7Smrg  case $ac_pt_PKG_CONFIG in
4594e531b1a7Smrg  [\\/]* | ?:[\\/]*)
4595e531b1a7Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4596e531b1a7Smrg  ;;
4597e531b1a7Smrg  *)
4598e531b1a7Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599e531b1a7Smrgfor as_dir in $PATH
4600e531b1a7Smrgdo
4601e531b1a7Smrg  IFS=$as_save_IFS
46023a99fc18Smrg  case $as_dir in #(((
46033a99fc18Smrg    '') as_dir=./ ;;
46043a99fc18Smrg    */) ;;
46053a99fc18Smrg    *) as_dir=$as_dir/ ;;
46063a99fc18Smrg  esac
4607e531b1a7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
46083a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
46093a99fc18Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
46103a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4611e531b1a7Smrg    break 2
4612e531b1a7Smrg  fi
4613e531b1a7Smrgdone
4614e531b1a7Smrg  done
4615e531b1a7SmrgIFS=$as_save_IFS
4616e531b1a7Smrg
4617e531b1a7Smrg  ;;
4618e531b1a7Smrgesac
4619e531b1a7Smrgfi
4620e531b1a7Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
46213da7aff1Smrgif test -n "$ac_pt_PKG_CONFIG"; then
46223a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
46233a99fc18Smrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
46243da7aff1Smrgelse
46253a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
46263a99fc18Smrgprintf "%s\n" "no" >&6; }
46273da7aff1Smrgfi
46283da7aff1Smrg
4629e531b1a7Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4630e531b1a7Smrg    PKG_CONFIG=""
4631e531b1a7Smrg  else
4632e531b1a7Smrg    case $cross_compiling:$ac_tool_warned in
4633e531b1a7Smrgyes:)
46343a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
46353a99fc18Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636e531b1a7Smrgac_tool_warned=yes ;;
4637e531b1a7Smrgesac
4638e531b1a7Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4639e531b1a7Smrg  fi
46403da7aff1Smrgelse
46413da7aff1Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
46423da7aff1Smrgfi
46433da7aff1Smrg
46443da7aff1Smrgfi
46453da7aff1Smrgif test -n "$PKG_CONFIG"; then
46463da7aff1Smrg	_pkg_min_version=0.9.0
46473a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
46483a99fc18Smrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
46493da7aff1Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
46503a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46513a99fc18Smrgprintf "%s\n" "yes" >&6; }
46523da7aff1Smrg	else
46533a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
46543a99fc18Smrgprintf "%s\n" "no" >&6; }
46553da7aff1Smrg		PKG_CONFIG=""
46563da7aff1Smrg	fi
46573da7aff1Smrgfi
4658e531b1a7Smrg
46593a99fc18Smrg
46603a99fc18Smrg  # Make sure we can run config.sub.
46613a99fc18Smrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
46623a99fc18Smrg  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
46633a99fc18Smrg
46643a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
46653a99fc18Smrgprintf %s "checking build system type... " >&6; }
46663a99fc18Smrgif test ${ac_cv_build+y}
46673a99fc18Smrgthen :
46683a99fc18Smrg  printf %s "(cached) " >&6
46693a99fc18Smrgelse $as_nop
4670e531b1a7Smrg  ac_build_alias=$build_alias
4671e531b1a7Smrgtest "x$ac_build_alias" = x &&
46723a99fc18Smrg  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4673e531b1a7Smrgtest "x$ac_build_alias" = x &&
4674f9d592e5Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
46753a99fc18Smrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
46763a99fc18Smrg  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4677e531b1a7Smrg
4678e531b1a7Smrgfi
46793a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
46803a99fc18Smrgprintf "%s\n" "$ac_cv_build" >&6; }
4681e531b1a7Smrgcase $ac_cv_build in
4682e531b1a7Smrg*-*-*) ;;
4683f9d592e5Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4684e531b1a7Smrgesac
4685e531b1a7Smrgbuild=$ac_cv_build
4686e531b1a7Smrgac_save_IFS=$IFS; IFS='-'
4687e531b1a7Smrgset x $ac_cv_build
4688e531b1a7Smrgshift
4689e531b1a7Smrgbuild_cpu=$1
4690e531b1a7Smrgbuild_vendor=$2
4691e531b1a7Smrgshift; shift
4692e531b1a7Smrg# Remember, the first character of IFS is used to create $*,
4693e531b1a7Smrg# except with old shells:
4694e531b1a7Smrgbuild_os=$*
4695e531b1a7SmrgIFS=$ac_save_IFS
4696e531b1a7Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4697e531b1a7Smrg
46983da7aff1Smrg
46993a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
47003a99fc18Smrgprintf %s "checking host system type... " >&6; }
47013a99fc18Smrgif test ${ac_cv_host+y}
47023a99fc18Smrgthen :
47033a99fc18Smrg  printf %s "(cached) " >&6
47043a99fc18Smrgelse $as_nop
4705e531b1a7Smrg  if test "x$host_alias" = x; then
4706e531b1a7Smrg  ac_cv_host=$ac_cv_build
4707e531b1a7Smrgelse
47083a99fc18Smrg  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
47093a99fc18Smrg    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4710e531b1a7Smrgfi
47113da7aff1Smrg
4712e531b1a7Smrgfi
47133a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
47143a99fc18Smrgprintf "%s\n" "$ac_cv_host" >&6; }
4715e531b1a7Smrgcase $ac_cv_host in
4716e531b1a7Smrg*-*-*) ;;
4717f9d592e5Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4718e531b1a7Smrgesac
4719e531b1a7Smrghost=$ac_cv_host
4720e531b1a7Smrgac_save_IFS=$IFS; IFS='-'
4721e531b1a7Smrgset x $ac_cv_host
4722e531b1a7Smrgshift
4723e531b1a7Smrghost_cpu=$1
4724e531b1a7Smrghost_vendor=$2
4725e531b1a7Smrgshift; shift
4726e531b1a7Smrg# Remember, the first character of IFS is used to create $*,
4727e531b1a7Smrg# except with old shells:
4728e531b1a7Smrghost_os=$*
4729e531b1a7SmrgIFS=$ac_save_IFS
4730e531b1a7Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
47313da7aff1Smrg
47323da7aff1Smrg
47333a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
47343a99fc18Smrgprintf %s "checking for a sed that does not truncate output... " >&6; }
47353a99fc18Smrgif test ${ac_cv_path_SED+y}
47363a99fc18Smrgthen :
47373a99fc18Smrg  printf %s "(cached) " >&6
47383a99fc18Smrgelse $as_nop
4739f9d592e5Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4740f9d592e5Smrg     for ac_i in 1 2 3 4 5 6 7; do
4741f9d592e5Smrg       ac_script="$ac_script$as_nl$ac_script"
4742f9d592e5Smrg     done
4743f9d592e5Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4744f9d592e5Smrg     { ac_script=; unset ac_script;}
4745f9d592e5Smrg     if test -z "$SED"; then
4746f9d592e5Smrg  ac_path_SED_found=false
4747f9d592e5Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4748f9d592e5Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749f9d592e5Smrgfor as_dir in $PATH
4750f9d592e5Smrgdo
4751f9d592e5Smrg  IFS=$as_save_IFS
47523a99fc18Smrg  case $as_dir in #(((
47533a99fc18Smrg    '') as_dir=./ ;;
47543a99fc18Smrg    */) ;;
47553a99fc18Smrg    *) as_dir=$as_dir/ ;;
47563a99fc18Smrg  esac
47573a99fc18Smrg    for ac_prog in sed gsed
47583a99fc18Smrg   do
4759f9d592e5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
47603a99fc18Smrg      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
47613e999d35Smrg      as_fn_executable_p "$ac_path_SED" || continue
4762f9d592e5Smrg# Check for GNU ac_path_SED and select it if it is found.
4763f9d592e5Smrg  # Check for GNU $ac_path_SED
4764f9d592e5Smrgcase `"$ac_path_SED" --version 2>&1` in
4765f9d592e5Smrg*GNU*)
4766f9d592e5Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4767f9d592e5Smrg*)
4768f9d592e5Smrg  ac_count=0
47693a99fc18Smrg  printf %s 0123456789 >"conftest.in"
4770f9d592e5Smrg  while :
4771f9d592e5Smrg  do
4772f9d592e5Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4773f9d592e5Smrg    mv "conftest.tmp" "conftest.in"
4774f9d592e5Smrg    cp "conftest.in" "conftest.nl"
47753a99fc18Smrg    printf "%s\n" '' >> "conftest.nl"
4776f9d592e5Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4777f9d592e5Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4778f9d592e5Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4779f9d592e5Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4780f9d592e5Smrg      # Best one so far, save it but keep looking for a better one
4781f9d592e5Smrg      ac_cv_path_SED="$ac_path_SED"
4782f9d592e5Smrg      ac_path_SED_max=$ac_count
4783f9d592e5Smrg    fi
4784f9d592e5Smrg    # 10*(2^10) chars as input seems more than enough
4785f9d592e5Smrg    test $ac_count -gt 10 && break
4786f9d592e5Smrg  done
4787f9d592e5Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4788f9d592e5Smrgesac
4789f9d592e5Smrg
4790f9d592e5Smrg      $ac_path_SED_found && break 3
4791f9d592e5Smrg    done
4792f9d592e5Smrg  done
4793f9d592e5Smrg  done
4794f9d592e5SmrgIFS=$as_save_IFS
4795f9d592e5Smrg  if test -z "$ac_cv_path_SED"; then
4796f9d592e5Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4797f9d592e5Smrg  fi
4798f9d592e5Smrgelse
4799f9d592e5Smrg  ac_cv_path_SED=$SED
4800f9d592e5Smrgfi
4801f9d592e5Smrg
4802f9d592e5Smrgfi
48033a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
48043a99fc18Smrgprintf "%s\n" "$ac_cv_path_SED" >&6; }
4805f9d592e5Smrg SED="$ac_cv_path_SED"
4806f9d592e5Smrg  rm -f conftest.sed
4807f9d592e5Smrg
4808f9d592e5Smrg
4809e531b1a7Smrg
4810e531b1a7Smrg
4811e531b1a7Smrg
48123fe82118Smrg
48133fe82118Smrg# Check whether --enable-selective-werror was given.
48143a99fc18Smrgif test ${enable_selective_werror+y}
48153a99fc18Smrgthen :
48163fe82118Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
48173a99fc18Smrgelse $as_nop
48183fe82118Smrg  SELECTIVE_WERROR=yes
48193da7aff1Smrgfi
4820e531b1a7Smrg
48213fe82118Smrg
48223fe82118Smrg
48233fe82118Smrg
48243fe82118Smrg
48253fe82118Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
48263fe82118Smrgif test "x$SUNCC" = "xyes"; then
48273fe82118Smrg    BASE_CFLAGS="-v"
48283fe82118Smrgelse
48293fe82118Smrg    BASE_CFLAGS=""
4830e531b1a7Smrgfi
4831e531b1a7Smrg
48323fe82118Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4833e531b1a7Smrg
4834e531b1a7Smrg
4835e531b1a7Smrg
4836e531b1a7Smrg
4837e531b1a7Smrg
4838e531b1a7Smrg
4839e531b1a7Smrg
48403fe82118Smrg
48413fe82118Smrg
48423fe82118Smrg
48433fe82118Smrg
48443fe82118Smrg
48453fe82118Smrg
48463fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
48473fe82118Smrg
48483fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
48493fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
48503a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
48513a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
48523a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
48533a99fc18Smrgthen :
48543a99fc18Smrg  printf %s "(cached) " >&6
48553a99fc18Smrgelse $as_nop
48563fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48573fe82118Smrg/* end confdefs.h.  */
48583fe82118Smrgint i;
48593fe82118Smrg_ACEOF
48603a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
48613a99fc18Smrgthen :
48623fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
48633a99fc18Smrgelse $as_nop
48643fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
48653fe82118Smrgfi
48663a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
48673fe82118Smrgfi
48683a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
48693a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
48703fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
48713fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
4872e531b1a7Smrgfi
4873e531b1a7Smrg
48743fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
48753fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
48763fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4877e531b1a7Smrg	fi
48783fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
48793a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
48803a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
48813a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
48823a99fc18Smrgthen :
48833a99fc18Smrg  printf %s "(cached) " >&6
48843a99fc18Smrgelse $as_nop
48853fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48863fe82118Smrg/* end confdefs.h.  */
48873fe82118Smrgint i;
48883fe82118Smrg_ACEOF
48893a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
48903a99fc18Smrgthen :
48913fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
48923a99fc18Smrgelse $as_nop
48933fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
48943fe82118Smrgfi
48953a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
48963fe82118Smrgfi
48973a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
48983a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
48993fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
49003fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
4901e531b1a7Smrgfi
4902e531b1a7Smrg
49033fe82118Smrgfound="no"
4904e531b1a7Smrg
49053fe82118Smrg	if test $found = "no" ; then
49063e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
49073fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
49083fe82118Smrg		fi
4909e531b1a7Smrg
49103e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
49113fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
49123fe82118Smrg		fi
4913e531b1a7Smrg
49143fe82118Smrg		CFLAGS="$CFLAGS -Wall"
4915e531b1a7Smrg
49163a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
49173a99fc18Smrgprintf %s "checking if $CC supports -Wall... " >&6; }
49183fe82118Smrg		cacheid=xorg_cv_cc_flag__Wall
49193a99fc18Smrg		if eval test \${$cacheid+y}
49203a99fc18Smrgthen :
49213a99fc18Smrg  printf %s "(cached) " >&6
49223a99fc18Smrgelse $as_nop
49233fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49243fe82118Smrg/* end confdefs.h.  */
49253fe82118Smrgint i;
49263fe82118Smrgint
49273a99fc18Smrgmain (void)
49283fe82118Smrg{
4929e531b1a7Smrg
49303fe82118Smrg  ;
49313fe82118Smrg  return 0;
49323fe82118Smrg}
4933e531b1a7Smrg_ACEOF
49343a99fc18Smrgif ac_fn_c_try_link "$LINENO"
49353a99fc18Smrgthen :
49363fe82118Smrg  eval $cacheid=yes
49373a99fc18Smrgelse $as_nop
49383fe82118Smrg  eval $cacheid=no
49393fe82118Smrgfi
49403a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
49413fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
49423fe82118Smrgfi
4943e531b1a7Smrg
49443fe82118Smrg
49453fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
49463fe82118Smrg
49473fe82118Smrg		eval supported=\$$cacheid
49483a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
49493a99fc18Smrgprintf "%s\n" "$supported" >&6; }
49503fe82118Smrg		if test "$supported" = "yes" ; then
49513fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
49523fe82118Smrg			found="yes"
49533fe82118Smrg		fi
4954e531b1a7Smrg	fi
4955e531b1a7Smrg
4956e531b1a7Smrg
4957e531b1a7Smrg
4958e531b1a7Smrg
49593da7aff1Smrg
49603da7aff1Smrg
49613da7aff1Smrg
49623da7aff1Smrg
49633da7aff1Smrg
49643da7aff1Smrg
49653da7aff1Smrg
49663da7aff1Smrg
49673da7aff1Smrg
49683da7aff1Smrg
4969e531b1a7Smrg
49703fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
49713da7aff1Smrg
49723fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
49733fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
49743a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
49753a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
49763a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
49773a99fc18Smrgthen :
49783a99fc18Smrg  printf %s "(cached) " >&6
49793a99fc18Smrgelse $as_nop
49803fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49813fe82118Smrg/* end confdefs.h.  */
49823fe82118Smrgint i;
49833fe82118Smrg_ACEOF
49843a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
49853a99fc18Smrgthen :
49863fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
49873a99fc18Smrgelse $as_nop
49883fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
4989f9d592e5Smrgfi
49903a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4991f9d592e5Smrgfi
49923a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
49933a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
49943fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
49953fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
4996f9d592e5Smrgfi
4997e531b1a7Smrg
49983fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
49993fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
50003fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
50013fe82118Smrg	fi
50023fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
50033a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
50043a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
50053a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
50063a99fc18Smrgthen :
50073a99fc18Smrg  printf %s "(cached) " >&6
50083a99fc18Smrgelse $as_nop
50093fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50103fe82118Smrg/* end confdefs.h.  */
50113fe82118Smrgint i;
50123fe82118Smrg_ACEOF
50133a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
50143a99fc18Smrgthen :
50153fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
50163a99fc18Smrgelse $as_nop
50173fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
50183da7aff1Smrgfi
50193a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
50203da7aff1Smrgfi
50213a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
50223a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
50233fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
50243fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
50253da7aff1Smrgfi
50263da7aff1Smrg
50273fe82118Smrgfound="no"
50283da7aff1Smrg
50293fe82118Smrg	if test $found = "no" ; then
50303e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
50313fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
50323fe82118Smrg		fi
50333da7aff1Smrg
50343e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
50353fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
50363fe82118Smrg		fi
50373da7aff1Smrg
50383fe82118Smrg		CFLAGS="$CFLAGS -Wpointer-arith"
50393da7aff1Smrg
50403a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
50413a99fc18Smrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; }
50423fe82118Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
50433a99fc18Smrg		if eval test \${$cacheid+y}
50443a99fc18Smrgthen :
50453a99fc18Smrg  printf %s "(cached) " >&6
50463a99fc18Smrgelse $as_nop
50473fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50483fe82118Smrg/* end confdefs.h.  */
50493fe82118Smrgint i;
50503fe82118Smrgint
50513a99fc18Smrgmain (void)
50523fe82118Smrg{
50533da7aff1Smrg
50543fe82118Smrg  ;
50553fe82118Smrg  return 0;
50563fe82118Smrg}
50573fe82118Smrg_ACEOF
50583a99fc18Smrgif ac_fn_c_try_link "$LINENO"
50593a99fc18Smrgthen :
50603fe82118Smrg  eval $cacheid=yes
50613a99fc18Smrgelse $as_nop
50623fe82118Smrg  eval $cacheid=no
50633fe82118Smrgfi
50643a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
50653fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
50663fe82118Smrgfi
50673da7aff1Smrg
50683da7aff1Smrg
50693fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
50703da7aff1Smrg
50713fe82118Smrg		eval supported=\$$cacheid
50723a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
50733a99fc18Smrgprintf "%s\n" "$supported" >&6; }
50743fe82118Smrg		if test "$supported" = "yes" ; then
50753fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
50763fe82118Smrg			found="yes"
50773fe82118Smrg		fi
50783fe82118Smrg	fi
50793da7aff1Smrg
50803da7aff1Smrg
5081e531b1a7Smrg
50823da7aff1Smrg
50833da7aff1Smrg
50843da7aff1Smrg
50853da7aff1Smrg
50863da7aff1Smrg
50873da7aff1Smrg
50883da7aff1Smrg
50893da7aff1Smrg
50903da7aff1Smrg
5091f9d592e5Smrg
5092f9d592e5Smrg
5093f9d592e5Smrg
50943fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5095f9d592e5Smrg
50963fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
50973fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
50983a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
50993a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
51003a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
51013a99fc18Smrgthen :
51023a99fc18Smrg  printf %s "(cached) " >&6
51033a99fc18Smrgelse $as_nop
51043fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51053fe82118Smrg/* end confdefs.h.  */
51063fe82118Smrgint i;
51073fe82118Smrg_ACEOF
51083a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
51093a99fc18Smrgthen :
51103fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
51113a99fc18Smrgelse $as_nop
51123fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
51133fe82118Smrgfi
51143a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
51153fe82118Smrgfi
51163a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
51173a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
51183fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
51193fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
51203fe82118Smrgfi
51213fe82118Smrg
51223fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
51233fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
51243fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
51253fe82118Smrg	fi
51263fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
51273a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
51283a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
51293a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
51303a99fc18Smrgthen :
51313a99fc18Smrg  printf %s "(cached) " >&6
51323a99fc18Smrgelse $as_nop
51333fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51343fe82118Smrg/* end confdefs.h.  */
51353fe82118Smrgint i;
51363fe82118Smrg_ACEOF
51373a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
51383a99fc18Smrgthen :
51393fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
51403a99fc18Smrgelse $as_nop
51413fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
51423fe82118Smrgfi
51433a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
51443fe82118Smrgfi
51453a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
51463a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
51473fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
51483fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
51493fe82118Smrgfi
51503fe82118Smrg
51513fe82118Smrgfound="no"
51523fe82118Smrg
51533fe82118Smrg	if test $found = "no" ; then
51543e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
51553fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
51563fe82118Smrg		fi
51573fe82118Smrg
51583e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
51593fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
51603fe82118Smrg		fi
51613fe82118Smrg
51623fe82118Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
51633fe82118Smrg
51643a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
51653a99fc18Smrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
51663fe82118Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
51673a99fc18Smrg		if eval test \${$cacheid+y}
51683a99fc18Smrgthen :
51693a99fc18Smrg  printf %s "(cached) " >&6
51703a99fc18Smrgelse $as_nop
51713fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51723fe82118Smrg/* end confdefs.h.  */
51733fe82118Smrgint i;
51743fe82118Smrgint
51753a99fc18Smrgmain (void)
51763fe82118Smrg{
51773fe82118Smrg
51783fe82118Smrg  ;
51793fe82118Smrg  return 0;
51803fe82118Smrg}
51813fe82118Smrg_ACEOF
51823a99fc18Smrgif ac_fn_c_try_link "$LINENO"
51833a99fc18Smrgthen :
51843fe82118Smrg  eval $cacheid=yes
51853a99fc18Smrgelse $as_nop
51863fe82118Smrg  eval $cacheid=no
51873fe82118Smrgfi
51883a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
51893fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
51903fe82118Smrgfi
51913fe82118Smrg
51923fe82118Smrg
51933fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
51943fe82118Smrg
51953fe82118Smrg		eval supported=\$$cacheid
51963a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
51973a99fc18Smrgprintf "%s\n" "$supported" >&6; }
51983fe82118Smrg		if test "$supported" = "yes" ; then
51993fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
52003fe82118Smrg			found="yes"
52013fe82118Smrg		fi
52023fe82118Smrg	fi
52033fe82118Smrg
52043fe82118Smrg
52053fe82118Smrg
52063fe82118Smrg
52073fe82118Smrg
52083fe82118Smrg
52093fe82118Smrg
52103fe82118Smrg
52113fe82118Smrg
52123fe82118Smrg
52133fe82118Smrg
52143fe82118Smrg
52153fe82118Smrg
52163fe82118Smrg
52173fe82118Smrg
52183fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
52193fe82118Smrg
52203fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
52213fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52223a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
52233a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
52243a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
52253a99fc18Smrgthen :
52263a99fc18Smrg  printf %s "(cached) " >&6
52273a99fc18Smrgelse $as_nop
52283fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52293fe82118Smrg/* end confdefs.h.  */
52303fe82118Smrgint i;
52313fe82118Smrg_ACEOF
52323a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
52333a99fc18Smrgthen :
52343fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
52353a99fc18Smrgelse $as_nop
52363fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
52373fe82118Smrgfi
52383a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
52393fe82118Smrgfi
52403a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
52413a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
52423fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
52433fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
52443fe82118Smrgfi
52453fe82118Smrg
52463fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
52473fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
52483fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52493fe82118Smrg	fi
52503fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
52513a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
52523a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
52533a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
52543a99fc18Smrgthen :
52553a99fc18Smrg  printf %s "(cached) " >&6
52563a99fc18Smrgelse $as_nop
52573fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52583fe82118Smrg/* end confdefs.h.  */
52593fe82118Smrgint i;
52603fe82118Smrg_ACEOF
52613a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
52623a99fc18Smrgthen :
52633fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
52643a99fc18Smrgelse $as_nop
52653fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
52663fe82118Smrgfi
52673a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
52683fe82118Smrgfi
52693a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
52703a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
52713fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
52723fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
52733fe82118Smrgfi
52743fe82118Smrg
52753fe82118Smrgfound="no"
52763fe82118Smrg
52773fe82118Smrg	if test $found = "no" ; then
52783e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
52793fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52803fe82118Smrg		fi
52813fe82118Smrg
52823e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
52833fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
52843fe82118Smrg		fi
52853fe82118Smrg
52863fe82118Smrg		CFLAGS="$CFLAGS -Wformat=2"
52873fe82118Smrg
52883a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
52893a99fc18Smrgprintf %s "checking if $CC supports -Wformat=2... " >&6; }
52903e999d35Smrg		cacheid=xorg_cv_cc_flag__Wformat_2
52913a99fc18Smrg		if eval test \${$cacheid+y}
52923a99fc18Smrgthen :
52933a99fc18Smrg  printf %s "(cached) " >&6
52943a99fc18Smrgelse $as_nop
52953fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52963fe82118Smrg/* end confdefs.h.  */
52973fe82118Smrgint i;
52983fe82118Smrgint
52993a99fc18Smrgmain (void)
53003fe82118Smrg{
53013fe82118Smrg
53023fe82118Smrg  ;
53033fe82118Smrg  return 0;
53043fe82118Smrg}
53053fe82118Smrg_ACEOF
53063a99fc18Smrgif ac_fn_c_try_link "$LINENO"
53073a99fc18Smrgthen :
53083fe82118Smrg  eval $cacheid=yes
53093a99fc18Smrgelse $as_nop
53103fe82118Smrg  eval $cacheid=no
53113fe82118Smrgfi
53123a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
53133fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
53143fe82118Smrgfi
53153fe82118Smrg
53163fe82118Smrg
53173fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
53183fe82118Smrg
53193fe82118Smrg		eval supported=\$$cacheid
53203a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
53213a99fc18Smrgprintf "%s\n" "$supported" >&6; }
53223fe82118Smrg		if test "$supported" = "yes" ; then
53233fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
53243fe82118Smrg			found="yes"
53253fe82118Smrg		fi
53263fe82118Smrg	fi
53273fe82118Smrg
53283fe82118Smrg	if test $found = "no" ; then
53293e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
53303fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53313fe82118Smrg		fi
53323fe82118Smrg
53333e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
53343fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
53353fe82118Smrg		fi
53363fe82118Smrg
53373fe82118Smrg		CFLAGS="$CFLAGS -Wformat"
53383fe82118Smrg
53393a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
53403a99fc18Smrgprintf %s "checking if $CC supports -Wformat... " >&6; }
53413fe82118Smrg		cacheid=xorg_cv_cc_flag__Wformat
53423a99fc18Smrg		if eval test \${$cacheid+y}
53433a99fc18Smrgthen :
53443a99fc18Smrg  printf %s "(cached) " >&6
53453a99fc18Smrgelse $as_nop
53463fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53473fe82118Smrg/* end confdefs.h.  */
53483fe82118Smrgint i;
53493fe82118Smrgint
53503a99fc18Smrgmain (void)
53513fe82118Smrg{
53523fe82118Smrg
53533fe82118Smrg  ;
53543fe82118Smrg  return 0;
53553fe82118Smrg}
53563fe82118Smrg_ACEOF
53573a99fc18Smrgif ac_fn_c_try_link "$LINENO"
53583a99fc18Smrgthen :
53593fe82118Smrg  eval $cacheid=yes
53603a99fc18Smrgelse $as_nop
53613fe82118Smrg  eval $cacheid=no
53623fe82118Smrgfi
53633a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
53643fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
53653fe82118Smrgfi
53663fe82118Smrg
53673fe82118Smrg
53683fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
53693fe82118Smrg
53703fe82118Smrg		eval supported=\$$cacheid
53713a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
53723a99fc18Smrgprintf "%s\n" "$supported" >&6; }
53733fe82118Smrg		if test "$supported" = "yes" ; then
53743fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
53753fe82118Smrg			found="yes"
53763fe82118Smrg		fi
53773fe82118Smrg	fi
53783fe82118Smrg
53793fe82118Smrg
53803fe82118Smrg
53813fe82118Smrg
53823fe82118Smrg
53833fe82118Smrg
53843fe82118Smrg
53853fe82118Smrg
53863fe82118Smrg
53873fe82118Smrg
53883fe82118Smrg
53893fe82118Smrg
53903fe82118Smrg
53913fe82118Smrg
53923fe82118Smrg
53933fe82118Smrg
53943fe82118Smrg
53953fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
53963fe82118Smrg
53973fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
53983fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53993a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
54003a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
54013a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
54023a99fc18Smrgthen :
54033a99fc18Smrg  printf %s "(cached) " >&6
54043a99fc18Smrgelse $as_nop
54053fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54063fe82118Smrg/* end confdefs.h.  */
54073fe82118Smrgint i;
54083fe82118Smrg_ACEOF
54093a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
54103a99fc18Smrgthen :
54113fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
54123a99fc18Smrgelse $as_nop
54133fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
54143fe82118Smrgfi
54153a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
54163fe82118Smrgfi
54173a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
54183a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
54193fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
54203fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
54213fe82118Smrgfi
54223fe82118Smrg
54233fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
54243fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
54253fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54263fe82118Smrg	fi
54273fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
54283a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
54293a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
54303a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
54313a99fc18Smrgthen :
54323a99fc18Smrg  printf %s "(cached) " >&6
54333a99fc18Smrgelse $as_nop
54343fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54353fe82118Smrg/* end confdefs.h.  */
54363fe82118Smrgint i;
54373fe82118Smrg_ACEOF
54383a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
54393a99fc18Smrgthen :
54403fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
54413a99fc18Smrgelse $as_nop
54423fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
54433fe82118Smrgfi
54443a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
54453fe82118Smrgfi
54463a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
54473a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
54483fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
54493fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
54503fe82118Smrgfi
54513fe82118Smrg
54523fe82118Smrgfound="no"
54533fe82118Smrg
54543fe82118Smrg	if test $found = "no" ; then
54553e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
54563fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54573fe82118Smrg		fi
54583fe82118Smrg
54593e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
54603fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
54613fe82118Smrg		fi
54623fe82118Smrg
54633fe82118Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
54643fe82118Smrg
54653a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
54663a99fc18Smrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
54673fe82118Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
54683a99fc18Smrg		if eval test \${$cacheid+y}
54693a99fc18Smrgthen :
54703a99fc18Smrg  printf %s "(cached) " >&6
54713a99fc18Smrgelse $as_nop
54723fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54733fe82118Smrg/* end confdefs.h.  */
54743fe82118Smrgint i;
54753fe82118Smrgint
54763a99fc18Smrgmain (void)
54773fe82118Smrg{
54783fe82118Smrg
54793fe82118Smrg  ;
54803fe82118Smrg  return 0;
54813fe82118Smrg}
54823fe82118Smrg_ACEOF
54833a99fc18Smrgif ac_fn_c_try_link "$LINENO"
54843a99fc18Smrgthen :
54853fe82118Smrg  eval $cacheid=yes
54863a99fc18Smrgelse $as_nop
54873fe82118Smrg  eval $cacheid=no
54883fe82118Smrgfi
54893a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
54903fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
54913fe82118Smrgfi
54923fe82118Smrg
54933fe82118Smrg
54943fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
54953fe82118Smrg
54963fe82118Smrg		eval supported=\$$cacheid
54973a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
54983a99fc18Smrgprintf "%s\n" "$supported" >&6; }
54993fe82118Smrg		if test "$supported" = "yes" ; then
55003fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
55013fe82118Smrg			found="yes"
55023fe82118Smrg		fi
55033fe82118Smrg	fi
55043fe82118Smrg
55053fe82118Smrg
55063fe82118Smrg
55073fe82118Smrg
55083fe82118Smrg
55093fe82118Smrg
55103fe82118Smrg
55113fe82118Smrg
55123fe82118Smrg
55133fe82118Smrg
55143fe82118Smrg
55153fe82118Smrg
55163fe82118Smrg
55173fe82118Smrg
55183fe82118Smrg
55193fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
55203fe82118Smrg
55213fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
55223fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55233a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
55243a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
55253a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
55263a99fc18Smrgthen :
55273a99fc18Smrg  printf %s "(cached) " >&6
55283a99fc18Smrgelse $as_nop
55293fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55303fe82118Smrg/* end confdefs.h.  */
55313fe82118Smrgint i;
55323fe82118Smrg_ACEOF
55333a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
55343a99fc18Smrgthen :
55353fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
55363a99fc18Smrgelse $as_nop
55373fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
55383fe82118Smrgfi
55393a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
55403fe82118Smrgfi
55413a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
55423a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
55433fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
55443fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
55453fe82118Smrgfi
55463fe82118Smrg
55473fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
55483fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
55493fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55503fe82118Smrg	fi
55513fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
55523a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
55533a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
55543a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
55553a99fc18Smrgthen :
55563a99fc18Smrg  printf %s "(cached) " >&6
55573a99fc18Smrgelse $as_nop
55583fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55593fe82118Smrg/* end confdefs.h.  */
55603fe82118Smrgint i;
55613fe82118Smrg_ACEOF
55623a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
55633a99fc18Smrgthen :
55643fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
55653a99fc18Smrgelse $as_nop
55663fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
55673fe82118Smrgfi
55683a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
55693fe82118Smrgfi
55703a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
55713a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
55723fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
55733fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
55743fe82118Smrgfi
55753fe82118Smrg
55763fe82118Smrgfound="no"
55773fe82118Smrg
55783fe82118Smrg	if test $found = "no" ; then
55793e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
55803fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55813fe82118Smrg		fi
55823fe82118Smrg
55833e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
55843fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
55853fe82118Smrg		fi
55863fe82118Smrg
55873fe82118Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
55883fe82118Smrg
55893a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
55903a99fc18Smrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
55913fe82118Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
55923a99fc18Smrg		if eval test \${$cacheid+y}
55933a99fc18Smrgthen :
55943a99fc18Smrg  printf %s "(cached) " >&6
55953a99fc18Smrgelse $as_nop
55963fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55973fe82118Smrg/* end confdefs.h.  */
55983fe82118Smrgint i;
55993fe82118Smrgint
56003a99fc18Smrgmain (void)
56013fe82118Smrg{
56023fe82118Smrg
56033fe82118Smrg  ;
56043fe82118Smrg  return 0;
56053fe82118Smrg}
56063fe82118Smrg_ACEOF
56073a99fc18Smrgif ac_fn_c_try_link "$LINENO"
56083a99fc18Smrgthen :
56093fe82118Smrg  eval $cacheid=yes
56103a99fc18Smrgelse $as_nop
56113fe82118Smrg  eval $cacheid=no
56123fe82118Smrgfi
56133a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
56143fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
56153fe82118Smrgfi
56163fe82118Smrg
56173fe82118Smrg
56183fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
56193fe82118Smrg
56203fe82118Smrg		eval supported=\$$cacheid
56213a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
56223a99fc18Smrgprintf "%s\n" "$supported" >&6; }
56233fe82118Smrg		if test "$supported" = "yes" ; then
56243fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
56253fe82118Smrg			found="yes"
56263fe82118Smrg		fi
56273fe82118Smrg	fi
56283fe82118Smrg
56293fe82118Smrg
56303fe82118Smrg
56313fe82118Smrg
56323fe82118Smrg
56333fe82118Smrg
56343fe82118Smrg
56353fe82118Smrg
56363fe82118Smrg
56373fe82118Smrg
56383fe82118Smrg
56393fe82118Smrg
56403fe82118Smrg
56413fe82118Smrg
56423fe82118Smrg
56433fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
56443fe82118Smrg
56453fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
56463fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56473a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
56483a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
56493a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
56503a99fc18Smrgthen :
56513a99fc18Smrg  printf %s "(cached) " >&6
56523a99fc18Smrgelse $as_nop
56533fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56543fe82118Smrg/* end confdefs.h.  */
56553fe82118Smrgint i;
56563fe82118Smrg_ACEOF
56573a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
56583a99fc18Smrgthen :
56593fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
56603a99fc18Smrgelse $as_nop
56613fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
56623fe82118Smrgfi
56633a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
56643fe82118Smrgfi
56653a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
56663a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
56673fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
56683fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
56693fe82118Smrgfi
56703fe82118Smrg
56713fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
56723fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
56733fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56743fe82118Smrg	fi
56753fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
56763a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
56773a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
56783a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
56793a99fc18Smrgthen :
56803a99fc18Smrg  printf %s "(cached) " >&6
56813a99fc18Smrgelse $as_nop
56823fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56833fe82118Smrg/* end confdefs.h.  */
56843fe82118Smrgint i;
56853fe82118Smrg_ACEOF
56863a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
56873a99fc18Smrgthen :
56883fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
56893a99fc18Smrgelse $as_nop
56903fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
56913fe82118Smrgfi
56923a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
56933fe82118Smrgfi
56943a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
56953a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
56963fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
56973fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
56983fe82118Smrgfi
56993fe82118Smrg
57003fe82118Smrgfound="no"
57013fe82118Smrg
57023fe82118Smrg	if test $found = "no" ; then
57033e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
57043fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57053fe82118Smrg		fi
57063fe82118Smrg
57073e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
57083fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
57093fe82118Smrg		fi
57103fe82118Smrg
57113fe82118Smrg		CFLAGS="$CFLAGS -Wnested-externs"
57123fe82118Smrg
57133a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
57143a99fc18Smrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; }
57153fe82118Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
57163a99fc18Smrg		if eval test \${$cacheid+y}
57173a99fc18Smrgthen :
57183a99fc18Smrg  printf %s "(cached) " >&6
57193a99fc18Smrgelse $as_nop
57203fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57213fe82118Smrg/* end confdefs.h.  */
57223fe82118Smrgint i;
57233fe82118Smrgint
57243a99fc18Smrgmain (void)
57253fe82118Smrg{
57263fe82118Smrg
57273fe82118Smrg  ;
57283fe82118Smrg  return 0;
57293fe82118Smrg}
57303fe82118Smrg_ACEOF
57313a99fc18Smrgif ac_fn_c_try_link "$LINENO"
57323a99fc18Smrgthen :
57333fe82118Smrg  eval $cacheid=yes
57343a99fc18Smrgelse $as_nop
57353fe82118Smrg  eval $cacheid=no
57363fe82118Smrgfi
57373a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
57383fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
57393fe82118Smrgfi
57403fe82118Smrg
57413fe82118Smrg
57423fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
57433fe82118Smrg
57443fe82118Smrg		eval supported=\$$cacheid
57453a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
57463a99fc18Smrgprintf "%s\n" "$supported" >&6; }
57473fe82118Smrg		if test "$supported" = "yes" ; then
57483fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
57493fe82118Smrg			found="yes"
57503fe82118Smrg		fi
57513fe82118Smrg	fi
57523fe82118Smrg
57533fe82118Smrg
57543fe82118Smrg
57553fe82118Smrg
57563fe82118Smrg
57573fe82118Smrg
57583fe82118Smrg
57593fe82118Smrg
57603fe82118Smrg
57613fe82118Smrg
57623fe82118Smrg
57633fe82118Smrg
57643fe82118Smrg
57653fe82118Smrg
57663fe82118Smrg
57673fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
57683fe82118Smrg
57693fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
57703fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57713a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
57723a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
57733a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
57743a99fc18Smrgthen :
57753a99fc18Smrg  printf %s "(cached) " >&6
57763a99fc18Smrgelse $as_nop
57773fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57783fe82118Smrg/* end confdefs.h.  */
57793fe82118Smrgint i;
57803fe82118Smrg_ACEOF
57813a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
57823a99fc18Smrgthen :
57833fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
57843a99fc18Smrgelse $as_nop
57853fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
57863fe82118Smrgfi
57873a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
57883fe82118Smrgfi
57893a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
57903a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
57913fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
57923fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
57933fe82118Smrgfi
57943fe82118Smrg
57953fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
57963fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
57973fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57983fe82118Smrg	fi
57993fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
58003a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
58013a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
58023a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
58033a99fc18Smrgthen :
58043a99fc18Smrg  printf %s "(cached) " >&6
58053a99fc18Smrgelse $as_nop
58063fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58073fe82118Smrg/* end confdefs.h.  */
58083fe82118Smrgint i;
58093fe82118Smrg_ACEOF
58103a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
58113a99fc18Smrgthen :
58123fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
58133a99fc18Smrgelse $as_nop
58143fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
58153fe82118Smrgfi
58163a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
58173fe82118Smrgfi
58183a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
58193a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
58203fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
58213fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
58223fe82118Smrgfi
58233fe82118Smrg
58243fe82118Smrgfound="no"
58253fe82118Smrg
58263fe82118Smrg	if test $found = "no" ; then
58273e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
58283fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
58293fe82118Smrg		fi
58303fe82118Smrg
58313e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
58323fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
58333fe82118Smrg		fi
58343fe82118Smrg
58353fe82118Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
58363fe82118Smrg
58373a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
58383a99fc18Smrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
58393fe82118Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
58403a99fc18Smrg		if eval test \${$cacheid+y}
58413a99fc18Smrgthen :
58423a99fc18Smrg  printf %s "(cached) " >&6
58433a99fc18Smrgelse $as_nop
58443fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58453fe82118Smrg/* end confdefs.h.  */
58463fe82118Smrgint i;
58473fe82118Smrgint
58483a99fc18Smrgmain (void)
58493fe82118Smrg{
58503fe82118Smrg
58513fe82118Smrg  ;
58523fe82118Smrg  return 0;
58533fe82118Smrg}
58543fe82118Smrg_ACEOF
58553a99fc18Smrgif ac_fn_c_try_link "$LINENO"
58563a99fc18Smrgthen :
58573fe82118Smrg  eval $cacheid=yes
58583a99fc18Smrgelse $as_nop
58593fe82118Smrg  eval $cacheid=no
58603fe82118Smrgfi
58613a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
58623fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
58633fe82118Smrgfi
58643fe82118Smrg
58653fe82118Smrg
58663fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
58673fe82118Smrg
58683fe82118Smrg		eval supported=\$$cacheid
58693a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
58703a99fc18Smrgprintf "%s\n" "$supported" >&6; }
58713fe82118Smrg		if test "$supported" = "yes" ; then
58723fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
58733fe82118Smrg			found="yes"
58743fe82118Smrg		fi
58753fe82118Smrg	fi
58763fe82118Smrg
58773fe82118Smrg
58783fe82118Smrg
58793fe82118Smrg
58803fe82118Smrg
58813fe82118Smrg
58823fe82118Smrg
58833fe82118Smrg
58843fe82118Smrg
58853fe82118Smrg
58863fe82118Smrg
58873fe82118Smrg
58883fe82118Smrg
58893fe82118Smrg
58903fe82118Smrg
58913fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
58923fe82118Smrg
58933fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
58943fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
58953a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
58963a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
58973a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
58983a99fc18Smrgthen :
58993a99fc18Smrg  printf %s "(cached) " >&6
59003a99fc18Smrgelse $as_nop
59013fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59023fe82118Smrg/* end confdefs.h.  */
59033fe82118Smrgint i;
59043fe82118Smrg_ACEOF
59053a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
59063a99fc18Smrgthen :
59073fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
59083a99fc18Smrgelse $as_nop
59093fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
59103fe82118Smrgfi
59113a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
59123fe82118Smrgfi
59133a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
59143a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
59153fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
59163fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
59173fe82118Smrgfi
59183fe82118Smrg
59193fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
59203fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
59213fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59223fe82118Smrg	fi
59233fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
59243a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
59253a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
59263a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
59273a99fc18Smrgthen :
59283a99fc18Smrg  printf %s "(cached) " >&6
59293a99fc18Smrgelse $as_nop
59303fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59313fe82118Smrg/* end confdefs.h.  */
59323fe82118Smrgint i;
59333fe82118Smrg_ACEOF
59343a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
59353a99fc18Smrgthen :
59363fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
59373a99fc18Smrgelse $as_nop
59383fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
59393fe82118Smrgfi
59403a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
59413fe82118Smrgfi
59423a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
59433a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
59443fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
59453fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
59463fe82118Smrgfi
59473fe82118Smrg
59483fe82118Smrgfound="no"
59493fe82118Smrg
59503fe82118Smrg	if test $found = "no" ; then
59513e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
59523fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59533fe82118Smrg		fi
59543fe82118Smrg
59553e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
59563fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
59573fe82118Smrg		fi
59583fe82118Smrg
59593fe82118Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
59603fe82118Smrg
59613a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
59623a99fc18Smrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; }
59633fe82118Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
59643a99fc18Smrg		if eval test \${$cacheid+y}
59653a99fc18Smrgthen :
59663a99fc18Smrg  printf %s "(cached) " >&6
59673a99fc18Smrgelse $as_nop
59683fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59693fe82118Smrg/* end confdefs.h.  */
59703fe82118Smrgint i;
59713fe82118Smrgint
59723a99fc18Smrgmain (void)
59733fe82118Smrg{
59743fe82118Smrg
59753fe82118Smrg  ;
59763fe82118Smrg  return 0;
59773fe82118Smrg}
59783fe82118Smrg_ACEOF
59793a99fc18Smrgif ac_fn_c_try_link "$LINENO"
59803a99fc18Smrgthen :
59813fe82118Smrg  eval $cacheid=yes
59823a99fc18Smrgelse $as_nop
59833fe82118Smrg  eval $cacheid=no
59843fe82118Smrgfi
59853a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
59863fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
59873fe82118Smrgfi
59883fe82118Smrg
59893fe82118Smrg
59903fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
59913fe82118Smrg
59923fe82118Smrg		eval supported=\$$cacheid
59933a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
59943a99fc18Smrgprintf "%s\n" "$supported" >&6; }
59953fe82118Smrg		if test "$supported" = "yes" ; then
59963fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
59973fe82118Smrg			found="yes"
59983fe82118Smrg		fi
59993fe82118Smrg	fi
60003fe82118Smrg
60013e999d35Smrg	if test $found = "no" ; then
60023e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
60033e999d35Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60043e999d35Smrg		fi
60053e999d35Smrg
60063e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
60073e999d35Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
60083e999d35Smrg		fi
60093e999d35Smrg
60103e999d35Smrg		CFLAGS="$CFLAGS -fd"
60113e999d35Smrg
60123a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
60133a99fc18Smrgprintf %s "checking if $CC supports -fd... " >&6; }
60143e999d35Smrg		cacheid=xorg_cv_cc_flag__fd
60153a99fc18Smrg		if eval test \${$cacheid+y}
60163a99fc18Smrgthen :
60173a99fc18Smrg  printf %s "(cached) " >&6
60183a99fc18Smrgelse $as_nop
60193e999d35Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60203e999d35Smrg/* end confdefs.h.  */
60213e999d35Smrgint i;
60223e999d35Smrgint
60233a99fc18Smrgmain (void)
60243e999d35Smrg{
60253e999d35Smrg
60263e999d35Smrg  ;
60273e999d35Smrg  return 0;
60283e999d35Smrg}
60293e999d35Smrg_ACEOF
60303a99fc18Smrgif ac_fn_c_try_link "$LINENO"
60313a99fc18Smrgthen :
60323e999d35Smrg  eval $cacheid=yes
60333a99fc18Smrgelse $as_nop
60343e999d35Smrg  eval $cacheid=no
60353e999d35Smrgfi
60363a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
60373e999d35Smrg    conftest$ac_exeext conftest.$ac_ext
60383e999d35Smrgfi
60393e999d35Smrg
60403e999d35Smrg
60413e999d35Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
60423e999d35Smrg
60433e999d35Smrg		eval supported=\$$cacheid
60443a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
60453a99fc18Smrgprintf "%s\n" "$supported" >&6; }
60463e999d35Smrg		if test "$supported" = "yes" ; then
60473e999d35Smrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
60483e999d35Smrg			found="yes"
60493e999d35Smrg		fi
60503e999d35Smrg	fi
60513e999d35Smrg
60523fe82118Smrg
60533fe82118Smrg
60543fe82118Smrg
60553fe82118Smrg
60563fe82118Smrg
60573fe82118Smrg
60583fe82118Smrg
60593fe82118Smrg
60603fe82118Smrg
60613fe82118Smrg
60623fe82118Smrg
60633fe82118Smrg
60643fe82118Smrg
60653fe82118Smrg
60663fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
60673fe82118Smrg
60683fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
60693fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60703a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
60713a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
60723a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
60733a99fc18Smrgthen :
60743a99fc18Smrg  printf %s "(cached) " >&6
60753a99fc18Smrgelse $as_nop
60763fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60773fe82118Smrg/* end confdefs.h.  */
60783fe82118Smrgint i;
60793fe82118Smrg_ACEOF
60803a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
60813a99fc18Smrgthen :
60823fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
60833a99fc18Smrgelse $as_nop
60843fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
60853fe82118Smrgfi
60863a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
60873fe82118Smrgfi
60883a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
60893a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
60903fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
60913fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
60923fe82118Smrgfi
60933fe82118Smrg
60943fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
60953fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
60963fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60973fe82118Smrg	fi
60983fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
60993a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
61003a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
61013a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
61023a99fc18Smrgthen :
61033a99fc18Smrg  printf %s "(cached) " >&6
61043a99fc18Smrgelse $as_nop
61053fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61063fe82118Smrg/* end confdefs.h.  */
61073fe82118Smrgint i;
61083fe82118Smrg_ACEOF
61093a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
61103a99fc18Smrgthen :
61113fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
61123a99fc18Smrgelse $as_nop
61133fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
61143fe82118Smrgfi
61153a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
61163fe82118Smrgfi
61173a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
61183a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
61193fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
61203fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
61213fe82118Smrgfi
61223fe82118Smrg
61233fe82118Smrgfound="no"
61243fe82118Smrg
61253fe82118Smrg	if test $found = "no" ; then
61263e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
61273fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61283fe82118Smrg		fi
61293fe82118Smrg
61303e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
61313fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
61323fe82118Smrg		fi
61333fe82118Smrg
61343fe82118Smrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
61353fe82118Smrg
61363a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
61373a99fc18Smrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
61383fe82118Smrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
61393a99fc18Smrg		if eval test \${$cacheid+y}
61403a99fc18Smrgthen :
61413a99fc18Smrg  printf %s "(cached) " >&6
61423a99fc18Smrgelse $as_nop
61433fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61443fe82118Smrg/* end confdefs.h.  */
61453fe82118Smrgint i;
61463fe82118Smrgint
61473a99fc18Smrgmain (void)
61483fe82118Smrg{
61493fe82118Smrg
61503fe82118Smrg  ;
61513fe82118Smrg  return 0;
61523fe82118Smrg}
61533fe82118Smrg_ACEOF
61543a99fc18Smrgif ac_fn_c_try_link "$LINENO"
61553a99fc18Smrgthen :
61563fe82118Smrg  eval $cacheid=yes
61573a99fc18Smrgelse $as_nop
61583fe82118Smrg  eval $cacheid=no
61593fe82118Smrgfi
61603a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
61613fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
61623fe82118Smrgfi
61633fe82118Smrg
61643fe82118Smrg
61653fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
61663fe82118Smrg
61673fe82118Smrg		eval supported=\$$cacheid
61683a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
61693a99fc18Smrgprintf "%s\n" "$supported" >&6; }
61703fe82118Smrg		if test "$supported" = "yes" ; then
61713fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
61723fe82118Smrg			found="yes"
61733fe82118Smrg		fi
61743fe82118Smrg	fi
61753fe82118Smrg
61763fe82118Smrg
61773fe82118Smrg
61783fe82118Smrg
61793fe82118Smrg
61803fe82118Smrg# This chunk adds additional warnings that could catch undesired effects.
61813fe82118Smrg
61823fe82118Smrg
61833fe82118Smrg
61843fe82118Smrg
61853fe82118Smrg
61863fe82118Smrg
61873fe82118Smrg
61883fe82118Smrg
61893fe82118Smrg
61903fe82118Smrg
61913fe82118Smrg
61923fe82118Smrg
61933fe82118Smrg
61943fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
61953fe82118Smrg
61963fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
61973fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61983a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
61993a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
62003a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
62013a99fc18Smrgthen :
62023a99fc18Smrg  printf %s "(cached) " >&6
62033a99fc18Smrgelse $as_nop
62043fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62053fe82118Smrg/* end confdefs.h.  */
62063fe82118Smrgint i;
62073fe82118Smrg_ACEOF
62083a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
62093a99fc18Smrgthen :
62103fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
62113a99fc18Smrgelse $as_nop
62123fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
62133fe82118Smrgfi
62143a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
62153fe82118Smrgfi
62163a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
62173a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
62183fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
62193fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
62203fe82118Smrgfi
62213fe82118Smrg
62223fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
62233fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
62243fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62253fe82118Smrg	fi
62263fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
62273a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
62283a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
62293a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
62303a99fc18Smrgthen :
62313a99fc18Smrg  printf %s "(cached) " >&6
62323a99fc18Smrgelse $as_nop
62333fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62343fe82118Smrg/* end confdefs.h.  */
62353fe82118Smrgint i;
62363fe82118Smrg_ACEOF
62373a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
62383a99fc18Smrgthen :
62393fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
62403a99fc18Smrgelse $as_nop
62413fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
62423fe82118Smrgfi
62433a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
62443fe82118Smrgfi
62453a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
62463a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
62473fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
62483fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
62493fe82118Smrgfi
62503fe82118Smrg
62513fe82118Smrgfound="no"
62523fe82118Smrg
62533fe82118Smrg	if test $found = "no" ; then
62543e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
62553fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62563fe82118Smrg		fi
62573fe82118Smrg
62583e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
62593fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
62603fe82118Smrg		fi
62613fe82118Smrg
62623fe82118Smrg		CFLAGS="$CFLAGS -Wunused"
62633fe82118Smrg
62643a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
62653a99fc18Smrgprintf %s "checking if $CC supports -Wunused... " >&6; }
62663fe82118Smrg		cacheid=xorg_cv_cc_flag__Wunused
62673a99fc18Smrg		if eval test \${$cacheid+y}
62683a99fc18Smrgthen :
62693a99fc18Smrg  printf %s "(cached) " >&6
62703a99fc18Smrgelse $as_nop
62713fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62723fe82118Smrg/* end confdefs.h.  */
62733fe82118Smrgint i;
62743fe82118Smrgint
62753a99fc18Smrgmain (void)
62763fe82118Smrg{
62773fe82118Smrg
62783fe82118Smrg  ;
62793fe82118Smrg  return 0;
62803fe82118Smrg}
62813fe82118Smrg_ACEOF
62823a99fc18Smrgif ac_fn_c_try_link "$LINENO"
62833a99fc18Smrgthen :
62843fe82118Smrg  eval $cacheid=yes
62853a99fc18Smrgelse $as_nop
62863fe82118Smrg  eval $cacheid=no
62873fe82118Smrgfi
62883a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
62893fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
62903fe82118Smrgfi
62913fe82118Smrg
62923fe82118Smrg
62933fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
62943fe82118Smrg
62953fe82118Smrg		eval supported=\$$cacheid
62963a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
62973a99fc18Smrgprintf "%s\n" "$supported" >&6; }
62983fe82118Smrg		if test "$supported" = "yes" ; then
62993fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
63003fe82118Smrg			found="yes"
63013fe82118Smrg		fi
63023fe82118Smrg	fi
63033fe82118Smrg
63043fe82118Smrg
63053fe82118Smrg
63063fe82118Smrg
63073fe82118Smrg
63083fe82118Smrg
63093fe82118Smrg
63103fe82118Smrg
63113fe82118Smrg
63123fe82118Smrg
63133fe82118Smrg
63143fe82118Smrg
63153fe82118Smrg
63163fe82118Smrg
63173fe82118Smrg
63183fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
63193fe82118Smrg
63203fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
63213fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
63223a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
63233a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
63243a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
63253a99fc18Smrgthen :
63263a99fc18Smrg  printf %s "(cached) " >&6
63273a99fc18Smrgelse $as_nop
63283fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63293fe82118Smrg/* end confdefs.h.  */
63303fe82118Smrgint i;
63313fe82118Smrg_ACEOF
63323a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
63333a99fc18Smrgthen :
63343fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
63353a99fc18Smrgelse $as_nop
63363fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
63373fe82118Smrgfi
63383a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
63393fe82118Smrgfi
63403a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
63413a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
63423fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
63433fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
63443fe82118Smrgfi
63453fe82118Smrg
63463fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
63473fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
63483fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
63493fe82118Smrg	fi
63503fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
63513a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
63523a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
63533a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
63543a99fc18Smrgthen :
63553a99fc18Smrg  printf %s "(cached) " >&6
63563a99fc18Smrgelse $as_nop
63573fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63583fe82118Smrg/* end confdefs.h.  */
63593fe82118Smrgint i;
63603fe82118Smrg_ACEOF
63613a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
63623a99fc18Smrgthen :
63633fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
63643a99fc18Smrgelse $as_nop
63653fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
63663fe82118Smrgfi
63673a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
63683fe82118Smrgfi
63693a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
63703a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
63713fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
63723fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
63733fe82118Smrgfi
63743fe82118Smrg
63753fe82118Smrgfound="no"
63763fe82118Smrg
63773fe82118Smrg	if test $found = "no" ; then
63783e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
63793fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
63803fe82118Smrg		fi
63813fe82118Smrg
63823e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
63833fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
63843fe82118Smrg		fi
63853fe82118Smrg
63863fe82118Smrg		CFLAGS="$CFLAGS -Wuninitialized"
63873fe82118Smrg
63883a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
63893a99fc18Smrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; }
63903fe82118Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
63913a99fc18Smrg		if eval test \${$cacheid+y}
63923a99fc18Smrgthen :
63933a99fc18Smrg  printf %s "(cached) " >&6
63943a99fc18Smrgelse $as_nop
63953fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63963fe82118Smrg/* end confdefs.h.  */
63973fe82118Smrgint i;
63983fe82118Smrgint
63993a99fc18Smrgmain (void)
64003fe82118Smrg{
64013fe82118Smrg
64023fe82118Smrg  ;
64033fe82118Smrg  return 0;
64043fe82118Smrg}
64053fe82118Smrg_ACEOF
64063a99fc18Smrgif ac_fn_c_try_link "$LINENO"
64073a99fc18Smrgthen :
64083fe82118Smrg  eval $cacheid=yes
64093a99fc18Smrgelse $as_nop
64103fe82118Smrg  eval $cacheid=no
64113fe82118Smrgfi
64123a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
64133fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
64143fe82118Smrgfi
64153fe82118Smrg
64163fe82118Smrg
64173fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
64183fe82118Smrg
64193fe82118Smrg		eval supported=\$$cacheid
64203a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
64213a99fc18Smrgprintf "%s\n" "$supported" >&6; }
64223fe82118Smrg		if test "$supported" = "yes" ; then
64233fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
64243fe82118Smrg			found="yes"
64253fe82118Smrg		fi
64263fe82118Smrg	fi
64273fe82118Smrg
64283fe82118Smrg
64293fe82118Smrg
64303fe82118Smrg
64313fe82118Smrg
64323fe82118Smrg
64333fe82118Smrg
64343fe82118Smrg
64353fe82118Smrg
64363fe82118Smrg
64373fe82118Smrg
64383fe82118Smrg
64393fe82118Smrg
64403fe82118Smrg
64413fe82118Smrg
64423fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
64433fe82118Smrg
64443fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
64453fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64463a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
64473a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
64483a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
64493a99fc18Smrgthen :
64503a99fc18Smrg  printf %s "(cached) " >&6
64513a99fc18Smrgelse $as_nop
64523fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64533fe82118Smrg/* end confdefs.h.  */
64543fe82118Smrgint i;
64553fe82118Smrg_ACEOF
64563a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
64573a99fc18Smrgthen :
64583fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
64593a99fc18Smrgelse $as_nop
64603fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
64613fe82118Smrgfi
64623a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
64633fe82118Smrgfi
64643a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
64653a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
64663fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
64673fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
64683fe82118Smrgfi
64693fe82118Smrg
64703fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
64713fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
64723fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64733fe82118Smrg	fi
64743fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
64753a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
64763a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
64773a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
64783a99fc18Smrgthen :
64793a99fc18Smrg  printf %s "(cached) " >&6
64803a99fc18Smrgelse $as_nop
64813fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64823fe82118Smrg/* end confdefs.h.  */
64833fe82118Smrgint i;
64843fe82118Smrg_ACEOF
64853a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
64863a99fc18Smrgthen :
64873fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
64883a99fc18Smrgelse $as_nop
64893fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
64903fe82118Smrgfi
64913a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
64923fe82118Smrgfi
64933a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
64943a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
64953fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
64963fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
64973fe82118Smrgfi
64983fe82118Smrg
64993fe82118Smrgfound="no"
65003fe82118Smrg
65013fe82118Smrg	if test $found = "no" ; then
65023e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
65033fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65043fe82118Smrg		fi
65053fe82118Smrg
65063e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
65073fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
65083fe82118Smrg		fi
65093fe82118Smrg
65103fe82118Smrg		CFLAGS="$CFLAGS -Wshadow"
65113fe82118Smrg
65123a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
65133a99fc18Smrgprintf %s "checking if $CC supports -Wshadow... " >&6; }
65143fe82118Smrg		cacheid=xorg_cv_cc_flag__Wshadow
65153a99fc18Smrg		if eval test \${$cacheid+y}
65163a99fc18Smrgthen :
65173a99fc18Smrg  printf %s "(cached) " >&6
65183a99fc18Smrgelse $as_nop
65193fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65203fe82118Smrg/* end confdefs.h.  */
65213fe82118Smrgint i;
65223fe82118Smrgint
65233a99fc18Smrgmain (void)
65243fe82118Smrg{
65253fe82118Smrg
65263fe82118Smrg  ;
65273fe82118Smrg  return 0;
65283fe82118Smrg}
65293fe82118Smrg_ACEOF
65303a99fc18Smrgif ac_fn_c_try_link "$LINENO"
65313a99fc18Smrgthen :
65323fe82118Smrg  eval $cacheid=yes
65333a99fc18Smrgelse $as_nop
65343fe82118Smrg  eval $cacheid=no
65353fe82118Smrgfi
65363a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
65373fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
65383fe82118Smrgfi
65393fe82118Smrg
65403fe82118Smrg
65413fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
65423fe82118Smrg
65433fe82118Smrg		eval supported=\$$cacheid
65443a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
65453a99fc18Smrgprintf "%s\n" "$supported" >&6; }
65463fe82118Smrg		if test "$supported" = "yes" ; then
65473fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
65483fe82118Smrg			found="yes"
65493fe82118Smrg		fi
65503fe82118Smrg	fi
65513fe82118Smrg
65523fe82118Smrg
65533fe82118Smrg
65543fe82118Smrg
65553fe82118Smrg
65563fe82118Smrg
65573fe82118Smrg
65583fe82118Smrg
65593fe82118Smrg
65603fe82118Smrg
65613fe82118Smrg
65623fe82118Smrg
65633fe82118Smrg
65643fe82118Smrg
65653fe82118Smrg
65663fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
65673fe82118Smrg
65683fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
65693fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65703a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
65713a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
65723a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
65733a99fc18Smrgthen :
65743a99fc18Smrg  printf %s "(cached) " >&6
65753a99fc18Smrgelse $as_nop
65763fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65773fe82118Smrg/* end confdefs.h.  */
65783fe82118Smrgint i;
65793fe82118Smrg_ACEOF
65803a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
65813a99fc18Smrgthen :
65823fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
65833a99fc18Smrgelse $as_nop
65843fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
65853fe82118Smrgfi
65863a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
65873fe82118Smrgfi
65883a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
65893a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
65903fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
65913fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
65923fe82118Smrgfi
65933fe82118Smrg
65943fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
65953fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
65963fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65973fe82118Smrg	fi
65983fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
65993a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
66003a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
66013a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
66023a99fc18Smrgthen :
66033a99fc18Smrg  printf %s "(cached) " >&6
66043a99fc18Smrgelse $as_nop
66053fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66063fe82118Smrg/* end confdefs.h.  */
66073fe82118Smrgint i;
66083fe82118Smrg_ACEOF
66093a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
66103a99fc18Smrgthen :
66113fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
66123a99fc18Smrgelse $as_nop
66133fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
66143fe82118Smrgfi
66153a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
66163fe82118Smrgfi
66173a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
66183a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
66193fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
66203fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
66213fe82118Smrgfi
66223fe82118Smrg
66233fe82118Smrgfound="no"
66243fe82118Smrg
66253fe82118Smrg	if test $found = "no" ; then
66263e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
66273fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66283fe82118Smrg		fi
66293fe82118Smrg
66303e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
66313fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
66323fe82118Smrg		fi
66333fe82118Smrg
66343e999d35Smrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
66353fe82118Smrg
66363a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
66373a99fc18Smrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
66383e999d35Smrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
66393a99fc18Smrg		if eval test \${$cacheid+y}
66403a99fc18Smrgthen :
66413a99fc18Smrg  printf %s "(cached) " >&6
66423a99fc18Smrgelse $as_nop
66433fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66443fe82118Smrg/* end confdefs.h.  */
66453fe82118Smrgint i;
66463fe82118Smrgint
66473a99fc18Smrgmain (void)
66483fe82118Smrg{
66493fe82118Smrg
66503fe82118Smrg  ;
66513fe82118Smrg  return 0;
66523fe82118Smrg}
66533fe82118Smrg_ACEOF
66543a99fc18Smrgif ac_fn_c_try_link "$LINENO"
66553a99fc18Smrgthen :
66563fe82118Smrg  eval $cacheid=yes
66573a99fc18Smrgelse $as_nop
66583fe82118Smrg  eval $cacheid=no
66593fe82118Smrgfi
66603a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
66613fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
66623fe82118Smrgfi
66633fe82118Smrg
66643fe82118Smrg
66653fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
66663fe82118Smrg
66673fe82118Smrg		eval supported=\$$cacheid
66683a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
66693a99fc18Smrgprintf "%s\n" "$supported" >&6; }
66703fe82118Smrg		if test "$supported" = "yes" ; then
66713e999d35Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
66723fe82118Smrg			found="yes"
66733fe82118Smrg		fi
66743fe82118Smrg	fi
66753fe82118Smrg
66763fe82118Smrg
66773fe82118Smrg
66783fe82118Smrg
66793fe82118Smrg
66803fe82118Smrg
66813fe82118Smrg
66823fe82118Smrg
66833fe82118Smrg
66843fe82118Smrg
66853fe82118Smrg
66863fe82118Smrg
66873fe82118Smrg
66883fe82118Smrg
66893fe82118Smrg
66903fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
66913fe82118Smrg
66923fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
66933fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66943a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
66953a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
66963a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
66973a99fc18Smrgthen :
66983a99fc18Smrg  printf %s "(cached) " >&6
66993a99fc18Smrgelse $as_nop
67003fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67013fe82118Smrg/* end confdefs.h.  */
67023fe82118Smrgint i;
67033fe82118Smrg_ACEOF
67043a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
67053a99fc18Smrgthen :
67063fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
67073a99fc18Smrgelse $as_nop
67083fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
67093fe82118Smrgfi
67103a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
67113fe82118Smrgfi
67123a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
67133a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
67143fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
67153fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
67163fe82118Smrgfi
67173fe82118Smrg
67183fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
67193fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
67203fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67213fe82118Smrg	fi
67223fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
67233a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
67243a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
67253a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
67263a99fc18Smrgthen :
67273a99fc18Smrg  printf %s "(cached) " >&6
67283a99fc18Smrgelse $as_nop
67293fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67303fe82118Smrg/* end confdefs.h.  */
67313fe82118Smrgint i;
67323fe82118Smrg_ACEOF
67333a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
67343a99fc18Smrgthen :
67353fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
67363a99fc18Smrgelse $as_nop
67373fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
67383fe82118Smrgfi
67393a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
67403fe82118Smrgfi
67413a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
67423a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
67433fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
67443fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
67453fe82118Smrgfi
67463fe82118Smrg
67473fe82118Smrgfound="no"
67483fe82118Smrg
67493fe82118Smrg	if test $found = "no" ; then
67503e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
67513fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67523fe82118Smrg		fi
67533fe82118Smrg
67543e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
67553fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
67563fe82118Smrg		fi
67573fe82118Smrg
67583e999d35Smrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
67593fe82118Smrg
67603a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
67613a99fc18Smrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
67623e999d35Smrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
67633a99fc18Smrg		if eval test \${$cacheid+y}
67643a99fc18Smrgthen :
67653a99fc18Smrg  printf %s "(cached) " >&6
67663a99fc18Smrgelse $as_nop
67673fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67683fe82118Smrg/* end confdefs.h.  */
67693fe82118Smrgint i;
67703fe82118Smrgint
67713a99fc18Smrgmain (void)
67723fe82118Smrg{
67733fe82118Smrg
67743fe82118Smrg  ;
67753fe82118Smrg  return 0;
67763fe82118Smrg}
67773fe82118Smrg_ACEOF
67783a99fc18Smrgif ac_fn_c_try_link "$LINENO"
67793a99fc18Smrgthen :
67803fe82118Smrg  eval $cacheid=yes
67813a99fc18Smrgelse $as_nop
67823fe82118Smrg  eval $cacheid=no
67833fe82118Smrgfi
67843a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
67853fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
67863fe82118Smrgfi
67873fe82118Smrg
67883fe82118Smrg
67893fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
67903fe82118Smrg
67913fe82118Smrg		eval supported=\$$cacheid
67923a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
67933a99fc18Smrgprintf "%s\n" "$supported" >&6; }
67943fe82118Smrg		if test "$supported" = "yes" ; then
67953e999d35Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
67963fe82118Smrg			found="yes"
67973fe82118Smrg		fi
67983fe82118Smrg	fi
67993fe82118Smrg
68003fe82118Smrg
68013fe82118Smrg
68023fe82118Smrg
68033fe82118Smrg
68043fe82118Smrg
68053fe82118Smrg
68063fe82118Smrg
68073fe82118Smrg
68083fe82118Smrg
68093fe82118Smrg
68103fe82118Smrg
68113fe82118Smrg
68123fe82118Smrg
68133fe82118Smrg
68143fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
68153fe82118Smrg
68163fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
68173fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68183a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
68193a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
68203a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
68213a99fc18Smrgthen :
68223a99fc18Smrg  printf %s "(cached) " >&6
68233a99fc18Smrgelse $as_nop
68243fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68253fe82118Smrg/* end confdefs.h.  */
68263fe82118Smrgint i;
68273fe82118Smrg_ACEOF
68283a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
68293a99fc18Smrgthen :
68303fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
68313a99fc18Smrgelse $as_nop
68323fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
68333fe82118Smrgfi
68343a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
68353fe82118Smrgfi
68363a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
68373a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
68383fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
68393fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
68403fe82118Smrgfi
68413fe82118Smrg
68423fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
68433fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
68443fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68453fe82118Smrg	fi
68463fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
68473a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
68483a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
68493a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
68503a99fc18Smrgthen :
68513a99fc18Smrg  printf %s "(cached) " >&6
68523a99fc18Smrgelse $as_nop
68533fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68543fe82118Smrg/* end confdefs.h.  */
68553fe82118Smrgint i;
68563fe82118Smrg_ACEOF
68573a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
68583a99fc18Smrgthen :
68593fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
68603a99fc18Smrgelse $as_nop
68613fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
68623fe82118Smrgfi
68633a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
68643fe82118Smrgfi
68653a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
68663a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
68673fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
68683fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
68693fe82118Smrgfi
68703fe82118Smrg
68713fe82118Smrgfound="no"
68723fe82118Smrg
68733fe82118Smrg	if test $found = "no" ; then
68743e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
68753fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68763fe82118Smrg		fi
68773fe82118Smrg
68783e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
68793fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
68803fe82118Smrg		fi
68813fe82118Smrg
68823e999d35Smrg		CFLAGS="$CFLAGS -Wredundant-decls"
68833fe82118Smrg
68843a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
68853a99fc18Smrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; }
68863e999d35Smrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
68873a99fc18Smrg		if eval test \${$cacheid+y}
68883a99fc18Smrgthen :
68893a99fc18Smrg  printf %s "(cached) " >&6
68903a99fc18Smrgelse $as_nop
68913fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68923fe82118Smrg/* end confdefs.h.  */
68933fe82118Smrgint i;
68943fe82118Smrgint
68953a99fc18Smrgmain (void)
68963fe82118Smrg{
68973fe82118Smrg
68983fe82118Smrg  ;
68993fe82118Smrg  return 0;
69003fe82118Smrg}
69013fe82118Smrg_ACEOF
69023a99fc18Smrgif ac_fn_c_try_link "$LINENO"
69033a99fc18Smrgthen :
69043fe82118Smrg  eval $cacheid=yes
69053a99fc18Smrgelse $as_nop
69063fe82118Smrg  eval $cacheid=no
69073fe82118Smrgfi
69083a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
69093fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
69103fe82118Smrgfi
69113fe82118Smrg
69123fe82118Smrg
69133fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
69143fe82118Smrg
69153fe82118Smrg		eval supported=\$$cacheid
69163a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
69173a99fc18Smrgprintf "%s\n" "$supported" >&6; }
69183fe82118Smrg		if test "$supported" = "yes" ; then
69193e999d35Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
69203fe82118Smrg			found="yes"
69213fe82118Smrg		fi
69223fe82118Smrg	fi
69233fe82118Smrg
69243fe82118Smrg
69253fe82118Smrg
69263fe82118Smrg
69273fe82118Smrg
69283fe82118Smrg
69293fe82118Smrg
69303fe82118Smrg
69313fe82118Smrg
69323fe82118Smrg
69333fe82118Smrg
69343fe82118Smrg
69353fe82118Smrg
69363fe82118Smrg
69373fe82118Smrg
69383fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
69393fe82118Smrg
69403fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
69413fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69423a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
69433a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
69443a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
69453a99fc18Smrgthen :
69463a99fc18Smrg  printf %s "(cached) " >&6
69473a99fc18Smrgelse $as_nop
69483fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69493fe82118Smrg/* end confdefs.h.  */
69503fe82118Smrgint i;
69513fe82118Smrg_ACEOF
69523a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
69533a99fc18Smrgthen :
69543fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
69553a99fc18Smrgelse $as_nop
69563fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
69573fe82118Smrgfi
69583a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
69593fe82118Smrgfi
69603a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
69613a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
69623fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
69633fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
69643fe82118Smrgfi
69653fe82118Smrg
69663fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
69673fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
69683fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69693fe82118Smrg	fi
69703fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
69713a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
69723a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
69733a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
69743a99fc18Smrgthen :
69753a99fc18Smrg  printf %s "(cached) " >&6
69763a99fc18Smrgelse $as_nop
69773fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69783fe82118Smrg/* end confdefs.h.  */
69793fe82118Smrgint i;
69803fe82118Smrg_ACEOF
69813a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
69823a99fc18Smrgthen :
69833fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
69843a99fc18Smrgelse $as_nop
69853fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
69863fe82118Smrgfi
69873a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
69883fe82118Smrgfi
69893a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
69903a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
69913fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
69923fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
69933fe82118Smrgfi
69943fe82118Smrg
69953fe82118Smrgfound="no"
69963fe82118Smrg
69973fe82118Smrg	if test $found = "no" ; then
69983e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
69993fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70003fe82118Smrg		fi
70013fe82118Smrg
70023e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
70033fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
70043fe82118Smrg		fi
70053fe82118Smrg
70063e999d35Smrg		CFLAGS="$CFLAGS -Wlogical-op"
70073fe82118Smrg
70083a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
70093a99fc18Smrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; }
70103e999d35Smrg		cacheid=xorg_cv_cc_flag__Wlogical_op
70113a99fc18Smrg		if eval test \${$cacheid+y}
70123a99fc18Smrgthen :
70133a99fc18Smrg  printf %s "(cached) " >&6
70143a99fc18Smrgelse $as_nop
70153fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70163fe82118Smrg/* end confdefs.h.  */
70173fe82118Smrgint i;
70183fe82118Smrgint
70193a99fc18Smrgmain (void)
70203fe82118Smrg{
70213fe82118Smrg
70223fe82118Smrg  ;
70233fe82118Smrg  return 0;
70243fe82118Smrg}
70253fe82118Smrg_ACEOF
70263a99fc18Smrgif ac_fn_c_try_link "$LINENO"
70273a99fc18Smrgthen :
70283fe82118Smrg  eval $cacheid=yes
70293a99fc18Smrgelse $as_nop
70303fe82118Smrg  eval $cacheid=no
70313fe82118Smrgfi
70323a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
70333fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
70343fe82118Smrgfi
70353fe82118Smrg
70363fe82118Smrg
70373fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
70383fe82118Smrg
70393fe82118Smrg		eval supported=\$$cacheid
70403a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
70413a99fc18Smrgprintf "%s\n" "$supported" >&6; }
70423fe82118Smrg		if test "$supported" = "yes" ; then
70433e999d35Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
70443fe82118Smrg			found="yes"
70453fe82118Smrg		fi
70463fe82118Smrg	fi
70473fe82118Smrg
70483fe82118Smrg
70493fe82118Smrg
70503fe82118Smrg# These are currently disabled because they are noisy.  They will be enabled
70513fe82118Smrg# in the future once the codebase is sufficiently modernized to silence
70523fe82118Smrg# them.  For now, I don't want them to drown out the other warnings.
70533fe82118Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
70543fe82118Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
70553e999d35Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
70563fe82118Smrg
70573fe82118Smrg# Turn some warnings into errors, so we don't accidently get successful builds
70583fe82118Smrg# when there are problems that should be fixed.
70593fe82118Smrg
70603fe82118Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
70613fe82118Smrg
70623fe82118Smrg
70633fe82118Smrg
70643fe82118Smrg
70653fe82118Smrg
70663fe82118Smrg
70673fe82118Smrg
70683fe82118Smrg
70693fe82118Smrg
70703fe82118Smrg
70713fe82118Smrg
70723fe82118Smrg
70733fe82118Smrg
70743fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
70753fe82118Smrg
70763fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
70773fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70783a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
70793a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
70803a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
70813a99fc18Smrgthen :
70823a99fc18Smrg  printf %s "(cached) " >&6
70833a99fc18Smrgelse $as_nop
70843fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70853fe82118Smrg/* end confdefs.h.  */
70863fe82118Smrgint i;
70873fe82118Smrg_ACEOF
70883a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
70893a99fc18Smrgthen :
70903fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
70913a99fc18Smrgelse $as_nop
70923fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
70933fe82118Smrgfi
70943a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
70953fe82118Smrgfi
70963a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
70973a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
70983fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
70993fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
71003fe82118Smrgfi
71013fe82118Smrg
71023fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
71033fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
71043fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71053fe82118Smrg	fi
71063fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
71073a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
71083a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
71093a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
71103a99fc18Smrgthen :
71113a99fc18Smrg  printf %s "(cached) " >&6
71123a99fc18Smrgelse $as_nop
71133fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71143fe82118Smrg/* end confdefs.h.  */
71153fe82118Smrgint i;
71163fe82118Smrg_ACEOF
71173a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
71183a99fc18Smrgthen :
71193fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
71203a99fc18Smrgelse $as_nop
71213fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
71223fe82118Smrgfi
71233a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
71243fe82118Smrgfi
71253a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
71263a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
71273fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
71283fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
71293fe82118Smrgfi
71303fe82118Smrg
71313fe82118Smrgfound="no"
71323fe82118Smrg
71333fe82118Smrg	if test $found = "no" ; then
71343e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
71353fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71363fe82118Smrg		fi
71373fe82118Smrg
71383e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
71393fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
71403fe82118Smrg		fi
71413fe82118Smrg
71423fe82118Smrg		CFLAGS="$CFLAGS -Werror=implicit"
71433fe82118Smrg
71443a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
71453a99fc18Smrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; }
71463e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_implicit
71473a99fc18Smrg		if eval test \${$cacheid+y}
71483a99fc18Smrgthen :
71493a99fc18Smrg  printf %s "(cached) " >&6
71503a99fc18Smrgelse $as_nop
71513fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71523fe82118Smrg/* end confdefs.h.  */
71533fe82118Smrgint i;
71543fe82118Smrgint
71553a99fc18Smrgmain (void)
71563fe82118Smrg{
71573fe82118Smrg
71583fe82118Smrg  ;
71593fe82118Smrg  return 0;
71603fe82118Smrg}
71613fe82118Smrg_ACEOF
71623a99fc18Smrgif ac_fn_c_try_link "$LINENO"
71633a99fc18Smrgthen :
71643fe82118Smrg  eval $cacheid=yes
71653a99fc18Smrgelse $as_nop
71663fe82118Smrg  eval $cacheid=no
71673fe82118Smrgfi
71683a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
71693fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
71703fe82118Smrgfi
71713fe82118Smrg
71723fe82118Smrg
71733fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
71743fe82118Smrg
71753fe82118Smrg		eval supported=\$$cacheid
71763a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
71773a99fc18Smrgprintf "%s\n" "$supported" >&6; }
71783fe82118Smrg		if test "$supported" = "yes" ; then
71793fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
71803fe82118Smrg			found="yes"
71813fe82118Smrg		fi
71823fe82118Smrg	fi
71833fe82118Smrg
71843fe82118Smrg	if test $found = "no" ; then
71853e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
71863fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71873fe82118Smrg		fi
71883fe82118Smrg
71893e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
71903fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
71913fe82118Smrg		fi
71923fe82118Smrg
71933fe82118Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
71943fe82118Smrg
71953a99fc18Smrg		{ 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
71963a99fc18Smrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
71973e999d35Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
71983a99fc18Smrg		if eval test \${$cacheid+y}
71993a99fc18Smrgthen :
72003a99fc18Smrg  printf %s "(cached) " >&6
72013a99fc18Smrgelse $as_nop
72023fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72033fe82118Smrg/* end confdefs.h.  */
72043fe82118Smrgint i;
72053fe82118Smrgint
72063a99fc18Smrgmain (void)
72073fe82118Smrg{
72083fe82118Smrg
72093fe82118Smrg  ;
72103fe82118Smrg  return 0;
72113fe82118Smrg}
72123fe82118Smrg_ACEOF
72133a99fc18Smrgif ac_fn_c_try_link "$LINENO"
72143a99fc18Smrgthen :
72153fe82118Smrg  eval $cacheid=yes
72163a99fc18Smrgelse $as_nop
72173fe82118Smrg  eval $cacheid=no
72183fe82118Smrgfi
72193a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
72203fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
72213fe82118Smrgfi
72223fe82118Smrg
72233fe82118Smrg
72243fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
72253fe82118Smrg
72263fe82118Smrg		eval supported=\$$cacheid
72273a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
72283a99fc18Smrgprintf "%s\n" "$supported" >&6; }
72293fe82118Smrg		if test "$supported" = "yes" ; then
72303fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
72313fe82118Smrg			found="yes"
72323fe82118Smrg		fi
72333fe82118Smrg	fi
72343fe82118Smrg
72353fe82118Smrg
72363fe82118Smrg
72373fe82118Smrg
72383fe82118Smrg
72393fe82118Smrg
72403fe82118Smrg
72413fe82118Smrg
72423fe82118Smrg
72433fe82118Smrg
72443fe82118Smrg
72453fe82118Smrg
72463fe82118Smrg
72473fe82118Smrg
72483fe82118Smrg
72493fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
72503fe82118Smrg
72513fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
72523fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72533a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
72543a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
72553a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
72563a99fc18Smrgthen :
72573a99fc18Smrg  printf %s "(cached) " >&6
72583a99fc18Smrgelse $as_nop
72593fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72603fe82118Smrg/* end confdefs.h.  */
72613fe82118Smrgint i;
72623fe82118Smrg_ACEOF
72633a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
72643a99fc18Smrgthen :
72653fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
72663a99fc18Smrgelse $as_nop
72673fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
72683fe82118Smrgfi
72693a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
72703fe82118Smrgfi
72713a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
72723a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
72733fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
72743fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
72753fe82118Smrgfi
72763fe82118Smrg
72773fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
72783fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
72793fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72803fe82118Smrg	fi
72813fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
72823a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
72833a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
72843a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
72853a99fc18Smrgthen :
72863a99fc18Smrg  printf %s "(cached) " >&6
72873a99fc18Smrgelse $as_nop
72883fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72893fe82118Smrg/* end confdefs.h.  */
72903fe82118Smrgint i;
72913fe82118Smrg_ACEOF
72923a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
72933a99fc18Smrgthen :
72943fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
72953a99fc18Smrgelse $as_nop
72963fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
72973fe82118Smrgfi
72983a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
72993fe82118Smrgfi
73003a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
73013a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
73023fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
73033fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
73043fe82118Smrgfi
73053fe82118Smrg
73063fe82118Smrgfound="no"
73073fe82118Smrg
73083fe82118Smrg	if test $found = "no" ; then
73093e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
73103fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73113fe82118Smrg		fi
73123fe82118Smrg
73133e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
73143fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
73153fe82118Smrg		fi
73163fe82118Smrg
73173fe82118Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
73183fe82118Smrg
73193a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
73203a99fc18Smrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; }
73213e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
73223a99fc18Smrg		if eval test \${$cacheid+y}
73233a99fc18Smrgthen :
73243a99fc18Smrg  printf %s "(cached) " >&6
73253a99fc18Smrgelse $as_nop
73263fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73273fe82118Smrg/* end confdefs.h.  */
73283fe82118Smrgint i;
73293fe82118Smrgint
73303a99fc18Smrgmain (void)
73313fe82118Smrg{
73323fe82118Smrg
73333fe82118Smrg  ;
73343fe82118Smrg  return 0;
73353fe82118Smrg}
73363fe82118Smrg_ACEOF
73373a99fc18Smrgif ac_fn_c_try_link "$LINENO"
73383a99fc18Smrgthen :
73393fe82118Smrg  eval $cacheid=yes
73403a99fc18Smrgelse $as_nop
73413fe82118Smrg  eval $cacheid=no
73423fe82118Smrgfi
73433a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
73443fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
73453fe82118Smrgfi
73463fe82118Smrg
73473fe82118Smrg
73483fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
73493fe82118Smrg
73503fe82118Smrg		eval supported=\$$cacheid
73513a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
73523a99fc18Smrgprintf "%s\n" "$supported" >&6; }
73533fe82118Smrg		if test "$supported" = "yes" ; then
73543fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
73553fe82118Smrg			found="yes"
73563fe82118Smrg		fi
73573fe82118Smrg	fi
73583fe82118Smrg
73593fe82118Smrg
73603fe82118Smrg
73613fe82118Smrg
73623fe82118Smrg
73633fe82118Smrg
73643fe82118Smrg
73653fe82118Smrg
73663fe82118Smrg
73673fe82118Smrg
73683fe82118Smrg
73693fe82118Smrg
73703fe82118Smrg
73713fe82118Smrg
73723fe82118Smrg
73733fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
73743fe82118Smrg
73753fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
73763fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73773a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
73783a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
73793a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
73803a99fc18Smrgthen :
73813a99fc18Smrg  printf %s "(cached) " >&6
73823a99fc18Smrgelse $as_nop
73833fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73843fe82118Smrg/* end confdefs.h.  */
73853fe82118Smrgint i;
73863fe82118Smrg_ACEOF
73873a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
73883a99fc18Smrgthen :
73893fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
73903a99fc18Smrgelse $as_nop
73913fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
73923fe82118Smrgfi
73933a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
73943fe82118Smrgfi
73953a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
73963a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
73973fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
73983fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
73993fe82118Smrgfi
74003fe82118Smrg
74013fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
74023fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
74033fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74043fe82118Smrg	fi
74053fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
74063a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
74073a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
74083a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
74093a99fc18Smrgthen :
74103a99fc18Smrg  printf %s "(cached) " >&6
74113a99fc18Smrgelse $as_nop
74123fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74133fe82118Smrg/* end confdefs.h.  */
74143fe82118Smrgint i;
74153fe82118Smrg_ACEOF
74163a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
74173a99fc18Smrgthen :
74183fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
74193a99fc18Smrgelse $as_nop
74203fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
74213fe82118Smrgfi
74223a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
74233fe82118Smrgfi
74243a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
74253a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
74263fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
74273fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
74283fe82118Smrgfi
74293fe82118Smrg
74303fe82118Smrgfound="no"
74313fe82118Smrg
74323fe82118Smrg	if test $found = "no" ; then
74333e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
74343fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74353fe82118Smrg		fi
74363fe82118Smrg
74373e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
74383fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
74393fe82118Smrg		fi
74403fe82118Smrg
74413fe82118Smrg		CFLAGS="$CFLAGS -Werror=init-self"
74423fe82118Smrg
74433a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
74443a99fc18Smrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; }
74453e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_init_self
74463a99fc18Smrg		if eval test \${$cacheid+y}
74473a99fc18Smrgthen :
74483a99fc18Smrg  printf %s "(cached) " >&6
74493a99fc18Smrgelse $as_nop
74503fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74513fe82118Smrg/* end confdefs.h.  */
74523fe82118Smrgint i;
74533fe82118Smrgint
74543a99fc18Smrgmain (void)
74553fe82118Smrg{
74563fe82118Smrg
74573fe82118Smrg  ;
74583fe82118Smrg  return 0;
74593fe82118Smrg}
74603fe82118Smrg_ACEOF
74613a99fc18Smrgif ac_fn_c_try_link "$LINENO"
74623a99fc18Smrgthen :
74633fe82118Smrg  eval $cacheid=yes
74643a99fc18Smrgelse $as_nop
74653fe82118Smrg  eval $cacheid=no
74663fe82118Smrgfi
74673a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
74683fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
74693fe82118Smrgfi
74703fe82118Smrg
74713fe82118Smrg
74723fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
74733fe82118Smrg
74743fe82118Smrg		eval supported=\$$cacheid
74753a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
74763a99fc18Smrgprintf "%s\n" "$supported" >&6; }
74773fe82118Smrg		if test "$supported" = "yes" ; then
74783fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
74793fe82118Smrg			found="yes"
74803fe82118Smrg		fi
74813fe82118Smrg	fi
74823fe82118Smrg
74833fe82118Smrg
74843fe82118Smrg
74853fe82118Smrg
74863fe82118Smrg
74873fe82118Smrg
74883fe82118Smrg
74893fe82118Smrg
74903fe82118Smrg
74913fe82118Smrg
74923fe82118Smrg
74933fe82118Smrg
74943fe82118Smrg
74953fe82118Smrg
74963fe82118Smrg
74973fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
74983fe82118Smrg
74993fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
75003fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75013a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
75023a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
75033a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
75043a99fc18Smrgthen :
75053a99fc18Smrg  printf %s "(cached) " >&6
75063a99fc18Smrgelse $as_nop
75073fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75083fe82118Smrg/* end confdefs.h.  */
75093fe82118Smrgint i;
75103fe82118Smrg_ACEOF
75113a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
75123a99fc18Smrgthen :
75133fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
75143a99fc18Smrgelse $as_nop
75153fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
75163fe82118Smrgfi
75173a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
75183fe82118Smrgfi
75193a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
75203a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
75213fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
75223fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
75233fe82118Smrgfi
75243fe82118Smrg
75253fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
75263fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
75273fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75283fe82118Smrg	fi
75293fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
75303a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
75313a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
75323a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
75333a99fc18Smrgthen :
75343a99fc18Smrg  printf %s "(cached) " >&6
75353a99fc18Smrgelse $as_nop
75363fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75373fe82118Smrg/* end confdefs.h.  */
75383fe82118Smrgint i;
75393fe82118Smrg_ACEOF
75403a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
75413a99fc18Smrgthen :
75423fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
75433a99fc18Smrgelse $as_nop
75443fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
75453fe82118Smrgfi
75463a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
75473fe82118Smrgfi
75483a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
75493a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
75503fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
75513fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
75523fe82118Smrgfi
75533fe82118Smrg
75543fe82118Smrgfound="no"
75553fe82118Smrg
75563fe82118Smrg	if test $found = "no" ; then
75573e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
75583fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75593fe82118Smrg		fi
75603fe82118Smrg
75613e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
75623fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
75633fe82118Smrg		fi
75643fe82118Smrg
75653fe82118Smrg		CFLAGS="$CFLAGS -Werror=main"
75663fe82118Smrg
75673a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
75683a99fc18Smrgprintf %s "checking if $CC supports -Werror=main... " >&6; }
75693e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_main
75703a99fc18Smrg		if eval test \${$cacheid+y}
75713a99fc18Smrgthen :
75723a99fc18Smrg  printf %s "(cached) " >&6
75733a99fc18Smrgelse $as_nop
75743fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75753fe82118Smrg/* end confdefs.h.  */
75763fe82118Smrgint i;
75773fe82118Smrgint
75783a99fc18Smrgmain (void)
75793fe82118Smrg{
75803fe82118Smrg
75813fe82118Smrg  ;
75823fe82118Smrg  return 0;
75833fe82118Smrg}
75843fe82118Smrg_ACEOF
75853a99fc18Smrgif ac_fn_c_try_link "$LINENO"
75863a99fc18Smrgthen :
75873fe82118Smrg  eval $cacheid=yes
75883a99fc18Smrgelse $as_nop
75893fe82118Smrg  eval $cacheid=no
75903fe82118Smrgfi
75913a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
75923fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
75933fe82118Smrgfi
75943fe82118Smrg
75953fe82118Smrg
75963fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
75973fe82118Smrg
75983fe82118Smrg		eval supported=\$$cacheid
75993a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
76003a99fc18Smrgprintf "%s\n" "$supported" >&6; }
76013fe82118Smrg		if test "$supported" = "yes" ; then
76023fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
76033fe82118Smrg			found="yes"
76043fe82118Smrg		fi
76053fe82118Smrg	fi
76063fe82118Smrg
76073fe82118Smrg
76083fe82118Smrg
76093fe82118Smrg
76103fe82118Smrg
76113fe82118Smrg
76123fe82118Smrg
76133fe82118Smrg
76143fe82118Smrg
76153fe82118Smrg
76163fe82118Smrg
76173fe82118Smrg
76183fe82118Smrg
76193fe82118Smrg
76203fe82118Smrg
76213fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
76223fe82118Smrg
76233fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
76243fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76253a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
76263a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
76273a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
76283a99fc18Smrgthen :
76293a99fc18Smrg  printf %s "(cached) " >&6
76303a99fc18Smrgelse $as_nop
76313fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76323fe82118Smrg/* end confdefs.h.  */
76333fe82118Smrgint i;
76343fe82118Smrg_ACEOF
76353a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
76363a99fc18Smrgthen :
76373fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
76383a99fc18Smrgelse $as_nop
76393fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
76403fe82118Smrgfi
76413a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
76423fe82118Smrgfi
76433a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
76443a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
76453fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
76463fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
76473fe82118Smrgfi
76483fe82118Smrg
76493fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
76503fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
76513fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76523fe82118Smrg	fi
76533fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
76543a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
76553a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
76563a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
76573a99fc18Smrgthen :
76583a99fc18Smrg  printf %s "(cached) " >&6
76593a99fc18Smrgelse $as_nop
76603fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76613fe82118Smrg/* end confdefs.h.  */
76623fe82118Smrgint i;
76633fe82118Smrg_ACEOF
76643a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
76653a99fc18Smrgthen :
76663fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
76673a99fc18Smrgelse $as_nop
76683fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
76693fe82118Smrgfi
76703a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
76713fe82118Smrgfi
76723a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
76733a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
76743fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
76753fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
76763fe82118Smrgfi
76773fe82118Smrg
76783fe82118Smrgfound="no"
76793fe82118Smrg
76803fe82118Smrg	if test $found = "no" ; then
76813e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
76823fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76833fe82118Smrg		fi
76843fe82118Smrg
76853e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
76863fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
76873fe82118Smrg		fi
76883fe82118Smrg
76893fe82118Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
76903fe82118Smrg
76913a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
76923a99fc18Smrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
76933e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
76943a99fc18Smrg		if eval test \${$cacheid+y}
76953a99fc18Smrgthen :
76963a99fc18Smrg  printf %s "(cached) " >&6
76973a99fc18Smrgelse $as_nop
76983fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76993fe82118Smrg/* end confdefs.h.  */
77003fe82118Smrgint i;
77013fe82118Smrgint
77023a99fc18Smrgmain (void)
77033fe82118Smrg{
77043fe82118Smrg
77053fe82118Smrg  ;
77063fe82118Smrg  return 0;
77073fe82118Smrg}
77083fe82118Smrg_ACEOF
77093a99fc18Smrgif ac_fn_c_try_link "$LINENO"
77103a99fc18Smrgthen :
77113fe82118Smrg  eval $cacheid=yes
77123a99fc18Smrgelse $as_nop
77133fe82118Smrg  eval $cacheid=no
77143fe82118Smrgfi
77153a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
77163fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
77173fe82118Smrgfi
77183fe82118Smrg
77193fe82118Smrg
77203fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
77213fe82118Smrg
77223fe82118Smrg		eval supported=\$$cacheid
77233a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
77243a99fc18Smrgprintf "%s\n" "$supported" >&6; }
77253fe82118Smrg		if test "$supported" = "yes" ; then
77263fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
77273fe82118Smrg			found="yes"
77283fe82118Smrg		fi
77293fe82118Smrg	fi
77303fe82118Smrg
77313fe82118Smrg
77323fe82118Smrg
77333fe82118Smrg
77343fe82118Smrg
77353fe82118Smrg
77363fe82118Smrg
77373fe82118Smrg
77383fe82118Smrg
77393fe82118Smrg
77403fe82118Smrg
77413fe82118Smrg
77423fe82118Smrg
77433fe82118Smrg
77443fe82118Smrg
77453fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
77463fe82118Smrg
77473fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
77483fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77493a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
77503a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
77513a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
77523a99fc18Smrgthen :
77533a99fc18Smrg  printf %s "(cached) " >&6
77543a99fc18Smrgelse $as_nop
77553fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77563fe82118Smrg/* end confdefs.h.  */
77573fe82118Smrgint i;
77583fe82118Smrg_ACEOF
77593a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
77603a99fc18Smrgthen :
77613fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
77623a99fc18Smrgelse $as_nop
77633fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
77643fe82118Smrgfi
77653a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
77663fe82118Smrgfi
77673a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
77683a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
77693fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
77703fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
77713fe82118Smrgfi
77723fe82118Smrg
77733fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
77743fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
77753fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77763fe82118Smrg	fi
77773fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
77783a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
77793a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
77803a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
77813a99fc18Smrgthen :
77823a99fc18Smrg  printf %s "(cached) " >&6
77833a99fc18Smrgelse $as_nop
77843fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77853fe82118Smrg/* end confdefs.h.  */
77863fe82118Smrgint i;
77873fe82118Smrg_ACEOF
77883a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
77893a99fc18Smrgthen :
77903fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
77913a99fc18Smrgelse $as_nop
77923fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
77933fe82118Smrgfi
77943a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
77953fe82118Smrgfi
77963a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
77973a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
77983fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
77993fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
78003fe82118Smrgfi
78013fe82118Smrg
78023fe82118Smrgfound="no"
78033fe82118Smrg
78043fe82118Smrg	if test $found = "no" ; then
78053e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
78063fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78073fe82118Smrg		fi
78083fe82118Smrg
78093e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
78103fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
78113fe82118Smrg		fi
78123fe82118Smrg
78133fe82118Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
78143fe82118Smrg
78153a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
78163a99fc18Smrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
78173e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
78183a99fc18Smrg		if eval test \${$cacheid+y}
78193a99fc18Smrgthen :
78203a99fc18Smrg  printf %s "(cached) " >&6
78213a99fc18Smrgelse $as_nop
78223fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78233fe82118Smrg/* end confdefs.h.  */
78243fe82118Smrgint i;
78253fe82118Smrgint
78263a99fc18Smrgmain (void)
78273fe82118Smrg{
78283fe82118Smrg
78293fe82118Smrg  ;
78303fe82118Smrg  return 0;
78313fe82118Smrg}
78323fe82118Smrg_ACEOF
78333a99fc18Smrgif ac_fn_c_try_link "$LINENO"
78343a99fc18Smrgthen :
78353fe82118Smrg  eval $cacheid=yes
78363a99fc18Smrgelse $as_nop
78373fe82118Smrg  eval $cacheid=no
78383fe82118Smrgfi
78393a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
78403fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
78413fe82118Smrgfi
78423fe82118Smrg
78433fe82118Smrg
78443fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
78453fe82118Smrg
78463fe82118Smrg		eval supported=\$$cacheid
78473a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
78483a99fc18Smrgprintf "%s\n" "$supported" >&6; }
78493fe82118Smrg		if test "$supported" = "yes" ; then
78503fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
78513fe82118Smrg			found="yes"
78523fe82118Smrg		fi
78533fe82118Smrg	fi
78543fe82118Smrg
78553fe82118Smrg
78563fe82118Smrg
78573fe82118Smrg
78583fe82118Smrg
78593fe82118Smrg
78603fe82118Smrg
78613fe82118Smrg
78623fe82118Smrg
78633fe82118Smrg
78643fe82118Smrg
78653fe82118Smrg
78663fe82118Smrg
78673fe82118Smrg
78683fe82118Smrg
78693fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
78703fe82118Smrg
78713fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
78723fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78733a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
78743a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
78753a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
78763a99fc18Smrgthen :
78773a99fc18Smrg  printf %s "(cached) " >&6
78783a99fc18Smrgelse $as_nop
78793fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78803fe82118Smrg/* end confdefs.h.  */
78813fe82118Smrgint i;
78823fe82118Smrg_ACEOF
78833a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
78843a99fc18Smrgthen :
78853fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
78863a99fc18Smrgelse $as_nop
78873fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
78883fe82118Smrgfi
78893a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
78903fe82118Smrgfi
78913a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
78923a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
78933fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
78943fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
78953fe82118Smrgfi
78963fe82118Smrg
78973fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
78983fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
78993fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79003fe82118Smrg	fi
79013fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79023a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
79033a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
79043a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
79053a99fc18Smrgthen :
79063a99fc18Smrg  printf %s "(cached) " >&6
79073a99fc18Smrgelse $as_nop
79083fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79093fe82118Smrg/* end confdefs.h.  */
79103fe82118Smrgint i;
79113fe82118Smrg_ACEOF
79123a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
79133a99fc18Smrgthen :
79143fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
79153a99fc18Smrgelse $as_nop
79163fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
79173fe82118Smrgfi
79183a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
79193fe82118Smrgfi
79203a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
79213a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
79223fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
79233fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
79243fe82118Smrgfi
79253fe82118Smrg
79263fe82118Smrgfound="no"
79273fe82118Smrg
79283fe82118Smrg	if test $found = "no" ; then
79293e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
79303fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79313fe82118Smrg		fi
79323fe82118Smrg
79333e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
79343fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79353fe82118Smrg		fi
79363fe82118Smrg
79373fe82118Smrg		CFLAGS="$CFLAGS -Werror=return-type"
79383fe82118Smrg
79393a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
79403a99fc18Smrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; }
79413e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_return_type
79423a99fc18Smrg		if eval test \${$cacheid+y}
79433a99fc18Smrgthen :
79443a99fc18Smrg  printf %s "(cached) " >&6
79453a99fc18Smrgelse $as_nop
79463fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79473fe82118Smrg/* end confdefs.h.  */
79483fe82118Smrgint i;
79493fe82118Smrgint
79503a99fc18Smrgmain (void)
79513fe82118Smrg{
79523fe82118Smrg
79533fe82118Smrg  ;
79543fe82118Smrg  return 0;
79553fe82118Smrg}
79563fe82118Smrg_ACEOF
79573a99fc18Smrgif ac_fn_c_try_link "$LINENO"
79583a99fc18Smrgthen :
79593fe82118Smrg  eval $cacheid=yes
79603a99fc18Smrgelse $as_nop
79613fe82118Smrg  eval $cacheid=no
79623fe82118Smrgfi
79633a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
79643fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
79653fe82118Smrgfi
79663fe82118Smrg
79673fe82118Smrg
79683fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
79693fe82118Smrg
79703fe82118Smrg		eval supported=\$$cacheid
79713a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
79723a99fc18Smrgprintf "%s\n" "$supported" >&6; }
79733fe82118Smrg		if test "$supported" = "yes" ; then
79743fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
79753fe82118Smrg			found="yes"
79763fe82118Smrg		fi
79773fe82118Smrg	fi
79783fe82118Smrg
79793fe82118Smrg	if test $found = "no" ; then
79803e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
79813fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79823fe82118Smrg		fi
79833fe82118Smrg
79843e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
79853fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79863fe82118Smrg		fi
79873fe82118Smrg
79883fe82118Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
79893fe82118Smrg
79903a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
79913a99fc18Smrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
79923e999d35Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
79933a99fc18Smrg		if eval test \${$cacheid+y}
79943a99fc18Smrgthen :
79953a99fc18Smrg  printf %s "(cached) " >&6
79963a99fc18Smrgelse $as_nop
79973fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79983fe82118Smrg/* end confdefs.h.  */
79993fe82118Smrgint i;
80003fe82118Smrgint
80013a99fc18Smrgmain (void)
80023fe82118Smrg{
80033fe82118Smrg
80043fe82118Smrg  ;
80053fe82118Smrg  return 0;
80063fe82118Smrg}
80073fe82118Smrg_ACEOF
80083a99fc18Smrgif ac_fn_c_try_link "$LINENO"
80093a99fc18Smrgthen :
80103fe82118Smrg  eval $cacheid=yes
80113a99fc18Smrgelse $as_nop
80123fe82118Smrg  eval $cacheid=no
80133fe82118Smrgfi
80143a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
80153fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
80163fe82118Smrgfi
80173fe82118Smrg
80183fe82118Smrg
80193fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
80203fe82118Smrg
80213fe82118Smrg		eval supported=\$$cacheid
80223a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
80233a99fc18Smrgprintf "%s\n" "$supported" >&6; }
80243fe82118Smrg		if test "$supported" = "yes" ; then
80253fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
80263fe82118Smrg			found="yes"
80273fe82118Smrg		fi
80283fe82118Smrg	fi
80293fe82118Smrg
80303fe82118Smrg
80313fe82118Smrg
80323fe82118Smrg
80333fe82118Smrg
80343fe82118Smrg
80353fe82118Smrg
80363fe82118Smrg
80373fe82118Smrg
80383fe82118Smrg
80393fe82118Smrg
80403fe82118Smrg
80413fe82118Smrg
80423fe82118Smrg
80433fe82118Smrg
80443fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
80453fe82118Smrg
80463fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
80473fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80483a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
80493a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
80503a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
80513a99fc18Smrgthen :
80523a99fc18Smrg  printf %s "(cached) " >&6
80533a99fc18Smrgelse $as_nop
80543fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80553fe82118Smrg/* end confdefs.h.  */
80563fe82118Smrgint i;
80573fe82118Smrg_ACEOF
80583a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
80593a99fc18Smrgthen :
80603fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
80613a99fc18Smrgelse $as_nop
80623fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
80633fe82118Smrgfi
80643a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
80653fe82118Smrgfi
80663a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
80673a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
80683fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
80693fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
80703fe82118Smrgfi
80713fe82118Smrg
80723fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
80733fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
80743fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80753fe82118Smrg	fi
80763fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
80773a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
80783a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
80793a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
80803a99fc18Smrgthen :
80813a99fc18Smrg  printf %s "(cached) " >&6
80823a99fc18Smrgelse $as_nop
80833fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80843fe82118Smrg/* end confdefs.h.  */
80853fe82118Smrgint i;
80863fe82118Smrg_ACEOF
80873a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
80883a99fc18Smrgthen :
80893fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
80903a99fc18Smrgelse $as_nop
80913fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
80923fe82118Smrgfi
80933a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
80943fe82118Smrgfi
80953a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
80963a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
80973fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
80983fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
80993fe82118Smrgfi
81003fe82118Smrg
81013fe82118Smrgfound="no"
81023fe82118Smrg
81033fe82118Smrg	if test $found = "no" ; then
81043e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
81053fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81063fe82118Smrg		fi
81073fe82118Smrg
81083e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
81093fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
81103fe82118Smrg		fi
81113fe82118Smrg
81123fe82118Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
81133fe82118Smrg
81143a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
81153a99fc18Smrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
81163e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
81173a99fc18Smrg		if eval test \${$cacheid+y}
81183a99fc18Smrgthen :
81193a99fc18Smrg  printf %s "(cached) " >&6
81203a99fc18Smrgelse $as_nop
81213fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81223fe82118Smrg/* end confdefs.h.  */
81233fe82118Smrgint i;
81243fe82118Smrgint
81253a99fc18Smrgmain (void)
81263fe82118Smrg{
81273fe82118Smrg
81283fe82118Smrg  ;
81293fe82118Smrg  return 0;
81303fe82118Smrg}
81313fe82118Smrg_ACEOF
81323a99fc18Smrgif ac_fn_c_try_link "$LINENO"
81333a99fc18Smrgthen :
81343fe82118Smrg  eval $cacheid=yes
81353a99fc18Smrgelse $as_nop
81363fe82118Smrg  eval $cacheid=no
81373fe82118Smrgfi
81383a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
81393fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
81403fe82118Smrgfi
81413fe82118Smrg
81423fe82118Smrg
81433fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
81443fe82118Smrg
81453fe82118Smrg		eval supported=\$$cacheid
81463a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
81473a99fc18Smrgprintf "%s\n" "$supported" >&6; }
81483fe82118Smrg		if test "$supported" = "yes" ; then
81493fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
81503fe82118Smrg			found="yes"
81513fe82118Smrg		fi
81523fe82118Smrg	fi
81533fe82118Smrg
81543fe82118Smrg
81553fe82118Smrg
81563fe82118Smrg
81573fe82118Smrg
81583fe82118Smrg
81593fe82118Smrg
81603fe82118Smrg
81613fe82118Smrg
81623fe82118Smrg
81633fe82118Smrg
81643fe82118Smrg
81653fe82118Smrg
81663fe82118Smrg
81673fe82118Smrg
81683fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
81693fe82118Smrg
81703fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
81713fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81723a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
81733a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
81743a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
81753a99fc18Smrgthen :
81763a99fc18Smrg  printf %s "(cached) " >&6
81773a99fc18Smrgelse $as_nop
81783fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81793fe82118Smrg/* end confdefs.h.  */
81803fe82118Smrgint i;
81813fe82118Smrg_ACEOF
81823a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
81833a99fc18Smrgthen :
81843fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
81853a99fc18Smrgelse $as_nop
81863fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
81873fe82118Smrgfi
81883a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
81893fe82118Smrgfi
81903a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
81913a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
81923fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
81933fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
81943fe82118Smrgfi
81953fe82118Smrg
81963fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
81973fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
81983fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81993fe82118Smrg	fi
82003fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
82013a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
82023a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
82033a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
82043a99fc18Smrgthen :
82053a99fc18Smrg  printf %s "(cached) " >&6
82063a99fc18Smrgelse $as_nop
82073fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82083fe82118Smrg/* end confdefs.h.  */
82093fe82118Smrgint i;
82103fe82118Smrg_ACEOF
82113a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
82123a99fc18Smrgthen :
82133fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
82143a99fc18Smrgelse $as_nop
82153fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
82163fe82118Smrgfi
82173a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
82183fe82118Smrgfi
82193a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
82203a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
82213fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
82223fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
82233fe82118Smrgfi
82243fe82118Smrg
82253fe82118Smrgfound="no"
82263fe82118Smrg
82273fe82118Smrg	if test $found = "no" ; then
82283e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
82293fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
82303fe82118Smrg		fi
82313fe82118Smrg
82323e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
82333fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
82343fe82118Smrg		fi
82353fe82118Smrg
82363fe82118Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
82373fe82118Smrg
82383a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
82393a99fc18Smrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
82403e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
82413a99fc18Smrg		if eval test \${$cacheid+y}
82423a99fc18Smrgthen :
82433a99fc18Smrg  printf %s "(cached) " >&6
82443a99fc18Smrgelse $as_nop
82453fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82463fe82118Smrg/* end confdefs.h.  */
82473fe82118Smrgint i;
82483fe82118Smrgint
82493a99fc18Smrgmain (void)
82503fe82118Smrg{
82513fe82118Smrg
82523fe82118Smrg  ;
82533fe82118Smrg  return 0;
82543fe82118Smrg}
82553fe82118Smrg_ACEOF
82563a99fc18Smrgif ac_fn_c_try_link "$LINENO"
82573a99fc18Smrgthen :
82583fe82118Smrg  eval $cacheid=yes
82593a99fc18Smrgelse $as_nop
82603fe82118Smrg  eval $cacheid=no
82613fe82118Smrgfi
82623a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
82633fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
82643fe82118Smrgfi
82653fe82118Smrg
82663fe82118Smrg
82673fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
82683fe82118Smrg
82693fe82118Smrg		eval supported=\$$cacheid
82703a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
82713a99fc18Smrgprintf "%s\n" "$supported" >&6; }
82723fe82118Smrg		if test "$supported" = "yes" ; then
82733fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
82743fe82118Smrg			found="yes"
82753fe82118Smrg		fi
82763fe82118Smrg	fi
82773fe82118Smrg
82783fe82118Smrg
82793fe82118Smrg
82803fe82118Smrg
82813fe82118Smrg
82823fe82118Smrg
82833fe82118Smrg
82843fe82118Smrg
82853fe82118Smrg
82863fe82118Smrg
82873fe82118Smrg
82883fe82118Smrg
82893fe82118Smrg
82903fe82118Smrg
82913fe82118Smrg
82923fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
82933fe82118Smrg
82943fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
82953fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
82963a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
82973a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
82983a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
82993a99fc18Smrgthen :
83003a99fc18Smrg  printf %s "(cached) " >&6
83013a99fc18Smrgelse $as_nop
83023fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83033fe82118Smrg/* end confdefs.h.  */
83043fe82118Smrgint i;
83053fe82118Smrg_ACEOF
83063a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
83073a99fc18Smrgthen :
83083fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
83093a99fc18Smrgelse $as_nop
83103fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
83113fe82118Smrgfi
83123a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
83133fe82118Smrgfi
83143a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
83153a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
83163fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
83173fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
83183fe82118Smrgfi
83193fe82118Smrg
83203fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
83213fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
83223fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83233fe82118Smrg	fi
83243fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
83253a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
83263a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
83273a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
83283a99fc18Smrgthen :
83293a99fc18Smrg  printf %s "(cached) " >&6
83303a99fc18Smrgelse $as_nop
83313fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83323fe82118Smrg/* end confdefs.h.  */
83333fe82118Smrgint i;
83343fe82118Smrg_ACEOF
83353a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
83363a99fc18Smrgthen :
83373fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
83383a99fc18Smrgelse $as_nop
83393fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
83403fe82118Smrgfi
83413a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
83423fe82118Smrgfi
83433a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
83443a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
83453fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
83463fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
83473fe82118Smrgfi
83483fe82118Smrg
83493fe82118Smrgfound="no"
83503fe82118Smrg
83513fe82118Smrg	if test $found = "no" ; then
83523e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
83533fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83543fe82118Smrg		fi
83553fe82118Smrg
83563e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
83573fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
83583fe82118Smrg		fi
83593fe82118Smrg
83603fe82118Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
83613fe82118Smrg
83623a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
83633a99fc18Smrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; }
83643e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
83653a99fc18Smrg		if eval test \${$cacheid+y}
83663a99fc18Smrgthen :
83673a99fc18Smrg  printf %s "(cached) " >&6
83683a99fc18Smrgelse $as_nop
83693fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83703fe82118Smrg/* end confdefs.h.  */
83713fe82118Smrgint i;
83723fe82118Smrgint
83733a99fc18Smrgmain (void)
83743fe82118Smrg{
83753fe82118Smrg
83763fe82118Smrg  ;
83773fe82118Smrg  return 0;
83783fe82118Smrg}
83793fe82118Smrg_ACEOF
83803a99fc18Smrgif ac_fn_c_try_link "$LINENO"
83813a99fc18Smrgthen :
83823fe82118Smrg  eval $cacheid=yes
83833a99fc18Smrgelse $as_nop
83843fe82118Smrg  eval $cacheid=no
83853fe82118Smrgfi
83863a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
83873fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
83883fe82118Smrgfi
83893fe82118Smrg
83903fe82118Smrg
83913fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
83923fe82118Smrg
83933fe82118Smrg		eval supported=\$$cacheid
83943a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
83953a99fc18Smrgprintf "%s\n" "$supported" >&6; }
83963fe82118Smrg		if test "$supported" = "yes" ; then
83973fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
83983fe82118Smrg			found="yes"
83993fe82118Smrg		fi
84003fe82118Smrg	fi
84013fe82118Smrg
84023fe82118Smrg
84033fe82118Smrg
84043fe82118Smrg
84053fe82118Smrg
84063fe82118Smrg
84073fe82118Smrg
84083fe82118Smrg
84093fe82118Smrg
84103fe82118Smrg
84113fe82118Smrg
84123fe82118Smrg
84133fe82118Smrg
84143fe82118Smrg
84153fe82118Smrg
84163fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
84173fe82118Smrg
84183fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
84193fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84203a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
84213a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
84223a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
84233a99fc18Smrgthen :
84243a99fc18Smrg  printf %s "(cached) " >&6
84253a99fc18Smrgelse $as_nop
84263fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84273fe82118Smrg/* end confdefs.h.  */
84283fe82118Smrgint i;
84293fe82118Smrg_ACEOF
84303a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
84313a99fc18Smrgthen :
84323fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
84333a99fc18Smrgelse $as_nop
84343fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
84353fe82118Smrgfi
84363a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
84373fe82118Smrgfi
84383a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
84393a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
84403fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
84413fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
84423fe82118Smrgfi
84433fe82118Smrg
84443fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
84453fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
84463fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84473fe82118Smrg	fi
84483fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
84493a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
84503a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
84513a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
84523a99fc18Smrgthen :
84533a99fc18Smrg  printf %s "(cached) " >&6
84543a99fc18Smrgelse $as_nop
84553fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84563fe82118Smrg/* end confdefs.h.  */
84573fe82118Smrgint i;
84583fe82118Smrg_ACEOF
84593a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
84603a99fc18Smrgthen :
84613fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
84623a99fc18Smrgelse $as_nop
84633fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
84643fe82118Smrgfi
84653a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
84663fe82118Smrgfi
84673a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
84683a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
84693fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
84703fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
84713fe82118Smrgfi
84723fe82118Smrg
84733fe82118Smrgfound="no"
84743fe82118Smrg
84753fe82118Smrg	if test $found = "no" ; then
84763e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
84773fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84783fe82118Smrg		fi
84793fe82118Smrg
84803e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
84813fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
84823fe82118Smrg		fi
84833fe82118Smrg
84843fe82118Smrg		CFLAGS="$CFLAGS -Werror=address"
84853fe82118Smrg
84863a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
84873a99fc18Smrgprintf %s "checking if $CC supports -Werror=address... " >&6; }
84883e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_address
84893a99fc18Smrg		if eval test \${$cacheid+y}
84903a99fc18Smrgthen :
84913a99fc18Smrg  printf %s "(cached) " >&6
84923a99fc18Smrgelse $as_nop
84933fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84943fe82118Smrg/* end confdefs.h.  */
84953fe82118Smrgint i;
84963fe82118Smrgint
84973a99fc18Smrgmain (void)
84983fe82118Smrg{
84993fe82118Smrg
85003fe82118Smrg  ;
85013fe82118Smrg  return 0;
85023fe82118Smrg}
85033fe82118Smrg_ACEOF
85043a99fc18Smrgif ac_fn_c_try_link "$LINENO"
85053a99fc18Smrgthen :
85063fe82118Smrg  eval $cacheid=yes
85073a99fc18Smrgelse $as_nop
85083fe82118Smrg  eval $cacheid=no
85093fe82118Smrgfi
85103a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
85113fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
85123fe82118Smrgfi
85133fe82118Smrg
85143fe82118Smrg
85153fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
85163fe82118Smrg
85173fe82118Smrg		eval supported=\$$cacheid
85183a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
85193a99fc18Smrgprintf "%s\n" "$supported" >&6; }
85203fe82118Smrg		if test "$supported" = "yes" ; then
85213fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
85223fe82118Smrg			found="yes"
85233fe82118Smrg		fi
85243fe82118Smrg	fi
85253fe82118Smrg
85263fe82118Smrg
85273fe82118Smrg
85283fe82118Smrg
85293fe82118Smrg
85303fe82118Smrg
85313fe82118Smrg
85323fe82118Smrg
85333fe82118Smrg
85343fe82118Smrg
85353fe82118Smrg
85363fe82118Smrg
85373fe82118Smrg
85383fe82118Smrg
85393fe82118Smrg
85403fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
85413fe82118Smrg
85423fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
85433fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85443a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
85453a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
85463a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
85473a99fc18Smrgthen :
85483a99fc18Smrg  printf %s "(cached) " >&6
85493a99fc18Smrgelse $as_nop
85503fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85513fe82118Smrg/* end confdefs.h.  */
85523fe82118Smrgint i;
85533fe82118Smrg_ACEOF
85543a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
85553a99fc18Smrgthen :
85563fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
85573a99fc18Smrgelse $as_nop
85583fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
85593fe82118Smrgfi
85603a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
85613fe82118Smrgfi
85623a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
85633a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
85643fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
85653fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
85663fe82118Smrgfi
85673fe82118Smrg
85683fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
85693fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
85703fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85713fe82118Smrg	fi
85723fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
85733a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
85743a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
85753a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
85763a99fc18Smrgthen :
85773a99fc18Smrg  printf %s "(cached) " >&6
85783a99fc18Smrgelse $as_nop
85793fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85803fe82118Smrg/* end confdefs.h.  */
85813fe82118Smrgint i;
85823fe82118Smrg_ACEOF
85833a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
85843a99fc18Smrgthen :
85853fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
85863a99fc18Smrgelse $as_nop
85873fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
85883fe82118Smrgfi
85893a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
85903fe82118Smrgfi
85913a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
85923a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
85933fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
85943fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
85953fe82118Smrgfi
85963fe82118Smrg
85973fe82118Smrgfound="no"
85983fe82118Smrg
85993fe82118Smrg	if test $found = "no" ; then
86003e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
86013fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86023fe82118Smrg		fi
86033fe82118Smrg
86043e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
86053fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
86063fe82118Smrg		fi
86073fe82118Smrg
86083fe82118Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
86093fe82118Smrg
86103a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
86113a99fc18Smrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
86123e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
86133a99fc18Smrg		if eval test \${$cacheid+y}
86143a99fc18Smrgthen :
86153a99fc18Smrg  printf %s "(cached) " >&6
86163a99fc18Smrgelse $as_nop
86173fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86183fe82118Smrg/* end confdefs.h.  */
86193fe82118Smrgint i;
86203fe82118Smrgint
86213a99fc18Smrgmain (void)
86223fe82118Smrg{
86233fe82118Smrg
86243fe82118Smrg  ;
86253fe82118Smrg  return 0;
86263fe82118Smrg}
86273fe82118Smrg_ACEOF
86283a99fc18Smrgif ac_fn_c_try_link "$LINENO"
86293a99fc18Smrgthen :
86303fe82118Smrg  eval $cacheid=yes
86313a99fc18Smrgelse $as_nop
86323fe82118Smrg  eval $cacheid=no
86333fe82118Smrgfi
86343a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
86353fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
86363fe82118Smrgfi
86373fe82118Smrg
86383fe82118Smrg
86393fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
86403fe82118Smrg
86413fe82118Smrg		eval supported=\$$cacheid
86423a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
86433a99fc18Smrgprintf "%s\n" "$supported" >&6; }
86443fe82118Smrg		if test "$supported" = "yes" ; then
86453fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
86463fe82118Smrg			found="yes"
86473fe82118Smrg		fi
86483fe82118Smrg	fi
86493fe82118Smrg
86503fe82118Smrg	if test $found = "no" ; then
86513e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
86523fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86533fe82118Smrg		fi
86543fe82118Smrg
86553e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
86563fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
86573fe82118Smrg		fi
86583fe82118Smrg
86593fe82118Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
86603fe82118Smrg
86613a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
86623a99fc18Smrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
86633e999d35Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
86643a99fc18Smrg		if eval test \${$cacheid+y}
86653a99fc18Smrgthen :
86663a99fc18Smrg  printf %s "(cached) " >&6
86673a99fc18Smrgelse $as_nop
86683fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86693fe82118Smrg/* end confdefs.h.  */
86703fe82118Smrgint i;
86713fe82118Smrgint
86723a99fc18Smrgmain (void)
86733fe82118Smrg{
86743fe82118Smrg
86753fe82118Smrg  ;
86763fe82118Smrg  return 0;
86773fe82118Smrg}
86783fe82118Smrg_ACEOF
86793a99fc18Smrgif ac_fn_c_try_link "$LINENO"
86803a99fc18Smrgthen :
86813fe82118Smrg  eval $cacheid=yes
86823a99fc18Smrgelse $as_nop
86833fe82118Smrg  eval $cacheid=no
86843fe82118Smrgfi
86853a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
86863fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
86873fe82118Smrgfi
86883fe82118Smrg
86893fe82118Smrg
86903fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
86913fe82118Smrg
86923fe82118Smrg		eval supported=\$$cacheid
86933a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
86943a99fc18Smrgprintf "%s\n" "$supported" >&6; }
86953fe82118Smrg		if test "$supported" = "yes" ; then
86963fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
86973fe82118Smrg			found="yes"
86983fe82118Smrg		fi
86993fe82118Smrg	fi
87003fe82118Smrg
87013fe82118Smrg
87023fe82118Smrg
87033fe82118Smrg
87043fe82118Smrg
87053fe82118Smrg
87063fe82118Smrg
87073fe82118Smrg
87083fe82118Smrg
87093fe82118Smrg
87103fe82118Smrg
87113fe82118Smrg
87123fe82118Smrg
87133fe82118Smrg
87143fe82118Smrg
87153fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
87163fe82118Smrg
87173fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
87183fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87193a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
87203a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
87213a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
87223a99fc18Smrgthen :
87233a99fc18Smrg  printf %s "(cached) " >&6
87243a99fc18Smrgelse $as_nop
87253fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87263fe82118Smrg/* end confdefs.h.  */
87273fe82118Smrgint i;
87283fe82118Smrg_ACEOF
87293a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
87303a99fc18Smrgthen :
87313fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
87323a99fc18Smrgelse $as_nop
87333fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
87343fe82118Smrgfi
87353a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
87363fe82118Smrgfi
87373a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
87383a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
87393fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
87403fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
87413fe82118Smrgfi
87423fe82118Smrg
87433fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
87443fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
87453fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87463fe82118Smrg	fi
87473fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
87483a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
87493a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
87503a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
87513a99fc18Smrgthen :
87523a99fc18Smrg  printf %s "(cached) " >&6
87533a99fc18Smrgelse $as_nop
87543fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87553fe82118Smrg/* end confdefs.h.  */
87563fe82118Smrgint i;
87573fe82118Smrg_ACEOF
87583a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
87593a99fc18Smrgthen :
87603fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
87613a99fc18Smrgelse $as_nop
87623fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
87633fe82118Smrgfi
87643a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
87653fe82118Smrgfi
87663a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
87673a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
87683fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
87693fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
87703fe82118Smrgfi
87713fe82118Smrg
87723fe82118Smrgfound="no"
87733fe82118Smrg
87743fe82118Smrg	if test $found = "no" ; then
87753e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
87763fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87773fe82118Smrg		fi
87783fe82118Smrg
87793e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
87803fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
87813fe82118Smrg		fi
87823fe82118Smrg
87833fe82118Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
87843fe82118Smrg
87853a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
87863a99fc18Smrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
87873e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
87883a99fc18Smrg		if eval test \${$cacheid+y}
87893a99fc18Smrgthen :
87903a99fc18Smrg  printf %s "(cached) " >&6
87913a99fc18Smrgelse $as_nop
87923fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87933fe82118Smrg/* end confdefs.h.  */
87943fe82118Smrgint i;
87953fe82118Smrgint
87963a99fc18Smrgmain (void)
87973fe82118Smrg{
87983fe82118Smrg
87993fe82118Smrg  ;
88003fe82118Smrg  return 0;
88013fe82118Smrg}
88023fe82118Smrg_ACEOF
88033a99fc18Smrgif ac_fn_c_try_link "$LINENO"
88043a99fc18Smrgthen :
88053fe82118Smrg  eval $cacheid=yes
88063a99fc18Smrgelse $as_nop
88073fe82118Smrg  eval $cacheid=no
88083fe82118Smrgfi
88093a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
88103fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
88113fe82118Smrgfi
88123fe82118Smrg
88133fe82118Smrg
88143fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
88153fe82118Smrg
88163fe82118Smrg		eval supported=\$$cacheid
88173a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
88183a99fc18Smrgprintf "%s\n" "$supported" >&6; }
88193fe82118Smrg		if test "$supported" = "yes" ; then
88203fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
88213fe82118Smrg			found="yes"
88223fe82118Smrg		fi
88233fe82118Smrg	fi
88243fe82118Smrg
88253fe82118Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
88263fe82118Smrgelse
88273a99fc18Smrg{ 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
88283a99fc18Smrgprintf "%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;}
88293fe82118Smrg
88303fe82118Smrg
88313fe82118Smrg
88323fe82118Smrg
88333fe82118Smrg
88343fe82118Smrg
88353fe82118Smrg
88363fe82118Smrg
88373fe82118Smrg
88383fe82118Smrg
88393fe82118Smrg
88403fe82118Smrg
88413fe82118Smrg
88423fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
88433fe82118Smrg
88443fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
88453fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88463a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
88473a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
88483a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
88493a99fc18Smrgthen :
88503a99fc18Smrg  printf %s "(cached) " >&6
88513a99fc18Smrgelse $as_nop
88523fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88533fe82118Smrg/* end confdefs.h.  */
88543fe82118Smrgint i;
88553fe82118Smrg_ACEOF
88563a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
88573a99fc18Smrgthen :
88583fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
88593a99fc18Smrgelse $as_nop
88603fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
88613fe82118Smrgfi
88623a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
88633fe82118Smrgfi
88643a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
88653a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
88663fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
88673fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
88683fe82118Smrgfi
88693fe82118Smrg
88703fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
88713fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
88723fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88733fe82118Smrg	fi
88743fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
88753a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
88763a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
88773a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
88783a99fc18Smrgthen :
88793a99fc18Smrg  printf %s "(cached) " >&6
88803a99fc18Smrgelse $as_nop
88813fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88823fe82118Smrg/* end confdefs.h.  */
88833fe82118Smrgint i;
88843fe82118Smrg_ACEOF
88853a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
88863a99fc18Smrgthen :
88873fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
88883a99fc18Smrgelse $as_nop
88893fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
88903fe82118Smrgfi
88913a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
88923fe82118Smrgfi
88933a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
88943a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
88953fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
88963fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
88973fe82118Smrgfi
88983fe82118Smrg
88993fe82118Smrgfound="no"
89003fe82118Smrg
89013fe82118Smrg	if test $found = "no" ; then
89023e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
89033fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89043fe82118Smrg		fi
89053fe82118Smrg
89063e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
89073fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
89083fe82118Smrg		fi
89093fe82118Smrg
89103fe82118Smrg		CFLAGS="$CFLAGS -Wimplicit"
89113fe82118Smrg
89123a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
89133a99fc18Smrgprintf %s "checking if $CC supports -Wimplicit... " >&6; }
89143fe82118Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
89153a99fc18Smrg		if eval test \${$cacheid+y}
89163a99fc18Smrgthen :
89173a99fc18Smrg  printf %s "(cached) " >&6
89183a99fc18Smrgelse $as_nop
89193fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89203fe82118Smrg/* end confdefs.h.  */
89213fe82118Smrgint i;
89223fe82118Smrgint
89233a99fc18Smrgmain (void)
89243fe82118Smrg{
89253fe82118Smrg
89263fe82118Smrg  ;
89273fe82118Smrg  return 0;
89283fe82118Smrg}
89293fe82118Smrg_ACEOF
89303a99fc18Smrgif ac_fn_c_try_link "$LINENO"
89313a99fc18Smrgthen :
89323fe82118Smrg  eval $cacheid=yes
89333a99fc18Smrgelse $as_nop
89343fe82118Smrg  eval $cacheid=no
89353fe82118Smrgfi
89363a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
89373fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
89383fe82118Smrgfi
89393fe82118Smrg
89403fe82118Smrg
89413fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
89423fe82118Smrg
89433fe82118Smrg		eval supported=\$$cacheid
89443a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
89453a99fc18Smrgprintf "%s\n" "$supported" >&6; }
89463fe82118Smrg		if test "$supported" = "yes" ; then
89473fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
89483fe82118Smrg			found="yes"
89493fe82118Smrg		fi
89503fe82118Smrg	fi
89513fe82118Smrg
89523fe82118Smrg
89533fe82118Smrg
89543fe82118Smrg
89553fe82118Smrg
89563fe82118Smrg
89573fe82118Smrg
89583fe82118Smrg
89593fe82118Smrg
89603fe82118Smrg
89613fe82118Smrg
89623fe82118Smrg
89633fe82118Smrg
89643fe82118Smrg
89653fe82118Smrg
89663fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
89673fe82118Smrg
89683fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
89693fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89703a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
89713a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
89723a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
89733a99fc18Smrgthen :
89743a99fc18Smrg  printf %s "(cached) " >&6
89753a99fc18Smrgelse $as_nop
89763fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89773fe82118Smrg/* end confdefs.h.  */
89783fe82118Smrgint i;
89793fe82118Smrg_ACEOF
89803a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
89813a99fc18Smrgthen :
89823fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
89833a99fc18Smrgelse $as_nop
89843fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
89853fe82118Smrgfi
89863a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
89873fe82118Smrgfi
89883a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
89893a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
89903fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
89913fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
89923fe82118Smrgfi
89933fe82118Smrg
89943fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
89953fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
89963fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89973fe82118Smrg	fi
89983fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
89993a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
90003a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
90013a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
90023a99fc18Smrgthen :
90033a99fc18Smrg  printf %s "(cached) " >&6
90043a99fc18Smrgelse $as_nop
90053fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90063fe82118Smrg/* end confdefs.h.  */
90073fe82118Smrgint i;
90083fe82118Smrg_ACEOF
90093a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
90103a99fc18Smrgthen :
90113fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
90123a99fc18Smrgelse $as_nop
90133fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
90143fe82118Smrgfi
90153a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
90163fe82118Smrgfi
90173a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
90183a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
90193fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
90203fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
90213fe82118Smrgfi
90223fe82118Smrg
90233fe82118Smrgfound="no"
90243fe82118Smrg
90253fe82118Smrg	if test $found = "no" ; then
90263e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
90273fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90283fe82118Smrg		fi
90293fe82118Smrg
90303e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
90313fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
90323fe82118Smrg		fi
90333fe82118Smrg
90343fe82118Smrg		CFLAGS="$CFLAGS -Wnonnull"
90353fe82118Smrg
90363a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
90373a99fc18Smrgprintf %s "checking if $CC supports -Wnonnull... " >&6; }
90383fe82118Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
90393a99fc18Smrg		if eval test \${$cacheid+y}
90403a99fc18Smrgthen :
90413a99fc18Smrg  printf %s "(cached) " >&6
90423a99fc18Smrgelse $as_nop
90433fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90443fe82118Smrg/* end confdefs.h.  */
90453fe82118Smrgint i;
90463fe82118Smrgint
90473a99fc18Smrgmain (void)
90483fe82118Smrg{
90493fe82118Smrg
90503fe82118Smrg  ;
90513fe82118Smrg  return 0;
90523fe82118Smrg}
90533fe82118Smrg_ACEOF
90543a99fc18Smrgif ac_fn_c_try_link "$LINENO"
90553a99fc18Smrgthen :
90563fe82118Smrg  eval $cacheid=yes
90573a99fc18Smrgelse $as_nop
90583fe82118Smrg  eval $cacheid=no
90593fe82118Smrgfi
90603a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
90613fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
90623fe82118Smrgfi
90633fe82118Smrg
90643fe82118Smrg
90653fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
90663fe82118Smrg
90673fe82118Smrg		eval supported=\$$cacheid
90683a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
90693a99fc18Smrgprintf "%s\n" "$supported" >&6; }
90703fe82118Smrg		if test "$supported" = "yes" ; then
90713fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
90723fe82118Smrg			found="yes"
90733fe82118Smrg		fi
90743fe82118Smrg	fi
90753fe82118Smrg
90763fe82118Smrg
90773fe82118Smrg
90783fe82118Smrg
90793fe82118Smrg
90803fe82118Smrg
90813fe82118Smrg
90823fe82118Smrg
90833fe82118Smrg
90843fe82118Smrg
90853fe82118Smrg
90863fe82118Smrg
90873fe82118Smrg
90883fe82118Smrg
90893fe82118Smrg
90903fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
90913fe82118Smrg
90923fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
90933fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90943a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
90953a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
90963a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
90973a99fc18Smrgthen :
90983a99fc18Smrg  printf %s "(cached) " >&6
90993a99fc18Smrgelse $as_nop
91003fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91013fe82118Smrg/* end confdefs.h.  */
91023fe82118Smrgint i;
91033fe82118Smrg_ACEOF
91043a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
91053a99fc18Smrgthen :
91063fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
91073a99fc18Smrgelse $as_nop
91083fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
91093fe82118Smrgfi
91103a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
91113fe82118Smrgfi
91123a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
91133a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
91143fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
91153fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
91163fe82118Smrgfi
91173fe82118Smrg
91183fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
91193fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
91203fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91213fe82118Smrg	fi
91223fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
91233a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
91243a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
91253a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
91263a99fc18Smrgthen :
91273a99fc18Smrg  printf %s "(cached) " >&6
91283a99fc18Smrgelse $as_nop
91293fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91303fe82118Smrg/* end confdefs.h.  */
91313fe82118Smrgint i;
91323fe82118Smrg_ACEOF
91333a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
91343a99fc18Smrgthen :
91353fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
91363a99fc18Smrgelse $as_nop
91373fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
91383fe82118Smrgfi
91393a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
91403fe82118Smrgfi
91413a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
91423a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
91433fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
91443fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
91453fe82118Smrgfi
91463fe82118Smrg
91473fe82118Smrgfound="no"
91483fe82118Smrg
91493fe82118Smrg	if test $found = "no" ; then
91503e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
91513fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91523fe82118Smrg		fi
91533fe82118Smrg
91543e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
91553fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
91563fe82118Smrg		fi
91573fe82118Smrg
91583fe82118Smrg		CFLAGS="$CFLAGS -Winit-self"
91593fe82118Smrg
91603a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
91613a99fc18Smrgprintf %s "checking if $CC supports -Winit-self... " >&6; }
91623fe82118Smrg		cacheid=xorg_cv_cc_flag__Winit_self
91633a99fc18Smrg		if eval test \${$cacheid+y}
91643a99fc18Smrgthen :
91653a99fc18Smrg  printf %s "(cached) " >&6
91663a99fc18Smrgelse $as_nop
91673fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91683fe82118Smrg/* end confdefs.h.  */
91693fe82118Smrgint i;
91703fe82118Smrgint
91713a99fc18Smrgmain (void)
91723fe82118Smrg{
91733fe82118Smrg
91743fe82118Smrg  ;
91753fe82118Smrg  return 0;
91763fe82118Smrg}
91773fe82118Smrg_ACEOF
91783a99fc18Smrgif ac_fn_c_try_link "$LINENO"
91793a99fc18Smrgthen :
91803fe82118Smrg  eval $cacheid=yes
91813a99fc18Smrgelse $as_nop
91823fe82118Smrg  eval $cacheid=no
91833fe82118Smrgfi
91843a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
91853fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
91863fe82118Smrgfi
91873fe82118Smrg
91883fe82118Smrg
91893fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
91903fe82118Smrg
91913fe82118Smrg		eval supported=\$$cacheid
91923a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
91933a99fc18Smrgprintf "%s\n" "$supported" >&6; }
91943fe82118Smrg		if test "$supported" = "yes" ; then
91953fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
91963fe82118Smrg			found="yes"
91973fe82118Smrg		fi
91983fe82118Smrg	fi
91993fe82118Smrg
92003fe82118Smrg
92013fe82118Smrg
92023fe82118Smrg
92033fe82118Smrg
92043fe82118Smrg
92053fe82118Smrg
92063fe82118Smrg
92073fe82118Smrg
92083fe82118Smrg
92093fe82118Smrg
92103fe82118Smrg
92113fe82118Smrg
92123fe82118Smrg
92133fe82118Smrg
92143fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
92153fe82118Smrg
92163fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
92173fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92183a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
92193a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
92203a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
92213a99fc18Smrgthen :
92223a99fc18Smrg  printf %s "(cached) " >&6
92233a99fc18Smrgelse $as_nop
92243fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92253fe82118Smrg/* end confdefs.h.  */
92263fe82118Smrgint i;
92273fe82118Smrg_ACEOF
92283a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
92293a99fc18Smrgthen :
92303fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
92313a99fc18Smrgelse $as_nop
92323fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
92333fe82118Smrgfi
92343a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
92353fe82118Smrgfi
92363a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
92373a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
92383fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
92393fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
92403fe82118Smrgfi
92413fe82118Smrg
92423fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
92433fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
92443fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92453fe82118Smrg	fi
92463fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
92473a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
92483a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
92493a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
92503a99fc18Smrgthen :
92513a99fc18Smrg  printf %s "(cached) " >&6
92523a99fc18Smrgelse $as_nop
92533fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92543fe82118Smrg/* end confdefs.h.  */
92553fe82118Smrgint i;
92563fe82118Smrg_ACEOF
92573a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
92583a99fc18Smrgthen :
92593fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
92603a99fc18Smrgelse $as_nop
92613fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
92623fe82118Smrgfi
92633a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
92643fe82118Smrgfi
92653a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
92663a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
92673fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
92683fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
92693fe82118Smrgfi
92703fe82118Smrg
92713fe82118Smrgfound="no"
92723fe82118Smrg
92733fe82118Smrg	if test $found = "no" ; then
92743e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
92753fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92763fe82118Smrg		fi
92773fe82118Smrg
92783e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
92793fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
92803fe82118Smrg		fi
92813fe82118Smrg
92823fe82118Smrg		CFLAGS="$CFLAGS -Wmain"
92833fe82118Smrg
92843a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
92853a99fc18Smrgprintf %s "checking if $CC supports -Wmain... " >&6; }
92863fe82118Smrg		cacheid=xorg_cv_cc_flag__Wmain
92873a99fc18Smrg		if eval test \${$cacheid+y}
92883a99fc18Smrgthen :
92893a99fc18Smrg  printf %s "(cached) " >&6
92903a99fc18Smrgelse $as_nop
92913fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92923fe82118Smrg/* end confdefs.h.  */
92933fe82118Smrgint i;
92943fe82118Smrgint
92953a99fc18Smrgmain (void)
92963fe82118Smrg{
92973fe82118Smrg
92983fe82118Smrg  ;
92993fe82118Smrg  return 0;
93003fe82118Smrg}
93013fe82118Smrg_ACEOF
93023a99fc18Smrgif ac_fn_c_try_link "$LINENO"
93033a99fc18Smrgthen :
93043fe82118Smrg  eval $cacheid=yes
93053a99fc18Smrgelse $as_nop
93063fe82118Smrg  eval $cacheid=no
93073fe82118Smrgfi
93083a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
93093fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
93103fe82118Smrgfi
93113fe82118Smrg
93123fe82118Smrg
93133fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
93143fe82118Smrg
93153fe82118Smrg		eval supported=\$$cacheid
93163a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
93173a99fc18Smrgprintf "%s\n" "$supported" >&6; }
93183fe82118Smrg		if test "$supported" = "yes" ; then
93193fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
93203fe82118Smrg			found="yes"
93213fe82118Smrg		fi
93223fe82118Smrg	fi
93233fe82118Smrg
93243fe82118Smrg
93253fe82118Smrg
93263fe82118Smrg
93273fe82118Smrg
93283fe82118Smrg
93293fe82118Smrg
93303fe82118Smrg
93313fe82118Smrg
93323fe82118Smrg
93333fe82118Smrg
93343fe82118Smrg
93353fe82118Smrg
93363fe82118Smrg
93373fe82118Smrg
93383fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
93393fe82118Smrg
93403fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
93413fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93423a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
93433a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
93443a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
93453a99fc18Smrgthen :
93463a99fc18Smrg  printf %s "(cached) " >&6
93473a99fc18Smrgelse $as_nop
93483fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93493fe82118Smrg/* end confdefs.h.  */
93503fe82118Smrgint i;
93513fe82118Smrg_ACEOF
93523a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
93533a99fc18Smrgthen :
93543fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
93553a99fc18Smrgelse $as_nop
93563fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
93573fe82118Smrgfi
93583a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
93593fe82118Smrgfi
93603a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
93613a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
93623fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
93633fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
93643fe82118Smrgfi
93653fe82118Smrg
93663fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
93673fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
93683fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93693fe82118Smrg	fi
93703fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
93713a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
93723a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
93733a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
93743a99fc18Smrgthen :
93753a99fc18Smrg  printf %s "(cached) " >&6
93763a99fc18Smrgelse $as_nop
93773fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93783fe82118Smrg/* end confdefs.h.  */
93793fe82118Smrgint i;
93803fe82118Smrg_ACEOF
93813a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
93823a99fc18Smrgthen :
93833fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
93843a99fc18Smrgelse $as_nop
93853fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
93863fe82118Smrgfi
93873a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
93883fe82118Smrgfi
93893a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
93903a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
93913fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
93923fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
93933fe82118Smrgfi
93943fe82118Smrg
93953fe82118Smrgfound="no"
93963fe82118Smrg
93973fe82118Smrg	if test $found = "no" ; then
93983e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
93993fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94003fe82118Smrg		fi
94013fe82118Smrg
94023e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
94033fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
94043fe82118Smrg		fi
94053fe82118Smrg
94063fe82118Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
94073fe82118Smrg
94083a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
94093a99fc18Smrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; }
94103fe82118Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
94113a99fc18Smrg		if eval test \${$cacheid+y}
94123a99fc18Smrgthen :
94133a99fc18Smrg  printf %s "(cached) " >&6
94143a99fc18Smrgelse $as_nop
94153fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94163fe82118Smrg/* end confdefs.h.  */
94173fe82118Smrgint i;
94183fe82118Smrgint
94193a99fc18Smrgmain (void)
94203fe82118Smrg{
94213fe82118Smrg
94223fe82118Smrg  ;
94233fe82118Smrg  return 0;
94243fe82118Smrg}
94253fe82118Smrg_ACEOF
94263a99fc18Smrgif ac_fn_c_try_link "$LINENO"
94273a99fc18Smrgthen :
94283fe82118Smrg  eval $cacheid=yes
94293a99fc18Smrgelse $as_nop
94303fe82118Smrg  eval $cacheid=no
94313fe82118Smrgfi
94323a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
94333fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
94343fe82118Smrgfi
94353fe82118Smrg
94363fe82118Smrg
94373fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
94383fe82118Smrg
94393fe82118Smrg		eval supported=\$$cacheid
94403a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
94413a99fc18Smrgprintf "%s\n" "$supported" >&6; }
94423fe82118Smrg		if test "$supported" = "yes" ; then
94433fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
94443fe82118Smrg			found="yes"
94453fe82118Smrg		fi
94463fe82118Smrg	fi
94473fe82118Smrg
94483fe82118Smrg
94493fe82118Smrg
94503fe82118Smrg
94513fe82118Smrg
94523fe82118Smrg
94533fe82118Smrg
94543fe82118Smrg
94553fe82118Smrg
94563fe82118Smrg
94573fe82118Smrg
94583fe82118Smrg
94593fe82118Smrg
94603fe82118Smrg
94613fe82118Smrg
94623fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
94633fe82118Smrg
94643fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
94653fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94663a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
94673a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
94683a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
94693a99fc18Smrgthen :
94703a99fc18Smrg  printf %s "(cached) " >&6
94713a99fc18Smrgelse $as_nop
94723fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94733fe82118Smrg/* end confdefs.h.  */
94743fe82118Smrgint i;
94753fe82118Smrg_ACEOF
94763a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
94773a99fc18Smrgthen :
94783fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
94793a99fc18Smrgelse $as_nop
94803fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
94813fe82118Smrgfi
94823a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
94833fe82118Smrgfi
94843a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
94853a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
94863fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
94873fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
94883fe82118Smrgfi
94893fe82118Smrg
94903fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
94913fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
94923fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94933fe82118Smrg	fi
94943fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
94953a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
94963a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
94973a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
94983a99fc18Smrgthen :
94993a99fc18Smrg  printf %s "(cached) " >&6
95003a99fc18Smrgelse $as_nop
95013fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95023fe82118Smrg/* end confdefs.h.  */
95033fe82118Smrgint i;
95043fe82118Smrg_ACEOF
95053a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
95063a99fc18Smrgthen :
95073fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
95083a99fc18Smrgelse $as_nop
95093fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
95103fe82118Smrgfi
95113a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
95123fe82118Smrgfi
95133a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
95143a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
95153fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
95163fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
95173fe82118Smrgfi
95183fe82118Smrg
95193fe82118Smrgfound="no"
95203fe82118Smrg
95213fe82118Smrg	if test $found = "no" ; then
95223e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
95233fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95243fe82118Smrg		fi
95253fe82118Smrg
95263e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
95273fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
95283fe82118Smrg		fi
95293fe82118Smrg
95303fe82118Smrg		CFLAGS="$CFLAGS -Wsequence-point"
95313fe82118Smrg
95323a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
95333a99fc18Smrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; }
95343fe82118Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
95353a99fc18Smrg		if eval test \${$cacheid+y}
95363a99fc18Smrgthen :
95373a99fc18Smrg  printf %s "(cached) " >&6
95383a99fc18Smrgelse $as_nop
95393fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95403fe82118Smrg/* end confdefs.h.  */
95413fe82118Smrgint i;
95423fe82118Smrgint
95433a99fc18Smrgmain (void)
95443fe82118Smrg{
95453fe82118Smrg
95463fe82118Smrg  ;
95473fe82118Smrg  return 0;
95483fe82118Smrg}
95493fe82118Smrg_ACEOF
95503a99fc18Smrgif ac_fn_c_try_link "$LINENO"
95513a99fc18Smrgthen :
95523fe82118Smrg  eval $cacheid=yes
95533a99fc18Smrgelse $as_nop
95543fe82118Smrg  eval $cacheid=no
95553fe82118Smrgfi
95563a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
95573fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
95583fe82118Smrgfi
95593fe82118Smrg
95603fe82118Smrg
95613fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
95623fe82118Smrg
95633fe82118Smrg		eval supported=\$$cacheid
95643a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
95653a99fc18Smrgprintf "%s\n" "$supported" >&6; }
95663fe82118Smrg		if test "$supported" = "yes" ; then
95673fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
95683fe82118Smrg			found="yes"
95693fe82118Smrg		fi
95703fe82118Smrg	fi
95713fe82118Smrg
95723fe82118Smrg
95733fe82118Smrg
95743fe82118Smrg
95753fe82118Smrg
95763fe82118Smrg
95773fe82118Smrg
95783fe82118Smrg
95793fe82118Smrg
95803fe82118Smrg
95813fe82118Smrg
95823fe82118Smrg
95833fe82118Smrg
95843fe82118Smrg
95853fe82118Smrg
95863fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
95873fe82118Smrg
95883fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
95893fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95903a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
95913a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
95923a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
95933a99fc18Smrgthen :
95943a99fc18Smrg  printf %s "(cached) " >&6
95953a99fc18Smrgelse $as_nop
95963fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95973fe82118Smrg/* end confdefs.h.  */
95983fe82118Smrgint i;
95993fe82118Smrg_ACEOF
96003a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
96013a99fc18Smrgthen :
96023fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
96033a99fc18Smrgelse $as_nop
96043fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
96053fe82118Smrgfi
96063a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
96073fe82118Smrgfi
96083a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
96093a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
96103fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
96113fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
96123fe82118Smrgfi
96133fe82118Smrg
96143fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
96153fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
96163fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96173fe82118Smrg	fi
96183fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
96193a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
96203a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
96213a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
96223a99fc18Smrgthen :
96233a99fc18Smrg  printf %s "(cached) " >&6
96243a99fc18Smrgelse $as_nop
96253fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96263fe82118Smrg/* end confdefs.h.  */
96273fe82118Smrgint i;
96283fe82118Smrg_ACEOF
96293a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
96303a99fc18Smrgthen :
96313fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
96323a99fc18Smrgelse $as_nop
96333fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
96343fe82118Smrgfi
96353a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
96363fe82118Smrgfi
96373a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
96383a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
96393fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
96403fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
96413fe82118Smrgfi
96423fe82118Smrg
96433fe82118Smrgfound="no"
96443fe82118Smrg
96453fe82118Smrg	if test $found = "no" ; then
96463e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
96473fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96483fe82118Smrg		fi
96493fe82118Smrg
96503e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
96513fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
96523fe82118Smrg		fi
96533fe82118Smrg
96543fe82118Smrg		CFLAGS="$CFLAGS -Wreturn-type"
96553fe82118Smrg
96563a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
96573a99fc18Smrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; }
96583fe82118Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
96593a99fc18Smrg		if eval test \${$cacheid+y}
96603a99fc18Smrgthen :
96613a99fc18Smrg  printf %s "(cached) " >&6
96623a99fc18Smrgelse $as_nop
96633fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96643fe82118Smrg/* end confdefs.h.  */
96653fe82118Smrgint i;
96663fe82118Smrgint
96673a99fc18Smrgmain (void)
96683fe82118Smrg{
96693fe82118Smrg
96703fe82118Smrg  ;
96713fe82118Smrg  return 0;
96723fe82118Smrg}
96733fe82118Smrg_ACEOF
96743a99fc18Smrgif ac_fn_c_try_link "$LINENO"
96753a99fc18Smrgthen :
96763fe82118Smrg  eval $cacheid=yes
96773a99fc18Smrgelse $as_nop
96783fe82118Smrg  eval $cacheid=no
96793fe82118Smrgfi
96803a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
96813fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
96823fe82118Smrgfi
96833fe82118Smrg
96843fe82118Smrg
96853fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
96863fe82118Smrg
96873fe82118Smrg		eval supported=\$$cacheid
96883a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
96893a99fc18Smrgprintf "%s\n" "$supported" >&6; }
96903fe82118Smrg		if test "$supported" = "yes" ; then
96913fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
96923fe82118Smrg			found="yes"
96933fe82118Smrg		fi
96943fe82118Smrg	fi
96953fe82118Smrg
96963fe82118Smrg
96973fe82118Smrg
96983fe82118Smrg
96993fe82118Smrg
97003fe82118Smrg
97013fe82118Smrg
97023fe82118Smrg
97033fe82118Smrg
97043fe82118Smrg
97053fe82118Smrg
97063fe82118Smrg
97073fe82118Smrg
97083fe82118Smrg
97093fe82118Smrg
97103fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
97113fe82118Smrg
97123fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
97133fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97143a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
97153a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
97163a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
97173a99fc18Smrgthen :
97183a99fc18Smrg  printf %s "(cached) " >&6
97193a99fc18Smrgelse $as_nop
97203fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97213fe82118Smrg/* end confdefs.h.  */
97223fe82118Smrgint i;
97233fe82118Smrg_ACEOF
97243a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
97253a99fc18Smrgthen :
97263fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
97273a99fc18Smrgelse $as_nop
97283fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
97293fe82118Smrgfi
97303a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
97313fe82118Smrgfi
97323a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
97333a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
97343fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
97353fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
97363fe82118Smrgfi
97373fe82118Smrg
97383fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
97393fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
97403fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97413fe82118Smrg	fi
97423fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
97433a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
97443a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
97453a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
97463a99fc18Smrgthen :
97473a99fc18Smrg  printf %s "(cached) " >&6
97483a99fc18Smrgelse $as_nop
97493fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97503fe82118Smrg/* end confdefs.h.  */
97513fe82118Smrgint i;
97523fe82118Smrg_ACEOF
97533a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
97543a99fc18Smrgthen :
97553fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
97563a99fc18Smrgelse $as_nop
97573fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
97583fe82118Smrgfi
97593a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
97603fe82118Smrgfi
97613a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
97623a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
97633fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
97643fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
97653fe82118Smrgfi
97663fe82118Smrg
97673fe82118Smrgfound="no"
97683fe82118Smrg
97693fe82118Smrg	if test $found = "no" ; then
97703e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
97713fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97723fe82118Smrg		fi
97733fe82118Smrg
97743e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
97753fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
97763fe82118Smrg		fi
97773fe82118Smrg
97783fe82118Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
97793fe82118Smrg
97803a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
97813a99fc18Smrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; }
97823fe82118Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
97833a99fc18Smrg		if eval test \${$cacheid+y}
97843a99fc18Smrgthen :
97853a99fc18Smrg  printf %s "(cached) " >&6
97863a99fc18Smrgelse $as_nop
97873fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97883fe82118Smrg/* end confdefs.h.  */
97893fe82118Smrgint i;
97903fe82118Smrgint
97913a99fc18Smrgmain (void)
97923fe82118Smrg{
97933fe82118Smrg
97943fe82118Smrg  ;
97953fe82118Smrg  return 0;
97963fe82118Smrg}
97973fe82118Smrg_ACEOF
97983a99fc18Smrgif ac_fn_c_try_link "$LINENO"
97993a99fc18Smrgthen :
98003fe82118Smrg  eval $cacheid=yes
98013a99fc18Smrgelse $as_nop
98023fe82118Smrg  eval $cacheid=no
98033fe82118Smrgfi
98043a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
98053fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
98063fe82118Smrgfi
98073fe82118Smrg
98083fe82118Smrg
98093fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
98103fe82118Smrg
98113fe82118Smrg		eval supported=\$$cacheid
98123a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
98133a99fc18Smrgprintf "%s\n" "$supported" >&6; }
98143fe82118Smrg		if test "$supported" = "yes" ; then
98153fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
98163fe82118Smrg			found="yes"
98173fe82118Smrg		fi
98183fe82118Smrg	fi
98193fe82118Smrg
98203fe82118Smrg
98213fe82118Smrg
98223fe82118Smrg
98233fe82118Smrg
98243fe82118Smrg
98253fe82118Smrg
98263fe82118Smrg
98273fe82118Smrg
98283fe82118Smrg
98293fe82118Smrg
98303fe82118Smrg
98313fe82118Smrg
98323fe82118Smrg
98333fe82118Smrg
98343fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
98353fe82118Smrg
98363fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
98373fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98383a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
98393a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
98403a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
98413a99fc18Smrgthen :
98423a99fc18Smrg  printf %s "(cached) " >&6
98433a99fc18Smrgelse $as_nop
98443fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98453fe82118Smrg/* end confdefs.h.  */
98463fe82118Smrgint i;
98473fe82118Smrg_ACEOF
98483a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
98493a99fc18Smrgthen :
98503fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
98513a99fc18Smrgelse $as_nop
98523fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
98533fe82118Smrgfi
98543a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
98553fe82118Smrgfi
98563a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
98573a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
98583fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
98593fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
98603fe82118Smrgfi
98613fe82118Smrg
98623fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
98633fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
98643fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98653fe82118Smrg	fi
98663fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
98673a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
98683a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
98693a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
98703a99fc18Smrgthen :
98713a99fc18Smrg  printf %s "(cached) " >&6
98723a99fc18Smrgelse $as_nop
98733fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98743fe82118Smrg/* end confdefs.h.  */
98753fe82118Smrgint i;
98763fe82118Smrg_ACEOF
98773a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
98783a99fc18Smrgthen :
98793fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
98803a99fc18Smrgelse $as_nop
98813fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
98823fe82118Smrgfi
98833a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
98843fe82118Smrgfi
98853a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
98863a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
98873fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
98883fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
98893fe82118Smrgfi
98903fe82118Smrg
98913fe82118Smrgfound="no"
98923fe82118Smrg
98933fe82118Smrg	if test $found = "no" ; then
98943e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
98953fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98963fe82118Smrg		fi
98973fe82118Smrg
98983e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
98993fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
99003fe82118Smrg		fi
99013fe82118Smrg
99023fe82118Smrg		CFLAGS="$CFLAGS -Warray-bounds"
99033fe82118Smrg
99043a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
99053a99fc18Smrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; }
99063fe82118Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
99073a99fc18Smrg		if eval test \${$cacheid+y}
99083a99fc18Smrgthen :
99093a99fc18Smrg  printf %s "(cached) " >&6
99103a99fc18Smrgelse $as_nop
99113fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99123fe82118Smrg/* end confdefs.h.  */
99133fe82118Smrgint i;
99143fe82118Smrgint
99153a99fc18Smrgmain (void)
99163fe82118Smrg{
99173fe82118Smrg
99183fe82118Smrg  ;
99193fe82118Smrg  return 0;
99203fe82118Smrg}
99213fe82118Smrg_ACEOF
99223a99fc18Smrgif ac_fn_c_try_link "$LINENO"
99233a99fc18Smrgthen :
99243fe82118Smrg  eval $cacheid=yes
99253a99fc18Smrgelse $as_nop
99263fe82118Smrg  eval $cacheid=no
99273fe82118Smrgfi
99283a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
99293fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
99303fe82118Smrgfi
99313fe82118Smrg
99323fe82118Smrg
99333fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
99343fe82118Smrg
99353fe82118Smrg		eval supported=\$$cacheid
99363a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
99373a99fc18Smrgprintf "%s\n" "$supported" >&6; }
99383fe82118Smrg		if test "$supported" = "yes" ; then
99393fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
99403fe82118Smrg			found="yes"
99413fe82118Smrg		fi
99423fe82118Smrg	fi
99433fe82118Smrg
99443fe82118Smrg
99453fe82118Smrg
99463fe82118Smrg
99473fe82118Smrg
99483fe82118Smrg
99493fe82118Smrg
99503fe82118Smrg
99513fe82118Smrg
99523fe82118Smrg
99533fe82118Smrg
99543fe82118Smrg
99553fe82118Smrg
99563fe82118Smrg
99573fe82118Smrg
99583fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
99593fe82118Smrg
99603fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
99613fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
99623a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
99633a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
99643a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
99653a99fc18Smrgthen :
99663a99fc18Smrg  printf %s "(cached) " >&6
99673a99fc18Smrgelse $as_nop
99683fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99693fe82118Smrg/* end confdefs.h.  */
99703fe82118Smrgint i;
99713fe82118Smrg_ACEOF
99723a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
99733a99fc18Smrgthen :
99743fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
99753a99fc18Smrgelse $as_nop
99763fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
99773fe82118Smrgfi
99783a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
99793fe82118Smrgfi
99803a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
99813a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
99823fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
99833fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
99843fe82118Smrgfi
99853fe82118Smrg
99863fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
99873fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
99883fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
99893fe82118Smrg	fi
99903fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
99913a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
99923a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
99933a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
99943a99fc18Smrgthen :
99953a99fc18Smrg  printf %s "(cached) " >&6
99963a99fc18Smrgelse $as_nop
99973fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99983fe82118Smrg/* end confdefs.h.  */
99993fe82118Smrgint i;
100003fe82118Smrg_ACEOF
100013a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
100023a99fc18Smrgthen :
100033fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
100043a99fc18Smrgelse $as_nop
100053fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
100063fe82118Smrgfi
100073a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
100083fe82118Smrgfi
100093a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
100103a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
100113fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
100123fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
100133fe82118Smrgfi
100143fe82118Smrg
100153fe82118Smrgfound="no"
100163fe82118Smrg
100173fe82118Smrg	if test $found = "no" ; then
100183e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
100193fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
100203fe82118Smrg		fi
100213fe82118Smrg
100223e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
100233fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
100243fe82118Smrg		fi
100253fe82118Smrg
100263fe82118Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
100273fe82118Smrg
100283a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
100293a99fc18Smrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; }
100303fe82118Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
100313a99fc18Smrg		if eval test \${$cacheid+y}
100323a99fc18Smrgthen :
100333a99fc18Smrg  printf %s "(cached) " >&6
100343a99fc18Smrgelse $as_nop
100353fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100363fe82118Smrg/* end confdefs.h.  */
100373fe82118Smrgint i;
100383fe82118Smrgint
100393a99fc18Smrgmain (void)
100403fe82118Smrg{
100413fe82118Smrg
100423fe82118Smrg  ;
100433fe82118Smrg  return 0;
100443fe82118Smrg}
100453fe82118Smrg_ACEOF
100463a99fc18Smrgif ac_fn_c_try_link "$LINENO"
100473a99fc18Smrgthen :
100483fe82118Smrg  eval $cacheid=yes
100493a99fc18Smrgelse $as_nop
100503fe82118Smrg  eval $cacheid=no
100513fe82118Smrgfi
100523a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
100533fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
100543fe82118Smrgfi
100553fe82118Smrg
100563fe82118Smrg
100573fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
100583fe82118Smrg
100593fe82118Smrg		eval supported=\$$cacheid
100603a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
100613a99fc18Smrgprintf "%s\n" "$supported" >&6; }
100623fe82118Smrg		if test "$supported" = "yes" ; then
100633fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
100643fe82118Smrg			found="yes"
100653fe82118Smrg		fi
100663fe82118Smrg	fi
100673fe82118Smrg
100683fe82118Smrg
100693fe82118Smrg
100703fe82118Smrg
100713fe82118Smrg
100723fe82118Smrg
100733fe82118Smrg
100743fe82118Smrg
100753fe82118Smrg
100763fe82118Smrg
100773fe82118Smrg
100783fe82118Smrg
100793fe82118Smrg
100803fe82118Smrg
100813fe82118Smrg
100823fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
100833fe82118Smrg
100843fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
100853fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
100863a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
100873a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
100883a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
100893a99fc18Smrgthen :
100903a99fc18Smrg  printf %s "(cached) " >&6
100913a99fc18Smrgelse $as_nop
100923fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100933fe82118Smrg/* end confdefs.h.  */
100943fe82118Smrgint i;
100953fe82118Smrg_ACEOF
100963a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
100973a99fc18Smrgthen :
100983fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
100993a99fc18Smrgelse $as_nop
101003fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
101013fe82118Smrgfi
101023a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
101033fe82118Smrgfi
101043a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
101053a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
101063fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
101073fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
101083fe82118Smrgfi
101093fe82118Smrg
101103fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
101113fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
101123fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101133fe82118Smrg	fi
101143fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
101153a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
101163a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
101173a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
101183a99fc18Smrgthen :
101193a99fc18Smrg  printf %s "(cached) " >&6
101203a99fc18Smrgelse $as_nop
101213fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101223fe82118Smrg/* end confdefs.h.  */
101233fe82118Smrgint i;
101243fe82118Smrg_ACEOF
101253a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
101263a99fc18Smrgthen :
101273fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
101283a99fc18Smrgelse $as_nop
101293fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
101303fe82118Smrgfi
101313a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
101323fe82118Smrgfi
101333a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
101343a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
101353fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
101363fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
101373fe82118Smrgfi
101383fe82118Smrg
101393fe82118Smrgfound="no"
101403fe82118Smrg
101413fe82118Smrg	if test $found = "no" ; then
101423e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
101433fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101443fe82118Smrg		fi
101453fe82118Smrg
101463e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
101473fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
101483fe82118Smrg		fi
101493fe82118Smrg
101503fe82118Smrg		CFLAGS="$CFLAGS -Waddress"
101513fe82118Smrg
101523a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
101533a99fc18Smrgprintf %s "checking if $CC supports -Waddress... " >&6; }
101543fe82118Smrg		cacheid=xorg_cv_cc_flag__Waddress
101553a99fc18Smrg		if eval test \${$cacheid+y}
101563a99fc18Smrgthen :
101573a99fc18Smrg  printf %s "(cached) " >&6
101583a99fc18Smrgelse $as_nop
101593fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101603fe82118Smrg/* end confdefs.h.  */
101613fe82118Smrgint i;
101623fe82118Smrgint
101633a99fc18Smrgmain (void)
101643fe82118Smrg{
101653fe82118Smrg
101663fe82118Smrg  ;
101673fe82118Smrg  return 0;
101683fe82118Smrg}
101693fe82118Smrg_ACEOF
101703a99fc18Smrgif ac_fn_c_try_link "$LINENO"
101713a99fc18Smrgthen :
101723fe82118Smrg  eval $cacheid=yes
101733a99fc18Smrgelse $as_nop
101743fe82118Smrg  eval $cacheid=no
101753fe82118Smrgfi
101763a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
101773fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
101783fe82118Smrgfi
101793fe82118Smrg
101803fe82118Smrg
101813fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
101823fe82118Smrg
101833fe82118Smrg		eval supported=\$$cacheid
101843a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
101853a99fc18Smrgprintf "%s\n" "$supported" >&6; }
101863fe82118Smrg		if test "$supported" = "yes" ; then
101873fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
101883fe82118Smrg			found="yes"
101893fe82118Smrg		fi
101903fe82118Smrg	fi
101913fe82118Smrg
101923fe82118Smrg
101933fe82118Smrg
101943fe82118Smrg
101953fe82118Smrg
101963fe82118Smrg
101973fe82118Smrg
101983fe82118Smrg
101993fe82118Smrg
102003fe82118Smrg
102013fe82118Smrg
102023fe82118Smrg
102033fe82118Smrg
102043fe82118Smrg
102053fe82118Smrg
102063fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
102073fe82118Smrg
102083fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
102093fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102103a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
102113a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
102123a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
102133a99fc18Smrgthen :
102143a99fc18Smrg  printf %s "(cached) " >&6
102153a99fc18Smrgelse $as_nop
102163fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102173fe82118Smrg/* end confdefs.h.  */
102183fe82118Smrgint i;
102193fe82118Smrg_ACEOF
102203a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
102213a99fc18Smrgthen :
102223fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
102233a99fc18Smrgelse $as_nop
102243fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
102253fe82118Smrgfi
102263a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
102273fe82118Smrgfi
102283a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
102293a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
102303fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
102313fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
102323fe82118Smrgfi
102333fe82118Smrg
102343fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
102353fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
102363fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102373fe82118Smrg	fi
102383fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
102393a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
102403a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
102413a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
102423a99fc18Smrgthen :
102433a99fc18Smrg  printf %s "(cached) " >&6
102443a99fc18Smrgelse $as_nop
102453fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102463fe82118Smrg/* end confdefs.h.  */
102473fe82118Smrgint i;
102483fe82118Smrg_ACEOF
102493a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
102503a99fc18Smrgthen :
102513fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
102523a99fc18Smrgelse $as_nop
102533fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
102543fe82118Smrgfi
102553a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
102563fe82118Smrgfi
102573a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
102583a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
102593fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
102603fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
102613fe82118Smrgfi
102623fe82118Smrg
102633fe82118Smrgfound="no"
102643fe82118Smrg
102653fe82118Smrg	if test $found = "no" ; then
102663e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
102673fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102683fe82118Smrg		fi
102693fe82118Smrg
102703e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
102713fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
102723fe82118Smrg		fi
102733fe82118Smrg
102743fe82118Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
102753fe82118Smrg
102763a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
102773a99fc18Smrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
102783fe82118Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
102793a99fc18Smrg		if eval test \${$cacheid+y}
102803a99fc18Smrgthen :
102813a99fc18Smrg  printf %s "(cached) " >&6
102823a99fc18Smrgelse $as_nop
102833fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102843fe82118Smrg/* end confdefs.h.  */
102853fe82118Smrgint i;
102863fe82118Smrgint
102873a99fc18Smrgmain (void)
102883fe82118Smrg{
102893fe82118Smrg
102903fe82118Smrg  ;
102913fe82118Smrg  return 0;
102923fe82118Smrg}
102933fe82118Smrg_ACEOF
102943a99fc18Smrgif ac_fn_c_try_link "$LINENO"
102953a99fc18Smrgthen :
102963fe82118Smrg  eval $cacheid=yes
102973a99fc18Smrgelse $as_nop
102983fe82118Smrg  eval $cacheid=no
102993fe82118Smrgfi
103003a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
103013fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
103023fe82118Smrgfi
103033fe82118Smrg
103043fe82118Smrg
103053fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
103063fe82118Smrg
103073fe82118Smrg		eval supported=\$$cacheid
103083a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
103093a99fc18Smrgprintf "%s\n" "$supported" >&6; }
103103fe82118Smrg		if test "$supported" = "yes" ; then
103113fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
103123fe82118Smrg			found="yes"
103133fe82118Smrg		fi
103143fe82118Smrg	fi
103153fe82118Smrg
103163fe82118Smrg
103173fe82118Smrg
103183fe82118Smrg
103193fe82118Smrg
103203fe82118Smrg
103213fe82118Smrg
103223fe82118Smrg
103233fe82118Smrg
103243fe82118Smrg
103253fe82118Smrg
103263fe82118Smrg
103273fe82118Smrg
103283fe82118Smrg
103293fe82118Smrg
103303fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
103313fe82118Smrg
103323fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
103333fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
103343a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
103353a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
103363a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
103373a99fc18Smrgthen :
103383a99fc18Smrg  printf %s "(cached) " >&6
103393a99fc18Smrgelse $as_nop
103403fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103413fe82118Smrg/* end confdefs.h.  */
103423fe82118Smrgint i;
103433fe82118Smrg_ACEOF
103443a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
103453a99fc18Smrgthen :
103463fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
103473a99fc18Smrgelse $as_nop
103483fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
103493fe82118Smrgfi
103503a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
103513fe82118Smrgfi
103523a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
103533a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
103543fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
103553fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
103563fe82118Smrgfi
103573fe82118Smrg
103583fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
103593fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
103603fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
103613fe82118Smrg	fi
103623fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
103633a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
103643a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
103653a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
103663a99fc18Smrgthen :
103673a99fc18Smrg  printf %s "(cached) " >&6
103683a99fc18Smrgelse $as_nop
103693fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103703fe82118Smrg/* end confdefs.h.  */
103713fe82118Smrgint i;
103723fe82118Smrg_ACEOF
103733a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
103743a99fc18Smrgthen :
103753fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
103763a99fc18Smrgelse $as_nop
103773fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
103783fe82118Smrgfi
103793a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
103803fe82118Smrgfi
103813a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
103823a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
103833fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
103843fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
103853fe82118Smrgfi
103863fe82118Smrg
103873fe82118Smrgfound="no"
103883fe82118Smrg
103893fe82118Smrg	if test $found = "no" ; then
103903e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
103913fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
103923fe82118Smrg		fi
103933fe82118Smrg
103943e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
103953fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
103963fe82118Smrg		fi
103973fe82118Smrg
103983fe82118Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
103993fe82118Smrg
104003a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
104013a99fc18Smrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
104023fe82118Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
104033a99fc18Smrg		if eval test \${$cacheid+y}
104043a99fc18Smrgthen :
104053a99fc18Smrg  printf %s "(cached) " >&6
104063a99fc18Smrgelse $as_nop
104073fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104083fe82118Smrg/* end confdefs.h.  */
104093fe82118Smrgint i;
104103fe82118Smrgint
104113a99fc18Smrgmain (void)
104123fe82118Smrg{
104133fe82118Smrg
104143fe82118Smrg  ;
104153fe82118Smrg  return 0;
104163fe82118Smrg}
104173fe82118Smrg_ACEOF
104183a99fc18Smrgif ac_fn_c_try_link "$LINENO"
104193a99fc18Smrgthen :
104203fe82118Smrg  eval $cacheid=yes
104213a99fc18Smrgelse $as_nop
104223fe82118Smrg  eval $cacheid=no
104233fe82118Smrgfi
104243a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
104253fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
104263fe82118Smrgfi
104273fe82118Smrg
104283fe82118Smrg
104293fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
104303fe82118Smrg
104313fe82118Smrg		eval supported=\$$cacheid
104323a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
104333a99fc18Smrgprintf "%s\n" "$supported" >&6; }
104343fe82118Smrg		if test "$supported" = "yes" ; then
104353fe82118Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
104363fe82118Smrg			found="yes"
104373fe82118Smrg		fi
104383fe82118Smrg	fi
104393fe82118Smrg
104403fe82118Smrg
104413fe82118Smrgfi
104423fe82118Smrg
104433fe82118Smrg
104443fe82118Smrg
104453fe82118Smrg
104463fe82118Smrg
104473fe82118Smrg
104483fe82118Smrg
104493fe82118Smrg		CWARNFLAGS="$BASE_CFLAGS"
104503fe82118Smrg		if  test "x$GCC" = xyes ; then
104513fe82118Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
104523fe82118Smrg		fi
104533fe82118Smrg
104543fe82118Smrg
104553fe82118Smrg
104563fe82118Smrg
104573fe82118Smrg
104583fe82118Smrg
104593fe82118Smrg
104603fe82118Smrg
104613fe82118Smrg# Check whether --enable-strict-compilation was given.
104623a99fc18Smrgif test ${enable_strict_compilation+y}
104633a99fc18Smrgthen :
104643fe82118Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
104653a99fc18Smrgelse $as_nop
104663fe82118Smrg  STRICT_COMPILE=no
104673fe82118Smrgfi
104683fe82118Smrg
104693fe82118Smrg
104703fe82118Smrg
104713fe82118Smrg
104723fe82118Smrg
104733fe82118Smrg
104743fe82118SmrgSTRICT_CFLAGS=""
104753fe82118Smrg
104763fe82118Smrg
104773fe82118Smrg
104783fe82118Smrg
104793fe82118Smrg
104803fe82118Smrg
104813fe82118Smrg
104823fe82118Smrg
104833fe82118Smrg
104843fe82118Smrg
104853fe82118Smrg
104863fe82118Smrg
104873fe82118Smrg
104883fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
104893fe82118Smrg
104903fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
104913fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
104923a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
104933a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
104943a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
104953a99fc18Smrgthen :
104963a99fc18Smrg  printf %s "(cached) " >&6
104973a99fc18Smrgelse $as_nop
104983fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104993fe82118Smrg/* end confdefs.h.  */
105003fe82118Smrgint i;
105013fe82118Smrg_ACEOF
105023a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
105033a99fc18Smrgthen :
105043fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
105053a99fc18Smrgelse $as_nop
105063fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
105073fe82118Smrgfi
105083a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
105093fe82118Smrgfi
105103a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
105113a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
105123fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
105133fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
105143fe82118Smrgfi
105153fe82118Smrg
105163fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
105173fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
105183fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
105193fe82118Smrg	fi
105203fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
105213a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
105223a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
105233a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
105243a99fc18Smrgthen :
105253a99fc18Smrg  printf %s "(cached) " >&6
105263a99fc18Smrgelse $as_nop
105273fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105283fe82118Smrg/* end confdefs.h.  */
105293fe82118Smrgint i;
105303fe82118Smrg_ACEOF
105313a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
105323a99fc18Smrgthen :
105333fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
105343a99fc18Smrgelse $as_nop
105353fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
105363fe82118Smrgfi
105373a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
105383fe82118Smrgfi
105393a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
105403a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
105413fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
105423fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
105433fe82118Smrgfi
105443fe82118Smrg
105453fe82118Smrgfound="no"
105463fe82118Smrg
105473fe82118Smrg	if test $found = "no" ; then
105483e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
105493fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
105503fe82118Smrg		fi
105513fe82118Smrg
105523e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
105533fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
105543fe82118Smrg		fi
105553fe82118Smrg
105563fe82118Smrg		CFLAGS="$CFLAGS -pedantic"
105573fe82118Smrg
105583a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
105593a99fc18Smrgprintf %s "checking if $CC supports -pedantic... " >&6; }
105603fe82118Smrg		cacheid=xorg_cv_cc_flag__pedantic
105613a99fc18Smrg		if eval test \${$cacheid+y}
105623a99fc18Smrgthen :
105633a99fc18Smrg  printf %s "(cached) " >&6
105643a99fc18Smrgelse $as_nop
105653fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105663fe82118Smrg/* end confdefs.h.  */
105673fe82118Smrgint i;
105683fe82118Smrgint
105693a99fc18Smrgmain (void)
105703fe82118Smrg{
105713fe82118Smrg
105723fe82118Smrg  ;
105733fe82118Smrg  return 0;
105743fe82118Smrg}
105753fe82118Smrg_ACEOF
105763a99fc18Smrgif ac_fn_c_try_link "$LINENO"
105773a99fc18Smrgthen :
105783fe82118Smrg  eval $cacheid=yes
105793a99fc18Smrgelse $as_nop
105803fe82118Smrg  eval $cacheid=no
105813fe82118Smrgfi
105823a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
105833fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
105843fe82118Smrgfi
105853fe82118Smrg
105863fe82118Smrg
105873fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
105883fe82118Smrg
105893fe82118Smrg		eval supported=\$$cacheid
105903a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
105913a99fc18Smrgprintf "%s\n" "$supported" >&6; }
105923fe82118Smrg		if test "$supported" = "yes" ; then
105933fe82118Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
105943fe82118Smrg			found="yes"
105953fe82118Smrg		fi
105963fe82118Smrg	fi
105973fe82118Smrg
105983fe82118Smrg
105993fe82118Smrg
106003fe82118Smrg
106013fe82118Smrg
106023fe82118Smrg
106033fe82118Smrg
106043fe82118Smrg
106053fe82118Smrg
106063fe82118Smrg
106073fe82118Smrg
106083fe82118Smrg
106093fe82118Smrg
106103fe82118Smrg
106113fe82118Smrg
106123fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
106133fe82118Smrg
106143fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
106153fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
106163a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
106173a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
106183a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
106193a99fc18Smrgthen :
106203a99fc18Smrg  printf %s "(cached) " >&6
106213a99fc18Smrgelse $as_nop
106223fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106233fe82118Smrg/* end confdefs.h.  */
106243fe82118Smrgint i;
106253fe82118Smrg_ACEOF
106263a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
106273a99fc18Smrgthen :
106283fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
106293a99fc18Smrgelse $as_nop
106303fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
106313fe82118Smrgfi
106323a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
106333fe82118Smrgfi
106343a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
106353a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
106363fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
106373fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
106383fe82118Smrgfi
106393fe82118Smrg
106403fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
106413fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
106423fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
106433fe82118Smrg	fi
106443fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
106453a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
106463a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
106473a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
106483a99fc18Smrgthen :
106493a99fc18Smrg  printf %s "(cached) " >&6
106503a99fc18Smrgelse $as_nop
106513fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106523fe82118Smrg/* end confdefs.h.  */
106533fe82118Smrgint i;
106543fe82118Smrg_ACEOF
106553a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
106563a99fc18Smrgthen :
106573fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
106583a99fc18Smrgelse $as_nop
106593fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
106603fe82118Smrgfi
106613a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
106623fe82118Smrgfi
106633a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
106643a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
106653fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
106663fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
106673fe82118Smrgfi
106683fe82118Smrg
106693fe82118Smrgfound="no"
106703fe82118Smrg
106713fe82118Smrg	if test $found = "no" ; then
106723e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
106733fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
106743fe82118Smrg		fi
106753fe82118Smrg
106763e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
106773fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
106783fe82118Smrg		fi
106793fe82118Smrg
106803fe82118Smrg		CFLAGS="$CFLAGS -Werror"
106813fe82118Smrg
106823a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
106833a99fc18Smrgprintf %s "checking if $CC supports -Werror... " >&6; }
106843fe82118Smrg		cacheid=xorg_cv_cc_flag__Werror
106853a99fc18Smrg		if eval test \${$cacheid+y}
106863a99fc18Smrgthen :
106873a99fc18Smrg  printf %s "(cached) " >&6
106883a99fc18Smrgelse $as_nop
106893fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106903fe82118Smrg/* end confdefs.h.  */
106913fe82118Smrgint i;
106923fe82118Smrgint
106933a99fc18Smrgmain (void)
106943fe82118Smrg{
106953fe82118Smrg
106963fe82118Smrg  ;
106973fe82118Smrg  return 0;
106983fe82118Smrg}
106993fe82118Smrg_ACEOF
107003a99fc18Smrgif ac_fn_c_try_link "$LINENO"
107013a99fc18Smrgthen :
107023fe82118Smrg  eval $cacheid=yes
107033a99fc18Smrgelse $as_nop
107043fe82118Smrg  eval $cacheid=no
107053fe82118Smrgfi
107063a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
107073fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
107083fe82118Smrgfi
107093fe82118Smrg
107103fe82118Smrg
107113fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
107123fe82118Smrg
107133fe82118Smrg		eval supported=\$$cacheid
107143a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
107153a99fc18Smrgprintf "%s\n" "$supported" >&6; }
107163fe82118Smrg		if test "$supported" = "yes" ; then
107173fe82118Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
107183fe82118Smrg			found="yes"
107193fe82118Smrg		fi
107203fe82118Smrg	fi
107213fe82118Smrg
107223fe82118Smrg	if test $found = "no" ; then
107233e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
107243fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
107253fe82118Smrg		fi
107263fe82118Smrg
107273e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
107283fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
107293fe82118Smrg		fi
107303fe82118Smrg
107313fe82118Smrg		CFLAGS="$CFLAGS -errwarn"
107323fe82118Smrg
107333a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
107343a99fc18Smrgprintf %s "checking if $CC supports -errwarn... " >&6; }
107353fe82118Smrg		cacheid=xorg_cv_cc_flag__errwarn
107363a99fc18Smrg		if eval test \${$cacheid+y}
107373a99fc18Smrgthen :
107383a99fc18Smrg  printf %s "(cached) " >&6
107393a99fc18Smrgelse $as_nop
107403fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107413fe82118Smrg/* end confdefs.h.  */
107423fe82118Smrgint i;
107433fe82118Smrgint
107443a99fc18Smrgmain (void)
107453fe82118Smrg{
107463fe82118Smrg
107473fe82118Smrg  ;
107483fe82118Smrg  return 0;
107493fe82118Smrg}
107503fe82118Smrg_ACEOF
107513a99fc18Smrgif ac_fn_c_try_link "$LINENO"
107523a99fc18Smrgthen :
107533fe82118Smrg  eval $cacheid=yes
107543a99fc18Smrgelse $as_nop
107553fe82118Smrg  eval $cacheid=no
107563fe82118Smrgfi
107573a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
107583fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
107593fe82118Smrgfi
107603fe82118Smrg
107613fe82118Smrg
107623fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
107633fe82118Smrg
107643fe82118Smrg		eval supported=\$$cacheid
107653a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
107663a99fc18Smrgprintf "%s\n" "$supported" >&6; }
107673fe82118Smrg		if test "$supported" = "yes" ; then
107683fe82118Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
107693fe82118Smrg			found="yes"
107703fe82118Smrg		fi
107713fe82118Smrg	fi
107723fe82118Smrg
107733fe82118Smrg
107743fe82118Smrg
107753fe82118Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
107763fe82118Smrg# activate it with -Werror, so we add it here explicitly.
107773fe82118Smrg
107783fe82118Smrg
107793fe82118Smrg
107803fe82118Smrg
107813fe82118Smrg
107823fe82118Smrg
107833fe82118Smrg
107843fe82118Smrg
107853fe82118Smrg
107863fe82118Smrg
107873fe82118Smrg
107883fe82118Smrg
107893fe82118Smrg
107903fe82118Smrgxorg_testset_save_CFLAGS="$CFLAGS"
107913fe82118Smrg
107923fe82118Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
107933fe82118Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
107943a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
107953a99fc18Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
107963a99fc18Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
107973a99fc18Smrgthen :
107983a99fc18Smrg  printf %s "(cached) " >&6
107993a99fc18Smrgelse $as_nop
108003fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108013fe82118Smrg/* end confdefs.h.  */
108023fe82118Smrgint i;
108033fe82118Smrg_ACEOF
108043a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
108053a99fc18Smrgthen :
108063fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
108073a99fc18Smrgelse $as_nop
108083fe82118Smrg  xorg_cv_cc_flag_unknown_warning_option=no
108093fe82118Smrgfi
108103a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
108113fe82118Smrgfi
108123a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
108133a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
108143fe82118Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
108153fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
108163fe82118Smrgfi
108173fe82118Smrg
108183fe82118Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
108193fe82118Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
108203fe82118Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
108213fe82118Smrg	fi
108223fe82118Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
108233a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
108243a99fc18Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
108253a99fc18Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
108263a99fc18Smrgthen :
108273a99fc18Smrg  printf %s "(cached) " >&6
108283a99fc18Smrgelse $as_nop
108293fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108303fe82118Smrg/* end confdefs.h.  */
108313fe82118Smrgint i;
108323fe82118Smrg_ACEOF
108333a99fc18Smrgif ac_fn_c_try_compile "$LINENO"
108343a99fc18Smrgthen :
108353fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
108363a99fc18Smrgelse $as_nop
108373fe82118Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
108383fe82118Smrgfi
108393a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
108403fe82118Smrgfi
108413a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
108423a99fc18Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
108433fe82118Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
108443fe82118Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
108453fe82118Smrgfi
108463fe82118Smrg
108473fe82118Smrgfound="no"
108483fe82118Smrg
108493fe82118Smrg	if test $found = "no" ; then
108503e999d35Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
108513fe82118Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
108523fe82118Smrg		fi
108533fe82118Smrg
108543e999d35Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
108553fe82118Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
108563fe82118Smrg		fi
108573fe82118Smrg
108583fe82118Smrg		CFLAGS="$CFLAGS -Werror=attributes"
108593fe82118Smrg
108603a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
108613a99fc18Smrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; }
108623e999d35Smrg		cacheid=xorg_cv_cc_flag__Werror_attributes
108633a99fc18Smrg		if eval test \${$cacheid+y}
108643a99fc18Smrgthen :
108653a99fc18Smrg  printf %s "(cached) " >&6
108663a99fc18Smrgelse $as_nop
108673fe82118Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108683fe82118Smrg/* end confdefs.h.  */
108693fe82118Smrgint i;
108703fe82118Smrgint
108713a99fc18Smrgmain (void)
108723fe82118Smrg{
108733fe82118Smrg
108743fe82118Smrg  ;
108753fe82118Smrg  return 0;
108763fe82118Smrg}
108773fe82118Smrg_ACEOF
108783a99fc18Smrgif ac_fn_c_try_link "$LINENO"
108793a99fc18Smrgthen :
108803fe82118Smrg  eval $cacheid=yes
108813a99fc18Smrgelse $as_nop
108823fe82118Smrg  eval $cacheid=no
108833fe82118Smrgfi
108843a99fc18Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
108853fe82118Smrg    conftest$ac_exeext conftest.$ac_ext
108863fe82118Smrgfi
108873fe82118Smrg
108883fe82118Smrg
108893fe82118Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
108903fe82118Smrg
108913fe82118Smrg		eval supported=\$$cacheid
108923a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
108933a99fc18Smrgprintf "%s\n" "$supported" >&6; }
108943fe82118Smrg		if test "$supported" = "yes" ; then
108953fe82118Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
108963fe82118Smrg			found="yes"
108973fe82118Smrg		fi
108983fe82118Smrg	fi
108993fe82118Smrg
109003fe82118Smrg
109013fe82118Smrg
109023fe82118Smrgif test "x$STRICT_COMPILE" = "xyes"; then
109033fe82118Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
109043fe82118Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
109053fe82118Smrgfi
109063fe82118Smrg
109073fe82118Smrg
109083fe82118Smrg
109093fe82118Smrg
109103fe82118Smrg
109113fe82118Smrg
109123fe82118Smrgcat >>confdefs.h <<_ACEOF
109133fe82118Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
109143fe82118Smrg_ACEOF
109153fe82118Smrg
109163fe82118Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
109173fe82118Smrg	if test "x$PVM" = "x"; then
109183fe82118Smrg		PVM="0"
109193fe82118Smrg	fi
109203fe82118Smrg
109213a99fc18Smrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
109223fe82118Smrg
109233fe82118Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
109243fe82118Smrg	if test "x$PVP" = "x"; then
109253fe82118Smrg		PVP="0"
109263fe82118Smrg	fi
109273fe82118Smrg
109283a99fc18Smrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
109293fe82118Smrg
109303fe82118Smrg
109313fe82118Smrg
109323a99fc18SmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
109333fe82118Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
109343a99fc18Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
109353a99fc18Smrgtouch \$(top_srcdir)/ChangeLog; \
109363a99fc18Smrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
109373fe82118Smrg
109383fe82118Smrg
109393fe82118Smrg
109403fe82118Smrg
109413fe82118Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
109423fe82118SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
109433fe82118Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
109443a99fc18Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
109453a99fc18Smrgtouch \$(top_srcdir)/INSTALL; \
109463a99fc18Smrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
109473a99fc18Smrg
109483fe82118Smrg
109493fe82118Smrg
109503fe82118Smrg
109513fe82118Smrg
109523fe82118Smrg
109533a99fc18Smrgcase $host_os in
109543a99fc18Smrg    solaris*)
109553a99fc18Smrg        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
109563a99fc18Smrg        # check for a man page file found in later versions that use
109573a99fc18Smrg        # traditional section numbers instead
109583a99fc18Smrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
109593a99fc18Smrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
109603a99fc18Smrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
109613a99fc18Smrgthen :
109623a99fc18Smrg  printf %s "(cached) " >&6
109633a99fc18Smrgelse $as_nop
109643a99fc18Smrg  test "$cross_compiling" = yes &&
109653a99fc18Smrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
109663a99fc18Smrgif test -r "/usr/share/man/man7/attributes.7"; then
109673a99fc18Smrg  ac_cv_file__usr_share_man_man7_attributes_7=yes
109683a99fc18Smrgelse
109693a99fc18Smrg  ac_cv_file__usr_share_man_man7_attributes_7=no
109703a99fc18Smrgfi
109713a99fc18Smrgfi
109723a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
109733a99fc18Smrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
109743a99fc18Smrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
109753a99fc18Smrgthen :
109763a99fc18Smrg  SYSV_MAN_SECTIONS=false
109773a99fc18Smrgelse $as_nop
109783a99fc18Smrg  SYSV_MAN_SECTIONS=true
109793a99fc18Smrgfi
109803a99fc18Smrg
109813a99fc18Smrg        ;;
109823a99fc18Smrg    *) SYSV_MAN_SECTIONS=false ;;
109833a99fc18Smrgesac
109843fe82118Smrg
109853fe82118Smrgif test x$APP_MAN_SUFFIX = x    ; then
109863fe82118Smrg    APP_MAN_SUFFIX=1
109873fe82118Smrgfi
109883fe82118Smrgif test x$APP_MAN_DIR = x    ; then
109893fe82118Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
109903fe82118Smrgfi
109913fe82118Smrg
109923fe82118Smrgif test x$LIB_MAN_SUFFIX = x    ; then
109933fe82118Smrg    LIB_MAN_SUFFIX=3
109943fe82118Smrgfi
109953fe82118Smrgif test x$LIB_MAN_DIR = x    ; then
109963fe82118Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
109973fe82118Smrgfi
109983fe82118Smrg
109993fe82118Smrgif test x$FILE_MAN_SUFFIX = x    ; then
110003a99fc18Smrg    case $SYSV_MAN_SECTIONS in
110013a99fc18Smrg	true)				FILE_MAN_SUFFIX=4  ;;
110023e999d35Smrg	*)				FILE_MAN_SUFFIX=5  ;;
110033fe82118Smrg    esac
110043fe82118Smrgfi
110053fe82118Smrgif test x$FILE_MAN_DIR = x    ; then
110063fe82118Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
110073fe82118Smrgfi
110083fe82118Smrg
110093fe82118Smrgif test x$MISC_MAN_SUFFIX = x    ; then
110103a99fc18Smrg    case $SYSV_MAN_SECTIONS in
110113a99fc18Smrg	true)				MISC_MAN_SUFFIX=5  ;;
110123e999d35Smrg	*)				MISC_MAN_SUFFIX=7  ;;
110133fe82118Smrg    esac
110143fe82118Smrgfi
110153fe82118Smrgif test x$MISC_MAN_DIR = x    ; then
110163fe82118Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
110173fe82118Smrgfi
110183fe82118Smrg
110193fe82118Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
110203a99fc18Smrg    case $SYSV_MAN_SECTIONS in
110213a99fc18Smrg	true)				DRIVER_MAN_SUFFIX=7  ;;
110223e999d35Smrg	*)				DRIVER_MAN_SUFFIX=4  ;;
110233fe82118Smrg    esac
110243fe82118Smrgfi
110253fe82118Smrgif test x$DRIVER_MAN_DIR = x    ; then
110263fe82118Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
110273fe82118Smrgfi
110283fe82118Smrg
110293fe82118Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
110303a99fc18Smrg    case $SYSV_MAN_SECTIONS in
110313a99fc18Smrg	true)				ADMIN_MAN_SUFFIX=1m ;;
110323e999d35Smrg	*)				ADMIN_MAN_SUFFIX=8  ;;
110333fe82118Smrg    esac
110343fe82118Smrgfi
110353fe82118Smrgif test x$ADMIN_MAN_DIR = x    ; then
110363fe82118Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
110373fe82118Smrgfi
110383fe82118Smrg
110393fe82118Smrg
110403fe82118Smrg
110413fe82118Smrg
110423fe82118Smrg
110433fe82118Smrg
110443fe82118Smrg
110453fe82118Smrg
110463fe82118Smrg
110473fe82118Smrg
110483fe82118Smrg
110493fe82118Smrg
110503fe82118Smrg
110513fe82118Smrg
110523fe82118Smrg
110533fe82118SmrgXORG_MAN_PAGE="X Version 11"
110543fe82118Smrg
110553fe82118SmrgMAN_SUBSTS="\
110563fe82118Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
110573fe82118Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
110583fe82118Smrg	-e 's|__xservername__|Xorg|g' \
110593fe82118Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
110603fe82118Smrg	-e 's|__projectroot__|\$(prefix)|g' \
110613fe82118Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
110623fe82118Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
110633fe82118Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
110643fe82118Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
110653fe82118Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
110663fe82118Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
110673fe82118Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
110683fe82118Smrg
110693fe82118Smrg
110703fe82118Smrg
110713fe82118Smrg# Check whether --enable-silent-rules was given.
110723a99fc18Smrgif test ${enable_silent_rules+y}
110733a99fc18Smrgthen :
110743fe82118Smrg  enableval=$enable_silent_rules;
110753fe82118Smrgfi
110763fe82118Smrg
110773e999d35Smrgcase $enable_silent_rules in # (((
110783e999d35Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
110793e999d35Smrg   no) AM_DEFAULT_VERBOSITY=1;;
110803e999d35Smrg    *) AM_DEFAULT_VERBOSITY=0;;
110813fe82118Smrgesac
110823e999d35Smrgam_make=${MAKE-make}
110833a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
110843a99fc18Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
110853a99fc18Smrgif test ${am_cv_make_support_nested_variables+y}
110863a99fc18Smrgthen :
110873a99fc18Smrg  printf %s "(cached) " >&6
110883a99fc18Smrgelse $as_nop
110893a99fc18Smrg  if printf "%s\n" 'TRUE=$(BAR$(V))
110903e999d35SmrgBAR0=false
110913e999d35SmrgBAR1=true
110923e999d35SmrgV=1
110933e999d35Smrgam__doit:
110943e999d35Smrg	@$(TRUE)
110953e999d35Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
110963e999d35Smrg  am_cv_make_support_nested_variables=yes
110973e999d35Smrgelse
110983e999d35Smrg  am_cv_make_support_nested_variables=no
110993e999d35Smrgfi
111003e999d35Smrgfi
111013a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
111023a99fc18Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
111033e999d35Smrgif test $am_cv_make_support_nested_variables = yes; then
111043e999d35Smrg    AM_V='$(V)'
111053e999d35Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
111063e999d35Smrgelse
111073e999d35Smrg  AM_V=$AM_DEFAULT_VERBOSITY
111083e999d35Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
111093e999d35Smrgfi
111103fe82118SmrgAM_BACKSLASH='\'
111113fe82118Smrg
111123fe82118Smrg
111133fe82118Smrg
111143fe82118Smrg# Base set of required pkg-config packages
111153fe82118SmrgXLOGO_DEPS="sm xaw7 xmu xt >= 1.0 xext x11"
111163fe82118Smrg
111173a99fc18Smrg# Ensure pkg-config is initialized, since first call to macros is conditional
111183a99fc18Smrg
111193a99fc18Smrg
111203a99fc18Smrg
111213a99fc18Smrg
111223a99fc18Smrg
111233a99fc18Smrg
111243a99fc18Smrg
111253a99fc18Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
111263a99fc18Smrg	if test -n "$ac_tool_prefix"; then
111273a99fc18Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
111283a99fc18Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
111293a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
111303a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
111313a99fc18Smrgif test ${ac_cv_path_PKG_CONFIG+y}
111323a99fc18Smrgthen :
111333a99fc18Smrg  printf %s "(cached) " >&6
111343a99fc18Smrgelse $as_nop
111353a99fc18Smrg  case $PKG_CONFIG in
111363a99fc18Smrg  [\\/]* | ?:[\\/]*)
111373a99fc18Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
111383a99fc18Smrg  ;;
111393a99fc18Smrg  *)
111403a99fc18Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111413a99fc18Smrgfor as_dir in $PATH
111423a99fc18Smrgdo
111433a99fc18Smrg  IFS=$as_save_IFS
111443a99fc18Smrg  case $as_dir in #(((
111453a99fc18Smrg    '') as_dir=./ ;;
111463a99fc18Smrg    */) ;;
111473a99fc18Smrg    *) as_dir=$as_dir/ ;;
111483a99fc18Smrg  esac
111493a99fc18Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
111503a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
111513a99fc18Smrg    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
111523a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
111533a99fc18Smrg    break 2
111543a99fc18Smrg  fi
111553a99fc18Smrgdone
111563a99fc18Smrg  done
111573a99fc18SmrgIFS=$as_save_IFS
111583a99fc18Smrg
111593a99fc18Smrg  ;;
111603a99fc18Smrgesac
111613a99fc18Smrgfi
111623a99fc18SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
111633a99fc18Smrgif test -n "$PKG_CONFIG"; then
111643a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
111653a99fc18Smrgprintf "%s\n" "$PKG_CONFIG" >&6; }
111663a99fc18Smrgelse
111673a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
111683a99fc18Smrgprintf "%s\n" "no" >&6; }
111693a99fc18Smrgfi
111703a99fc18Smrg
111713a99fc18Smrg
111723a99fc18Smrgfi
111733a99fc18Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
111743a99fc18Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
111753a99fc18Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
111763a99fc18Smrgset dummy pkg-config; ac_word=$2
111773a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
111783a99fc18Smrgprintf %s "checking for $ac_word... " >&6; }
111793a99fc18Smrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
111803a99fc18Smrgthen :
111813a99fc18Smrg  printf %s "(cached) " >&6
111823a99fc18Smrgelse $as_nop
111833a99fc18Smrg  case $ac_pt_PKG_CONFIG in
111843a99fc18Smrg  [\\/]* | ?:[\\/]*)
111853a99fc18Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
111863a99fc18Smrg  ;;
111873a99fc18Smrg  *)
111883a99fc18Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111893a99fc18Smrgfor as_dir in $PATH
111903a99fc18Smrgdo
111913a99fc18Smrg  IFS=$as_save_IFS
111923a99fc18Smrg  case $as_dir in #(((
111933a99fc18Smrg    '') as_dir=./ ;;
111943a99fc18Smrg    */) ;;
111953a99fc18Smrg    *) as_dir=$as_dir/ ;;
111963a99fc18Smrg  esac
111973a99fc18Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
111983a99fc18Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
111993a99fc18Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
112003a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
112013a99fc18Smrg    break 2
112023a99fc18Smrg  fi
112033a99fc18Smrgdone
112043a99fc18Smrg  done
112053a99fc18SmrgIFS=$as_save_IFS
112063a99fc18Smrg
112073a99fc18Smrg  ;;
112083a99fc18Smrgesac
112093a99fc18Smrgfi
112103a99fc18Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
112113a99fc18Smrgif test -n "$ac_pt_PKG_CONFIG"; then
112123a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
112133a99fc18Smrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
112143a99fc18Smrgelse
112153a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
112163a99fc18Smrgprintf "%s\n" "no" >&6; }
112173a99fc18Smrgfi
112183a99fc18Smrg
112193a99fc18Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
112203a99fc18Smrg    PKG_CONFIG=""
112213a99fc18Smrg  else
112223a99fc18Smrg    case $cross_compiling:$ac_tool_warned in
112233a99fc18Smrgyes:)
112243a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
112253a99fc18Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
112263a99fc18Smrgac_tool_warned=yes ;;
112273a99fc18Smrgesac
112283a99fc18Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
112293a99fc18Smrg  fi
112303a99fc18Smrgelse
112313a99fc18Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
112323a99fc18Smrgfi
112333a99fc18Smrg
112343a99fc18Smrgfi
112353a99fc18Smrgif test -n "$PKG_CONFIG"; then
112363a99fc18Smrg	_pkg_min_version=0.9.0
112373a99fc18Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
112383a99fc18Smrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
112393a99fc18Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
112403a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
112413a99fc18Smrgprintf "%s\n" "yes" >&6; }
112423a99fc18Smrg	else
112433a99fc18Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
112443a99fc18Smrgprintf "%s\n" "no" >&6; }
112453a99fc18Smrg		PKG_CONFIG=""
112463a99fc18Smrg	fi
112473a99fc18Smrgfi
112483fe82118Smrg
112493a99fc18Smrg# Use render & xft2 to draw logo?
112503a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use render & xft2 to draw logo" >&5
112513a99fc18Smrgprintf %s "checking whether to use render & xft2 to draw logo... " >&6; }
112523fe82118Smrg
112533fe82118Smrg# Check whether --with-render was given.
112543a99fc18Smrgif test ${with_render+y}
112553a99fc18Smrgthen :
112563fe82118Smrg  withval=$with_render; USE_RENDER="$withval"
112573a99fc18Smrgelse $as_nop
11258f9d592e5Smrg  USE_RENDER="try"
112593da7aff1Smrgfi
112603da7aff1Smrg
112613da7aff1Smrg
11262f9d592e5Smrgif test "x$USE_RENDER" = "xtry" ; then
11263f9d592e5Smrg	if test -n "$PKG_CONFIG" && \
112643a99fc18Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5
11265f9d592e5Smrg  ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
11266f9d592e5Smrg  ac_status=$?
112673a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11268f9d592e5Smrg  test $ac_status = 0; }; then
11269f9d592e5Smrg  USE_RENDER="yes"
11270f9d592e5Smrgelse
11271f9d592e5Smrg  USE_RENDER="no"
11272f9d592e5Smrgfi
11273f9d592e5Smrgfi
112743a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_RENDER" >&5
112753a99fc18Smrgprintf "%s\n" "$USE_RENDER" >&6; }
112763da7aff1Smrg
11277f9d592e5Smrgif test "x$USE_RENDER" = "xyes" ; then
11278f9d592e5Smrg	XLOGO_DEPS="xft xrender $XLOGO_DEPS"
11279f9d592e5Smrg
11280f9d592e5Smrg
112813a99fc18Smrgprintf "%s\n" "#define XRENDER 1" >>confdefs.h
112823da7aff1Smrg
112833da7aff1Smrgfi
112843fe82118Smrg if test "x$USE_RENDER" = "xyes"; then
112853fe82118Smrg  USE_RENDER_TRUE=
112863fe82118Smrg  USE_RENDER_FALSE='#'
112873fe82118Smrgelse
112883fe82118Smrg  USE_RENDER_TRUE='#'
112893fe82118Smrg  USE_RENDER_FALSE=
112903fe82118Smrgfi
112913fe82118Smrg
112923da7aff1Smrg
112933a99fc18Smrg# Use XKB to ring the bell?
112943a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use XkbStdBell" >&5
112953a99fc18Smrgprintf %s "checking whether to use XkbStdBell... " >&6; }
112963a99fc18Smrg
112973a99fc18Smrg# Check whether --with-xkb was given.
112983a99fc18Smrgif test ${with_xkb+y}
112993a99fc18Smrgthen :
113003a99fc18Smrg  withval=$with_xkb; USE_XKB="$withval"
113013a99fc18Smrgelse $as_nop
113023a99fc18Smrg  USE_XKB="try"
113033a99fc18Smrgfi
113043a99fc18Smrg
113053a99fc18Smrg
113063a99fc18Smrgif test "x$USE_XKB" = "xtry" ; then
113073a99fc18Smrg	if test -n "$PKG_CONFIG" && \
113083a99fc18Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5
113093a99fc18Smrg  ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
113103a99fc18Smrg  ac_status=$?
113113a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
113123a99fc18Smrg  test $ac_status = 0; }; then
113133a99fc18Smrg  USE_XKB="yes"
113143a99fc18Smrgelse
113153a99fc18Smrg  USE_XKB="no"
113163a99fc18Smrgfi
113173a99fc18Smrgfi
113183a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_XKB" >&5
113193a99fc18Smrgprintf "%s\n" "$USE_XKB" >&6; }
113203a99fc18Smrg
113213a99fc18Smrgif test "x$USE_XKB" = "xyes" ; then
113223a99fc18Smrg	XLOGO_DEPS="xkbfile $XLOGO_DEPS"
113233a99fc18Smrg
113243a99fc18Smrg
113253a99fc18Smrgprintf "%s\n" "#define XKB 1" >>confdefs.h
113263a99fc18Smrg
113273a99fc18Smrgfi
113283a99fc18Smrg
113293da7aff1Smrg
113303da7aff1Smrgpkg_failed=no
113313a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLOGO" >&5
113323a99fc18Smrgprintf %s "checking for XLOGO... " >&6; }
11333e531b1a7Smrg
11334f9d592e5Smrgif test -n "$XLOGO_CFLAGS"; then
11335f9d592e5Smrg    pkg_cv_XLOGO_CFLAGS="$XLOGO_CFLAGS"
11336e531b1a7Smrg elif test -n "$PKG_CONFIG"; then
11337e531b1a7Smrg    if test -n "$PKG_CONFIG" && \
113383a99fc18Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XLOGO_DEPS\""; } >&5
11339f9d592e5Smrg  ($PKG_CONFIG --exists --print-errors "$XLOGO_DEPS") 2>&5
113403da7aff1Smrg  ac_status=$?
113413a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11342e531b1a7Smrg  test $ac_status = 0; }; then
11343f9d592e5Smrg  pkg_cv_XLOGO_CFLAGS=`$PKG_CONFIG --cflags "$XLOGO_DEPS" 2>/dev/null`
113443e999d35Smrg		      test "x$?" != "x0" && pkg_failed=yes
113453da7aff1Smrgelse
113463da7aff1Smrg  pkg_failed=yes
113473da7aff1Smrgfi
11348e531b1a7Smrg else
11349e531b1a7Smrg    pkg_failed=untried
113503da7aff1Smrgfi
11351f9d592e5Smrgif test -n "$XLOGO_LIBS"; then
11352f9d592e5Smrg    pkg_cv_XLOGO_LIBS="$XLOGO_LIBS"
11353e531b1a7Smrg elif test -n "$PKG_CONFIG"; then
11354e531b1a7Smrg    if test -n "$PKG_CONFIG" && \
113553a99fc18Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XLOGO_DEPS\""; } >&5
11356f9d592e5Smrg  ($PKG_CONFIG --exists --print-errors "$XLOGO_DEPS") 2>&5
113573da7aff1Smrg  ac_status=$?
113583a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11359e531b1a7Smrg  test $ac_status = 0; }; then
11360f9d592e5Smrg  pkg_cv_XLOGO_LIBS=`$PKG_CONFIG --libs "$XLOGO_DEPS" 2>/dev/null`
113613e999d35Smrg		      test "x$?" != "x0" && pkg_failed=yes
113623da7aff1Smrgelse
113633da7aff1Smrg  pkg_failed=yes
113643da7aff1Smrgfi
11365e531b1a7Smrg else
11366e531b1a7Smrg    pkg_failed=untried
113673da7aff1Smrgfi
113683da7aff1Smrg
113693da7aff1Smrg
113703da7aff1Smrg
113713da7aff1Smrgif test $pkg_failed = yes; then
113723a99fc18Smrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
113733a99fc18Smrgprintf "%s\n" "no" >&6; }
113743da7aff1Smrg
113753da7aff1Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
113763da7aff1Smrg        _pkg_short_errors_supported=yes
113773da7aff1Smrgelse
113783da7aff1Smrg        _pkg_short_errors_supported=no
113793da7aff1Smrgfi
113803da7aff1Smrg        if test $_pkg_short_errors_supported = yes; then
113813e999d35Smrg	        XLOGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XLOGO_DEPS" 2>&1`
113823da7aff1Smrg        else
113833e999d35Smrg	        XLOGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XLOGO_DEPS" 2>&1`
113843da7aff1Smrg        fi
113853da7aff1Smrg	# Put the nasty error message in config.log where it belongs
11386f9d592e5Smrg	echo "$XLOGO_PKG_ERRORS" >&5
113873da7aff1Smrg
11388f9d592e5Smrg	as_fn_error $? "Package requirements ($XLOGO_DEPS) were not met:
113893da7aff1Smrg
11390f9d592e5Smrg$XLOGO_PKG_ERRORS
113913da7aff1Smrg
113923da7aff1SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
113933da7aff1Smrginstalled software in a non-standard prefix.
113943da7aff1Smrg
11395f9d592e5SmrgAlternatively, you may set the environment variables XLOGO_CFLAGS
11396f9d592e5Smrgand XLOGO_LIBS to avoid the need to call pkg-config.
113973e999d35SmrgSee the pkg-config man page for more details." "$LINENO" 5
113983da7aff1Smrgelif test $pkg_failed = untried; then
113993a99fc18Smrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
114003a99fc18Smrgprintf "%s\n" "no" >&6; }
114013a99fc18Smrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
114023a99fc18Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11403f9d592e5Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
114043da7aff1Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
114053da7aff1Smrgpath to pkg-config.
114063da7aff1Smrg
11407f9d592e5SmrgAlternatively, you may set the environment variables XLOGO_CFLAGS
11408f9d592e5Smrgand XLOGO_LIBS to avoid the need to call pkg-config.
114093da7aff1SmrgSee the pkg-config man page for more details.
114103da7aff1Smrg
11411e531b1a7SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
11412f9d592e5SmrgSee \`config.log' for more details" "$LINENO" 5; }
114133da7aff1Smrgelse
11414f9d592e5Smrg	XLOGO_CFLAGS=$pkg_cv_XLOGO_CFLAGS
11415f9d592e5Smrg	XLOGO_LIBS=$pkg_cv_XLOGO_LIBS
114163a99fc18Smrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
114173a99fc18Smrgprintf "%s\n" "yes" >&6; }
114183e999d35Smrg
114193da7aff1Smrgfi
114203da7aff1Smrg
114213da7aff1Smrg
11422e531b1a7Smrgpkg_failed=no
114233a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
114243a99fc18Smrgprintf %s "checking for APPDEFS... " >&6; }
11425e531b1a7Smrg
11426e531b1a7Smrgif test -n "$APPDEFS_CFLAGS"; then
11427e531b1a7Smrg    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11428e531b1a7Smrg elif test -n "$PKG_CONFIG"; then
11429e531b1a7Smrg    if test -n "$PKG_CONFIG" && \
114303a99fc18Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
114313da7aff1Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
114323da7aff1Smrg  ac_status=$?
114333a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11434e531b1a7Smrg  test $ac_status = 0; }; then
114353da7aff1Smrg  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
114363e999d35Smrg		      test "x$?" != "x0" && pkg_failed=yes
114373da7aff1Smrgelse
114383da7aff1Smrg  pkg_failed=yes
114393da7aff1Smrgfi
11440e531b1a7Smrg else
11441e531b1a7Smrg    pkg_failed=untried
114423da7aff1Smrgfi
11443e531b1a7Smrgif test -n "$APPDEFS_LIBS"; then
11444e531b1a7Smrg    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11445e531b1a7Smrg elif test -n "$PKG_CONFIG"; then
11446e531b1a7Smrg    if test -n "$PKG_CONFIG" && \
114473a99fc18Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
114483da7aff1Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
114493da7aff1Smrg  ac_status=$?
114503a99fc18Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11451e531b1a7Smrg  test $ac_status = 0; }; then
114523da7aff1Smrg  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
114533e999d35Smrg		      test "x$?" != "x0" && pkg_failed=yes
114543da7aff1Smrgelse
114553da7aff1Smrg  pkg_failed=yes
114563da7aff1Smrgfi
11457e531b1a7Smrg else
11458e531b1a7Smrg    pkg_failed=untried
114593da7aff1Smrgfi
114603da7aff1Smrg
114613da7aff1Smrg
114623da7aff1Smrg
114633da7aff1Smrgif test $pkg_failed = yes; then
114643a99fc18Smrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
114653a99fc18Smrgprintf "%s\n" "no" >&6; }
114663da7aff1Smrg
114673da7aff1Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
114683da7aff1Smrg        _pkg_short_errors_supported=yes
114693da7aff1Smrgelse
114703da7aff1Smrg        _pkg_short_errors_supported=no
114713da7aff1Smrgfi
114723da7aff1Smrg        if test $_pkg_short_errors_supported = yes; then
114733e999d35Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
114743da7aff1Smrg        else
114753e999d35Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
114763da7aff1Smrg        fi
114773da7aff1Smrg	# Put the nasty error message in config.log where it belongs
114783da7aff1Smrg	echo "$APPDEFS_PKG_ERRORS" >&5
114793da7aff1Smrg
11480f9d592e5Smrg	as_fn_error $? "Package requirements (xt) were not met:
114813da7aff1Smrg
114823da7aff1Smrg$APPDEFS_PKG_ERRORS
114833da7aff1Smrg
114843da7aff1SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
114853da7aff1Smrginstalled software in a non-standard prefix.
114863da7aff1Smrg
114873da7aff1SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
114883da7aff1Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
114893e999d35SmrgSee the pkg-config man page for more details." "$LINENO" 5
114903da7aff1Smrgelif test $pkg_failed = untried; then
114913a99fc18Smrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
114923a99fc18Smrgprintf "%s\n" "no" >&6; }
114933a99fc18Smrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
114943a99fc18Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11495f9d592e5Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
114963da7aff1Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
114973da7aff1Smrgpath to pkg-config.
114983da7aff1Smrg
114993da7aff1SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
115003da7aff1Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
115013da7aff1SmrgSee the pkg-config man page for more details.
115023da7aff1Smrg
11503e531b1a7SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
11504f9d592e5SmrgSee \`config.log' for more details" "$LINENO" 5; }
115053da7aff1Smrgelse
115063da7aff1Smrg	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
115073da7aff1Smrg	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
115083a99fc18Smrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
115093a99fc18Smrgprintf "%s\n" "yes" >&6; }
115103e999d35Smrg
115113da7aff1Smrgfi
11512f9d592e5Smrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
115133da7aff1Smrg
11514e531b1a7Smrg# Check whether --with-appdefaultdir was given.
115153a99fc18Smrgif test ${with_appdefaultdir+y}
115163a99fc18Smrgthen :
11517e531b1a7Smrg  withval=$with_appdefaultdir; appdefaultdir="$withval"
115183a99fc18Smrgelse $as_nop
11519e531b1a7Smrg  appdefaultdir="${xt_appdefaultdir}"
115203da7aff1Smrgfi
115213da7aff1Smrg
115223da7aff1Smrg
115233da7aff1Smrg
115243fe82118Smrgac_config_files="$ac_config_files Makefile man/Makefile"
115253da7aff1Smrg
115263da7aff1Smrgcat >confcache <<\_ACEOF
115273da7aff1Smrg# This file is a shell script that caches the results of configure
115283da7aff1Smrg# tests run on this system so they can be shared between configure
115293da7aff1Smrg# scripts and configure runs, see configure's option --config-cache.
115303da7aff1Smrg# It is not useful on other systems.  If it contains results you don't
115313da7aff1Smrg# want to keep, you may remove or edit it.
115323da7aff1Smrg#
115333da7aff1Smrg# config.status only pays attention to the cache file if you give it
115343da7aff1Smrg# the --recheck option to rerun configure.
115353da7aff1Smrg#
115363da7aff1Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
115373da7aff1Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
115383da7aff1Smrg# following values.
115393da7aff1Smrg
115403da7aff1Smrg_ACEOF
115413da7aff1Smrg
115423da7aff1Smrg# The following way of writing the cache mishandles newlines in values,
115433da7aff1Smrg# but we know of no workaround that is simple, portable, and efficient.
11544e531b1a7Smrg# So, we kill variables containing newlines.
115453da7aff1Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
115463da7aff1Smrg# and sets the high bit in the cache file unless we assign to the vars.
11547e531b1a7Smrg(
11548e531b1a7Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11549e531b1a7Smrg    eval ac_val=\$$ac_var
11550e531b1a7Smrg    case $ac_val in #(
11551e531b1a7Smrg    *${as_nl}*)
11552e531b1a7Smrg      case $ac_var in #(
115533a99fc18Smrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
115543a99fc18Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11555e531b1a7Smrg      esac
11556e531b1a7Smrg      case $ac_var in #(
11557e531b1a7Smrg      _ | IFS | as_nl) ;; #(
11558e531b1a7Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11559e531b1a7Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
11560e531b1a7Smrg      esac ;;
11561e531b1a7Smrg    esac
11562e531b1a7Smrg  done
11563e531b1a7Smrg
115643da7aff1Smrg  (set) 2>&1 |
11565e531b1a7Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11566e531b1a7Smrg    *${as_nl}ac_space=\ *)
11567e531b1a7Smrg      # `set' does not quote correctly, so add quotes: double-quote
11568e531b1a7Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
115693da7aff1Smrg      sed -n \
115703da7aff1Smrg	"s/'/'\\\\''/g;
115713da7aff1Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11572e531b1a7Smrg      ;; #(
115733da7aff1Smrg    *)
115743da7aff1Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
11575e531b1a7Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
115763da7aff1Smrg      ;;
11577e531b1a7Smrg    esac |
11578e531b1a7Smrg    sort
11579e531b1a7Smrg) |
115803da7aff1Smrg  sed '
11581e531b1a7Smrg     /^ac_cv_env_/b end
115823da7aff1Smrg     t clear
11583e531b1a7Smrg     :clear
115843a99fc18Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
115853da7aff1Smrg     t end
11586e531b1a7Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11587e531b1a7Smrg     :end' >>confcache
11588e531b1a7Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11589e531b1a7Smrg  if test -w "$cache_file"; then
11590f9d592e5Smrg    if test "x$cache_file" != "x/dev/null"; then
115913a99fc18Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
115923a99fc18Smrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11593f9d592e5Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
11594f9d592e5Smrg	cat confcache >"$cache_file"
11595f9d592e5Smrg      else
11596f9d592e5Smrg        case $cache_file in #(
11597f9d592e5Smrg        */* | ?:*)
11598f9d592e5Smrg	  mv -f confcache "$cache_file"$$ &&
11599f9d592e5Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11600f9d592e5Smrg        *)
11601f9d592e5Smrg	  mv -f confcache "$cache_file" ;;
11602f9d592e5Smrg	esac
11603f9d592e5Smrg      fi
11604f9d592e5Smrg    fi
116053da7aff1Smrg  else
116063a99fc18Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
116073a99fc18Smrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
116083da7aff1Smrg  fi
116093da7aff1Smrgfi
116103da7aff1Smrgrm -f confcache
116113da7aff1Smrg
116123da7aff1Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
116133da7aff1Smrg# Let make expand exec_prefix.
116143da7aff1Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
116153da7aff1Smrg
116163da7aff1SmrgDEFS=-DHAVE_CONFIG_H
116173da7aff1Smrg
116183da7aff1Smrgac_libobjs=
116193da7aff1Smrgac_ltlibobjs=
11620f9d592e5SmrgU=
116213da7aff1Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
116223da7aff1Smrg  # 1. Remove the extension, and $U if already installed.
11623e531b1a7Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
116243a99fc18Smrg  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11625e531b1a7Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11626e531b1a7Smrg  #    will be set to the directory where LIBOBJS objects are built.
11627e531b1a7Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11628e531b1a7Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
116293da7aff1Smrgdone
116303da7aff1SmrgLIBOBJS=$ac_libobjs
116313da7aff1Smrg
116323da7aff1SmrgLTLIBOBJS=$ac_ltlibobjs
116333da7aff1Smrg
116343da7aff1Smrg
116353a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
116363a99fc18Smrgprintf %s "checking that generated files are newer than configure... " >&6; }
116373e999d35Smrg   if test -n "$am_sleep_pid"; then
116383e999d35Smrg     # Hide warnings about reused PIDs.
116393e999d35Smrg     wait $am_sleep_pid 2>/dev/null
116403e999d35Smrg   fi
116413a99fc18Smrg   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
116423a99fc18Smrgprintf "%s\n" "done" >&6; }
11643e531b1a7Smrg if test -n "$EXEEXT"; then
11644e531b1a7Smrg  am__EXEEXT_TRUE=
11645e531b1a7Smrg  am__EXEEXT_FALSE='#'
11646e531b1a7Smrgelse
11647e531b1a7Smrg  am__EXEEXT_TRUE='#'
11648e531b1a7Smrg  am__EXEEXT_FALSE=
11649e531b1a7Smrgfi
11650e531b1a7Smrg
116513da7aff1Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11652f9d592e5Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
11653e531b1a7SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
116543da7aff1Smrgfi
11655e531b1a7Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11656f9d592e5Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11657e531b1a7SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
116583da7aff1Smrgfi
116593fe82118Smrgif test -z "${USE_RENDER_TRUE}" && test -z "${USE_RENDER_FALSE}"; then
116603fe82118Smrg  as_fn_error $? "conditional \"USE_RENDER\" was never defined.
116613fe82118SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
116623fe82118Smrgfi
116633da7aff1Smrg
11664f9d592e5Smrg: "${CONFIG_STATUS=./config.status}"
11665e531b1a7Smrgac_write_fail=0
116663da7aff1Smrgac_clean_files_save=$ac_clean_files
116673da7aff1Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
116683a99fc18Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
116693a99fc18Smrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11670e531b1a7Smrgas_write_fail=0
11671e531b1a7Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
116723da7aff1Smrg#! $SHELL
116733da7aff1Smrg# Generated by $as_me.
116743da7aff1Smrg# Run this file to recreate the current configuration.
116753da7aff1Smrg# Compiler output produced by configure, useful for debugging
116763da7aff1Smrg# configure, is in config.log if it exists.
116773da7aff1Smrg
116783da7aff1Smrgdebug=false
116793da7aff1Smrgac_cs_recheck=false
116803da7aff1Smrgac_cs_silent=false
116813da7aff1Smrg
11682e531b1a7SmrgSHELL=\${CONFIG_SHELL-$SHELL}
11683e531b1a7Smrgexport SHELL
11684e531b1a7Smrg_ASEOF
11685e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11686e531b1a7Smrg## -------------------- ##
11687e531b1a7Smrg## M4sh Initialization. ##
11688e531b1a7Smrg## -------------------- ##
11689e531b1a7Smrg
11690e531b1a7Smrg# Be more Bourne compatible
11691e531b1a7SmrgDUALCASE=1; export DUALCASE # for MKS sh
116923a99fc18Smrgas_nop=:
116933a99fc18Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
116943a99fc18Smrgthen :
116953da7aff1Smrg  emulate sh
116963da7aff1Smrg  NULLCMD=:
11697e531b1a7Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
116983da7aff1Smrg  # is contrary to our usage.  Disable this feature.
116993da7aff1Smrg  alias -g '${1+"$@"}'='"$@"'
11700e531b1a7Smrg  setopt NO_GLOB_SUBST
117013a99fc18Smrgelse $as_nop
11702e531b1a7Smrg  case `(set -o) 2>/dev/null` in #(
11703e531b1a7Smrg  *posix*) :
11704e531b1a7Smrg    set -o posix ;; #(
11705e531b1a7Smrg  *) :
11706e531b1a7Smrg     ;;
11707e531b1a7Smrgesac
117083da7aff1Smrgfi
117093da7aff1Smrg
11710e531b1a7Smrg
117113a99fc18Smrg
117123a99fc18Smrg# Reset variables that may have inherited troublesome values from
117133a99fc18Smrg# the environment.
117143a99fc18Smrg
117153a99fc18Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
117163a99fc18Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
117173a99fc18Smrg# side effect of setting IFS to empty, thus disabling word splitting.)
117183a99fc18Smrg# Quoting is to prevent editors from complaining about space-tab.
11719e531b1a7Smrgas_nl='
11720e531b1a7Smrg'
11721e531b1a7Smrgexport as_nl
117223a99fc18SmrgIFS=" ""	$as_nl"
117233a99fc18Smrg
117243a99fc18SmrgPS1='$ '
117253a99fc18SmrgPS2='> '
117263a99fc18SmrgPS4='+ '
117273a99fc18Smrg
117283a99fc18Smrg# Ensure predictable behavior from utilities with locale-dependent output.
117293a99fc18SmrgLC_ALL=C
117303a99fc18Smrgexport LC_ALL
117313a99fc18SmrgLANGUAGE=C
117323a99fc18Smrgexport LANGUAGE
117333a99fc18Smrg
117343a99fc18Smrg# We cannot yet rely on "unset" to work, but we need these variables
117353a99fc18Smrg# to be unset--not just set to an empty or harmless value--now, to
117363a99fc18Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
117373a99fc18Smrg# also avoids known problems related to "unset" and subshell syntax
117383a99fc18Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
117393a99fc18Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
117403a99fc18Smrgdo eval test \${$as_var+y} \
117413a99fc18Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
117423a99fc18Smrgdone
117433a99fc18Smrg
117443a99fc18Smrg# Ensure that fds 0, 1, and 2 are open.
117453a99fc18Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
117463a99fc18Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
117473a99fc18Smrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
117483da7aff1Smrg
11749e531b1a7Smrg# The user is always right.
117503a99fc18Smrgif ${PATH_SEPARATOR+false} :; then
11751e531b1a7Smrg  PATH_SEPARATOR=:
11752e531b1a7Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11753e531b1a7Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11754e531b1a7Smrg      PATH_SEPARATOR=';'
11755e531b1a7Smrg  }
11756e531b1a7Smrgfi
11757e531b1a7Smrg
11758e531b1a7Smrg
11759e531b1a7Smrg# Find who we are.  Look in the path if we contain no directory separator.
11760f9d592e5Smrgas_myself=
11761e531b1a7Smrgcase $0 in #((
11762e531b1a7Smrg  *[\\/]* ) as_myself=$0 ;;
11763e531b1a7Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764e531b1a7Smrgfor as_dir in $PATH
11765e531b1a7Smrgdo
11766e531b1a7Smrg  IFS=$as_save_IFS
117673a99fc18Smrg  case $as_dir in #(((
117683a99fc18Smrg    '') as_dir=./ ;;
117693a99fc18Smrg    */) ;;
117703a99fc18Smrg    *) as_dir=$as_dir/ ;;
117713a99fc18Smrg  esac
117723a99fc18Smrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11773e531b1a7Smrg  done
11774e531b1a7SmrgIFS=$as_save_IFS
117753da7aff1Smrg
11776e531b1a7Smrg     ;;
11777e531b1a7Smrgesac
11778e531b1a7Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
11779e531b1a7Smrg# in which case we are not to be found in the path.
11780e531b1a7Smrgif test "x$as_myself" = x; then
11781e531b1a7Smrg  as_myself=$0
11782e531b1a7Smrgfi
11783e531b1a7Smrgif test ! -f "$as_myself"; then
117843a99fc18Smrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11785e531b1a7Smrg  exit 1
11786e531b1a7Smrgfi
11787e531b1a7Smrg
11788e531b1a7Smrg
11789e531b1a7Smrg
11790f9d592e5Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
11791f9d592e5Smrg# ----------------------------------------
11792e531b1a7Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11793e531b1a7Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11794f9d592e5Smrg# script with STATUS, using 1 if that was 0.
11795e531b1a7Smrgas_fn_error ()
11796e531b1a7Smrg{
11797f9d592e5Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
11798f9d592e5Smrg  if test "$4"; then
11799f9d592e5Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
118003a99fc18Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
118013da7aff1Smrg  fi
118023a99fc18Smrg  printf "%s\n" "$as_me: error: $2" >&2
11803e531b1a7Smrg  as_fn_exit $as_status
11804e531b1a7Smrg} # as_fn_error
11805e531b1a7Smrg
11806e531b1a7Smrg
118073a99fc18Smrg
11808e531b1a7Smrg# as_fn_set_status STATUS
11809e531b1a7Smrg# -----------------------
11810e531b1a7Smrg# Set $? to STATUS, without forking.
11811e531b1a7Smrgas_fn_set_status ()
11812e531b1a7Smrg{
11813e531b1a7Smrg  return $1
11814e531b1a7Smrg} # as_fn_set_status
118153da7aff1Smrg
11816e531b1a7Smrg# as_fn_exit STATUS
11817e531b1a7Smrg# -----------------
11818e531b1a7Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11819e531b1a7Smrgas_fn_exit ()
11820e531b1a7Smrg{
11821e531b1a7Smrg  set +e
11822e531b1a7Smrg  as_fn_set_status $1
11823e531b1a7Smrg  exit $1
11824e531b1a7Smrg} # as_fn_exit
11825e531b1a7Smrg
11826e531b1a7Smrg# as_fn_unset VAR
11827e531b1a7Smrg# ---------------
11828e531b1a7Smrg# Portably unset VAR.
11829e531b1a7Smrgas_fn_unset ()
11830e531b1a7Smrg{
11831e531b1a7Smrg  { eval $1=; unset $1;}
11832e531b1a7Smrg}
11833e531b1a7Smrgas_unset=as_fn_unset
118343a99fc18Smrg
11835e531b1a7Smrg# as_fn_append VAR VALUE
11836e531b1a7Smrg# ----------------------
11837e531b1a7Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
11838e531b1a7Smrg# advantage of any shell optimizations that allow amortized linear growth over
11839e531b1a7Smrg# repeated appends, instead of the typical quadratic growth present in naive
11840e531b1a7Smrg# implementations.
118413a99fc18Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
118423a99fc18Smrgthen :
11843e531b1a7Smrg  eval 'as_fn_append ()
11844e531b1a7Smrg  {
11845e531b1a7Smrg    eval $1+=\$2
11846e531b1a7Smrg  }'
118473a99fc18Smrgelse $as_nop
11848e531b1a7Smrg  as_fn_append ()
11849e531b1a7Smrg  {
11850e531b1a7Smrg    eval $1=\$$1\$2
11851e531b1a7Smrg  }
11852e531b1a7Smrgfi # as_fn_append
11853e531b1a7Smrg
11854e531b1a7Smrg# as_fn_arith ARG...
11855e531b1a7Smrg# ------------------
11856e531b1a7Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
11857e531b1a7Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
11858e531b1a7Smrg# must be portable across $(()) and expr.
118593a99fc18Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
118603a99fc18Smrgthen :
11861e531b1a7Smrg  eval 'as_fn_arith ()
11862e531b1a7Smrg  {
11863e531b1a7Smrg    as_val=$(( $* ))
11864e531b1a7Smrg  }'
118653a99fc18Smrgelse $as_nop
11866e531b1a7Smrg  as_fn_arith ()
11867e531b1a7Smrg  {
11868e531b1a7Smrg    as_val=`expr "$@" || test $? -eq 1`
11869e531b1a7Smrg  }
11870e531b1a7Smrgfi # as_fn_arith
11871e531b1a7Smrg
11872e531b1a7Smrg
11873e531b1a7Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
11874e531b1a7Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118753da7aff1Smrg  as_expr=expr
118763da7aff1Smrgelse
118773da7aff1Smrg  as_expr=false
118783da7aff1Smrgfi
118793da7aff1Smrg
11880e531b1a7Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
118813da7aff1Smrg  as_basename=basename
118823da7aff1Smrgelse
118833da7aff1Smrg  as_basename=false
118843da7aff1Smrgfi
118853da7aff1Smrg
11886e531b1a7Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11887e531b1a7Smrg  as_dirname=dirname
11888e531b1a7Smrgelse
11889e531b1a7Smrg  as_dirname=false
11890e531b1a7Smrgfi
118913da7aff1Smrg
11892e531b1a7Smrgas_me=`$as_basename -- "$0" ||
118933da7aff1Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
118943da7aff1Smrg	 X"$0" : 'X\(//\)$' \| \
11895e531b1a7Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
118963a99fc18Smrgprintf "%s\n" X/"$0" |
11897e531b1a7Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
11898e531b1a7Smrg	    s//\1/
11899e531b1a7Smrg	    q
11900e531b1a7Smrg	  }
11901e531b1a7Smrg	  /^X\/\(\/\/\)$/{
11902e531b1a7Smrg	    s//\1/
11903e531b1a7Smrg	    q
11904e531b1a7Smrg	  }
11905e531b1a7Smrg	  /^X\/\(\/\).*/{
11906e531b1a7Smrg	    s//\1/
11907e531b1a7Smrg	    q
11908e531b1a7Smrg	  }
11909e531b1a7Smrg	  s/.*/./; q'`
119103da7aff1Smrg
119113da7aff1Smrg# Avoid depending upon Character Ranges.
119123da7aff1Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
119133da7aff1Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
119143da7aff1Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
119153da7aff1Smrgas_cr_digits='0123456789'
119163da7aff1Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
119173da7aff1Smrg
119183a99fc18Smrg
119193a99fc18Smrg# Determine whether it's possible to make 'echo' print without a newline.
119203a99fc18Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
119213a99fc18Smrg# for compatibility with existing Makefiles.
11922e531b1a7SmrgECHO_C= ECHO_N= ECHO_T=
11923e531b1a7Smrgcase `echo -n x` in #(((((
11924e531b1a7Smrg-n*)
11925e531b1a7Smrg  case `echo 'xy\c'` in
11926e531b1a7Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11927e531b1a7Smrg  xy)  ECHO_C='\c';;
11928e531b1a7Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11929e531b1a7Smrg       ECHO_T='	';;
11930e531b1a7Smrg  esac;;
11931e531b1a7Smrg*)
11932e531b1a7Smrg  ECHO_N='-n';;
119333da7aff1Smrgesac
119343da7aff1Smrg
119353a99fc18Smrg# For backward compatibility with old third-party macros, we provide
119363a99fc18Smrg# the shell variables $as_echo and $as_echo_n.  New code should use
119373a99fc18Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
119383a99fc18Smrgas_echo='printf %s\n'
119393a99fc18Smrgas_echo_n='printf %s'
119403a99fc18Smrg
11941e531b1a7Smrgrm -f conf$$ conf$$.exe conf$$.file
11942e531b1a7Smrgif test -d conf$$.dir; then
11943e531b1a7Smrg  rm -f conf$$.dir/conf$$.file
119443da7aff1Smrgelse
11945e531b1a7Smrg  rm -f conf$$.dir
11946e531b1a7Smrg  mkdir conf$$.dir 2>/dev/null
119473da7aff1Smrgfi
11948e531b1a7Smrgif (echo >conf$$.file) 2>/dev/null; then
11949e531b1a7Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
119503da7aff1Smrg    as_ln_s='ln -s'
11951e531b1a7Smrg    # ... but there are two gotchas:
11952e531b1a7Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11953e531b1a7Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
119543e999d35Smrg    # In both cases, we have to default to `cp -pR'.
11955e531b1a7Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
119563e999d35Smrg      as_ln_s='cp -pR'
11957e531b1a7Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
11958e531b1a7Smrg    as_ln_s=ln
11959e531b1a7Smrg  else
119603e999d35Smrg    as_ln_s='cp -pR'
119613da7aff1Smrg  fi
119623da7aff1Smrgelse
119633e999d35Smrg  as_ln_s='cp -pR'
119643da7aff1Smrgfi
11965e531b1a7Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11966e531b1a7Smrgrmdir conf$$.dir 2>/dev/null
11967e531b1a7Smrg
119683da7aff1Smrg
11969e531b1a7Smrg# as_fn_mkdir_p
11970e531b1a7Smrg# -------------
11971e531b1a7Smrg# Create "$as_dir" as a directory, including parents if necessary.
11972e531b1a7Smrgas_fn_mkdir_p ()
11973e531b1a7Smrg{
11974e531b1a7Smrg
11975e531b1a7Smrg  case $as_dir in #(
11976e531b1a7Smrg  -*) as_dir=./$as_dir;;
11977e531b1a7Smrg  esac
11978e531b1a7Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
11979e531b1a7Smrg    as_dirs=
11980e531b1a7Smrg    while :; do
11981e531b1a7Smrg      case $as_dir in #(
119823a99fc18Smrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11983e531b1a7Smrg      *) as_qdir=$as_dir;;
11984e531b1a7Smrg      esac
11985e531b1a7Smrg      as_dirs="'$as_qdir' $as_dirs"
11986e531b1a7Smrg      as_dir=`$as_dirname -- "$as_dir" ||
11987e531b1a7Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11988e531b1a7Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
11989e531b1a7Smrg	 X"$as_dir" : 'X\(//\)$' \| \
11990e531b1a7Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
119913a99fc18Smrgprintf "%s\n" X"$as_dir" |
11992e531b1a7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11993e531b1a7Smrg	    s//\1/
11994e531b1a7Smrg	    q
11995e531b1a7Smrg	  }
11996e531b1a7Smrg	  /^X\(\/\/\)[^/].*/{
11997e531b1a7Smrg	    s//\1/
11998e531b1a7Smrg	    q
11999e531b1a7Smrg	  }
12000e531b1a7Smrg	  /^X\(\/\/\)$/{
12001e531b1a7Smrg	    s//\1/
12002e531b1a7Smrg	    q
12003e531b1a7Smrg	  }
12004e531b1a7Smrg	  /^X\(\/\).*/{
12005e531b1a7Smrg	    s//\1/
12006e531b1a7Smrg	    q
12007e531b1a7Smrg	  }
12008e531b1a7Smrg	  s/.*/./; q'`
12009e531b1a7Smrg      test -d "$as_dir" && break
12010e531b1a7Smrg    done
12011e531b1a7Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
12012f9d592e5Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12013e531b1a7Smrg
12014e531b1a7Smrg
12015e531b1a7Smrg} # as_fn_mkdir_p
120163da7aff1Smrgif mkdir -p . 2>/dev/null; then
12017e531b1a7Smrg  as_mkdir_p='mkdir -p "$as_dir"'
120183da7aff1Smrgelse
120193da7aff1Smrg  test -d ./-p && rmdir ./-p
120203da7aff1Smrg  as_mkdir_p=false
120213da7aff1Smrgfi
120223da7aff1Smrg
120233e999d35Smrg
120243e999d35Smrg# as_fn_executable_p FILE
120253e999d35Smrg# -----------------------
120263e999d35Smrg# Test if FILE is an executable regular file.
120273e999d35Smrgas_fn_executable_p ()
120283e999d35Smrg{
120293e999d35Smrg  test -f "$1" && test -x "$1"
120303e999d35Smrg} # as_fn_executable_p
120313e999d35Smrgas_test_x='test -x'
120323e999d35Smrgas_executable_p=as_fn_executable_p
120333da7aff1Smrg
120343da7aff1Smrg# Sed expression to map a string onto a valid CPP name.
120353da7aff1Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
120363da7aff1Smrg
120373da7aff1Smrg# Sed expression to map a string onto a valid variable name.
120383da7aff1Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
120393da7aff1Smrg
120403da7aff1Smrg
120413da7aff1Smrgexec 6>&1
12042e531b1a7Smrg## ----------------------------------- ##
12043e531b1a7Smrg## Main body of $CONFIG_STATUS script. ##
12044e531b1a7Smrg## ----------------------------------- ##
12045e531b1a7Smrg_ASEOF
12046e531b1a7Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12047e531b1a7Smrg
12048e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12049e531b1a7Smrg# Save the log message, to keep $0 and so on meaningful, and to
120503da7aff1Smrg# report actual input values of CONFIG_FILES etc. instead of their
12051e531b1a7Smrg# values after options handling.
12052e531b1a7Smrgac_log="
120533a99fc18SmrgThis file was extended by xlogo $as_me 1.0.6, which was
120543a99fc18Smrggenerated by GNU Autoconf 2.71.  Invocation command line was
120553da7aff1Smrg
120563da7aff1Smrg  CONFIG_FILES    = $CONFIG_FILES
120573da7aff1Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
120583da7aff1Smrg  CONFIG_LINKS    = $CONFIG_LINKS
120593da7aff1Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
120603da7aff1Smrg  $ $0 $@
120613da7aff1Smrg
12062e531b1a7Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
12063e531b1a7Smrg"
12064e531b1a7Smrg
120653da7aff1Smrg_ACEOF
120663da7aff1Smrg
12067e531b1a7Smrgcase $ac_config_files in *"
12068e531b1a7Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
12069e531b1a7Smrgesac
120703da7aff1Smrg
12071e531b1a7Smrgcase $ac_config_headers in *"
12072e531b1a7Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12073e531b1a7Smrgesac
120743da7aff1Smrg
120753da7aff1Smrg
12076e531b1a7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12077e531b1a7Smrg# Files that config.status was made for.
12078e531b1a7Smrgconfig_files="$ac_config_files"
12079e531b1a7Smrgconfig_headers="$ac_config_headers"
12080e531b1a7Smrgconfig_commands="$ac_config_commands"
120813da7aff1Smrg
12082e531b1a7Smrg_ACEOF
120833da7aff1Smrg
12084e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
120853da7aff1Smrgac_cs_usage="\
12086e531b1a7Smrg\`$as_me' instantiates files and other configuration actions
12087e531b1a7Smrgfrom templates according to the current configuration.  Unless the files
12088e531b1a7Smrgand actions are specified as TAGs, all are instantiated by default.
120893da7aff1Smrg
12090e531b1a7SmrgUsage: $0 [OPTION]... [TAG]...
120913da7aff1Smrg
120923da7aff1Smrg  -h, --help       print this help, then exit
12093e531b1a7Smrg  -V, --version    print version number and configuration settings, then exit
12094e531b1a7Smrg      --config     print configuration, then exit
12095e531b1a7Smrg  -q, --quiet, --silent
12096e531b1a7Smrg                   do not print progress messages
120973da7aff1Smrg  -d, --debug      don't remove temporary files
120983da7aff1Smrg      --recheck    update $as_me by reconfiguring in the same conditions
12099e531b1a7Smrg      --file=FILE[:TEMPLATE]
12100e531b1a7Smrg                   instantiate the configuration file FILE
12101e531b1a7Smrg      --header=FILE[:TEMPLATE]
12102e531b1a7Smrg                   instantiate the configuration header FILE
121033da7aff1Smrg
121043da7aff1SmrgConfiguration files:
121053da7aff1Smrg$config_files
121063da7aff1Smrg
121073da7aff1SmrgConfiguration headers:
121083da7aff1Smrg$config_headers
121093da7aff1Smrg
121103da7aff1SmrgConfiguration commands:
121113da7aff1Smrg$config_commands
121123da7aff1Smrg
121133a99fc18SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues>."
121143da7aff1Smrg
12115e531b1a7Smrg_ACEOF
121163a99fc18Smrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
121173a99fc18Smrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12118e531b1a7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
121193a99fc18Smrgac_cs_config='$ac_cs_config_escaped'
121203da7aff1Smrgac_cs_version="\\
121213a99fc18Smrgxlogo config.status 1.0.6
121223a99fc18Smrgconfigured by $0, generated by GNU Autoconf 2.71,
12123e531b1a7Smrg  with options \\"\$ac_cs_config\\"
121243da7aff1Smrg
121253a99fc18SmrgCopyright (C) 2021 Free Software Foundation, Inc.
121263da7aff1SmrgThis config.status script is free software; the Free Software Foundation
121273da7aff1Smrggives unlimited permission to copy, distribute and modify it."
12128e531b1a7Smrg
12129e531b1a7Smrgac_pwd='$ac_pwd'
12130e531b1a7Smrgsrcdir='$srcdir'
12131e531b1a7SmrgINSTALL='$INSTALL'
12132e531b1a7SmrgMKDIR_P='$MKDIR_P'
12133e531b1a7SmrgAWK='$AWK'
12134e531b1a7Smrgtest -n "\$AWK" || AWK=awk
121353da7aff1Smrg_ACEOF
121363da7aff1Smrg
12137e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12138e531b1a7Smrg# The default lists apply if the user does not specify any file.
121393da7aff1Smrgac_need_defaults=:
121403da7aff1Smrgwhile test $# != 0
121413da7aff1Smrgdo
121423da7aff1Smrg  case $1 in
12143f9d592e5Smrg  --*=?*)
12144e531b1a7Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12145e531b1a7Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
121463da7aff1Smrg    ac_shift=:
121473da7aff1Smrg    ;;
12148f9d592e5Smrg  --*=)
12149f9d592e5Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12150f9d592e5Smrg    ac_optarg=
12151f9d592e5Smrg    ac_shift=:
12152f9d592e5Smrg    ;;
12153e531b1a7Smrg  *)
121543da7aff1Smrg    ac_option=$1
121553da7aff1Smrg    ac_optarg=$2
121563da7aff1Smrg    ac_shift=shift
121573da7aff1Smrg    ;;
121583da7aff1Smrg  esac
121593da7aff1Smrg
121603da7aff1Smrg  case $ac_option in
121613da7aff1Smrg  # Handling of the options.
121623da7aff1Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
121633da7aff1Smrg    ac_cs_recheck=: ;;
12164e531b1a7Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
121653a99fc18Smrg    printf "%s\n" "$ac_cs_version"; exit ;;
12166e531b1a7Smrg  --config | --confi | --conf | --con | --co | --c )
121673a99fc18Smrg    printf "%s\n" "$ac_cs_config"; exit ;;
12168e531b1a7Smrg  --debug | --debu | --deb | --de | --d | -d )
121693da7aff1Smrg    debug=: ;;
121703da7aff1Smrg  --file | --fil | --fi | --f )
121713da7aff1Smrg    $ac_shift
12172e531b1a7Smrg    case $ac_optarg in
121733a99fc18Smrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12174f9d592e5Smrg    '') as_fn_error $? "missing file argument" ;;
12175e531b1a7Smrg    esac
12176e531b1a7Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
121773da7aff1Smrg    ac_need_defaults=false;;
121783da7aff1Smrg  --header | --heade | --head | --hea )
121793da7aff1Smrg    $ac_shift
12180e531b1a7Smrg    case $ac_optarg in
121813a99fc18Smrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12182e531b1a7Smrg    esac
12183e531b1a7Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
121843da7aff1Smrg    ac_need_defaults=false;;
12185e531b1a7Smrg  --he | --h)
12186e531b1a7Smrg    # Conflict between --help and --header
12187f9d592e5Smrg    as_fn_error $? "ambiguous option: \`$1'
12188e531b1a7SmrgTry \`$0 --help' for more information.";;
12189e531b1a7Smrg  --help | --hel | -h )
121903a99fc18Smrg    printf "%s\n" "$ac_cs_usage"; exit ;;
121913da7aff1Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
121923da7aff1Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
121933da7aff1Smrg    ac_cs_silent=: ;;
121943da7aff1Smrg
121953da7aff1Smrg  # This is an error.
12196f9d592e5Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
12197e531b1a7SmrgTry \`$0 --help' for more information." ;;
121983da7aff1Smrg
12199e531b1a7Smrg  *) as_fn_append ac_config_targets " $1"
12200e531b1a7Smrg     ac_need_defaults=false ;;
122013da7aff1Smrg
122023da7aff1Smrg  esac
122033da7aff1Smrg  shift
122043da7aff1Smrgdone
122053da7aff1Smrg
122063da7aff1Smrgac_configure_extra_args=
122073da7aff1Smrg
122083da7aff1Smrgif $ac_cs_silent; then
122093da7aff1Smrg  exec 6>/dev/null
122103da7aff1Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
122113da7aff1Smrgfi
122123da7aff1Smrg
122133da7aff1Smrg_ACEOF
12214e531b1a7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
122153da7aff1Smrgif \$ac_cs_recheck; then
122163e999d35Smrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12217e531b1a7Smrg  shift
122183a99fc18Smrg  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12219e531b1a7Smrg  CONFIG_SHELL='$SHELL'
12220e531b1a7Smrg  export CONFIG_SHELL
12221e531b1a7Smrg  exec "\$@"
122223da7aff1Smrgfi
122233da7aff1Smrg
122243da7aff1Smrg_ACEOF
12225e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12226e531b1a7Smrgexec 5>>config.log
12227e531b1a7Smrg{
12228e531b1a7Smrg  echo
12229e531b1a7Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12230e531b1a7Smrg## Running $as_me. ##
12231e531b1a7Smrg_ASBOX
122323a99fc18Smrg  printf "%s\n" "$ac_log"
12233e531b1a7Smrg} >&5
122343da7aff1Smrg
12235e531b1a7Smrg_ACEOF
12236e531b1a7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
122373da7aff1Smrg#
12238e531b1a7Smrg# INIT-COMMANDS
122393da7aff1Smrg#
122403a99fc18SmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
122413da7aff1Smrg
122423da7aff1Smrg_ACEOF
122433da7aff1Smrg
12244e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
122453da7aff1Smrg
12246e531b1a7Smrg# Handling of arguments.
122473da7aff1Smrgfor ac_config_target in $ac_config_targets
122483da7aff1Smrgdo
12249e531b1a7Smrg  case $ac_config_target in
12250e531b1a7Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
122513e999d35Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12252e531b1a7Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
122533fe82118Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12254e531b1a7Smrg
12255f9d592e5Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
122563da7aff1Smrg  esac
122573da7aff1Smrgdone
122583da7aff1Smrg
12259e531b1a7Smrg
122603da7aff1Smrg# If the user did not use the arguments to specify the items to instantiate,
122613da7aff1Smrg# then the envvar interface is used.  Set only those that are not.
122623da7aff1Smrg# We use the long form for the default assignment because of an extremely
122633da7aff1Smrg# bizarre bug on SunOS 4.1.3.
122643da7aff1Smrgif $ac_need_defaults; then
122653a99fc18Smrg  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
122663a99fc18Smrg  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
122673a99fc18Smrg  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
122683da7aff1Smrgfi
122693da7aff1Smrg
122703da7aff1Smrg# Have a temporary directory for convenience.  Make it in the build tree
12271e531b1a7Smrg# simply because there is no reason against having it here, and in addition,
122723da7aff1Smrg# creating and moving files from /tmp can sometimes cause problems.
12273e531b1a7Smrg# Hook for its removal unless debugging.
12274e531b1a7Smrg# Note that there is a small window in which the directory will not be cleaned:
12275e531b1a7Smrg# after its creation but before its name has been assigned to `$tmp'.
122763da7aff1Smrg$debug ||
122773da7aff1Smrg{
12278f9d592e5Smrg  tmp= ac_tmp=
12279e531b1a7Smrg  trap 'exit_status=$?
12280f9d592e5Smrg  : "${ac_tmp:=$tmp}"
12281f9d592e5Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12282e531b1a7Smrg' 0
12283e531b1a7Smrg  trap 'as_fn_exit 1' 1 2 13 15
122843da7aff1Smrg}
122853da7aff1Smrg# Create a (secure) tmp directory for tmp files.
122863da7aff1Smrg
122873da7aff1Smrg{
12288e531b1a7Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12289f9d592e5Smrg  test -d "$tmp"
122903da7aff1Smrg}  ||
122913da7aff1Smrg{
12292e531b1a7Smrg  tmp=./conf$$-$RANDOM
12293e531b1a7Smrg  (umask 077 && mkdir "$tmp")
12294f9d592e5Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12295f9d592e5Smrgac_tmp=$tmp
12296e531b1a7Smrg
12297e531b1a7Smrg# Set up the scripts for CONFIG_FILES section.
12298e531b1a7Smrg# No need to generate them if there are no CONFIG_FILES.
12299e531b1a7Smrg# This happens for instance with `./config.status config.h'.
12300e531b1a7Smrgif test -n "$CONFIG_FILES"; then
12301e531b1a7Smrg
12302e531b1a7Smrg
12303e531b1a7Smrgac_cr=`echo X | tr X '\015'`
12304e531b1a7Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
12305e531b1a7Smrg# But we know of no other shell where ac_cr would be empty at this
12306e531b1a7Smrg# point, so we can use a bashism as a fallback.
12307e531b1a7Smrgif test "x$ac_cr" = x; then
12308e531b1a7Smrg  eval ac_cr=\$\'\\r\'
12309e531b1a7Smrgfi
12310e531b1a7Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12311e531b1a7Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12312f9d592e5Smrg  ac_cs_awk_cr='\\r'
12313e531b1a7Smrgelse
12314e531b1a7Smrg  ac_cs_awk_cr=$ac_cr
12315e531b1a7Smrgfi
12316e531b1a7Smrg
12317f9d592e5Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12318e531b1a7Smrg_ACEOF
12319e531b1a7Smrg
12320e531b1a7Smrg
123213da7aff1Smrg{
12322e531b1a7Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
12323e531b1a7Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12324e531b1a7Smrg  echo "_ACEOF"
12325e531b1a7Smrg} >conf$$subs.sh ||
12326f9d592e5Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12327f9d592e5Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12328e531b1a7Smrgac_delim='%!_!# '
12329e531b1a7Smrgfor ac_last_try in false false false false false :; do
12330e531b1a7Smrg  . ./conf$$subs.sh ||
12331f9d592e5Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12332e531b1a7Smrg
12333e531b1a7Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12334e531b1a7Smrg  if test $ac_delim_n = $ac_delim_num; then
12335e531b1a7Smrg    break
12336e531b1a7Smrg  elif $ac_last_try; then
12337f9d592e5Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12338e531b1a7Smrg  else
12339e531b1a7Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12340e531b1a7Smrg  fi
12341e531b1a7Smrgdone
12342e531b1a7Smrgrm -f conf$$subs.sh
123433da7aff1Smrg
12344e531b1a7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12345f9d592e5Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
123463da7aff1Smrg_ACEOF
12347e531b1a7Smrgsed -n '
12348e531b1a7Smrgh
12349e531b1a7Smrgs/^/S["/; s/!.*/"]=/
12350e531b1a7Smrgp
12351e531b1a7Smrgg
12352e531b1a7Smrgs/^[^!]*!//
12353e531b1a7Smrg:repl
12354e531b1a7Smrgt repl
12355e531b1a7Smrgs/'"$ac_delim"'$//
12356e531b1a7Smrgt delim
12357e531b1a7Smrg:nl
12358e531b1a7Smrgh
12359e531b1a7Smrgs/\(.\{148\}\)..*/\1/
12360e531b1a7Smrgt more1
12361e531b1a7Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12362e531b1a7Smrgp
12363e531b1a7Smrgn
12364e531b1a7Smrgb repl
12365e531b1a7Smrg:more1
12366e531b1a7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12367e531b1a7Smrgp
12368e531b1a7Smrgg
12369e531b1a7Smrgs/.\{148\}//
12370e531b1a7Smrgt nl
12371e531b1a7Smrg:delim
12372e531b1a7Smrgh
12373e531b1a7Smrgs/\(.\{148\}\)..*/\1/
12374e531b1a7Smrgt more2
12375e531b1a7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
12376e531b1a7Smrgp
12377e531b1a7Smrgb
12378e531b1a7Smrg:more2
12379e531b1a7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12380e531b1a7Smrgp
12381e531b1a7Smrgg
12382e531b1a7Smrgs/.\{148\}//
12383e531b1a7Smrgt delim
12384e531b1a7Smrg' <conf$$subs.awk | sed '
12385e531b1a7Smrg/^[^""]/{
12386e531b1a7Smrg  N
12387e531b1a7Smrg  s/\n//
12388e531b1a7Smrg}
12389e531b1a7Smrg' >>$CONFIG_STATUS || ac_write_fail=1
12390e531b1a7Smrgrm -f conf$$subs.awk
12391e531b1a7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12392e531b1a7Smrg_ACAWK
12393f9d592e5Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12394e531b1a7Smrg  for (key in S) S_is_set[key] = 1
12395e531b1a7Smrg  FS = ""
123963da7aff1Smrg
12397e531b1a7Smrg}
12398e531b1a7Smrg{
12399e531b1a7Smrg  line = $ 0
12400e531b1a7Smrg  nfields = split(line, field, "@")
12401e531b1a7Smrg  substed = 0
12402e531b1a7Smrg  len = length(field[1])
12403e531b1a7Smrg  for (i = 2; i < nfields; i++) {
12404e531b1a7Smrg    key = field[i]
12405e531b1a7Smrg    keylen = length(key)
12406e531b1a7Smrg    if (S_is_set[key]) {
12407e531b1a7Smrg      value = S[key]
12408e531b1a7Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12409e531b1a7Smrg      len += length(value) + length(field[++i])
12410e531b1a7Smrg      substed = 1
12411e531b1a7Smrg    } else
12412e531b1a7Smrg      len += 1 + keylen
12413e531b1a7Smrg  }
12414e531b1a7Smrg
12415e531b1a7Smrg  print line
12416e531b1a7Smrg}
124173da7aff1Smrg
12418e531b1a7Smrg_ACAWK
12419e531b1a7Smrg_ACEOF
12420e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12421e531b1a7Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12422e531b1a7Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12423e531b1a7Smrgelse
12424e531b1a7Smrg  cat
12425f9d592e5Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12426f9d592e5Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12427e531b1a7Smrg_ACEOF
12428e531b1a7Smrg
12429f9d592e5Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12430f9d592e5Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12431e531b1a7Smrg# trailing colons and then remove the whole line if VPATH becomes empty
12432e531b1a7Smrg# (actually we leave an empty line to preserve line numbers).
12433e531b1a7Smrgif test "x$srcdir" = x.; then
12434f9d592e5Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12435f9d592e5Smrgh
12436f9d592e5Smrgs///
12437f9d592e5Smrgs/^/:/
12438f9d592e5Smrgs/[	 ]*$/:/
12439f9d592e5Smrgs/:\$(srcdir):/:/g
12440f9d592e5Smrgs/:\${srcdir}:/:/g
12441f9d592e5Smrgs/:@srcdir@:/:/g
12442f9d592e5Smrgs/^:*//
12443e531b1a7Smrgs/:*$//
12444f9d592e5Smrgx
12445f9d592e5Smrgs/\(=[	 ]*\).*/\1/
12446f9d592e5SmrgG
12447f9d592e5Smrgs/\n//
12448e531b1a7Smrgs/^[^=]*=[	 ]*$//
12449e531b1a7Smrg}'
12450e531b1a7Smrgfi
124513da7aff1Smrg
12452e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12453e531b1a7Smrgfi # test -n "$CONFIG_FILES"
124543da7aff1Smrg
12455e531b1a7Smrg# Set up the scripts for CONFIG_HEADERS section.
12456e531b1a7Smrg# No need to generate them if there are no CONFIG_HEADERS.
12457e531b1a7Smrg# This happens for instance with `./config.status Makefile'.
12458e531b1a7Smrgif test -n "$CONFIG_HEADERS"; then
12459f9d592e5Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12460e531b1a7SmrgBEGIN {
124613da7aff1Smrg_ACEOF
124623da7aff1Smrg
12463e531b1a7Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
12464e531b1a7Smrg# here-document in config.status, that substitutes the proper values into
12465e531b1a7Smrg# config.h.in to produce config.h.
12466e531b1a7Smrg
12467e531b1a7Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
12468e531b1a7Smrg# handling of long lines.
12469e531b1a7Smrgac_delim='%!_!# '
12470e531b1a7Smrgfor ac_last_try in false false :; do
12471f9d592e5Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12472f9d592e5Smrg  if test -z "$ac_tt"; then
12473e531b1a7Smrg    break
12474e531b1a7Smrg  elif $ac_last_try; then
12475f9d592e5Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12476e531b1a7Smrg  else
12477e531b1a7Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
124783da7aff1Smrg  fi
12479e531b1a7Smrgdone
124803da7aff1Smrg
12481e531b1a7Smrg# For the awk script, D is an array of macro values keyed by name,
12482e531b1a7Smrg# likewise P contains macro parameters if any.  Preserve backslash
12483e531b1a7Smrg# newline sequences.
12484e531b1a7Smrg
12485e531b1a7Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12486e531b1a7Smrgsed -n '
12487e531b1a7Smrgs/.\{148\}/&'"$ac_delim"'/g
12488e531b1a7Smrgt rset
12489e531b1a7Smrg:rset
12490e531b1a7Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12491e531b1a7Smrgt def
12492e531b1a7Smrgd
12493e531b1a7Smrg:def
12494e531b1a7Smrgs/\\$//
12495e531b1a7Smrgt bsnl
12496e531b1a7Smrgs/["\\]/\\&/g
12497e531b1a7Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12498e531b1a7SmrgD["\1"]=" \3"/p
12499e531b1a7Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12500e531b1a7Smrgd
12501e531b1a7Smrg:bsnl
12502e531b1a7Smrgs/["\\]/\\&/g
12503e531b1a7Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12504e531b1a7SmrgD["\1"]=" \3\\\\\\n"\\/p
12505e531b1a7Smrgt cont
12506e531b1a7Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12507e531b1a7Smrgt cont
12508e531b1a7Smrgd
12509e531b1a7Smrg:cont
12510e531b1a7Smrgn
12511e531b1a7Smrgs/.\{148\}/&'"$ac_delim"'/g
12512e531b1a7Smrgt clear
12513e531b1a7Smrg:clear
12514e531b1a7Smrgs/\\$//
12515e531b1a7Smrgt bsnlc
12516e531b1a7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
12517e531b1a7Smrgd
12518e531b1a7Smrg:bsnlc
12519e531b1a7Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12520e531b1a7Smrgb cont
12521e531b1a7Smrg' <confdefs.h | sed '
12522e531b1a7Smrgs/'"$ac_delim"'/"\\\
12523e531b1a7Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
12524e531b1a7Smrg
12525e531b1a7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12526e531b1a7Smrg  for (key in D) D_is_set[key] = 1
12527e531b1a7Smrg  FS = ""
12528e531b1a7Smrg}
12529e531b1a7Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12530e531b1a7Smrg  line = \$ 0
12531e531b1a7Smrg  split(line, arg, " ")
12532e531b1a7Smrg  if (arg[1] == "#") {
12533e531b1a7Smrg    defundef = arg[2]
12534e531b1a7Smrg    mac1 = arg[3]
12535e531b1a7Smrg  } else {
12536e531b1a7Smrg    defundef = substr(arg[1], 2)
12537e531b1a7Smrg    mac1 = arg[2]
12538e531b1a7Smrg  }
12539e531b1a7Smrg  split(mac1, mac2, "(") #)
12540e531b1a7Smrg  macro = mac2[1]
12541e531b1a7Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
12542e531b1a7Smrg  if (D_is_set[macro]) {
12543e531b1a7Smrg    # Preserve the white space surrounding the "#".
12544e531b1a7Smrg    print prefix "define", macro P[macro] D[macro]
12545e531b1a7Smrg    next
12546e531b1a7Smrg  } else {
12547e531b1a7Smrg    # Replace #undef with comments.  This is necessary, for example,
12548e531b1a7Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
12549e531b1a7Smrg    # on some systems where configure will not decide to define it.
12550e531b1a7Smrg    if (defundef == "undef") {
12551e531b1a7Smrg      print "/*", prefix defundef, macro, "*/"
12552e531b1a7Smrg      next
12553e531b1a7Smrg    }
12554e531b1a7Smrg  }
12555e531b1a7Smrg}
12556e531b1a7Smrg{ print }
12557e531b1a7Smrg_ACAWK
125583da7aff1Smrg_ACEOF
12559e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12560f9d592e5Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12561e531b1a7Smrgfi # test -n "$CONFIG_HEADERS"
12562e531b1a7Smrg
12563e531b1a7Smrg
12564e531b1a7Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12565e531b1a7Smrgshift
12566e531b1a7Smrgfor ac_tag
12567e531b1a7Smrgdo
12568e531b1a7Smrg  case $ac_tag in
12569e531b1a7Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
12570e531b1a7Smrg  esac
12571e531b1a7Smrg  case $ac_mode$ac_tag in
12572e531b1a7Smrg  :[FHL]*:*);;
12573f9d592e5Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12574e531b1a7Smrg  :[FH]-) ac_tag=-:-;;
12575e531b1a7Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12576e531b1a7Smrg  esac
12577e531b1a7Smrg  ac_save_IFS=$IFS
12578e531b1a7Smrg  IFS=:
12579e531b1a7Smrg  set x $ac_tag
12580e531b1a7Smrg  IFS=$ac_save_IFS
12581e531b1a7Smrg  shift
12582e531b1a7Smrg  ac_file=$1
12583e531b1a7Smrg  shift
12584e531b1a7Smrg
12585e531b1a7Smrg  case $ac_mode in
12586e531b1a7Smrg  :L) ac_source=$1;;
12587e531b1a7Smrg  :[FH])
12588e531b1a7Smrg    ac_file_inputs=
12589e531b1a7Smrg    for ac_f
12590e531b1a7Smrg    do
12591e531b1a7Smrg      case $ac_f in
12592f9d592e5Smrg      -) ac_f="$ac_tmp/stdin";;
12593e531b1a7Smrg      *) # Look for the file first in the build tree, then in the source tree
12594e531b1a7Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12595e531b1a7Smrg	 # because $ac_f cannot contain `:'.
12596e531b1a7Smrg	 test -f "$ac_f" ||
12597e531b1a7Smrg	   case $ac_f in
12598e531b1a7Smrg	   [\\/$]*) false;;
12599e531b1a7Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12600e531b1a7Smrg	   esac ||
12601f9d592e5Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12602e531b1a7Smrg      esac
126033a99fc18Smrg      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12604e531b1a7Smrg      as_fn_append ac_file_inputs " '$ac_f'"
12605e531b1a7Smrg    done
12606e531b1a7Smrg
12607e531b1a7Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
12608e531b1a7Smrg    # use $as_me), people would be surprised to read:
12609e531b1a7Smrg    #    /* config.h.  Generated by config.status.  */
12610e531b1a7Smrg    configure_input='Generated from '`
126113a99fc18Smrg	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12612e531b1a7Smrg	`' by configure.'
12613e531b1a7Smrg    if test x"$ac_file" != x-; then
12614e531b1a7Smrg      configure_input="$ac_file.  $configure_input"
126153a99fc18Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
126163a99fc18Smrgprintf "%s\n" "$as_me: creating $ac_file" >&6;}
12617e531b1a7Smrg    fi
12618e531b1a7Smrg    # Neutralize special characters interpreted by sed in replacement strings.
12619e531b1a7Smrg    case $configure_input in #(
12620e531b1a7Smrg    *\&* | *\|* | *\\* )
126213a99fc18Smrg       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12622e531b1a7Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12623e531b1a7Smrg    *) ac_sed_conf_input=$configure_input;;
12624e531b1a7Smrg    esac
12625e531b1a7Smrg
12626e531b1a7Smrg    case $ac_tag in
12627f9d592e5Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12628f9d592e5Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12629e531b1a7Smrg    esac
12630e531b1a7Smrg    ;;
126313da7aff1Smrg  esac
126323da7aff1Smrg
12633e531b1a7Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
126343da7aff1Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
126353da7aff1Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
126363da7aff1Smrg	 X"$ac_file" : 'X\(//\)$' \| \
12637e531b1a7Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
126383a99fc18Smrgprintf "%s\n" X"$ac_file" |
12639e531b1a7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12640e531b1a7Smrg	    s//\1/
12641e531b1a7Smrg	    q
12642e531b1a7Smrg	  }
12643e531b1a7Smrg	  /^X\(\/\/\)[^/].*/{
12644e531b1a7Smrg	    s//\1/
12645e531b1a7Smrg	    q
12646e531b1a7Smrg	  }
12647e531b1a7Smrg	  /^X\(\/\/\)$/{
12648e531b1a7Smrg	    s//\1/
12649e531b1a7Smrg	    q
12650e531b1a7Smrg	  }
12651e531b1a7Smrg	  /^X\(\/\).*/{
12652e531b1a7Smrg	    s//\1/
12653e531b1a7Smrg	    q
12654e531b1a7Smrg	  }
12655e531b1a7Smrg	  s/.*/./; q'`
12656e531b1a7Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
126573da7aff1Smrg  ac_builddir=.
126583da7aff1Smrg
12659e531b1a7Smrgcase "$ac_dir" in
12660e531b1a7Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12661e531b1a7Smrg*)
126623a99fc18Smrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12663e531b1a7Smrg  # A ".." for each directory in $ac_dir_suffix.
126643a99fc18Smrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12665e531b1a7Smrg  case $ac_top_builddir_sub in
12666e531b1a7Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12667e531b1a7Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12668e531b1a7Smrg  esac ;;
12669e531b1a7Smrgesac
12670e531b1a7Smrgac_abs_top_builddir=$ac_pwd
12671e531b1a7Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
12672e531b1a7Smrg# for backward compatibility:
12673e531b1a7Smrgac_top_builddir=$ac_top_build_prefix
126743da7aff1Smrg
126753da7aff1Smrgcase $srcdir in
12676e531b1a7Smrg  .)  # We are building in place.
126773da7aff1Smrg    ac_srcdir=.
12678e531b1a7Smrg    ac_top_srcdir=$ac_top_builddir_sub
12679e531b1a7Smrg    ac_abs_top_srcdir=$ac_pwd ;;
12680e531b1a7Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
126813da7aff1Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
12682e531b1a7Smrg    ac_top_srcdir=$srcdir
12683e531b1a7Smrg    ac_abs_top_srcdir=$srcdir ;;
12684e531b1a7Smrg  *) # Relative name.
12685e531b1a7Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12686e531b1a7Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
12687e531b1a7Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
126883da7aff1Smrgesac
12689e531b1a7Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
126903da7aff1Smrg
126913da7aff1Smrg
12692e531b1a7Smrg  case $ac_mode in
12693e531b1a7Smrg  :F)
12694e531b1a7Smrg  #
12695e531b1a7Smrg  # CONFIG_FILE
12696e531b1a7Smrg  #
126973da7aff1Smrg
126983da7aff1Smrg  case $INSTALL in
126993da7aff1Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12700e531b1a7Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12701e531b1a7Smrg  esac
12702e531b1a7Smrg  ac_MKDIR_P=$MKDIR_P
12703e531b1a7Smrg  case $MKDIR_P in
12704e531b1a7Smrg  [\\/$]* | ?:[\\/]* ) ;;
12705e531b1a7Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
127063da7aff1Smrg  esac
12707e531b1a7Smrg_ACEOF
127083da7aff1Smrg
12709e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12710e531b1a7Smrg# If the template does not know about datarootdir, expand it.
12711e531b1a7Smrg# FIXME: This hack should be removed a few years after 2.60.
12712e531b1a7Smrgac_datarootdir_hack=; ac_datarootdir_seen=
12713e531b1a7Smrgac_sed_dataroot='
12714e531b1a7Smrg/datarootdir/ {
12715e531b1a7Smrg  p
12716e531b1a7Smrg  q
12717e531b1a7Smrg}
12718e531b1a7Smrg/@datadir@/p
12719e531b1a7Smrg/@docdir@/p
12720e531b1a7Smrg/@infodir@/p
12721e531b1a7Smrg/@localedir@/p
12722e531b1a7Smrg/@mandir@/p'
12723e531b1a7Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12724e531b1a7Smrg*datarootdir*) ac_datarootdir_seen=yes;;
12725e531b1a7Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
127263a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
127273a99fc18Smrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12728e531b1a7Smrg_ACEOF
12729e531b1a7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12730e531b1a7Smrg  ac_datarootdir_hack='
12731e531b1a7Smrg  s&@datadir@&$datadir&g
12732e531b1a7Smrg  s&@docdir@&$docdir&g
12733e531b1a7Smrg  s&@infodir@&$infodir&g
12734e531b1a7Smrg  s&@localedir@&$localedir&g
12735e531b1a7Smrg  s&@mandir@&$mandir&g
12736e531b1a7Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
12737e531b1a7Smrgesac
127383da7aff1Smrg_ACEOF
12739e531b1a7Smrg
12740e531b1a7Smrg# Neutralize VPATH when `$srcdir' = `.'.
12741e531b1a7Smrg# Shell code in configure.ac might set extrasub.
12742e531b1a7Smrg# FIXME: do we really want to maintain this feature?
12743e531b1a7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12744e531b1a7Smrgac_sed_extra="$ac_vpsub
127453da7aff1Smrg$extrasub
127463da7aff1Smrg_ACEOF
12747e531b1a7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
127483da7aff1Smrg:t
127493da7aff1Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12750e531b1a7Smrgs|@configure_input@|$ac_sed_conf_input|;t t
12751e531b1a7Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
12752e531b1a7Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
12753e531b1a7Smrgs&@srcdir@&$ac_srcdir&;t t
12754e531b1a7Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
12755e531b1a7Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
12756e531b1a7Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12757e531b1a7Smrgs&@builddir@&$ac_builddir&;t t
12758e531b1a7Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
12759e531b1a7Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12760e531b1a7Smrgs&@INSTALL@&$ac_INSTALL&;t t
12761e531b1a7Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
12762e531b1a7Smrg$ac_datarootdir_hack
12763e531b1a7Smrg"
12764f9d592e5Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12765f9d592e5Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12766e531b1a7Smrg
12767e531b1a7Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12768f9d592e5Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12769f9d592e5Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12770f9d592e5Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
127713a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12772f9d592e5Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
127733a99fc18Smrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12774f9d592e5Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
12775e531b1a7Smrg
12776f9d592e5Smrg  rm -f "$ac_tmp/stdin"
127773da7aff1Smrg  case $ac_file in
12778f9d592e5Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12779f9d592e5Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12780e531b1a7Smrg  esac \
12781f9d592e5Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12782e531b1a7Smrg ;;
12783e531b1a7Smrg  :H)
12784e531b1a7Smrg  #
12785e531b1a7Smrg  # CONFIG_HEADER
12786e531b1a7Smrg  #
127873da7aff1Smrg  if test x"$ac_file" != x-; then
12788e531b1a7Smrg    {
127893a99fc18Smrg      printf "%s\n" "/* $configure_input  */" >&1 \
12790f9d592e5Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12791f9d592e5Smrg    } >"$ac_tmp/config.h" \
12792f9d592e5Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12793f9d592e5Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
127943a99fc18Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
127953a99fc18Smrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
127963da7aff1Smrg    else
12797e531b1a7Smrg      rm -f "$ac_file"
12798f9d592e5Smrg      mv "$ac_tmp/config.h" "$ac_file" \
12799f9d592e5Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
128003da7aff1Smrg    fi
128013da7aff1Smrg  else
128023a99fc18Smrg    printf "%s\n" "/* $configure_input  */" >&1 \
12803f9d592e5Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12804f9d592e5Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
128053da7aff1Smrg  fi
12806e531b1a7Smrg# Compute "$ac_file"'s index in $config_headers.
12807e531b1a7Smrg_am_arg="$ac_file"
128083da7aff1Smrg_am_stamp_count=1
128093da7aff1Smrgfor _am_header in $config_headers :; do
128103da7aff1Smrg  case $_am_header in
12811e531b1a7Smrg    $_am_arg | $_am_arg:* )
128123da7aff1Smrg      break ;;
128133da7aff1Smrg    * )
128143da7aff1Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
128153da7aff1Smrg  esac
128163da7aff1Smrgdone
12817e531b1a7Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12818e531b1a7Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12819e531b1a7Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12820e531b1a7Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
12821e531b1a7Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
128223a99fc18Smrgprintf "%s\n" X"$_am_arg" |
12823e531b1a7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12824e531b1a7Smrg	    s//\1/
12825e531b1a7Smrg	    q
12826e531b1a7Smrg	  }
12827e531b1a7Smrg	  /^X\(\/\/\)[^/].*/{
12828e531b1a7Smrg	    s//\1/
12829e531b1a7Smrg	    q
12830e531b1a7Smrg	  }
12831e531b1a7Smrg	  /^X\(\/\/\)$/{
12832e531b1a7Smrg	    s//\1/
12833e531b1a7Smrg	    q
12834e531b1a7Smrg	  }
12835e531b1a7Smrg	  /^X\(\/\).*/{
12836e531b1a7Smrg	    s//\1/
12837e531b1a7Smrg	    q
12838e531b1a7Smrg	  }
12839e531b1a7Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
12840e531b1a7Smrg ;;
128413da7aff1Smrg
128423a99fc18Smrg  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
128433a99fc18Smrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12844e531b1a7Smrg ;;
12845e531b1a7Smrg  esac
128463da7aff1Smrg
128473da7aff1Smrg
12848e531b1a7Smrg  case $ac_file$ac_mode in
12849e531b1a7Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
128503e999d35Smrg  # Older Autoconf quotes --file arguments for eval, but not when files
12851e531b1a7Smrg  # are listed without --file.  Let's play safe and only enable the eval
12852e531b1a7Smrg  # if we detect the quoting.
128533a99fc18Smrg  # TODO: see whether this extra hack can be removed once we start
128543a99fc18Smrg  # requiring Autoconf 2.70 or later.
128553a99fc18Smrg  case $CONFIG_FILES in #(
128563a99fc18Smrg  *\'*) :
128573a99fc18Smrg    eval set x "$CONFIG_FILES" ;; #(
128583a99fc18Smrg  *) :
128593a99fc18Smrg    set x $CONFIG_FILES ;; #(
128603a99fc18Smrg  *) :
128613a99fc18Smrg     ;;
128623a99fc18Smrgesac
12863e531b1a7Smrg  shift
128643a99fc18Smrg  # Used to flag and report bootstrapping failures.
128653a99fc18Smrg  am_rc=0
128663a99fc18Smrg  for am_mf
12867e531b1a7Smrg  do
12868e531b1a7Smrg    # Strip MF so we end up with the name of the file.
128693a99fc18Smrg    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
128703a99fc18Smrg    # Check whether this is an Automake generated Makefile which includes
128713a99fc18Smrg    # dependency-tracking related rules and includes.
128723a99fc18Smrg    # Grep'ing the whole file directly is not great: AIX grep has a line
12873e531b1a7Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
128743a99fc18Smrg    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
128753a99fc18Smrg      || continue
128763a99fc18Smrg    am_dirpart=`$as_dirname -- "$am_mf" ||
128773a99fc18Smrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
128783a99fc18Smrg	 X"$am_mf" : 'X\(//\)[^/]' \| \
128793a99fc18Smrg	 X"$am_mf" : 'X\(//\)$' \| \
128803a99fc18Smrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
128813a99fc18Smrgprintf "%s\n" X"$am_mf" |
12882e531b1a7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12883e531b1a7Smrg	    s//\1/
12884e531b1a7Smrg	    q
12885e531b1a7Smrg	  }
12886e531b1a7Smrg	  /^X\(\/\/\)[^/].*/{
12887e531b1a7Smrg	    s//\1/
12888e531b1a7Smrg	    q
12889e531b1a7Smrg	  }
12890e531b1a7Smrg	  /^X\(\/\/\)$/{
12891e531b1a7Smrg	    s//\1/
12892e531b1a7Smrg	    q
12893e531b1a7Smrg	  }
12894e531b1a7Smrg	  /^X\(\/\).*/{
12895e531b1a7Smrg	    s//\1/
12896e531b1a7Smrg	    q
12897e531b1a7Smrg	  }
12898e531b1a7Smrg	  s/.*/./; q'`
128993a99fc18Smrg    am_filepart=`$as_basename -- "$am_mf" ||
129003a99fc18Smrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
129013a99fc18Smrg	 X"$am_mf" : 'X\(//\)$' \| \
129023a99fc18Smrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
129033a99fc18Smrgprintf "%s\n" X/"$am_mf" |
129043a99fc18Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
12905e531b1a7Smrg	    s//\1/
12906e531b1a7Smrg	    q
12907e531b1a7Smrg	  }
129083a99fc18Smrg	  /^X\/\(\/\/\)$/{
12909e531b1a7Smrg	    s//\1/
12910e531b1a7Smrg	    q
12911e531b1a7Smrg	  }
129123a99fc18Smrg	  /^X\/\(\/\).*/{
12913e531b1a7Smrg	    s//\1/
12914e531b1a7Smrg	    q
12915e531b1a7Smrg	  }
12916e531b1a7Smrg	  s/.*/./; q'`
129173a99fc18Smrg    { echo "$as_me:$LINENO: cd "$am_dirpart" \
129183a99fc18Smrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
129193a99fc18Smrg        | $MAKE -f - am--depfiles" >&5
129203a99fc18Smrg   (cd "$am_dirpart" \
129213a99fc18Smrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
129223a99fc18Smrg        | $MAKE -f - am--depfiles) >&5 2>&5
129233a99fc18Smrg   ac_status=$?
129243a99fc18Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
129253a99fc18Smrg   (exit $ac_status); } || am_rc=$?
129263da7aff1Smrg  done
129273a99fc18Smrg  if test $am_rc -ne 0; then
129283a99fc18Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
129293a99fc18Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
129303a99fc18Smrgas_fn_error $? "Something went wrong bootstrapping makefile fragments
129313a99fc18Smrg    for automatic dependency tracking.  If GNU make was not used, consider
129323a99fc18Smrg    re-running the configure script with MAKE=\"gmake\" (or whatever is
129333a99fc18Smrg    necessary).  You can also try re-running configure with the
129343a99fc18Smrg    '--disable-dependency-tracking' option to at least be able to build
129353a99fc18Smrg    the package (albeit without support for automatic dependency tracking).
129363a99fc18SmrgSee \`config.log' for more details" "$LINENO" 5; }
129373a99fc18Smrg  fi
129383a99fc18Smrg  { am_dirpart=; unset am_dirpart;}
129393a99fc18Smrg  { am_filepart=; unset am_filepart;}
129403a99fc18Smrg  { am_mf=; unset am_mf;}
129413a99fc18Smrg  { am_rc=; unset am_rc;}
129423a99fc18Smrg  rm -f conftest-deps.mk
12943e531b1a7Smrg}
129443da7aff1Smrg ;;
12945e531b1a7Smrg
129463da7aff1Smrg  esac
12947e531b1a7Smrgdone # for ac_tag
129483da7aff1Smrg
129493da7aff1Smrg
12950e531b1a7Smrgas_fn_exit 0
129513da7aff1Smrg_ACEOF
129523da7aff1Smrgac_clean_files=$ac_clean_files_save
129533da7aff1Smrg
12954e531b1a7Smrgtest $ac_write_fail = 0 ||
12955f9d592e5Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12956e531b1a7Smrg
129573da7aff1Smrg
129583da7aff1Smrg# configure is writing to config.log, and then calls config.status.
129593da7aff1Smrg# config.status does its own redirection, appending to config.log.
129603da7aff1Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
129613da7aff1Smrg# by configure, so config.status won't be able to write to it; its
129623da7aff1Smrg# output is simply discarded.  So we exec the FD to /dev/null,
129633da7aff1Smrg# effectively closing config.log, so it can be properly (re)opened and
129643da7aff1Smrg# appended to by config.status.  When coming back to configure, we
129653da7aff1Smrg# need to make the FD available again.
129663da7aff1Smrgif test "$no_create" != yes; then
129673da7aff1Smrg  ac_cs_success=:
129683da7aff1Smrg  ac_config_status_args=
129693da7aff1Smrg  test "$silent" = yes &&
129703da7aff1Smrg    ac_config_status_args="$ac_config_status_args --quiet"
129713da7aff1Smrg  exec 5>/dev/null
129723da7aff1Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
129733da7aff1Smrg  exec 5>>config.log
129743da7aff1Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
129753da7aff1Smrg  # would make configure fail if this is the last instruction.
12976f9d592e5Smrg  $ac_cs_success || as_fn_exit 1
12977e531b1a7Smrgfi
12978e531b1a7Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
129793a99fc18Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
129803a99fc18Smrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
129813da7aff1Smrgfi
129823da7aff1Smrg
129833a99fc18Smrg
12984