18ae04fa6Smrg#! /bin/sh
28ae04fa6Smrg# Guess values for system-dependent variables and create Makefiles.
3138a9f8aSmrg# Generated by GNU Autoconf 2.71 for xvinfo 1.1.5.
48ae04fa6Smrg#
5138a9f8aSmrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xvinfo/-/issues>.
68ae04fa6Smrg#
72d1d20fcSmrg#
8138a9f8aSmrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9138a9f8aSmrg# Inc.
102d1d20fcSmrg#
112d1d20fcSmrg#
128ae04fa6Smrg# This configure script is free software; the Free Software Foundation
138ae04fa6Smrg# gives unlimited permission to copy, distribute and modify it.
142d1d20fcSmrg## -------------------- ##
152d1d20fcSmrg## M4sh Initialization. ##
162d1d20fcSmrg## -------------------- ##
178ae04fa6Smrg
188ae04fa6Smrg# Be more Bourne compatible
198ae04fa6SmrgDUALCASE=1; export DUALCASE # for MKS sh
20138a9f8aSmrgas_nop=:
21138a9f8aSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22138a9f8aSmrgthen :
238ae04fa6Smrg  emulate sh
248ae04fa6Smrg  NULLCMD=:
2544af7230Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
268ae04fa6Smrg  # is contrary to our usage.  Disable this feature.
278ae04fa6Smrg  alias -g '${1+"$@"}'='"$@"'
288ae04fa6Smrg  setopt NO_GLOB_SUBST
29138a9f8aSmrgelse $as_nop
302d1d20fcSmrg  case `(set -o) 2>/dev/null` in #(
312d1d20fcSmrg  *posix*) :
322d1d20fcSmrg    set -o posix ;; #(
332d1d20fcSmrg  *) :
342d1d20fcSmrg     ;;
358ae04fa6Smrgesac
368ae04fa6Smrgfi
378ae04fa6Smrg
388ae04fa6Smrg
39138a9f8aSmrg
40138a9f8aSmrg# Reset variables that may have inherited troublesome values from
41138a9f8aSmrg# the environment.
42138a9f8aSmrg
43138a9f8aSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
44138a9f8aSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
45138a9f8aSmrg# side effect of setting IFS to empty, thus disabling word splitting.)
46138a9f8aSmrg# Quoting is to prevent editors from complaining about space-tab.
4744af7230Smrgas_nl='
4844af7230Smrg'
4944af7230Smrgexport as_nl
50138a9f8aSmrgIFS=" ""	$as_nl"
51138a9f8aSmrg
52138a9f8aSmrgPS1='$ '
53138a9f8aSmrgPS2='> '
54138a9f8aSmrgPS4='+ '
55138a9f8aSmrg
56138a9f8aSmrg# Ensure predictable behavior from utilities with locale-dependent output.
57138a9f8aSmrgLC_ALL=C
58138a9f8aSmrgexport LC_ALL
59138a9f8aSmrgLANGUAGE=C
60138a9f8aSmrgexport LANGUAGE
61138a9f8aSmrg
62138a9f8aSmrg# We cannot yet rely on "unset" to work, but we need these variables
63138a9f8aSmrg# to be unset--not just set to an empty or harmless value--now, to
64138a9f8aSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65138a9f8aSmrg# also avoids known problems related to "unset" and subshell syntax
66138a9f8aSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67138a9f8aSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68138a9f8aSmrgdo eval test \${$as_var+y} \
69138a9f8aSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70138a9f8aSmrgdone
71138a9f8aSmrg
72138a9f8aSmrg# Ensure that fds 0, 1, and 2 are open.
73138a9f8aSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74138a9f8aSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75138a9f8aSmrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
7644af7230Smrg
7744af7230Smrg# The user is always right.
78138a9f8aSmrgif ${PATH_SEPARATOR+false} :; then
7944af7230Smrg  PATH_SEPARATOR=:
8044af7230Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8144af7230Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8244af7230Smrg      PATH_SEPARATOR=';'
8344af7230Smrg  }
848ae04fa6Smrgfi
858ae04fa6Smrg
868ae04fa6Smrg
878ae04fa6Smrg# Find who we are.  Look in the path if we contain no directory separator.
882d1d20fcSmrgas_myself=
892d1d20fcSmrgcase $0 in #((
908ae04fa6Smrg  *[\\/]* ) as_myself=$0 ;;
918ae04fa6Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
928ae04fa6Smrgfor as_dir in $PATH
938ae04fa6Smrgdo
948ae04fa6Smrg  IFS=$as_save_IFS
95138a9f8aSmrg  case $as_dir in #(((
96138a9f8aSmrg    '') as_dir=./ ;;
97138a9f8aSmrg    */) ;;
98138a9f8aSmrg    *) as_dir=$as_dir/ ;;
99138a9f8aSmrg  esac
100138a9f8aSmrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1012d1d20fcSmrg  done
1028ae04fa6SmrgIFS=$as_save_IFS
1038ae04fa6Smrg
1048ae04fa6Smrg     ;;
1058ae04fa6Smrgesac
1068ae04fa6Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1078ae04fa6Smrg# in which case we are not to be found in the path.
1088ae04fa6Smrgif test "x$as_myself" = x; then
1098ae04fa6Smrg  as_myself=$0
1108ae04fa6Smrgfi
1118ae04fa6Smrgif test ! -f "$as_myself"; then
112138a9f8aSmrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1132d1d20fcSmrg  exit 1
1148ae04fa6Smrgfi
1158ae04fa6Smrg
1162d1d20fcSmrg
11780f56f3aSmrg# Use a proper internal environment variable to ensure we don't fall
11880f56f3aSmrg  # into an infinite loop, continuously re-executing ourselves.
11980f56f3aSmrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
12080f56f3aSmrg    _as_can_reexec=no; export _as_can_reexec;
12180f56f3aSmrg    # We cannot yet assume a decent shell, so we have to provide a
12280f56f3aSmrg# neutralization value for shells without unset; and this also
12380f56f3aSmrg# works around shells that cannot unset nonexistent variables.
12480f56f3aSmrg# Preserve -v and -x to the replacement shell.
12580f56f3aSmrgBASH_ENV=/dev/null
12680f56f3aSmrgENV=/dev/null
12780f56f3aSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
12880f56f3aSmrgcase $- in # ((((
12980f56f3aSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
13080f56f3aSmrg  *v* ) as_opts=-v ;;
13180f56f3aSmrg  *x* ) as_opts=-x ;;
13280f56f3aSmrg  * ) as_opts= ;;
13380f56f3aSmrgesac
13480f56f3aSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
13580f56f3aSmrg# Admittedly, this is quite paranoid, since all the known shells bail
13680f56f3aSmrg# out after a failed `exec'.
137138a9f8aSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138138a9f8aSmrgexit 255
13980f56f3aSmrg  fi
14080f56f3aSmrg  # We don't want this to propagate to other subprocesses.
14180f56f3aSmrg          { _as_can_reexec=; unset _as_can_reexec;}
1422d1d20fcSmrgif test "x$CONFIG_SHELL" = x; then
143138a9f8aSmrg  as_bourne_compatible="as_nop=:
144138a9f8aSmrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145138a9f8aSmrgthen :
1462d1d20fcSmrg  emulate sh
1472d1d20fcSmrg  NULLCMD=:
1482d1d20fcSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1492d1d20fcSmrg  # is contrary to our usage.  Disable this feature.
1502d1d20fcSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1512d1d20fcSmrg  setopt NO_GLOB_SUBST
152138a9f8aSmrgelse \$as_nop
1532d1d20fcSmrg  case \`(set -o) 2>/dev/null\` in #(
1542d1d20fcSmrg  *posix*) :
1552d1d20fcSmrg    set -o posix ;; #(
1562d1d20fcSmrg  *) :
1572d1d20fcSmrg     ;;
1582d1d20fcSmrgesac
1592d1d20fcSmrgfi
1602d1d20fcSmrg"
1612d1d20fcSmrg  as_required="as_fn_return () { (exit \$1); }
1622d1d20fcSmrgas_fn_success () { as_fn_return 0; }
1632d1d20fcSmrgas_fn_failure () { as_fn_return 1; }
1642d1d20fcSmrgas_fn_ret_success () { return 0; }
1652d1d20fcSmrgas_fn_ret_failure () { return 1; }
1662d1d20fcSmrg
1672d1d20fcSmrgexitcode=0
1682d1d20fcSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1692d1d20fcSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1702d1d20fcSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1712d1d20fcSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172138a9f8aSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" )
173138a9f8aSmrgthen :
1742d1d20fcSmrg
175138a9f8aSmrgelse \$as_nop
1762d1d20fcSmrg  exitcode=1; echo positional parameters were not saved.
1772d1d20fcSmrgfi
17880f56f3aSmrgtest x\$exitcode = x0 || exit 1
179138a9f8aSmrgblah=\$(echo \$(echo blah))
180138a9f8aSmrgtest x\"\$blah\" = xblah || exit 1
18180f56f3aSmrgtest -x / || exit 1"
1822d1d20fcSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1832d1d20fcSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1842d1d20fcSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1852d1d20fcSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1862d1d20fcSmrgtest \$(( 1 + 1 )) = 2 || exit 1"
187138a9f8aSmrg  if (eval "$as_required") 2>/dev/null
188138a9f8aSmrgthen :
1892d1d20fcSmrg  as_have_required=yes
190138a9f8aSmrgelse $as_nop
1912d1d20fcSmrg  as_have_required=no
1922d1d20fcSmrgfi
193138a9f8aSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194138a9f8aSmrgthen :
1952d1d20fcSmrg
196138a9f8aSmrgelse $as_nop
1972d1d20fcSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982d1d20fcSmrgas_found=false
1992d1d20fcSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2002d1d20fcSmrgdo
2012d1d20fcSmrg  IFS=$as_save_IFS
202138a9f8aSmrg  case $as_dir in #(((
203138a9f8aSmrg    '') as_dir=./ ;;
204138a9f8aSmrg    */) ;;
205138a9f8aSmrg    *) as_dir=$as_dir/ ;;
206138a9f8aSmrg  esac
2072d1d20fcSmrg  as_found=:
2082d1d20fcSmrg  case $as_dir in #(
2092d1d20fcSmrg	 /*)
2102d1d20fcSmrg	   for as_base in sh bash ksh sh5; do
2112d1d20fcSmrg	     # Try only shells that exist, to save several forks.
212138a9f8aSmrg	     as_shell=$as_dir$as_base
2132d1d20fcSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214138a9f8aSmrg		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215138a9f8aSmrgthen :
2162d1d20fcSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
217138a9f8aSmrg		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218138a9f8aSmrgthen :
2192d1d20fcSmrg  break 2
2202d1d20fcSmrgfi
2212d1d20fcSmrgfi
2222d1d20fcSmrg	   done;;
2232d1d20fcSmrg       esac
2242d1d20fcSmrg  as_found=false
2252d1d20fcSmrgdone
2262d1d20fcSmrgIFS=$as_save_IFS
227138a9f8aSmrgif $as_found
228138a9f8aSmrgthen :
229138a9f8aSmrg
230138a9f8aSmrgelse $as_nop
231138a9f8aSmrg  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232138a9f8aSmrg	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233138a9f8aSmrgthen :
234138a9f8aSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
235138a9f8aSmrgfi
236138a9f8aSmrgfi
2372d1d20fcSmrg
2382d1d20fcSmrg
239138a9f8aSmrg      if test "x$CONFIG_SHELL" != x
240138a9f8aSmrgthen :
24180f56f3aSmrg  export CONFIG_SHELL
24280f56f3aSmrg             # We cannot yet assume a decent shell, so we have to provide a
24380f56f3aSmrg# neutralization value for shells without unset; and this also
24480f56f3aSmrg# works around shells that cannot unset nonexistent variables.
24580f56f3aSmrg# Preserve -v and -x to the replacement shell.
24680f56f3aSmrgBASH_ENV=/dev/null
24780f56f3aSmrgENV=/dev/null
24880f56f3aSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
24980f56f3aSmrgcase $- in # ((((
25080f56f3aSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
25180f56f3aSmrg  *v* ) as_opts=-v ;;
25280f56f3aSmrg  *x* ) as_opts=-x ;;
25380f56f3aSmrg  * ) as_opts= ;;
25480f56f3aSmrgesac
25580f56f3aSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
25680f56f3aSmrg# Admittedly, this is quite paranoid, since all the known shells bail
25780f56f3aSmrg# out after a failed `exec'.
258138a9f8aSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
25980f56f3aSmrgexit 255
2602d1d20fcSmrgfi
2612d1d20fcSmrg
262138a9f8aSmrg    if test x$as_have_required = xno
263138a9f8aSmrgthen :
264138a9f8aSmrg  printf "%s\n" "$0: This script requires a shell more modern than all"
265138a9f8aSmrg  printf "%s\n" "$0: the shells that I found on your system."
266138a9f8aSmrg  if test ${ZSH_VERSION+y} ; then
267138a9f8aSmrg    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268138a9f8aSmrg    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
2692d1d20fcSmrg  else
270138a9f8aSmrg    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271138a9f8aSmrg$0: https://gitlab.freedesktop.org/xorg/app/xvinfo/-/issues
2722d1d20fcSmrg$0: about your system, including any error possibly output
2732d1d20fcSmrg$0: before this message. Then install a modern shell, or
2742d1d20fcSmrg$0: manually run the script under such a shell if you do
2752d1d20fcSmrg$0: have one."
2762d1d20fcSmrg  fi
2772d1d20fcSmrg  exit 1
2782d1d20fcSmrgfi
2792d1d20fcSmrgfi
2802d1d20fcSmrgfi
2812d1d20fcSmrgSHELL=${CONFIG_SHELL-/bin/sh}
2822d1d20fcSmrgexport SHELL
2832d1d20fcSmrg# Unset more variables known to interfere with behavior of common tools.
2842d1d20fcSmrgCLICOLOR_FORCE= GREP_OPTIONS=
2852d1d20fcSmrgunset CLICOLOR_FORCE GREP_OPTIONS
2862d1d20fcSmrg
2872d1d20fcSmrg## --------------------- ##
2882d1d20fcSmrg## M4sh Shell Functions. ##
2892d1d20fcSmrg## --------------------- ##
2902d1d20fcSmrg# as_fn_unset VAR
2912d1d20fcSmrg# ---------------
2922d1d20fcSmrg# Portably unset VAR.
2932d1d20fcSmrgas_fn_unset ()
2942d1d20fcSmrg{
2952d1d20fcSmrg  { eval $1=; unset $1;}
2962d1d20fcSmrg}
2972d1d20fcSmrgas_unset=as_fn_unset
2982d1d20fcSmrg
299138a9f8aSmrg
3002d1d20fcSmrg# as_fn_set_status STATUS
3012d1d20fcSmrg# -----------------------
3022d1d20fcSmrg# Set $? to STATUS, without forking.
3032d1d20fcSmrgas_fn_set_status ()
3042d1d20fcSmrg{
3052d1d20fcSmrg  return $1
3062d1d20fcSmrg} # as_fn_set_status
3072d1d20fcSmrg
3082d1d20fcSmrg# as_fn_exit STATUS
3092d1d20fcSmrg# -----------------
3102d1d20fcSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3112d1d20fcSmrgas_fn_exit ()
3122d1d20fcSmrg{
3132d1d20fcSmrg  set +e
3142d1d20fcSmrg  as_fn_set_status $1
3152d1d20fcSmrg  exit $1
3162d1d20fcSmrg} # as_fn_exit
317138a9f8aSmrg# as_fn_nop
318138a9f8aSmrg# ---------
319138a9f8aSmrg# Do nothing but, unlike ":", preserve the value of $?.
320138a9f8aSmrgas_fn_nop ()
321138a9f8aSmrg{
322138a9f8aSmrg  return $?
323138a9f8aSmrg}
324138a9f8aSmrgas_nop=as_fn_nop
3252d1d20fcSmrg
3262d1d20fcSmrg# as_fn_mkdir_p
3272d1d20fcSmrg# -------------
3282d1d20fcSmrg# Create "$as_dir" as a directory, including parents if necessary.
3292d1d20fcSmrgas_fn_mkdir_p ()
3302d1d20fcSmrg{
3312d1d20fcSmrg
3322d1d20fcSmrg  case $as_dir in #(
3332d1d20fcSmrg  -*) as_dir=./$as_dir;;
3342d1d20fcSmrg  esac
3352d1d20fcSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
3362d1d20fcSmrg    as_dirs=
3372d1d20fcSmrg    while :; do
3382d1d20fcSmrg      case $as_dir in #(
339138a9f8aSmrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3402d1d20fcSmrg      *) as_qdir=$as_dir;;
3412d1d20fcSmrg      esac
3422d1d20fcSmrg      as_dirs="'$as_qdir' $as_dirs"
3432d1d20fcSmrg      as_dir=`$as_dirname -- "$as_dir" ||
3442d1d20fcSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3452d1d20fcSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3462d1d20fcSmrg	 X"$as_dir" : 'X\(//\)$' \| \
3472d1d20fcSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348138a9f8aSmrgprintf "%s\n" X"$as_dir" |
3492d1d20fcSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3502d1d20fcSmrg	    s//\1/
3512d1d20fcSmrg	    q
3522d1d20fcSmrg	  }
3532d1d20fcSmrg	  /^X\(\/\/\)[^/].*/{
3542d1d20fcSmrg	    s//\1/
3552d1d20fcSmrg	    q
3562d1d20fcSmrg	  }
3572d1d20fcSmrg	  /^X\(\/\/\)$/{
3582d1d20fcSmrg	    s//\1/
3592d1d20fcSmrg	    q
3602d1d20fcSmrg	  }
3612d1d20fcSmrg	  /^X\(\/\).*/{
3622d1d20fcSmrg	    s//\1/
3632d1d20fcSmrg	    q
3642d1d20fcSmrg	  }
3652d1d20fcSmrg	  s/.*/./; q'`
3662d1d20fcSmrg      test -d "$as_dir" && break
3672d1d20fcSmrg    done
3682d1d20fcSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3692d1d20fcSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3702d1d20fcSmrg
3712d1d20fcSmrg
3722d1d20fcSmrg} # as_fn_mkdir_p
37380f56f3aSmrg
37480f56f3aSmrg# as_fn_executable_p FILE
37580f56f3aSmrg# -----------------------
37680f56f3aSmrg# Test if FILE is an executable regular file.
37780f56f3aSmrgas_fn_executable_p ()
37880f56f3aSmrg{
37980f56f3aSmrg  test -f "$1" && test -x "$1"
38080f56f3aSmrg} # as_fn_executable_p
3812d1d20fcSmrg# as_fn_append VAR VALUE
3822d1d20fcSmrg# ----------------------
3832d1d20fcSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3842d1d20fcSmrg# advantage of any shell optimizations that allow amortized linear growth over
3852d1d20fcSmrg# repeated appends, instead of the typical quadratic growth present in naive
3862d1d20fcSmrg# implementations.
387138a9f8aSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388138a9f8aSmrgthen :
3892d1d20fcSmrg  eval 'as_fn_append ()
3902d1d20fcSmrg  {
3912d1d20fcSmrg    eval $1+=\$2
3922d1d20fcSmrg  }'
393138a9f8aSmrgelse $as_nop
3942d1d20fcSmrg  as_fn_append ()
3952d1d20fcSmrg  {
3962d1d20fcSmrg    eval $1=\$$1\$2
3972d1d20fcSmrg  }
3982d1d20fcSmrgfi # as_fn_append
3992d1d20fcSmrg
4002d1d20fcSmrg# as_fn_arith ARG...
4012d1d20fcSmrg# ------------------
4022d1d20fcSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
4032d1d20fcSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
4042d1d20fcSmrg# must be portable across $(()) and expr.
405138a9f8aSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406138a9f8aSmrgthen :
4072d1d20fcSmrg  eval 'as_fn_arith ()
4082d1d20fcSmrg  {
4092d1d20fcSmrg    as_val=$(( $* ))
4102d1d20fcSmrg  }'
411138a9f8aSmrgelse $as_nop
4122d1d20fcSmrg  as_fn_arith ()
4132d1d20fcSmrg  {
4142d1d20fcSmrg    as_val=`expr "$@" || test $? -eq 1`
4152d1d20fcSmrg  }
4162d1d20fcSmrgfi # as_fn_arith
4172d1d20fcSmrg
418138a9f8aSmrg# as_fn_nop
419138a9f8aSmrg# ---------
420138a9f8aSmrg# Do nothing but, unlike ":", preserve the value of $?.
421138a9f8aSmrgas_fn_nop ()
422138a9f8aSmrg{
423138a9f8aSmrg  return $?
424138a9f8aSmrg}
425138a9f8aSmrgas_nop=as_fn_nop
4262d1d20fcSmrg
4272d1d20fcSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
4282d1d20fcSmrg# ----------------------------------------
4292d1d20fcSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4302d1d20fcSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4312d1d20fcSmrg# script with STATUS, using 1 if that was 0.
4322d1d20fcSmrgas_fn_error ()
4332d1d20fcSmrg{
4342d1d20fcSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
4352d1d20fcSmrg  if test "$4"; then
4362d1d20fcSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437138a9f8aSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4382d1d20fcSmrg  fi
439138a9f8aSmrg  printf "%s\n" "$as_me: error: $2" >&2
4402d1d20fcSmrg  as_fn_exit $as_status
4412d1d20fcSmrg} # as_fn_error
4422d1d20fcSmrg
4438ae04fa6Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
4448ae04fa6Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4458ae04fa6Smrg  as_expr=expr
4468ae04fa6Smrgelse
4478ae04fa6Smrg  as_expr=false
4488ae04fa6Smrgfi
4498ae04fa6Smrg
4508ae04fa6Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4518ae04fa6Smrg  as_basename=basename
4528ae04fa6Smrgelse
4538ae04fa6Smrg  as_basename=false
4548ae04fa6Smrgfi
4558ae04fa6Smrg
4562d1d20fcSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4572d1d20fcSmrg  as_dirname=dirname
4582d1d20fcSmrgelse
4592d1d20fcSmrg  as_dirname=false
4602d1d20fcSmrgfi
4618ae04fa6Smrg
4628ae04fa6Smrgas_me=`$as_basename -- "$0" ||
4638ae04fa6Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4648ae04fa6Smrg	 X"$0" : 'X\(//\)$' \| \
4658ae04fa6Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466138a9f8aSmrgprintf "%s\n" X/"$0" |
4678ae04fa6Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
4688ae04fa6Smrg	    s//\1/
4698ae04fa6Smrg	    q
4708ae04fa6Smrg	  }
4718ae04fa6Smrg	  /^X\/\(\/\/\)$/{
4728ae04fa6Smrg	    s//\1/
4738ae04fa6Smrg	    q
4748ae04fa6Smrg	  }
4758ae04fa6Smrg	  /^X\/\(\/\).*/{
4768ae04fa6Smrg	    s//\1/
4778ae04fa6Smrg	    q
4788ae04fa6Smrg	  }
4798ae04fa6Smrg	  s/.*/./; q'`
4808ae04fa6Smrg
4812d1d20fcSmrg# Avoid depending upon Character Ranges.
4822d1d20fcSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4832d1d20fcSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4842d1d20fcSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4852d1d20fcSmrgas_cr_digits='0123456789'
4862d1d20fcSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
4878ae04fa6Smrg
4888ae04fa6Smrg
4892d1d20fcSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4902d1d20fcSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4912d1d20fcSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4922d1d20fcSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4932d1d20fcSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4942d1d20fcSmrg  sed -n '
4952d1d20fcSmrg    p
4962d1d20fcSmrg    /[$]LINENO/=
4972d1d20fcSmrg  ' <$as_myself |
4982d1d20fcSmrg    sed '
4992d1d20fcSmrg      s/[$]LINENO.*/&-/
5002d1d20fcSmrg      t lineno
5012d1d20fcSmrg      b
5022d1d20fcSmrg      :lineno
5032d1d20fcSmrg      N
5042d1d20fcSmrg      :loop
5052d1d20fcSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5062d1d20fcSmrg      t loop
5072d1d20fcSmrg      s/-\n.*//
5082d1d20fcSmrg    ' >$as_me.lineno &&
5092d1d20fcSmrg  chmod +x "$as_me.lineno" ||
510138a9f8aSmrg    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
5118ae04fa6Smrg
51280f56f3aSmrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
51380f56f3aSmrg  # already done that, so ensure we don't try to do so again and fall
51480f56f3aSmrg  # in an infinite loop.  This has already happened in practice.
51580f56f3aSmrg  _as_can_reexec=no; export _as_can_reexec
5162d1d20fcSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
5172d1d20fcSmrg  # (the dirname of $[0] is not the place where we might find the
5182d1d20fcSmrg  # original and so on.  Autoconf is especially sensitive to this).
5192d1d20fcSmrg  . "./$as_me.lineno"
5202d1d20fcSmrg  # Exit status is that of the last command.
5212d1d20fcSmrg  exit
5228ae04fa6Smrg}
5238ae04fa6Smrg
524138a9f8aSmrg
525138a9f8aSmrg# Determine whether it's possible to make 'echo' print without a newline.
526138a9f8aSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527138a9f8aSmrg# for compatibility with existing Makefiles.
5282d1d20fcSmrgECHO_C= ECHO_N= ECHO_T=
5292d1d20fcSmrgcase `echo -n x` in #(((((
5302d1d20fcSmrg-n*)
5312d1d20fcSmrg  case `echo 'xy\c'` in
5322d1d20fcSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5332d1d20fcSmrg  xy)  ECHO_C='\c';;
5342d1d20fcSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5352d1d20fcSmrg       ECHO_T='	';;
5362d1d20fcSmrg  esac;;
5372d1d20fcSmrg*)
5382d1d20fcSmrg  ECHO_N='-n';;
5392d1d20fcSmrgesac
5408ae04fa6Smrg
541138a9f8aSmrg# For backward compatibility with old third-party macros, we provide
542138a9f8aSmrg# the shell variables $as_echo and $as_echo_n.  New code should use
543138a9f8aSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544138a9f8aSmrgas_echo='printf %s\n'
545138a9f8aSmrgas_echo_n='printf %s'
546138a9f8aSmrg
547138a9f8aSmrg
5482d1d20fcSmrgrm -f conf$$ conf$$.exe conf$$.file
5492d1d20fcSmrgif test -d conf$$.dir; then
5502d1d20fcSmrg  rm -f conf$$.dir/conf$$.file
5512d1d20fcSmrgelse
5522d1d20fcSmrg  rm -f conf$$.dir
5532d1d20fcSmrg  mkdir conf$$.dir 2>/dev/null
5548ae04fa6Smrgfi
5552d1d20fcSmrgif (echo >conf$$.file) 2>/dev/null; then
5562d1d20fcSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5572d1d20fcSmrg    as_ln_s='ln -s'
5582d1d20fcSmrg    # ... but there are two gotchas:
5592d1d20fcSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5602d1d20fcSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
56180f56f3aSmrg    # In both cases, we have to default to `cp -pR'.
5622d1d20fcSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
56380f56f3aSmrg      as_ln_s='cp -pR'
5642d1d20fcSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5652d1d20fcSmrg    as_ln_s=ln
5662d1d20fcSmrg  else
56780f56f3aSmrg    as_ln_s='cp -pR'
5682d1d20fcSmrg  fi
5698ae04fa6Smrgelse
57080f56f3aSmrg  as_ln_s='cp -pR'
5718ae04fa6Smrgfi
5722d1d20fcSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5732d1d20fcSmrgrmdir conf$$.dir 2>/dev/null
5748ae04fa6Smrg
5752d1d20fcSmrgif mkdir -p . 2>/dev/null; then
5762d1d20fcSmrg  as_mkdir_p='mkdir -p "$as_dir"'
5772d1d20fcSmrgelse
5782d1d20fcSmrg  test -d ./-p && rmdir ./-p
5792d1d20fcSmrg  as_mkdir_p=false
5808ae04fa6Smrgfi
5818ae04fa6Smrg
58280f56f3aSmrgas_test_x='test -x'
58380f56f3aSmrgas_executable_p=as_fn_executable_p
5848ae04fa6Smrg
5852d1d20fcSmrg# Sed expression to map a string onto a valid CPP name.
5862d1d20fcSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5878ae04fa6Smrg
5882d1d20fcSmrg# Sed expression to map a string onto a valid variable name.
5892d1d20fcSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5908ae04fa6Smrg
5918ae04fa6Smrg
5922d1d20fcSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
5932d1d20fcSmrgexec 6>&1
5948ae04fa6Smrg
5958ae04fa6Smrg# Name of the host.
5962d1d20fcSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5978ae04fa6Smrg# so uname gets run too.
5988ae04fa6Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5998ae04fa6Smrg
6008ae04fa6Smrg#
6018ae04fa6Smrg# Initializations.
6028ae04fa6Smrg#
6038ae04fa6Smrgac_default_prefix=/usr/local
6048ae04fa6Smrgac_clean_files=
6058ae04fa6Smrgac_config_libobj_dir=.
6068ae04fa6SmrgLIBOBJS=
6078ae04fa6Smrgcross_compiling=no
6088ae04fa6Smrgsubdirs=
6098ae04fa6SmrgMFLAGS=
6108ae04fa6SmrgMAKEFLAGS=
6118ae04fa6Smrg
6128ae04fa6Smrg# Identity of this package.
6138ae04fa6SmrgPACKAGE_NAME='xvinfo'
6148ae04fa6SmrgPACKAGE_TARNAME='xvinfo'
615138a9f8aSmrgPACKAGE_VERSION='1.1.5'
616138a9f8aSmrgPACKAGE_STRING='xvinfo 1.1.5'
617138a9f8aSmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xvinfo/-/issues'
6182d1d20fcSmrgPACKAGE_URL=''
6198ae04fa6Smrg
620405c8079Smrgac_unique_file="Makefile.am"
62144af7230Smrg# Factoring default headers for most tests.
62244af7230Smrgac_includes_default="\
623138a9f8aSmrg#include <stddef.h>
624138a9f8aSmrg#ifdef HAVE_STDIO_H
625138a9f8aSmrg# include <stdio.h>
62644af7230Smrg#endif
627138a9f8aSmrg#ifdef HAVE_STDLIB_H
62844af7230Smrg# include <stdlib.h>
62944af7230Smrg#endif
63044af7230Smrg#ifdef HAVE_STRING_H
63144af7230Smrg# include <string.h>
63244af7230Smrg#endif
63344af7230Smrg#ifdef HAVE_INTTYPES_H
63444af7230Smrg# include <inttypes.h>
63544af7230Smrg#endif
63644af7230Smrg#ifdef HAVE_STDINT_H
63744af7230Smrg# include <stdint.h>
63844af7230Smrg#endif
639138a9f8aSmrg#ifdef HAVE_STRINGS_H
640138a9f8aSmrg# include <strings.h>
641138a9f8aSmrg#endif
642138a9f8aSmrg#ifdef HAVE_SYS_TYPES_H
643138a9f8aSmrg# include <sys/types.h>
644138a9f8aSmrg#endif
645138a9f8aSmrg#ifdef HAVE_SYS_STAT_H
646138a9f8aSmrg# include <sys/stat.h>
647138a9f8aSmrg#endif
64844af7230Smrg#ifdef HAVE_UNISTD_H
64944af7230Smrg# include <unistd.h>
65044af7230Smrg#endif"
65144af7230Smrg
652138a9f8aSmrgac_header_c_list=
65344af7230Smrgac_subst_vars='am__EXEEXT_FALSE
65444af7230Smrgam__EXEEXT_TRUE
65544af7230SmrgLTLIBOBJS
65644af7230SmrgLIBOBJS
6578ae04fa6SmrgXVINFO_LIBS
65844af7230SmrgXVINFO_CFLAGS
6592d1d20fcSmrgMAN_SUBSTS
6602d1d20fcSmrgXORG_MAN_PAGE
6618ae04fa6SmrgADMIN_MAN_DIR
66244af7230SmrgDRIVER_MAN_DIR
66344af7230SmrgMISC_MAN_DIR
66444af7230SmrgFILE_MAN_DIR
66544af7230SmrgLIB_MAN_DIR
66644af7230SmrgAPP_MAN_DIR
66744af7230SmrgADMIN_MAN_SUFFIX
66844af7230SmrgDRIVER_MAN_SUFFIX
66944af7230SmrgMISC_MAN_SUFFIX
67044af7230SmrgFILE_MAN_SUFFIX
67144af7230SmrgLIB_MAN_SUFFIX
67244af7230SmrgAPP_MAN_SUFFIX
6732d1d20fcSmrgSED
67444af7230Smrghost_os
67544af7230Smrghost_vendor
67644af7230Smrghost_cpu
67744af7230Smrghost
67844af7230Smrgbuild_os
67944af7230Smrgbuild_vendor
68044af7230Smrgbuild_cpu
68144af7230Smrgbuild
6822d1d20fcSmrgINSTALL_CMD
683d71d4977SmrgPKG_CONFIG_LIBDIR
684d71d4977SmrgPKG_CONFIG_PATH
6852d1d20fcSmrgPKG_CONFIG
68644af7230SmrgCHANGELOG_CMD
687405c8079SmrgSTRICT_CFLAGS
68844af7230SmrgCWARNFLAGS
689405c8079SmrgBASE_CFLAGS
69044af7230Smrgam__fastdepCC_FALSE
69144af7230Smrgam__fastdepCC_TRUE
69244af7230SmrgCCDEPMODE
693405c8079Smrgam__nodep
69444af7230SmrgAMDEPBACKSLASH
69544af7230SmrgAMDEP_FALSE
69644af7230SmrgAMDEP_TRUE
69744af7230Smrgam__include
69844af7230SmrgDEPDIR
69944af7230SmrgOBJEXT
70044af7230SmrgEXEEXT
70144af7230Smrgac_ct_CC
70244af7230SmrgCPPFLAGS
70344af7230SmrgLDFLAGS
70444af7230SmrgCFLAGS
70544af7230SmrgCC
70680f56f3aSmrgAM_BACKSLASH
70780f56f3aSmrgAM_DEFAULT_VERBOSITY
70880f56f3aSmrgAM_DEFAULT_V
70980f56f3aSmrgAM_V
710138a9f8aSmrgCSCOPE
711138a9f8aSmrgETAGS
712138a9f8aSmrgCTAGS
71344af7230Smrgam__untar
71444af7230Smrgam__tar
71544af7230SmrgAMTAR
71644af7230Smrgam__leading_dot
71744af7230SmrgSET_MAKE
71844af7230SmrgAWK
71944af7230Smrgmkdir_p
72044af7230SmrgMKDIR_P
72144af7230SmrgINSTALL_STRIP_PROGRAM
72244af7230SmrgSTRIP
72344af7230Smrginstall_sh
72444af7230SmrgMAKEINFO
72544af7230SmrgAUTOHEADER
72644af7230SmrgAUTOMAKE
72744af7230SmrgAUTOCONF
72844af7230SmrgACLOCAL
72944af7230SmrgVERSION
73044af7230SmrgPACKAGE
73144af7230SmrgCYGPATH_W
73244af7230Smrgam__isrc
73344af7230SmrgINSTALL_DATA
73444af7230SmrgINSTALL_SCRIPT
73544af7230SmrgINSTALL_PROGRAM
73644af7230Smrgtarget_alias
73744af7230Smrghost_alias
73844af7230Smrgbuild_alias
73944af7230SmrgLIBS
74044af7230SmrgECHO_T
74144af7230SmrgECHO_N
74244af7230SmrgECHO_C
74344af7230SmrgDEFS
74444af7230Smrgmandir
74544af7230Smrglocaledir
74644af7230Smrglibdir
74744af7230Smrgpsdir
74844af7230Smrgpdfdir
74944af7230Smrgdvidir
75044af7230Smrghtmldir
75144af7230Smrginfodir
75244af7230Smrgdocdir
75344af7230Smrgoldincludedir
75444af7230Smrgincludedir
755138a9f8aSmrgrunstatedir
75644af7230Smrglocalstatedir
75744af7230Smrgsharedstatedir
75844af7230Smrgsysconfdir
75944af7230Smrgdatadir
76044af7230Smrgdatarootdir
76144af7230Smrglibexecdir
76244af7230Smrgsbindir
76344af7230Smrgbindir
76444af7230Smrgprogram_transform_name
76544af7230Smrgprefix
76644af7230Smrgexec_prefix
7672d1d20fcSmrgPACKAGE_URL
76844af7230SmrgPACKAGE_BUGREPORT
76944af7230SmrgPACKAGE_STRING
77044af7230SmrgPACKAGE_VERSION
77144af7230SmrgPACKAGE_TARNAME
77244af7230SmrgPACKAGE_NAME
77344af7230SmrgPATH_SEPARATOR
774138a9f8aSmrgSHELL
775138a9f8aSmrgam__quote'
7768ae04fa6Smrgac_subst_files=''
77744af7230Smrgac_user_opts='
77844af7230Smrgenable_option_checking
77980f56f3aSmrgenable_silent_rules
78044af7230Smrgenable_dependency_tracking
781405c8079Smrgenable_selective_werror
78244af7230Smrgenable_strict_compilation
78344af7230Smrg'
7848ae04fa6Smrg      ac_precious_vars='build_alias
7858ae04fa6Smrghost_alias
7868ae04fa6Smrgtarget_alias
7878ae04fa6SmrgCC
7888ae04fa6SmrgCFLAGS
7898ae04fa6SmrgLDFLAGS
7908ae04fa6SmrgLIBS
7918ae04fa6SmrgCPPFLAGS
7928ae04fa6SmrgPKG_CONFIG
793d71d4977SmrgPKG_CONFIG_PATH
794d71d4977SmrgPKG_CONFIG_LIBDIR
7958ae04fa6SmrgXVINFO_CFLAGS
7968ae04fa6SmrgXVINFO_LIBS'
7978ae04fa6Smrg
7988ae04fa6Smrg
7998ae04fa6Smrg# Initialize some variables set by options.
8008ae04fa6Smrgac_init_help=
8018ae04fa6Smrgac_init_version=false
80244af7230Smrgac_unrecognized_opts=
80344af7230Smrgac_unrecognized_sep=
8048ae04fa6Smrg# The variables have the same names as the options, with
8058ae04fa6Smrg# dashes changed to underlines.
8068ae04fa6Smrgcache_file=/dev/null
8078ae04fa6Smrgexec_prefix=NONE
8088ae04fa6Smrgno_create=
8098ae04fa6Smrgno_recursion=
8108ae04fa6Smrgprefix=NONE
8118ae04fa6Smrgprogram_prefix=NONE
8128ae04fa6Smrgprogram_suffix=NONE
8138ae04fa6Smrgprogram_transform_name=s,x,x,
8148ae04fa6Smrgsilent=
8158ae04fa6Smrgsite=
8168ae04fa6Smrgsrcdir=
8178ae04fa6Smrgverbose=
8188ae04fa6Smrgx_includes=NONE
8198ae04fa6Smrgx_libraries=NONE
8208ae04fa6Smrg
8218ae04fa6Smrg# Installation directory options.
8228ae04fa6Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
8238ae04fa6Smrg# and all the variables that are supposed to be based on exec_prefix
8248ae04fa6Smrg# by default will actually change.
8258ae04fa6Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
8268ae04fa6Smrg# (The list follows the same order as the GNU Coding Standards.)
8278ae04fa6Smrgbindir='${exec_prefix}/bin'
8288ae04fa6Smrgsbindir='${exec_prefix}/sbin'
8298ae04fa6Smrglibexecdir='${exec_prefix}/libexec'
8308ae04fa6Smrgdatarootdir='${prefix}/share'
8318ae04fa6Smrgdatadir='${datarootdir}'
8328ae04fa6Smrgsysconfdir='${prefix}/etc'
8338ae04fa6Smrgsharedstatedir='${prefix}/com'
8348ae04fa6Smrglocalstatedir='${prefix}/var'
835138a9f8aSmrgrunstatedir='${localstatedir}/run'
8368ae04fa6Smrgincludedir='${prefix}/include'
8378ae04fa6Smrgoldincludedir='/usr/include'
8388ae04fa6Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
8398ae04fa6Smrginfodir='${datarootdir}/info'
8408ae04fa6Smrghtmldir='${docdir}'
8418ae04fa6Smrgdvidir='${docdir}'
8428ae04fa6Smrgpdfdir='${docdir}'
8438ae04fa6Smrgpsdir='${docdir}'
8448ae04fa6Smrglibdir='${exec_prefix}/lib'
8458ae04fa6Smrglocaledir='${datarootdir}/locale'
8468ae04fa6Smrgmandir='${datarootdir}/man'
8478ae04fa6Smrg
8488ae04fa6Smrgac_prev=
8498ae04fa6Smrgac_dashdash=
8508ae04fa6Smrgfor ac_option
8518ae04fa6Smrgdo
8528ae04fa6Smrg  # If the previous option needs an argument, assign it.
8538ae04fa6Smrg  if test -n "$ac_prev"; then
8548ae04fa6Smrg    eval $ac_prev=\$ac_option
8558ae04fa6Smrg    ac_prev=
8568ae04fa6Smrg    continue
8578ae04fa6Smrg  fi
8588ae04fa6Smrg
8598ae04fa6Smrg  case $ac_option in
8602d1d20fcSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8612d1d20fcSmrg  *=)   ac_optarg= ;;
8622d1d20fcSmrg  *)    ac_optarg=yes ;;
8638ae04fa6Smrg  esac
8648ae04fa6Smrg
8658ae04fa6Smrg  case $ac_dashdash$ac_option in
8668ae04fa6Smrg  --)
8678ae04fa6Smrg    ac_dashdash=yes ;;
8688ae04fa6Smrg
8698ae04fa6Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8708ae04fa6Smrg    ac_prev=bindir ;;
8718ae04fa6Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8728ae04fa6Smrg    bindir=$ac_optarg ;;
8738ae04fa6Smrg
8748ae04fa6Smrg  -build | --build | --buil | --bui | --bu)
8758ae04fa6Smrg    ac_prev=build_alias ;;
8768ae04fa6Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8778ae04fa6Smrg    build_alias=$ac_optarg ;;
8788ae04fa6Smrg
8798ae04fa6Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8808ae04fa6Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8818ae04fa6Smrg    ac_prev=cache_file ;;
8828ae04fa6Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8838ae04fa6Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8848ae04fa6Smrg    cache_file=$ac_optarg ;;
8858ae04fa6Smrg
8868ae04fa6Smrg  --config-cache | -C)
8878ae04fa6Smrg    cache_file=config.cache ;;
8888ae04fa6Smrg
8898ae04fa6Smrg  -datadir | --datadir | --datadi | --datad)
8908ae04fa6Smrg    ac_prev=datadir ;;
8918ae04fa6Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8928ae04fa6Smrg    datadir=$ac_optarg ;;
8938ae04fa6Smrg
8948ae04fa6Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
8958ae04fa6Smrg  | --dataroo | --dataro | --datar)
8968ae04fa6Smrg    ac_prev=datarootdir ;;
8978ae04fa6Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
8988ae04fa6Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
8998ae04fa6Smrg    datarootdir=$ac_optarg ;;
9008ae04fa6Smrg
9018ae04fa6Smrg  -disable-* | --disable-*)
90244af7230Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
9038ae04fa6Smrg    # Reject names that are not valid shell variable names.
90444af7230Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905138a9f8aSmrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
90644af7230Smrg    ac_useropt_orig=$ac_useropt
907138a9f8aSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
90844af7230Smrg    case $ac_user_opts in
90944af7230Smrg      *"
91044af7230Smrg"enable_$ac_useropt"
91144af7230Smrg"*) ;;
91244af7230Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
91344af7230Smrg	 ac_unrecognized_sep=', ';;
91444af7230Smrg    esac
91544af7230Smrg    eval enable_$ac_useropt=no ;;
9168ae04fa6Smrg
9178ae04fa6Smrg  -docdir | --docdir | --docdi | --doc | --do)
9188ae04fa6Smrg    ac_prev=docdir ;;
9198ae04fa6Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
9208ae04fa6Smrg    docdir=$ac_optarg ;;
9218ae04fa6Smrg
9228ae04fa6Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
9238ae04fa6Smrg    ac_prev=dvidir ;;
9248ae04fa6Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
9258ae04fa6Smrg    dvidir=$ac_optarg ;;
9268ae04fa6Smrg
9278ae04fa6Smrg  -enable-* | --enable-*)
92844af7230Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9298ae04fa6Smrg    # Reject names that are not valid shell variable names.
93044af7230Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931138a9f8aSmrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
93244af7230Smrg    ac_useropt_orig=$ac_useropt
933138a9f8aSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
93444af7230Smrg    case $ac_user_opts in
93544af7230Smrg      *"
93644af7230Smrg"enable_$ac_useropt"
93744af7230Smrg"*) ;;
93844af7230Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
93944af7230Smrg	 ac_unrecognized_sep=', ';;
94044af7230Smrg    esac
94144af7230Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
9428ae04fa6Smrg
9438ae04fa6Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9448ae04fa6Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9458ae04fa6Smrg  | --exec | --exe | --ex)
9468ae04fa6Smrg    ac_prev=exec_prefix ;;
9478ae04fa6Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9488ae04fa6Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9498ae04fa6Smrg  | --exec=* | --exe=* | --ex=*)
9508ae04fa6Smrg    exec_prefix=$ac_optarg ;;
9518ae04fa6Smrg
9528ae04fa6Smrg  -gas | --gas | --ga | --g)
9538ae04fa6Smrg    # Obsolete; use --with-gas.
9548ae04fa6Smrg    with_gas=yes ;;
9558ae04fa6Smrg
9568ae04fa6Smrg  -help | --help | --hel | --he | -h)
9578ae04fa6Smrg    ac_init_help=long ;;
9588ae04fa6Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9598ae04fa6Smrg    ac_init_help=recursive ;;
9608ae04fa6Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9618ae04fa6Smrg    ac_init_help=short ;;
9628ae04fa6Smrg
9638ae04fa6Smrg  -host | --host | --hos | --ho)
9648ae04fa6Smrg    ac_prev=host_alias ;;
9658ae04fa6Smrg  -host=* | --host=* | --hos=* | --ho=*)
9668ae04fa6Smrg    host_alias=$ac_optarg ;;
9678ae04fa6Smrg
9688ae04fa6Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
9698ae04fa6Smrg    ac_prev=htmldir ;;
9708ae04fa6Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
9718ae04fa6Smrg  | --ht=*)
9728ae04fa6Smrg    htmldir=$ac_optarg ;;
9738ae04fa6Smrg
9748ae04fa6Smrg  -includedir | --includedir | --includedi | --included | --include \
9758ae04fa6Smrg  | --includ | --inclu | --incl | --inc)
9768ae04fa6Smrg    ac_prev=includedir ;;
9778ae04fa6Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9788ae04fa6Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9798ae04fa6Smrg    includedir=$ac_optarg ;;
9808ae04fa6Smrg
9818ae04fa6Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9828ae04fa6Smrg    ac_prev=infodir ;;
9838ae04fa6Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9848ae04fa6Smrg    infodir=$ac_optarg ;;
9858ae04fa6Smrg
9868ae04fa6Smrg  -libdir | --libdir | --libdi | --libd)
9878ae04fa6Smrg    ac_prev=libdir ;;
9888ae04fa6Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9898ae04fa6Smrg    libdir=$ac_optarg ;;
9908ae04fa6Smrg
9918ae04fa6Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9928ae04fa6Smrg  | --libexe | --libex | --libe)
9938ae04fa6Smrg    ac_prev=libexecdir ;;
9948ae04fa6Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9958ae04fa6Smrg  | --libexe=* | --libex=* | --libe=*)
9968ae04fa6Smrg    libexecdir=$ac_optarg ;;
9978ae04fa6Smrg
9988ae04fa6Smrg  -localedir | --localedir | --localedi | --localed | --locale)
9998ae04fa6Smrg    ac_prev=localedir ;;
10008ae04fa6Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
10018ae04fa6Smrg    localedir=$ac_optarg ;;
10028ae04fa6Smrg
10038ae04fa6Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
10048ae04fa6Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
10058ae04fa6Smrg    ac_prev=localstatedir ;;
10068ae04fa6Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
10078ae04fa6Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
10088ae04fa6Smrg    localstatedir=$ac_optarg ;;
10098ae04fa6Smrg
10108ae04fa6Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
10118ae04fa6Smrg    ac_prev=mandir ;;
10128ae04fa6Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
10138ae04fa6Smrg    mandir=$ac_optarg ;;
10148ae04fa6Smrg
10158ae04fa6Smrg  -nfp | --nfp | --nf)
10168ae04fa6Smrg    # Obsolete; use --without-fp.
10178ae04fa6Smrg    with_fp=no ;;
10188ae04fa6Smrg
10198ae04fa6Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
10208ae04fa6Smrg  | --no-cr | --no-c | -n)
10218ae04fa6Smrg    no_create=yes ;;
10228ae04fa6Smrg
10238ae04fa6Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
10248ae04fa6Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
10258ae04fa6Smrg    no_recursion=yes ;;
10268ae04fa6Smrg
10278ae04fa6Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
10288ae04fa6Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
10298ae04fa6Smrg  | --oldin | --oldi | --old | --ol | --o)
10308ae04fa6Smrg    ac_prev=oldincludedir ;;
10318ae04fa6Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
10328ae04fa6Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
10338ae04fa6Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
10348ae04fa6Smrg    oldincludedir=$ac_optarg ;;
10358ae04fa6Smrg
10368ae04fa6Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10378ae04fa6Smrg    ac_prev=prefix ;;
10388ae04fa6Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10398ae04fa6Smrg    prefix=$ac_optarg ;;
10408ae04fa6Smrg
10418ae04fa6Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
10428ae04fa6Smrg  | --program-pre | --program-pr | --program-p)
10438ae04fa6Smrg    ac_prev=program_prefix ;;
10448ae04fa6Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
10458ae04fa6Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10468ae04fa6Smrg    program_prefix=$ac_optarg ;;
10478ae04fa6Smrg
10488ae04fa6Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
10498ae04fa6Smrg  | --program-suf | --program-su | --program-s)
10508ae04fa6Smrg    ac_prev=program_suffix ;;
10518ae04fa6Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10528ae04fa6Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10538ae04fa6Smrg    program_suffix=$ac_optarg ;;
10548ae04fa6Smrg
10558ae04fa6Smrg  -program-transform-name | --program-transform-name \
10568ae04fa6Smrg  | --program-transform-nam | --program-transform-na \
10578ae04fa6Smrg  | --program-transform-n | --program-transform- \
10588ae04fa6Smrg  | --program-transform | --program-transfor \
10598ae04fa6Smrg  | --program-transfo | --program-transf \
10608ae04fa6Smrg  | --program-trans | --program-tran \
10618ae04fa6Smrg  | --progr-tra | --program-tr | --program-t)
10628ae04fa6Smrg    ac_prev=program_transform_name ;;
10638ae04fa6Smrg  -program-transform-name=* | --program-transform-name=* \
10648ae04fa6Smrg  | --program-transform-nam=* | --program-transform-na=* \
10658ae04fa6Smrg  | --program-transform-n=* | --program-transform-=* \
10668ae04fa6Smrg  | --program-transform=* | --program-transfor=* \
10678ae04fa6Smrg  | --program-transfo=* | --program-transf=* \
10688ae04fa6Smrg  | --program-trans=* | --program-tran=* \
10698ae04fa6Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10708ae04fa6Smrg    program_transform_name=$ac_optarg ;;
10718ae04fa6Smrg
10728ae04fa6Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10738ae04fa6Smrg    ac_prev=pdfdir ;;
10748ae04fa6Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10758ae04fa6Smrg    pdfdir=$ac_optarg ;;
10768ae04fa6Smrg
10778ae04fa6Smrg  -psdir | --psdir | --psdi | --psd | --ps)
10788ae04fa6Smrg    ac_prev=psdir ;;
10798ae04fa6Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10808ae04fa6Smrg    psdir=$ac_optarg ;;
10818ae04fa6Smrg
10828ae04fa6Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10838ae04fa6Smrg  | -silent | --silent | --silen | --sile | --sil)
10848ae04fa6Smrg    silent=yes ;;
10858ae04fa6Smrg
1086138a9f8aSmrg  -runstatedir | --runstatedir | --runstatedi | --runstated \
1087138a9f8aSmrg  | --runstate | --runstat | --runsta | --runst | --runs \
1088138a9f8aSmrg  | --run | --ru | --r)
1089138a9f8aSmrg    ac_prev=runstatedir ;;
1090138a9f8aSmrg  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091138a9f8aSmrg  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092138a9f8aSmrg  | --run=* | --ru=* | --r=*)
1093138a9f8aSmrg    runstatedir=$ac_optarg ;;
1094138a9f8aSmrg
10958ae04fa6Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10968ae04fa6Smrg    ac_prev=sbindir ;;
10978ae04fa6Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
10988ae04fa6Smrg  | --sbi=* | --sb=*)
10998ae04fa6Smrg    sbindir=$ac_optarg ;;
11008ae04fa6Smrg
11018ae04fa6Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
11028ae04fa6Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
11038ae04fa6Smrg  | --sharedst | --shareds | --shared | --share | --shar \
11048ae04fa6Smrg  | --sha | --sh)
11058ae04fa6Smrg    ac_prev=sharedstatedir ;;
11068ae04fa6Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
11078ae04fa6Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
11088ae04fa6Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
11098ae04fa6Smrg  | --sha=* | --sh=*)
11108ae04fa6Smrg    sharedstatedir=$ac_optarg ;;
11118ae04fa6Smrg
11128ae04fa6Smrg  -site | --site | --sit)
11138ae04fa6Smrg    ac_prev=site ;;
11148ae04fa6Smrg  -site=* | --site=* | --sit=*)
11158ae04fa6Smrg    site=$ac_optarg ;;
11168ae04fa6Smrg
11178ae04fa6Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11188ae04fa6Smrg    ac_prev=srcdir ;;
11198ae04fa6Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11208ae04fa6Smrg    srcdir=$ac_optarg ;;
11218ae04fa6Smrg
11228ae04fa6Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
11238ae04fa6Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
11248ae04fa6Smrg    ac_prev=sysconfdir ;;
11258ae04fa6Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
11268ae04fa6Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
11278ae04fa6Smrg    sysconfdir=$ac_optarg ;;
11288ae04fa6Smrg
11298ae04fa6Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
11308ae04fa6Smrg    ac_prev=target_alias ;;
11318ae04fa6Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
11328ae04fa6Smrg    target_alias=$ac_optarg ;;
11338ae04fa6Smrg
11348ae04fa6Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
11358ae04fa6Smrg    verbose=yes ;;
11368ae04fa6Smrg
11378ae04fa6Smrg  -version | --version | --versio | --versi | --vers | -V)
11388ae04fa6Smrg    ac_init_version=: ;;
11398ae04fa6Smrg
11408ae04fa6Smrg  -with-* | --with-*)
114144af7230Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11428ae04fa6Smrg    # Reject names that are not valid shell variable names.
114344af7230Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144138a9f8aSmrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
114544af7230Smrg    ac_useropt_orig=$ac_useropt
1146138a9f8aSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
114744af7230Smrg    case $ac_user_opts in
114844af7230Smrg      *"
114944af7230Smrg"with_$ac_useropt"
115044af7230Smrg"*) ;;
115144af7230Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
115244af7230Smrg	 ac_unrecognized_sep=', ';;
115344af7230Smrg    esac
115444af7230Smrg    eval with_$ac_useropt=\$ac_optarg ;;
11558ae04fa6Smrg
11568ae04fa6Smrg  -without-* | --without-*)
115744af7230Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11588ae04fa6Smrg    # Reject names that are not valid shell variable names.
115944af7230Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160138a9f8aSmrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
116144af7230Smrg    ac_useropt_orig=$ac_useropt
1162138a9f8aSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
116344af7230Smrg    case $ac_user_opts in
116444af7230Smrg      *"
116544af7230Smrg"with_$ac_useropt"
116644af7230Smrg"*) ;;
116744af7230Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
116844af7230Smrg	 ac_unrecognized_sep=', ';;
116944af7230Smrg    esac
117044af7230Smrg    eval with_$ac_useropt=no ;;
11718ae04fa6Smrg
11728ae04fa6Smrg  --x)
11738ae04fa6Smrg    # Obsolete; use --with-x.
11748ae04fa6Smrg    with_x=yes ;;
11758ae04fa6Smrg
11768ae04fa6Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11778ae04fa6Smrg  | --x-incl | --x-inc | --x-in | --x-i)
11788ae04fa6Smrg    ac_prev=x_includes ;;
11798ae04fa6Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11808ae04fa6Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11818ae04fa6Smrg    x_includes=$ac_optarg ;;
11828ae04fa6Smrg
11838ae04fa6Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11848ae04fa6Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11858ae04fa6Smrg    ac_prev=x_libraries ;;
11868ae04fa6Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11878ae04fa6Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11888ae04fa6Smrg    x_libraries=$ac_optarg ;;
11898ae04fa6Smrg
11902d1d20fcSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
11912d1d20fcSmrgTry \`$0 --help' for more information"
11928ae04fa6Smrg    ;;
11938ae04fa6Smrg
11948ae04fa6Smrg  *=*)
11958ae04fa6Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11968ae04fa6Smrg    # Reject names that are not valid shell variable names.
11972d1d20fcSmrg    case $ac_envvar in #(
11982d1d20fcSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
11992d1d20fcSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
12002d1d20fcSmrg    esac
12018ae04fa6Smrg    eval $ac_envvar=\$ac_optarg
12028ae04fa6Smrg    export $ac_envvar ;;
12038ae04fa6Smrg
12048ae04fa6Smrg  *)
12058ae04fa6Smrg    # FIXME: should be removed in autoconf 3.0.
1206138a9f8aSmrg    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
12078ae04fa6Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208138a9f8aSmrg      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
12092d1d20fcSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
12108ae04fa6Smrg    ;;
12118ae04fa6Smrg
12128ae04fa6Smrg  esac
12138ae04fa6Smrgdone
12148ae04fa6Smrg
12158ae04fa6Smrgif test -n "$ac_prev"; then
12168ae04fa6Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12172d1d20fcSmrg  as_fn_error $? "missing argument to $ac_option"
12188ae04fa6Smrgfi
12198ae04fa6Smrg
122044af7230Smrgif test -n "$ac_unrecognized_opts"; then
122144af7230Smrg  case $enable_option_checking in
122244af7230Smrg    no) ;;
12232d1d20fcSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224138a9f8aSmrg    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
122544af7230Smrg  esac
122644af7230Smrgfi
122744af7230Smrg
122844af7230Smrg# Check all directory arguments for consistency.
12298ae04fa6Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
12308ae04fa6Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
12318ae04fa6Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232138a9f8aSmrg		libdir localedir mandir runstatedir
12338ae04fa6Smrgdo
12348ae04fa6Smrg  eval ac_val=\$$ac_var
123544af7230Smrg  # Remove trailing slashes.
123644af7230Smrg  case $ac_val in
123744af7230Smrg    */ )
123844af7230Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
123944af7230Smrg      eval $ac_var=\$ac_val;;
124044af7230Smrg  esac
124144af7230Smrg  # Be sure to have absolute directory names.
12428ae04fa6Smrg  case $ac_val in
12438ae04fa6Smrg    [\\/$]* | ?:[\\/]* )  continue;;
12448ae04fa6Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12458ae04fa6Smrg  esac
12462d1d20fcSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
12478ae04fa6Smrgdone
12488ae04fa6Smrg
12498ae04fa6Smrg# There might be people who depend on the old broken behavior: `$host'
12508ae04fa6Smrg# used to hold the argument of --host etc.
12518ae04fa6Smrg# FIXME: To remove some day.
12528ae04fa6Smrgbuild=$build_alias
12538ae04fa6Smrghost=$host_alias
12548ae04fa6Smrgtarget=$target_alias
12558ae04fa6Smrg
12568ae04fa6Smrg# FIXME: To remove some day.
12578ae04fa6Smrgif test "x$host_alias" != x; then
12588ae04fa6Smrg  if test "x$build_alias" = x; then
12598ae04fa6Smrg    cross_compiling=maybe
12608ae04fa6Smrg  elif test "x$build_alias" != "x$host_alias"; then
12618ae04fa6Smrg    cross_compiling=yes
12628ae04fa6Smrg  fi
12638ae04fa6Smrgfi
12648ae04fa6Smrg
12658ae04fa6Smrgac_tool_prefix=
12668ae04fa6Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12678ae04fa6Smrg
12688ae04fa6Smrgtest "$silent" = yes && exec 6>/dev/null
12698ae04fa6Smrg
12708ae04fa6Smrg
12718ae04fa6Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
12728ae04fa6Smrgac_ls_di=`ls -di .` &&
12738ae04fa6Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12742d1d20fcSmrg  as_fn_error $? "working directory cannot be determined"
12758ae04fa6Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12762d1d20fcSmrg  as_fn_error $? "pwd does not report name of working directory"
12778ae04fa6Smrg
12788ae04fa6Smrg
12798ae04fa6Smrg# Find the source files, if location was not specified.
12808ae04fa6Smrgif test -z "$srcdir"; then
12818ae04fa6Smrg  ac_srcdir_defaulted=yes
12828ae04fa6Smrg  # Try the directory containing this script, then the parent directory.
128344af7230Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
128444af7230Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
128544af7230Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
128644af7230Smrg	 X"$as_myself" : 'X\(//\)$' \| \
128744af7230Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288138a9f8aSmrgprintf "%s\n" X"$as_myself" |
12898ae04fa6Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12908ae04fa6Smrg	    s//\1/
12918ae04fa6Smrg	    q
12928ae04fa6Smrg	  }
12938ae04fa6Smrg	  /^X\(\/\/\)[^/].*/{
12948ae04fa6Smrg	    s//\1/
12958ae04fa6Smrg	    q
12968ae04fa6Smrg	  }
12978ae04fa6Smrg	  /^X\(\/\/\)$/{
12988ae04fa6Smrg	    s//\1/
12998ae04fa6Smrg	    q
13008ae04fa6Smrg	  }
13018ae04fa6Smrg	  /^X\(\/\).*/{
13028ae04fa6Smrg	    s//\1/
13038ae04fa6Smrg	    q
13048ae04fa6Smrg	  }
13058ae04fa6Smrg	  s/.*/./; q'`
13068ae04fa6Smrg  srcdir=$ac_confdir
13078ae04fa6Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
13088ae04fa6Smrg    srcdir=..
13098ae04fa6Smrg  fi
13108ae04fa6Smrgelse
13118ae04fa6Smrg  ac_srcdir_defaulted=no
13128ae04fa6Smrgfi
13138ae04fa6Smrgif test ! -r "$srcdir/$ac_unique_file"; then
13148ae04fa6Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
13152d1d20fcSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
13168ae04fa6Smrgfi
13178ae04fa6Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
13188ae04fa6Smrgac_abs_confdir=`(
13192d1d20fcSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
13208ae04fa6Smrg	pwd)`
13218ae04fa6Smrg# When building in place, set srcdir=.
13228ae04fa6Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
13238ae04fa6Smrg  srcdir=.
13248ae04fa6Smrgfi
13258ae04fa6Smrg# Remove unnecessary trailing slashes from srcdir.
13268ae04fa6Smrg# Double slashes in file names in object file debugging info
13278ae04fa6Smrg# mess up M-x gdb in Emacs.
13288ae04fa6Smrgcase $srcdir in
13298ae04fa6Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
13308ae04fa6Smrgesac
13318ae04fa6Smrgfor ac_var in $ac_precious_vars; do
13328ae04fa6Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
13338ae04fa6Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
13348ae04fa6Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
13358ae04fa6Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
13368ae04fa6Smrgdone
13378ae04fa6Smrg
13388ae04fa6Smrg#
13398ae04fa6Smrg# Report the --help message.
13408ae04fa6Smrg#
13418ae04fa6Smrgif test "$ac_init_help" = "long"; then
13428ae04fa6Smrg  # Omit some internal or obsolete options to make the list less imposing.
13438ae04fa6Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
13448ae04fa6Smrg  cat <<_ACEOF
1345138a9f8aSmrg\`configure' configures xvinfo 1.1.5 to adapt to many kinds of systems.
13468ae04fa6Smrg
13478ae04fa6SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
13488ae04fa6Smrg
13498ae04fa6SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
13508ae04fa6SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
13518ae04fa6Smrg
13528ae04fa6SmrgDefaults for the options are specified in brackets.
13538ae04fa6Smrg
13548ae04fa6SmrgConfiguration:
13558ae04fa6Smrg  -h, --help              display this help and exit
13568ae04fa6Smrg      --help=short        display options specific to this package
13578ae04fa6Smrg      --help=recursive    display the short help of all the included packages
13588ae04fa6Smrg  -V, --version           display version information and exit
13592d1d20fcSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
13608ae04fa6Smrg      --cache-file=FILE   cache test results in FILE [disabled]
13618ae04fa6Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
13628ae04fa6Smrg  -n, --no-create         do not create output files
13638ae04fa6Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
13648ae04fa6Smrg
13658ae04fa6SmrgInstallation directories:
13668ae04fa6Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
136744af7230Smrg                          [$ac_default_prefix]
13688ae04fa6Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
136944af7230Smrg                          [PREFIX]
13708ae04fa6Smrg
13718ae04fa6SmrgBy default, \`make install' will install all the files in
13728ae04fa6Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
13738ae04fa6Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
13748ae04fa6Smrgfor instance \`--prefix=\$HOME'.
13758ae04fa6Smrg
13768ae04fa6SmrgFor better control, use the options below.
13778ae04fa6Smrg
13788ae04fa6SmrgFine tuning of the installation directories:
137944af7230Smrg  --bindir=DIR            user executables [EPREFIX/bin]
138044af7230Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
138144af7230Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
138244af7230Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
138344af7230Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
138444af7230Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1385138a9f8aSmrg  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
138644af7230Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
138744af7230Smrg  --includedir=DIR        C header files [PREFIX/include]
138844af7230Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
138944af7230Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
139044af7230Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
139144af7230Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
139244af7230Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
139344af7230Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
139444af7230Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xvinfo]
139544af7230Smrg  --htmldir=DIR           html documentation [DOCDIR]
139644af7230Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
139744af7230Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
139844af7230Smrg  --psdir=DIR             ps documentation [DOCDIR]
13998ae04fa6Smrg_ACEOF
14008ae04fa6Smrg
14018ae04fa6Smrg  cat <<\_ACEOF
14028ae04fa6Smrg
14038ae04fa6SmrgProgram names:
14048ae04fa6Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
14058ae04fa6Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
14068ae04fa6Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
14078ae04fa6Smrg
14088ae04fa6SmrgSystem types:
14098ae04fa6Smrg  --build=BUILD     configure for building on BUILD [guessed]
14108ae04fa6Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
14118ae04fa6Smrg_ACEOF
14128ae04fa6Smrgfi
14138ae04fa6Smrg
14148ae04fa6Smrgif test -n "$ac_init_help"; then
14158ae04fa6Smrg  case $ac_init_help in
1416138a9f8aSmrg     short | recursive ) echo "Configuration of xvinfo 1.1.5:";;
14178ae04fa6Smrg   esac
14188ae04fa6Smrg  cat <<\_ACEOF
14198ae04fa6Smrg
14208ae04fa6SmrgOptional Features:
142144af7230Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
14228ae04fa6Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
14238ae04fa6Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
142480f56f3aSmrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
142580f56f3aSmrg  --disable-silent-rules  verbose build output (undo: "make V=0")
142680f56f3aSmrg  --enable-dependency-tracking
142780f56f3aSmrg                          do not reject slow dependency extractors
142880f56f3aSmrg  --disable-dependency-tracking
142980f56f3aSmrg                          speeds up one-time build
1430405c8079Smrg  --disable-selective-werror
1431405c8079Smrg                          Turn off selective compiler errors. (default:
1432405c8079Smrg                          enabled)
143344af7230Smrg  --enable-strict-compilation
143444af7230Smrg                          Enable all warnings from compiler and make them
143544af7230Smrg                          errors (default: disabled)
14368ae04fa6Smrg
14378ae04fa6SmrgSome influential environment variables:
14388ae04fa6Smrg  CC          C compiler command
14398ae04fa6Smrg  CFLAGS      C compiler flags
14408ae04fa6Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
14418ae04fa6Smrg              nonstandard directory <lib dir>
14428ae04fa6Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
14432d1d20fcSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
14448ae04fa6Smrg              you have headers in a nonstandard directory <include dir>
14458ae04fa6Smrg  PKG_CONFIG  path to pkg-config utility
1446d71d4977Smrg  PKG_CONFIG_PATH
1447d71d4977Smrg              directories to add to pkg-config's search path
1448d71d4977Smrg  PKG_CONFIG_LIBDIR
1449d71d4977Smrg              path overriding pkg-config's built-in search path
14508ae04fa6Smrg  XVINFO_CFLAGS
14518ae04fa6Smrg              C compiler flags for XVINFO, overriding pkg-config
14528ae04fa6Smrg  XVINFO_LIBS linker flags for XVINFO, overriding pkg-config
14538ae04fa6Smrg
14548ae04fa6SmrgUse these variables to override the choices made by `configure' or to help
14558ae04fa6Smrgit to find libraries and programs with nonstandard names/locations.
14568ae04fa6Smrg
1457138a9f8aSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xvinfo/-/issues>.
14588ae04fa6Smrg_ACEOF
14598ae04fa6Smrgac_status=$?
14608ae04fa6Smrgfi
14618ae04fa6Smrg
14628ae04fa6Smrgif test "$ac_init_help" = "recursive"; then
14638ae04fa6Smrg  # If there are subdirs, report their specific --help.
14648ae04fa6Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
146544af7230Smrg    test -d "$ac_dir" ||
146644af7230Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
146744af7230Smrg      continue
14688ae04fa6Smrg    ac_builddir=.
14698ae04fa6Smrg
14708ae04fa6Smrgcase "$ac_dir" in
14718ae04fa6Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14728ae04fa6Smrg*)
1473138a9f8aSmrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
14748ae04fa6Smrg  # A ".." for each directory in $ac_dir_suffix.
1475138a9f8aSmrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14768ae04fa6Smrg  case $ac_top_builddir_sub in
14778ae04fa6Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14788ae04fa6Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14798ae04fa6Smrg  esac ;;
14808ae04fa6Smrgesac
14818ae04fa6Smrgac_abs_top_builddir=$ac_pwd
14828ae04fa6Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
14838ae04fa6Smrg# for backward compatibility:
14848ae04fa6Smrgac_top_builddir=$ac_top_build_prefix
14858ae04fa6Smrg
14868ae04fa6Smrgcase $srcdir in
14878ae04fa6Smrg  .)  # We are building in place.
14888ae04fa6Smrg    ac_srcdir=.
14898ae04fa6Smrg    ac_top_srcdir=$ac_top_builddir_sub
14908ae04fa6Smrg    ac_abs_top_srcdir=$ac_pwd ;;
14918ae04fa6Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
14928ae04fa6Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
14938ae04fa6Smrg    ac_top_srcdir=$srcdir
14948ae04fa6Smrg    ac_abs_top_srcdir=$srcdir ;;
14958ae04fa6Smrg  *) # Relative name.
14968ae04fa6Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14978ae04fa6Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
14988ae04fa6Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14998ae04fa6Smrgesac
15008ae04fa6Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15018ae04fa6Smrg
15028ae04fa6Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1503138a9f8aSmrg    # Check for configure.gnu first; this name is used for a wrapper for
1504138a9f8aSmrg    # Metaconfig's "Configure" on case-insensitive file systems.
15058ae04fa6Smrg    if test -f "$ac_srcdir/configure.gnu"; then
15068ae04fa6Smrg      echo &&
15078ae04fa6Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
15088ae04fa6Smrg    elif test -f "$ac_srcdir/configure"; then
15098ae04fa6Smrg      echo &&
15108ae04fa6Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
15118ae04fa6Smrg    else
1512138a9f8aSmrg      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
15138ae04fa6Smrg    fi || ac_status=$?
15148ae04fa6Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
15158ae04fa6Smrg  done
15168ae04fa6Smrgfi
15178ae04fa6Smrg
15188ae04fa6Smrgtest -n "$ac_init_help" && exit $ac_status
15198ae04fa6Smrgif $ac_init_version; then
15208ae04fa6Smrg  cat <<\_ACEOF
1521138a9f8aSmrgxvinfo configure 1.1.5
1522138a9f8aSmrggenerated by GNU Autoconf 2.71
15238ae04fa6Smrg
1524138a9f8aSmrgCopyright (C) 2021 Free Software Foundation, Inc.
15258ae04fa6SmrgThis configure script is free software; the Free Software Foundation
15268ae04fa6Smrggives unlimited permission to copy, distribute and modify it.
15278ae04fa6Smrg_ACEOF
15288ae04fa6Smrg  exit
15298ae04fa6Smrgfi
15308ae04fa6Smrg
15312d1d20fcSmrg## ------------------------ ##
15322d1d20fcSmrg## Autoconf initialization. ##
15332d1d20fcSmrg## ------------------------ ##
15348ae04fa6Smrg
15352d1d20fcSmrg# ac_fn_c_try_compile LINENO
15362d1d20fcSmrg# --------------------------
15372d1d20fcSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
15382d1d20fcSmrgac_fn_c_try_compile ()
15398ae04fa6Smrg{
15402d1d20fcSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541138a9f8aSmrg  rm -f conftest.$ac_objext conftest.beam
15422d1d20fcSmrg  if { { ac_try="$ac_compile"
15432d1d20fcSmrgcase "(($ac_try" in
15442d1d20fcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452d1d20fcSmrg  *) ac_try_echo=$ac_try;;
15462d1d20fcSmrgesac
15472d1d20fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548138a9f8aSmrgprintf "%s\n" "$ac_try_echo"; } >&5
15492d1d20fcSmrg  (eval "$ac_compile") 2>conftest.err
15502d1d20fcSmrg  ac_status=$?
15512d1d20fcSmrg  if test -s conftest.err; then
15522d1d20fcSmrg    grep -v '^ *+' conftest.err >conftest.er1
15532d1d20fcSmrg    cat conftest.er1 >&5
15542d1d20fcSmrg    mv -f conftest.er1 conftest.err
15552d1d20fcSmrg  fi
1556138a9f8aSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15572d1d20fcSmrg  test $ac_status = 0; } && {
15582d1d20fcSmrg	 test -z "$ac_c_werror_flag" ||
15592d1d20fcSmrg	 test ! -s conftest.err
1560138a9f8aSmrg       } && test -s conftest.$ac_objext
1561138a9f8aSmrgthen :
15622d1d20fcSmrg  ac_retval=0
1563138a9f8aSmrgelse $as_nop
1564138a9f8aSmrg  printf "%s\n" "$as_me: failed program was:" >&5
15652d1d20fcSmrgsed 's/^/| /' conftest.$ac_ext >&5
15668ae04fa6Smrg
15672d1d20fcSmrg	ac_retval=1
15682d1d20fcSmrgfi
15692d1d20fcSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15702d1d20fcSmrg  as_fn_set_status $ac_retval
15718ae04fa6Smrg
15722d1d20fcSmrg} # ac_fn_c_try_compile
15738ae04fa6Smrg
1574138a9f8aSmrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1575138a9f8aSmrg# ------------------------------------------------------------------
15762d1d20fcSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1577138a9f8aSmrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1578138a9f8aSmrgac_fn_check_decl ()
15792d1d20fcSmrg{
15802d1d20fcSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15812d1d20fcSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1582138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1583138a9f8aSmrgprintf %s "checking whether $as_decl_name is declared... " >&6; }
1584138a9f8aSmrgif eval test \${$3+y}
1585138a9f8aSmrgthen :
1586138a9f8aSmrg  printf %s "(cached) " >&6
1587138a9f8aSmrgelse $as_nop
15882d1d20fcSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1589138a9f8aSmrg  eval ac_save_FLAGS=\$$6
1590138a9f8aSmrg  as_fn_append $6 " $5"
15912d1d20fcSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15922d1d20fcSmrg/* end confdefs.h.  */
15932d1d20fcSmrg$4
15942d1d20fcSmrgint
1595138a9f8aSmrgmain (void)
15962d1d20fcSmrg{
15972d1d20fcSmrg#ifndef $as_decl_name
15982d1d20fcSmrg#ifdef __cplusplus
15992d1d20fcSmrg  (void) $as_decl_use;
16002d1d20fcSmrg#else
16012d1d20fcSmrg  (void) $as_decl_name;
16022d1d20fcSmrg#endif
16032d1d20fcSmrg#endif
16042d1d20fcSmrg
16052d1d20fcSmrg  ;
16062d1d20fcSmrg  return 0;
16072d1d20fcSmrg}
16082d1d20fcSmrg_ACEOF
1609138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
1610138a9f8aSmrgthen :
16112d1d20fcSmrg  eval "$3=yes"
1612138a9f8aSmrgelse $as_nop
16132d1d20fcSmrg  eval "$3=no"
16142d1d20fcSmrgfi
1615138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1616138a9f8aSmrg  eval $6=\$ac_save_FLAGS
16172d1d20fcSmrg
16182d1d20fcSmrgfi
1619138a9f8aSmrgeval ac_res=\$$3
1620138a9f8aSmrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621138a9f8aSmrgprintf "%s\n" "$ac_res" >&6; }
16222d1d20fcSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16232d1d20fcSmrg
1624138a9f8aSmrg} # ac_fn_check_decl
16252d1d20fcSmrg
16262d1d20fcSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
16272d1d20fcSmrg# -------------------------------------------------------
16282d1d20fcSmrg# Tests whether HEADER exists and can be compiled using the include files in
16292d1d20fcSmrg# INCLUDES, setting the cache variable VAR accordingly.
16302d1d20fcSmrgac_fn_c_check_header_compile ()
16312d1d20fcSmrg{
16322d1d20fcSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1634138a9f8aSmrgprintf %s "checking for $2... " >&6; }
1635138a9f8aSmrgif eval test \${$3+y}
1636138a9f8aSmrgthen :
1637138a9f8aSmrg  printf %s "(cached) " >&6
1638138a9f8aSmrgelse $as_nop
16392d1d20fcSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402d1d20fcSmrg/* end confdefs.h.  */
16412d1d20fcSmrg$4
16422d1d20fcSmrg#include <$2>
16432d1d20fcSmrg_ACEOF
1644138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
1645138a9f8aSmrgthen :
16462d1d20fcSmrg  eval "$3=yes"
1647138a9f8aSmrgelse $as_nop
16482d1d20fcSmrg  eval "$3=no"
16492d1d20fcSmrgfi
1650138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16512d1d20fcSmrgfi
16522d1d20fcSmrgeval ac_res=\$$3
1653138a9f8aSmrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654138a9f8aSmrgprintf "%s\n" "$ac_res" >&6; }
16552d1d20fcSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16562d1d20fcSmrg
16572d1d20fcSmrg} # ac_fn_c_check_header_compile
1658405c8079Smrg
1659405c8079Smrg# ac_fn_c_try_link LINENO
1660405c8079Smrg# -----------------------
1661405c8079Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1662405c8079Smrgac_fn_c_try_link ()
1663405c8079Smrg{
1664405c8079Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665138a9f8aSmrg  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1666405c8079Smrg  if { { ac_try="$ac_link"
1667405c8079Smrgcase "(($ac_try" in
1668405c8079Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669405c8079Smrg  *) ac_try_echo=$ac_try;;
1670405c8079Smrgesac
1671405c8079Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672138a9f8aSmrgprintf "%s\n" "$ac_try_echo"; } >&5
1673405c8079Smrg  (eval "$ac_link") 2>conftest.err
1674405c8079Smrg  ac_status=$?
1675405c8079Smrg  if test -s conftest.err; then
1676405c8079Smrg    grep -v '^ *+' conftest.err >conftest.er1
1677405c8079Smrg    cat conftest.er1 >&5
1678405c8079Smrg    mv -f conftest.er1 conftest.err
1679405c8079Smrg  fi
1680138a9f8aSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681405c8079Smrg  test $ac_status = 0; } && {
1682405c8079Smrg	 test -z "$ac_c_werror_flag" ||
1683405c8079Smrg	 test ! -s conftest.err
1684405c8079Smrg       } && test -s conftest$ac_exeext && {
1685405c8079Smrg	 test "$cross_compiling" = yes ||
168680f56f3aSmrg	 test -x conftest$ac_exeext
1687138a9f8aSmrg       }
1688138a9f8aSmrgthen :
1689405c8079Smrg  ac_retval=0
1690138a9f8aSmrgelse $as_nop
1691138a9f8aSmrg  printf "%s\n" "$as_me: failed program was:" >&5
1692405c8079Smrgsed 's/^/| /' conftest.$ac_ext >&5
1693405c8079Smrg
1694405c8079Smrg	ac_retval=1
1695405c8079Smrgfi
1696405c8079Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697405c8079Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698405c8079Smrg  # interfere with the next link command; also delete a directory that is
1699405c8079Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
1700405c8079Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701405c8079Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702405c8079Smrg  as_fn_set_status $ac_retval
1703405c8079Smrg
1704405c8079Smrg} # ac_fn_c_try_link
1705138a9f8aSmrgac_configure_args_raw=
1706138a9f8aSmrgfor ac_arg
1707138a9f8aSmrgdo
1708138a9f8aSmrg  case $ac_arg in
1709138a9f8aSmrg  *\'*)
1710138a9f8aSmrg    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1711138a9f8aSmrg  esac
1712138a9f8aSmrg  as_fn_append ac_configure_args_raw " '$ac_arg'"
1713138a9f8aSmrgdone
1714138a9f8aSmrg
1715138a9f8aSmrgcase $ac_configure_args_raw in
1716138a9f8aSmrg  *$as_nl*)
1717138a9f8aSmrg    ac_safe_unquote= ;;
1718138a9f8aSmrg  *)
1719138a9f8aSmrg    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1720138a9f8aSmrg    ac_unsafe_a="$ac_unsafe_z#~"
1721138a9f8aSmrg    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1722138a9f8aSmrg    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1723138a9f8aSmrgesac
1724138a9f8aSmrg
17252d1d20fcSmrgcat >config.log <<_ACEOF
17262d1d20fcSmrgThis file contains any messages produced by compilers while
17272d1d20fcSmrgrunning configure, to aid debugging if configure makes a mistake.
17282d1d20fcSmrg
1729138a9f8aSmrgIt was created by xvinfo $as_me 1.1.5, which was
1730138a9f8aSmrggenerated by GNU Autoconf 2.71.  Invocation command line was
17312d1d20fcSmrg
1732138a9f8aSmrg  $ $0$ac_configure_args_raw
17332d1d20fcSmrg
17342d1d20fcSmrg_ACEOF
17352d1d20fcSmrgexec 5>>config.log
17362d1d20fcSmrg{
17372d1d20fcSmrgcat <<_ASUNAME
17382d1d20fcSmrg## --------- ##
17392d1d20fcSmrg## Platform. ##
17402d1d20fcSmrg## --------- ##
17412d1d20fcSmrg
17422d1d20fcSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
17432d1d20fcSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
17442d1d20fcSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
17452d1d20fcSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
17462d1d20fcSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
17472d1d20fcSmrg
17482d1d20fcSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
17492d1d20fcSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
17502d1d20fcSmrg
17512d1d20fcSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
17522d1d20fcSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
17532d1d20fcSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
17542d1d20fcSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
17552d1d20fcSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
17562d1d20fcSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
17572d1d20fcSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
17582d1d20fcSmrg
17592d1d20fcSmrg_ASUNAME
17602d1d20fcSmrg
17612d1d20fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17628ae04fa6Smrgfor as_dir in $PATH
17638ae04fa6Smrgdo
17648ae04fa6Smrg  IFS=$as_save_IFS
1765138a9f8aSmrg  case $as_dir in #(((
1766138a9f8aSmrg    '') as_dir=./ ;;
1767138a9f8aSmrg    */) ;;
1768138a9f8aSmrg    *) as_dir=$as_dir/ ;;
1769138a9f8aSmrg  esac
1770138a9f8aSmrg    printf "%s\n" "PATH: $as_dir"
17712d1d20fcSmrg  done
17728ae04fa6SmrgIFS=$as_save_IFS
17738ae04fa6Smrg
17748ae04fa6Smrg} >&5
17758ae04fa6Smrg
17768ae04fa6Smrgcat >&5 <<_ACEOF
17778ae04fa6Smrg
17788ae04fa6Smrg
17798ae04fa6Smrg## ----------- ##
17808ae04fa6Smrg## Core tests. ##
17818ae04fa6Smrg## ----------- ##
17828ae04fa6Smrg
17838ae04fa6Smrg_ACEOF
17848ae04fa6Smrg
17858ae04fa6Smrg
17868ae04fa6Smrg# Keep a trace of the command line.
17878ae04fa6Smrg# Strip out --no-create and --no-recursion so they do not pile up.
17888ae04fa6Smrg# Strip out --silent because we don't want to record it for future runs.
17898ae04fa6Smrg# Also quote any args containing shell meta-characters.
17908ae04fa6Smrg# Make two passes to allow for proper duplicate-argument suppression.
17918ae04fa6Smrgac_configure_args=
17928ae04fa6Smrgac_configure_args0=
17938ae04fa6Smrgac_configure_args1=
17948ae04fa6Smrgac_must_keep_next=false
17958ae04fa6Smrgfor ac_pass in 1 2
17968ae04fa6Smrgdo
17978ae04fa6Smrg  for ac_arg
17988ae04fa6Smrg  do
17998ae04fa6Smrg    case $ac_arg in
18008ae04fa6Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
18018ae04fa6Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18028ae04fa6Smrg    | -silent | --silent | --silen | --sile | --sil)
18038ae04fa6Smrg      continue ;;
18048ae04fa6Smrg    *\'*)
1805138a9f8aSmrg      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18068ae04fa6Smrg    esac
18078ae04fa6Smrg    case $ac_pass in
18082d1d20fcSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
18098ae04fa6Smrg    2)
18102d1d20fcSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
18118ae04fa6Smrg      if test $ac_must_keep_next = true; then
18128ae04fa6Smrg	ac_must_keep_next=false # Got value, back to normal.
18138ae04fa6Smrg      else
18148ae04fa6Smrg	case $ac_arg in
18158ae04fa6Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
18168ae04fa6Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
18178ae04fa6Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
18188ae04fa6Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
18198ae04fa6Smrg	    case "$ac_configure_args0 " in
18208ae04fa6Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
18218ae04fa6Smrg	    esac
18228ae04fa6Smrg	    ;;
18238ae04fa6Smrg	  -* ) ac_must_keep_next=true ;;
18248ae04fa6Smrg	esac
18258ae04fa6Smrg      fi
18262d1d20fcSmrg      as_fn_append ac_configure_args " '$ac_arg'"
18278ae04fa6Smrg      ;;
18288ae04fa6Smrg    esac
18298ae04fa6Smrg  done
18308ae04fa6Smrgdone
18312d1d20fcSmrg{ ac_configure_args0=; unset ac_configure_args0;}
18322d1d20fcSmrg{ ac_configure_args1=; unset ac_configure_args1;}
18338ae04fa6Smrg
18348ae04fa6Smrg# When interrupted or exit'd, cleanup temporary files, and complete
18358ae04fa6Smrg# config.log.  We remove comments because anyway the quotes in there
18368ae04fa6Smrg# would cause problems or look ugly.
18378ae04fa6Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
18388ae04fa6Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
18398ae04fa6Smrgtrap 'exit_status=$?
1840138a9f8aSmrg  # Sanitize IFS.
1841138a9f8aSmrg  IFS=" ""	$as_nl"
18428ae04fa6Smrg  # Save into config.log some information that might help in debugging.
18438ae04fa6Smrg  {
18448ae04fa6Smrg    echo
18458ae04fa6Smrg
1846138a9f8aSmrg    printf "%s\n" "## ---------------- ##
18478ae04fa6Smrg## Cache variables. ##
18482d1d20fcSmrg## ---------------- ##"
18498ae04fa6Smrg    echo
18508ae04fa6Smrg    # The following way of writing the cache mishandles newlines in values,
18518ae04fa6Smrg(
18528ae04fa6Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
18538ae04fa6Smrg    eval ac_val=\$$ac_var
18548ae04fa6Smrg    case $ac_val in #(
18558ae04fa6Smrg    *${as_nl}*)
18568ae04fa6Smrg      case $ac_var in #(
1857138a9f8aSmrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1858138a9f8aSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18598ae04fa6Smrg      esac
18608ae04fa6Smrg      case $ac_var in #(
18618ae04fa6Smrg      _ | IFS | as_nl) ;; #(
186244af7230Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18632d1d20fcSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
18648ae04fa6Smrg      esac ;;
18658ae04fa6Smrg    esac
18668ae04fa6Smrg  done
18678ae04fa6Smrg  (set) 2>&1 |
18688ae04fa6Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
18698ae04fa6Smrg    *${as_nl}ac_space=\ *)
18708ae04fa6Smrg      sed -n \
18718ae04fa6Smrg	"s/'\''/'\''\\\\'\'''\''/g;
18728ae04fa6Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
18738ae04fa6Smrg      ;; #(
18748ae04fa6Smrg    *)
18758ae04fa6Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18768ae04fa6Smrg      ;;
18778ae04fa6Smrg    esac |
18788ae04fa6Smrg    sort
18798ae04fa6Smrg)
18808ae04fa6Smrg    echo
18818ae04fa6Smrg
1882138a9f8aSmrg    printf "%s\n" "## ----------------- ##
18838ae04fa6Smrg## Output variables. ##
18842d1d20fcSmrg## ----------------- ##"
18858ae04fa6Smrg    echo
18868ae04fa6Smrg    for ac_var in $ac_subst_vars
18878ae04fa6Smrg    do
18888ae04fa6Smrg      eval ac_val=\$$ac_var
18898ae04fa6Smrg      case $ac_val in
1890138a9f8aSmrg      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
18918ae04fa6Smrg      esac
1892138a9f8aSmrg      printf "%s\n" "$ac_var='\''$ac_val'\''"
18938ae04fa6Smrg    done | sort
18948ae04fa6Smrg    echo
18958ae04fa6Smrg
18968ae04fa6Smrg    if test -n "$ac_subst_files"; then
1897138a9f8aSmrg      printf "%s\n" "## ------------------- ##
18988ae04fa6Smrg## File substitutions. ##
18992d1d20fcSmrg## ------------------- ##"
19008ae04fa6Smrg      echo
19018ae04fa6Smrg      for ac_var in $ac_subst_files
19028ae04fa6Smrg      do
19038ae04fa6Smrg	eval ac_val=\$$ac_var
19048ae04fa6Smrg	case $ac_val in
1905138a9f8aSmrg	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
19068ae04fa6Smrg	esac
1907138a9f8aSmrg	printf "%s\n" "$ac_var='\''$ac_val'\''"
19088ae04fa6Smrg      done | sort
19098ae04fa6Smrg      echo
19108ae04fa6Smrg    fi
19118ae04fa6Smrg
19128ae04fa6Smrg    if test -s confdefs.h; then
1913138a9f8aSmrg      printf "%s\n" "## ----------- ##
19148ae04fa6Smrg## confdefs.h. ##
19152d1d20fcSmrg## ----------- ##"
19168ae04fa6Smrg      echo
19178ae04fa6Smrg      cat confdefs.h
19188ae04fa6Smrg      echo
19198ae04fa6Smrg    fi
19208ae04fa6Smrg    test "$ac_signal" != 0 &&
1921138a9f8aSmrg      printf "%s\n" "$as_me: caught signal $ac_signal"
1922138a9f8aSmrg    printf "%s\n" "$as_me: exit $exit_status"
19238ae04fa6Smrg  } >&5
19248ae04fa6Smrg  rm -f core *.core core.conftest.* &&
19258ae04fa6Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
19268ae04fa6Smrg    exit $exit_status
19278ae04fa6Smrg' 0
19288ae04fa6Smrgfor ac_signal in 1 2 13 15; do
19292d1d20fcSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
19308ae04fa6Smrgdone
19318ae04fa6Smrgac_signal=0
19328ae04fa6Smrg
19338ae04fa6Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
19348ae04fa6Smrgrm -f -r conftest* confdefs.h
19358ae04fa6Smrg
1936138a9f8aSmrgprintf "%s\n" "/* confdefs.h */" > confdefs.h
19372d1d20fcSmrg
19388ae04fa6Smrg# Predefined preprocessor variables.
19398ae04fa6Smrg
1940138a9f8aSmrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
19418ae04fa6Smrg
1942138a9f8aSmrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
19438ae04fa6Smrg
1944138a9f8aSmrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
19458ae04fa6Smrg
1946138a9f8aSmrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
19478ae04fa6Smrg
1948138a9f8aSmrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
19498ae04fa6Smrg
1950138a9f8aSmrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
19512d1d20fcSmrg
19528ae04fa6Smrg
19538ae04fa6Smrg# Let the site file select an alternate cache file if it wants to.
195444af7230Smrg# Prefer an explicitly selected file to automatically selected ones.
19558ae04fa6Smrgif test -n "$CONFIG_SITE"; then
1956138a9f8aSmrg  ac_site_files="$CONFIG_SITE"
19578ae04fa6Smrgelif test "x$prefix" != xNONE; then
1958138a9f8aSmrg  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
19598ae04fa6Smrgelse
1960138a9f8aSmrg  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
19618ae04fa6Smrgfi
1962138a9f8aSmrg
1963138a9f8aSmrgfor ac_site_file in $ac_site_files
19648ae04fa6Smrgdo
1965138a9f8aSmrg  case $ac_site_file in #(
1966138a9f8aSmrg  */*) :
1967138a9f8aSmrg     ;; #(
1968138a9f8aSmrg  *) :
1969138a9f8aSmrg    ac_site_file=./$ac_site_file ;;
1970138a9f8aSmrgesac
1971138a9f8aSmrg  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1972138a9f8aSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1973138a9f8aSmrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
19748ae04fa6Smrg    sed 's/^/| /' "$ac_site_file" >&5
19752d1d20fcSmrg    . "$ac_site_file" \
1976138a9f8aSmrg      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1977138a9f8aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19782d1d20fcSmrgas_fn_error $? "failed to load site script $ac_site_file
19792d1d20fcSmrgSee \`config.log' for more details" "$LINENO" 5; }
19808ae04fa6Smrg  fi
19818ae04fa6Smrgdone
19828ae04fa6Smrg
19838ae04fa6Smrgif test -r "$cache_file"; then
19842d1d20fcSmrg  # Some versions of bash will fail to source /dev/null (special files
19852d1d20fcSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
19862d1d20fcSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1987138a9f8aSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1988138a9f8aSmrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
19898ae04fa6Smrg    case $cache_file in
19908ae04fa6Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
19918ae04fa6Smrg      *)                      . "./$cache_file";;
19928ae04fa6Smrg    esac
19938ae04fa6Smrg  fi
19948ae04fa6Smrgelse
1995138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1996138a9f8aSmrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
19978ae04fa6Smrg  >$cache_file
19988ae04fa6Smrgfi
19998ae04fa6Smrg
2000138a9f8aSmrg# Test code for whether the C compiler supports C89 (global declarations)
2001138a9f8aSmrgac_c_conftest_c89_globals='
2002138a9f8aSmrg/* Does the compiler advertise C89 conformance?
2003138a9f8aSmrg   Do not test the value of __STDC__, because some compilers set it to 0
2004138a9f8aSmrg   while being otherwise adequately conformant. */
2005138a9f8aSmrg#if !defined __STDC__
2006138a9f8aSmrg# error "Compiler does not advertise C89 conformance"
2007138a9f8aSmrg#endif
20088ae04fa6Smrg
2009138a9f8aSmrg#include <stddef.h>
2010138a9f8aSmrg#include <stdarg.h>
2011138a9f8aSmrgstruct stat;
2012138a9f8aSmrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2013138a9f8aSmrgstruct buf { int x; };
2014138a9f8aSmrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int);
2015138a9f8aSmrgstatic char *e (p, i)
2016138a9f8aSmrg     char **p;
2017138a9f8aSmrg     int i;
2018138a9f8aSmrg{
2019138a9f8aSmrg  return p[i];
2020138a9f8aSmrg}
2021138a9f8aSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
2022138a9f8aSmrg{
2023138a9f8aSmrg  char *s;
2024138a9f8aSmrg  va_list v;
2025138a9f8aSmrg  va_start (v,p);
2026138a9f8aSmrg  s = g (p, va_arg (v,int));
2027138a9f8aSmrg  va_end (v);
2028138a9f8aSmrg  return s;
2029138a9f8aSmrg}
2030405c8079Smrg
2031138a9f8aSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2032138a9f8aSmrg   function prototypes and stuff, but not \xHH hex character constants.
2033138a9f8aSmrg   These do not provoke an error unfortunately, instead are silently treated
2034138a9f8aSmrg   as an "x".  The following induces an error, until -std is added to get
2035138a9f8aSmrg   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2036138a9f8aSmrg   array size at least.  It is necessary to write \x00 == 0 to get something
2037138a9f8aSmrg   that is true only with -std.  */
2038138a9f8aSmrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2039405c8079Smrg
2040138a9f8aSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2041138a9f8aSmrg   inside strings and character constants.  */
2042138a9f8aSmrg#define FOO(x) '\''x'\''
2043138a9f8aSmrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2044405c8079Smrg
2045138a9f8aSmrgint test (int i, double x);
2046138a9f8aSmrgstruct s1 {int (*f) (int a);};
2047138a9f8aSmrgstruct s2 {int (*f) (double a);};
2048138a9f8aSmrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2049138a9f8aSmrg               int, int);'
20508ae04fa6Smrg
2051138a9f8aSmrg# Test code for whether the C compiler supports C89 (body of main).
2052138a9f8aSmrgac_c_conftest_c89_main='
2053138a9f8aSmrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2054138a9f8aSmrg'
20558ae04fa6Smrg
2056138a9f8aSmrg# Test code for whether the C compiler supports C99 (global declarations)
2057138a9f8aSmrgac_c_conftest_c99_globals='
2058138a9f8aSmrg// Does the compiler advertise C99 conformance?
2059138a9f8aSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2060138a9f8aSmrg# error "Compiler does not advertise C99 conformance"
2061138a9f8aSmrg#endif
20628ae04fa6Smrg
2063138a9f8aSmrg#include <stdbool.h>
2064138a9f8aSmrgextern int puts (const char *);
2065138a9f8aSmrgextern int printf (const char *, ...);
2066138a9f8aSmrgextern int dprintf (int, const char *, ...);
2067138a9f8aSmrgextern void *malloc (size_t);
20688ae04fa6Smrg
2069138a9f8aSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2070138a9f8aSmrg// dprintf is used instead of fprintf to avoid needing to declare
2071138a9f8aSmrg// FILE and stderr.
2072138a9f8aSmrg#define debug(...) dprintf (2, __VA_ARGS__)
2073138a9f8aSmrg#define showlist(...) puts (#__VA_ARGS__)
2074138a9f8aSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2075138a9f8aSmrgstatic void
2076138a9f8aSmrgtest_varargs_macros (void)
2077138a9f8aSmrg{
2078138a9f8aSmrg  int x = 1234;
2079138a9f8aSmrg  int y = 5678;
2080138a9f8aSmrg  debug ("Flag");
2081138a9f8aSmrg  debug ("X = %d\n", x);
2082138a9f8aSmrg  showlist (The first, second, and third items.);
2083138a9f8aSmrg  report (x>y, "x is %d but y is %d", x, y);
2084138a9f8aSmrg}
2085138a9f8aSmrg
2086138a9f8aSmrg// Check long long types.
2087138a9f8aSmrg#define BIG64 18446744073709551615ull
2088138a9f8aSmrg#define BIG32 4294967295ul
2089138a9f8aSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2090138a9f8aSmrg#if !BIG_OK
2091138a9f8aSmrg  #error "your preprocessor is broken"
2092138a9f8aSmrg#endif
2093138a9f8aSmrg#if BIG_OK
2094138a9f8aSmrg#else
2095138a9f8aSmrg  #error "your preprocessor is broken"
2096138a9f8aSmrg#endif
2097138a9f8aSmrgstatic long long int bignum = -9223372036854775807LL;
2098138a9f8aSmrgstatic unsigned long long int ubignum = BIG64;
2099138a9f8aSmrg
2100138a9f8aSmrgstruct incomplete_array
2101138a9f8aSmrg{
2102138a9f8aSmrg  int datasize;
2103138a9f8aSmrg  double data[];
2104138a9f8aSmrg};
2105138a9f8aSmrg
2106138a9f8aSmrgstruct named_init {
2107138a9f8aSmrg  int number;
2108138a9f8aSmrg  const wchar_t *name;
2109138a9f8aSmrg  double average;
2110138a9f8aSmrg};
2111138a9f8aSmrg
2112138a9f8aSmrgtypedef const char *ccp;
2113138a9f8aSmrg
2114138a9f8aSmrgstatic inline int
2115138a9f8aSmrgtest_restrict (ccp restrict text)
2116138a9f8aSmrg{
2117138a9f8aSmrg  // See if C++-style comments work.
2118138a9f8aSmrg  // Iterate through items via the restricted pointer.
2119138a9f8aSmrg  // Also check for declarations in for loops.
2120138a9f8aSmrg  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2121138a9f8aSmrg    continue;
2122138a9f8aSmrg  return 0;
2123138a9f8aSmrg}
2124138a9f8aSmrg
2125138a9f8aSmrg// Check varargs and va_copy.
2126138a9f8aSmrgstatic bool
2127138a9f8aSmrgtest_varargs (const char *format, ...)
2128138a9f8aSmrg{
2129138a9f8aSmrg  va_list args;
2130138a9f8aSmrg  va_start (args, format);
2131138a9f8aSmrg  va_list args_copy;
2132138a9f8aSmrg  va_copy (args_copy, args);
2133138a9f8aSmrg
2134138a9f8aSmrg  const char *str = "";
2135138a9f8aSmrg  int number = 0;
2136138a9f8aSmrg  float fnumber = 0;
2137138a9f8aSmrg
2138138a9f8aSmrg  while (*format)
2139138a9f8aSmrg    {
2140138a9f8aSmrg      switch (*format++)
2141138a9f8aSmrg	{
2142138a9f8aSmrg	case '\''s'\'': // string
2143138a9f8aSmrg	  str = va_arg (args_copy, const char *);
2144138a9f8aSmrg	  break;
2145138a9f8aSmrg	case '\''d'\'': // int
2146138a9f8aSmrg	  number = va_arg (args_copy, int);
2147138a9f8aSmrg	  break;
2148138a9f8aSmrg	case '\''f'\'': // float
2149138a9f8aSmrg	  fnumber = va_arg (args_copy, double);
2150138a9f8aSmrg	  break;
2151138a9f8aSmrg	default:
2152138a9f8aSmrg	  break;
2153138a9f8aSmrg	}
2154138a9f8aSmrg    }
2155138a9f8aSmrg  va_end (args_copy);
2156138a9f8aSmrg  va_end (args);
2157138a9f8aSmrg
2158138a9f8aSmrg  return *str && number && fnumber;
2159138a9f8aSmrg}
2160138a9f8aSmrg'
2161138a9f8aSmrg
2162138a9f8aSmrg# Test code for whether the C compiler supports C99 (body of main).
2163138a9f8aSmrgac_c_conftest_c99_main='
2164138a9f8aSmrg  // Check bool.
2165138a9f8aSmrg  _Bool success = false;
2166138a9f8aSmrg  success |= (argc != 0);
2167138a9f8aSmrg
2168138a9f8aSmrg  // Check restrict.
2169138a9f8aSmrg  if (test_restrict ("String literal") == 0)
2170138a9f8aSmrg    success = true;
2171138a9f8aSmrg  char *restrict newvar = "Another string";
2172138a9f8aSmrg
2173138a9f8aSmrg  // Check varargs.
2174138a9f8aSmrg  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2175138a9f8aSmrg  test_varargs_macros ();
2176138a9f8aSmrg
2177138a9f8aSmrg  // Check flexible array members.
2178138a9f8aSmrg  struct incomplete_array *ia =
2179138a9f8aSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2180138a9f8aSmrg  ia->datasize = 10;
2181138a9f8aSmrg  for (int i = 0; i < ia->datasize; ++i)
2182138a9f8aSmrg    ia->data[i] = i * 1.234;
2183138a9f8aSmrg
2184138a9f8aSmrg  // Check named initializers.
2185138a9f8aSmrg  struct named_init ni = {
2186138a9f8aSmrg    .number = 34,
2187138a9f8aSmrg    .name = L"Test wide string",
2188138a9f8aSmrg    .average = 543.34343,
2189138a9f8aSmrg  };
2190138a9f8aSmrg
2191138a9f8aSmrg  ni.number = 58;
2192138a9f8aSmrg
2193138a9f8aSmrg  int dynamic_array[ni.number];
2194138a9f8aSmrg  dynamic_array[0] = argv[0][0];
2195138a9f8aSmrg  dynamic_array[ni.number - 1] = 543;
2196138a9f8aSmrg
2197138a9f8aSmrg  // work around unused variable warnings
2198138a9f8aSmrg  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2199138a9f8aSmrg	 || dynamic_array[ni.number - 1] != 543);
2200138a9f8aSmrg'
2201138a9f8aSmrg
2202138a9f8aSmrg# Test code for whether the C compiler supports C11 (global declarations)
2203138a9f8aSmrgac_c_conftest_c11_globals='
2204138a9f8aSmrg// Does the compiler advertise C11 conformance?
2205138a9f8aSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2206138a9f8aSmrg# error "Compiler does not advertise C11 conformance"
2207138a9f8aSmrg#endif
2208138a9f8aSmrg
2209138a9f8aSmrg// Check _Alignas.
2210138a9f8aSmrgchar _Alignas (double) aligned_as_double;
2211138a9f8aSmrgchar _Alignas (0) no_special_alignment;
2212138a9f8aSmrgextern char aligned_as_int;
2213138a9f8aSmrgchar _Alignas (0) _Alignas (int) aligned_as_int;
2214138a9f8aSmrg
2215138a9f8aSmrg// Check _Alignof.
2216138a9f8aSmrgenum
2217138a9f8aSmrg{
2218138a9f8aSmrg  int_alignment = _Alignof (int),
2219138a9f8aSmrg  int_array_alignment = _Alignof (int[100]),
2220138a9f8aSmrg  char_alignment = _Alignof (char)
2221138a9f8aSmrg};
2222138a9f8aSmrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2223138a9f8aSmrg
2224138a9f8aSmrg// Check _Noreturn.
2225138a9f8aSmrgint _Noreturn does_not_return (void) { for (;;) continue; }
2226138a9f8aSmrg
2227138a9f8aSmrg// Check _Static_assert.
2228138a9f8aSmrgstruct test_static_assert
2229138a9f8aSmrg{
2230138a9f8aSmrg  int x;
2231138a9f8aSmrg  _Static_assert (sizeof (int) <= sizeof (long int),
2232138a9f8aSmrg                  "_Static_assert does not work in struct");
2233138a9f8aSmrg  long int y;
2234138a9f8aSmrg};
2235138a9f8aSmrg
2236138a9f8aSmrg// Check UTF-8 literals.
2237138a9f8aSmrg#define u8 syntax error!
2238138a9f8aSmrgchar const utf8_literal[] = u8"happens to be ASCII" "another string";
2239138a9f8aSmrg
2240138a9f8aSmrg// Check duplicate typedefs.
2241138a9f8aSmrgtypedef long *long_ptr;
2242138a9f8aSmrgtypedef long int *long_ptr;
2243138a9f8aSmrgtypedef long_ptr long_ptr;
2244138a9f8aSmrg
2245138a9f8aSmrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2246138a9f8aSmrgstruct anonymous
2247138a9f8aSmrg{
2248138a9f8aSmrg  union {
2249138a9f8aSmrg    struct { int i; int j; };
2250138a9f8aSmrg    struct { int k; long int l; } w;
2251138a9f8aSmrg  };
2252138a9f8aSmrg  int m;
2253138a9f8aSmrg} v1;
2254138a9f8aSmrg'
2255138a9f8aSmrg
2256138a9f8aSmrg# Test code for whether the C compiler supports C11 (body of main).
2257138a9f8aSmrgac_c_conftest_c11_main='
2258138a9f8aSmrg  _Static_assert ((offsetof (struct anonymous, i)
2259138a9f8aSmrg		   == offsetof (struct anonymous, w.k)),
2260138a9f8aSmrg		  "Anonymous union alignment botch");
2261138a9f8aSmrg  v1.i = 2;
2262138a9f8aSmrg  v1.w.k = 5;
2263138a9f8aSmrg  ok |= v1.i != 5;
2264138a9f8aSmrg'
2265138a9f8aSmrg
2266138a9f8aSmrg# Test code for whether the C compiler supports C11 (complete).
2267138a9f8aSmrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2268138a9f8aSmrg${ac_c_conftest_c99_globals}
2269138a9f8aSmrg${ac_c_conftest_c11_globals}
2270138a9f8aSmrg
2271138a9f8aSmrgint
2272138a9f8aSmrgmain (int argc, char **argv)
2273138a9f8aSmrg{
2274138a9f8aSmrg  int ok = 0;
2275138a9f8aSmrg  ${ac_c_conftest_c89_main}
2276138a9f8aSmrg  ${ac_c_conftest_c99_main}
2277138a9f8aSmrg  ${ac_c_conftest_c11_main}
2278138a9f8aSmrg  return ok;
2279138a9f8aSmrg}
2280138a9f8aSmrg"
2281138a9f8aSmrg
2282138a9f8aSmrg# Test code for whether the C compiler supports C99 (complete).
2283138a9f8aSmrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2284138a9f8aSmrg${ac_c_conftest_c99_globals}
2285138a9f8aSmrg
2286138a9f8aSmrgint
2287138a9f8aSmrgmain (int argc, char **argv)
2288138a9f8aSmrg{
2289138a9f8aSmrg  int ok = 0;
2290138a9f8aSmrg  ${ac_c_conftest_c89_main}
2291138a9f8aSmrg  ${ac_c_conftest_c99_main}
2292138a9f8aSmrg  return ok;
2293138a9f8aSmrg}
2294138a9f8aSmrg"
2295138a9f8aSmrg
2296138a9f8aSmrg# Test code for whether the C compiler supports C89 (complete).
2297138a9f8aSmrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2298138a9f8aSmrg
2299138a9f8aSmrgint
2300138a9f8aSmrgmain (int argc, char **argv)
2301138a9f8aSmrg{
2302138a9f8aSmrg  int ok = 0;
2303138a9f8aSmrg  ${ac_c_conftest_c89_main}
2304138a9f8aSmrg  return ok;
2305138a9f8aSmrg}
2306138a9f8aSmrg"
2307138a9f8aSmrg
2308138a9f8aSmrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2309138a9f8aSmrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2310138a9f8aSmrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2311138a9f8aSmrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2312138a9f8aSmrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2313138a9f8aSmrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2314138a9f8aSmrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2315138a9f8aSmrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2316138a9f8aSmrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2317138a9f8aSmrg
2318138a9f8aSmrg# Auxiliary files required by this configure script.
2319138a9f8aSmrgac_aux_files="config.guess config.sub compile missing install-sh"
2320138a9f8aSmrg
2321138a9f8aSmrg# Locations in which to look for auxiliary files.
2322138a9f8aSmrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2323138a9f8aSmrg
2324138a9f8aSmrg# Search for a directory containing all of the required auxiliary files,
2325138a9f8aSmrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2326138a9f8aSmrg# If we don't find one directory that contains all the files we need,
2327138a9f8aSmrg# we report the set of missing files from the *first* directory in
2328138a9f8aSmrg# $ac_aux_dir_candidates and give up.
2329138a9f8aSmrgac_missing_aux_files=""
2330138a9f8aSmrgac_first_candidate=:
2331138a9f8aSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2332138a9f8aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333138a9f8aSmrgas_found=false
2334138a9f8aSmrgfor as_dir in $ac_aux_dir_candidates
2335138a9f8aSmrgdo
2336138a9f8aSmrg  IFS=$as_save_IFS
2337138a9f8aSmrg  case $as_dir in #(((
2338138a9f8aSmrg    '') as_dir=./ ;;
2339138a9f8aSmrg    */) ;;
2340138a9f8aSmrg    *) as_dir=$as_dir/ ;;
2341138a9f8aSmrg  esac
2342138a9f8aSmrg  as_found=:
2343138a9f8aSmrg
2344138a9f8aSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2345138a9f8aSmrg  ac_aux_dir_found=yes
2346138a9f8aSmrg  ac_install_sh=
2347138a9f8aSmrg  for ac_aux in $ac_aux_files
2348138a9f8aSmrg  do
2349138a9f8aSmrg    # As a special case, if "install-sh" is required, that requirement
2350138a9f8aSmrg    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2351138a9f8aSmrg    # and $ac_install_sh is set appropriately for whichever one is found.
2352138a9f8aSmrg    if test x"$ac_aux" = x"install-sh"
2353138a9f8aSmrg    then
2354138a9f8aSmrg      if test -f "${as_dir}install-sh"; then
2355138a9f8aSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2356138a9f8aSmrg        ac_install_sh="${as_dir}install-sh -c"
2357138a9f8aSmrg      elif test -f "${as_dir}install.sh"; then
2358138a9f8aSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2359138a9f8aSmrg        ac_install_sh="${as_dir}install.sh -c"
2360138a9f8aSmrg      elif test -f "${as_dir}shtool"; then
2361138a9f8aSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2362138a9f8aSmrg        ac_install_sh="${as_dir}shtool install -c"
2363138a9f8aSmrg      else
2364138a9f8aSmrg        ac_aux_dir_found=no
2365138a9f8aSmrg        if $ac_first_candidate; then
2366138a9f8aSmrg          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2367138a9f8aSmrg        else
2368138a9f8aSmrg          break
2369138a9f8aSmrg        fi
2370138a9f8aSmrg      fi
2371138a9f8aSmrg    else
2372138a9f8aSmrg      if test -f "${as_dir}${ac_aux}"; then
2373138a9f8aSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2374138a9f8aSmrg      else
2375138a9f8aSmrg        ac_aux_dir_found=no
2376138a9f8aSmrg        if $ac_first_candidate; then
2377138a9f8aSmrg          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2378138a9f8aSmrg        else
2379138a9f8aSmrg          break
2380138a9f8aSmrg        fi
2381138a9f8aSmrg      fi
2382138a9f8aSmrg    fi
2383138a9f8aSmrg  done
2384138a9f8aSmrg  if test "$ac_aux_dir_found" = yes; then
2385138a9f8aSmrg    ac_aux_dir="$as_dir"
2386138a9f8aSmrg    break
2387138a9f8aSmrg  fi
2388138a9f8aSmrg  ac_first_candidate=false
2389138a9f8aSmrg
2390138a9f8aSmrg  as_found=false
2391138a9f8aSmrgdone
2392138a9f8aSmrgIFS=$as_save_IFS
2393138a9f8aSmrgif $as_found
2394138a9f8aSmrgthen :
2395138a9f8aSmrg
2396138a9f8aSmrgelse $as_nop
2397138a9f8aSmrg  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2398138a9f8aSmrgfi
2399138a9f8aSmrg
2400138a9f8aSmrg
2401138a9f8aSmrg# These three variables are undocumented and unsupported,
2402138a9f8aSmrg# and are intended to be withdrawn in a future Autoconf release.
2403138a9f8aSmrg# They can cause serious problems if a builder's source tree is in a directory
2404138a9f8aSmrg# whose full name contains unusual characters.
2405138a9f8aSmrgif test -f "${ac_aux_dir}config.guess"; then
2406138a9f8aSmrg  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2407138a9f8aSmrgfi
2408138a9f8aSmrgif test -f "${ac_aux_dir}config.sub"; then
2409138a9f8aSmrg  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2410138a9f8aSmrgfi
2411138a9f8aSmrgif test -f "$ac_aux_dir/configure"; then
2412138a9f8aSmrg  ac_configure="$SHELL ${ac_aux_dir}configure"
2413138a9f8aSmrgfi
2414138a9f8aSmrg
2415138a9f8aSmrg# Check that the precious variables saved in the cache have kept the same
2416138a9f8aSmrg# value.
2417138a9f8aSmrgac_cache_corrupted=false
2418138a9f8aSmrgfor ac_var in $ac_precious_vars; do
2419138a9f8aSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2420138a9f8aSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
2421138a9f8aSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2422138a9f8aSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
2423138a9f8aSmrg  case $ac_old_set,$ac_new_set in
2424138a9f8aSmrg    set,)
2425138a9f8aSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2426138a9f8aSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2427138a9f8aSmrg      ac_cache_corrupted=: ;;
2428138a9f8aSmrg    ,set)
2429138a9f8aSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2430138a9f8aSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2431138a9f8aSmrg      ac_cache_corrupted=: ;;
2432138a9f8aSmrg    ,);;
2433138a9f8aSmrg    *)
2434138a9f8aSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2435138a9f8aSmrg	# differences in whitespace do not lead to failure.
2436138a9f8aSmrg	ac_old_val_w=`echo x $ac_old_val`
2437138a9f8aSmrg	ac_new_val_w=`echo x $ac_new_val`
2438138a9f8aSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2439138a9f8aSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2440138a9f8aSmrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2441138a9f8aSmrg	  ac_cache_corrupted=:
2442138a9f8aSmrg	else
2443138a9f8aSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2444138a9f8aSmrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2445138a9f8aSmrg	  eval $ac_var=\$ac_old_val
2446138a9f8aSmrg	fi
2447138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2448138a9f8aSmrgprintf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2449138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2450138a9f8aSmrgprintf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2451138a9f8aSmrg      fi;;
2452138a9f8aSmrg  esac
2453138a9f8aSmrg  # Pass precious variables to config.status.
2454138a9f8aSmrg  if test "$ac_new_set" = set; then
2455138a9f8aSmrg    case $ac_new_val in
2456138a9f8aSmrg    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2457138a9f8aSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2458138a9f8aSmrg    esac
2459138a9f8aSmrg    case " $ac_configure_args " in
2460138a9f8aSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2461138a9f8aSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2462138a9f8aSmrg    esac
2463138a9f8aSmrg  fi
2464138a9f8aSmrgdone
2465138a9f8aSmrgif $ac_cache_corrupted; then
2466138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2467138a9f8aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2468138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2469138a9f8aSmrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2470138a9f8aSmrg  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2471138a9f8aSmrg	    and start over" "$LINENO" 5
2472138a9f8aSmrgfi
2473138a9f8aSmrg## -------------------- ##
2474138a9f8aSmrg## Main body of script. ##
2475138a9f8aSmrg## -------------------- ##
2476138a9f8aSmrg
2477138a9f8aSmrgac_ext=c
2478138a9f8aSmrgac_cpp='$CPP $CPPFLAGS'
2479138a9f8aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480138a9f8aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481138a9f8aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2482138a9f8aSmrg
2483138a9f8aSmrg
2484138a9f8aSmrg
2485138a9f8aSmrgac_config_headers="$ac_config_headers config.h"
2486138a9f8aSmrg
2487138a9f8aSmrg
2488138a9f8aSmrg# Initialize Automake
2489138a9f8aSmrgam__api_version='1.16'
2490138a9f8aSmrg
2491138a9f8aSmrg
2492138a9f8aSmrg
2493138a9f8aSmrg  # Find a good install program.  We prefer a C program (faster),
2494138a9f8aSmrg# so one script is as good as another.  But avoid the broken or
2495138a9f8aSmrg# incompatible versions:
2496138a9f8aSmrg# SysV /etc/install, /usr/sbin/install
2497138a9f8aSmrg# SunOS /usr/etc/install
2498138a9f8aSmrg# IRIX /sbin/install
2499138a9f8aSmrg# AIX /bin/install
25008ae04fa6Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
25018ae04fa6Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
25028ae04fa6Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
25038ae04fa6Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
25048ae04fa6Smrg# OS/2's system install, which has a completely different semantic
25058ae04fa6Smrg# ./install, which can be erroneously created by make from ./install.sh.
250644af7230Smrg# Reject install programs that cannot install multiple files.
2507138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2508138a9f8aSmrgprintf %s "checking for a BSD-compatible install... " >&6; }
25098ae04fa6Smrgif test -z "$INSTALL"; then
2510138a9f8aSmrgif test ${ac_cv_path_install+y}
2511138a9f8aSmrgthen :
2512138a9f8aSmrg  printf %s "(cached) " >&6
2513138a9f8aSmrgelse $as_nop
25148ae04fa6Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25158ae04fa6Smrgfor as_dir in $PATH
25168ae04fa6Smrgdo
25178ae04fa6Smrg  IFS=$as_save_IFS
2518138a9f8aSmrg  case $as_dir in #(((
2519138a9f8aSmrg    '') as_dir=./ ;;
2520138a9f8aSmrg    */) ;;
2521138a9f8aSmrg    *) as_dir=$as_dir/ ;;
2522138a9f8aSmrg  esac
2523138a9f8aSmrg    # Account for fact that we put trailing slashes in our PATH walk.
2524138a9f8aSmrgcase $as_dir in #((
2525138a9f8aSmrg  ./ | /[cC]/* | \
25268ae04fa6Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
25272d1d20fcSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
25288ae04fa6Smrg  /usr/ucb/* ) ;;
25298ae04fa6Smrg  *)
25308ae04fa6Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
25318ae04fa6Smrg    # Don't use installbsd from OSF since it installs stuff as root
25328ae04fa6Smrg    # by default.
25338ae04fa6Smrg    for ac_prog in ginstall scoinst install; do
25348ae04fa6Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2535138a9f8aSmrg	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
25368ae04fa6Smrg	  if test $ac_prog = install &&
2537138a9f8aSmrg	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
25388ae04fa6Smrg	    # AIX install.  It has an incompatible calling convention.
25398ae04fa6Smrg	    :
25408ae04fa6Smrg	  elif test $ac_prog = install &&
2541138a9f8aSmrg	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
25428ae04fa6Smrg	    # program-specific install script used by HP pwplus--don't use.
25438ae04fa6Smrg	    :
25448ae04fa6Smrg	  else
254544af7230Smrg	    rm -rf conftest.one conftest.two conftest.dir
254644af7230Smrg	    echo one > conftest.one
254744af7230Smrg	    echo two > conftest.two
254844af7230Smrg	    mkdir conftest.dir
2549138a9f8aSmrg	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
255044af7230Smrg	      test -s conftest.one && test -s conftest.two &&
255144af7230Smrg	      test -s conftest.dir/conftest.one &&
255244af7230Smrg	      test -s conftest.dir/conftest.two
255344af7230Smrg	    then
2554138a9f8aSmrg	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
255544af7230Smrg	      break 3
255644af7230Smrg	    fi
25578ae04fa6Smrg	  fi
25588ae04fa6Smrg	fi
25598ae04fa6Smrg      done
25608ae04fa6Smrg    done
25618ae04fa6Smrg    ;;
25628ae04fa6Smrgesac
256344af7230Smrg
25642d1d20fcSmrg  done
25658ae04fa6SmrgIFS=$as_save_IFS
25668ae04fa6Smrg
256744af7230Smrgrm -rf conftest.one conftest.two conftest.dir
25688ae04fa6Smrg
25698ae04fa6Smrgfi
2570138a9f8aSmrg  if test ${ac_cv_path_install+y}; then
25718ae04fa6Smrg    INSTALL=$ac_cv_path_install
25728ae04fa6Smrg  else
25738ae04fa6Smrg    # As a last resort, use the slow shell script.  Don't cache a
25748ae04fa6Smrg    # value for INSTALL within a source directory, because that will
25758ae04fa6Smrg    # break other packages using the cache if that directory is
25768ae04fa6Smrg    # removed, or if the value is a relative name.
25778ae04fa6Smrg    INSTALL=$ac_install_sh
25788ae04fa6Smrg  fi
25798ae04fa6Smrgfi
2580138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2581138a9f8aSmrgprintf "%s\n" "$INSTALL" >&6; }
25828ae04fa6Smrg
25838ae04fa6Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
25848ae04fa6Smrg# It thinks the first close brace ends the variable substitution.
25858ae04fa6Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
25868ae04fa6Smrg
25878ae04fa6Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
25888ae04fa6Smrg
25898ae04fa6Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
25908ae04fa6Smrg
2591138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2592138a9f8aSmrgprintf %s "checking whether build environment is sane... " >&6; }
259344af7230Smrg# Reject unsafe characters in $srcdir or the absolute working directory
259444af7230Smrg# name.  Accept space and tab only in the latter.
259544af7230Smrgam_lf='
259644af7230Smrg'
259744af7230Smrgcase `pwd` in
259844af7230Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
25992d1d20fcSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
260044af7230Smrgesac
260144af7230Smrgcase $srcdir in
260244af7230Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
260380f56f3aSmrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
260444af7230Smrgesac
260544af7230Smrg
260680f56f3aSmrg# Do 'set' in a subshell so we don't clobber the current shell's
26078ae04fa6Smrg# arguments.  Must try -L first in case configure is actually a
26088ae04fa6Smrg# symlink; some systems play weird games with the mod time of symlinks
26098ae04fa6Smrg# (eg FreeBSD returns the mod time of the symlink's containing
26108ae04fa6Smrg# directory).
26118ae04fa6Smrgif (
261280f56f3aSmrg   am_has_slept=no
261380f56f3aSmrg   for am_try in 1 2; do
261480f56f3aSmrg     echo "timestamp, slept: $am_has_slept" > conftest.file
261580f56f3aSmrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
261680f56f3aSmrg     if test "$*" = "X"; then
261780f56f3aSmrg	# -L didn't work.
261880f56f3aSmrg	set X `ls -t "$srcdir/configure" conftest.file`
261980f56f3aSmrg     fi
262080f56f3aSmrg     if test "$*" != "X $srcdir/configure conftest.file" \
262180f56f3aSmrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
262280f56f3aSmrg
262380f56f3aSmrg	# If neither matched, then we have a broken ls.  This can happen
262480f56f3aSmrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
262580f56f3aSmrg	# broken ls alias from the environment.  This has actually
262680f56f3aSmrg	# happened.  Such a system could not be considered "sane".
262780f56f3aSmrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
262880f56f3aSmrg  alias in your environment" "$LINENO" 5
262980f56f3aSmrg     fi
263080f56f3aSmrg     if test "$2" = conftest.file || test $am_try -eq 2; then
263180f56f3aSmrg       break
263280f56f3aSmrg     fi
263380f56f3aSmrg     # Just in case.
263480f56f3aSmrg     sleep 1
263580f56f3aSmrg     am_has_slept=yes
263680f56f3aSmrg   done
26378ae04fa6Smrg   test "$2" = conftest.file
26388ae04fa6Smrg   )
26398ae04fa6Smrgthen
26408ae04fa6Smrg   # Ok.
26418ae04fa6Smrg   :
26428ae04fa6Smrgelse
26432d1d20fcSmrg   as_fn_error $? "newly created file is older than distributed files!
26442d1d20fcSmrgCheck your system clock" "$LINENO" 5
26458ae04fa6Smrgfi
2646138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2647138a9f8aSmrgprintf "%s\n" "yes" >&6; }
264880f56f3aSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and
264980f56f3aSmrg# generated files are strictly newer.
265080f56f3aSmrgam_sleep_pid=
265180f56f3aSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
265280f56f3aSmrg  ( sleep 1 ) &
265380f56f3aSmrg  am_sleep_pid=$!
265480f56f3aSmrgfi
265580f56f3aSmrg
265680f56f3aSmrgrm -f conftest.file
265780f56f3aSmrg
26588ae04fa6Smrgtest "$program_prefix" != NONE &&
26598ae04fa6Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
26608ae04fa6Smrg# Use a double $ so make ignores it.
26618ae04fa6Smrgtest "$program_suffix" != NONE &&
26628ae04fa6Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
266344af7230Smrg# Double any \ or $.
26648ae04fa6Smrg# By default was `s,x,x', remove it if useless.
266544af7230Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2666138a9f8aSmrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2667138a9f8aSmrg
26688ae04fa6Smrg
266980f56f3aSmrg# Expand $ac_aux_dir to an absolute path.
267080f56f3aSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
26718ae04fa6Smrg
2672138a9f8aSmrg
2673138a9f8aSmrg  if test x"${MISSING+set}" != xset; then
2674138a9f8aSmrg  MISSING="\${SHELL} '$am_aux_dir/missing'"
267544af7230Smrgfi
26768ae04fa6Smrg# Use eval to expand $SHELL
267780f56f3aSmrgif eval "$MISSING --is-lightweight"; then
267880f56f3aSmrg  am_missing_run="$MISSING "
26798ae04fa6Smrgelse
26808ae04fa6Smrg  am_missing_run=
2681138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2682138a9f8aSmrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
26838ae04fa6Smrgfi
26848ae04fa6Smrg
268580f56f3aSmrgif test x"${install_sh+set}" != xset; then
268644af7230Smrg  case $am_aux_dir in
268744af7230Smrg  *\ * | *\	*)
268844af7230Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
268944af7230Smrg  *)
269044af7230Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
269144af7230Smrg  esac
269244af7230Smrgfi
269344af7230Smrg
269480f56f3aSmrg# Installed binaries are usually stripped using 'strip' when the user
269580f56f3aSmrg# run "make install-strip".  However 'strip' might not be the right
269644af7230Smrg# tool to use in cross-compilation environments, therefore Automake
269780f56f3aSmrg# will honor the 'STRIP' environment variable to overrule this program.
269844af7230Smrgif test "$cross_compiling" != no; then
269944af7230Smrg  if test -n "$ac_tool_prefix"; then
270044af7230Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
270144af7230Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2702138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703138a9f8aSmrgprintf %s "checking for $ac_word... " >&6; }
2704138a9f8aSmrgif test ${ac_cv_prog_STRIP+y}
2705138a9f8aSmrgthen :
2706138a9f8aSmrg  printf %s "(cached) " >&6
2707138a9f8aSmrgelse $as_nop
270844af7230Smrg  if test -n "$STRIP"; then
270944af7230Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
271044af7230Smrgelse
271144af7230Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
271244af7230Smrgfor as_dir in $PATH
271344af7230Smrgdo
271444af7230Smrg  IFS=$as_save_IFS
2715138a9f8aSmrg  case $as_dir in #(((
2716138a9f8aSmrg    '') as_dir=./ ;;
2717138a9f8aSmrg    */) ;;
2718138a9f8aSmrg    *) as_dir=$as_dir/ ;;
2719138a9f8aSmrg  esac
27202d1d20fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2721138a9f8aSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
272244af7230Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2723138a9f8aSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
272444af7230Smrg    break 2
272544af7230Smrg  fi
272644af7230Smrgdone
27272d1d20fcSmrg  done
272844af7230SmrgIFS=$as_save_IFS
272944af7230Smrg
273044af7230Smrgfi
273144af7230Smrgfi
273244af7230SmrgSTRIP=$ac_cv_prog_STRIP
273344af7230Smrgif test -n "$STRIP"; then
2734138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2735138a9f8aSmrgprintf "%s\n" "$STRIP" >&6; }
273644af7230Smrgelse
2737138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738138a9f8aSmrgprintf "%s\n" "no" >&6; }
273944af7230Smrgfi
274044af7230Smrg
274144af7230Smrg
274244af7230Smrgfi
274344af7230Smrgif test -z "$ac_cv_prog_STRIP"; then
274444af7230Smrg  ac_ct_STRIP=$STRIP
274544af7230Smrg  # Extract the first word of "strip", so it can be a program name with args.
274644af7230Smrgset dummy strip; ac_word=$2
2747138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748138a9f8aSmrgprintf %s "checking for $ac_word... " >&6; }
2749138a9f8aSmrgif test ${ac_cv_prog_ac_ct_STRIP+y}
2750138a9f8aSmrgthen :
2751138a9f8aSmrg  printf %s "(cached) " >&6
2752138a9f8aSmrgelse $as_nop
275344af7230Smrg  if test -n "$ac_ct_STRIP"; then
275444af7230Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
275544af7230Smrgelse
275644af7230Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
275744af7230Smrgfor as_dir in $PATH
275844af7230Smrgdo
275944af7230Smrg  IFS=$as_save_IFS
2760138a9f8aSmrg  case $as_dir in #(((
2761138a9f8aSmrg    '') as_dir=./ ;;
2762138a9f8aSmrg    */) ;;
2763138a9f8aSmrg    *) as_dir=$as_dir/ ;;
2764138a9f8aSmrg  esac
27652d1d20fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2766138a9f8aSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
276744af7230Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2768138a9f8aSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
276944af7230Smrg    break 2
277044af7230Smrg  fi
277144af7230Smrgdone
27722d1d20fcSmrg  done
277344af7230SmrgIFS=$as_save_IFS
277444af7230Smrg
277544af7230Smrgfi
277644af7230Smrgfi
277744af7230Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
277844af7230Smrgif test -n "$ac_ct_STRIP"; then
2779138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2780138a9f8aSmrgprintf "%s\n" "$ac_ct_STRIP" >&6; }
278144af7230Smrgelse
2782138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783138a9f8aSmrgprintf "%s\n" "no" >&6; }
278444af7230Smrgfi
278544af7230Smrg
278644af7230Smrg  if test "x$ac_ct_STRIP" = x; then
278744af7230Smrg    STRIP=":"
278844af7230Smrg  else
278944af7230Smrg    case $cross_compiling:$ac_tool_warned in
279044af7230Smrgyes:)
2791138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2792138a9f8aSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
279344af7230Smrgac_tool_warned=yes ;;
279444af7230Smrgesac
279544af7230Smrg    STRIP=$ac_ct_STRIP
279644af7230Smrg  fi
279744af7230Smrgelse
279844af7230Smrg  STRIP="$ac_cv_prog_STRIP"
279944af7230Smrgfi
280044af7230Smrg
280144af7230Smrgfi
280244af7230SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
280344af7230Smrg
2804138a9f8aSmrg
2805138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2806138a9f8aSmrgprintf %s "checking for a race-free mkdir -p... " >&6; }
280744af7230Smrgif test -z "$MKDIR_P"; then
2808138a9f8aSmrg  if test ${ac_cv_path_mkdir+y}
2809138a9f8aSmrgthen :
2810138a9f8aSmrg  printf %s "(cached) " >&6
2811138a9f8aSmrgelse $as_nop
28128ae04fa6Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28138ae04fa6Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
28148ae04fa6Smrgdo
28158ae04fa6Smrg  IFS=$as_save_IFS
2816138a9f8aSmrg  case $as_dir in #(((
2817138a9f8aSmrg    '') as_dir=./ ;;
2818138a9f8aSmrg    */) ;;
2819138a9f8aSmrg    *) as_dir=$as_dir/ ;;
2820138a9f8aSmrg  esac
28212d1d20fcSmrg    for ac_prog in mkdir gmkdir; do
28228ae04fa6Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2823138a9f8aSmrg	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2824138a9f8aSmrg	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2825138a9f8aSmrg	     'mkdir ('*'coreutils) '* | \
2826138a9f8aSmrg	     'BusyBox '* | \
28278ae04fa6Smrg	     'mkdir (fileutils) '4.1*)
2828138a9f8aSmrg	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
28298ae04fa6Smrg	       break 3;;
28308ae04fa6Smrg	   esac
28318ae04fa6Smrg	 done
28328ae04fa6Smrg       done
28332d1d20fcSmrg  done
28348ae04fa6SmrgIFS=$as_save_IFS
28358ae04fa6Smrg
28368ae04fa6Smrgfi
28378ae04fa6Smrg
28382d1d20fcSmrg  test -d ./--version && rmdir ./--version
2839138a9f8aSmrg  if test ${ac_cv_path_mkdir+y}; then
28408ae04fa6Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
28418ae04fa6Smrg  else
28428ae04fa6Smrg    # As a last resort, use the slow shell script.  Don't cache a
28438ae04fa6Smrg    # value for MKDIR_P within a source directory, because that will
28448ae04fa6Smrg    # break other packages using the cache if that directory is
28458ae04fa6Smrg    # removed, or if the value is a relative name.
28468ae04fa6Smrg    MKDIR_P="$ac_install_sh -d"
28478ae04fa6Smrg  fi
28488ae04fa6Smrgfi
2849138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2850138a9f8aSmrgprintf "%s\n" "$MKDIR_P" >&6; }
28518ae04fa6Smrg
28528ae04fa6Smrgfor ac_prog in gawk mawk nawk awk
28538ae04fa6Smrgdo
28548ae04fa6Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
28558ae04fa6Smrgset dummy $ac_prog; ac_word=$2
2856138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857138a9f8aSmrgprintf %s "checking for $ac_word... " >&6; }
2858138a9f8aSmrgif test ${ac_cv_prog_AWK+y}
2859138a9f8aSmrgthen :
2860138a9f8aSmrg  printf %s "(cached) " >&6
2861138a9f8aSmrgelse $as_nop
28628ae04fa6Smrg  if test -n "$AWK"; then
28638ae04fa6Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
28648ae04fa6Smrgelse
28658ae04fa6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28668ae04fa6Smrgfor as_dir in $PATH
28678ae04fa6Smrgdo
28688ae04fa6Smrg  IFS=$as_save_IFS
2869138a9f8aSmrg  case $as_dir in #(((
2870138a9f8aSmrg    '') as_dir=./ ;;
2871138a9f8aSmrg    */) ;;
2872138a9f8aSmrg    *) as_dir=$as_dir/ ;;
2873138a9f8aSmrg  esac
28742d1d20fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2875138a9f8aSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28768ae04fa6Smrg    ac_cv_prog_AWK="$ac_prog"
2877138a9f8aSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28788ae04fa6Smrg    break 2
28798ae04fa6Smrg  fi
28808ae04fa6Smrgdone
28812d1d20fcSmrg  done
28828ae04fa6SmrgIFS=$as_save_IFS
28838ae04fa6Smrg
28848ae04fa6Smrgfi
28858ae04fa6Smrgfi
28868ae04fa6SmrgAWK=$ac_cv_prog_AWK
28878ae04fa6Smrgif test -n "$AWK"; then
2888138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2889138a9f8aSmrgprintf "%s\n" "$AWK" >&6; }
28908ae04fa6Smrgelse
2891138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892138a9f8aSmrgprintf "%s\n" "no" >&6; }
28938ae04fa6Smrgfi
28948ae04fa6Smrg
28958ae04fa6Smrg
28968ae04fa6Smrg  test -n "$AWK" && break
28978ae04fa6Smrgdone
28988ae04fa6Smrg
2899138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2900138a9f8aSmrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
290144af7230Smrgset x ${MAKE-make}
2902138a9f8aSmrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2903138a9f8aSmrgif eval test \${ac_cv_prog_make_${ac_make}_set+y}
2904138a9f8aSmrgthen :
2905138a9f8aSmrg  printf %s "(cached) " >&6
2906138a9f8aSmrgelse $as_nop
29078ae04fa6Smrg  cat >conftest.make <<\_ACEOF
29088ae04fa6SmrgSHELL = /bin/sh
29098ae04fa6Smrgall:
29108ae04fa6Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
29118ae04fa6Smrg_ACEOF
29122d1d20fcSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29138ae04fa6Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
29148ae04fa6Smrg  *@@@%%%=?*=@@@%%%*)
29158ae04fa6Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
29168ae04fa6Smrg  *)
29178ae04fa6Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
29188ae04fa6Smrgesac
29198ae04fa6Smrgrm -f conftest.make
29208ae04fa6Smrgfi
29218ae04fa6Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2922138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2923138a9f8aSmrgprintf "%s\n" "yes" >&6; }
29248ae04fa6Smrg  SET_MAKE=
29258ae04fa6Smrgelse
2926138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927138a9f8aSmrgprintf "%s\n" "no" >&6; }
29288ae04fa6Smrg  SET_MAKE="MAKE=${MAKE-make}"
29298ae04fa6Smrgfi
29308ae04fa6Smrg
29318ae04fa6Smrgrm -rf .tst 2>/dev/null
29328ae04fa6Smrgmkdir .tst 2>/dev/null
29338ae04fa6Smrgif test -d .tst; then
29348ae04fa6Smrg  am__leading_dot=.
29358ae04fa6Smrgelse
29368ae04fa6Smrg  am__leading_dot=_
29378ae04fa6Smrgfi
29388ae04fa6Smrgrmdir .tst 2>/dev/null
29398ae04fa6Smrg
294080f56f3aSmrg# Check whether --enable-silent-rules was given.
2941138a9f8aSmrgif test ${enable_silent_rules+y}
2942138a9f8aSmrgthen :
294380f56f3aSmrg  enableval=$enable_silent_rules;
294480f56f3aSmrgfi
294580f56f3aSmrg
294680f56f3aSmrgcase $enable_silent_rules in # (((
294780f56f3aSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
294880f56f3aSmrg   no) AM_DEFAULT_VERBOSITY=1;;
294980f56f3aSmrg    *) AM_DEFAULT_VERBOSITY=1;;
295080f56f3aSmrgesac
295180f56f3aSmrgam_make=${MAKE-make}
2952138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2953138a9f8aSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
2954138a9f8aSmrgif test ${am_cv_make_support_nested_variables+y}
2955138a9f8aSmrgthen :
2956138a9f8aSmrg  printf %s "(cached) " >&6
2957138a9f8aSmrgelse $as_nop
2958138a9f8aSmrg  if printf "%s\n" 'TRUE=$(BAR$(V))
295980f56f3aSmrgBAR0=false
296080f56f3aSmrgBAR1=true
296180f56f3aSmrgV=1
296280f56f3aSmrgam__doit:
296380f56f3aSmrg	@$(TRUE)
296480f56f3aSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
296580f56f3aSmrg  am_cv_make_support_nested_variables=yes
296680f56f3aSmrgelse
296780f56f3aSmrg  am_cv_make_support_nested_variables=no
296880f56f3aSmrgfi
296980f56f3aSmrgfi
2970138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2971138a9f8aSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
297280f56f3aSmrgif test $am_cv_make_support_nested_variables = yes; then
297380f56f3aSmrg    AM_V='$(V)'
297480f56f3aSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
297580f56f3aSmrgelse
297680f56f3aSmrg  AM_V=$AM_DEFAULT_VERBOSITY
297780f56f3aSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
297880f56f3aSmrgfi
297980f56f3aSmrgAM_BACKSLASH='\'
298080f56f3aSmrg
29818ae04fa6Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
29828ae04fa6Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
29838ae04fa6Smrg  # is not polluted with repeated "-I."
29848ae04fa6Smrg  am__isrc=' -I$(srcdir)'
29858ae04fa6Smrg  # test to see if srcdir already configured
29868ae04fa6Smrg  if test -f $srcdir/config.status; then
29872d1d20fcSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
29888ae04fa6Smrg  fi
29898ae04fa6Smrgfi
29908ae04fa6Smrg
29918ae04fa6Smrg# test whether we have cygpath
29928ae04fa6Smrgif test -z "$CYGPATH_W"; then
29938ae04fa6Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
29948ae04fa6Smrg    CYGPATH_W='cygpath -w'
29958ae04fa6Smrg  else
29968ae04fa6Smrg    CYGPATH_W=echo
29978ae04fa6Smrg  fi
29988ae04fa6Smrgfi
29998ae04fa6Smrg
30008ae04fa6Smrg
30018ae04fa6Smrg# Define the identity of the package.
30028ae04fa6Smrg PACKAGE='xvinfo'
3003138a9f8aSmrg VERSION='1.1.5'
30048ae04fa6Smrg
30058ae04fa6Smrg
3006138a9f8aSmrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
30078ae04fa6Smrg
30088ae04fa6Smrg
3009138a9f8aSmrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
30108ae04fa6Smrg
30118ae04fa6Smrg# Some tools Automake needs.
30128ae04fa6Smrg
30138ae04fa6SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
30148ae04fa6Smrg
30158ae04fa6Smrg
30168ae04fa6SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30178ae04fa6Smrg
30188ae04fa6Smrg
30198ae04fa6SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
30208ae04fa6Smrg
30218ae04fa6Smrg
30228ae04fa6SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30238ae04fa6Smrg
30248ae04fa6Smrg
30258ae04fa6SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
30268ae04fa6Smrg
302780f56f3aSmrg# For better backward compatibility.  To be removed once Automake 1.9.x
302880f56f3aSmrg# dies out for good.  For more background, see:
3029138a9f8aSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3030138a9f8aSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
303180f56f3aSmrgmkdir_p='$(MKDIR_P)'
30328ae04fa6Smrg
303380f56f3aSmrg# We need awk for the "check" target (and possibly the TAP driver).  The
303480f56f3aSmrg# system "awk" is bad on some platforms.
303580f56f3aSmrg# Always define AMTAR for backward compatibility.  Yes, it's still used
303680f56f3aSmrg# in the wild :-(  We should find a proper way to deprecate it ...
303780f56f3aSmrgAMTAR='$${TAR-tar}'
30388ae04fa6Smrg
30398ae04fa6Smrg
304080f56f3aSmrg# We'll loop over all known methods to create a tar archive until one works.
304180f56f3aSmrg_am_tools='gnutar  pax cpio none'
30428ae04fa6Smrg
304380f56f3aSmrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
30448ae04fa6Smrg
30458ae04fa6Smrg
30468ae04fa6Smrg
304744af7230Smrg
30488ae04fa6Smrg
3049138a9f8aSmrg# Variables for tags utilities; see am/tags.am
3050138a9f8aSmrgif test -z "$CTAGS"; then
3051138a9f8aSmrg  CTAGS=ctags
3052138a9f8aSmrgfi
3053138a9f8aSmrg
3054138a9f8aSmrgif test -z "$ETAGS"; then
3055138a9f8aSmrg  ETAGS=etags
3056138a9f8aSmrgfi
3057138a9f8aSmrg
3058138a9f8aSmrgif test -z "$CSCOPE"; then
3059138a9f8aSmrg  CSCOPE=cscope
3060138a9f8aSmrgfi
3061138a9f8aSmrg
3062138a9f8aSmrg
30638ae04fa6Smrg
306480f56f3aSmrg# POSIX will say in a future version that running "rm -f" with no argument
306580f56f3aSmrg# is OK; and we want to be able to make that assumption in our Makefile
306680f56f3aSmrg# recipes.  So use an aggressive probe to check that the usage we want is
306780f56f3aSmrg# actually supported "in the wild" to an acceptable degree.
306880f56f3aSmrg# See automake bug#10828.
306980f56f3aSmrg# To make any issue more visible, cause the running configure to be aborted
307080f56f3aSmrg# by default if the 'rm' program in use doesn't match our expectations; the
307180f56f3aSmrg# user can still override this though.
307280f56f3aSmrgif rm -f && rm -fr && rm -rf; then : OK; else
307380f56f3aSmrg  cat >&2 <<'END'
307480f56f3aSmrgOops!
307580f56f3aSmrg
307680f56f3aSmrgYour 'rm' program seems unable to run without file operands specified
307780f56f3aSmrgon the command line, even when the '-f' option is present.  This is contrary
307880f56f3aSmrgto the behaviour of most rm programs out there, and not conforming with
307980f56f3aSmrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
30808ae04fa6Smrg
308180f56f3aSmrgPlease tell bug-automake@gnu.org about your system, including the value
308280f56f3aSmrgof your $PATH and any error possibly output before this message.  This
308380f56f3aSmrgcan help us improve future automake versions.
308480f56f3aSmrg
308580f56f3aSmrgEND
308680f56f3aSmrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
308780f56f3aSmrg    echo 'Configuration will proceed anyway, since you have set the' >&2
308880f56f3aSmrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
308980f56f3aSmrg    echo >&2
309080f56f3aSmrg  else
309180f56f3aSmrg    cat >&2 <<'END'
309280f56f3aSmrgAborting the configuration process, to ensure you take notice of the issue.
309380f56f3aSmrg
309480f56f3aSmrgYou can download and install GNU coreutils to get an 'rm' implementation
3095138a9f8aSmrgthat behaves properly: <https://www.gnu.org/software/coreutils/>.
309680f56f3aSmrg
309780f56f3aSmrgIf you want to complete the configuration process using your problematic
309880f56f3aSmrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
309980f56f3aSmrgto "yes", and re-run configure.
310080f56f3aSmrg
310180f56f3aSmrgEND
310280f56f3aSmrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
310380f56f3aSmrg  fi
310480f56f3aSmrgfi
31058ae04fa6Smrg
31068ae04fa6Smrg
31072d1d20fcSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
310844af7230Smrg
310944af7230Smrg
311044af7230Smrg
311144af7230Smrg
311244af7230Smrg
311344af7230Smrg
311444af7230Smrg
311544af7230Smrg
311644af7230Smrg
311744af7230Smrg
311844af7230Smrg
3119138a9f8aSmrg
3120138a9f8aSmrg
3121138a9f8aSmrg
3122138a9f8aSmrg
3123138a9f8aSmrg
3124138a9f8aSmrg
3125138a9f8aSmrg
3126138a9f8aSmrg
3127138a9f8aSmrg
31282d1d20fcSmrgDEPDIR="${am__leading_dot}deps"
31292d1d20fcSmrg
31302d1d20fcSmrgac_config_commands="$ac_config_commands depfiles"
31312d1d20fcSmrg
3132138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3133138a9f8aSmrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3134138a9f8aSmrgcat > confinc.mk << 'END'
31352d1d20fcSmrgam__doit:
3136138a9f8aSmrg	@echo this is the am__doit target >confinc.out
31372d1d20fcSmrg.PHONY: am__doit
31382d1d20fcSmrgEND
31392d1d20fcSmrgam__include="#"
31402d1d20fcSmrgam__quote=
3141138a9f8aSmrg# BSD make does it like this.
3142138a9f8aSmrgecho '.include "confinc.mk" # ignored' > confmf.BSD
3143138a9f8aSmrg# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3144138a9f8aSmrgecho 'include confinc.mk # ignored' > confmf.GNU
3145138a9f8aSmrg_am_result=no
3146138a9f8aSmrgfor s in GNU BSD; do
3147138a9f8aSmrg  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3148138a9f8aSmrg   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3149138a9f8aSmrg   ac_status=$?
3150138a9f8aSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151138a9f8aSmrg   (exit $ac_status); }
3152138a9f8aSmrg  case $?:`cat confinc.out 2>/dev/null` in #(
3153138a9f8aSmrg  '0:this is the am__doit target') :
3154138a9f8aSmrg    case $s in #(
3155138a9f8aSmrg  BSD) :
3156138a9f8aSmrg    am__include='.include' am__quote='"' ;; #(
3157138a9f8aSmrg  *) :
3158138a9f8aSmrg    am__include='include' am__quote='' ;;
3159138a9f8aSmrgesac ;; #(
3160138a9f8aSmrg  *) :
31612d1d20fcSmrg     ;;
3162138a9f8aSmrgesac
3163138a9f8aSmrg  if test "$am__include" != "#"; then
3164138a9f8aSmrg    _am_result="yes ($s style)"
3165138a9f8aSmrg    break
3166138a9f8aSmrg  fi
3167138a9f8aSmrgdone
3168138a9f8aSmrgrm -f confinc.* confmf.*
3169138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3170138a9f8aSmrgprintf "%s\n" "${_am_result}" >&6; }
31712d1d20fcSmrg
31722d1d20fcSmrg# Check whether --enable-dependency-tracking was given.
3173138a9f8aSmrgif test ${enable_dependency_tracking+y}
3174138a9f8aSmrgthen :
31752d1d20fcSmrg  enableval=$enable_dependency_tracking;
31762d1d20fcSmrgfi
31772d1d20fcSmrg
31782d1d20fcSmrgif test "x$enable_dependency_tracking" != xno; then
31792d1d20fcSmrg  am_depcomp="$ac_aux_dir/depcomp"
31802d1d20fcSmrg  AMDEPBACKSLASH='\'
3181405c8079Smrg  am__nodep='_no'
31822d1d20fcSmrgfi
31832d1d20fcSmrg if test "x$enable_dependency_tracking" != xno; then
31842d1d20fcSmrg  AMDEP_TRUE=
31852d1d20fcSmrg  AMDEP_FALSE='#'
31862d1d20fcSmrgelse
31872d1d20fcSmrg  AMDEP_TRUE='#'
31882d1d20fcSmrg  AMDEP_FALSE=
31892d1d20fcSmrgfi
31902d1d20fcSmrg
31912d1d20fcSmrg
31928ae04fa6Smrgac_ext=c
31938ae04fa6Smrgac_cpp='$CPP $CPPFLAGS'
31948ae04fa6Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31958ae04fa6Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31968ae04fa6Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
31978ae04fa6Smrgif test -n "$ac_tool_prefix"; then
31988ae04fa6Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
31998ae04fa6Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
3200138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201138a9f8aSmrgprintf %s "checking for $ac_word... " >&6; }
3202138a9f8aSmrgif test ${ac_cv_prog_CC+y}
3203138a9f8aSmrgthen :
3204138a9f8aSmrg  printf %s "(cached) " >&6
3205138a9f8aSmrgelse $as_nop
32068ae04fa6Smrg  if test -n "$CC"; then
32078ae04fa6Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
32088ae04fa6Smrgelse
32098ae04fa6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32108ae04fa6Smrgfor as_dir in $PATH
32118ae04fa6Smrgdo
32128ae04fa6Smrg  IFS=$as_save_IFS
3213138a9f8aSmrg  case $as_dir in #(((
3214138a9f8aSmrg    '') as_dir=./ ;;
3215138a9f8aSmrg    */) ;;
3216138a9f8aSmrg    *) as_dir=$as_dir/ ;;
3217138a9f8aSmrg  esac
32182d1d20fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3219138a9f8aSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32208ae04fa6Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3221138a9f8aSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32228ae04fa6Smrg    break 2
32238ae04fa6Smrg  fi
32248ae04fa6Smrgdone
32252d1d20fcSmrg  done
32268ae04fa6SmrgIFS=$as_save_IFS
32278ae04fa6Smrg
32288ae04fa6Smrgfi
32298ae04fa6Smrgfi
32308ae04fa6SmrgCC=$ac_cv_prog_CC
32318ae04fa6Smrgif test -n "$CC"; then
3232138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3233138a9f8aSmrgprintf "%s\n" "$CC" >&6; }
32348ae04fa6Smrgelse
3235138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236138a9f8aSmrgprintf "%s\n" "no" >&6; }
32378ae04fa6Smrgfi
32388ae04fa6Smrg
32398ae04fa6Smrg
32408ae04fa6Smrgfi
32418ae04fa6Smrgif test -z "$ac_cv_prog_CC"; then
32428ae04fa6Smrg  ac_ct_CC=$CC
32438ae04fa6Smrg  # Extract the first word of "gcc", so it can be a program name with args.
32448ae04fa6Smrgset dummy gcc; ac_word=$2
3245138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246138a9f8aSmrgprintf %s "checking for $ac_word... " >&6; }
3247138a9f8aSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3248138a9f8aSmrgthen :
3249138a9f8aSmrg  printf %s "(cached) " >&6
3250138a9f8aSmrgelse $as_nop
32518ae04fa6Smrg  if test -n "$ac_ct_CC"; then
32528ae04fa6Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
32538ae04fa6Smrgelse
32548ae04fa6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32558ae04fa6Smrgfor as_dir in $PATH
32568ae04fa6Smrgdo
32578ae04fa6Smrg  IFS=$as_save_IFS
3258138a9f8aSmrg  case $as_dir in #(((
3259138a9f8aSmrg    '') as_dir=./ ;;
3260138a9f8aSmrg    */) ;;
3261138a9f8aSmrg    *) as_dir=$as_dir/ ;;
3262138a9f8aSmrg  esac
32632d1d20fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3264138a9f8aSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32658ae04fa6Smrg    ac_cv_prog_ac_ct_CC="gcc"
3266138a9f8aSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32678ae04fa6Smrg    break 2
32688ae04fa6Smrg  fi
32698ae04fa6Smrgdone
32702d1d20fcSmrg  done
32718ae04fa6SmrgIFS=$as_save_IFS
32728ae04fa6Smrg
32738ae04fa6Smrgfi
32748ae04fa6Smrgfi
32758ae04fa6Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
32768ae04fa6Smrgif test -n "$ac_ct_CC"; then
3277138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3278138a9f8aSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
32798ae04fa6Smrgelse
3280138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281138a9f8aSmrgprintf "%s\n" "no" >&6; }
32828ae04fa6Smrgfi
32838ae04fa6Smrg
32848ae04fa6Smrg  if test "x$ac_ct_CC" = x; then
32858ae04fa6Smrg    CC=""
32868ae04fa6Smrg  else
32878ae04fa6Smrg    case $cross_compiling:$ac_tool_warned in
32888ae04fa6Smrgyes:)
3289138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3290138a9f8aSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32918ae04fa6Smrgac_tool_warned=yes ;;
32928ae04fa6Smrgesac
32938ae04fa6Smrg    CC=$ac_ct_CC
32948ae04fa6Smrg  fi
32958ae04fa6Smrgelse
32968ae04fa6Smrg  CC="$ac_cv_prog_CC"
32978ae04fa6Smrgfi
32988ae04fa6Smrg
32998ae04fa6Smrgif test -z "$CC"; then
33008ae04fa6Smrg          if test -n "$ac_tool_prefix"; then
33018ae04fa6Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
33028ae04fa6Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
3303138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304138a9f8aSmrgprintf %s "checking for $ac_word... " >&6; }
3305138a9f8aSmrgif test ${ac_cv_prog_CC+y}
3306138a9f8aSmrgthen :
3307138a9f8aSmrg  printf %s "(cached) " >&6
3308138a9f8aSmrgelse $as_nop
33098ae04fa6Smrg  if test -n "$CC"; then
33108ae04fa6Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
33118ae04fa6Smrgelse
33128ae04fa6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33138ae04fa6Smrgfor as_dir in $PATH
33148ae04fa6Smrgdo
33158ae04fa6Smrg  IFS=$as_save_IFS
3316138a9f8aSmrg  case $as_dir in #(((
3317138a9f8aSmrg    '') as_dir=./ ;;
3318138a9f8aSmrg    */) ;;
3319138a9f8aSmrg    *) as_dir=$as_dir/ ;;
3320138a9f8aSmrg  esac
33212d1d20fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3322138a9f8aSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33238ae04fa6Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
3324138a9f8aSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33258ae04fa6Smrg    break 2
33268ae04fa6Smrg  fi
33278ae04fa6Smrgdone
33282d1d20fcSmrg  done
33298ae04fa6SmrgIFS=$as_save_IFS
33308ae04fa6Smrg
33318ae04fa6Smrgfi
33328ae04fa6Smrgfi
33338ae04fa6SmrgCC=$ac_cv_prog_CC
33348ae04fa6Smrgif test -n "$CC"; then
3335138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336138a9f8aSmrgprintf "%s\n" "$CC" >&6; }
33378ae04fa6Smrgelse
3338138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339138a9f8aSmrgprintf "%s\n" "no" >&6; }
33408ae04fa6Smrgfi
33418ae04fa6Smrg
33428ae04fa6Smrg
33438ae04fa6Smrg  fi
33448ae04fa6Smrgfi
33458ae04fa6Smrgif test -z "$CC"; then
33468ae04fa6Smrg  # Extract the first word of "cc", so it can be a program name with args.
33478ae04fa6Smrgset dummy cc; ac_word=$2
3348138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349138a9f8aSmrgprintf %s "checking for $ac_word... " >&6; }
3350138a9f8aSmrgif test ${ac_cv_prog_CC+y}
3351138a9f8aSmrgthen :
3352138a9f8aSmrg  printf %s "(cached) " >&6
3353138a9f8aSmrgelse $as_nop
33548ae04fa6Smrg  if test -n "$CC"; then
33558ae04fa6Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
33568ae04fa6Smrgelse
33578ae04fa6Smrg  ac_prog_rejected=no
33588ae04fa6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33598ae04fa6Smrgfor as_dir in $PATH
33608ae04fa6Smrgdo
33618ae04fa6Smrg  IFS=$as_save_IFS
3362138a9f8aSmrg  case $as_dir in #(((
3363138a9f8aSmrg    '') as_dir=./ ;;
3364138a9f8aSmrg    */) ;;
3365138a9f8aSmrg    *) as_dir=$as_dir/ ;;
3366138a9f8aSmrg  esac
33672d1d20fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3368138a9f8aSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3369138a9f8aSmrg    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
33708ae04fa6Smrg       ac_prog_rejected=yes
33718ae04fa6Smrg       continue
33728ae04fa6Smrg     fi
33738ae04fa6Smrg    ac_cv_prog_CC="cc"
3374138a9f8aSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33758ae04fa6Smrg    break 2
33768ae04fa6Smrg  fi
33778ae04fa6Smrgdone
33782d1d20fcSmrg  done
33798ae04fa6SmrgIFS=$as_save_IFS
33808ae04fa6Smrg
33818ae04fa6Smrgif test $ac_prog_rejected = yes; then
33828ae04fa6Smrg  # We found a bogon in the path, so make sure we never use it.
33838ae04fa6Smrg  set dummy $ac_cv_prog_CC
33848ae04fa6Smrg  shift
33858ae04fa6Smrg  if test $# != 0; then
33868ae04fa6Smrg    # We chose a different compiler from the bogus one.
33878ae04fa6Smrg    # However, it has the same basename, so the bogon will be chosen
33888ae04fa6Smrg    # first if we set CC to just the basename; use the full file name.
33898ae04fa6Smrg    shift
3390138a9f8aSmrg    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
33918ae04fa6Smrg  fi
33928ae04fa6Smrgfi
33938ae04fa6Smrgfi
33948ae04fa6Smrgfi
33958ae04fa6SmrgCC=$ac_cv_prog_CC
33968ae04fa6Smrgif test -n "$CC"; then
3397138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398138a9f8aSmrgprintf "%s\n" "$CC" >&6; }
33998ae04fa6Smrgelse
3400138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401138a9f8aSmrgprintf "%s\n" "no" >&6; }
34028ae04fa6Smrgfi
34038ae04fa6Smrg
34048ae04fa6Smrg
34058ae04fa6Smrgfi
34068ae04fa6Smrgif test -z "$CC"; then
34078ae04fa6Smrg  if test -n "$ac_tool_prefix"; then
34088ae04fa6Smrg  for ac_prog in cl.exe
34098ae04fa6Smrg  do
34108ae04fa6Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
34118ae04fa6Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3412138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413138a9f8aSmrgprintf %s "checking for $ac_word... " >&6; }
3414138a9f8aSmrgif test ${ac_cv_prog_CC+y}
3415138a9f8aSmrgthen :
3416138a9f8aSmrg  printf %s "(cached) " >&6
3417138a9f8aSmrgelse $as_nop
34188ae04fa6Smrg  if test -n "$CC"; then
34198ae04fa6Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
34208ae04fa6Smrgelse
34218ae04fa6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34228ae04fa6Smrgfor as_dir in $PATH
34238ae04fa6Smrgdo
34248ae04fa6Smrg  IFS=$as_save_IFS
3425138a9f8aSmrg  case $as_dir in #(((
3426138a9f8aSmrg    '') as_dir=./ ;;
3427138a9f8aSmrg    */) ;;
3428138a9f8aSmrg    *) as_dir=$as_dir/ ;;
3429138a9f8aSmrg  esac
34302d1d20fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3431138a9f8aSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
34328ae04fa6Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3433138a9f8aSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
34348ae04fa6Smrg    break 2
34358ae04fa6Smrg  fi
34368ae04fa6Smrgdone
34372d1d20fcSmrg  done
34388ae04fa6SmrgIFS=$as_save_IFS
34398ae04fa6Smrg
34408ae04fa6Smrgfi
34418ae04fa6Smrgfi
34428ae04fa6SmrgCC=$ac_cv_prog_CC
34438ae04fa6Smrgif test -n "$CC"; then
3444138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3445138a9f8aSmrgprintf "%s\n" "$CC" >&6; }
34468ae04fa6Smrgelse
3447138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448138a9f8aSmrgprintf "%s\n" "no" >&6; }
34498ae04fa6Smrgfi
34508ae04fa6Smrg
34518ae04fa6Smrg
34528ae04fa6Smrg    test -n "$CC" && break
34538ae04fa6Smrg  done
34548ae04fa6Smrgfi
34558ae04fa6Smrgif test -z "$CC"; then
34568ae04fa6Smrg  ac_ct_CC=$CC
34578ae04fa6Smrg  for ac_prog in cl.exe
34588ae04fa6Smrgdo
34598ae04fa6Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
34608ae04fa6Smrgset dummy $ac_prog; ac_word=$2
3461138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462138a9f8aSmrgprintf %s "checking for $ac_word... " >&6; }
3463138a9f8aSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3464138a9f8aSmrgthen :
3465138a9f8aSmrg  printf %s "(cached) " >&6
3466138a9f8aSmrgelse $as_nop
34678ae04fa6Smrg  if test -n "$ac_ct_CC"; then
34688ae04fa6Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
34698ae04fa6Smrgelse
34708ae04fa6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34718ae04fa6Smrgfor as_dir in $PATH
34728ae04fa6Smrgdo
34738ae04fa6Smrg  IFS=$as_save_IFS
3474138a9f8aSmrg  case $as_dir in #(((
3475138a9f8aSmrg    '') as_dir=./ ;;
3476138a9f8aSmrg    */) ;;
3477138a9f8aSmrg    *) as_dir=$as_dir/ ;;
3478138a9f8aSmrg  esac
34792d1d20fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3480138a9f8aSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
34818ae04fa6Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3482138a9f8aSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
34838ae04fa6Smrg    break 2
34848ae04fa6Smrg  fi
34858ae04fa6Smrgdone
34862d1d20fcSmrg  done
34878ae04fa6SmrgIFS=$as_save_IFS
34888ae04fa6Smrg
34898ae04fa6Smrgfi
34908ae04fa6Smrgfi
34918ae04fa6Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
34928ae04fa6Smrgif test -n "$ac_ct_CC"; then
3493138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3494138a9f8aSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
34958ae04fa6Smrgelse
3496138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497138a9f8aSmrgprintf "%s\n" "no" >&6; }
34988ae04fa6Smrgfi
34998ae04fa6Smrg
35008ae04fa6Smrg
35018ae04fa6Smrg  test -n "$ac_ct_CC" && break
35028ae04fa6Smrgdone
35038ae04fa6Smrg
35048ae04fa6Smrg  if test "x$ac_ct_CC" = x; then
35058ae04fa6Smrg    CC=""
35068ae04fa6Smrg  else
35078ae04fa6Smrg    case $cross_compiling:$ac_tool_warned in
35088ae04fa6Smrgyes:)
3509138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3510138a9f8aSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3511138a9f8aSmrgac_tool_warned=yes ;;
3512138a9f8aSmrgesac
3513138a9f8aSmrg    CC=$ac_ct_CC
3514138a9f8aSmrg  fi
3515138a9f8aSmrgfi
3516138a9f8aSmrg
3517138a9f8aSmrgfi
3518138a9f8aSmrgif test -z "$CC"; then
3519138a9f8aSmrg  if test -n "$ac_tool_prefix"; then
3520138a9f8aSmrg  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3521138a9f8aSmrgset dummy ${ac_tool_prefix}clang; ac_word=$2
3522138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523138a9f8aSmrgprintf %s "checking for $ac_word... " >&6; }
3524138a9f8aSmrgif test ${ac_cv_prog_CC+y}
3525138a9f8aSmrgthen :
3526138a9f8aSmrg  printf %s "(cached) " >&6
3527138a9f8aSmrgelse $as_nop
3528138a9f8aSmrg  if test -n "$CC"; then
3529138a9f8aSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3530138a9f8aSmrgelse
3531138a9f8aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532138a9f8aSmrgfor as_dir in $PATH
3533138a9f8aSmrgdo
3534138a9f8aSmrg  IFS=$as_save_IFS
3535138a9f8aSmrg  case $as_dir in #(((
3536138a9f8aSmrg    '') as_dir=./ ;;
3537138a9f8aSmrg    */) ;;
3538138a9f8aSmrg    *) as_dir=$as_dir/ ;;
3539138a9f8aSmrg  esac
3540138a9f8aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3541138a9f8aSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3542138a9f8aSmrg    ac_cv_prog_CC="${ac_tool_prefix}clang"
3543138a9f8aSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3544138a9f8aSmrg    break 2
3545138a9f8aSmrg  fi
3546138a9f8aSmrgdone
3547138a9f8aSmrg  done
3548138a9f8aSmrgIFS=$as_save_IFS
3549138a9f8aSmrg
3550138a9f8aSmrgfi
3551138a9f8aSmrgfi
3552138a9f8aSmrgCC=$ac_cv_prog_CC
3553138a9f8aSmrgif test -n "$CC"; then
3554138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555138a9f8aSmrgprintf "%s\n" "$CC" >&6; }
3556138a9f8aSmrgelse
3557138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558138a9f8aSmrgprintf "%s\n" "no" >&6; }
3559138a9f8aSmrgfi
3560138a9f8aSmrg
3561138a9f8aSmrg
3562138a9f8aSmrgfi
3563138a9f8aSmrgif test -z "$ac_cv_prog_CC"; then
3564138a9f8aSmrg  ac_ct_CC=$CC
3565138a9f8aSmrg  # Extract the first word of "clang", so it can be a program name with args.
3566138a9f8aSmrgset dummy clang; ac_word=$2
3567138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568138a9f8aSmrgprintf %s "checking for $ac_word... " >&6; }
3569138a9f8aSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3570138a9f8aSmrgthen :
3571138a9f8aSmrg  printf %s "(cached) " >&6
3572138a9f8aSmrgelse $as_nop
3573138a9f8aSmrg  if test -n "$ac_ct_CC"; then
3574138a9f8aSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3575138a9f8aSmrgelse
3576138a9f8aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577138a9f8aSmrgfor as_dir in $PATH
3578138a9f8aSmrgdo
3579138a9f8aSmrg  IFS=$as_save_IFS
3580138a9f8aSmrg  case $as_dir in #(((
3581138a9f8aSmrg    '') as_dir=./ ;;
3582138a9f8aSmrg    */) ;;
3583138a9f8aSmrg    *) as_dir=$as_dir/ ;;
3584138a9f8aSmrg  esac
3585138a9f8aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3586138a9f8aSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3587138a9f8aSmrg    ac_cv_prog_ac_ct_CC="clang"
3588138a9f8aSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3589138a9f8aSmrg    break 2
3590138a9f8aSmrg  fi
3591138a9f8aSmrgdone
3592138a9f8aSmrg  done
3593138a9f8aSmrgIFS=$as_save_IFS
3594138a9f8aSmrg
3595138a9f8aSmrgfi
3596138a9f8aSmrgfi
3597138a9f8aSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3598138a9f8aSmrgif test -n "$ac_ct_CC"; then
3599138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3600138a9f8aSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
3601138a9f8aSmrgelse
3602138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603138a9f8aSmrgprintf "%s\n" "no" >&6; }
3604138a9f8aSmrgfi
3605138a9f8aSmrg
3606138a9f8aSmrg  if test "x$ac_ct_CC" = x; then
3607138a9f8aSmrg    CC=""
3608138a9f8aSmrg  else
3609138a9f8aSmrg    case $cross_compiling:$ac_tool_warned in
3610138a9f8aSmrgyes:)
3611138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3612138a9f8aSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36138ae04fa6Smrgac_tool_warned=yes ;;
36148ae04fa6Smrgesac
36158ae04fa6Smrg    CC=$ac_ct_CC
36168ae04fa6Smrg  fi
3617138a9f8aSmrgelse
3618138a9f8aSmrg  CC="$ac_cv_prog_CC"
36198ae04fa6Smrgfi
36208ae04fa6Smrg
36218ae04fa6Smrgfi
36228ae04fa6Smrg
36238ae04fa6Smrg
3624138a9f8aSmrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3625138a9f8aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
36262d1d20fcSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
36272d1d20fcSmrgSee \`config.log' for more details" "$LINENO" 5; }
36288ae04fa6Smrg
36298ae04fa6Smrg# Provide some information about the compiler.
3630138a9f8aSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
363144af7230Smrgset X $ac_compile
363244af7230Smrgac_compiler=$2
3633138a9f8aSmrgfor ac_option in --version -v -V -qversion -version; do
36342d1d20fcSmrg  { { ac_try="$ac_compiler $ac_option >&5"
36358ae04fa6Smrgcase "(($ac_try" in
36368ae04fa6Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36378ae04fa6Smrg  *) ac_try_echo=$ac_try;;
36388ae04fa6Smrgesac
36392d1d20fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3640138a9f8aSmrgprintf "%s\n" "$ac_try_echo"; } >&5
36412d1d20fcSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
36428ae04fa6Smrg  ac_status=$?
36432d1d20fcSmrg  if test -s conftest.err; then
36442d1d20fcSmrg    sed '10a\
36452d1d20fcSmrg... rest of stderr output deleted ...
36462d1d20fcSmrg         10q' conftest.err >conftest.er1
36472d1d20fcSmrg    cat conftest.er1 >&5
36482d1d20fcSmrg  fi
36492d1d20fcSmrg  rm -f conftest.er1 conftest.err
3650138a9f8aSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36512d1d20fcSmrg  test $ac_status = 0; }
36522d1d20fcSmrgdone
36538ae04fa6Smrg
36542d1d20fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
36558ae04fa6Smrg/* end confdefs.h.  */
36568ae04fa6Smrg
36578ae04fa6Smrgint
3658138a9f8aSmrgmain (void)
36598ae04fa6Smrg{
36608ae04fa6Smrg
36618ae04fa6Smrg  ;
36628ae04fa6Smrg  return 0;
36638ae04fa6Smrg}
36648ae04fa6Smrg_ACEOF
36658ae04fa6Smrgac_clean_files_save=$ac_clean_files
366644af7230Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
36678ae04fa6Smrg# Try to create an executable without -o first, disregard a.out.
36688ae04fa6Smrg# It will help us diagnose broken compilers, and finding out an intuition
36698ae04fa6Smrg# of exeext.
3670138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3671138a9f8aSmrgprintf %s "checking whether the C compiler works... " >&6; }
3672138a9f8aSmrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
367344af7230Smrg
367444af7230Smrg# The possible output files:
367544af7230Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
367644af7230Smrg
36778ae04fa6Smrgac_rmfiles=
36788ae04fa6Smrgfor ac_file in $ac_files
36798ae04fa6Smrgdo
36808ae04fa6Smrg  case $ac_file in
368144af7230Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
36828ae04fa6Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
36838ae04fa6Smrg  esac
36848ae04fa6Smrgdone
36858ae04fa6Smrgrm -f $ac_rmfiles
36868ae04fa6Smrg
36872d1d20fcSmrgif { { ac_try="$ac_link_default"
36888ae04fa6Smrgcase "(($ac_try" in
36898ae04fa6Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36908ae04fa6Smrg  *) ac_try_echo=$ac_try;;
36918ae04fa6Smrgesac
36922d1d20fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693138a9f8aSmrgprintf "%s\n" "$ac_try_echo"; } >&5
36948ae04fa6Smrg  (eval "$ac_link_default") 2>&5
36958ae04fa6Smrg  ac_status=$?
3696138a9f8aSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697138a9f8aSmrg  test $ac_status = 0; }
3698138a9f8aSmrgthen :
36998ae04fa6Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
37008ae04fa6Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
37018ae04fa6Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
37028ae04fa6Smrg# so that the user can short-circuit this test for compilers unknown to
37038ae04fa6Smrg# Autoconf.
37048ae04fa6Smrgfor ac_file in $ac_files ''
37058ae04fa6Smrgdo
37068ae04fa6Smrg  test -f "$ac_file" || continue
37078ae04fa6Smrg  case $ac_file in
370844af7230Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
37098ae04fa6Smrg	;;
37108ae04fa6Smrg    [ab].out )
37118ae04fa6Smrg	# We found the default executable, but exeext='' is most
37128ae04fa6Smrg	# certainly right.
37138ae04fa6Smrg	break;;
37148ae04fa6Smrg    *.* )
3715138a9f8aSmrg	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
37168ae04fa6Smrg	then :; else
37178ae04fa6Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
37188ae04fa6Smrg	fi
37198ae04fa6Smrg	# We set ac_cv_exeext here because the later test for it is not
37208ae04fa6Smrg	# safe: cross compilers may not add the suffix if given an `-o'
37218ae04fa6Smrg	# argument, so we may need to know it at that point already.
37228ae04fa6Smrg	# Even if this section looks crufty: it has the advantage of
37238ae04fa6Smrg	# actually working.
37248ae04fa6Smrg	break;;
37258ae04fa6Smrg    * )
37268ae04fa6Smrg	break;;
37278ae04fa6Smrg  esac
37288ae04fa6Smrgdone
37298ae04fa6Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
37308ae04fa6Smrg
3731138a9f8aSmrgelse $as_nop
37328ae04fa6Smrg  ac_file=''
37338ae04fa6Smrgfi
3734138a9f8aSmrgif test -z "$ac_file"
3735138a9f8aSmrgthen :
3736138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737138a9f8aSmrgprintf "%s\n" "no" >&6; }
3738138a9f8aSmrgprintf "%s\n" "$as_me: failed program was:" >&5
37398ae04fa6Smrgsed 's/^/| /' conftest.$ac_ext >&5
37408ae04fa6Smrg
3741138a9f8aSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742138a9f8aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37432d1d20fcSmrgas_fn_error 77 "C compiler cannot create executables
37442d1d20fcSmrgSee \`config.log' for more details" "$LINENO" 5; }
3745138a9f8aSmrgelse $as_nop
3746138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3747138a9f8aSmrgprintf "%s\n" "yes" >&6; }
3748138a9f8aSmrgfi
3749138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3750138a9f8aSmrgprintf %s "checking for C compiler default output file name... " >&6; }
3751138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3752138a9f8aSmrgprintf "%s\n" "$ac_file" >&6; }
37538ae04fa6Smrgac_exeext=$ac_cv_exeext
37548ae04fa6Smrg
375544af7230Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
37568ae04fa6Smrgac_clean_files=$ac_clean_files_save
3757138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3758138a9f8aSmrgprintf %s "checking for suffix of executables... " >&6; }
37592d1d20fcSmrgif { { ac_try="$ac_link"
37608ae04fa6Smrgcase "(($ac_try" in
37618ae04fa6Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37628ae04fa6Smrg  *) ac_try_echo=$ac_try;;
37638ae04fa6Smrgesac
37642d1d20fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3765138a9f8aSmrgprintf "%s\n" "$ac_try_echo"; } >&5
37668ae04fa6Smrg  (eval "$ac_link") 2>&5
37678ae04fa6Smrg  ac_status=$?
3768138a9f8aSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769138a9f8aSmrg  test $ac_status = 0; }
3770138a9f8aSmrgthen :
37718ae04fa6Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
37728ae04fa6Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
37738ae04fa6Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
37748ae04fa6Smrg# `rm'.
37758ae04fa6Smrgfor ac_file in conftest.exe conftest conftest.*; do
37768ae04fa6Smrg  test -f "$ac_file" || continue
37778ae04fa6Smrg  case $ac_file in
377844af7230Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
37798ae04fa6Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
37808ae04fa6Smrg	  break;;
37818ae04fa6Smrg    * ) break;;
37828ae04fa6Smrg  esac
37838ae04fa6Smrgdone
3784138a9f8aSmrgelse $as_nop
3785138a9f8aSmrg  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786138a9f8aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37872d1d20fcSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
37882d1d20fcSmrgSee \`config.log' for more details" "$LINENO" 5; }
37898ae04fa6Smrgfi
37902d1d20fcSmrgrm -f conftest conftest$ac_cv_exeext
3791138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3792138a9f8aSmrgprintf "%s\n" "$ac_cv_exeext" >&6; }
37938ae04fa6Smrg
37948ae04fa6Smrgrm -f conftest.$ac_ext
37958ae04fa6SmrgEXEEXT=$ac_cv_exeext
37968ae04fa6Smrgac_exeext=$EXEEXT
37972d1d20fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
37982d1d20fcSmrg/* end confdefs.h.  */
37992d1d20fcSmrg#include <stdio.h>
38002d1d20fcSmrgint
3801138a9f8aSmrgmain (void)
38022d1d20fcSmrg{
38032d1d20fcSmrgFILE *f = fopen ("conftest.out", "w");
38042d1d20fcSmrg return ferror (f) || fclose (f) != 0;
38052d1d20fcSmrg
38062d1d20fcSmrg  ;
38072d1d20fcSmrg  return 0;
38082d1d20fcSmrg}
38092d1d20fcSmrg_ACEOF
38102d1d20fcSmrgac_clean_files="$ac_clean_files conftest.out"
38112d1d20fcSmrg# Check that the compiler produces executables we can run.  If not, either
38122d1d20fcSmrg# the compiler is broken, or we cross compile.
3813138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3814138a9f8aSmrgprintf %s "checking whether we are cross compiling... " >&6; }
38152d1d20fcSmrgif test "$cross_compiling" != yes; then
38162d1d20fcSmrg  { { ac_try="$ac_link"
38172d1d20fcSmrgcase "(($ac_try" in
38182d1d20fcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38192d1d20fcSmrg  *) ac_try_echo=$ac_try;;
38202d1d20fcSmrgesac
38212d1d20fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822138a9f8aSmrgprintf "%s\n" "$ac_try_echo"; } >&5
38232d1d20fcSmrg  (eval "$ac_link") 2>&5
38242d1d20fcSmrg  ac_status=$?
3825138a9f8aSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38262d1d20fcSmrg  test $ac_status = 0; }
38272d1d20fcSmrg  if { ac_try='./conftest$ac_cv_exeext'
38282d1d20fcSmrg  { { case "(($ac_try" in
38292d1d20fcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38302d1d20fcSmrg  *) ac_try_echo=$ac_try;;
38312d1d20fcSmrgesac
38322d1d20fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833138a9f8aSmrgprintf "%s\n" "$ac_try_echo"; } >&5
38342d1d20fcSmrg  (eval "$ac_try") 2>&5
38352d1d20fcSmrg  ac_status=$?
3836138a9f8aSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38372d1d20fcSmrg  test $ac_status = 0; }; }; then
38382d1d20fcSmrg    cross_compiling=no
38392d1d20fcSmrg  else
38402d1d20fcSmrg    if test "$cross_compiling" = maybe; then
38412d1d20fcSmrg	cross_compiling=yes
38422d1d20fcSmrg    else
3843138a9f8aSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844138a9f8aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3845138a9f8aSmrgas_fn_error 77 "cannot run C compiled programs.
38462d1d20fcSmrgIf you meant to cross compile, use \`--host'.
38472d1d20fcSmrgSee \`config.log' for more details" "$LINENO" 5; }
38482d1d20fcSmrg    fi
38492d1d20fcSmrg  fi
38502d1d20fcSmrgfi
3851138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3852138a9f8aSmrgprintf "%s\n" "$cross_compiling" >&6; }
38532d1d20fcSmrg
38542d1d20fcSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
38552d1d20fcSmrgac_clean_files=$ac_clean_files_save
3856138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3857138a9f8aSmrgprintf %s "checking for suffix of object files... " >&6; }
3858138a9f8aSmrgif test ${ac_cv_objext+y}
3859138a9f8aSmrgthen :
3860138a9f8aSmrg  printf %s "(cached) " >&6
3861138a9f8aSmrgelse $as_nop
38622d1d20fcSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38638ae04fa6Smrg/* end confdefs.h.  */
38648ae04fa6Smrg
38658ae04fa6Smrgint
3866138a9f8aSmrgmain (void)
38678ae04fa6Smrg{
38688ae04fa6Smrg
38698ae04fa6Smrg  ;
38708ae04fa6Smrg  return 0;
38718ae04fa6Smrg}
38728ae04fa6Smrg_ACEOF
38738ae04fa6Smrgrm -f conftest.o conftest.obj
38742d1d20fcSmrgif { { ac_try="$ac_compile"
38758ae04fa6Smrgcase "(($ac_try" in
38768ae04fa6Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38778ae04fa6Smrg  *) ac_try_echo=$ac_try;;
38788ae04fa6Smrgesac
38792d1d20fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880138a9f8aSmrgprintf "%s\n" "$ac_try_echo"; } >&5
38818ae04fa6Smrg  (eval "$ac_compile") 2>&5
38828ae04fa6Smrg  ac_status=$?
3883138a9f8aSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884138a9f8aSmrg  test $ac_status = 0; }
3885138a9f8aSmrgthen :
38868ae04fa6Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
38878ae04fa6Smrg  test -f "$ac_file" || continue;
38888ae04fa6Smrg  case $ac_file in
388944af7230Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
38908ae04fa6Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
38918ae04fa6Smrg       break;;
38928ae04fa6Smrg  esac
38938ae04fa6Smrgdone
3894138a9f8aSmrgelse $as_nop
3895138a9f8aSmrg  printf "%s\n" "$as_me: failed program was:" >&5
38968ae04fa6Smrgsed 's/^/| /' conftest.$ac_ext >&5
38978ae04fa6Smrg
3898138a9f8aSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899138a9f8aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39002d1d20fcSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
39012d1d20fcSmrgSee \`config.log' for more details" "$LINENO" 5; }
39028ae04fa6Smrgfi
39038ae04fa6Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
39048ae04fa6Smrgfi
3905138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3906138a9f8aSmrgprintf "%s\n" "$ac_cv_objext" >&6; }
39078ae04fa6SmrgOBJEXT=$ac_cv_objext
39088ae04fa6Smrgac_objext=$OBJEXT
3909138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3910138a9f8aSmrgprintf %s "checking whether the compiler supports GNU C... " >&6; }
3911138a9f8aSmrgif test ${ac_cv_c_compiler_gnu+y}
3912138a9f8aSmrgthen :
3913138a9f8aSmrg  printf %s "(cached) " >&6
3914138a9f8aSmrgelse $as_nop
39152d1d20fcSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39168ae04fa6Smrg/* end confdefs.h.  */
39178ae04fa6Smrg
39188ae04fa6Smrgint
3919138a9f8aSmrgmain (void)
39208ae04fa6Smrg{
39218ae04fa6Smrg#ifndef __GNUC__
39228ae04fa6Smrg       choke me
39238ae04fa6Smrg#endif
39248ae04fa6Smrg
39258ae04fa6Smrg  ;
39268ae04fa6Smrg  return 0;
39278ae04fa6Smrg}
39288ae04fa6Smrg_ACEOF
3929138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
3930138a9f8aSmrgthen :
39318ae04fa6Smrg  ac_compiler_gnu=yes
3932138a9f8aSmrgelse $as_nop
39332d1d20fcSmrg  ac_compiler_gnu=no
39348ae04fa6Smrgfi
3935138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39368ae04fa6Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
39378ae04fa6Smrg
39388ae04fa6Smrgfi
3939138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3940138a9f8aSmrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3941138a9f8aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3942138a9f8aSmrg
394344af7230Smrgif test $ac_compiler_gnu = yes; then
394444af7230Smrg  GCC=yes
394544af7230Smrgelse
394644af7230Smrg  GCC=
394744af7230Smrgfi
3948138a9f8aSmrgac_test_CFLAGS=${CFLAGS+y}
39498ae04fa6Smrgac_save_CFLAGS=$CFLAGS
3950138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3951138a9f8aSmrgprintf %s "checking whether $CC accepts -g... " >&6; }
3952138a9f8aSmrgif test ${ac_cv_prog_cc_g+y}
3953138a9f8aSmrgthen :
3954138a9f8aSmrg  printf %s "(cached) " >&6
3955138a9f8aSmrgelse $as_nop
39568ae04fa6Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
39578ae04fa6Smrg   ac_c_werror_flag=yes
39588ae04fa6Smrg   ac_cv_prog_cc_g=no
39598ae04fa6Smrg   CFLAGS="-g"
39602d1d20fcSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39618ae04fa6Smrg/* end confdefs.h.  */
39628ae04fa6Smrg
39638ae04fa6Smrgint
3964138a9f8aSmrgmain (void)
39658ae04fa6Smrg{
39668ae04fa6Smrg
39678ae04fa6Smrg  ;
39688ae04fa6Smrg  return 0;
39698ae04fa6Smrg}
39708ae04fa6Smrg_ACEOF
3971138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
3972138a9f8aSmrgthen :
39738ae04fa6Smrg  ac_cv_prog_cc_g=yes
3974138a9f8aSmrgelse $as_nop
39752d1d20fcSmrg  CFLAGS=""
39762d1d20fcSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39778ae04fa6Smrg/* end confdefs.h.  */
39788ae04fa6Smrg
39798ae04fa6Smrgint
3980138a9f8aSmrgmain (void)
39818ae04fa6Smrg{
39828ae04fa6Smrg
39838ae04fa6Smrg  ;
39848ae04fa6Smrg  return 0;
39858ae04fa6Smrg}
39868ae04fa6Smrg_ACEOF
3987138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
3988138a9f8aSmrgthen :
39898ae04fa6Smrg
3990138a9f8aSmrgelse $as_nop
39912d1d20fcSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
39928ae04fa6Smrg	 CFLAGS="-g"
39932d1d20fcSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39948ae04fa6Smrg/* end confdefs.h.  */
39958ae04fa6Smrg
39968ae04fa6Smrgint
3997138a9f8aSmrgmain (void)
39988ae04fa6Smrg{
39998ae04fa6Smrg
40008ae04fa6Smrg  ;
40018ae04fa6Smrg  return 0;
40028ae04fa6Smrg}
40038ae04fa6Smrg_ACEOF
4004138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
4005138a9f8aSmrgthen :
40068ae04fa6Smrg  ac_cv_prog_cc_g=yes
40078ae04fa6Smrgfi
4008138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40098ae04fa6Smrgfi
4010138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40118ae04fa6Smrgfi
4012138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40138ae04fa6Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
40148ae04fa6Smrgfi
4015138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4016138a9f8aSmrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4017138a9f8aSmrgif test $ac_test_CFLAGS; then
40188ae04fa6Smrg  CFLAGS=$ac_save_CFLAGS
40198ae04fa6Smrgelif test $ac_cv_prog_cc_g = yes; then
40208ae04fa6Smrg  if test "$GCC" = yes; then
40218ae04fa6Smrg    CFLAGS="-g -O2"
40228ae04fa6Smrg  else
40238ae04fa6Smrg    CFLAGS="-g"
40248ae04fa6Smrg  fi
40258ae04fa6Smrgelse
40268ae04fa6Smrg  if test "$GCC" = yes; then
40278ae04fa6Smrg    CFLAGS="-O2"
40288ae04fa6Smrg  else
40298ae04fa6Smrg    CFLAGS=
40308ae04fa6Smrg  fi
40318ae04fa6Smrgfi
4032138a9f8aSmrgac_prog_cc_stdc=no
4033138a9f8aSmrgif test x$ac_prog_cc_stdc = xno
4034138a9f8aSmrgthen :
4035138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4036138a9f8aSmrgprintf %s "checking for $CC option to enable C11 features... " >&6; }
4037138a9f8aSmrgif test ${ac_cv_prog_cc_c11+y}
4038138a9f8aSmrgthen :
4039138a9f8aSmrg  printf %s "(cached) " >&6
4040138a9f8aSmrgelse $as_nop
4041138a9f8aSmrg  ac_cv_prog_cc_c11=no
40428ae04fa6Smrgac_save_CC=$CC
40432d1d20fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
40448ae04fa6Smrg/* end confdefs.h.  */
4045138a9f8aSmrg$ac_c_conftest_c11_program
4046138a9f8aSmrg_ACEOF
4047138a9f8aSmrgfor ac_arg in '' -std=gnu11
4048138a9f8aSmrgdo
4049138a9f8aSmrg  CC="$ac_save_CC $ac_arg"
4050138a9f8aSmrg  if ac_fn_c_try_compile "$LINENO"
4051138a9f8aSmrgthen :
4052138a9f8aSmrg  ac_cv_prog_cc_c11=$ac_arg
4053138a9f8aSmrgfi
4054138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4055138a9f8aSmrg  test "x$ac_cv_prog_cc_c11" != "xno" && break
4056138a9f8aSmrgdone
4057138a9f8aSmrgrm -f conftest.$ac_ext
4058138a9f8aSmrgCC=$ac_save_CC
4059138a9f8aSmrgfi
40608ae04fa6Smrg
4061138a9f8aSmrgif test "x$ac_cv_prog_cc_c11" = xno
4062138a9f8aSmrgthen :
4063138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4064138a9f8aSmrgprintf "%s\n" "unsupported" >&6; }
4065138a9f8aSmrgelse $as_nop
4066138a9f8aSmrg  if test "x$ac_cv_prog_cc_c11" = x
4067138a9f8aSmrgthen :
4068138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4069138a9f8aSmrgprintf "%s\n" "none needed" >&6; }
4070138a9f8aSmrgelse $as_nop
4071138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4072138a9f8aSmrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4073138a9f8aSmrg     CC="$CC $ac_cv_prog_cc_c11"
4074138a9f8aSmrgfi
4075138a9f8aSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4076138a9f8aSmrg  ac_prog_cc_stdc=c11
4077138a9f8aSmrgfi
4078138a9f8aSmrgfi
4079138a9f8aSmrgif test x$ac_prog_cc_stdc = xno
4080138a9f8aSmrgthen :
4081138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4082138a9f8aSmrgprintf %s "checking for $CC option to enable C99 features... " >&6; }
4083138a9f8aSmrgif test ${ac_cv_prog_cc_c99+y}
4084138a9f8aSmrgthen :
4085138a9f8aSmrg  printf %s "(cached) " >&6
4086138a9f8aSmrgelse $as_nop
4087138a9f8aSmrg  ac_cv_prog_cc_c99=no
4088138a9f8aSmrgac_save_CC=$CC
4089138a9f8aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090138a9f8aSmrg/* end confdefs.h.  */
4091138a9f8aSmrg$ac_c_conftest_c99_program
4092138a9f8aSmrg_ACEOF
4093138a9f8aSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4094138a9f8aSmrgdo
4095138a9f8aSmrg  CC="$ac_save_CC $ac_arg"
4096138a9f8aSmrg  if ac_fn_c_try_compile "$LINENO"
4097138a9f8aSmrgthen :
4098138a9f8aSmrg  ac_cv_prog_cc_c99=$ac_arg
4099138a9f8aSmrgfi
4100138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4101138a9f8aSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
4102138a9f8aSmrgdone
4103138a9f8aSmrgrm -f conftest.$ac_ext
4104138a9f8aSmrgCC=$ac_save_CC
4105138a9f8aSmrgfi
41068ae04fa6Smrg
4107138a9f8aSmrgif test "x$ac_cv_prog_cc_c99" = xno
4108138a9f8aSmrgthen :
4109138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4110138a9f8aSmrgprintf "%s\n" "unsupported" >&6; }
4111138a9f8aSmrgelse $as_nop
4112138a9f8aSmrg  if test "x$ac_cv_prog_cc_c99" = x
4113138a9f8aSmrgthen :
4114138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4115138a9f8aSmrgprintf "%s\n" "none needed" >&6; }
4116138a9f8aSmrgelse $as_nop
4117138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4118138a9f8aSmrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4119138a9f8aSmrg     CC="$CC $ac_cv_prog_cc_c99"
4120138a9f8aSmrgfi
4121138a9f8aSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4122138a9f8aSmrg  ac_prog_cc_stdc=c99
4123138a9f8aSmrgfi
4124138a9f8aSmrgfi
4125138a9f8aSmrgif test x$ac_prog_cc_stdc = xno
4126138a9f8aSmrgthen :
4127138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4128138a9f8aSmrgprintf %s "checking for $CC option to enable C89 features... " >&6; }
4129138a9f8aSmrgif test ${ac_cv_prog_cc_c89+y}
4130138a9f8aSmrgthen :
4131138a9f8aSmrg  printf %s "(cached) " >&6
4132138a9f8aSmrgelse $as_nop
4133138a9f8aSmrg  ac_cv_prog_cc_c89=no
4134138a9f8aSmrgac_save_CC=$CC
4135138a9f8aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136138a9f8aSmrg/* end confdefs.h.  */
4137138a9f8aSmrg$ac_c_conftest_c89_program
41388ae04fa6Smrg_ACEOF
4139138a9f8aSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
41408ae04fa6Smrgdo
41418ae04fa6Smrg  CC="$ac_save_CC $ac_arg"
4142138a9f8aSmrg  if ac_fn_c_try_compile "$LINENO"
4143138a9f8aSmrgthen :
41448ae04fa6Smrg  ac_cv_prog_cc_c89=$ac_arg
41458ae04fa6Smrgfi
4146138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
41478ae04fa6Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
41488ae04fa6Smrgdone
41498ae04fa6Smrgrm -f conftest.$ac_ext
41508ae04fa6SmrgCC=$ac_save_CC
41518ae04fa6Smrgfi
41528ae04fa6Smrg
4153138a9f8aSmrgif test "x$ac_cv_prog_cc_c89" = xno
4154138a9f8aSmrgthen :
4155138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4156138a9f8aSmrgprintf "%s\n" "unsupported" >&6; }
4157138a9f8aSmrgelse $as_nop
4158138a9f8aSmrg  if test "x$ac_cv_prog_cc_c89" = x
4159138a9f8aSmrgthen :
4160138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4161138a9f8aSmrgprintf "%s\n" "none needed" >&6; }
4162138a9f8aSmrgelse $as_nop
4163138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4164138a9f8aSmrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4165138a9f8aSmrg     CC="$CC $ac_cv_prog_cc_c89"
4166138a9f8aSmrgfi
4167138a9f8aSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4168138a9f8aSmrg  ac_prog_cc_stdc=c89
4169138a9f8aSmrgfi
41702d1d20fcSmrgfi
41718ae04fa6Smrg
41728ae04fa6Smrgac_ext=c
41738ae04fa6Smrgac_cpp='$CPP $CPPFLAGS'
41748ae04fa6Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41758ae04fa6Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41768ae04fa6Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
41778ae04fa6Smrg
4178138a9f8aSmrg
4179138a9f8aSmrg  ac_ext=c
418080f56f3aSmrgac_cpp='$CPP $CPPFLAGS'
418180f56f3aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
418280f56f3aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
418380f56f3aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4184138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4185138a9f8aSmrgprintf %s "checking whether $CC understands -c and -o together... " >&6; }
4186138a9f8aSmrgif test ${am_cv_prog_cc_c_o+y}
4187138a9f8aSmrgthen :
4188138a9f8aSmrg  printf %s "(cached) " >&6
4189138a9f8aSmrgelse $as_nop
419080f56f3aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
419180f56f3aSmrg/* end confdefs.h.  */
419280f56f3aSmrg
419380f56f3aSmrgint
4194138a9f8aSmrgmain (void)
419580f56f3aSmrg{
419680f56f3aSmrg
419780f56f3aSmrg  ;
419880f56f3aSmrg  return 0;
419980f56f3aSmrg}
420080f56f3aSmrg_ACEOF
420180f56f3aSmrg  # Make sure it works both with $CC and with simple cc.
420280f56f3aSmrg  # Following AC_PROG_CC_C_O, we do the test twice because some
420380f56f3aSmrg  # compilers refuse to overwrite an existing .o file with -o,
420480f56f3aSmrg  # though they will create one.
420580f56f3aSmrg  am_cv_prog_cc_c_o=yes
420680f56f3aSmrg  for am_i in 1 2; do
420780f56f3aSmrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
420880f56f3aSmrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
420980f56f3aSmrg   ac_status=$?
421080f56f3aSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
421180f56f3aSmrg   (exit $ac_status); } \
421280f56f3aSmrg         && test -f conftest2.$ac_objext; then
421380f56f3aSmrg      : OK
421480f56f3aSmrg    else
421580f56f3aSmrg      am_cv_prog_cc_c_o=no
421680f56f3aSmrg      break
421780f56f3aSmrg    fi
421880f56f3aSmrg  done
421980f56f3aSmrg  rm -f core conftest*
422080f56f3aSmrg  unset am_i
422180f56f3aSmrgfi
4222138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4223138a9f8aSmrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
422480f56f3aSmrgif test "$am_cv_prog_cc_c_o" != yes; then
422580f56f3aSmrg   # Losing compiler, so override with the script.
422680f56f3aSmrg   # FIXME: It is wrong to rewrite CC.
422780f56f3aSmrg   # But if we don't then we get into trouble of one sort or another.
422880f56f3aSmrg   # A longer-term fix would be to have automake use am__CC in this case,
422980f56f3aSmrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
423080f56f3aSmrg   CC="$am_aux_dir/compile $CC"
423180f56f3aSmrgfi
423280f56f3aSmrgac_ext=c
423380f56f3aSmrgac_cpp='$CPP $CPPFLAGS'
423480f56f3aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
423580f56f3aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
423680f56f3aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
423780f56f3aSmrg
423880f56f3aSmrg
42398ae04fa6Smrgdepcc="$CC"   am_compiler_list=
42408ae04fa6Smrg
4241138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4242138a9f8aSmrgprintf %s "checking dependency style of $depcc... " >&6; }
4243138a9f8aSmrgif test ${am_cv_CC_dependencies_compiler_type+y}
4244138a9f8aSmrgthen :
4245138a9f8aSmrg  printf %s "(cached) " >&6
4246138a9f8aSmrgelse $as_nop
42478ae04fa6Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
42488ae04fa6Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
42498ae04fa6Smrg  # making bogus files that we don't know about and never remove.  For
42508ae04fa6Smrg  # instance it was reported that on HP-UX the gcc test will end up
425180f56f3aSmrg  # making a dummy file named 'D' -- because '-MD' means "put the output
425280f56f3aSmrg  # in D".
4253405c8079Smrg  rm -rf conftest.dir
42548ae04fa6Smrg  mkdir conftest.dir
42558ae04fa6Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
42568ae04fa6Smrg  # using a relative directory.
42578ae04fa6Smrg  cp "$am_depcomp" conftest.dir
42588ae04fa6Smrg  cd conftest.dir
42598ae04fa6Smrg  # We will build objects and dependencies in a subdirectory because
42608ae04fa6Smrg  # it helps to detect inapplicable dependency modes.  For instance
42618ae04fa6Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
42628ae04fa6Smrg  # side effect of compilation, but ICC will put the dependencies in
42638ae04fa6Smrg  # the current directory while Tru64 will put them in the object
42648ae04fa6Smrg  # directory.
42658ae04fa6Smrg  mkdir sub
42668ae04fa6Smrg
42678ae04fa6Smrg  am_cv_CC_dependencies_compiler_type=none
42688ae04fa6Smrg  if test "$am_compiler_list" = ""; then
42698ae04fa6Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
42708ae04fa6Smrg  fi
427144af7230Smrg  am__universal=false
427244af7230Smrg  case " $depcc " in #(
427344af7230Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
427444af7230Smrg     esac
427544af7230Smrg
42768ae04fa6Smrg  for depmode in $am_compiler_list; do
42778ae04fa6Smrg    # Setup a source with many dependencies, because some compilers
42788ae04fa6Smrg    # like to wrap large dependency lists on column 80 (with \), and
42798ae04fa6Smrg    # we should not choose a depcomp mode which is confused by this.
42808ae04fa6Smrg    #
42818ae04fa6Smrg    # We need to recreate these files for each test, as the compiler may
42828ae04fa6Smrg    # overwrite some of them when testing with obscure command lines.
42838ae04fa6Smrg    # This happens at least with the AIX C compiler.
42848ae04fa6Smrg    : > sub/conftest.c
42858ae04fa6Smrg    for i in 1 2 3 4 5 6; do
42868ae04fa6Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
428780f56f3aSmrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
428880f56f3aSmrg      # Solaris 10 /bin/sh.
428980f56f3aSmrg      echo '/* dummy */' > sub/conftst$i.h
42908ae04fa6Smrg    done
42918ae04fa6Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
42928ae04fa6Smrg
429380f56f3aSmrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
429444af7230Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
429580f56f3aSmrg    # handle '-M -o', and we need to detect this.  Also, some Intel
429680f56f3aSmrg    # versions had trouble with output in subdirs.
429744af7230Smrg    am__obj=sub/conftest.${OBJEXT-o}
429844af7230Smrg    am__minus_obj="-o $am__obj"
42998ae04fa6Smrg    case $depmode in
430044af7230Smrg    gcc)
430144af7230Smrg      # This depmode causes a compiler race in universal mode.
430244af7230Smrg      test "$am__universal" = false || continue
430344af7230Smrg      ;;
43048ae04fa6Smrg    nosideeffect)
430580f56f3aSmrg      # After this tag, mechanisms are not by side-effect, so they'll
430680f56f3aSmrg      # only be used when explicitly requested.
43078ae04fa6Smrg      if test "x$enable_dependency_tracking" = xyes; then
43088ae04fa6Smrg	continue
43098ae04fa6Smrg      else
43108ae04fa6Smrg	break
43118ae04fa6Smrg      fi
43128ae04fa6Smrg      ;;
4313405c8079Smrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
431480f56f3aSmrg      # This compiler won't grok '-c -o', but also, the minuso test has
431544af7230Smrg      # not run yet.  These depmodes are late enough in the game, and
431644af7230Smrg      # so weak that their functioning should not be impacted.
431744af7230Smrg      am__obj=conftest.${OBJEXT-o}
431844af7230Smrg      am__minus_obj=
431944af7230Smrg      ;;
43208ae04fa6Smrg    none) break ;;
43218ae04fa6Smrg    esac
43228ae04fa6Smrg    if depmode=$depmode \
432344af7230Smrg       source=sub/conftest.c object=$am__obj \
4324138a9f8aSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4325138a9f8aSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4326138a9f8aSmrg         >/dev/null 2>conftest.err &&
4327138a9f8aSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4328138a9f8aSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4329138a9f8aSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4330138a9f8aSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4331138a9f8aSmrg      # icc doesn't choke on unknown options, it will just issue warnings
4332138a9f8aSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
4333138a9f8aSmrg      # that says an option was ignored or not supported.
4334138a9f8aSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
4335138a9f8aSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
4336138a9f8aSmrg      # The diagnosis changed in icc 8.0:
4337138a9f8aSmrg      #   icc: Command line remark: option '-MP' not supported
4338138a9f8aSmrg      if (grep 'ignoring option' conftest.err ||
4339138a9f8aSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4340138a9f8aSmrg        am_cv_CC_dependencies_compiler_type=$depmode
4341138a9f8aSmrg        break
4342138a9f8aSmrg      fi
434344af7230Smrg    fi
434444af7230Smrg  done
434544af7230Smrg
4346138a9f8aSmrg  cd ..
4347138a9f8aSmrg  rm -rf conftest.dir
434844af7230Smrgelse
4349138a9f8aSmrg  am_cv_CC_dependencies_compiler_type=none
435044af7230Smrgfi
43518ae04fa6Smrg
43528ae04fa6Smrgfi
4353138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4354138a9f8aSmrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4355138a9f8aSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
435644af7230Smrg
4357138a9f8aSmrg if
4358138a9f8aSmrg  test "x$enable_dependency_tracking" != xno \
4359138a9f8aSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4360138a9f8aSmrg  am__fastdepCC_TRUE=
4361138a9f8aSmrg  am__fastdepCC_FALSE='#'
436244af7230Smrgelse
4363138a9f8aSmrg  am__fastdepCC_TRUE='#'
4364138a9f8aSmrg  am__fastdepCC_FALSE=
43658ae04fa6Smrgfi
43668ae04fa6Smrg
43678ae04fa6Smrg
43688ae04fa6Smrg
4369138a9f8aSmrg
4370138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4371138a9f8aSmrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4372138a9f8aSmrgif test ${ac_cv_c_undeclared_builtin_options+y}
4373138a9f8aSmrgthen :
4374138a9f8aSmrg  printf %s "(cached) " >&6
4375138a9f8aSmrgelse $as_nop
4376138a9f8aSmrg  ac_save_CFLAGS=$CFLAGS
4377138a9f8aSmrg   ac_cv_c_undeclared_builtin_options='cannot detect'
4378138a9f8aSmrg   for ac_arg in '' -fno-builtin; do
4379138a9f8aSmrg     CFLAGS="$ac_save_CFLAGS $ac_arg"
4380138a9f8aSmrg     # This test program should *not* compile successfully.
4381138a9f8aSmrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
438244af7230Smrg/* end confdefs.h.  */
43838ae04fa6Smrg
438444af7230Smrgint
4385138a9f8aSmrgmain (void)
438644af7230Smrg{
4387138a9f8aSmrg(void) strchr;
438844af7230Smrg  ;
438944af7230Smrg  return 0;
439044af7230Smrg}
439144af7230Smrg_ACEOF
4392138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
4393138a9f8aSmrgthen :
439444af7230Smrg
4395138a9f8aSmrgelse $as_nop
4396138a9f8aSmrg  # This test program should compile successfully.
4397138a9f8aSmrg        # No library function is consistently available on
4398138a9f8aSmrg        # freestanding implementations, so test against a dummy
4399138a9f8aSmrg        # declaration.  Include always-available headers on the
4400138a9f8aSmrg        # off chance that they somehow elicit warnings.
4401138a9f8aSmrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
440244af7230Smrg/* end confdefs.h.  */
4403138a9f8aSmrg#include <float.h>
4404138a9f8aSmrg#include <limits.h>
4405138a9f8aSmrg#include <stdarg.h>
4406138a9f8aSmrg#include <stddef.h>
4407138a9f8aSmrgextern void ac_decl (int, char *);
440844af7230Smrg
440944af7230Smrgint
4410138a9f8aSmrgmain (void)
441144af7230Smrg{
4412138a9f8aSmrg(void) ac_decl (0, (char *) 0);
4413138a9f8aSmrg  (void) ac_decl;
4414138a9f8aSmrg
4415138a9f8aSmrg  ;
441644af7230Smrg  return 0;
441744af7230Smrg}
441844af7230Smrg_ACEOF
4419138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
4420138a9f8aSmrgthen :
4421138a9f8aSmrg  if test x"$ac_arg" = x
4422138a9f8aSmrgthen :
4423138a9f8aSmrg  ac_cv_c_undeclared_builtin_options='none needed'
4424138a9f8aSmrgelse $as_nop
4425138a9f8aSmrg  ac_cv_c_undeclared_builtin_options=$ac_arg
442644af7230Smrgfi
4427138a9f8aSmrg          break
442844af7230Smrgfi
4429138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
443044af7230Smrgfi
4431138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4432138a9f8aSmrg    done
4433138a9f8aSmrg    CFLAGS=$ac_save_CFLAGS
4434138a9f8aSmrg
4435138a9f8aSmrgfi
4436138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4437138a9f8aSmrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4438138a9f8aSmrg  case $ac_cv_c_undeclared_builtin_options in #(
4439138a9f8aSmrg  'cannot detect') :
4440138a9f8aSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4441138a9f8aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4442138a9f8aSmrgas_fn_error $? "cannot make $CC report undeclared builtins
4443138a9f8aSmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #(
4444138a9f8aSmrg  'none needed') :
4445138a9f8aSmrg    ac_c_undeclared_builtin_options='' ;; #(
4446138a9f8aSmrg  *) :
4447138a9f8aSmrg    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4448138a9f8aSmrgesac
444944af7230Smrg
4450138a9f8aSmrgac_header= ac_cache=
4451138a9f8aSmrgfor ac_item in $ac_header_c_list
4452138a9f8aSmrgdo
4453138a9f8aSmrg  if test $ac_cache; then
4454138a9f8aSmrg    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4455138a9f8aSmrg    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4456138a9f8aSmrg      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4457138a9f8aSmrg    fi
4458138a9f8aSmrg    ac_header= ac_cache=
4459138a9f8aSmrg  elif test $ac_header; then
4460138a9f8aSmrg    ac_cache=$ac_item
4461138a9f8aSmrg  else
4462138a9f8aSmrg    ac_header=$ac_item
4463138a9f8aSmrg  fi
4464138a9f8aSmrgdone
446544af7230Smrg
446644af7230Smrg
446744af7230Smrg
446844af7230Smrg
446944af7230Smrg
447044af7230Smrg
447144af7230Smrg
447244af7230Smrg
4473138a9f8aSmrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4474138a9f8aSmrgthen :
4475138a9f8aSmrg
4476138a9f8aSmrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4477138a9f8aSmrg
4478138a9f8aSmrgfi
4479138a9f8aSmrg
4480138a9f8aSmrg
4481405c8079Smrg
4482405c8079Smrg
4483138a9f8aSmrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4484138a9f8aSmrgif test "x$ac_cv_have_decl___clang__" = xyes
4485138a9f8aSmrgthen :
4486405c8079Smrg  CLANGCC="yes"
4487138a9f8aSmrgelse $as_nop
4488405c8079Smrg  CLANGCC="no"
4489405c8079Smrgfi
4490138a9f8aSmrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4491138a9f8aSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4492138a9f8aSmrgthen :
4493405c8079Smrg  INTELCC="yes"
4494138a9f8aSmrgelse $as_nop
4495405c8079Smrg  INTELCC="no"
4496405c8079Smrgfi
4497138a9f8aSmrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4498138a9f8aSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4499138a9f8aSmrgthen :
4500405c8079Smrg  SUNCC="yes"
4501138a9f8aSmrgelse $as_nop
4502405c8079Smrg  SUNCC="no"
4503405c8079Smrgfi
4504405c8079Smrg
4505405c8079Smrg
4506405c8079Smrg
4507405c8079Smrg
4508d71d4977Smrg
4509d71d4977Smrg
4510d71d4977Smrg
4511d71d4977Smrg
45122d1d20fcSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
45132d1d20fcSmrg	if test -n "$ac_tool_prefix"; then
45142d1d20fcSmrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
45152d1d20fcSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4516138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517138a9f8aSmrgprintf %s "checking for $ac_word... " >&6; }
4518138a9f8aSmrgif test ${ac_cv_path_PKG_CONFIG+y}
4519138a9f8aSmrgthen :
4520138a9f8aSmrg  printf %s "(cached) " >&6
4521138a9f8aSmrgelse $as_nop
45222d1d20fcSmrg  case $PKG_CONFIG in
45232d1d20fcSmrg  [\\/]* | ?:[\\/]*)
45242d1d20fcSmrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45252d1d20fcSmrg  ;;
45262d1d20fcSmrg  *)
45272d1d20fcSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45282d1d20fcSmrgfor as_dir in $PATH
452944af7230Smrgdo
45302d1d20fcSmrg  IFS=$as_save_IFS
4531138a9f8aSmrg  case $as_dir in #(((
4532138a9f8aSmrg    '') as_dir=./ ;;
4533138a9f8aSmrg    */) ;;
4534138a9f8aSmrg    *) as_dir=$as_dir/ ;;
4535138a9f8aSmrg  esac
45362d1d20fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4537138a9f8aSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4538138a9f8aSmrg    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4539138a9f8aSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45402d1d20fcSmrg    break 2
45412d1d20fcSmrg  fi
45422d1d20fcSmrgdone
45432d1d20fcSmrg  done
45442d1d20fcSmrgIFS=$as_save_IFS
45452d1d20fcSmrg
45462d1d20fcSmrg  ;;
454744af7230Smrgesac
45482d1d20fcSmrgfi
45492d1d20fcSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
45502d1d20fcSmrgif test -n "$PKG_CONFIG"; then
4551138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4552138a9f8aSmrgprintf "%s\n" "$PKG_CONFIG" >&6; }
455344af7230Smrgelse
4554138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555138a9f8aSmrgprintf "%s\n" "no" >&6; }
455644af7230Smrgfi
455744af7230Smrg
455844af7230Smrg
455944af7230Smrgfi
45602d1d20fcSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then
45612d1d20fcSmrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
45622d1d20fcSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
45632d1d20fcSmrgset dummy pkg-config; ac_word=$2
4564138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565138a9f8aSmrgprintf %s "checking for $ac_word... " >&6; }
4566138a9f8aSmrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4567138a9f8aSmrgthen :
4568138a9f8aSmrg  printf %s "(cached) " >&6
4569138a9f8aSmrgelse $as_nop
45702d1d20fcSmrg  case $ac_pt_PKG_CONFIG in
45712d1d20fcSmrg  [\\/]* | ?:[\\/]*)
45722d1d20fcSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
45732d1d20fcSmrg  ;;
457444af7230Smrg  *)
45752d1d20fcSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45762d1d20fcSmrgfor as_dir in $PATH
45772d1d20fcSmrgdo
45782d1d20fcSmrg  IFS=$as_save_IFS
4579138a9f8aSmrg  case $as_dir in #(((
4580138a9f8aSmrg    '') as_dir=./ ;;
4581138a9f8aSmrg    */) ;;
4582138a9f8aSmrg    *) as_dir=$as_dir/ ;;
4583138a9f8aSmrg  esac
45842d1d20fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4585138a9f8aSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4586138a9f8aSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4587138a9f8aSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45882d1d20fcSmrg    break 2
45892d1d20fcSmrg  fi
45902d1d20fcSmrgdone
45912d1d20fcSmrg  done
45922d1d20fcSmrgIFS=$as_save_IFS
45932d1d20fcSmrg
45942d1d20fcSmrg  ;;
459544af7230Smrgesac
45962d1d20fcSmrgfi
45972d1d20fcSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
45982d1d20fcSmrgif test -n "$ac_pt_PKG_CONFIG"; then
4599138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4600138a9f8aSmrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
46012d1d20fcSmrgelse
4602138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603138a9f8aSmrgprintf "%s\n" "no" >&6; }
46042d1d20fcSmrgfi
460544af7230Smrg
46062d1d20fcSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
46072d1d20fcSmrg    PKG_CONFIG=""
46082d1d20fcSmrg  else
46092d1d20fcSmrg    case $cross_compiling:$ac_tool_warned in
46102d1d20fcSmrgyes:)
4611138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4612138a9f8aSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
46132d1d20fcSmrgac_tool_warned=yes ;;
46142d1d20fcSmrgesac
46152d1d20fcSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
46162d1d20fcSmrg  fi
46172d1d20fcSmrgelse
46182d1d20fcSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
46192d1d20fcSmrgfi
462044af7230Smrg
46212d1d20fcSmrgfi
46222d1d20fcSmrgif test -n "$PKG_CONFIG"; then
46232d1d20fcSmrg	_pkg_min_version=0.9.0
4624138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4625138a9f8aSmrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
46262d1d20fcSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4627138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4628138a9f8aSmrgprintf "%s\n" "yes" >&6; }
46292d1d20fcSmrg	else
4630138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631138a9f8aSmrgprintf "%s\n" "no" >&6; }
46322d1d20fcSmrg		PKG_CONFIG=""
46332d1d20fcSmrg	fi
46342d1d20fcSmrgfi
463544af7230Smrg
4636138a9f8aSmrg
4637138a9f8aSmrg  # Make sure we can run config.sub.
4638138a9f8aSmrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4639138a9f8aSmrg  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4640138a9f8aSmrg
4641138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4642138a9f8aSmrgprintf %s "checking build system type... " >&6; }
4643138a9f8aSmrgif test ${ac_cv_build+y}
4644138a9f8aSmrgthen :
4645138a9f8aSmrg  printf %s "(cached) " >&6
4646138a9f8aSmrgelse $as_nop
464744af7230Smrg  ac_build_alias=$build_alias
464844af7230Smrgtest "x$ac_build_alias" = x &&
4649138a9f8aSmrg  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
465044af7230Smrgtest "x$ac_build_alias" = x &&
46512d1d20fcSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4652138a9f8aSmrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4653138a9f8aSmrg  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
465444af7230Smrg
465544af7230Smrgfi
4656138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4657138a9f8aSmrgprintf "%s\n" "$ac_cv_build" >&6; }
465844af7230Smrgcase $ac_cv_build in
465944af7230Smrg*-*-*) ;;
46602d1d20fcSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
466144af7230Smrgesac
466244af7230Smrgbuild=$ac_cv_build
466344af7230Smrgac_save_IFS=$IFS; IFS='-'
466444af7230Smrgset x $ac_cv_build
466544af7230Smrgshift
466644af7230Smrgbuild_cpu=$1
466744af7230Smrgbuild_vendor=$2
466844af7230Smrgshift; shift
466944af7230Smrg# Remember, the first character of IFS is used to create $*,
467044af7230Smrg# except with old shells:
467144af7230Smrgbuild_os=$*
467244af7230SmrgIFS=$ac_save_IFS
467344af7230Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
467444af7230Smrg
467544af7230Smrg
4676138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4677138a9f8aSmrgprintf %s "checking host system type... " >&6; }
4678138a9f8aSmrgif test ${ac_cv_host+y}
4679138a9f8aSmrgthen :
4680138a9f8aSmrg  printf %s "(cached) " >&6
4681138a9f8aSmrgelse $as_nop
468244af7230Smrg  if test "x$host_alias" = x; then
468344af7230Smrg  ac_cv_host=$ac_cv_build
468444af7230Smrgelse
4685138a9f8aSmrg  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4686138a9f8aSmrg    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
468744af7230Smrgfi
468844af7230Smrg
468944af7230Smrgfi
4690138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4691138a9f8aSmrgprintf "%s\n" "$ac_cv_host" >&6; }
469244af7230Smrgcase $ac_cv_host in
469344af7230Smrg*-*-*) ;;
46942d1d20fcSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
469544af7230Smrgesac
469644af7230Smrghost=$ac_cv_host
469744af7230Smrgac_save_IFS=$IFS; IFS='-'
469844af7230Smrgset x $ac_cv_host
469944af7230Smrgshift
470044af7230Smrghost_cpu=$1
470144af7230Smrghost_vendor=$2
470244af7230Smrgshift; shift
470344af7230Smrg# Remember, the first character of IFS is used to create $*,
470444af7230Smrg# except with old shells:
470544af7230Smrghost_os=$*
470644af7230SmrgIFS=$ac_save_IFS
470744af7230Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
470844af7230Smrg
470944af7230Smrg
4710138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4711138a9f8aSmrgprintf %s "checking for a sed that does not truncate output... " >&6; }
4712138a9f8aSmrgif test ${ac_cv_path_SED+y}
4713138a9f8aSmrgthen :
4714138a9f8aSmrg  printf %s "(cached) " >&6
4715138a9f8aSmrgelse $as_nop
47162d1d20fcSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
47172d1d20fcSmrg     for ac_i in 1 2 3 4 5 6 7; do
47182d1d20fcSmrg       ac_script="$ac_script$as_nl$ac_script"
47192d1d20fcSmrg     done
47202d1d20fcSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
47212d1d20fcSmrg     { ac_script=; unset ac_script;}
47222d1d20fcSmrg     if test -z "$SED"; then
47232d1d20fcSmrg  ac_path_SED_found=false
47242d1d20fcSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
47252d1d20fcSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47262d1d20fcSmrgfor as_dir in $PATH
47272d1d20fcSmrgdo
47282d1d20fcSmrg  IFS=$as_save_IFS
4729138a9f8aSmrg  case $as_dir in #(((
4730138a9f8aSmrg    '') as_dir=./ ;;
4731138a9f8aSmrg    */) ;;
4732138a9f8aSmrg    *) as_dir=$as_dir/ ;;
4733138a9f8aSmrg  esac
4734138a9f8aSmrg    for ac_prog in sed gsed
4735138a9f8aSmrg   do
47362d1d20fcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4737138a9f8aSmrg      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
473880f56f3aSmrg      as_fn_executable_p "$ac_path_SED" || continue
47392d1d20fcSmrg# Check for GNU ac_path_SED and select it if it is found.
47402d1d20fcSmrg  # Check for GNU $ac_path_SED
47412d1d20fcSmrgcase `"$ac_path_SED" --version 2>&1` in
47422d1d20fcSmrg*GNU*)
47432d1d20fcSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
47442d1d20fcSmrg*)
47452d1d20fcSmrg  ac_count=0
4746138a9f8aSmrg  printf %s 0123456789 >"conftest.in"
47472d1d20fcSmrg  while :
47482d1d20fcSmrg  do
47492d1d20fcSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
47502d1d20fcSmrg    mv "conftest.tmp" "conftest.in"
47512d1d20fcSmrg    cp "conftest.in" "conftest.nl"
4752138a9f8aSmrg    printf "%s\n" '' >> "conftest.nl"
47532d1d20fcSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
47542d1d20fcSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
47552d1d20fcSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
47562d1d20fcSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
47572d1d20fcSmrg      # Best one so far, save it but keep looking for a better one
47582d1d20fcSmrg      ac_cv_path_SED="$ac_path_SED"
47592d1d20fcSmrg      ac_path_SED_max=$ac_count
47602d1d20fcSmrg    fi
47612d1d20fcSmrg    # 10*(2^10) chars as input seems more than enough
47622d1d20fcSmrg    test $ac_count -gt 10 && break
47632d1d20fcSmrg  done
47642d1d20fcSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
47652d1d20fcSmrgesac
47662d1d20fcSmrg
47672d1d20fcSmrg      $ac_path_SED_found && break 3
47682d1d20fcSmrg    done
47692d1d20fcSmrg  done
47702d1d20fcSmrg  done
47712d1d20fcSmrgIFS=$as_save_IFS
47722d1d20fcSmrg  if test -z "$ac_cv_path_SED"; then
47732d1d20fcSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
47742d1d20fcSmrg  fi
47752d1d20fcSmrgelse
47762d1d20fcSmrg  ac_cv_path_SED=$SED
47772d1d20fcSmrgfi
47782d1d20fcSmrg
47792d1d20fcSmrgfi
4780138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4781138a9f8aSmrgprintf "%s\n" "$ac_cv_path_SED" >&6; }
47822d1d20fcSmrg SED="$ac_cv_path_SED"
47832d1d20fcSmrg  rm -f conftest.sed
47842d1d20fcSmrg
47852d1d20fcSmrg
478644af7230Smrg
478744af7230Smrg
478844af7230Smrg
4789405c8079Smrg
4790405c8079Smrg# Check whether --enable-selective-werror was given.
4791138a9f8aSmrgif test ${enable_selective_werror+y}
4792138a9f8aSmrgthen :
4793405c8079Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4794138a9f8aSmrgelse $as_nop
4795405c8079Smrg  SELECTIVE_WERROR=yes
4796405c8079Smrgfi
4797405c8079Smrg
4798405c8079Smrg
4799405c8079Smrg
4800405c8079Smrg
4801405c8079Smrg
4802405c8079Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
4803405c8079Smrgif test "x$SUNCC" = "xyes"; then
4804405c8079Smrg    BASE_CFLAGS="-v"
480544af7230Smrgelse
4806405c8079Smrg    BASE_CFLAGS=""
480744af7230Smrgfi
480844af7230Smrg
4809405c8079Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4810405c8079Smrg
4811405c8079Smrg
4812405c8079Smrg
4813405c8079Smrg
4814405c8079Smrg
4815405c8079Smrg
4816405c8079Smrg
4817405c8079Smrg
4818405c8079Smrg
4819405c8079Smrg
4820405c8079Smrg
4821405c8079Smrg
4822405c8079Smrg
4823405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
4824405c8079Smrg
4825405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4826405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4827138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4828138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4829138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
4830138a9f8aSmrgthen :
4831138a9f8aSmrg  printf %s "(cached) " >&6
4832138a9f8aSmrgelse $as_nop
4833405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834405c8079Smrg/* end confdefs.h.  */
4835405c8079Smrgint i;
4836405c8079Smrg_ACEOF
4837138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
4838138a9f8aSmrgthen :
4839405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
4840138a9f8aSmrgelse $as_nop
4841405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
4842405c8079Smrgfi
4843138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4844405c8079Smrgfi
4845138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4846138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4847405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4848405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
484944af7230Smrgfi
485044af7230Smrg
4851405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4852405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4853405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4854405c8079Smrg	fi
4855405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4856138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4857138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4858138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4859138a9f8aSmrgthen :
4860138a9f8aSmrg  printf %s "(cached) " >&6
4861138a9f8aSmrgelse $as_nop
4862405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863405c8079Smrg/* end confdefs.h.  */
4864405c8079Smrgint i;
4865405c8079Smrg_ACEOF
4866138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
4867138a9f8aSmrgthen :
4868405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
4869138a9f8aSmrgelse $as_nop
4870405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
4871405c8079Smrgfi
4872138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4873405c8079Smrgfi
4874138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4875138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4876405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4877405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
4878405c8079Smrgfi
487944af7230Smrg
4880405c8079Smrgfound="no"
488144af7230Smrg
4882405c8079Smrg	if test $found = "no" ; then
488380f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4884405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4885405c8079Smrg		fi
488644af7230Smrg
488780f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4888405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4889405c8079Smrg		fi
489044af7230Smrg
4891405c8079Smrg		CFLAGS="$CFLAGS -Wall"
489244af7230Smrg
4893138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4894138a9f8aSmrgprintf %s "checking if $CC supports -Wall... " >&6; }
4895405c8079Smrg		cacheid=xorg_cv_cc_flag__Wall
4896138a9f8aSmrg		if eval test \${$cacheid+y}
4897138a9f8aSmrgthen :
4898138a9f8aSmrg  printf %s "(cached) " >&6
4899138a9f8aSmrgelse $as_nop
4900405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901405c8079Smrg/* end confdefs.h.  */
4902405c8079Smrgint i;
4903405c8079Smrgint
4904138a9f8aSmrgmain (void)
4905405c8079Smrg{
4906405c8079Smrg
4907405c8079Smrg  ;
4908405c8079Smrg  return 0;
4909405c8079Smrg}
4910405c8079Smrg_ACEOF
4911138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
4912138a9f8aSmrgthen :
4913405c8079Smrg  eval $cacheid=yes
4914138a9f8aSmrgelse $as_nop
4915405c8079Smrg  eval $cacheid=no
4916405c8079Smrgfi
4917138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
4918405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
491944af7230Smrgfi
492044af7230Smrg
4921405c8079Smrg
4922405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
4923405c8079Smrg
4924405c8079Smrg		eval supported=\$$cacheid
4925138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4926138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
4927405c8079Smrg		if test "$supported" = "yes" ; then
4928405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4929405c8079Smrg			found="yes"
4930405c8079Smrg		fi
4931405c8079Smrg	fi
4932405c8079Smrg
4933405c8079Smrg
4934405c8079Smrg
4935405c8079Smrg
4936405c8079Smrg
4937405c8079Smrg
4938405c8079Smrg
4939405c8079Smrg
4940405c8079Smrg
4941405c8079Smrg
4942405c8079Smrg
4943405c8079Smrg
4944405c8079Smrg
4945405c8079Smrg
4946405c8079Smrg
4947405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
4948405c8079Smrg
4949405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4950405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4951138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4952138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4953138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
4954138a9f8aSmrgthen :
4955138a9f8aSmrg  printf %s "(cached) " >&6
4956138a9f8aSmrgelse $as_nop
4957405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958405c8079Smrg/* end confdefs.h.  */
4959405c8079Smrgint i;
4960405c8079Smrg_ACEOF
4961138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
4962138a9f8aSmrgthen :
4963405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
4964138a9f8aSmrgelse $as_nop
4965405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
4966405c8079Smrgfi
4967138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4968405c8079Smrgfi
4969138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4970138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4971405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4972405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
497344af7230Smrgfi
497444af7230Smrg
4975405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4976405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4977405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4978405c8079Smrg	fi
4979405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4980138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4981138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4982138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4983138a9f8aSmrgthen :
4984138a9f8aSmrg  printf %s "(cached) " >&6
4985138a9f8aSmrgelse $as_nop
4986405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987405c8079Smrg/* end confdefs.h.  */
4988405c8079Smrgint i;
4989405c8079Smrg_ACEOF
4990138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
4991138a9f8aSmrgthen :
4992405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
4993138a9f8aSmrgelse $as_nop
4994405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
4995405c8079Smrgfi
4996138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4997405c8079Smrgfi
4998138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4999138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5000405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5001405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5002405c8079Smrgfi
5003405c8079Smrg
5004405c8079Smrgfound="no"
5005405c8079Smrg
5006405c8079Smrg	if test $found = "no" ; then
500780f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5008405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5009405c8079Smrg		fi
5010405c8079Smrg
501180f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5012405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5013405c8079Smrg		fi
5014405c8079Smrg
5015405c8079Smrg		CFLAGS="$CFLAGS -Wpointer-arith"
5016405c8079Smrg
5017138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5018138a9f8aSmrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5019405c8079Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
5020138a9f8aSmrg		if eval test \${$cacheid+y}
5021138a9f8aSmrgthen :
5022138a9f8aSmrg  printf %s "(cached) " >&6
5023138a9f8aSmrgelse $as_nop
5024405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025405c8079Smrg/* end confdefs.h.  */
5026405c8079Smrgint i;
5027405c8079Smrgint
5028138a9f8aSmrgmain (void)
5029405c8079Smrg{
5030405c8079Smrg
5031405c8079Smrg  ;
5032405c8079Smrg  return 0;
5033405c8079Smrg}
5034405c8079Smrg_ACEOF
5035138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
5036138a9f8aSmrgthen :
5037405c8079Smrg  eval $cacheid=yes
5038138a9f8aSmrgelse $as_nop
5039405c8079Smrg  eval $cacheid=no
5040405c8079Smrgfi
5041138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5042405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
5043405c8079Smrgfi
5044405c8079Smrg
5045405c8079Smrg
5046405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5047405c8079Smrg
5048405c8079Smrg		eval supported=\$$cacheid
5049138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5050138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
5051405c8079Smrg		if test "$supported" = "yes" ; then
5052405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5053405c8079Smrg			found="yes"
5054405c8079Smrg		fi
5055405c8079Smrg	fi
5056405c8079Smrg
5057405c8079Smrg
5058405c8079Smrg
5059405c8079Smrg
5060405c8079Smrg
5061405c8079Smrg
5062405c8079Smrg
5063405c8079Smrg
5064405c8079Smrg
5065405c8079Smrg
5066405c8079Smrg
5067405c8079Smrg
5068405c8079Smrg
5069405c8079Smrg
5070405c8079Smrg
5071405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5072405c8079Smrg
5073405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5074405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5075138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5076138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5077138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5078138a9f8aSmrgthen :
5079138a9f8aSmrg  printf %s "(cached) " >&6
5080138a9f8aSmrgelse $as_nop
5081405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082405c8079Smrg/* end confdefs.h.  */
5083405c8079Smrgint i;
5084405c8079Smrg_ACEOF
5085138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
5086138a9f8aSmrgthen :
5087405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5088138a9f8aSmrgelse $as_nop
5089405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5090405c8079Smrgfi
5091138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5092405c8079Smrgfi
5093138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5094138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5095405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5096405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
509744af7230Smrgfi
509844af7230Smrg
5099405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5100405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5101405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
510244af7230Smrg	fi
5103405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5104138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5105138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5106138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5107138a9f8aSmrgthen :
5108138a9f8aSmrg  printf %s "(cached) " >&6
5109138a9f8aSmrgelse $as_nop
5110405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111405c8079Smrg/* end confdefs.h.  */
5112405c8079Smrgint i;
5113405c8079Smrg_ACEOF
5114138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
5115138a9f8aSmrgthen :
5116405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5117138a9f8aSmrgelse $as_nop
5118405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5119405c8079Smrgfi
5120138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5121405c8079Smrgfi
5122138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5123138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5124405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5125405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5126405c8079Smrgfi
5127405c8079Smrg
5128405c8079Smrgfound="no"
5129405c8079Smrg
5130405c8079Smrg	if test $found = "no" ; then
513180f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5132405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5133405c8079Smrg		fi
5134405c8079Smrg
513580f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5136405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5137405c8079Smrg		fi
5138405c8079Smrg
5139405c8079Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
5140405c8079Smrg
5141138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5142138a9f8aSmrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5143405c8079Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5144138a9f8aSmrg		if eval test \${$cacheid+y}
5145138a9f8aSmrgthen :
5146138a9f8aSmrg  printf %s "(cached) " >&6
5147138a9f8aSmrgelse $as_nop
5148405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149405c8079Smrg/* end confdefs.h.  */
5150405c8079Smrgint i;
5151405c8079Smrgint
5152138a9f8aSmrgmain (void)
5153405c8079Smrg{
5154405c8079Smrg
5155405c8079Smrg  ;
5156405c8079Smrg  return 0;
5157405c8079Smrg}
5158405c8079Smrg_ACEOF
5159138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
5160138a9f8aSmrgthen :
5161405c8079Smrg  eval $cacheid=yes
5162138a9f8aSmrgelse $as_nop
5163405c8079Smrg  eval $cacheid=no
5164405c8079Smrgfi
5165138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5166405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
516744af7230Smrgfi
5168405c8079Smrg
5169405c8079Smrg
5170405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5171405c8079Smrg
5172405c8079Smrg		eval supported=\$$cacheid
5173138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5174138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
5175405c8079Smrg		if test "$supported" = "yes" ; then
5176405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5177405c8079Smrg			found="yes"
5178405c8079Smrg		fi
5179405c8079Smrg	fi
5180405c8079Smrg
5181405c8079Smrg
5182405c8079Smrg
5183405c8079Smrg
5184405c8079Smrg
5185405c8079Smrg
5186405c8079Smrg
5187405c8079Smrg
5188405c8079Smrg
5189405c8079Smrg
5190405c8079Smrg
5191405c8079Smrg
5192405c8079Smrg
5193405c8079Smrg
5194405c8079Smrg
5195405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5196405c8079Smrg
5197405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5198405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5199138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5200138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5201138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5202138a9f8aSmrgthen :
5203138a9f8aSmrg  printf %s "(cached) " >&6
5204138a9f8aSmrgelse $as_nop
5205405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206405c8079Smrg/* end confdefs.h.  */
5207405c8079Smrgint i;
5208405c8079Smrg_ACEOF
5209138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
5210138a9f8aSmrgthen :
5211405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5212138a9f8aSmrgelse $as_nop
5213405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5214405c8079Smrgfi
5215138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5216405c8079Smrgfi
5217138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5218138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5219405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5220405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5221405c8079Smrgfi
5222405c8079Smrg
5223405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5224405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5225405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5226405c8079Smrg	fi
5227405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5228138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5229138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5230138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5231138a9f8aSmrgthen :
5232138a9f8aSmrg  printf %s "(cached) " >&6
5233138a9f8aSmrgelse $as_nop
5234405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235405c8079Smrg/* end confdefs.h.  */
5236405c8079Smrgint i;
5237405c8079Smrg_ACEOF
5238138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
5239138a9f8aSmrgthen :
5240405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5241138a9f8aSmrgelse $as_nop
5242405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5243405c8079Smrgfi
5244138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5245405c8079Smrgfi
5246138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5247138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5248405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5249405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5250405c8079Smrgfi
5251405c8079Smrg
5252405c8079Smrgfound="no"
5253405c8079Smrg
5254405c8079Smrg	if test $found = "no" ; then
525580f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5256405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5257405c8079Smrg		fi
5258405c8079Smrg
525980f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5260405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5261405c8079Smrg		fi
5262405c8079Smrg
5263405c8079Smrg		CFLAGS="$CFLAGS -Wformat=2"
5264405c8079Smrg
5265138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5266138a9f8aSmrgprintf %s "checking if $CC supports -Wformat=2... " >&6; }
526780f56f3aSmrg		cacheid=xorg_cv_cc_flag__Wformat_2
5268138a9f8aSmrg		if eval test \${$cacheid+y}
5269138a9f8aSmrgthen :
5270138a9f8aSmrg  printf %s "(cached) " >&6
5271138a9f8aSmrgelse $as_nop
5272405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273405c8079Smrg/* end confdefs.h.  */
5274405c8079Smrgint i;
5275405c8079Smrgint
5276138a9f8aSmrgmain (void)
5277405c8079Smrg{
5278405c8079Smrg
5279405c8079Smrg  ;
5280405c8079Smrg  return 0;
5281405c8079Smrg}
5282405c8079Smrg_ACEOF
5283138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
5284138a9f8aSmrgthen :
5285405c8079Smrg  eval $cacheid=yes
5286138a9f8aSmrgelse $as_nop
5287405c8079Smrg  eval $cacheid=no
5288405c8079Smrgfi
5289138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5290405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
5291405c8079Smrgfi
5292405c8079Smrg
5293405c8079Smrg
5294405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5295405c8079Smrg
5296405c8079Smrg		eval supported=\$$cacheid
5297138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5298138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
5299405c8079Smrg		if test "$supported" = "yes" ; then
5300405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5301405c8079Smrg			found="yes"
5302405c8079Smrg		fi
5303405c8079Smrg	fi
5304405c8079Smrg
5305405c8079Smrg	if test $found = "no" ; then
530680f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5307405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5308405c8079Smrg		fi
5309405c8079Smrg
531080f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5311405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5312405c8079Smrg		fi
5313405c8079Smrg
5314405c8079Smrg		CFLAGS="$CFLAGS -Wformat"
5315405c8079Smrg
5316138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5317138a9f8aSmrgprintf %s "checking if $CC supports -Wformat... " >&6; }
5318405c8079Smrg		cacheid=xorg_cv_cc_flag__Wformat
5319138a9f8aSmrg		if eval test \${$cacheid+y}
5320138a9f8aSmrgthen :
5321138a9f8aSmrg  printf %s "(cached) " >&6
5322138a9f8aSmrgelse $as_nop
5323405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324405c8079Smrg/* end confdefs.h.  */
5325405c8079Smrgint i;
5326405c8079Smrgint
5327138a9f8aSmrgmain (void)
5328405c8079Smrg{
5329405c8079Smrg
5330405c8079Smrg  ;
5331405c8079Smrg  return 0;
5332405c8079Smrg}
5333405c8079Smrg_ACEOF
5334138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
5335138a9f8aSmrgthen :
5336405c8079Smrg  eval $cacheid=yes
5337138a9f8aSmrgelse $as_nop
5338405c8079Smrg  eval $cacheid=no
5339405c8079Smrgfi
5340138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5341405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
5342405c8079Smrgfi
5343405c8079Smrg
5344405c8079Smrg
5345405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5346405c8079Smrg
5347405c8079Smrg		eval supported=\$$cacheid
5348138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5349138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
5350405c8079Smrg		if test "$supported" = "yes" ; then
5351405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5352405c8079Smrg			found="yes"
5353405c8079Smrg		fi
5354405c8079Smrg	fi
5355405c8079Smrg
5356405c8079Smrg
5357405c8079Smrg
5358405c8079Smrg
5359405c8079Smrg
5360405c8079Smrg
5361405c8079Smrg
5362405c8079Smrg
5363405c8079Smrg
5364405c8079Smrg
5365405c8079Smrg
5366405c8079Smrg
5367405c8079Smrg
5368405c8079Smrg
5369405c8079Smrg
5370405c8079Smrg
5371405c8079Smrg
5372405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5373405c8079Smrg
5374405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5375405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5376138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5377138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5378138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5379138a9f8aSmrgthen :
5380138a9f8aSmrg  printf %s "(cached) " >&6
5381138a9f8aSmrgelse $as_nop
5382405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383405c8079Smrg/* end confdefs.h.  */
5384405c8079Smrgint i;
5385405c8079Smrg_ACEOF
5386138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
5387138a9f8aSmrgthen :
5388405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5389138a9f8aSmrgelse $as_nop
5390405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5391405c8079Smrgfi
5392138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5393405c8079Smrgfi
5394138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5395138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5396405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5397405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5398405c8079Smrgfi
5399405c8079Smrg
5400405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5401405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5402405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5403405c8079Smrg	fi
5404405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5405138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5406138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5407138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5408138a9f8aSmrgthen :
5409138a9f8aSmrg  printf %s "(cached) " >&6
5410138a9f8aSmrgelse $as_nop
5411405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412405c8079Smrg/* end confdefs.h.  */
5413405c8079Smrgint i;
5414405c8079Smrg_ACEOF
5415138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
5416138a9f8aSmrgthen :
5417405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5418138a9f8aSmrgelse $as_nop
5419405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5420405c8079Smrgfi
5421138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5422405c8079Smrgfi
5423138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5424138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5425405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5426405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5427405c8079Smrgfi
5428405c8079Smrg
5429405c8079Smrgfound="no"
5430405c8079Smrg
5431405c8079Smrg	if test $found = "no" ; then
543280f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5433405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5434405c8079Smrg		fi
5435405c8079Smrg
543680f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5437405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5438405c8079Smrg		fi
5439405c8079Smrg
5440405c8079Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
5441405c8079Smrg
5442138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5443138a9f8aSmrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5444405c8079Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5445138a9f8aSmrg		if eval test \${$cacheid+y}
5446138a9f8aSmrgthen :
5447138a9f8aSmrg  printf %s "(cached) " >&6
5448138a9f8aSmrgelse $as_nop
5449405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450405c8079Smrg/* end confdefs.h.  */
5451405c8079Smrgint i;
5452405c8079Smrgint
5453138a9f8aSmrgmain (void)
5454405c8079Smrg{
5455405c8079Smrg
5456405c8079Smrg  ;
5457405c8079Smrg  return 0;
5458405c8079Smrg}
5459405c8079Smrg_ACEOF
5460138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
5461138a9f8aSmrgthen :
5462405c8079Smrg  eval $cacheid=yes
5463138a9f8aSmrgelse $as_nop
5464405c8079Smrg  eval $cacheid=no
5465405c8079Smrgfi
5466138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5467405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
5468405c8079Smrgfi
5469405c8079Smrg
5470405c8079Smrg
5471405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5472405c8079Smrg
5473405c8079Smrg		eval supported=\$$cacheid
5474138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5475138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
5476405c8079Smrg		if test "$supported" = "yes" ; then
5477405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5478405c8079Smrg			found="yes"
5479405c8079Smrg		fi
5480405c8079Smrg	fi
5481405c8079Smrg
5482405c8079Smrg
5483405c8079Smrg
5484405c8079Smrg
5485405c8079Smrg
5486405c8079Smrg
5487405c8079Smrg
5488405c8079Smrg
5489405c8079Smrg
5490405c8079Smrg
5491405c8079Smrg
5492405c8079Smrg
5493405c8079Smrg
5494405c8079Smrg
5495405c8079Smrg
5496405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5497405c8079Smrg
5498405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5499405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5500138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5501138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5502138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5503138a9f8aSmrgthen :
5504138a9f8aSmrg  printf %s "(cached) " >&6
5505138a9f8aSmrgelse $as_nop
5506405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507405c8079Smrg/* end confdefs.h.  */
5508405c8079Smrgint i;
5509405c8079Smrg_ACEOF
5510138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
5511138a9f8aSmrgthen :
5512405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5513138a9f8aSmrgelse $as_nop
5514405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5515405c8079Smrgfi
5516138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5517405c8079Smrgfi
5518138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5519138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5520405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5521405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5522405c8079Smrgfi
5523405c8079Smrg
5524405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5525405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5526405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5527405c8079Smrg	fi
5528405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5529138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5530138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5531138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5532138a9f8aSmrgthen :
5533138a9f8aSmrg  printf %s "(cached) " >&6
5534138a9f8aSmrgelse $as_nop
5535405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536405c8079Smrg/* end confdefs.h.  */
5537405c8079Smrgint i;
5538405c8079Smrg_ACEOF
5539138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
5540138a9f8aSmrgthen :
5541405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5542138a9f8aSmrgelse $as_nop
5543405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5544405c8079Smrgfi
5545138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5546405c8079Smrgfi
5547138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5548138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5549405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5550405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5551405c8079Smrgfi
5552405c8079Smrg
5553405c8079Smrgfound="no"
5554405c8079Smrg
5555405c8079Smrg	if test $found = "no" ; then
555680f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5557405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5558405c8079Smrg		fi
5559405c8079Smrg
556080f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5561405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5562405c8079Smrg		fi
5563405c8079Smrg
5564405c8079Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
5565405c8079Smrg
5566138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5567138a9f8aSmrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5568405c8079Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5569138a9f8aSmrg		if eval test \${$cacheid+y}
5570138a9f8aSmrgthen :
5571138a9f8aSmrg  printf %s "(cached) " >&6
5572138a9f8aSmrgelse $as_nop
5573405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574405c8079Smrg/* end confdefs.h.  */
5575405c8079Smrgint i;
5576405c8079Smrgint
5577138a9f8aSmrgmain (void)
5578405c8079Smrg{
5579405c8079Smrg
5580405c8079Smrg  ;
5581405c8079Smrg  return 0;
5582405c8079Smrg}
5583405c8079Smrg_ACEOF
5584138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
5585138a9f8aSmrgthen :
5586405c8079Smrg  eval $cacheid=yes
5587138a9f8aSmrgelse $as_nop
5588405c8079Smrg  eval $cacheid=no
5589405c8079Smrgfi
5590138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5591405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
5592405c8079Smrgfi
5593405c8079Smrg
5594405c8079Smrg
5595405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5596405c8079Smrg
5597405c8079Smrg		eval supported=\$$cacheid
5598138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5599138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
5600405c8079Smrg		if test "$supported" = "yes" ; then
5601405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5602405c8079Smrg			found="yes"
5603405c8079Smrg		fi
5604405c8079Smrg	fi
5605405c8079Smrg
5606405c8079Smrg
5607405c8079Smrg
5608405c8079Smrg
5609405c8079Smrg
5610405c8079Smrg
5611405c8079Smrg
5612405c8079Smrg
5613405c8079Smrg
5614405c8079Smrg
5615405c8079Smrg
5616405c8079Smrg
5617405c8079Smrg
5618405c8079Smrg
5619405c8079Smrg
5620405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5621405c8079Smrg
5622405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5623405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5624138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5625138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5626138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5627138a9f8aSmrgthen :
5628138a9f8aSmrg  printf %s "(cached) " >&6
5629138a9f8aSmrgelse $as_nop
5630405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631405c8079Smrg/* end confdefs.h.  */
5632405c8079Smrgint i;
5633405c8079Smrg_ACEOF
5634138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
5635138a9f8aSmrgthen :
5636405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5637138a9f8aSmrgelse $as_nop
5638405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5639405c8079Smrgfi
5640138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5641405c8079Smrgfi
5642138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5643138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5644405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5645405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5646405c8079Smrgfi
5647405c8079Smrg
5648405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5649405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5650405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5651405c8079Smrg	fi
5652405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5653138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5654138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5655138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5656138a9f8aSmrgthen :
5657138a9f8aSmrg  printf %s "(cached) " >&6
5658138a9f8aSmrgelse $as_nop
5659405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660405c8079Smrg/* end confdefs.h.  */
5661405c8079Smrgint i;
5662405c8079Smrg_ACEOF
5663138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
5664138a9f8aSmrgthen :
5665405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5666138a9f8aSmrgelse $as_nop
5667405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5668405c8079Smrgfi
5669138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5670405c8079Smrgfi
5671138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5672138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5673405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5674405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5675405c8079Smrgfi
5676405c8079Smrg
5677405c8079Smrgfound="no"
5678405c8079Smrg
5679405c8079Smrg	if test $found = "no" ; then
568080f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5681405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5682405c8079Smrg		fi
5683405c8079Smrg
568480f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5685405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5686405c8079Smrg		fi
5687405c8079Smrg
5688405c8079Smrg		CFLAGS="$CFLAGS -Wnested-externs"
5689405c8079Smrg
5690138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5691138a9f8aSmrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; }
5692405c8079Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
5693138a9f8aSmrg		if eval test \${$cacheid+y}
5694138a9f8aSmrgthen :
5695138a9f8aSmrg  printf %s "(cached) " >&6
5696138a9f8aSmrgelse $as_nop
5697405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698405c8079Smrg/* end confdefs.h.  */
5699405c8079Smrgint i;
5700405c8079Smrgint
5701138a9f8aSmrgmain (void)
5702405c8079Smrg{
5703405c8079Smrg
5704405c8079Smrg  ;
5705405c8079Smrg  return 0;
5706405c8079Smrg}
5707405c8079Smrg_ACEOF
5708138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
5709138a9f8aSmrgthen :
5710405c8079Smrg  eval $cacheid=yes
5711138a9f8aSmrgelse $as_nop
5712405c8079Smrg  eval $cacheid=no
5713405c8079Smrgfi
5714138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5715405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
5716405c8079Smrgfi
5717405c8079Smrg
5718405c8079Smrg
5719405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5720405c8079Smrg
5721405c8079Smrg		eval supported=\$$cacheid
5722138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5723138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
5724405c8079Smrg		if test "$supported" = "yes" ; then
5725405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5726405c8079Smrg			found="yes"
5727405c8079Smrg		fi
5728405c8079Smrg	fi
5729405c8079Smrg
5730405c8079Smrg
5731405c8079Smrg
5732405c8079Smrg
5733405c8079Smrg
5734405c8079Smrg
5735405c8079Smrg
5736405c8079Smrg
5737405c8079Smrg
5738405c8079Smrg
5739405c8079Smrg
5740405c8079Smrg
5741405c8079Smrg
5742405c8079Smrg
5743405c8079Smrg
5744405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5745405c8079Smrg
5746405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5747405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5748138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5749138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5750138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5751138a9f8aSmrgthen :
5752138a9f8aSmrg  printf %s "(cached) " >&6
5753138a9f8aSmrgelse $as_nop
5754405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755405c8079Smrg/* end confdefs.h.  */
5756405c8079Smrgint i;
5757405c8079Smrg_ACEOF
5758138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
5759138a9f8aSmrgthen :
5760405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5761138a9f8aSmrgelse $as_nop
5762405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5763405c8079Smrgfi
5764138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5765405c8079Smrgfi
5766138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5767138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5768405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5769405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5770405c8079Smrgfi
5771405c8079Smrg
5772405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5773405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5774405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5775405c8079Smrg	fi
5776405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5777138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5778138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5779138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5780138a9f8aSmrgthen :
5781138a9f8aSmrg  printf %s "(cached) " >&6
5782138a9f8aSmrgelse $as_nop
5783405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784405c8079Smrg/* end confdefs.h.  */
5785405c8079Smrgint i;
5786405c8079Smrg_ACEOF
5787138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
5788138a9f8aSmrgthen :
5789405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5790138a9f8aSmrgelse $as_nop
5791405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5792405c8079Smrgfi
5793138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5794405c8079Smrgfi
5795138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5796138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5797405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5798405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5799405c8079Smrgfi
5800405c8079Smrg
5801405c8079Smrgfound="no"
5802405c8079Smrg
5803405c8079Smrg	if test $found = "no" ; then
580480f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5805405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5806405c8079Smrg		fi
5807405c8079Smrg
580880f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5809405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5810405c8079Smrg		fi
5811405c8079Smrg
5812405c8079Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
5813405c8079Smrg
5814138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5815138a9f8aSmrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5816405c8079Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5817138a9f8aSmrg		if eval test \${$cacheid+y}
5818138a9f8aSmrgthen :
5819138a9f8aSmrg  printf %s "(cached) " >&6
5820138a9f8aSmrgelse $as_nop
5821405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822405c8079Smrg/* end confdefs.h.  */
5823405c8079Smrgint i;
5824405c8079Smrgint
5825138a9f8aSmrgmain (void)
5826405c8079Smrg{
5827405c8079Smrg
5828405c8079Smrg  ;
5829405c8079Smrg  return 0;
5830405c8079Smrg}
5831405c8079Smrg_ACEOF
5832138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
5833138a9f8aSmrgthen :
5834405c8079Smrg  eval $cacheid=yes
5835138a9f8aSmrgelse $as_nop
5836405c8079Smrg  eval $cacheid=no
5837405c8079Smrgfi
5838138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5839405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
5840405c8079Smrgfi
5841405c8079Smrg
5842405c8079Smrg
5843405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5844405c8079Smrg
5845405c8079Smrg		eval supported=\$$cacheid
5846138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5847138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
5848405c8079Smrg		if test "$supported" = "yes" ; then
5849405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5850405c8079Smrg			found="yes"
5851405c8079Smrg		fi
5852405c8079Smrg	fi
5853405c8079Smrg
5854405c8079Smrg
5855405c8079Smrg
5856405c8079Smrg
5857405c8079Smrg
5858405c8079Smrg
5859405c8079Smrg
5860405c8079Smrg
5861405c8079Smrg
5862405c8079Smrg
5863405c8079Smrg
5864405c8079Smrg
5865405c8079Smrg
5866405c8079Smrg
5867405c8079Smrg
5868405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5869405c8079Smrg
5870405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5871405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5872138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5873138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5874138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5875138a9f8aSmrgthen :
5876138a9f8aSmrg  printf %s "(cached) " >&6
5877138a9f8aSmrgelse $as_nop
5878405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879405c8079Smrg/* end confdefs.h.  */
5880405c8079Smrgint i;
5881405c8079Smrg_ACEOF
5882138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
5883138a9f8aSmrgthen :
5884405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5885138a9f8aSmrgelse $as_nop
5886405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5887405c8079Smrgfi
5888138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5889405c8079Smrgfi
5890138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5891138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5892405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5893405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5894405c8079Smrgfi
5895405c8079Smrg
5896405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5897405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5898405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5899405c8079Smrg	fi
5900405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5901138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5902138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5903138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5904138a9f8aSmrgthen :
5905138a9f8aSmrg  printf %s "(cached) " >&6
5906138a9f8aSmrgelse $as_nop
5907405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908405c8079Smrg/* end confdefs.h.  */
5909405c8079Smrgint i;
5910405c8079Smrg_ACEOF
5911138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
5912138a9f8aSmrgthen :
5913405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5914138a9f8aSmrgelse $as_nop
5915405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5916405c8079Smrgfi
5917138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5918405c8079Smrgfi
5919138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5920138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5921405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5922405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5923405c8079Smrgfi
5924405c8079Smrg
5925405c8079Smrgfound="no"
5926405c8079Smrg
5927405c8079Smrg	if test $found = "no" ; then
592880f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5929405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5930405c8079Smrg		fi
5931405c8079Smrg
593280f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5933405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5934405c8079Smrg		fi
5935405c8079Smrg
5936405c8079Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
5937405c8079Smrg
5938138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5939138a9f8aSmrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5940405c8079Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
5941138a9f8aSmrg		if eval test \${$cacheid+y}
5942138a9f8aSmrgthen :
5943138a9f8aSmrg  printf %s "(cached) " >&6
5944138a9f8aSmrgelse $as_nop
5945405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946405c8079Smrg/* end confdefs.h.  */
5947405c8079Smrgint i;
5948405c8079Smrgint
5949138a9f8aSmrgmain (void)
5950405c8079Smrg{
5951405c8079Smrg
5952405c8079Smrg  ;
5953405c8079Smrg  return 0;
5954405c8079Smrg}
5955405c8079Smrg_ACEOF
5956138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
5957138a9f8aSmrgthen :
5958405c8079Smrg  eval $cacheid=yes
5959138a9f8aSmrgelse $as_nop
5960405c8079Smrg  eval $cacheid=no
5961405c8079Smrgfi
5962138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5963405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
5964405c8079Smrgfi
5965405c8079Smrg
5966405c8079Smrg
5967405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5968405c8079Smrg
5969405c8079Smrg		eval supported=\$$cacheid
5970138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5971138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
5972405c8079Smrg		if test "$supported" = "yes" ; then
5973405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5974405c8079Smrg			found="yes"
5975405c8079Smrg		fi
5976405c8079Smrg	fi
5977405c8079Smrg
597880f56f3aSmrg	if test $found = "no" ; then
597980f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
598080f56f3aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
598180f56f3aSmrg		fi
598280f56f3aSmrg
598380f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
598480f56f3aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
598580f56f3aSmrg		fi
598680f56f3aSmrg
598780f56f3aSmrg		CFLAGS="$CFLAGS -fd"
598880f56f3aSmrg
5989138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5990138a9f8aSmrgprintf %s "checking if $CC supports -fd... " >&6; }
599180f56f3aSmrg		cacheid=xorg_cv_cc_flag__fd
5992138a9f8aSmrg		if eval test \${$cacheid+y}
5993138a9f8aSmrgthen :
5994138a9f8aSmrg  printf %s "(cached) " >&6
5995138a9f8aSmrgelse $as_nop
599680f56f3aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
599780f56f3aSmrg/* end confdefs.h.  */
599880f56f3aSmrgint i;
599980f56f3aSmrgint
6000138a9f8aSmrgmain (void)
600180f56f3aSmrg{
600280f56f3aSmrg
600380f56f3aSmrg  ;
600480f56f3aSmrg  return 0;
600580f56f3aSmrg}
600680f56f3aSmrg_ACEOF
6007138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
6008138a9f8aSmrgthen :
600980f56f3aSmrg  eval $cacheid=yes
6010138a9f8aSmrgelse $as_nop
601180f56f3aSmrg  eval $cacheid=no
601280f56f3aSmrgfi
6013138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
601480f56f3aSmrg    conftest$ac_exeext conftest.$ac_ext
601580f56f3aSmrgfi
601680f56f3aSmrg
601780f56f3aSmrg
601880f56f3aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
601980f56f3aSmrg
602080f56f3aSmrg		eval supported=\$$cacheid
6021138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6022138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
602380f56f3aSmrg		if test "$supported" = "yes" ; then
602480f56f3aSmrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
602580f56f3aSmrg			found="yes"
602680f56f3aSmrg		fi
602780f56f3aSmrg	fi
602880f56f3aSmrg
6029405c8079Smrg
6030405c8079Smrg
6031405c8079Smrg
6032405c8079Smrg
6033405c8079Smrg
6034405c8079Smrg
6035405c8079Smrg
6036405c8079Smrg
6037405c8079Smrg
6038405c8079Smrg
6039405c8079Smrg
6040405c8079Smrg
6041405c8079Smrg
6042405c8079Smrg
6043405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6044405c8079Smrg
6045405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6046405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6047138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6048138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6049138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6050138a9f8aSmrgthen :
6051138a9f8aSmrg  printf %s "(cached) " >&6
6052138a9f8aSmrgelse $as_nop
6053405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054405c8079Smrg/* end confdefs.h.  */
6055405c8079Smrgint i;
6056405c8079Smrg_ACEOF
6057138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
6058138a9f8aSmrgthen :
6059405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6060138a9f8aSmrgelse $as_nop
6061405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6062405c8079Smrgfi
6063138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6064405c8079Smrgfi
6065138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6066138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6067405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6068405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6069405c8079Smrgfi
6070405c8079Smrg
6071405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6072405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6073405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6074405c8079Smrg	fi
6075405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6076138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6077138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6078138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6079138a9f8aSmrgthen :
6080138a9f8aSmrg  printf %s "(cached) " >&6
6081138a9f8aSmrgelse $as_nop
6082405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083405c8079Smrg/* end confdefs.h.  */
6084405c8079Smrgint i;
6085405c8079Smrg_ACEOF
6086138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
6087138a9f8aSmrgthen :
6088405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6089138a9f8aSmrgelse $as_nop
6090405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6091405c8079Smrgfi
6092138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6093405c8079Smrgfi
6094138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6095138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6096405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6097405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6098405c8079Smrgfi
6099405c8079Smrg
6100405c8079Smrgfound="no"
6101405c8079Smrg
6102405c8079Smrg	if test $found = "no" ; then
610380f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6104405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6105405c8079Smrg		fi
6106405c8079Smrg
610780f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6108405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6109405c8079Smrg		fi
6110405c8079Smrg
6111405c8079Smrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6112405c8079Smrg
6113138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6114138a9f8aSmrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6115405c8079Smrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6116138a9f8aSmrg		if eval test \${$cacheid+y}
6117138a9f8aSmrgthen :
6118138a9f8aSmrg  printf %s "(cached) " >&6
6119138a9f8aSmrgelse $as_nop
6120405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121405c8079Smrg/* end confdefs.h.  */
6122405c8079Smrgint i;
6123405c8079Smrgint
6124138a9f8aSmrgmain (void)
6125405c8079Smrg{
6126405c8079Smrg
6127405c8079Smrg  ;
6128405c8079Smrg  return 0;
6129405c8079Smrg}
6130405c8079Smrg_ACEOF
6131138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
6132138a9f8aSmrgthen :
6133405c8079Smrg  eval $cacheid=yes
6134138a9f8aSmrgelse $as_nop
6135405c8079Smrg  eval $cacheid=no
6136405c8079Smrgfi
6137138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6138405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
6139405c8079Smrgfi
6140405c8079Smrg
6141405c8079Smrg
6142405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6143405c8079Smrg
6144405c8079Smrg		eval supported=\$$cacheid
6145138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6146138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
6147405c8079Smrg		if test "$supported" = "yes" ; then
6148405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6149405c8079Smrg			found="yes"
6150405c8079Smrg		fi
6151405c8079Smrg	fi
6152405c8079Smrg
6153405c8079Smrg
6154405c8079Smrg
6155405c8079Smrg
6156405c8079Smrg
6157405c8079Smrg# This chunk adds additional warnings that could catch undesired effects.
6158405c8079Smrg
6159405c8079Smrg
6160405c8079Smrg
6161405c8079Smrg
6162405c8079Smrg
6163405c8079Smrg
6164405c8079Smrg
6165405c8079Smrg
6166405c8079Smrg
6167405c8079Smrg
6168405c8079Smrg
6169405c8079Smrg
6170405c8079Smrg
6171405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6172405c8079Smrg
6173405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6174405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6175138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6176138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6177138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6178138a9f8aSmrgthen :
6179138a9f8aSmrg  printf %s "(cached) " >&6
6180138a9f8aSmrgelse $as_nop
6181405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182405c8079Smrg/* end confdefs.h.  */
6183405c8079Smrgint i;
6184405c8079Smrg_ACEOF
6185138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
6186138a9f8aSmrgthen :
6187405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6188138a9f8aSmrgelse $as_nop
6189405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6190405c8079Smrgfi
6191138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6192405c8079Smrgfi
6193138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6194138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6195405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6196405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6197405c8079Smrgfi
6198405c8079Smrg
6199405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6200405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6201405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6202405c8079Smrg	fi
6203405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6204138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6205138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6206138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6207138a9f8aSmrgthen :
6208138a9f8aSmrg  printf %s "(cached) " >&6
6209138a9f8aSmrgelse $as_nop
6210405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211405c8079Smrg/* end confdefs.h.  */
6212405c8079Smrgint i;
6213405c8079Smrg_ACEOF
6214138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
6215138a9f8aSmrgthen :
6216405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6217138a9f8aSmrgelse $as_nop
6218405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6219405c8079Smrgfi
6220138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6221405c8079Smrgfi
6222138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6223138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6224405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6225405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6226405c8079Smrgfi
6227405c8079Smrg
6228405c8079Smrgfound="no"
6229405c8079Smrg
6230405c8079Smrg	if test $found = "no" ; then
623180f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6232405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6233405c8079Smrg		fi
6234405c8079Smrg
623580f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6236405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6237405c8079Smrg		fi
6238405c8079Smrg
6239405c8079Smrg		CFLAGS="$CFLAGS -Wunused"
6240405c8079Smrg
6241138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6242138a9f8aSmrgprintf %s "checking if $CC supports -Wunused... " >&6; }
6243405c8079Smrg		cacheid=xorg_cv_cc_flag__Wunused
6244138a9f8aSmrg		if eval test \${$cacheid+y}
6245138a9f8aSmrgthen :
6246138a9f8aSmrg  printf %s "(cached) " >&6
6247138a9f8aSmrgelse $as_nop
6248405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249405c8079Smrg/* end confdefs.h.  */
6250405c8079Smrgint i;
6251405c8079Smrgint
6252138a9f8aSmrgmain (void)
6253405c8079Smrg{
6254405c8079Smrg
6255405c8079Smrg  ;
6256405c8079Smrg  return 0;
6257405c8079Smrg}
6258405c8079Smrg_ACEOF
6259138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
6260138a9f8aSmrgthen :
6261405c8079Smrg  eval $cacheid=yes
6262138a9f8aSmrgelse $as_nop
6263405c8079Smrg  eval $cacheid=no
6264405c8079Smrgfi
6265138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6266405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
6267405c8079Smrgfi
6268405c8079Smrg
6269405c8079Smrg
6270405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6271405c8079Smrg
6272405c8079Smrg		eval supported=\$$cacheid
6273138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6274138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
6275405c8079Smrg		if test "$supported" = "yes" ; then
6276405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6277405c8079Smrg			found="yes"
6278405c8079Smrg		fi
6279405c8079Smrg	fi
6280405c8079Smrg
6281405c8079Smrg
6282405c8079Smrg
6283405c8079Smrg
6284405c8079Smrg
6285405c8079Smrg
6286405c8079Smrg
6287405c8079Smrg
6288405c8079Smrg
6289405c8079Smrg
6290405c8079Smrg
6291405c8079Smrg
6292405c8079Smrg
6293405c8079Smrg
6294405c8079Smrg
6295405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6296405c8079Smrg
6297405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6298405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6299138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6300138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6301138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6302138a9f8aSmrgthen :
6303138a9f8aSmrg  printf %s "(cached) " >&6
6304138a9f8aSmrgelse $as_nop
6305405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306405c8079Smrg/* end confdefs.h.  */
6307405c8079Smrgint i;
6308405c8079Smrg_ACEOF
6309138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
6310138a9f8aSmrgthen :
6311405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6312138a9f8aSmrgelse $as_nop
6313405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6314405c8079Smrgfi
6315138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6316405c8079Smrgfi
6317138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6318138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6319405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6320405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6321405c8079Smrgfi
6322405c8079Smrg
6323405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6324405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6325405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6326405c8079Smrg	fi
6327405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6328138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6329138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6330138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6331138a9f8aSmrgthen :
6332138a9f8aSmrg  printf %s "(cached) " >&6
6333138a9f8aSmrgelse $as_nop
6334405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335405c8079Smrg/* end confdefs.h.  */
6336405c8079Smrgint i;
6337405c8079Smrg_ACEOF
6338138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
6339138a9f8aSmrgthen :
6340405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6341138a9f8aSmrgelse $as_nop
6342405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6343405c8079Smrgfi
6344138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6345405c8079Smrgfi
6346138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6347138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6348405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6349405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6350405c8079Smrgfi
6351405c8079Smrg
6352405c8079Smrgfound="no"
6353405c8079Smrg
6354405c8079Smrg	if test $found = "no" ; then
635580f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6356405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6357405c8079Smrg		fi
6358405c8079Smrg
635980f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6360405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6361405c8079Smrg		fi
6362405c8079Smrg
6363405c8079Smrg		CFLAGS="$CFLAGS -Wuninitialized"
6364405c8079Smrg
6365138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6366138a9f8aSmrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; }
6367405c8079Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
6368138a9f8aSmrg		if eval test \${$cacheid+y}
6369138a9f8aSmrgthen :
6370138a9f8aSmrg  printf %s "(cached) " >&6
6371138a9f8aSmrgelse $as_nop
6372405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373405c8079Smrg/* end confdefs.h.  */
6374405c8079Smrgint i;
6375405c8079Smrgint
6376138a9f8aSmrgmain (void)
6377405c8079Smrg{
6378405c8079Smrg
6379405c8079Smrg  ;
6380405c8079Smrg  return 0;
6381405c8079Smrg}
6382405c8079Smrg_ACEOF
6383138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
6384138a9f8aSmrgthen :
6385405c8079Smrg  eval $cacheid=yes
6386138a9f8aSmrgelse $as_nop
6387405c8079Smrg  eval $cacheid=no
6388405c8079Smrgfi
6389138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6390405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
6391405c8079Smrgfi
6392405c8079Smrg
6393405c8079Smrg
6394405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6395405c8079Smrg
6396405c8079Smrg		eval supported=\$$cacheid
6397138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6398138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
6399405c8079Smrg		if test "$supported" = "yes" ; then
6400405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6401405c8079Smrg			found="yes"
6402405c8079Smrg		fi
6403405c8079Smrg	fi
6404405c8079Smrg
6405405c8079Smrg
6406405c8079Smrg
6407405c8079Smrg
6408405c8079Smrg
6409405c8079Smrg
6410405c8079Smrg
6411405c8079Smrg
6412405c8079Smrg
6413405c8079Smrg
6414405c8079Smrg
6415405c8079Smrg
6416405c8079Smrg
6417405c8079Smrg
6418405c8079Smrg
6419405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6420405c8079Smrg
6421405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6422405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6423138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6424138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6425138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6426138a9f8aSmrgthen :
6427138a9f8aSmrg  printf %s "(cached) " >&6
6428138a9f8aSmrgelse $as_nop
6429405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430405c8079Smrg/* end confdefs.h.  */
6431405c8079Smrgint i;
6432405c8079Smrg_ACEOF
6433138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
6434138a9f8aSmrgthen :
6435405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6436138a9f8aSmrgelse $as_nop
6437405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6438405c8079Smrgfi
6439138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6440405c8079Smrgfi
6441138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6442138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6443405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6444405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6445405c8079Smrgfi
6446405c8079Smrg
6447405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6448405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6449405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6450405c8079Smrg	fi
6451405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6452138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6453138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6454138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6455138a9f8aSmrgthen :
6456138a9f8aSmrg  printf %s "(cached) " >&6
6457138a9f8aSmrgelse $as_nop
6458405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459405c8079Smrg/* end confdefs.h.  */
6460405c8079Smrgint i;
6461405c8079Smrg_ACEOF
6462138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
6463138a9f8aSmrgthen :
6464405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6465138a9f8aSmrgelse $as_nop
6466405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6467405c8079Smrgfi
6468138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6469405c8079Smrgfi
6470138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6471138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6472405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6473405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6474405c8079Smrgfi
6475405c8079Smrg
6476405c8079Smrgfound="no"
6477405c8079Smrg
6478405c8079Smrg	if test $found = "no" ; then
647980f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6480405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6481405c8079Smrg		fi
6482405c8079Smrg
648380f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6484405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6485405c8079Smrg		fi
6486405c8079Smrg
6487405c8079Smrg		CFLAGS="$CFLAGS -Wshadow"
6488405c8079Smrg
6489138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6490138a9f8aSmrgprintf %s "checking if $CC supports -Wshadow... " >&6; }
6491405c8079Smrg		cacheid=xorg_cv_cc_flag__Wshadow
6492138a9f8aSmrg		if eval test \${$cacheid+y}
6493138a9f8aSmrgthen :
6494138a9f8aSmrg  printf %s "(cached) " >&6
6495138a9f8aSmrgelse $as_nop
6496405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497405c8079Smrg/* end confdefs.h.  */
6498405c8079Smrgint i;
6499405c8079Smrgint
6500138a9f8aSmrgmain (void)
6501405c8079Smrg{
6502405c8079Smrg
6503405c8079Smrg  ;
6504405c8079Smrg  return 0;
6505405c8079Smrg}
6506405c8079Smrg_ACEOF
6507138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
6508138a9f8aSmrgthen :
6509405c8079Smrg  eval $cacheid=yes
6510138a9f8aSmrgelse $as_nop
6511405c8079Smrg  eval $cacheid=no
6512405c8079Smrgfi
6513138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6514405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
6515405c8079Smrgfi
6516405c8079Smrg
6517405c8079Smrg
6518405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6519405c8079Smrg
6520405c8079Smrg		eval supported=\$$cacheid
6521138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6522138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
6523405c8079Smrg		if test "$supported" = "yes" ; then
6524405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6525405c8079Smrg			found="yes"
6526405c8079Smrg		fi
6527405c8079Smrg	fi
6528405c8079Smrg
6529405c8079Smrg
6530405c8079Smrg
6531405c8079Smrg
6532405c8079Smrg
6533405c8079Smrg
6534405c8079Smrg
6535405c8079Smrg
6536405c8079Smrg
6537405c8079Smrg
6538405c8079Smrg
6539405c8079Smrg
6540405c8079Smrg
6541405c8079Smrg
6542405c8079Smrg
6543405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6544405c8079Smrg
6545405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6546405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6547138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6548138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6549138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6550138a9f8aSmrgthen :
6551138a9f8aSmrg  printf %s "(cached) " >&6
6552138a9f8aSmrgelse $as_nop
6553405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554405c8079Smrg/* end confdefs.h.  */
6555405c8079Smrgint i;
6556405c8079Smrg_ACEOF
6557138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
6558138a9f8aSmrgthen :
6559405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6560138a9f8aSmrgelse $as_nop
6561405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6562405c8079Smrgfi
6563138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6564405c8079Smrgfi
6565138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6566138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6567405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6568405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6569405c8079Smrgfi
6570405c8079Smrg
6571405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6572405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6573405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6574405c8079Smrg	fi
6575405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6576138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6577138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6578138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6579138a9f8aSmrgthen :
6580138a9f8aSmrg  printf %s "(cached) " >&6
6581138a9f8aSmrgelse $as_nop
6582405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583405c8079Smrg/* end confdefs.h.  */
6584405c8079Smrgint i;
6585405c8079Smrg_ACEOF
6586138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
6587138a9f8aSmrgthen :
6588405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6589138a9f8aSmrgelse $as_nop
6590405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6591405c8079Smrgfi
6592138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6593405c8079Smrgfi
6594138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6595138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6596405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6597405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6598405c8079Smrgfi
6599405c8079Smrg
6600405c8079Smrgfound="no"
6601405c8079Smrg
6602405c8079Smrg	if test $found = "no" ; then
660380f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6604405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6605405c8079Smrg		fi
6606405c8079Smrg
660780f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6608405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6609405c8079Smrg		fi
6610405c8079Smrg
661180f56f3aSmrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
6612405c8079Smrg
6613138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6614138a9f8aSmrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
661580f56f3aSmrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6616138a9f8aSmrg		if eval test \${$cacheid+y}
6617138a9f8aSmrgthen :
6618138a9f8aSmrg  printf %s "(cached) " >&6
6619138a9f8aSmrgelse $as_nop
6620405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621405c8079Smrg/* end confdefs.h.  */
6622405c8079Smrgint i;
6623405c8079Smrgint
6624138a9f8aSmrgmain (void)
6625405c8079Smrg{
6626405c8079Smrg
6627405c8079Smrg  ;
6628405c8079Smrg  return 0;
6629405c8079Smrg}
6630405c8079Smrg_ACEOF
6631138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
6632138a9f8aSmrgthen :
6633405c8079Smrg  eval $cacheid=yes
6634138a9f8aSmrgelse $as_nop
6635405c8079Smrg  eval $cacheid=no
6636405c8079Smrgfi
6637138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6638405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
6639405c8079Smrgfi
6640405c8079Smrg
6641405c8079Smrg
6642405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6643405c8079Smrg
6644405c8079Smrg		eval supported=\$$cacheid
6645138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6646138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
6647405c8079Smrg		if test "$supported" = "yes" ; then
664880f56f3aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6649405c8079Smrg			found="yes"
6650405c8079Smrg		fi
6651405c8079Smrg	fi
6652405c8079Smrg
6653405c8079Smrg
6654405c8079Smrg
6655405c8079Smrg
6656405c8079Smrg
6657405c8079Smrg
6658405c8079Smrg
6659405c8079Smrg
6660405c8079Smrg
6661405c8079Smrg
6662405c8079Smrg
6663405c8079Smrg
6664405c8079Smrg
6665405c8079Smrg
6666405c8079Smrg
6667405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6668405c8079Smrg
6669405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6670405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6671138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6672138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6673138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6674138a9f8aSmrgthen :
6675138a9f8aSmrg  printf %s "(cached) " >&6
6676138a9f8aSmrgelse $as_nop
6677405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678405c8079Smrg/* end confdefs.h.  */
6679405c8079Smrgint i;
6680405c8079Smrg_ACEOF
6681138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
6682138a9f8aSmrgthen :
6683405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6684138a9f8aSmrgelse $as_nop
6685405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6686405c8079Smrgfi
6687138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6688405c8079Smrgfi
6689138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6690138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6691405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6692405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6693405c8079Smrgfi
6694405c8079Smrg
6695405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6696405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6697405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6698405c8079Smrg	fi
6699405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6700138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6701138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6702138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6703138a9f8aSmrgthen :
6704138a9f8aSmrg  printf %s "(cached) " >&6
6705138a9f8aSmrgelse $as_nop
6706405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707405c8079Smrg/* end confdefs.h.  */
6708405c8079Smrgint i;
6709405c8079Smrg_ACEOF
6710138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
6711138a9f8aSmrgthen :
6712405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6713138a9f8aSmrgelse $as_nop
6714405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6715405c8079Smrgfi
6716138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6717405c8079Smrgfi
6718138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6719138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6720405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6721405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6722405c8079Smrgfi
6723405c8079Smrg
6724405c8079Smrgfound="no"
6725405c8079Smrg
6726405c8079Smrg	if test $found = "no" ; then
672780f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6728405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6729405c8079Smrg		fi
6730405c8079Smrg
673180f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6732405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6733405c8079Smrg		fi
6734405c8079Smrg
673580f56f3aSmrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6736405c8079Smrg
6737138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6738138a9f8aSmrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
673980f56f3aSmrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6740138a9f8aSmrg		if eval test \${$cacheid+y}
6741138a9f8aSmrgthen :
6742138a9f8aSmrg  printf %s "(cached) " >&6
6743138a9f8aSmrgelse $as_nop
6744405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745405c8079Smrg/* end confdefs.h.  */
6746405c8079Smrgint i;
6747405c8079Smrgint
6748138a9f8aSmrgmain (void)
6749405c8079Smrg{
6750405c8079Smrg
6751405c8079Smrg  ;
6752405c8079Smrg  return 0;
6753405c8079Smrg}
6754405c8079Smrg_ACEOF
6755138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
6756138a9f8aSmrgthen :
6757405c8079Smrg  eval $cacheid=yes
6758138a9f8aSmrgelse $as_nop
6759405c8079Smrg  eval $cacheid=no
6760405c8079Smrgfi
6761138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6762405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
6763405c8079Smrgfi
6764405c8079Smrg
6765405c8079Smrg
6766405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6767405c8079Smrg
6768405c8079Smrg		eval supported=\$$cacheid
6769138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6770138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
6771405c8079Smrg		if test "$supported" = "yes" ; then
677280f56f3aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6773405c8079Smrg			found="yes"
6774405c8079Smrg		fi
6775405c8079Smrg	fi
6776405c8079Smrg
6777405c8079Smrg
6778405c8079Smrg
6779405c8079Smrg
6780405c8079Smrg
6781405c8079Smrg
6782405c8079Smrg
6783405c8079Smrg
6784405c8079Smrg
6785405c8079Smrg
6786405c8079Smrg
6787405c8079Smrg
6788405c8079Smrg
6789405c8079Smrg
6790405c8079Smrg
6791405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6792405c8079Smrg
6793405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6794405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6795138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6796138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6797138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6798138a9f8aSmrgthen :
6799138a9f8aSmrg  printf %s "(cached) " >&6
6800138a9f8aSmrgelse $as_nop
6801405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802405c8079Smrg/* end confdefs.h.  */
6803405c8079Smrgint i;
6804405c8079Smrg_ACEOF
6805138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
6806138a9f8aSmrgthen :
6807405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6808138a9f8aSmrgelse $as_nop
6809405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6810405c8079Smrgfi
6811138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6812405c8079Smrgfi
6813138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6814138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6815405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6816405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6817405c8079Smrgfi
6818405c8079Smrg
6819405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6820405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6821405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6822405c8079Smrg	fi
6823405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6824138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6825138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6826138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6827138a9f8aSmrgthen :
6828138a9f8aSmrg  printf %s "(cached) " >&6
6829138a9f8aSmrgelse $as_nop
6830405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831405c8079Smrg/* end confdefs.h.  */
6832405c8079Smrgint i;
6833405c8079Smrg_ACEOF
6834138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
6835138a9f8aSmrgthen :
6836405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6837138a9f8aSmrgelse $as_nop
6838405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6839405c8079Smrgfi
6840138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6841405c8079Smrgfi
6842138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6843138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6844405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6845405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6846405c8079Smrgfi
6847405c8079Smrg
6848405c8079Smrgfound="no"
6849405c8079Smrg
6850405c8079Smrg	if test $found = "no" ; then
685180f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6852405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6853405c8079Smrg		fi
6854405c8079Smrg
685580f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6856405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6857405c8079Smrg		fi
6858405c8079Smrg
685980f56f3aSmrg		CFLAGS="$CFLAGS -Wredundant-decls"
6860405c8079Smrg
6861138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6862138a9f8aSmrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; }
686380f56f3aSmrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
6864138a9f8aSmrg		if eval test \${$cacheid+y}
6865138a9f8aSmrgthen :
6866138a9f8aSmrg  printf %s "(cached) " >&6
6867138a9f8aSmrgelse $as_nop
6868405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869405c8079Smrg/* end confdefs.h.  */
6870405c8079Smrgint i;
6871405c8079Smrgint
6872138a9f8aSmrgmain (void)
6873405c8079Smrg{
6874405c8079Smrg
6875405c8079Smrg  ;
6876405c8079Smrg  return 0;
6877405c8079Smrg}
6878405c8079Smrg_ACEOF
6879138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
6880138a9f8aSmrgthen :
6881405c8079Smrg  eval $cacheid=yes
6882138a9f8aSmrgelse $as_nop
6883405c8079Smrg  eval $cacheid=no
6884405c8079Smrgfi
6885138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6886405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
6887405c8079Smrgfi
6888405c8079Smrg
6889405c8079Smrg
6890405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6891405c8079Smrg
6892405c8079Smrg		eval supported=\$$cacheid
6893138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6894138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
6895405c8079Smrg		if test "$supported" = "yes" ; then
689680f56f3aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6897405c8079Smrg			found="yes"
6898405c8079Smrg		fi
6899405c8079Smrg	fi
6900405c8079Smrg
6901405c8079Smrg
6902405c8079Smrg
6903405c8079Smrg
6904405c8079Smrg
6905405c8079Smrg
6906405c8079Smrg
6907405c8079Smrg
6908405c8079Smrg
6909405c8079Smrg
6910405c8079Smrg
6911405c8079Smrg
6912405c8079Smrg
6913405c8079Smrg
6914405c8079Smrg
6915405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6916405c8079Smrg
6917405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6918405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6919138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6920138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6921138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6922138a9f8aSmrgthen :
6923138a9f8aSmrg  printf %s "(cached) " >&6
6924138a9f8aSmrgelse $as_nop
6925405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926405c8079Smrg/* end confdefs.h.  */
6927405c8079Smrgint i;
6928405c8079Smrg_ACEOF
6929138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
6930138a9f8aSmrgthen :
6931405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6932138a9f8aSmrgelse $as_nop
6933405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6934405c8079Smrgfi
6935138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6936405c8079Smrgfi
6937138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6938138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6939405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6940405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6941405c8079Smrgfi
6942405c8079Smrg
6943405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6944405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6945405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6946405c8079Smrg	fi
6947405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6948138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6949138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6950138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6951138a9f8aSmrgthen :
6952138a9f8aSmrg  printf %s "(cached) " >&6
6953138a9f8aSmrgelse $as_nop
6954405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955405c8079Smrg/* end confdefs.h.  */
6956405c8079Smrgint i;
6957405c8079Smrg_ACEOF
6958138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
6959138a9f8aSmrgthen :
6960405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6961138a9f8aSmrgelse $as_nop
6962405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6963405c8079Smrgfi
6964138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6965405c8079Smrgfi
6966138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6967138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6968405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6969405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6970405c8079Smrgfi
6971405c8079Smrg
6972405c8079Smrgfound="no"
6973405c8079Smrg
6974405c8079Smrg	if test $found = "no" ; then
697580f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6976405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6977405c8079Smrg		fi
6978405c8079Smrg
697980f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6980405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6981405c8079Smrg		fi
6982405c8079Smrg
698380f56f3aSmrg		CFLAGS="$CFLAGS -Wlogical-op"
6984405c8079Smrg
6985138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6986138a9f8aSmrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; }
698780f56f3aSmrg		cacheid=xorg_cv_cc_flag__Wlogical_op
6988138a9f8aSmrg		if eval test \${$cacheid+y}
6989138a9f8aSmrgthen :
6990138a9f8aSmrg  printf %s "(cached) " >&6
6991138a9f8aSmrgelse $as_nop
6992405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993405c8079Smrg/* end confdefs.h.  */
6994405c8079Smrgint i;
6995405c8079Smrgint
6996138a9f8aSmrgmain (void)
6997405c8079Smrg{
6998405c8079Smrg
6999405c8079Smrg  ;
7000405c8079Smrg  return 0;
7001405c8079Smrg}
7002405c8079Smrg_ACEOF
7003138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
7004138a9f8aSmrgthen :
7005405c8079Smrg  eval $cacheid=yes
7006138a9f8aSmrgelse $as_nop
7007405c8079Smrg  eval $cacheid=no
7008405c8079Smrgfi
7009138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7010405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
7011405c8079Smrgfi
7012405c8079Smrg
7013405c8079Smrg
7014405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7015405c8079Smrg
7016405c8079Smrg		eval supported=\$$cacheid
7017138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7018138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
7019405c8079Smrg		if test "$supported" = "yes" ; then
702080f56f3aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7021405c8079Smrg			found="yes"
7022405c8079Smrg		fi
7023405c8079Smrg	fi
7024405c8079Smrg
7025405c8079Smrg
7026405c8079Smrg
7027405c8079Smrg# These are currently disabled because they are noisy.  They will be enabled
7028405c8079Smrg# in the future once the codebase is sufficiently modernized to silence
7029405c8079Smrg# them.  For now, I don't want them to drown out the other warnings.
7030405c8079Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7031405c8079Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
703280f56f3aSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7033405c8079Smrg
7034405c8079Smrg# Turn some warnings into errors, so we don't accidently get successful builds
7035405c8079Smrg# when there are problems that should be fixed.
7036405c8079Smrg
7037405c8079Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
7038405c8079Smrg
7039405c8079Smrg
7040405c8079Smrg
7041405c8079Smrg
7042405c8079Smrg
7043405c8079Smrg
7044405c8079Smrg
7045405c8079Smrg
7046405c8079Smrg
7047405c8079Smrg
7048405c8079Smrg
7049405c8079Smrg
7050405c8079Smrg
7051405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7052405c8079Smrg
7053405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7054405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7055138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7056138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7057138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7058138a9f8aSmrgthen :
7059138a9f8aSmrg  printf %s "(cached) " >&6
7060138a9f8aSmrgelse $as_nop
7061405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062405c8079Smrg/* end confdefs.h.  */
7063405c8079Smrgint i;
7064405c8079Smrg_ACEOF
7065138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
7066138a9f8aSmrgthen :
7067405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7068138a9f8aSmrgelse $as_nop
7069405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7070405c8079Smrgfi
7071138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7072405c8079Smrgfi
7073138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7074138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7075405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7076405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7077405c8079Smrgfi
7078405c8079Smrg
7079405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7080405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7081405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7082405c8079Smrg	fi
7083405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7084138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7085138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7086138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7087138a9f8aSmrgthen :
7088138a9f8aSmrg  printf %s "(cached) " >&6
7089138a9f8aSmrgelse $as_nop
7090405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091405c8079Smrg/* end confdefs.h.  */
7092405c8079Smrgint i;
7093405c8079Smrg_ACEOF
7094138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
7095138a9f8aSmrgthen :
7096405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7097138a9f8aSmrgelse $as_nop
7098405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7099405c8079Smrgfi
7100138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7101405c8079Smrgfi
7102138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7103138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7104405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7105405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7106405c8079Smrgfi
7107405c8079Smrg
7108405c8079Smrgfound="no"
7109405c8079Smrg
7110405c8079Smrg	if test $found = "no" ; then
711180f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7112405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7113405c8079Smrg		fi
7114405c8079Smrg
711580f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7116405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7117405c8079Smrg		fi
7118405c8079Smrg
7119405c8079Smrg		CFLAGS="$CFLAGS -Werror=implicit"
7120405c8079Smrg
7121138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7122138a9f8aSmrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; }
712380f56f3aSmrg		cacheid=xorg_cv_cc_flag__Werror_implicit
7124138a9f8aSmrg		if eval test \${$cacheid+y}
7125138a9f8aSmrgthen :
7126138a9f8aSmrg  printf %s "(cached) " >&6
7127138a9f8aSmrgelse $as_nop
7128405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129405c8079Smrg/* end confdefs.h.  */
7130405c8079Smrgint i;
7131405c8079Smrgint
7132138a9f8aSmrgmain (void)
7133405c8079Smrg{
7134405c8079Smrg
7135405c8079Smrg  ;
7136405c8079Smrg  return 0;
7137405c8079Smrg}
7138405c8079Smrg_ACEOF
7139138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
7140138a9f8aSmrgthen :
7141405c8079Smrg  eval $cacheid=yes
7142138a9f8aSmrgelse $as_nop
7143405c8079Smrg  eval $cacheid=no
7144405c8079Smrgfi
7145138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7146405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
7147405c8079Smrgfi
7148405c8079Smrg
7149405c8079Smrg
7150405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7151405c8079Smrg
7152405c8079Smrg		eval supported=\$$cacheid
7153138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7154138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
7155405c8079Smrg		if test "$supported" = "yes" ; then
7156405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7157405c8079Smrg			found="yes"
7158405c8079Smrg		fi
7159405c8079Smrg	fi
7160405c8079Smrg
7161405c8079Smrg	if test $found = "no" ; then
716280f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7163405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7164405c8079Smrg		fi
7165405c8079Smrg
716680f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7167405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7168405c8079Smrg		fi
7169405c8079Smrg
7170405c8079Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7171405c8079Smrg
7172138a9f8aSmrg		{ 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
7173138a9f8aSmrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
717480f56f3aSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7175138a9f8aSmrg		if eval test \${$cacheid+y}
7176138a9f8aSmrgthen :
7177138a9f8aSmrg  printf %s "(cached) " >&6
7178138a9f8aSmrgelse $as_nop
7179405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180405c8079Smrg/* end confdefs.h.  */
7181405c8079Smrgint i;
7182405c8079Smrgint
7183138a9f8aSmrgmain (void)
7184405c8079Smrg{
7185405c8079Smrg
7186405c8079Smrg  ;
7187405c8079Smrg  return 0;
7188405c8079Smrg}
7189405c8079Smrg_ACEOF
7190138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
7191138a9f8aSmrgthen :
7192405c8079Smrg  eval $cacheid=yes
7193138a9f8aSmrgelse $as_nop
7194405c8079Smrg  eval $cacheid=no
7195405c8079Smrgfi
7196138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7197405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
7198405c8079Smrgfi
7199405c8079Smrg
7200405c8079Smrg
7201405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7202405c8079Smrg
7203405c8079Smrg		eval supported=\$$cacheid
7204138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7205138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
7206405c8079Smrg		if test "$supported" = "yes" ; then
7207405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7208405c8079Smrg			found="yes"
7209405c8079Smrg		fi
7210405c8079Smrg	fi
7211405c8079Smrg
7212405c8079Smrg
7213405c8079Smrg
7214405c8079Smrg
7215405c8079Smrg
7216405c8079Smrg
7217405c8079Smrg
7218405c8079Smrg
7219405c8079Smrg
7220405c8079Smrg
7221405c8079Smrg
7222405c8079Smrg
7223405c8079Smrg
7224405c8079Smrg
7225405c8079Smrg
7226405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7227405c8079Smrg
7228405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7229405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7230138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7231138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7232138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7233138a9f8aSmrgthen :
7234138a9f8aSmrg  printf %s "(cached) " >&6
7235138a9f8aSmrgelse $as_nop
7236405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237405c8079Smrg/* end confdefs.h.  */
7238405c8079Smrgint i;
7239405c8079Smrg_ACEOF
7240138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
7241138a9f8aSmrgthen :
7242405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7243138a9f8aSmrgelse $as_nop
7244405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7245405c8079Smrgfi
7246138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7247405c8079Smrgfi
7248138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7249138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7250405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7251405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7252405c8079Smrgfi
7253405c8079Smrg
7254405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7255405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7256405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7257405c8079Smrg	fi
7258405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7259138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7260138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7261138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7262138a9f8aSmrgthen :
7263138a9f8aSmrg  printf %s "(cached) " >&6
7264138a9f8aSmrgelse $as_nop
7265405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266405c8079Smrg/* end confdefs.h.  */
7267405c8079Smrgint i;
7268405c8079Smrg_ACEOF
7269138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
7270138a9f8aSmrgthen :
7271405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7272138a9f8aSmrgelse $as_nop
7273405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7274405c8079Smrgfi
7275138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7276405c8079Smrgfi
7277138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7278138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7279405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7280405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7281405c8079Smrgfi
7282405c8079Smrg
7283405c8079Smrgfound="no"
7284405c8079Smrg
7285405c8079Smrg	if test $found = "no" ; then
728680f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7287405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7288405c8079Smrg		fi
7289405c8079Smrg
729080f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7291405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7292405c8079Smrg		fi
7293405c8079Smrg
7294405c8079Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
7295405c8079Smrg
7296138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7297138a9f8aSmrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; }
729880f56f3aSmrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
7299138a9f8aSmrg		if eval test \${$cacheid+y}
7300138a9f8aSmrgthen :
7301138a9f8aSmrg  printf %s "(cached) " >&6
7302138a9f8aSmrgelse $as_nop
7303405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304405c8079Smrg/* end confdefs.h.  */
7305405c8079Smrgint i;
7306405c8079Smrgint
7307138a9f8aSmrgmain (void)
7308405c8079Smrg{
7309405c8079Smrg
7310405c8079Smrg  ;
7311405c8079Smrg  return 0;
7312405c8079Smrg}
7313405c8079Smrg_ACEOF
7314138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
7315138a9f8aSmrgthen :
7316405c8079Smrg  eval $cacheid=yes
7317138a9f8aSmrgelse $as_nop
7318405c8079Smrg  eval $cacheid=no
7319405c8079Smrgfi
7320138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7321405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
7322405c8079Smrgfi
7323405c8079Smrg
7324405c8079Smrg
7325405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7326405c8079Smrg
7327405c8079Smrg		eval supported=\$$cacheid
7328138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7329138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
7330405c8079Smrg		if test "$supported" = "yes" ; then
7331405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7332405c8079Smrg			found="yes"
7333405c8079Smrg		fi
7334405c8079Smrg	fi
7335405c8079Smrg
7336405c8079Smrg
7337405c8079Smrg
7338405c8079Smrg
7339405c8079Smrg
7340405c8079Smrg
7341405c8079Smrg
7342405c8079Smrg
7343405c8079Smrg
7344405c8079Smrg
7345405c8079Smrg
7346405c8079Smrg
7347405c8079Smrg
7348405c8079Smrg
7349405c8079Smrg
7350405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7351405c8079Smrg
7352405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7353405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7354138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7355138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7356138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7357138a9f8aSmrgthen :
7358138a9f8aSmrg  printf %s "(cached) " >&6
7359138a9f8aSmrgelse $as_nop
7360405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361405c8079Smrg/* end confdefs.h.  */
7362405c8079Smrgint i;
7363405c8079Smrg_ACEOF
7364138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
7365138a9f8aSmrgthen :
7366405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7367138a9f8aSmrgelse $as_nop
7368405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7369405c8079Smrgfi
7370138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7371405c8079Smrgfi
7372138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7373138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7374405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7375405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7376405c8079Smrgfi
7377405c8079Smrg
7378405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7379405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7380405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381405c8079Smrg	fi
7382405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7383138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7384138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7385138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7386138a9f8aSmrgthen :
7387138a9f8aSmrg  printf %s "(cached) " >&6
7388138a9f8aSmrgelse $as_nop
7389405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390405c8079Smrg/* end confdefs.h.  */
7391405c8079Smrgint i;
7392405c8079Smrg_ACEOF
7393138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
7394138a9f8aSmrgthen :
7395405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7396138a9f8aSmrgelse $as_nop
7397405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7398405c8079Smrgfi
7399138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7400405c8079Smrgfi
7401138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7402138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7403405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7404405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7405405c8079Smrgfi
7406405c8079Smrg
7407405c8079Smrgfound="no"
7408405c8079Smrg
7409405c8079Smrg	if test $found = "no" ; then
741080f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7411405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7412405c8079Smrg		fi
7413405c8079Smrg
741480f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7415405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7416405c8079Smrg		fi
7417405c8079Smrg
7418405c8079Smrg		CFLAGS="$CFLAGS -Werror=init-self"
7419405c8079Smrg
7420138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7421138a9f8aSmrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; }
742280f56f3aSmrg		cacheid=xorg_cv_cc_flag__Werror_init_self
7423138a9f8aSmrg		if eval test \${$cacheid+y}
7424138a9f8aSmrgthen :
7425138a9f8aSmrg  printf %s "(cached) " >&6
7426138a9f8aSmrgelse $as_nop
7427405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428405c8079Smrg/* end confdefs.h.  */
7429405c8079Smrgint i;
7430405c8079Smrgint
7431138a9f8aSmrgmain (void)
7432405c8079Smrg{
7433405c8079Smrg
7434405c8079Smrg  ;
7435405c8079Smrg  return 0;
7436405c8079Smrg}
7437405c8079Smrg_ACEOF
7438138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
7439138a9f8aSmrgthen :
7440405c8079Smrg  eval $cacheid=yes
7441138a9f8aSmrgelse $as_nop
7442405c8079Smrg  eval $cacheid=no
7443405c8079Smrgfi
7444138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7445405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
7446405c8079Smrgfi
7447405c8079Smrg
7448405c8079Smrg
7449405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7450405c8079Smrg
7451405c8079Smrg		eval supported=\$$cacheid
7452138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7453138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
7454405c8079Smrg		if test "$supported" = "yes" ; then
7455405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7456405c8079Smrg			found="yes"
7457405c8079Smrg		fi
7458405c8079Smrg	fi
7459405c8079Smrg
7460405c8079Smrg
7461405c8079Smrg
7462405c8079Smrg
7463405c8079Smrg
7464405c8079Smrg
7465405c8079Smrg
7466405c8079Smrg
7467405c8079Smrg
7468405c8079Smrg
7469405c8079Smrg
7470405c8079Smrg
7471405c8079Smrg
7472405c8079Smrg
7473405c8079Smrg
7474405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7475405c8079Smrg
7476405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7477405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7478138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7479138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7480138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7481138a9f8aSmrgthen :
7482138a9f8aSmrg  printf %s "(cached) " >&6
7483138a9f8aSmrgelse $as_nop
7484405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485405c8079Smrg/* end confdefs.h.  */
7486405c8079Smrgint i;
7487405c8079Smrg_ACEOF
7488138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
7489138a9f8aSmrgthen :
7490405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7491138a9f8aSmrgelse $as_nop
7492405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7493405c8079Smrgfi
7494138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7495405c8079Smrgfi
7496138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7497138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7498405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7499405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7500405c8079Smrgfi
7501405c8079Smrg
7502405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7503405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7504405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7505405c8079Smrg	fi
7506405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7507138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7508138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7509138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7510138a9f8aSmrgthen :
7511138a9f8aSmrg  printf %s "(cached) " >&6
7512138a9f8aSmrgelse $as_nop
7513405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514405c8079Smrg/* end confdefs.h.  */
7515405c8079Smrgint i;
7516405c8079Smrg_ACEOF
7517138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
7518138a9f8aSmrgthen :
7519405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7520138a9f8aSmrgelse $as_nop
7521405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7522405c8079Smrgfi
7523138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7524405c8079Smrgfi
7525138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7526138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7527405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7528405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7529405c8079Smrgfi
7530405c8079Smrg
7531405c8079Smrgfound="no"
7532405c8079Smrg
7533405c8079Smrg	if test $found = "no" ; then
753480f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7535405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7536405c8079Smrg		fi
7537405c8079Smrg
753880f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7539405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7540405c8079Smrg		fi
7541405c8079Smrg
7542405c8079Smrg		CFLAGS="$CFLAGS -Werror=main"
7543405c8079Smrg
7544138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7545138a9f8aSmrgprintf %s "checking if $CC supports -Werror=main... " >&6; }
754680f56f3aSmrg		cacheid=xorg_cv_cc_flag__Werror_main
7547138a9f8aSmrg		if eval test \${$cacheid+y}
7548138a9f8aSmrgthen :
7549138a9f8aSmrg  printf %s "(cached) " >&6
7550138a9f8aSmrgelse $as_nop
7551405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552405c8079Smrg/* end confdefs.h.  */
7553405c8079Smrgint i;
7554405c8079Smrgint
7555138a9f8aSmrgmain (void)
7556405c8079Smrg{
7557405c8079Smrg
7558405c8079Smrg  ;
7559405c8079Smrg  return 0;
7560405c8079Smrg}
7561405c8079Smrg_ACEOF
7562138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
7563138a9f8aSmrgthen :
7564405c8079Smrg  eval $cacheid=yes
7565138a9f8aSmrgelse $as_nop
7566405c8079Smrg  eval $cacheid=no
7567405c8079Smrgfi
7568138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7569405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
7570405c8079Smrgfi
7571405c8079Smrg
7572405c8079Smrg
7573405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7574405c8079Smrg
7575405c8079Smrg		eval supported=\$$cacheid
7576138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7577138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
7578405c8079Smrg		if test "$supported" = "yes" ; then
7579405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7580405c8079Smrg			found="yes"
7581405c8079Smrg		fi
7582405c8079Smrg	fi
7583405c8079Smrg
7584405c8079Smrg
7585405c8079Smrg
7586405c8079Smrg
7587405c8079Smrg
7588405c8079Smrg
7589405c8079Smrg
7590405c8079Smrg
7591405c8079Smrg
7592405c8079Smrg
7593405c8079Smrg
7594405c8079Smrg
7595405c8079Smrg
7596405c8079Smrg
7597405c8079Smrg
7598405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7599405c8079Smrg
7600405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7601405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7602138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7603138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7604138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7605138a9f8aSmrgthen :
7606138a9f8aSmrg  printf %s "(cached) " >&6
7607138a9f8aSmrgelse $as_nop
7608405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609405c8079Smrg/* end confdefs.h.  */
7610405c8079Smrgint i;
7611405c8079Smrg_ACEOF
7612138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
7613138a9f8aSmrgthen :
7614405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7615138a9f8aSmrgelse $as_nop
7616405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7617405c8079Smrgfi
7618138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7619405c8079Smrgfi
7620138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7621138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7622405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7623405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7624405c8079Smrgfi
7625405c8079Smrg
7626405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7627405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7628405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7629405c8079Smrg	fi
7630405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7631138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7632138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7633138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7634138a9f8aSmrgthen :
7635138a9f8aSmrg  printf %s "(cached) " >&6
7636138a9f8aSmrgelse $as_nop
7637405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638405c8079Smrg/* end confdefs.h.  */
7639405c8079Smrgint i;
7640405c8079Smrg_ACEOF
7641138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
7642138a9f8aSmrgthen :
7643405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7644138a9f8aSmrgelse $as_nop
7645405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7646405c8079Smrgfi
7647138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7648405c8079Smrgfi
7649138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7650138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7651405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7652405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7653405c8079Smrgfi
7654405c8079Smrg
7655405c8079Smrgfound="no"
7656405c8079Smrg
7657405c8079Smrg	if test $found = "no" ; then
765880f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7659405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7660405c8079Smrg		fi
7661405c8079Smrg
766280f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7663405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7664405c8079Smrg		fi
7665405c8079Smrg
7666405c8079Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
7667405c8079Smrg
7668138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7669138a9f8aSmrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
767080f56f3aSmrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7671138a9f8aSmrg		if eval test \${$cacheid+y}
7672138a9f8aSmrgthen :
7673138a9f8aSmrg  printf %s "(cached) " >&6
7674138a9f8aSmrgelse $as_nop
7675405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676405c8079Smrg/* end confdefs.h.  */
7677405c8079Smrgint i;
7678405c8079Smrgint
7679138a9f8aSmrgmain (void)
7680405c8079Smrg{
7681405c8079Smrg
7682405c8079Smrg  ;
7683405c8079Smrg  return 0;
7684405c8079Smrg}
7685405c8079Smrg_ACEOF
7686138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
7687138a9f8aSmrgthen :
7688405c8079Smrg  eval $cacheid=yes
7689138a9f8aSmrgelse $as_nop
7690405c8079Smrg  eval $cacheid=no
7691405c8079Smrgfi
7692138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7693405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
7694405c8079Smrgfi
7695405c8079Smrg
7696405c8079Smrg
7697405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7698405c8079Smrg
7699405c8079Smrg		eval supported=\$$cacheid
7700138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7701138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
7702405c8079Smrg		if test "$supported" = "yes" ; then
7703405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7704405c8079Smrg			found="yes"
7705405c8079Smrg		fi
7706405c8079Smrg	fi
7707405c8079Smrg
7708405c8079Smrg
7709405c8079Smrg
7710405c8079Smrg
7711405c8079Smrg
7712405c8079Smrg
7713405c8079Smrg
7714405c8079Smrg
7715405c8079Smrg
7716405c8079Smrg
7717405c8079Smrg
7718405c8079Smrg
7719405c8079Smrg
7720405c8079Smrg
7721405c8079Smrg
7722405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7723405c8079Smrg
7724405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7725405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7726138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7727138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7728138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7729138a9f8aSmrgthen :
7730138a9f8aSmrg  printf %s "(cached) " >&6
7731138a9f8aSmrgelse $as_nop
7732405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733405c8079Smrg/* end confdefs.h.  */
7734405c8079Smrgint i;
7735405c8079Smrg_ACEOF
7736138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
7737138a9f8aSmrgthen :
7738405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7739138a9f8aSmrgelse $as_nop
7740405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7741405c8079Smrgfi
7742138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7743405c8079Smrgfi
7744138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7745138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7746405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7747405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7748405c8079Smrgfi
7749405c8079Smrg
7750405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7751405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7752405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7753405c8079Smrg	fi
7754405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7755138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7756138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7757138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7758138a9f8aSmrgthen :
7759138a9f8aSmrg  printf %s "(cached) " >&6
7760138a9f8aSmrgelse $as_nop
7761405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762405c8079Smrg/* end confdefs.h.  */
7763405c8079Smrgint i;
7764405c8079Smrg_ACEOF
7765138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
7766138a9f8aSmrgthen :
7767405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7768138a9f8aSmrgelse $as_nop
7769405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7770405c8079Smrgfi
7771138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7772405c8079Smrgfi
7773138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7774138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7775405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7776405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7777405c8079Smrgfi
7778405c8079Smrg
7779405c8079Smrgfound="no"
7780405c8079Smrg
7781405c8079Smrg	if test $found = "no" ; then
778280f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7783405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7784405c8079Smrg		fi
7785405c8079Smrg
778680f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7787405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7788405c8079Smrg		fi
7789405c8079Smrg
7790405c8079Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
7791405c8079Smrg
7792138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7793138a9f8aSmrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
779480f56f3aSmrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7795138a9f8aSmrg		if eval test \${$cacheid+y}
7796138a9f8aSmrgthen :
7797138a9f8aSmrg  printf %s "(cached) " >&6
7798138a9f8aSmrgelse $as_nop
7799405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800405c8079Smrg/* end confdefs.h.  */
7801405c8079Smrgint i;
7802405c8079Smrgint
7803138a9f8aSmrgmain (void)
7804405c8079Smrg{
7805405c8079Smrg
7806405c8079Smrg  ;
7807405c8079Smrg  return 0;
7808405c8079Smrg}
7809405c8079Smrg_ACEOF
7810138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
7811138a9f8aSmrgthen :
7812405c8079Smrg  eval $cacheid=yes
7813138a9f8aSmrgelse $as_nop
7814405c8079Smrg  eval $cacheid=no
7815405c8079Smrgfi
7816138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7817405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
7818405c8079Smrgfi
7819405c8079Smrg
7820405c8079Smrg
7821405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7822405c8079Smrg
7823405c8079Smrg		eval supported=\$$cacheid
7824138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7825138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
7826405c8079Smrg		if test "$supported" = "yes" ; then
7827405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7828405c8079Smrg			found="yes"
7829405c8079Smrg		fi
7830405c8079Smrg	fi
7831405c8079Smrg
7832405c8079Smrg
7833405c8079Smrg
7834405c8079Smrg
7835405c8079Smrg
7836405c8079Smrg
7837405c8079Smrg
7838405c8079Smrg
7839405c8079Smrg
7840405c8079Smrg
7841405c8079Smrg
7842405c8079Smrg
7843405c8079Smrg
7844405c8079Smrg
7845405c8079Smrg
7846405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7847405c8079Smrg
7848405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7849405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7850138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7851138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7852138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7853138a9f8aSmrgthen :
7854138a9f8aSmrg  printf %s "(cached) " >&6
7855138a9f8aSmrgelse $as_nop
7856405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857405c8079Smrg/* end confdefs.h.  */
7858405c8079Smrgint i;
7859405c8079Smrg_ACEOF
7860138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
7861138a9f8aSmrgthen :
7862405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7863138a9f8aSmrgelse $as_nop
7864405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7865405c8079Smrgfi
7866138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7867405c8079Smrgfi
7868138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7869138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7870405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7871405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7872405c8079Smrgfi
7873405c8079Smrg
7874405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7875405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7876405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7877405c8079Smrg	fi
7878405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7879138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7880138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7881138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7882138a9f8aSmrgthen :
7883138a9f8aSmrg  printf %s "(cached) " >&6
7884138a9f8aSmrgelse $as_nop
7885405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886405c8079Smrg/* end confdefs.h.  */
7887405c8079Smrgint i;
7888405c8079Smrg_ACEOF
7889138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
7890138a9f8aSmrgthen :
7891405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7892138a9f8aSmrgelse $as_nop
7893405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7894405c8079Smrgfi
7895138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7896405c8079Smrgfi
7897138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7898138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7899405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7900405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7901405c8079Smrgfi
7902405c8079Smrg
7903405c8079Smrgfound="no"
7904405c8079Smrg
7905405c8079Smrg	if test $found = "no" ; then
790680f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7907405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7908405c8079Smrg		fi
7909405c8079Smrg
791080f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7911405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7912405c8079Smrg		fi
7913405c8079Smrg
7914405c8079Smrg		CFLAGS="$CFLAGS -Werror=return-type"
7915405c8079Smrg
7916138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7917138a9f8aSmrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; }
791880f56f3aSmrg		cacheid=xorg_cv_cc_flag__Werror_return_type
7919138a9f8aSmrg		if eval test \${$cacheid+y}
7920138a9f8aSmrgthen :
7921138a9f8aSmrg  printf %s "(cached) " >&6
7922138a9f8aSmrgelse $as_nop
7923405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924405c8079Smrg/* end confdefs.h.  */
7925405c8079Smrgint i;
7926405c8079Smrgint
7927138a9f8aSmrgmain (void)
7928405c8079Smrg{
7929405c8079Smrg
7930405c8079Smrg  ;
7931405c8079Smrg  return 0;
7932405c8079Smrg}
7933405c8079Smrg_ACEOF
7934138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
7935138a9f8aSmrgthen :
7936405c8079Smrg  eval $cacheid=yes
7937138a9f8aSmrgelse $as_nop
7938405c8079Smrg  eval $cacheid=no
7939405c8079Smrgfi
7940138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7941405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
7942405c8079Smrgfi
7943405c8079Smrg
7944405c8079Smrg
7945405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7946405c8079Smrg
7947405c8079Smrg		eval supported=\$$cacheid
7948138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7949138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
7950405c8079Smrg		if test "$supported" = "yes" ; then
7951405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7952405c8079Smrg			found="yes"
7953405c8079Smrg		fi
7954405c8079Smrg	fi
7955405c8079Smrg
7956405c8079Smrg	if test $found = "no" ; then
795780f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7958405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7959405c8079Smrg		fi
7960405c8079Smrg
796180f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7962405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7963405c8079Smrg		fi
7964405c8079Smrg
7965405c8079Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7966405c8079Smrg
7967138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7968138a9f8aSmrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
796980f56f3aSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7970138a9f8aSmrg		if eval test \${$cacheid+y}
7971138a9f8aSmrgthen :
7972138a9f8aSmrg  printf %s "(cached) " >&6
7973138a9f8aSmrgelse $as_nop
7974405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975405c8079Smrg/* end confdefs.h.  */
7976405c8079Smrgint i;
7977405c8079Smrgint
7978138a9f8aSmrgmain (void)
7979405c8079Smrg{
7980405c8079Smrg
7981405c8079Smrg  ;
7982405c8079Smrg  return 0;
7983405c8079Smrg}
7984405c8079Smrg_ACEOF
7985138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
7986138a9f8aSmrgthen :
7987405c8079Smrg  eval $cacheid=yes
7988138a9f8aSmrgelse $as_nop
7989405c8079Smrg  eval $cacheid=no
7990405c8079Smrgfi
7991138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7992405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
7993405c8079Smrgfi
7994405c8079Smrg
7995405c8079Smrg
7996405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7997405c8079Smrg
7998405c8079Smrg		eval supported=\$$cacheid
7999138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8000138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
8001405c8079Smrg		if test "$supported" = "yes" ; then
8002405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8003405c8079Smrg			found="yes"
8004405c8079Smrg		fi
8005405c8079Smrg	fi
8006405c8079Smrg
8007405c8079Smrg
8008405c8079Smrg
8009405c8079Smrg
8010405c8079Smrg
8011405c8079Smrg
8012405c8079Smrg
8013405c8079Smrg
8014405c8079Smrg
8015405c8079Smrg
8016405c8079Smrg
8017405c8079Smrg
8018405c8079Smrg
8019405c8079Smrg
8020405c8079Smrg
8021405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8022405c8079Smrg
8023405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8024405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8025138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8026138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8027138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8028138a9f8aSmrgthen :
8029138a9f8aSmrg  printf %s "(cached) " >&6
8030138a9f8aSmrgelse $as_nop
8031405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032405c8079Smrg/* end confdefs.h.  */
8033405c8079Smrgint i;
8034405c8079Smrg_ACEOF
8035138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
8036138a9f8aSmrgthen :
8037405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8038138a9f8aSmrgelse $as_nop
8039405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8040405c8079Smrgfi
8041138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8042405c8079Smrgfi
8043138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8044138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8045405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8046405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8047405c8079Smrgfi
8048405c8079Smrg
8049405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8050405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8051405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8052405c8079Smrg	fi
8053405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8054138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8055138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8056138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8057138a9f8aSmrgthen :
8058138a9f8aSmrg  printf %s "(cached) " >&6
8059138a9f8aSmrgelse $as_nop
8060405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061405c8079Smrg/* end confdefs.h.  */
8062405c8079Smrgint i;
8063405c8079Smrg_ACEOF
8064138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
8065138a9f8aSmrgthen :
8066405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8067138a9f8aSmrgelse $as_nop
8068405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8069405c8079Smrgfi
8070138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8071405c8079Smrgfi
8072138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8073138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8074405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8075405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8076405c8079Smrgfi
8077405c8079Smrg
8078405c8079Smrgfound="no"
8079405c8079Smrg
8080405c8079Smrg	if test $found = "no" ; then
808180f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8082405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8083405c8079Smrg		fi
8084405c8079Smrg
808580f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8086405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8087405c8079Smrg		fi
8088405c8079Smrg
8089405c8079Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
8090405c8079Smrg
8091138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8092138a9f8aSmrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
809380f56f3aSmrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8094138a9f8aSmrg		if eval test \${$cacheid+y}
8095138a9f8aSmrgthen :
8096138a9f8aSmrg  printf %s "(cached) " >&6
8097138a9f8aSmrgelse $as_nop
8098405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099405c8079Smrg/* end confdefs.h.  */
8100405c8079Smrgint i;
8101405c8079Smrgint
8102138a9f8aSmrgmain (void)
8103405c8079Smrg{
8104405c8079Smrg
8105405c8079Smrg  ;
8106405c8079Smrg  return 0;
8107405c8079Smrg}
8108405c8079Smrg_ACEOF
8109138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
8110138a9f8aSmrgthen :
8111405c8079Smrg  eval $cacheid=yes
8112138a9f8aSmrgelse $as_nop
8113405c8079Smrg  eval $cacheid=no
8114405c8079Smrgfi
8115138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8116405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
8117405c8079Smrgfi
8118405c8079Smrg
8119405c8079Smrg
8120405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8121405c8079Smrg
8122405c8079Smrg		eval supported=\$$cacheid
8123138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8124138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
8125405c8079Smrg		if test "$supported" = "yes" ; then
8126405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8127405c8079Smrg			found="yes"
8128405c8079Smrg		fi
8129405c8079Smrg	fi
8130405c8079Smrg
8131405c8079Smrg
8132405c8079Smrg
8133405c8079Smrg
8134405c8079Smrg
8135405c8079Smrg
8136405c8079Smrg
8137405c8079Smrg
8138405c8079Smrg
8139405c8079Smrg
8140405c8079Smrg
8141405c8079Smrg
8142405c8079Smrg
8143405c8079Smrg
8144405c8079Smrg
8145405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8146405c8079Smrg
8147405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8148405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8149138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8150138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8151138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8152138a9f8aSmrgthen :
8153138a9f8aSmrg  printf %s "(cached) " >&6
8154138a9f8aSmrgelse $as_nop
8155405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156405c8079Smrg/* end confdefs.h.  */
8157405c8079Smrgint i;
8158405c8079Smrg_ACEOF
8159138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
8160138a9f8aSmrgthen :
8161405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8162138a9f8aSmrgelse $as_nop
8163405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8164405c8079Smrgfi
8165138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8166405c8079Smrgfi
8167138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8168138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8169405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8170405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8171405c8079Smrgfi
8172405c8079Smrg
8173405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8174405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8175405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8176405c8079Smrg	fi
8177405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8178138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8179138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8180138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8181138a9f8aSmrgthen :
8182138a9f8aSmrg  printf %s "(cached) " >&6
8183138a9f8aSmrgelse $as_nop
8184405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185405c8079Smrg/* end confdefs.h.  */
8186405c8079Smrgint i;
8187405c8079Smrg_ACEOF
8188138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
8189138a9f8aSmrgthen :
8190405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8191138a9f8aSmrgelse $as_nop
8192405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8193405c8079Smrgfi
8194138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8195405c8079Smrgfi
8196138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8197138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8198405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8199405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8200405c8079Smrgfi
8201405c8079Smrg
8202405c8079Smrgfound="no"
8203405c8079Smrg
8204405c8079Smrg	if test $found = "no" ; then
820580f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8206405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8207405c8079Smrg		fi
8208405c8079Smrg
820980f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8210405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8211405c8079Smrg		fi
8212405c8079Smrg
8213405c8079Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
8214405c8079Smrg
8215138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8216138a9f8aSmrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
821780f56f3aSmrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8218138a9f8aSmrg		if eval test \${$cacheid+y}
8219138a9f8aSmrgthen :
8220138a9f8aSmrg  printf %s "(cached) " >&6
8221138a9f8aSmrgelse $as_nop
8222405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223405c8079Smrg/* end confdefs.h.  */
8224405c8079Smrgint i;
8225405c8079Smrgint
8226138a9f8aSmrgmain (void)
8227405c8079Smrg{
8228405c8079Smrg
8229405c8079Smrg  ;
8230405c8079Smrg  return 0;
8231405c8079Smrg}
8232405c8079Smrg_ACEOF
8233138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
8234138a9f8aSmrgthen :
8235405c8079Smrg  eval $cacheid=yes
8236138a9f8aSmrgelse $as_nop
8237405c8079Smrg  eval $cacheid=no
8238405c8079Smrgfi
8239138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8240405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
8241405c8079Smrgfi
8242405c8079Smrg
8243405c8079Smrg
8244405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8245405c8079Smrg
8246405c8079Smrg		eval supported=\$$cacheid
8247138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8248138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
8249405c8079Smrg		if test "$supported" = "yes" ; then
8250405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8251405c8079Smrg			found="yes"
8252405c8079Smrg		fi
8253405c8079Smrg	fi
8254405c8079Smrg
8255405c8079Smrg
8256405c8079Smrg
8257405c8079Smrg
8258405c8079Smrg
8259405c8079Smrg
8260405c8079Smrg
8261405c8079Smrg
8262405c8079Smrg
8263405c8079Smrg
8264405c8079Smrg
8265405c8079Smrg
8266405c8079Smrg
8267405c8079Smrg
8268405c8079Smrg
8269405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8270405c8079Smrg
8271405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8272405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8273138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8274138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8275138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8276138a9f8aSmrgthen :
8277138a9f8aSmrg  printf %s "(cached) " >&6
8278138a9f8aSmrgelse $as_nop
8279405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280405c8079Smrg/* end confdefs.h.  */
8281405c8079Smrgint i;
8282405c8079Smrg_ACEOF
8283138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
8284138a9f8aSmrgthen :
8285405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8286138a9f8aSmrgelse $as_nop
8287405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8288405c8079Smrgfi
8289138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8290405c8079Smrgfi
8291138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8292138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8293405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8294405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8295405c8079Smrgfi
8296405c8079Smrg
8297405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8298405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8299405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8300405c8079Smrg	fi
8301405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8302138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8303138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8304138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8305138a9f8aSmrgthen :
8306138a9f8aSmrg  printf %s "(cached) " >&6
8307138a9f8aSmrgelse $as_nop
8308405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309405c8079Smrg/* end confdefs.h.  */
8310405c8079Smrgint i;
8311405c8079Smrg_ACEOF
8312138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
8313138a9f8aSmrgthen :
8314405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8315138a9f8aSmrgelse $as_nop
8316405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8317405c8079Smrgfi
8318138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8319405c8079Smrgfi
8320138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8321138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8322405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8323405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8324405c8079Smrgfi
8325405c8079Smrg
8326405c8079Smrgfound="no"
8327405c8079Smrg
8328405c8079Smrg	if test $found = "no" ; then
832980f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8330405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8331405c8079Smrg		fi
8332405c8079Smrg
833380f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8334405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8335405c8079Smrg		fi
8336405c8079Smrg
8337405c8079Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
8338405c8079Smrg
8339138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8340138a9f8aSmrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; }
834180f56f3aSmrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
8342138a9f8aSmrg		if eval test \${$cacheid+y}
8343138a9f8aSmrgthen :
8344138a9f8aSmrg  printf %s "(cached) " >&6
8345138a9f8aSmrgelse $as_nop
8346405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347405c8079Smrg/* end confdefs.h.  */
8348405c8079Smrgint i;
8349405c8079Smrgint
8350138a9f8aSmrgmain (void)
8351405c8079Smrg{
8352405c8079Smrg
8353405c8079Smrg  ;
8354405c8079Smrg  return 0;
8355405c8079Smrg}
8356405c8079Smrg_ACEOF
8357138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
8358138a9f8aSmrgthen :
8359405c8079Smrg  eval $cacheid=yes
8360138a9f8aSmrgelse $as_nop
8361405c8079Smrg  eval $cacheid=no
8362405c8079Smrgfi
8363138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8364405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
8365405c8079Smrgfi
8366405c8079Smrg
8367405c8079Smrg
8368405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8369405c8079Smrg
8370405c8079Smrg		eval supported=\$$cacheid
8371138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8372138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
8373405c8079Smrg		if test "$supported" = "yes" ; then
8374405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8375405c8079Smrg			found="yes"
8376405c8079Smrg		fi
8377405c8079Smrg	fi
8378405c8079Smrg
8379405c8079Smrg
8380405c8079Smrg
8381405c8079Smrg
8382405c8079Smrg
8383405c8079Smrg
8384405c8079Smrg
8385405c8079Smrg
8386405c8079Smrg
8387405c8079Smrg
8388405c8079Smrg
8389405c8079Smrg
8390405c8079Smrg
8391405c8079Smrg
8392405c8079Smrg
8393405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8394405c8079Smrg
8395405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8396405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8397138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8398138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8399138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8400138a9f8aSmrgthen :
8401138a9f8aSmrg  printf %s "(cached) " >&6
8402138a9f8aSmrgelse $as_nop
8403405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404405c8079Smrg/* end confdefs.h.  */
8405405c8079Smrgint i;
8406405c8079Smrg_ACEOF
8407138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
8408138a9f8aSmrgthen :
8409405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8410138a9f8aSmrgelse $as_nop
8411405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8412405c8079Smrgfi
8413138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8414405c8079Smrgfi
8415138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8416138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8417405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8418405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8419405c8079Smrgfi
8420405c8079Smrg
8421405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8422405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8423405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8424405c8079Smrg	fi
8425405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8426138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8427138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8428138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8429138a9f8aSmrgthen :
8430138a9f8aSmrg  printf %s "(cached) " >&6
8431138a9f8aSmrgelse $as_nop
8432405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433405c8079Smrg/* end confdefs.h.  */
8434405c8079Smrgint i;
8435405c8079Smrg_ACEOF
8436138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
8437138a9f8aSmrgthen :
8438405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8439138a9f8aSmrgelse $as_nop
8440405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8441405c8079Smrgfi
8442138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8443405c8079Smrgfi
8444138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8445138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8446405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8447405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8448405c8079Smrgfi
8449405c8079Smrg
8450405c8079Smrgfound="no"
8451405c8079Smrg
8452405c8079Smrg	if test $found = "no" ; then
845380f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8454405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8455405c8079Smrg		fi
8456405c8079Smrg
845780f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8458405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8459405c8079Smrg		fi
8460405c8079Smrg
8461405c8079Smrg		CFLAGS="$CFLAGS -Werror=address"
8462405c8079Smrg
8463138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8464138a9f8aSmrgprintf %s "checking if $CC supports -Werror=address... " >&6; }
846580f56f3aSmrg		cacheid=xorg_cv_cc_flag__Werror_address
8466138a9f8aSmrg		if eval test \${$cacheid+y}
8467138a9f8aSmrgthen :
8468138a9f8aSmrg  printf %s "(cached) " >&6
8469138a9f8aSmrgelse $as_nop
8470405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471405c8079Smrg/* end confdefs.h.  */
8472405c8079Smrgint i;
8473405c8079Smrgint
8474138a9f8aSmrgmain (void)
8475405c8079Smrg{
8476405c8079Smrg
8477405c8079Smrg  ;
8478405c8079Smrg  return 0;
8479405c8079Smrg}
8480405c8079Smrg_ACEOF
8481138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
8482138a9f8aSmrgthen :
8483405c8079Smrg  eval $cacheid=yes
8484138a9f8aSmrgelse $as_nop
8485405c8079Smrg  eval $cacheid=no
8486405c8079Smrgfi
8487138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8488405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
8489405c8079Smrgfi
8490405c8079Smrg
8491405c8079Smrg
8492405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8493405c8079Smrg
8494405c8079Smrg		eval supported=\$$cacheid
8495138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8496138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
8497405c8079Smrg		if test "$supported" = "yes" ; then
8498405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8499405c8079Smrg			found="yes"
8500405c8079Smrg		fi
8501405c8079Smrg	fi
8502405c8079Smrg
8503405c8079Smrg
8504405c8079Smrg
8505405c8079Smrg
8506405c8079Smrg
8507405c8079Smrg
8508405c8079Smrg
8509405c8079Smrg
8510405c8079Smrg
8511405c8079Smrg
8512405c8079Smrg
8513405c8079Smrg
8514405c8079Smrg
8515405c8079Smrg
8516405c8079Smrg
8517405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8518405c8079Smrg
8519405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8520405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8521138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8522138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8523138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8524138a9f8aSmrgthen :
8525138a9f8aSmrg  printf %s "(cached) " >&6
8526138a9f8aSmrgelse $as_nop
8527405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528405c8079Smrg/* end confdefs.h.  */
8529405c8079Smrgint i;
8530405c8079Smrg_ACEOF
8531138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
8532138a9f8aSmrgthen :
8533405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8534138a9f8aSmrgelse $as_nop
8535405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8536405c8079Smrgfi
8537138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8538405c8079Smrgfi
8539138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8540138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8541405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8542405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8543405c8079Smrgfi
8544405c8079Smrg
8545405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8546405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8547405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8548405c8079Smrg	fi
8549405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8550138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8551138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8552138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8553138a9f8aSmrgthen :
8554138a9f8aSmrg  printf %s "(cached) " >&6
8555138a9f8aSmrgelse $as_nop
8556405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557405c8079Smrg/* end confdefs.h.  */
8558405c8079Smrgint i;
8559405c8079Smrg_ACEOF
8560138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
8561138a9f8aSmrgthen :
8562405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8563138a9f8aSmrgelse $as_nop
8564405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8565405c8079Smrgfi
8566138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8567405c8079Smrgfi
8568138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8569138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8570405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8571405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8572405c8079Smrgfi
8573405c8079Smrg
8574405c8079Smrgfound="no"
8575405c8079Smrg
8576405c8079Smrg	if test $found = "no" ; then
857780f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8578405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8579405c8079Smrg		fi
8580405c8079Smrg
858180f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8582405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8583405c8079Smrg		fi
8584405c8079Smrg
8585405c8079Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8586405c8079Smrg
8587138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8588138a9f8aSmrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
858980f56f3aSmrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8590138a9f8aSmrg		if eval test \${$cacheid+y}
8591138a9f8aSmrgthen :
8592138a9f8aSmrg  printf %s "(cached) " >&6
8593138a9f8aSmrgelse $as_nop
8594405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595405c8079Smrg/* end confdefs.h.  */
8596405c8079Smrgint i;
8597405c8079Smrgint
8598138a9f8aSmrgmain (void)
8599405c8079Smrg{
8600405c8079Smrg
8601405c8079Smrg  ;
8602405c8079Smrg  return 0;
8603405c8079Smrg}
8604405c8079Smrg_ACEOF
8605138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
8606138a9f8aSmrgthen :
8607405c8079Smrg  eval $cacheid=yes
8608138a9f8aSmrgelse $as_nop
8609405c8079Smrg  eval $cacheid=no
8610405c8079Smrgfi
8611138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8612405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
8613405c8079Smrgfi
8614405c8079Smrg
8615405c8079Smrg
8616405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8617405c8079Smrg
8618405c8079Smrg		eval supported=\$$cacheid
8619138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8620138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
8621405c8079Smrg		if test "$supported" = "yes" ; then
8622405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8623405c8079Smrg			found="yes"
8624405c8079Smrg		fi
8625405c8079Smrg	fi
8626405c8079Smrg
8627405c8079Smrg	if test $found = "no" ; then
862880f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8629405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8630405c8079Smrg		fi
8631405c8079Smrg
863280f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8633405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8634405c8079Smrg		fi
8635405c8079Smrg
8636405c8079Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8637405c8079Smrg
8638138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8639138a9f8aSmrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
864080f56f3aSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8641138a9f8aSmrg		if eval test \${$cacheid+y}
8642138a9f8aSmrgthen :
8643138a9f8aSmrg  printf %s "(cached) " >&6
8644138a9f8aSmrgelse $as_nop
8645405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646405c8079Smrg/* end confdefs.h.  */
8647405c8079Smrgint i;
8648405c8079Smrgint
8649138a9f8aSmrgmain (void)
8650405c8079Smrg{
8651405c8079Smrg
8652405c8079Smrg  ;
8653405c8079Smrg  return 0;
8654405c8079Smrg}
8655405c8079Smrg_ACEOF
8656138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
8657138a9f8aSmrgthen :
8658405c8079Smrg  eval $cacheid=yes
8659138a9f8aSmrgelse $as_nop
8660405c8079Smrg  eval $cacheid=no
8661405c8079Smrgfi
8662138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8663405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
8664405c8079Smrgfi
8665405c8079Smrg
8666405c8079Smrg
8667405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8668405c8079Smrg
8669405c8079Smrg		eval supported=\$$cacheid
8670138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8671138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
8672405c8079Smrg		if test "$supported" = "yes" ; then
8673405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8674405c8079Smrg			found="yes"
8675405c8079Smrg		fi
8676405c8079Smrg	fi
8677405c8079Smrg
8678405c8079Smrg
8679405c8079Smrg
8680405c8079Smrg
8681405c8079Smrg
8682405c8079Smrg
8683405c8079Smrg
8684405c8079Smrg
8685405c8079Smrg
8686405c8079Smrg
8687405c8079Smrg
8688405c8079Smrg
8689405c8079Smrg
8690405c8079Smrg
8691405c8079Smrg
8692405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8693405c8079Smrg
8694405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8695405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8696138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8697138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8698138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8699138a9f8aSmrgthen :
8700138a9f8aSmrg  printf %s "(cached) " >&6
8701138a9f8aSmrgelse $as_nop
8702405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703405c8079Smrg/* end confdefs.h.  */
8704405c8079Smrgint i;
8705405c8079Smrg_ACEOF
8706138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
8707138a9f8aSmrgthen :
8708405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8709138a9f8aSmrgelse $as_nop
8710405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8711405c8079Smrgfi
8712138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8713405c8079Smrgfi
8714138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8715138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8716405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8717405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8718405c8079Smrgfi
8719405c8079Smrg
8720405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8721405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8722405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8723405c8079Smrg	fi
8724405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8725138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8726138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8727138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8728138a9f8aSmrgthen :
8729138a9f8aSmrg  printf %s "(cached) " >&6
8730138a9f8aSmrgelse $as_nop
8731405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732405c8079Smrg/* end confdefs.h.  */
8733405c8079Smrgint i;
8734405c8079Smrg_ACEOF
8735138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
8736138a9f8aSmrgthen :
8737405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8738138a9f8aSmrgelse $as_nop
8739405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8740405c8079Smrgfi
8741138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8742405c8079Smrgfi
8743138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8744138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8745405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8746405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8747405c8079Smrgfi
8748405c8079Smrg
8749405c8079Smrgfound="no"
8750405c8079Smrg
8751405c8079Smrg	if test $found = "no" ; then
875280f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8753405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8754405c8079Smrg		fi
8755405c8079Smrg
875680f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8757405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8758405c8079Smrg		fi
8759405c8079Smrg
8760405c8079Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8761405c8079Smrg
8762138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8763138a9f8aSmrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
876480f56f3aSmrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8765138a9f8aSmrg		if eval test \${$cacheid+y}
8766138a9f8aSmrgthen :
8767138a9f8aSmrg  printf %s "(cached) " >&6
8768138a9f8aSmrgelse $as_nop
8769405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770405c8079Smrg/* end confdefs.h.  */
8771405c8079Smrgint i;
8772405c8079Smrgint
8773138a9f8aSmrgmain (void)
8774405c8079Smrg{
8775405c8079Smrg
8776405c8079Smrg  ;
8777405c8079Smrg  return 0;
8778405c8079Smrg}
8779405c8079Smrg_ACEOF
8780138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
8781138a9f8aSmrgthen :
8782405c8079Smrg  eval $cacheid=yes
8783138a9f8aSmrgelse $as_nop
8784405c8079Smrg  eval $cacheid=no
8785405c8079Smrgfi
8786138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8787405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
8788405c8079Smrgfi
8789405c8079Smrg
8790405c8079Smrg
8791405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8792405c8079Smrg
8793405c8079Smrg		eval supported=\$$cacheid
8794138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8795138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
8796405c8079Smrg		if test "$supported" = "yes" ; then
8797405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8798405c8079Smrg			found="yes"
8799405c8079Smrg		fi
8800405c8079Smrg	fi
8801405c8079Smrg
8802405c8079Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8803405c8079Smrgelse
8804138a9f8aSmrg{ 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
8805138a9f8aSmrgprintf "%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;}
8806405c8079Smrg
8807405c8079Smrg
8808405c8079Smrg
8809405c8079Smrg
8810405c8079Smrg
8811405c8079Smrg
8812405c8079Smrg
8813405c8079Smrg
8814405c8079Smrg
8815405c8079Smrg
8816405c8079Smrg
8817405c8079Smrg
8818405c8079Smrg
8819405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8820405c8079Smrg
8821405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8822405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8823138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8824138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8825138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8826138a9f8aSmrgthen :
8827138a9f8aSmrg  printf %s "(cached) " >&6
8828138a9f8aSmrgelse $as_nop
8829405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830405c8079Smrg/* end confdefs.h.  */
8831405c8079Smrgint i;
8832405c8079Smrg_ACEOF
8833138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
8834138a9f8aSmrgthen :
8835405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8836138a9f8aSmrgelse $as_nop
8837405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8838405c8079Smrgfi
8839138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8840405c8079Smrgfi
8841138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8842138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8843405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8844405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8845405c8079Smrgfi
8846405c8079Smrg
8847405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8848405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8849405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8850405c8079Smrg	fi
8851405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8852138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8853138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8854138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8855138a9f8aSmrgthen :
8856138a9f8aSmrg  printf %s "(cached) " >&6
8857138a9f8aSmrgelse $as_nop
8858405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859405c8079Smrg/* end confdefs.h.  */
8860405c8079Smrgint i;
8861405c8079Smrg_ACEOF
8862138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
8863138a9f8aSmrgthen :
8864405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8865138a9f8aSmrgelse $as_nop
8866405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8867405c8079Smrgfi
8868138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8869405c8079Smrgfi
8870138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8871138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8872405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8873405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8874405c8079Smrgfi
8875405c8079Smrg
8876405c8079Smrgfound="no"
8877405c8079Smrg
8878405c8079Smrg	if test $found = "no" ; then
887980f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8880405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8881405c8079Smrg		fi
8882405c8079Smrg
888380f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8884405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8885405c8079Smrg		fi
8886405c8079Smrg
8887405c8079Smrg		CFLAGS="$CFLAGS -Wimplicit"
8888405c8079Smrg
8889138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8890138a9f8aSmrgprintf %s "checking if $CC supports -Wimplicit... " >&6; }
8891405c8079Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
8892138a9f8aSmrg		if eval test \${$cacheid+y}
8893138a9f8aSmrgthen :
8894138a9f8aSmrg  printf %s "(cached) " >&6
8895138a9f8aSmrgelse $as_nop
8896405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897405c8079Smrg/* end confdefs.h.  */
8898405c8079Smrgint i;
8899405c8079Smrgint
8900138a9f8aSmrgmain (void)
8901405c8079Smrg{
8902405c8079Smrg
8903405c8079Smrg  ;
8904405c8079Smrg  return 0;
8905405c8079Smrg}
8906405c8079Smrg_ACEOF
8907138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
8908138a9f8aSmrgthen :
8909405c8079Smrg  eval $cacheid=yes
8910138a9f8aSmrgelse $as_nop
8911405c8079Smrg  eval $cacheid=no
8912405c8079Smrgfi
8913138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8914405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
8915405c8079Smrgfi
8916405c8079Smrg
8917405c8079Smrg
8918405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8919405c8079Smrg
8920405c8079Smrg		eval supported=\$$cacheid
8921138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8922138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
8923405c8079Smrg		if test "$supported" = "yes" ; then
8924405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8925405c8079Smrg			found="yes"
8926405c8079Smrg		fi
8927405c8079Smrg	fi
8928405c8079Smrg
8929405c8079Smrg
8930405c8079Smrg
8931405c8079Smrg
8932405c8079Smrg
8933405c8079Smrg
8934405c8079Smrg
8935405c8079Smrg
8936405c8079Smrg
8937405c8079Smrg
8938405c8079Smrg
8939405c8079Smrg
8940405c8079Smrg
8941405c8079Smrg
8942405c8079Smrg
8943405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8944405c8079Smrg
8945405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8946405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8947138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8948138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8949138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8950138a9f8aSmrgthen :
8951138a9f8aSmrg  printf %s "(cached) " >&6
8952138a9f8aSmrgelse $as_nop
8953405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954405c8079Smrg/* end confdefs.h.  */
8955405c8079Smrgint i;
8956405c8079Smrg_ACEOF
8957138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
8958138a9f8aSmrgthen :
8959405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8960138a9f8aSmrgelse $as_nop
8961405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8962405c8079Smrgfi
8963138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8964405c8079Smrgfi
8965138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8966138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8967405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8968405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8969405c8079Smrgfi
8970405c8079Smrg
8971405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8972405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8973405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8974405c8079Smrg	fi
8975405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8976138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8977138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8978138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8979138a9f8aSmrgthen :
8980138a9f8aSmrg  printf %s "(cached) " >&6
8981138a9f8aSmrgelse $as_nop
8982405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983405c8079Smrg/* end confdefs.h.  */
8984405c8079Smrgint i;
8985405c8079Smrg_ACEOF
8986138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
8987138a9f8aSmrgthen :
8988405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8989138a9f8aSmrgelse $as_nop
8990405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8991405c8079Smrgfi
8992138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8993405c8079Smrgfi
8994138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8995138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8996405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8997405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8998405c8079Smrgfi
8999405c8079Smrg
9000405c8079Smrgfound="no"
9001405c8079Smrg
9002405c8079Smrg	if test $found = "no" ; then
900380f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9004405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9005405c8079Smrg		fi
9006405c8079Smrg
900780f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9008405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9009405c8079Smrg		fi
9010405c8079Smrg
9011405c8079Smrg		CFLAGS="$CFLAGS -Wnonnull"
9012405c8079Smrg
9013138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9014138a9f8aSmrgprintf %s "checking if $CC supports -Wnonnull... " >&6; }
9015405c8079Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
9016138a9f8aSmrg		if eval test \${$cacheid+y}
9017138a9f8aSmrgthen :
9018138a9f8aSmrg  printf %s "(cached) " >&6
9019138a9f8aSmrgelse $as_nop
9020405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021405c8079Smrg/* end confdefs.h.  */
9022405c8079Smrgint i;
9023405c8079Smrgint
9024138a9f8aSmrgmain (void)
9025405c8079Smrg{
9026405c8079Smrg
9027405c8079Smrg  ;
9028405c8079Smrg  return 0;
9029405c8079Smrg}
9030405c8079Smrg_ACEOF
9031138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
9032138a9f8aSmrgthen :
9033405c8079Smrg  eval $cacheid=yes
9034138a9f8aSmrgelse $as_nop
9035405c8079Smrg  eval $cacheid=no
9036405c8079Smrgfi
9037138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9038405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
9039405c8079Smrgfi
9040405c8079Smrg
9041405c8079Smrg
9042405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9043405c8079Smrg
9044405c8079Smrg		eval supported=\$$cacheid
9045138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9046138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
9047405c8079Smrg		if test "$supported" = "yes" ; then
9048405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9049405c8079Smrg			found="yes"
9050405c8079Smrg		fi
9051405c8079Smrg	fi
9052405c8079Smrg
9053405c8079Smrg
9054405c8079Smrg
9055405c8079Smrg
9056405c8079Smrg
9057405c8079Smrg
9058405c8079Smrg
9059405c8079Smrg
9060405c8079Smrg
9061405c8079Smrg
9062405c8079Smrg
9063405c8079Smrg
9064405c8079Smrg
9065405c8079Smrg
9066405c8079Smrg
9067405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9068405c8079Smrg
9069405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9070405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9071138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9072138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9073138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9074138a9f8aSmrgthen :
9075138a9f8aSmrg  printf %s "(cached) " >&6
9076138a9f8aSmrgelse $as_nop
9077405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078405c8079Smrg/* end confdefs.h.  */
9079405c8079Smrgint i;
9080405c8079Smrg_ACEOF
9081138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
9082138a9f8aSmrgthen :
9083405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9084138a9f8aSmrgelse $as_nop
9085405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9086405c8079Smrgfi
9087138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9088405c8079Smrgfi
9089138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9090138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9091405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9092405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9093405c8079Smrgfi
9094405c8079Smrg
9095405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9096405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9097405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9098405c8079Smrg	fi
9099405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9100138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9101138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9102138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9103138a9f8aSmrgthen :
9104138a9f8aSmrg  printf %s "(cached) " >&6
9105138a9f8aSmrgelse $as_nop
9106405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107405c8079Smrg/* end confdefs.h.  */
9108405c8079Smrgint i;
9109405c8079Smrg_ACEOF
9110138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
9111138a9f8aSmrgthen :
9112405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9113138a9f8aSmrgelse $as_nop
9114405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9115405c8079Smrgfi
9116138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9117405c8079Smrgfi
9118138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9119138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9120405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9121405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9122405c8079Smrgfi
9123405c8079Smrg
9124405c8079Smrgfound="no"
9125405c8079Smrg
9126405c8079Smrg	if test $found = "no" ; then
912780f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9128405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9129405c8079Smrg		fi
9130405c8079Smrg
913180f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9132405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9133405c8079Smrg		fi
9134405c8079Smrg
9135405c8079Smrg		CFLAGS="$CFLAGS -Winit-self"
9136405c8079Smrg
9137138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9138138a9f8aSmrgprintf %s "checking if $CC supports -Winit-self... " >&6; }
9139405c8079Smrg		cacheid=xorg_cv_cc_flag__Winit_self
9140138a9f8aSmrg		if eval test \${$cacheid+y}
9141138a9f8aSmrgthen :
9142138a9f8aSmrg  printf %s "(cached) " >&6
9143138a9f8aSmrgelse $as_nop
9144405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145405c8079Smrg/* end confdefs.h.  */
9146405c8079Smrgint i;
9147405c8079Smrgint
9148138a9f8aSmrgmain (void)
9149405c8079Smrg{
9150405c8079Smrg
9151405c8079Smrg  ;
9152405c8079Smrg  return 0;
9153405c8079Smrg}
9154405c8079Smrg_ACEOF
9155138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
9156138a9f8aSmrgthen :
9157405c8079Smrg  eval $cacheid=yes
9158138a9f8aSmrgelse $as_nop
9159405c8079Smrg  eval $cacheid=no
9160405c8079Smrgfi
9161138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9162405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
9163405c8079Smrgfi
9164405c8079Smrg
9165405c8079Smrg
9166405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9167405c8079Smrg
9168405c8079Smrg		eval supported=\$$cacheid
9169138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9170138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
9171405c8079Smrg		if test "$supported" = "yes" ; then
9172405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9173405c8079Smrg			found="yes"
9174405c8079Smrg		fi
9175405c8079Smrg	fi
9176405c8079Smrg
9177405c8079Smrg
9178405c8079Smrg
9179405c8079Smrg
9180405c8079Smrg
9181405c8079Smrg
9182405c8079Smrg
9183405c8079Smrg
9184405c8079Smrg
9185405c8079Smrg
9186405c8079Smrg
9187405c8079Smrg
9188405c8079Smrg
9189405c8079Smrg
9190405c8079Smrg
9191405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9192405c8079Smrg
9193405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9194405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9195138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9196138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9197138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9198138a9f8aSmrgthen :
9199138a9f8aSmrg  printf %s "(cached) " >&6
9200138a9f8aSmrgelse $as_nop
9201405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202405c8079Smrg/* end confdefs.h.  */
9203405c8079Smrgint i;
9204405c8079Smrg_ACEOF
9205138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
9206138a9f8aSmrgthen :
9207405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9208138a9f8aSmrgelse $as_nop
9209405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9210405c8079Smrgfi
9211138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9212405c8079Smrgfi
9213138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9214138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9215405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9216405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9217405c8079Smrgfi
9218405c8079Smrg
9219405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9220405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9221405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9222405c8079Smrg	fi
9223405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9224138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9225138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9226138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9227138a9f8aSmrgthen :
9228138a9f8aSmrg  printf %s "(cached) " >&6
9229138a9f8aSmrgelse $as_nop
9230405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231405c8079Smrg/* end confdefs.h.  */
9232405c8079Smrgint i;
9233405c8079Smrg_ACEOF
9234138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
9235138a9f8aSmrgthen :
9236405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9237138a9f8aSmrgelse $as_nop
9238405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9239405c8079Smrgfi
9240138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9241405c8079Smrgfi
9242138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9243138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9244405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9245405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9246405c8079Smrgfi
9247405c8079Smrg
9248405c8079Smrgfound="no"
9249405c8079Smrg
9250405c8079Smrg	if test $found = "no" ; then
925180f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9252405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9253405c8079Smrg		fi
9254405c8079Smrg
925580f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9256405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9257405c8079Smrg		fi
9258405c8079Smrg
9259405c8079Smrg		CFLAGS="$CFLAGS -Wmain"
9260405c8079Smrg
9261138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9262138a9f8aSmrgprintf %s "checking if $CC supports -Wmain... " >&6; }
9263405c8079Smrg		cacheid=xorg_cv_cc_flag__Wmain
9264138a9f8aSmrg		if eval test \${$cacheid+y}
9265138a9f8aSmrgthen :
9266138a9f8aSmrg  printf %s "(cached) " >&6
9267138a9f8aSmrgelse $as_nop
9268405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269405c8079Smrg/* end confdefs.h.  */
9270405c8079Smrgint i;
9271405c8079Smrgint
9272138a9f8aSmrgmain (void)
9273405c8079Smrg{
9274405c8079Smrg
9275405c8079Smrg  ;
9276405c8079Smrg  return 0;
9277405c8079Smrg}
9278405c8079Smrg_ACEOF
9279138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
9280138a9f8aSmrgthen :
9281405c8079Smrg  eval $cacheid=yes
9282138a9f8aSmrgelse $as_nop
9283405c8079Smrg  eval $cacheid=no
9284405c8079Smrgfi
9285138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9286405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
9287405c8079Smrgfi
9288405c8079Smrg
9289405c8079Smrg
9290405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9291405c8079Smrg
9292405c8079Smrg		eval supported=\$$cacheid
9293138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9294138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
9295405c8079Smrg		if test "$supported" = "yes" ; then
9296405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9297405c8079Smrg			found="yes"
9298405c8079Smrg		fi
9299405c8079Smrg	fi
9300405c8079Smrg
9301405c8079Smrg
9302405c8079Smrg
9303405c8079Smrg
9304405c8079Smrg
9305405c8079Smrg
9306405c8079Smrg
9307405c8079Smrg
9308405c8079Smrg
9309405c8079Smrg
9310405c8079Smrg
9311405c8079Smrg
9312405c8079Smrg
9313405c8079Smrg
9314405c8079Smrg
9315405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9316405c8079Smrg
9317405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9318405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9319138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9320138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9321138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9322138a9f8aSmrgthen :
9323138a9f8aSmrg  printf %s "(cached) " >&6
9324138a9f8aSmrgelse $as_nop
9325405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326405c8079Smrg/* end confdefs.h.  */
9327405c8079Smrgint i;
9328405c8079Smrg_ACEOF
9329138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
9330138a9f8aSmrgthen :
9331405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9332138a9f8aSmrgelse $as_nop
9333405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9334405c8079Smrgfi
9335138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9336405c8079Smrgfi
9337138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9338138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9339405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9340405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9341405c8079Smrgfi
9342405c8079Smrg
9343405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9344405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9345405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9346405c8079Smrg	fi
9347405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9348138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9349138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9350138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9351138a9f8aSmrgthen :
9352138a9f8aSmrg  printf %s "(cached) " >&6
9353138a9f8aSmrgelse $as_nop
9354405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355405c8079Smrg/* end confdefs.h.  */
9356405c8079Smrgint i;
9357405c8079Smrg_ACEOF
9358138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
9359138a9f8aSmrgthen :
9360405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9361138a9f8aSmrgelse $as_nop
9362405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9363405c8079Smrgfi
9364138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9365405c8079Smrgfi
9366138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9367138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9368405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9369405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9370405c8079Smrgfi
9371405c8079Smrg
9372405c8079Smrgfound="no"
9373405c8079Smrg
9374405c8079Smrg	if test $found = "no" ; then
937580f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9376405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9377405c8079Smrg		fi
9378405c8079Smrg
937980f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9380405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9381405c8079Smrg		fi
9382405c8079Smrg
9383405c8079Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
9384405c8079Smrg
9385138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9386138a9f8aSmrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9387405c8079Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
9388138a9f8aSmrg		if eval test \${$cacheid+y}
9389138a9f8aSmrgthen :
9390138a9f8aSmrg  printf %s "(cached) " >&6
9391138a9f8aSmrgelse $as_nop
9392405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393405c8079Smrg/* end confdefs.h.  */
9394405c8079Smrgint i;
9395405c8079Smrgint
9396138a9f8aSmrgmain (void)
9397405c8079Smrg{
9398405c8079Smrg
9399405c8079Smrg  ;
9400405c8079Smrg  return 0;
9401405c8079Smrg}
9402405c8079Smrg_ACEOF
9403138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
9404138a9f8aSmrgthen :
9405405c8079Smrg  eval $cacheid=yes
9406138a9f8aSmrgelse $as_nop
9407405c8079Smrg  eval $cacheid=no
9408405c8079Smrgfi
9409138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9410405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
9411405c8079Smrgfi
9412405c8079Smrg
9413405c8079Smrg
9414405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9415405c8079Smrg
9416405c8079Smrg		eval supported=\$$cacheid
9417138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9418138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
9419405c8079Smrg		if test "$supported" = "yes" ; then
9420405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9421405c8079Smrg			found="yes"
9422405c8079Smrg		fi
9423405c8079Smrg	fi
9424405c8079Smrg
9425405c8079Smrg
9426405c8079Smrg
9427405c8079Smrg
9428405c8079Smrg
9429405c8079Smrg
9430405c8079Smrg
9431405c8079Smrg
9432405c8079Smrg
9433405c8079Smrg
9434405c8079Smrg
9435405c8079Smrg
9436405c8079Smrg
9437405c8079Smrg
9438405c8079Smrg
9439405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9440405c8079Smrg
9441405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9442405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9443138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9444138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9445138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9446138a9f8aSmrgthen :
9447138a9f8aSmrg  printf %s "(cached) " >&6
9448138a9f8aSmrgelse $as_nop
9449405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450405c8079Smrg/* end confdefs.h.  */
9451405c8079Smrgint i;
9452405c8079Smrg_ACEOF
9453138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
9454138a9f8aSmrgthen :
9455405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9456138a9f8aSmrgelse $as_nop
9457405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9458405c8079Smrgfi
9459138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9460405c8079Smrgfi
9461138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9462138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9463405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9464405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9465405c8079Smrgfi
9466405c8079Smrg
9467405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9468405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9469405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470405c8079Smrg	fi
9471405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9472138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9473138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9474138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9475138a9f8aSmrgthen :
9476138a9f8aSmrg  printf %s "(cached) " >&6
9477138a9f8aSmrgelse $as_nop
9478405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479405c8079Smrg/* end confdefs.h.  */
9480405c8079Smrgint i;
9481405c8079Smrg_ACEOF
9482138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
9483138a9f8aSmrgthen :
9484405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9485138a9f8aSmrgelse $as_nop
9486405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9487405c8079Smrgfi
9488138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9489405c8079Smrgfi
9490138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9491138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9492405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9493405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9494405c8079Smrgfi
9495405c8079Smrg
9496405c8079Smrgfound="no"
9497405c8079Smrg
9498405c8079Smrg	if test $found = "no" ; then
949980f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9500405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9501405c8079Smrg		fi
9502405c8079Smrg
950380f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9504405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9505405c8079Smrg		fi
9506405c8079Smrg
9507405c8079Smrg		CFLAGS="$CFLAGS -Wsequence-point"
9508405c8079Smrg
9509138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9510138a9f8aSmrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; }
9511405c8079Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
9512138a9f8aSmrg		if eval test \${$cacheid+y}
9513138a9f8aSmrgthen :
9514138a9f8aSmrg  printf %s "(cached) " >&6
9515138a9f8aSmrgelse $as_nop
9516405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517405c8079Smrg/* end confdefs.h.  */
9518405c8079Smrgint i;
9519405c8079Smrgint
9520138a9f8aSmrgmain (void)
9521405c8079Smrg{
9522405c8079Smrg
9523405c8079Smrg  ;
9524405c8079Smrg  return 0;
9525405c8079Smrg}
9526405c8079Smrg_ACEOF
9527138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
9528138a9f8aSmrgthen :
9529405c8079Smrg  eval $cacheid=yes
9530138a9f8aSmrgelse $as_nop
9531405c8079Smrg  eval $cacheid=no
9532405c8079Smrgfi
9533138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9534405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
9535405c8079Smrgfi
9536405c8079Smrg
9537405c8079Smrg
9538405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9539405c8079Smrg
9540405c8079Smrg		eval supported=\$$cacheid
9541138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9542138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
9543405c8079Smrg		if test "$supported" = "yes" ; then
9544405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9545405c8079Smrg			found="yes"
9546405c8079Smrg		fi
9547405c8079Smrg	fi
9548405c8079Smrg
9549405c8079Smrg
9550405c8079Smrg
9551405c8079Smrg
9552405c8079Smrg
9553405c8079Smrg
9554405c8079Smrg
9555405c8079Smrg
9556405c8079Smrg
9557405c8079Smrg
9558405c8079Smrg
9559405c8079Smrg
9560405c8079Smrg
9561405c8079Smrg
9562405c8079Smrg
9563405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9564405c8079Smrg
9565405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9566405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9567138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9568138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9569138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9570138a9f8aSmrgthen :
9571138a9f8aSmrg  printf %s "(cached) " >&6
9572138a9f8aSmrgelse $as_nop
9573405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574405c8079Smrg/* end confdefs.h.  */
9575405c8079Smrgint i;
9576405c8079Smrg_ACEOF
9577138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
9578138a9f8aSmrgthen :
9579405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9580138a9f8aSmrgelse $as_nop
9581405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9582405c8079Smrgfi
9583138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9584405c8079Smrgfi
9585138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9586138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9587405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9588405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9589405c8079Smrgfi
9590405c8079Smrg
9591405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9592405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9593405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9594405c8079Smrg	fi
9595405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9596138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9597138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9598138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9599138a9f8aSmrgthen :
9600138a9f8aSmrg  printf %s "(cached) " >&6
9601138a9f8aSmrgelse $as_nop
9602405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603405c8079Smrg/* end confdefs.h.  */
9604405c8079Smrgint i;
9605405c8079Smrg_ACEOF
9606138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
9607138a9f8aSmrgthen :
9608405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9609138a9f8aSmrgelse $as_nop
9610405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9611405c8079Smrgfi
9612138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9613405c8079Smrgfi
9614138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9615138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9616405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9617405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9618405c8079Smrgfi
9619405c8079Smrg
9620405c8079Smrgfound="no"
9621405c8079Smrg
9622405c8079Smrg	if test $found = "no" ; then
962380f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9624405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9625405c8079Smrg		fi
9626405c8079Smrg
962780f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9628405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9629405c8079Smrg		fi
9630405c8079Smrg
9631405c8079Smrg		CFLAGS="$CFLAGS -Wreturn-type"
9632405c8079Smrg
9633138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9634138a9f8aSmrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; }
9635405c8079Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
9636138a9f8aSmrg		if eval test \${$cacheid+y}
9637138a9f8aSmrgthen :
9638138a9f8aSmrg  printf %s "(cached) " >&6
9639138a9f8aSmrgelse $as_nop
9640405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641405c8079Smrg/* end confdefs.h.  */
9642405c8079Smrgint i;
9643405c8079Smrgint
9644138a9f8aSmrgmain (void)
9645405c8079Smrg{
9646405c8079Smrg
9647405c8079Smrg  ;
9648405c8079Smrg  return 0;
9649405c8079Smrg}
9650405c8079Smrg_ACEOF
9651138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
9652138a9f8aSmrgthen :
9653405c8079Smrg  eval $cacheid=yes
9654138a9f8aSmrgelse $as_nop
9655405c8079Smrg  eval $cacheid=no
9656405c8079Smrgfi
9657138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9658405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
9659405c8079Smrgfi
9660405c8079Smrg
9661405c8079Smrg
9662405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9663405c8079Smrg
9664405c8079Smrg		eval supported=\$$cacheid
9665138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9666138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
9667405c8079Smrg		if test "$supported" = "yes" ; then
9668405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9669405c8079Smrg			found="yes"
9670405c8079Smrg		fi
9671405c8079Smrg	fi
9672405c8079Smrg
9673405c8079Smrg
9674405c8079Smrg
9675405c8079Smrg
9676405c8079Smrg
9677405c8079Smrg
9678405c8079Smrg
9679405c8079Smrg
9680405c8079Smrg
9681405c8079Smrg
9682405c8079Smrg
9683405c8079Smrg
9684405c8079Smrg
9685405c8079Smrg
9686405c8079Smrg
9687405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9688405c8079Smrg
9689405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9690405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9691138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9692138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9693138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9694138a9f8aSmrgthen :
9695138a9f8aSmrg  printf %s "(cached) " >&6
9696138a9f8aSmrgelse $as_nop
9697405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698405c8079Smrg/* end confdefs.h.  */
9699405c8079Smrgint i;
9700405c8079Smrg_ACEOF
9701138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
9702138a9f8aSmrgthen :
9703405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9704138a9f8aSmrgelse $as_nop
9705405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9706405c8079Smrgfi
9707138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9708405c8079Smrgfi
9709138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9710138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9711405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9712405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9713405c8079Smrgfi
9714405c8079Smrg
9715405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9716405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9717405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9718405c8079Smrg	fi
9719405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9720138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9721138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9722138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9723138a9f8aSmrgthen :
9724138a9f8aSmrg  printf %s "(cached) " >&6
9725138a9f8aSmrgelse $as_nop
9726405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727405c8079Smrg/* end confdefs.h.  */
9728405c8079Smrgint i;
9729405c8079Smrg_ACEOF
9730138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
9731138a9f8aSmrgthen :
9732405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9733138a9f8aSmrgelse $as_nop
9734405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9735405c8079Smrgfi
9736138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9737405c8079Smrgfi
9738138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9739138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9740405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9741405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9742405c8079Smrgfi
9743405c8079Smrg
9744405c8079Smrgfound="no"
9745405c8079Smrg
9746405c8079Smrg	if test $found = "no" ; then
974780f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9748405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9749405c8079Smrg		fi
9750405c8079Smrg
975180f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9752405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9753405c8079Smrg		fi
9754405c8079Smrg
9755405c8079Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
9756405c8079Smrg
9757138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9758138a9f8aSmrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9759405c8079Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
9760138a9f8aSmrg		if eval test \${$cacheid+y}
9761138a9f8aSmrgthen :
9762138a9f8aSmrg  printf %s "(cached) " >&6
9763138a9f8aSmrgelse $as_nop
9764405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765405c8079Smrg/* end confdefs.h.  */
9766405c8079Smrgint i;
9767405c8079Smrgint
9768138a9f8aSmrgmain (void)
9769405c8079Smrg{
9770405c8079Smrg
9771405c8079Smrg  ;
9772405c8079Smrg  return 0;
9773405c8079Smrg}
9774405c8079Smrg_ACEOF
9775138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
9776138a9f8aSmrgthen :
9777405c8079Smrg  eval $cacheid=yes
9778138a9f8aSmrgelse $as_nop
9779405c8079Smrg  eval $cacheid=no
9780405c8079Smrgfi
9781138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9782405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
9783405c8079Smrgfi
9784405c8079Smrg
9785405c8079Smrg
9786405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9787405c8079Smrg
9788405c8079Smrg		eval supported=\$$cacheid
9789138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9790138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
9791405c8079Smrg		if test "$supported" = "yes" ; then
9792405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9793405c8079Smrg			found="yes"
9794405c8079Smrg		fi
9795405c8079Smrg	fi
9796405c8079Smrg
9797405c8079Smrg
9798405c8079Smrg
9799405c8079Smrg
9800405c8079Smrg
9801405c8079Smrg
9802405c8079Smrg
9803405c8079Smrg
9804405c8079Smrg
9805405c8079Smrg
9806405c8079Smrg
9807405c8079Smrg
9808405c8079Smrg
9809405c8079Smrg
9810405c8079Smrg
9811405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9812405c8079Smrg
9813405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9814405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9815138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9816138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9817138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9818138a9f8aSmrgthen :
9819138a9f8aSmrg  printf %s "(cached) " >&6
9820138a9f8aSmrgelse $as_nop
9821405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822405c8079Smrg/* end confdefs.h.  */
9823405c8079Smrgint i;
9824405c8079Smrg_ACEOF
9825138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
9826138a9f8aSmrgthen :
9827405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9828138a9f8aSmrgelse $as_nop
9829405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9830405c8079Smrgfi
9831138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9832405c8079Smrgfi
9833138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9834138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9835405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9836405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9837405c8079Smrgfi
9838405c8079Smrg
9839405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9840405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9841405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9842405c8079Smrg	fi
9843405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9844138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9845138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9846138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9847138a9f8aSmrgthen :
9848138a9f8aSmrg  printf %s "(cached) " >&6
9849138a9f8aSmrgelse $as_nop
9850405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851405c8079Smrg/* end confdefs.h.  */
9852405c8079Smrgint i;
9853405c8079Smrg_ACEOF
9854138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
9855138a9f8aSmrgthen :
9856405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9857138a9f8aSmrgelse $as_nop
9858405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9859405c8079Smrgfi
9860138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9861405c8079Smrgfi
9862138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9863138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9864405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9865405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9866405c8079Smrgfi
9867405c8079Smrg
9868405c8079Smrgfound="no"
9869405c8079Smrg
9870405c8079Smrg	if test $found = "no" ; then
987180f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9872405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9873405c8079Smrg		fi
9874405c8079Smrg
987580f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9876405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9877405c8079Smrg		fi
9878405c8079Smrg
9879405c8079Smrg		CFLAGS="$CFLAGS -Warray-bounds"
9880405c8079Smrg
9881138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9882138a9f8aSmrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; }
9883405c8079Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
9884138a9f8aSmrg		if eval test \${$cacheid+y}
9885138a9f8aSmrgthen :
9886138a9f8aSmrg  printf %s "(cached) " >&6
9887138a9f8aSmrgelse $as_nop
9888405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9889405c8079Smrg/* end confdefs.h.  */
9890405c8079Smrgint i;
9891405c8079Smrgint
9892138a9f8aSmrgmain (void)
9893405c8079Smrg{
9894405c8079Smrg
9895405c8079Smrg  ;
9896405c8079Smrg  return 0;
9897405c8079Smrg}
9898405c8079Smrg_ACEOF
9899138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
9900138a9f8aSmrgthen :
9901405c8079Smrg  eval $cacheid=yes
9902138a9f8aSmrgelse $as_nop
9903405c8079Smrg  eval $cacheid=no
9904405c8079Smrgfi
9905138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9906405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
9907405c8079Smrgfi
9908405c8079Smrg
9909405c8079Smrg
9910405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9911405c8079Smrg
9912405c8079Smrg		eval supported=\$$cacheid
9913138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9914138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
9915405c8079Smrg		if test "$supported" = "yes" ; then
9916405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9917405c8079Smrg			found="yes"
9918405c8079Smrg		fi
9919405c8079Smrg	fi
9920405c8079Smrg
9921405c8079Smrg
9922405c8079Smrg
9923405c8079Smrg
9924405c8079Smrg
9925405c8079Smrg
9926405c8079Smrg
9927405c8079Smrg
9928405c8079Smrg
9929405c8079Smrg
9930405c8079Smrg
9931405c8079Smrg
9932405c8079Smrg
9933405c8079Smrg
9934405c8079Smrg
9935405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9936405c8079Smrg
9937405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9938405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9939138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9940138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9941138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9942138a9f8aSmrgthen :
9943138a9f8aSmrg  printf %s "(cached) " >&6
9944138a9f8aSmrgelse $as_nop
9945405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9946405c8079Smrg/* end confdefs.h.  */
9947405c8079Smrgint i;
9948405c8079Smrg_ACEOF
9949138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
9950138a9f8aSmrgthen :
9951405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9952138a9f8aSmrgelse $as_nop
9953405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9954405c8079Smrgfi
9955138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9956405c8079Smrgfi
9957138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9958138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9959405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9960405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9961405c8079Smrgfi
9962405c8079Smrg
9963405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9964405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9965405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9966405c8079Smrg	fi
9967405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9968138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9969138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9970138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9971138a9f8aSmrgthen :
9972138a9f8aSmrg  printf %s "(cached) " >&6
9973138a9f8aSmrgelse $as_nop
9974405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975405c8079Smrg/* end confdefs.h.  */
9976405c8079Smrgint i;
9977405c8079Smrg_ACEOF
9978138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
9979138a9f8aSmrgthen :
9980405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9981138a9f8aSmrgelse $as_nop
9982405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9983405c8079Smrgfi
9984138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9985405c8079Smrgfi
9986138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9987138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9988405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9989405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9990405c8079Smrgfi
9991405c8079Smrg
9992405c8079Smrgfound="no"
9993405c8079Smrg
9994405c8079Smrg	if test $found = "no" ; then
999580f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9996405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9997405c8079Smrg		fi
9998405c8079Smrg
999980f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10000405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10001405c8079Smrg		fi
10002405c8079Smrg
10003405c8079Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
10004405c8079Smrg
10005138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10006138a9f8aSmrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10007405c8079Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
10008138a9f8aSmrg		if eval test \${$cacheid+y}
10009138a9f8aSmrgthen :
10010138a9f8aSmrg  printf %s "(cached) " >&6
10011138a9f8aSmrgelse $as_nop
10012405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013405c8079Smrg/* end confdefs.h.  */
10014405c8079Smrgint i;
10015405c8079Smrgint
10016138a9f8aSmrgmain (void)
10017405c8079Smrg{
10018405c8079Smrg
10019405c8079Smrg  ;
10020405c8079Smrg  return 0;
10021405c8079Smrg}
10022405c8079Smrg_ACEOF
10023138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
10024138a9f8aSmrgthen :
10025405c8079Smrg  eval $cacheid=yes
10026138a9f8aSmrgelse $as_nop
10027405c8079Smrg  eval $cacheid=no
10028405c8079Smrgfi
10029138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10030405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
10031405c8079Smrgfi
10032405c8079Smrg
10033405c8079Smrg
10034405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10035405c8079Smrg
10036405c8079Smrg		eval supported=\$$cacheid
10037138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10038138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
10039405c8079Smrg		if test "$supported" = "yes" ; then
10040405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10041405c8079Smrg			found="yes"
10042405c8079Smrg		fi
10043405c8079Smrg	fi
10044405c8079Smrg
10045405c8079Smrg
10046405c8079Smrg
10047405c8079Smrg
10048405c8079Smrg
10049405c8079Smrg
10050405c8079Smrg
10051405c8079Smrg
10052405c8079Smrg
10053405c8079Smrg
10054405c8079Smrg
10055405c8079Smrg
10056405c8079Smrg
10057405c8079Smrg
10058405c8079Smrg
10059405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10060405c8079Smrg
10061405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10062405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10063138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10064138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10065138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10066138a9f8aSmrgthen :
10067138a9f8aSmrg  printf %s "(cached) " >&6
10068138a9f8aSmrgelse $as_nop
10069405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10070405c8079Smrg/* end confdefs.h.  */
10071405c8079Smrgint i;
10072405c8079Smrg_ACEOF
10073138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
10074138a9f8aSmrgthen :
10075405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10076138a9f8aSmrgelse $as_nop
10077405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10078405c8079Smrgfi
10079138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10080405c8079Smrgfi
10081138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10082138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10083405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10084405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10085405c8079Smrgfi
10086405c8079Smrg
10087405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10088405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10089405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10090405c8079Smrg	fi
10091405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10092138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10093138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10094138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10095138a9f8aSmrgthen :
10096138a9f8aSmrg  printf %s "(cached) " >&6
10097138a9f8aSmrgelse $as_nop
10098405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099405c8079Smrg/* end confdefs.h.  */
10100405c8079Smrgint i;
10101405c8079Smrg_ACEOF
10102138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
10103138a9f8aSmrgthen :
10104405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10105138a9f8aSmrgelse $as_nop
10106405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10107405c8079Smrgfi
10108138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10109405c8079Smrgfi
10110138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10111138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10112405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10113405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10114405c8079Smrgfi
10115405c8079Smrg
10116405c8079Smrgfound="no"
10117405c8079Smrg
10118405c8079Smrg	if test $found = "no" ; then
1011980f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10120405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10121405c8079Smrg		fi
10122405c8079Smrg
1012380f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10124405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10125405c8079Smrg		fi
10126405c8079Smrg
10127405c8079Smrg		CFLAGS="$CFLAGS -Waddress"
10128405c8079Smrg
10129138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10130138a9f8aSmrgprintf %s "checking if $CC supports -Waddress... " >&6; }
10131405c8079Smrg		cacheid=xorg_cv_cc_flag__Waddress
10132138a9f8aSmrg		if eval test \${$cacheid+y}
10133138a9f8aSmrgthen :
10134138a9f8aSmrg  printf %s "(cached) " >&6
10135138a9f8aSmrgelse $as_nop
10136405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137405c8079Smrg/* end confdefs.h.  */
10138405c8079Smrgint i;
10139405c8079Smrgint
10140138a9f8aSmrgmain (void)
10141405c8079Smrg{
10142405c8079Smrg
10143405c8079Smrg  ;
10144405c8079Smrg  return 0;
10145405c8079Smrg}
10146405c8079Smrg_ACEOF
10147138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
10148138a9f8aSmrgthen :
10149405c8079Smrg  eval $cacheid=yes
10150138a9f8aSmrgelse $as_nop
10151405c8079Smrg  eval $cacheid=no
10152405c8079Smrgfi
10153138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10154405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
10155405c8079Smrgfi
10156405c8079Smrg
10157405c8079Smrg
10158405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10159405c8079Smrg
10160405c8079Smrg		eval supported=\$$cacheid
10161138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10162138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
10163405c8079Smrg		if test "$supported" = "yes" ; then
10164405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10165405c8079Smrg			found="yes"
10166405c8079Smrg		fi
10167405c8079Smrg	fi
10168405c8079Smrg
10169405c8079Smrg
10170405c8079Smrg
10171405c8079Smrg
10172405c8079Smrg
10173405c8079Smrg
10174405c8079Smrg
10175405c8079Smrg
10176405c8079Smrg
10177405c8079Smrg
10178405c8079Smrg
10179405c8079Smrg
10180405c8079Smrg
10181405c8079Smrg
10182405c8079Smrg
10183405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10184405c8079Smrg
10185405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10186405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10187138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10188138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10189138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10190138a9f8aSmrgthen :
10191138a9f8aSmrg  printf %s "(cached) " >&6
10192138a9f8aSmrgelse $as_nop
10193405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194405c8079Smrg/* end confdefs.h.  */
10195405c8079Smrgint i;
10196405c8079Smrg_ACEOF
10197138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
10198138a9f8aSmrgthen :
10199405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10200138a9f8aSmrgelse $as_nop
10201405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10202405c8079Smrgfi
10203138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10204405c8079Smrgfi
10205138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10206138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10207405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10208405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10209405c8079Smrgfi
10210405c8079Smrg
10211405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10212405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10213405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10214405c8079Smrg	fi
10215405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10216138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10217138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10218138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10219138a9f8aSmrgthen :
10220138a9f8aSmrg  printf %s "(cached) " >&6
10221138a9f8aSmrgelse $as_nop
10222405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223405c8079Smrg/* end confdefs.h.  */
10224405c8079Smrgint i;
10225405c8079Smrg_ACEOF
10226138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
10227138a9f8aSmrgthen :
10228405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10229138a9f8aSmrgelse $as_nop
10230405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10231405c8079Smrgfi
10232138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10233405c8079Smrgfi
10234138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10235138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10236405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10237405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10238405c8079Smrgfi
10239405c8079Smrg
10240405c8079Smrgfound="no"
10241405c8079Smrg
10242405c8079Smrg	if test $found = "no" ; then
1024380f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10244405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10245405c8079Smrg		fi
10246405c8079Smrg
1024780f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10248405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10249405c8079Smrg		fi
10250405c8079Smrg
10251405c8079Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10252405c8079Smrg
10253138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10254138a9f8aSmrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10255405c8079Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10256138a9f8aSmrg		if eval test \${$cacheid+y}
10257138a9f8aSmrgthen :
10258138a9f8aSmrg  printf %s "(cached) " >&6
10259138a9f8aSmrgelse $as_nop
10260405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261405c8079Smrg/* end confdefs.h.  */
10262405c8079Smrgint i;
10263405c8079Smrgint
10264138a9f8aSmrgmain (void)
10265405c8079Smrg{
10266405c8079Smrg
10267405c8079Smrg  ;
10268405c8079Smrg  return 0;
10269405c8079Smrg}
10270405c8079Smrg_ACEOF
10271138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
10272138a9f8aSmrgthen :
10273405c8079Smrg  eval $cacheid=yes
10274138a9f8aSmrgelse $as_nop
10275405c8079Smrg  eval $cacheid=no
10276405c8079Smrgfi
10277138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10278405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
10279405c8079Smrgfi
10280405c8079Smrg
10281405c8079Smrg
10282405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10283405c8079Smrg
10284405c8079Smrg		eval supported=\$$cacheid
10285138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10286138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
10287405c8079Smrg		if test "$supported" = "yes" ; then
10288405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10289405c8079Smrg			found="yes"
10290405c8079Smrg		fi
10291405c8079Smrg	fi
10292405c8079Smrg
10293405c8079Smrg
10294405c8079Smrg
10295405c8079Smrg
10296405c8079Smrg
10297405c8079Smrg
10298405c8079Smrg
10299405c8079Smrg
10300405c8079Smrg
10301405c8079Smrg
10302405c8079Smrg
10303405c8079Smrg
10304405c8079Smrg
10305405c8079Smrg
10306405c8079Smrg
10307405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10308405c8079Smrg
10309405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10310405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10311138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10312138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10313138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10314138a9f8aSmrgthen :
10315138a9f8aSmrg  printf %s "(cached) " >&6
10316138a9f8aSmrgelse $as_nop
10317405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10318405c8079Smrg/* end confdefs.h.  */
10319405c8079Smrgint i;
10320405c8079Smrg_ACEOF
10321138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
10322138a9f8aSmrgthen :
10323405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10324138a9f8aSmrgelse $as_nop
10325405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10326405c8079Smrgfi
10327138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10328405c8079Smrgfi
10329138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10330138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10331405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10332405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10333405c8079Smrgfi
10334405c8079Smrg
10335405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10336405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10337405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10338405c8079Smrg	fi
10339405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10340138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10341138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10342138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10343138a9f8aSmrgthen :
10344138a9f8aSmrg  printf %s "(cached) " >&6
10345138a9f8aSmrgelse $as_nop
10346405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347405c8079Smrg/* end confdefs.h.  */
10348405c8079Smrgint i;
10349405c8079Smrg_ACEOF
10350138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
10351138a9f8aSmrgthen :
10352405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10353138a9f8aSmrgelse $as_nop
10354405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10355405c8079Smrgfi
10356138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10357405c8079Smrgfi
10358138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10359138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10360405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10361405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10362405c8079Smrgfi
10363405c8079Smrg
10364405c8079Smrgfound="no"
10365405c8079Smrg
10366405c8079Smrg	if test $found = "no" ; then
1036780f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10368405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10369405c8079Smrg		fi
10370405c8079Smrg
1037180f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10372405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10373405c8079Smrg		fi
10374405c8079Smrg
10375405c8079Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10376405c8079Smrg
10377138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10378138a9f8aSmrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10379405c8079Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10380138a9f8aSmrg		if eval test \${$cacheid+y}
10381138a9f8aSmrgthen :
10382138a9f8aSmrg  printf %s "(cached) " >&6
10383138a9f8aSmrgelse $as_nop
10384405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385405c8079Smrg/* end confdefs.h.  */
10386405c8079Smrgint i;
10387405c8079Smrgint
10388138a9f8aSmrgmain (void)
10389405c8079Smrg{
10390405c8079Smrg
10391405c8079Smrg  ;
10392405c8079Smrg  return 0;
10393405c8079Smrg}
10394405c8079Smrg_ACEOF
10395138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
10396138a9f8aSmrgthen :
10397405c8079Smrg  eval $cacheid=yes
10398138a9f8aSmrgelse $as_nop
10399405c8079Smrg  eval $cacheid=no
10400405c8079Smrgfi
10401138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10402405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
10403405c8079Smrgfi
10404405c8079Smrg
10405405c8079Smrg
10406405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10407405c8079Smrg
10408405c8079Smrg		eval supported=\$$cacheid
10409138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10410138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
10411405c8079Smrg		if test "$supported" = "yes" ; then
10412405c8079Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10413405c8079Smrg			found="yes"
10414405c8079Smrg		fi
10415405c8079Smrg	fi
10416405c8079Smrg
10417405c8079Smrg
10418405c8079Smrgfi
10419405c8079Smrg
10420405c8079Smrg
10421405c8079Smrg
10422405c8079Smrg
10423405c8079Smrg
10424405c8079Smrg
10425405c8079Smrg
10426405c8079Smrg		CWARNFLAGS="$BASE_CFLAGS"
10427405c8079Smrg		if  test "x$GCC" = xyes ; then
10428405c8079Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10429405c8079Smrg		fi
10430405c8079Smrg
10431405c8079Smrg
10432405c8079Smrg
10433405c8079Smrg
10434405c8079Smrg
10435405c8079Smrg
10436405c8079Smrg
10437405c8079Smrg
10438405c8079Smrg# Check whether --enable-strict-compilation was given.
10439138a9f8aSmrgif test ${enable_strict_compilation+y}
10440138a9f8aSmrgthen :
10441405c8079Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10442138a9f8aSmrgelse $as_nop
10443405c8079Smrg  STRICT_COMPILE=no
10444405c8079Smrgfi
10445405c8079Smrg
10446405c8079Smrg
10447405c8079Smrg
10448405c8079Smrg
10449405c8079Smrg
10450405c8079Smrg
10451405c8079SmrgSTRICT_CFLAGS=""
10452405c8079Smrg
10453405c8079Smrg
10454405c8079Smrg
10455405c8079Smrg
10456405c8079Smrg
10457405c8079Smrg
10458405c8079Smrg
10459405c8079Smrg
10460405c8079Smrg
10461405c8079Smrg
10462405c8079Smrg
10463405c8079Smrg
10464405c8079Smrg
10465405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10466405c8079Smrg
10467405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10468405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10469138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10470138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10471138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10472138a9f8aSmrgthen :
10473138a9f8aSmrg  printf %s "(cached) " >&6
10474138a9f8aSmrgelse $as_nop
10475405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476405c8079Smrg/* end confdefs.h.  */
10477405c8079Smrgint i;
10478405c8079Smrg_ACEOF
10479138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
10480138a9f8aSmrgthen :
10481405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10482138a9f8aSmrgelse $as_nop
10483405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10484405c8079Smrgfi
10485138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10486405c8079Smrgfi
10487138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10488138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10489405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10490405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10491405c8079Smrgfi
10492405c8079Smrg
10493405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10494405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10495405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10496405c8079Smrg	fi
10497405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10498138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10499138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10500138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10501138a9f8aSmrgthen :
10502138a9f8aSmrg  printf %s "(cached) " >&6
10503138a9f8aSmrgelse $as_nop
10504405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505405c8079Smrg/* end confdefs.h.  */
10506405c8079Smrgint i;
10507405c8079Smrg_ACEOF
10508138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
10509138a9f8aSmrgthen :
10510405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10511138a9f8aSmrgelse $as_nop
10512405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10513405c8079Smrgfi
10514138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10515405c8079Smrgfi
10516138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10517138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10518405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10519405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10520405c8079Smrgfi
10521405c8079Smrg
10522405c8079Smrgfound="no"
10523405c8079Smrg
10524405c8079Smrg	if test $found = "no" ; then
1052580f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10526405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10527405c8079Smrg		fi
10528405c8079Smrg
1052980f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10530405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10531405c8079Smrg		fi
10532405c8079Smrg
10533405c8079Smrg		CFLAGS="$CFLAGS -pedantic"
10534405c8079Smrg
10535138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10536138a9f8aSmrgprintf %s "checking if $CC supports -pedantic... " >&6; }
10537405c8079Smrg		cacheid=xorg_cv_cc_flag__pedantic
10538138a9f8aSmrg		if eval test \${$cacheid+y}
10539138a9f8aSmrgthen :
10540138a9f8aSmrg  printf %s "(cached) " >&6
10541138a9f8aSmrgelse $as_nop
10542405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543405c8079Smrg/* end confdefs.h.  */
10544405c8079Smrgint i;
10545405c8079Smrgint
10546138a9f8aSmrgmain (void)
10547405c8079Smrg{
10548405c8079Smrg
10549405c8079Smrg  ;
10550405c8079Smrg  return 0;
10551405c8079Smrg}
10552405c8079Smrg_ACEOF
10553138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
10554138a9f8aSmrgthen :
10555405c8079Smrg  eval $cacheid=yes
10556138a9f8aSmrgelse $as_nop
10557405c8079Smrg  eval $cacheid=no
10558405c8079Smrgfi
10559138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10560405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
10561405c8079Smrgfi
10562405c8079Smrg
10563405c8079Smrg
10564405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10565405c8079Smrg
10566405c8079Smrg		eval supported=\$$cacheid
10567138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10568138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
10569405c8079Smrg		if test "$supported" = "yes" ; then
10570405c8079Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10571405c8079Smrg			found="yes"
10572405c8079Smrg		fi
10573405c8079Smrg	fi
10574405c8079Smrg
10575405c8079Smrg
10576405c8079Smrg
10577405c8079Smrg
10578405c8079Smrg
10579405c8079Smrg
10580405c8079Smrg
10581405c8079Smrg
10582405c8079Smrg
10583405c8079Smrg
10584405c8079Smrg
10585405c8079Smrg
10586405c8079Smrg
10587405c8079Smrg
10588405c8079Smrg
10589405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10590405c8079Smrg
10591405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10592405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10593138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10594138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10595138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10596138a9f8aSmrgthen :
10597138a9f8aSmrg  printf %s "(cached) " >&6
10598138a9f8aSmrgelse $as_nop
10599405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10600405c8079Smrg/* end confdefs.h.  */
10601405c8079Smrgint i;
10602405c8079Smrg_ACEOF
10603138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
10604138a9f8aSmrgthen :
10605405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10606138a9f8aSmrgelse $as_nop
10607405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10608405c8079Smrgfi
10609138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10610405c8079Smrgfi
10611138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10612138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10613405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10614405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10615405c8079Smrgfi
10616405c8079Smrg
10617405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10618405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10619405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10620405c8079Smrg	fi
10621405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10622138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10623138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10624138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10625138a9f8aSmrgthen :
10626138a9f8aSmrg  printf %s "(cached) " >&6
10627138a9f8aSmrgelse $as_nop
10628405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629405c8079Smrg/* end confdefs.h.  */
10630405c8079Smrgint i;
10631405c8079Smrg_ACEOF
10632138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
10633138a9f8aSmrgthen :
10634405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10635138a9f8aSmrgelse $as_nop
10636405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10637405c8079Smrgfi
10638138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10639405c8079Smrgfi
10640138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10641138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10642405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10643405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10644405c8079Smrgfi
10645405c8079Smrg
10646405c8079Smrgfound="no"
10647405c8079Smrg
10648405c8079Smrg	if test $found = "no" ; then
1064980f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10650405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10651405c8079Smrg		fi
10652405c8079Smrg
1065380f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10654405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10655405c8079Smrg		fi
10656405c8079Smrg
10657405c8079Smrg		CFLAGS="$CFLAGS -Werror"
10658405c8079Smrg
10659138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10660138a9f8aSmrgprintf %s "checking if $CC supports -Werror... " >&6; }
10661405c8079Smrg		cacheid=xorg_cv_cc_flag__Werror
10662138a9f8aSmrg		if eval test \${$cacheid+y}
10663138a9f8aSmrgthen :
10664138a9f8aSmrg  printf %s "(cached) " >&6
10665138a9f8aSmrgelse $as_nop
10666405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667405c8079Smrg/* end confdefs.h.  */
10668405c8079Smrgint i;
10669405c8079Smrgint
10670138a9f8aSmrgmain (void)
10671405c8079Smrg{
10672405c8079Smrg
10673405c8079Smrg  ;
10674405c8079Smrg  return 0;
10675405c8079Smrg}
10676405c8079Smrg_ACEOF
10677138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
10678138a9f8aSmrgthen :
10679405c8079Smrg  eval $cacheid=yes
10680138a9f8aSmrgelse $as_nop
10681405c8079Smrg  eval $cacheid=no
10682405c8079Smrgfi
10683138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10684405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
10685405c8079Smrgfi
10686405c8079Smrg
10687405c8079Smrg
10688405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10689405c8079Smrg
10690405c8079Smrg		eval supported=\$$cacheid
10691138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10692138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
10693405c8079Smrg		if test "$supported" = "yes" ; then
10694405c8079Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10695405c8079Smrg			found="yes"
10696405c8079Smrg		fi
10697405c8079Smrg	fi
10698405c8079Smrg
10699405c8079Smrg	if test $found = "no" ; then
1070080f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10701405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10702405c8079Smrg		fi
10703405c8079Smrg
1070480f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10705405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10706405c8079Smrg		fi
10707405c8079Smrg
10708405c8079Smrg		CFLAGS="$CFLAGS -errwarn"
10709405c8079Smrg
10710138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10711138a9f8aSmrgprintf %s "checking if $CC supports -errwarn... " >&6; }
10712405c8079Smrg		cacheid=xorg_cv_cc_flag__errwarn
10713138a9f8aSmrg		if eval test \${$cacheid+y}
10714138a9f8aSmrgthen :
10715138a9f8aSmrg  printf %s "(cached) " >&6
10716138a9f8aSmrgelse $as_nop
10717405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718405c8079Smrg/* end confdefs.h.  */
10719405c8079Smrgint i;
10720405c8079Smrgint
10721138a9f8aSmrgmain (void)
10722405c8079Smrg{
10723405c8079Smrg
10724405c8079Smrg  ;
10725405c8079Smrg  return 0;
10726405c8079Smrg}
10727405c8079Smrg_ACEOF
10728138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
10729138a9f8aSmrgthen :
10730405c8079Smrg  eval $cacheid=yes
10731138a9f8aSmrgelse $as_nop
10732405c8079Smrg  eval $cacheid=no
10733405c8079Smrgfi
10734138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10735405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
10736405c8079Smrgfi
10737405c8079Smrg
10738405c8079Smrg
10739405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10740405c8079Smrg
10741405c8079Smrg		eval supported=\$$cacheid
10742138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10743138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
10744405c8079Smrg		if test "$supported" = "yes" ; then
10745405c8079Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10746405c8079Smrg			found="yes"
10747405c8079Smrg		fi
10748405c8079Smrg	fi
10749405c8079Smrg
10750405c8079Smrg
10751405c8079Smrg
10752405c8079Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10753405c8079Smrg# activate it with -Werror, so we add it here explicitly.
10754405c8079Smrg
10755405c8079Smrg
10756405c8079Smrg
10757405c8079Smrg
10758405c8079Smrg
10759405c8079Smrg
10760405c8079Smrg
10761405c8079Smrg
10762405c8079Smrg
10763405c8079Smrg
10764405c8079Smrg
10765405c8079Smrg
10766405c8079Smrg
10767405c8079Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10768405c8079Smrg
10769405c8079Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10770405c8079Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10771138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10772138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10773138a9f8aSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10774138a9f8aSmrgthen :
10775138a9f8aSmrg  printf %s "(cached) " >&6
10776138a9f8aSmrgelse $as_nop
10777405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778405c8079Smrg/* end confdefs.h.  */
10779405c8079Smrgint i;
10780405c8079Smrg_ACEOF
10781138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
10782138a9f8aSmrgthen :
10783405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10784138a9f8aSmrgelse $as_nop
10785405c8079Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10786405c8079Smrgfi
10787138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10788405c8079Smrgfi
10789138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10790138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10791405c8079Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10792405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10793405c8079Smrgfi
10794405c8079Smrg
10795405c8079Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10796405c8079Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10797405c8079Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10798405c8079Smrg	fi
10799405c8079Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10800138a9f8aSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10801138a9f8aSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10802138a9f8aSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10803138a9f8aSmrgthen :
10804138a9f8aSmrg  printf %s "(cached) " >&6
10805138a9f8aSmrgelse $as_nop
10806405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807405c8079Smrg/* end confdefs.h.  */
10808405c8079Smrgint i;
10809405c8079Smrg_ACEOF
10810138a9f8aSmrgif ac_fn_c_try_compile "$LINENO"
10811138a9f8aSmrgthen :
10812405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10813138a9f8aSmrgelse $as_nop
10814405c8079Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10815405c8079Smrgfi
10816138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10817405c8079Smrgfi
10818138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10819138a9f8aSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10820405c8079Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10821405c8079Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10822405c8079Smrgfi
10823405c8079Smrg
10824405c8079Smrgfound="no"
10825405c8079Smrg
10826405c8079Smrg	if test $found = "no" ; then
1082780f56f3aSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10828405c8079Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10829405c8079Smrg		fi
10830405c8079Smrg
1083180f56f3aSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10832405c8079Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10833405c8079Smrg		fi
10834405c8079Smrg
10835405c8079Smrg		CFLAGS="$CFLAGS -Werror=attributes"
10836405c8079Smrg
10837138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10838138a9f8aSmrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; }
1083980f56f3aSmrg		cacheid=xorg_cv_cc_flag__Werror_attributes
10840138a9f8aSmrg		if eval test \${$cacheid+y}
10841138a9f8aSmrgthen :
10842138a9f8aSmrg  printf %s "(cached) " >&6
10843138a9f8aSmrgelse $as_nop
10844405c8079Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845405c8079Smrg/* end confdefs.h.  */
10846405c8079Smrgint i;
10847405c8079Smrgint
10848138a9f8aSmrgmain (void)
10849405c8079Smrg{
10850405c8079Smrg
10851405c8079Smrg  ;
10852405c8079Smrg  return 0;
10853405c8079Smrg}
10854405c8079Smrg_ACEOF
10855138a9f8aSmrgif ac_fn_c_try_link "$LINENO"
10856138a9f8aSmrgthen :
10857405c8079Smrg  eval $cacheid=yes
10858138a9f8aSmrgelse $as_nop
10859405c8079Smrg  eval $cacheid=no
10860405c8079Smrgfi
10861138a9f8aSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10862405c8079Smrg    conftest$ac_exeext conftest.$ac_ext
10863405c8079Smrgfi
10864405c8079Smrg
10865405c8079Smrg
10866405c8079Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10867405c8079Smrg
10868405c8079Smrg		eval supported=\$$cacheid
10869138a9f8aSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10870138a9f8aSmrgprintf "%s\n" "$supported" >&6; }
10871405c8079Smrg		if test "$supported" = "yes" ; then
10872405c8079Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10873405c8079Smrg			found="yes"
10874405c8079Smrg		fi
10875405c8079Smrg	fi
10876405c8079Smrg
10877405c8079Smrg
10878405c8079Smrg
10879405c8079Smrgif test "x$STRICT_COMPILE" = "xyes"; then
10880405c8079Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10881405c8079Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10882405c8079Smrgfi
10883405c8079Smrg
10884405c8079Smrg
1088544af7230Smrg
1088644af7230Smrg
1088744af7230Smrg
1088844af7230Smrg
1088944af7230Smrgcat >>confdefs.h <<_ACEOF
1089044af7230Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
1089144af7230Smrg_ACEOF
1089244af7230Smrg
1089344af7230Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
1089444af7230Smrg	if test "x$PVM" = "x"; then
1089544af7230Smrg		PVM="0"
1089644af7230Smrg	fi
1089744af7230Smrg
10898138a9f8aSmrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
1089944af7230Smrg
1090044af7230Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
1090144af7230Smrg	if test "x$PVP" = "x"; then
1090244af7230Smrg		PVP="0"
1090344af7230Smrg	fi
1090444af7230Smrg
10905138a9f8aSmrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
1090644af7230Smrg
1090744af7230Smrg
1090844af7230Smrg
10909138a9f8aSmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
109102d1d20fcSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10911138a9f8aSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10912138a9f8aSmrgtouch \$(top_srcdir)/ChangeLog; \
10913138a9f8aSmrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
1091444af7230Smrg
109152d1d20fcSmrg
109162d1d20fcSmrg
109172d1d20fcSmrg
109182d1d20fcSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
109192d1d20fcSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
109202d1d20fcSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10921138a9f8aSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10922138a9f8aSmrgtouch \$(top_srcdir)/INSTALL; \
10923138a9f8aSmrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10924138a9f8aSmrg
109252d1d20fcSmrg
1092644af7230Smrg
1092744af7230Smrg
1092844af7230Smrg
1092944af7230Smrg
10930138a9f8aSmrgcase $host_os in
10931138a9f8aSmrg    solaris*)
10932138a9f8aSmrg        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10933138a9f8aSmrg        # check for a man page file found in later versions that use
10934138a9f8aSmrg        # traditional section numbers instead
10935138a9f8aSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10936138a9f8aSmrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10937138a9f8aSmrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10938138a9f8aSmrgthen :
10939138a9f8aSmrg  printf %s "(cached) " >&6
10940138a9f8aSmrgelse $as_nop
10941138a9f8aSmrg  test "$cross_compiling" = yes &&
10942138a9f8aSmrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10943138a9f8aSmrgif test -r "/usr/share/man/man7/attributes.7"; then
10944138a9f8aSmrg  ac_cv_file__usr_share_man_man7_attributes_7=yes
10945138a9f8aSmrgelse
10946138a9f8aSmrg  ac_cv_file__usr_share_man_man7_attributes_7=no
10947138a9f8aSmrgfi
10948138a9f8aSmrgfi
10949138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10950138a9f8aSmrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10951138a9f8aSmrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10952138a9f8aSmrgthen :
10953138a9f8aSmrg  SYSV_MAN_SECTIONS=false
10954138a9f8aSmrgelse $as_nop
10955138a9f8aSmrg  SYSV_MAN_SECTIONS=true
10956138a9f8aSmrgfi
10957138a9f8aSmrg
10958138a9f8aSmrg        ;;
10959138a9f8aSmrg    *) SYSV_MAN_SECTIONS=false ;;
10960138a9f8aSmrgesac
1096144af7230Smrg
1096244af7230Smrgif test x$APP_MAN_SUFFIX = x    ; then
1096344af7230Smrg    APP_MAN_SUFFIX=1
1096444af7230Smrgfi
1096544af7230Smrgif test x$APP_MAN_DIR = x    ; then
1096644af7230Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
1096744af7230Smrgfi
1096844af7230Smrg
1096944af7230Smrgif test x$LIB_MAN_SUFFIX = x    ; then
1097044af7230Smrg    LIB_MAN_SUFFIX=3
1097144af7230Smrgfi
1097244af7230Smrgif test x$LIB_MAN_DIR = x    ; then
1097344af7230Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
1097444af7230Smrgfi
1097544af7230Smrg
1097644af7230Smrgif test x$FILE_MAN_SUFFIX = x    ; then
10977138a9f8aSmrg    case $SYSV_MAN_SECTIONS in
10978138a9f8aSmrg	true)				FILE_MAN_SUFFIX=4  ;;
10979d71d4977Smrg	*)				FILE_MAN_SUFFIX=5  ;;
1098044af7230Smrg    esac
1098144af7230Smrgfi
1098244af7230Smrgif test x$FILE_MAN_DIR = x    ; then
1098344af7230Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
1098444af7230Smrgfi
1098544af7230Smrg
1098644af7230Smrgif test x$MISC_MAN_SUFFIX = x    ; then
10987138a9f8aSmrg    case $SYSV_MAN_SECTIONS in
10988138a9f8aSmrg	true)				MISC_MAN_SUFFIX=5  ;;
10989d71d4977Smrg	*)				MISC_MAN_SUFFIX=7  ;;
1099044af7230Smrg    esac
1099144af7230Smrgfi
1099244af7230Smrgif test x$MISC_MAN_DIR = x    ; then
1099344af7230Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
1099444af7230Smrgfi
1099544af7230Smrg
1099644af7230Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
10997138a9f8aSmrg    case $SYSV_MAN_SECTIONS in
10998138a9f8aSmrg	true)				DRIVER_MAN_SUFFIX=7  ;;
10999d71d4977Smrg	*)				DRIVER_MAN_SUFFIX=4  ;;
1100044af7230Smrg    esac
1100144af7230Smrgfi
1100244af7230Smrgif test x$DRIVER_MAN_DIR = x    ; then
1100344af7230Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
1100444af7230Smrgfi
1100544af7230Smrg
1100644af7230Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
11007138a9f8aSmrg    case $SYSV_MAN_SECTIONS in
11008138a9f8aSmrg	true)				ADMIN_MAN_SUFFIX=1m ;;
11009d71d4977Smrg	*)				ADMIN_MAN_SUFFIX=8  ;;
1101044af7230Smrg    esac
1101144af7230Smrgfi
1101244af7230Smrgif test x$ADMIN_MAN_DIR = x    ; then
1101344af7230Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
1101444af7230Smrgfi
1101544af7230Smrg
1101644af7230Smrg
1101744af7230Smrg
1101844af7230Smrg
1101944af7230Smrg
1102044af7230Smrg
1102144af7230Smrg
1102244af7230Smrg
1102344af7230Smrg
1102444af7230Smrg
1102544af7230Smrg
1102644af7230Smrg
1102744af7230Smrg
1102844af7230Smrg
1102944af7230Smrg
110302d1d20fcSmrgXORG_MAN_PAGE="X Version 11"
1103144af7230Smrg
110322d1d20fcSmrgMAN_SUBSTS="\
110332d1d20fcSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
110342d1d20fcSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
110352d1d20fcSmrg	-e 's|__xservername__|Xorg|g' \
110362d1d20fcSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
110372d1d20fcSmrg	-e 's|__projectroot__|\$(prefix)|g' \
110382d1d20fcSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
110392d1d20fcSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
110402d1d20fcSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
110412d1d20fcSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
110422d1d20fcSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
110432d1d20fcSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
110442d1d20fcSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
1104544af7230Smrg
110468ae04fa6Smrg
110478ae04fa6Smrg
110482d1d20fcSmrg# Check whether --enable-silent-rules was given.
11049138a9f8aSmrgif test ${enable_silent_rules+y}
11050138a9f8aSmrgthen :
110512d1d20fcSmrg  enableval=$enable_silent_rules;
110528ae04fa6Smrgfi
110538ae04fa6Smrg
1105480f56f3aSmrgcase $enable_silent_rules in # (((
1105580f56f3aSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
1105680f56f3aSmrg   no) AM_DEFAULT_VERBOSITY=1;;
1105780f56f3aSmrg    *) AM_DEFAULT_VERBOSITY=0;;
110582d1d20fcSmrgesac
1105980f56f3aSmrgam_make=${MAKE-make}
11060138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11061138a9f8aSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
11062138a9f8aSmrgif test ${am_cv_make_support_nested_variables+y}
11063138a9f8aSmrgthen :
11064138a9f8aSmrg  printf %s "(cached) " >&6
11065138a9f8aSmrgelse $as_nop
11066138a9f8aSmrg  if printf "%s\n" 'TRUE=$(BAR$(V))
1106780f56f3aSmrgBAR0=false
1106880f56f3aSmrgBAR1=true
1106980f56f3aSmrgV=1
1107080f56f3aSmrgam__doit:
1107180f56f3aSmrg	@$(TRUE)
1107280f56f3aSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
1107380f56f3aSmrg  am_cv_make_support_nested_variables=yes
1107480f56f3aSmrgelse
1107580f56f3aSmrg  am_cv_make_support_nested_variables=no
1107680f56f3aSmrgfi
1107780f56f3aSmrgfi
11078138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11079138a9f8aSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
1108080f56f3aSmrgif test $am_cv_make_support_nested_variables = yes; then
1108180f56f3aSmrg    AM_V='$(V)'
1108280f56f3aSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1108380f56f3aSmrgelse
1108480f56f3aSmrg  AM_V=$AM_DEFAULT_VERBOSITY
1108580f56f3aSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1108680f56f3aSmrgfi
110872d1d20fcSmrgAM_BACKSLASH='\'
110882d1d20fcSmrg
110892d1d20fcSmrg
110902d1d20fcSmrg
110912d1d20fcSmrg# Checks for pkg-config packages
110922d1d20fcSmrg
1109344af7230Smrgpkg_failed=no
11094138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XVINFO" >&5
11095138a9f8aSmrgprintf %s "checking for XVINFO... " >&6; }
1109644af7230Smrg
1109744af7230Smrgif test -n "$XVINFO_CFLAGS"; then
1109844af7230Smrg    pkg_cv_XVINFO_CFLAGS="$XVINFO_CFLAGS"
1109944af7230Smrg elif test -n "$PKG_CONFIG"; then
1110044af7230Smrg    if test -n "$PKG_CONFIG" && \
11101138a9f8aSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xv x11 xproto >= 7.0.25\""; } >&5
1110280f56f3aSmrg  ($PKG_CONFIG --exists --print-errors "xv x11 xproto >= 7.0.25") 2>&5
1110344af7230Smrg  ac_status=$?
11104138a9f8aSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
111052d1d20fcSmrg  test $ac_status = 0; }; then
1110680f56f3aSmrg  pkg_cv_XVINFO_CFLAGS=`$PKG_CONFIG --cflags "xv x11 xproto >= 7.0.25" 2>/dev/null`
11107d71d4977Smrg		      test "x$?" != "x0" && pkg_failed=yes
1110844af7230Smrgelse
1110944af7230Smrg  pkg_failed=yes
111108ae04fa6Smrgfi
1111144af7230Smrg else
1111244af7230Smrg    pkg_failed=untried
111138ae04fa6Smrgfi
1111444af7230Smrgif test -n "$XVINFO_LIBS"; then
1111544af7230Smrg    pkg_cv_XVINFO_LIBS="$XVINFO_LIBS"
1111644af7230Smrg elif test -n "$PKG_CONFIG"; then
1111744af7230Smrg    if test -n "$PKG_CONFIG" && \
11118138a9f8aSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xv x11 xproto >= 7.0.25\""; } >&5
1111980f56f3aSmrg  ($PKG_CONFIG --exists --print-errors "xv x11 xproto >= 7.0.25") 2>&5
1112044af7230Smrg  ac_status=$?
11121138a9f8aSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
111222d1d20fcSmrg  test $ac_status = 0; }; then
1112380f56f3aSmrg  pkg_cv_XVINFO_LIBS=`$PKG_CONFIG --libs "xv x11 xproto >= 7.0.25" 2>/dev/null`
11124d71d4977Smrg		      test "x$?" != "x0" && pkg_failed=yes
1112544af7230Smrgelse
1112644af7230Smrg  pkg_failed=yes
111278ae04fa6Smrgfi
1112844af7230Smrg else
1112944af7230Smrg    pkg_failed=untried
111308ae04fa6Smrgfi
111318ae04fa6Smrg
111328ae04fa6Smrg
111338ae04fa6Smrg
1113444af7230Smrgif test $pkg_failed = yes; then
11135138a9f8aSmrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136138a9f8aSmrgprintf "%s\n" "no" >&6; }
111378ae04fa6Smrg
1113844af7230Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1113944af7230Smrg        _pkg_short_errors_supported=yes
1114044af7230Smrgelse
1114144af7230Smrg        _pkg_short_errors_supported=no
1114244af7230Smrgfi
1114344af7230Smrg        if test $_pkg_short_errors_supported = yes; then
11144d71d4977Smrg	        XVINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xv x11 xproto >= 7.0.25" 2>&1`
1114544af7230Smrg        else
11146d71d4977Smrg	        XVINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xv x11 xproto >= 7.0.25" 2>&1`
1114744af7230Smrg        fi
1114844af7230Smrg	# Put the nasty error message in config.log where it belongs
1114944af7230Smrg	echo "$XVINFO_PKG_ERRORS" >&5
111508ae04fa6Smrg
1115180f56f3aSmrg	as_fn_error $? "Package requirements (xv x11 xproto >= 7.0.25) were not met:
111528ae04fa6Smrg
1115344af7230Smrg$XVINFO_PKG_ERRORS
111548ae04fa6Smrg
1115544af7230SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
1115644af7230Smrginstalled software in a non-standard prefix.
111578ae04fa6Smrg
1115844af7230SmrgAlternatively, you may set the environment variables XVINFO_CFLAGS
1115944af7230Smrgand XVINFO_LIBS to avoid the need to call pkg-config.
11160d71d4977SmrgSee the pkg-config man page for more details." "$LINENO" 5
1116144af7230Smrgelif test $pkg_failed = untried; then
11162138a9f8aSmrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163138a9f8aSmrgprintf "%s\n" "no" >&6; }
11164138a9f8aSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11165138a9f8aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
111662d1d20fcSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
1116744af7230Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
1116844af7230Smrgpath to pkg-config.
111698ae04fa6Smrg
1117044af7230SmrgAlternatively, you may set the environment variables XVINFO_CFLAGS
1117144af7230Smrgand XVINFO_LIBS to avoid the need to call pkg-config.
1117244af7230SmrgSee the pkg-config man page for more details.
111738ae04fa6Smrg
1117444af7230SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
111752d1d20fcSmrgSee \`config.log' for more details" "$LINENO" 5; }
111768ae04fa6Smrgelse
1117744af7230Smrg	XVINFO_CFLAGS=$pkg_cv_XVINFO_CFLAGS
1117844af7230Smrg	XVINFO_LIBS=$pkg_cv_XVINFO_LIBS
11179138a9f8aSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11180138a9f8aSmrgprintf "%s\n" "yes" >&6; }
11181d71d4977Smrg
111828ae04fa6Smrgfi
111838ae04fa6Smrg
11184405c8079Smrgac_config_files="$ac_config_files Makefile man/Makefile"
111858ae04fa6Smrg
111868ae04fa6Smrgcat >confcache <<\_ACEOF
111878ae04fa6Smrg# This file is a shell script that caches the results of configure
111888ae04fa6Smrg# tests run on this system so they can be shared between configure
111898ae04fa6Smrg# scripts and configure runs, see configure's option --config-cache.
111908ae04fa6Smrg# It is not useful on other systems.  If it contains results you don't
111918ae04fa6Smrg# want to keep, you may remove or edit it.
111928ae04fa6Smrg#
111938ae04fa6Smrg# config.status only pays attention to the cache file if you give it
111948ae04fa6Smrg# the --recheck option to rerun configure.
111958ae04fa6Smrg#
111968ae04fa6Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
111978ae04fa6Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
111988ae04fa6Smrg# following values.
111998ae04fa6Smrg
112008ae04fa6Smrg_ACEOF
112018ae04fa6Smrg
112028ae04fa6Smrg# The following way of writing the cache mishandles newlines in values,
112038ae04fa6Smrg# but we know of no workaround that is simple, portable, and efficient.
112048ae04fa6Smrg# So, we kill variables containing newlines.
112058ae04fa6Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
112068ae04fa6Smrg# and sets the high bit in the cache file unless we assign to the vars.
112078ae04fa6Smrg(
112088ae04fa6Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
112098ae04fa6Smrg    eval ac_val=\$$ac_var
112108ae04fa6Smrg    case $ac_val in #(
112118ae04fa6Smrg    *${as_nl}*)
112128ae04fa6Smrg      case $ac_var in #(
11213138a9f8aSmrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11214138a9f8aSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
112158ae04fa6Smrg      esac
112168ae04fa6Smrg      case $ac_var in #(
112178ae04fa6Smrg      _ | IFS | as_nl) ;; #(
1121844af7230Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
112192d1d20fcSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
112208ae04fa6Smrg      esac ;;
112218ae04fa6Smrg    esac
112228ae04fa6Smrg  done
112238ae04fa6Smrg
112248ae04fa6Smrg  (set) 2>&1 |
112258ae04fa6Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
112268ae04fa6Smrg    *${as_nl}ac_space=\ *)
112272d1d20fcSmrg      # `set' does not quote correctly, so add quotes: double-quote
112282d1d20fcSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
112298ae04fa6Smrg      sed -n \
112308ae04fa6Smrg	"s/'/'\\\\''/g;
112318ae04fa6Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
112328ae04fa6Smrg      ;; #(
112338ae04fa6Smrg    *)
112348ae04fa6Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
112358ae04fa6Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
112368ae04fa6Smrg      ;;
112378ae04fa6Smrg    esac |
112388ae04fa6Smrg    sort
112398ae04fa6Smrg) |
112408ae04fa6Smrg  sed '
112418ae04fa6Smrg     /^ac_cv_env_/b end
112428ae04fa6Smrg     t clear
112438ae04fa6Smrg     :clear
11244138a9f8aSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
112458ae04fa6Smrg     t end
112468ae04fa6Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
112478ae04fa6Smrg     :end' >>confcache
112488ae04fa6Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
112498ae04fa6Smrg  if test -w "$cache_file"; then
112502d1d20fcSmrg    if test "x$cache_file" != "x/dev/null"; then
11251138a9f8aSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11252138a9f8aSmrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
112532d1d20fcSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
112542d1d20fcSmrg	cat confcache >"$cache_file"
112552d1d20fcSmrg      else
112562d1d20fcSmrg        case $cache_file in #(
112572d1d20fcSmrg        */* | ?:*)
112582d1d20fcSmrg	  mv -f confcache "$cache_file"$$ &&
112592d1d20fcSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
112602d1d20fcSmrg        *)
112612d1d20fcSmrg	  mv -f confcache "$cache_file" ;;
112622d1d20fcSmrg	esac
112632d1d20fcSmrg      fi
112642d1d20fcSmrg    fi
112658ae04fa6Smrg  else
11266138a9f8aSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11267138a9f8aSmrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
112688ae04fa6Smrg  fi
112698ae04fa6Smrgfi
112708ae04fa6Smrgrm -f confcache
112718ae04fa6Smrg
112728ae04fa6Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
112738ae04fa6Smrg# Let make expand exec_prefix.
112748ae04fa6Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
112758ae04fa6Smrg
112768ae04fa6SmrgDEFS=-DHAVE_CONFIG_H
112778ae04fa6Smrg
112788ae04fa6Smrgac_libobjs=
112798ae04fa6Smrgac_ltlibobjs=
112802d1d20fcSmrgU=
112818ae04fa6Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
112828ae04fa6Smrg  # 1. Remove the extension, and $U if already installed.
112838ae04fa6Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11284138a9f8aSmrg  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
112858ae04fa6Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
112868ae04fa6Smrg  #    will be set to the directory where LIBOBJS objects are built.
112872d1d20fcSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
112882d1d20fcSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
112898ae04fa6Smrgdone
112908ae04fa6SmrgLIBOBJS=$ac_libobjs
112918ae04fa6Smrg
112928ae04fa6SmrgLTLIBOBJS=$ac_ltlibobjs
112938ae04fa6Smrg
112948ae04fa6Smrg
11295138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11296138a9f8aSmrgprintf %s "checking that generated files are newer than configure... " >&6; }
1129780f56f3aSmrg   if test -n "$am_sleep_pid"; then
1129880f56f3aSmrg     # Hide warnings about reused PIDs.
1129980f56f3aSmrg     wait $am_sleep_pid 2>/dev/null
1130080f56f3aSmrg   fi
11301138a9f8aSmrg   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11302138a9f8aSmrgprintf "%s\n" "done" >&6; }
1130344af7230Smrg if test -n "$EXEEXT"; then
1130444af7230Smrg  am__EXEEXT_TRUE=
1130544af7230Smrg  am__EXEEXT_FALSE='#'
1130644af7230Smrgelse
1130744af7230Smrg  am__EXEEXT_TRUE='#'
1130844af7230Smrg  am__EXEEXT_FALSE=
1130944af7230Smrgfi
1131044af7230Smrg
113118ae04fa6Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
113122d1d20fcSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
113132d1d20fcSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
113148ae04fa6Smrgfi
113158ae04fa6Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
113162d1d20fcSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
113172d1d20fcSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
113188ae04fa6Smrgfi
113198ae04fa6Smrg
113202d1d20fcSmrg: "${CONFIG_STATUS=./config.status}"
1132144af7230Smrgac_write_fail=0
113228ae04fa6Smrgac_clean_files_save=$ac_clean_files
113238ae04fa6Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
11324138a9f8aSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11325138a9f8aSmrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
113262d1d20fcSmrgas_write_fail=0
113272d1d20fcSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
113288ae04fa6Smrg#! $SHELL
113298ae04fa6Smrg# Generated by $as_me.
113308ae04fa6Smrg# Run this file to recreate the current configuration.
113318ae04fa6Smrg# Compiler output produced by configure, useful for debugging
113328ae04fa6Smrg# configure, is in config.log if it exists.
113338ae04fa6Smrg
113348ae04fa6Smrgdebug=false
113358ae04fa6Smrgac_cs_recheck=false
113368ae04fa6Smrgac_cs_silent=false
113378ae04fa6Smrg
113382d1d20fcSmrgSHELL=\${CONFIG_SHELL-$SHELL}
113392d1d20fcSmrgexport SHELL
113402d1d20fcSmrg_ASEOF
113412d1d20fcSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
113422d1d20fcSmrg## -------------------- ##
113432d1d20fcSmrg## M4sh Initialization. ##
113442d1d20fcSmrg## -------------------- ##
113458ae04fa6Smrg
113468ae04fa6Smrg# Be more Bourne compatible
113478ae04fa6SmrgDUALCASE=1; export DUALCASE # for MKS sh
11348138a9f8aSmrgas_nop=:
11349138a9f8aSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11350138a9f8aSmrgthen :
113518ae04fa6Smrg  emulate sh
113528ae04fa6Smrg  NULLCMD=:
1135344af7230Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
113548ae04fa6Smrg  # is contrary to our usage.  Disable this feature.
113558ae04fa6Smrg  alias -g '${1+"$@"}'='"$@"'
113568ae04fa6Smrg  setopt NO_GLOB_SUBST
11357138a9f8aSmrgelse $as_nop
113582d1d20fcSmrg  case `(set -o) 2>/dev/null` in #(
113592d1d20fcSmrg  *posix*) :
113602d1d20fcSmrg    set -o posix ;; #(
113612d1d20fcSmrg  *) :
113622d1d20fcSmrg     ;;
113638ae04fa6Smrgesac
113648ae04fa6Smrgfi
113658ae04fa6Smrg
113668ae04fa6Smrg
11367138a9f8aSmrg
11368138a9f8aSmrg# Reset variables that may have inherited troublesome values from
11369138a9f8aSmrg# the environment.
11370138a9f8aSmrg
11371138a9f8aSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
11372138a9f8aSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
11373138a9f8aSmrg# side effect of setting IFS to empty, thus disabling word splitting.)
11374138a9f8aSmrg# Quoting is to prevent editors from complaining about space-tab.
1137544af7230Smrgas_nl='
1137644af7230Smrg'
1137744af7230Smrgexport as_nl
11378138a9f8aSmrgIFS=" ""	$as_nl"
11379138a9f8aSmrg
11380138a9f8aSmrgPS1='$ '
11381138a9f8aSmrgPS2='> '
11382138a9f8aSmrgPS4='+ '
11383138a9f8aSmrg
11384138a9f8aSmrg# Ensure predictable behavior from utilities with locale-dependent output.
11385138a9f8aSmrgLC_ALL=C
11386138a9f8aSmrgexport LC_ALL
11387138a9f8aSmrgLANGUAGE=C
11388138a9f8aSmrgexport LANGUAGE
11389138a9f8aSmrg
11390138a9f8aSmrg# We cannot yet rely on "unset" to work, but we need these variables
11391138a9f8aSmrg# to be unset--not just set to an empty or harmless value--now, to
11392138a9f8aSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11393138a9f8aSmrg# also avoids known problems related to "unset" and subshell syntax
11394138a9f8aSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11395138a9f8aSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11396138a9f8aSmrgdo eval test \${$as_var+y} \
11397138a9f8aSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11398138a9f8aSmrgdone
11399138a9f8aSmrg
11400138a9f8aSmrg# Ensure that fds 0, 1, and 2 are open.
11401138a9f8aSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11402138a9f8aSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11403138a9f8aSmrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
1140444af7230Smrg
1140544af7230Smrg# The user is always right.
11406138a9f8aSmrgif ${PATH_SEPARATOR+false} :; then
1140744af7230Smrg  PATH_SEPARATOR=:
1140844af7230Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
1140944af7230Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
1141044af7230Smrg      PATH_SEPARATOR=';'
1141144af7230Smrg  }
114128ae04fa6Smrgfi
114138ae04fa6Smrg
114148ae04fa6Smrg
114158ae04fa6Smrg# Find who we are.  Look in the path if we contain no directory separator.
114162d1d20fcSmrgas_myself=
114172d1d20fcSmrgcase $0 in #((
114188ae04fa6Smrg  *[\\/]* ) as_myself=$0 ;;
114198ae04fa6Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114208ae04fa6Smrgfor as_dir in $PATH
114218ae04fa6Smrgdo
114228ae04fa6Smrg  IFS=$as_save_IFS
11423138a9f8aSmrg  case $as_dir in #(((
11424138a9f8aSmrg    '') as_dir=./ ;;
11425138a9f8aSmrg    */) ;;
11426138a9f8aSmrg    *) as_dir=$as_dir/ ;;
11427138a9f8aSmrg  esac
11428138a9f8aSmrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
114292d1d20fcSmrg  done
114308ae04fa6SmrgIFS=$as_save_IFS
114318ae04fa6Smrg
114328ae04fa6Smrg     ;;
114338ae04fa6Smrgesac
114348ae04fa6Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
114358ae04fa6Smrg# in which case we are not to be found in the path.
114368ae04fa6Smrgif test "x$as_myself" = x; then
114378ae04fa6Smrg  as_myself=$0
114388ae04fa6Smrgfi
114398ae04fa6Smrgif test ! -f "$as_myself"; then
11440138a9f8aSmrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114412d1d20fcSmrg  exit 1
114428ae04fa6Smrgfi
114438ae04fa6Smrg
114442d1d20fcSmrg
114452d1d20fcSmrg
114462d1d20fcSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
114472d1d20fcSmrg# ----------------------------------------
114482d1d20fcSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
114492d1d20fcSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
114502d1d20fcSmrg# script with STATUS, using 1 if that was 0.
114512d1d20fcSmrgas_fn_error ()
114522d1d20fcSmrg{
114532d1d20fcSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
114542d1d20fcSmrg  if test "$4"; then
114552d1d20fcSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11456138a9f8aSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
114572d1d20fcSmrg  fi
11458138a9f8aSmrg  printf "%s\n" "$as_me: error: $2" >&2
114592d1d20fcSmrg  as_fn_exit $as_status
114602d1d20fcSmrg} # as_fn_error
114612d1d20fcSmrg
114622d1d20fcSmrg
11463138a9f8aSmrg
114642d1d20fcSmrg# as_fn_set_status STATUS
114652d1d20fcSmrg# -----------------------
114662d1d20fcSmrg# Set $? to STATUS, without forking.
114672d1d20fcSmrgas_fn_set_status ()
114682d1d20fcSmrg{
114692d1d20fcSmrg  return $1
114702d1d20fcSmrg} # as_fn_set_status
114712d1d20fcSmrg
114722d1d20fcSmrg# as_fn_exit STATUS
114732d1d20fcSmrg# -----------------
114742d1d20fcSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
114752d1d20fcSmrgas_fn_exit ()
114762d1d20fcSmrg{
114772d1d20fcSmrg  set +e
114782d1d20fcSmrg  as_fn_set_status $1
114792d1d20fcSmrg  exit $1
114802d1d20fcSmrg} # as_fn_exit
114812d1d20fcSmrg
114822d1d20fcSmrg# as_fn_unset VAR
114832d1d20fcSmrg# ---------------
114842d1d20fcSmrg# Portably unset VAR.
114852d1d20fcSmrgas_fn_unset ()
114862d1d20fcSmrg{
114872d1d20fcSmrg  { eval $1=; unset $1;}
114882d1d20fcSmrg}
114892d1d20fcSmrgas_unset=as_fn_unset
11490138a9f8aSmrg
114912d1d20fcSmrg# as_fn_append VAR VALUE
114922d1d20fcSmrg# ----------------------
114932d1d20fcSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
114942d1d20fcSmrg# advantage of any shell optimizations that allow amortized linear growth over
114952d1d20fcSmrg# repeated appends, instead of the typical quadratic growth present in naive
114962d1d20fcSmrg# implementations.
11497138a9f8aSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11498138a9f8aSmrgthen :
114992d1d20fcSmrg  eval 'as_fn_append ()
115002d1d20fcSmrg  {
115012d1d20fcSmrg    eval $1+=\$2
115022d1d20fcSmrg  }'
11503138a9f8aSmrgelse $as_nop
115042d1d20fcSmrg  as_fn_append ()
115052d1d20fcSmrg  {
115062d1d20fcSmrg    eval $1=\$$1\$2
115072d1d20fcSmrg  }
115082d1d20fcSmrgfi # as_fn_append
115092d1d20fcSmrg
115102d1d20fcSmrg# as_fn_arith ARG...
115112d1d20fcSmrg# ------------------
115122d1d20fcSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
115132d1d20fcSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
115142d1d20fcSmrg# must be portable across $(()) and expr.
11515138a9f8aSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11516138a9f8aSmrgthen :
115172d1d20fcSmrg  eval 'as_fn_arith ()
115182d1d20fcSmrg  {
115192d1d20fcSmrg    as_val=$(( $* ))
115202d1d20fcSmrg  }'
11521138a9f8aSmrgelse $as_nop
115222d1d20fcSmrg  as_fn_arith ()
115232d1d20fcSmrg  {
115242d1d20fcSmrg    as_val=`expr "$@" || test $? -eq 1`
115252d1d20fcSmrg  }
115262d1d20fcSmrgfi # as_fn_arith
115272d1d20fcSmrg
115282d1d20fcSmrg
115298ae04fa6Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
115308ae04fa6Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
115318ae04fa6Smrg  as_expr=expr
115328ae04fa6Smrgelse
115338ae04fa6Smrg  as_expr=false
115348ae04fa6Smrgfi
115358ae04fa6Smrg
115368ae04fa6Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
115378ae04fa6Smrg  as_basename=basename
115388ae04fa6Smrgelse
115398ae04fa6Smrg  as_basename=false
115408ae04fa6Smrgfi
115418ae04fa6Smrg
115422d1d20fcSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
115432d1d20fcSmrg  as_dirname=dirname
115442d1d20fcSmrgelse
115452d1d20fcSmrg  as_dirname=false
115462d1d20fcSmrgfi
115478ae04fa6Smrg
115488ae04fa6Smrgas_me=`$as_basename -- "$0" ||
115498ae04fa6Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
115508ae04fa6Smrg	 X"$0" : 'X\(//\)$' \| \
115518ae04fa6Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11552138a9f8aSmrgprintf "%s\n" X/"$0" |
115538ae04fa6Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
115548ae04fa6Smrg	    s//\1/
115558ae04fa6Smrg	    q
115568ae04fa6Smrg	  }
115578ae04fa6Smrg	  /^X\/\(\/\/\)$/{
115588ae04fa6Smrg	    s//\1/
115598ae04fa6Smrg	    q
115608ae04fa6Smrg	  }
115618ae04fa6Smrg	  /^X\/\(\/\).*/{
115628ae04fa6Smrg	    s//\1/
115638ae04fa6Smrg	    q
115648ae04fa6Smrg	  }
115658ae04fa6Smrg	  s/.*/./; q'`
115668ae04fa6Smrg
115672d1d20fcSmrg# Avoid depending upon Character Ranges.
115682d1d20fcSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
115692d1d20fcSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
115702d1d20fcSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
115712d1d20fcSmrgas_cr_digits='0123456789'
115722d1d20fcSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
115738ae04fa6Smrg
11574138a9f8aSmrg
11575138a9f8aSmrg# Determine whether it's possible to make 'echo' print without a newline.
11576138a9f8aSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11577138a9f8aSmrg# for compatibility with existing Makefiles.
115788ae04fa6SmrgECHO_C= ECHO_N= ECHO_T=
115792d1d20fcSmrgcase `echo -n x` in #(((((
115808ae04fa6Smrg-n*)
115812d1d20fcSmrg  case `echo 'xy\c'` in
115828ae04fa6Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
115832d1d20fcSmrg  xy)  ECHO_C='\c';;
115842d1d20fcSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
115852d1d20fcSmrg       ECHO_T='	';;
115868ae04fa6Smrg  esac;;
115878ae04fa6Smrg*)
115888ae04fa6Smrg  ECHO_N='-n';;
115898ae04fa6Smrgesac
115908ae04fa6Smrg
11591138a9f8aSmrg# For backward compatibility with old third-party macros, we provide
11592138a9f8aSmrg# the shell variables $as_echo and $as_echo_n.  New code should use
11593138a9f8aSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11594138a9f8aSmrgas_echo='printf %s\n'
11595138a9f8aSmrgas_echo_n='printf %s'
11596138a9f8aSmrg
115978ae04fa6Smrgrm -f conf$$ conf$$.exe conf$$.file
115988ae04fa6Smrgif test -d conf$$.dir; then
115998ae04fa6Smrg  rm -f conf$$.dir/conf$$.file
116008ae04fa6Smrgelse
116018ae04fa6Smrg  rm -f conf$$.dir
1160244af7230Smrg  mkdir conf$$.dir 2>/dev/null
1160344af7230Smrgfi
1160444af7230Smrgif (echo >conf$$.file) 2>/dev/null; then
1160544af7230Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
1160644af7230Smrg    as_ln_s='ln -s'
1160744af7230Smrg    # ... but there are two gotchas:
1160844af7230Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
1160944af7230Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1161080f56f3aSmrg    # In both cases, we have to default to `cp -pR'.
1161144af7230Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1161280f56f3aSmrg      as_ln_s='cp -pR'
1161344af7230Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
1161444af7230Smrg    as_ln_s=ln
1161544af7230Smrg  else
1161680f56f3aSmrg    as_ln_s='cp -pR'
1161744af7230Smrg  fi
116188ae04fa6Smrgelse
1161980f56f3aSmrg  as_ln_s='cp -pR'
116208ae04fa6Smrgfi
116218ae04fa6Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
116228ae04fa6Smrgrmdir conf$$.dir 2>/dev/null
116238ae04fa6Smrg
116242d1d20fcSmrg
116252d1d20fcSmrg# as_fn_mkdir_p
116262d1d20fcSmrg# -------------
116272d1d20fcSmrg# Create "$as_dir" as a directory, including parents if necessary.
116282d1d20fcSmrgas_fn_mkdir_p ()
116292d1d20fcSmrg{
116302d1d20fcSmrg
116312d1d20fcSmrg  case $as_dir in #(
116322d1d20fcSmrg  -*) as_dir=./$as_dir;;
116332d1d20fcSmrg  esac
116342d1d20fcSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
116352d1d20fcSmrg    as_dirs=
116362d1d20fcSmrg    while :; do
116372d1d20fcSmrg      case $as_dir in #(
11638138a9f8aSmrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
116392d1d20fcSmrg      *) as_qdir=$as_dir;;
116402d1d20fcSmrg      esac
116412d1d20fcSmrg      as_dirs="'$as_qdir' $as_dirs"
116422d1d20fcSmrg      as_dir=`$as_dirname -- "$as_dir" ||
116432d1d20fcSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
116442d1d20fcSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
116452d1d20fcSmrg	 X"$as_dir" : 'X\(//\)$' \| \
116462d1d20fcSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11647138a9f8aSmrgprintf "%s\n" X"$as_dir" |
116482d1d20fcSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
116492d1d20fcSmrg	    s//\1/
116502d1d20fcSmrg	    q
116512d1d20fcSmrg	  }
116522d1d20fcSmrg	  /^X\(\/\/\)[^/].*/{
116532d1d20fcSmrg	    s//\1/
116542d1d20fcSmrg	    q
116552d1d20fcSmrg	  }
116562d1d20fcSmrg	  /^X\(\/\/\)$/{
116572d1d20fcSmrg	    s//\1/
116582d1d20fcSmrg	    q
116592d1d20fcSmrg	  }
116602d1d20fcSmrg	  /^X\(\/\).*/{
116612d1d20fcSmrg	    s//\1/
116622d1d20fcSmrg	    q
116632d1d20fcSmrg	  }
116642d1d20fcSmrg	  s/.*/./; q'`
116652d1d20fcSmrg      test -d "$as_dir" && break
116662d1d20fcSmrg    done
116672d1d20fcSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
116682d1d20fcSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
116692d1d20fcSmrg
116702d1d20fcSmrg
116712d1d20fcSmrg} # as_fn_mkdir_p
116728ae04fa6Smrgif mkdir -p . 2>/dev/null; then
116732d1d20fcSmrg  as_mkdir_p='mkdir -p "$as_dir"'
116748ae04fa6Smrgelse
116758ae04fa6Smrg  test -d ./-p && rmdir ./-p
116768ae04fa6Smrg  as_mkdir_p=false
116778ae04fa6Smrgfi
116788ae04fa6Smrg
1167980f56f3aSmrg
1168080f56f3aSmrg# as_fn_executable_p FILE
1168180f56f3aSmrg# -----------------------
1168280f56f3aSmrg# Test if FILE is an executable regular file.
1168380f56f3aSmrgas_fn_executable_p ()
1168480f56f3aSmrg{
1168580f56f3aSmrg  test -f "$1" && test -x "$1"
1168680f56f3aSmrg} # as_fn_executable_p
1168780f56f3aSmrgas_test_x='test -x'
1168880f56f3aSmrgas_executable_p=as_fn_executable_p
116898ae04fa6Smrg
116908ae04fa6Smrg# Sed expression to map a string onto a valid CPP name.
116918ae04fa6Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
116928ae04fa6Smrg
116938ae04fa6Smrg# Sed expression to map a string onto a valid variable name.
116948ae04fa6Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
116958ae04fa6Smrg
116968ae04fa6Smrg
116978ae04fa6Smrgexec 6>&1
116982d1d20fcSmrg## ----------------------------------- ##
116992d1d20fcSmrg## Main body of $CONFIG_STATUS script. ##
117002d1d20fcSmrg## ----------------------------------- ##
117012d1d20fcSmrg_ASEOF
117022d1d20fcSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
117038ae04fa6Smrg
117042d1d20fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
117052d1d20fcSmrg# Save the log message, to keep $0 and so on meaningful, and to
117068ae04fa6Smrg# report actual input values of CONFIG_FILES etc. instead of their
117078ae04fa6Smrg# values after options handling.
117088ae04fa6Smrgac_log="
11709138a9f8aSmrgThis file was extended by xvinfo $as_me 1.1.5, which was
11710138a9f8aSmrggenerated by GNU Autoconf 2.71.  Invocation command line was
117118ae04fa6Smrg
117128ae04fa6Smrg  CONFIG_FILES    = $CONFIG_FILES
117138ae04fa6Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
117148ae04fa6Smrg  CONFIG_LINKS    = $CONFIG_LINKS
117158ae04fa6Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
117168ae04fa6Smrg  $ $0 $@
117178ae04fa6Smrg
117188ae04fa6Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
117198ae04fa6Smrg"
117208ae04fa6Smrg
117218ae04fa6Smrg_ACEOF
117228ae04fa6Smrg
1172344af7230Smrgcase $ac_config_files in *"
1172444af7230Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
1172544af7230Smrgesac
1172644af7230Smrg
1172744af7230Smrgcase $ac_config_headers in *"
1172844af7230Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
1172944af7230Smrgesac
1173044af7230Smrg
1173144af7230Smrg
1173244af7230Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
117338ae04fa6Smrg# Files that config.status was made for.
117348ae04fa6Smrgconfig_files="$ac_config_files"
117358ae04fa6Smrgconfig_headers="$ac_config_headers"
117368ae04fa6Smrgconfig_commands="$ac_config_commands"
117378ae04fa6Smrg
117388ae04fa6Smrg_ACEOF
117398ae04fa6Smrg
1174044af7230Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
117418ae04fa6Smrgac_cs_usage="\
117422d1d20fcSmrg\`$as_me' instantiates files and other configuration actions
117432d1d20fcSmrgfrom templates according to the current configuration.  Unless the files
117442d1d20fcSmrgand actions are specified as TAGs, all are instantiated by default.
117458ae04fa6Smrg
117462d1d20fcSmrgUsage: $0 [OPTION]... [TAG]...
117478ae04fa6Smrg
117488ae04fa6Smrg  -h, --help       print this help, then exit
117498ae04fa6Smrg  -V, --version    print version number and configuration settings, then exit
117502d1d20fcSmrg      --config     print configuration, then exit
1175144af7230Smrg  -q, --quiet, --silent
1175244af7230Smrg                   do not print progress messages
117538ae04fa6Smrg  -d, --debug      don't remove temporary files
117548ae04fa6Smrg      --recheck    update $as_me by reconfiguring in the same conditions
1175544af7230Smrg      --file=FILE[:TEMPLATE]
1175644af7230Smrg                   instantiate the configuration file FILE
1175744af7230Smrg      --header=FILE[:TEMPLATE]
1175844af7230Smrg                   instantiate the configuration header FILE
117598ae04fa6Smrg
117608ae04fa6SmrgConfiguration files:
117618ae04fa6Smrg$config_files
117628ae04fa6Smrg
117638ae04fa6SmrgConfiguration headers:
117648ae04fa6Smrg$config_headers
117658ae04fa6Smrg
117668ae04fa6SmrgConfiguration commands:
117678ae04fa6Smrg$config_commands
117688ae04fa6Smrg
11769138a9f8aSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xvinfo/-/issues>."
117708ae04fa6Smrg
117718ae04fa6Smrg_ACEOF
11772138a9f8aSmrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11773138a9f8aSmrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
1177444af7230Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11775138a9f8aSmrgac_cs_config='$ac_cs_config_escaped'
117768ae04fa6Smrgac_cs_version="\\
11777138a9f8aSmrgxvinfo config.status 1.1.5
11778138a9f8aSmrgconfigured by $0, generated by GNU Autoconf 2.71,
117792d1d20fcSmrg  with options \\"\$ac_cs_config\\"
117808ae04fa6Smrg
11781138a9f8aSmrgCopyright (C) 2021 Free Software Foundation, Inc.
117828ae04fa6SmrgThis config.status script is free software; the Free Software Foundation
117838ae04fa6Smrggives unlimited permission to copy, distribute and modify it."
117848ae04fa6Smrg
117858ae04fa6Smrgac_pwd='$ac_pwd'
117868ae04fa6Smrgsrcdir='$srcdir'
117878ae04fa6SmrgINSTALL='$INSTALL'
117888ae04fa6SmrgMKDIR_P='$MKDIR_P'
1178944af7230SmrgAWK='$AWK'
1179044af7230Smrgtest -n "\$AWK" || AWK=awk
117918ae04fa6Smrg_ACEOF
117928ae04fa6Smrg
1179344af7230Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1179444af7230Smrg# The default lists apply if the user does not specify any file.
117958ae04fa6Smrgac_need_defaults=:
117968ae04fa6Smrgwhile test $# != 0
117978ae04fa6Smrgdo
117988ae04fa6Smrg  case $1 in
117992d1d20fcSmrg  --*=?*)
118008ae04fa6Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
118018ae04fa6Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
118028ae04fa6Smrg    ac_shift=:
118038ae04fa6Smrg    ;;
118042d1d20fcSmrg  --*=)
118052d1d20fcSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
118062d1d20fcSmrg    ac_optarg=
118072d1d20fcSmrg    ac_shift=:
118082d1d20fcSmrg    ;;
118098ae04fa6Smrg  *)
118108ae04fa6Smrg    ac_option=$1
118118ae04fa6Smrg    ac_optarg=$2
118128ae04fa6Smrg    ac_shift=shift
118138ae04fa6Smrg    ;;
118148ae04fa6Smrg  esac
118158ae04fa6Smrg
118168ae04fa6Smrg  case $ac_option in
118178ae04fa6Smrg  # Handling of the options.
118188ae04fa6Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
118198ae04fa6Smrg    ac_cs_recheck=: ;;
118208ae04fa6Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11821138a9f8aSmrg    printf "%s\n" "$ac_cs_version"; exit ;;
118222d1d20fcSmrg  --config | --confi | --conf | --con | --co | --c )
11823138a9f8aSmrg    printf "%s\n" "$ac_cs_config"; exit ;;
118248ae04fa6Smrg  --debug | --debu | --deb | --de | --d | -d )
118258ae04fa6Smrg    debug=: ;;
118268ae04fa6Smrg  --file | --fil | --fi | --f )
118278ae04fa6Smrg    $ac_shift
1182844af7230Smrg    case $ac_optarg in
11829138a9f8aSmrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
118302d1d20fcSmrg    '') as_fn_error $? "missing file argument" ;;
1183144af7230Smrg    esac
118322d1d20fcSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
118338ae04fa6Smrg    ac_need_defaults=false;;
118348ae04fa6Smrg  --header | --heade | --head | --hea )
118358ae04fa6Smrg    $ac_shift
1183644af7230Smrg    case $ac_optarg in
11837138a9f8aSmrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1183844af7230Smrg    esac
118392d1d20fcSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
118408ae04fa6Smrg    ac_need_defaults=false;;
118418ae04fa6Smrg  --he | --h)
118428ae04fa6Smrg    # Conflict between --help and --header
118432d1d20fcSmrg    as_fn_error $? "ambiguous option: \`$1'
118442d1d20fcSmrgTry \`$0 --help' for more information.";;
118458ae04fa6Smrg  --help | --hel | -h )
11846138a9f8aSmrg    printf "%s\n" "$ac_cs_usage"; exit ;;
118478ae04fa6Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
118488ae04fa6Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
118498ae04fa6Smrg    ac_cs_silent=: ;;
118508ae04fa6Smrg
118518ae04fa6Smrg  # This is an error.
118522d1d20fcSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
118532d1d20fcSmrgTry \`$0 --help' for more information." ;;
118548ae04fa6Smrg
118552d1d20fcSmrg  *) as_fn_append ac_config_targets " $1"
118568ae04fa6Smrg     ac_need_defaults=false ;;
118578ae04fa6Smrg
118588ae04fa6Smrg  esac
118598ae04fa6Smrg  shift
118608ae04fa6Smrgdone
118618ae04fa6Smrg
118628ae04fa6Smrgac_configure_extra_args=
118638ae04fa6Smrg
118648ae04fa6Smrgif $ac_cs_silent; then
118658ae04fa6Smrg  exec 6>/dev/null
118668ae04fa6Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
118678ae04fa6Smrgfi
118688ae04fa6Smrg
118698ae04fa6Smrg_ACEOF
1187044af7230Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
118718ae04fa6Smrgif \$ac_cs_recheck; then
1187280f56f3aSmrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1187344af7230Smrg  shift
11874138a9f8aSmrg  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
1187544af7230Smrg  CONFIG_SHELL='$SHELL'
118768ae04fa6Smrg  export CONFIG_SHELL
1187744af7230Smrg  exec "\$@"
118788ae04fa6Smrgfi
118798ae04fa6Smrg
118808ae04fa6Smrg_ACEOF
1188144af7230Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
118828ae04fa6Smrgexec 5>>config.log
118838ae04fa6Smrg{
118848ae04fa6Smrg  echo
118858ae04fa6Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
118868ae04fa6Smrg## Running $as_me. ##
118878ae04fa6Smrg_ASBOX
11888138a9f8aSmrg  printf "%s\n" "$ac_log"
118898ae04fa6Smrg} >&5
118908ae04fa6Smrg
118918ae04fa6Smrg_ACEOF
1189244af7230Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
118938ae04fa6Smrg#
118948ae04fa6Smrg# INIT-COMMANDS
118958ae04fa6Smrg#
11896138a9f8aSmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
118978ae04fa6Smrg
118988ae04fa6Smrg_ACEOF
118998ae04fa6Smrg
1190044af7230Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
119018ae04fa6Smrg
119028ae04fa6Smrg# Handling of arguments.
119038ae04fa6Smrgfor ac_config_target in $ac_config_targets
119048ae04fa6Smrgdo
119058ae04fa6Smrg  case $ac_config_target in
119068ae04fa6Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
119078ae04fa6Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
119088ae04fa6Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11909405c8079Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
119108ae04fa6Smrg
119112d1d20fcSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
119128ae04fa6Smrg  esac
119138ae04fa6Smrgdone
119148ae04fa6Smrg
119158ae04fa6Smrg
119168ae04fa6Smrg# If the user did not use the arguments to specify the items to instantiate,
119178ae04fa6Smrg# then the envvar interface is used.  Set only those that are not.
119188ae04fa6Smrg# We use the long form for the default assignment because of an extremely
119198ae04fa6Smrg# bizarre bug on SunOS 4.1.3.
119208ae04fa6Smrgif $ac_need_defaults; then
11921138a9f8aSmrg  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11922138a9f8aSmrg  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
11923138a9f8aSmrg  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
119248ae04fa6Smrgfi
119258ae04fa6Smrg
119268ae04fa6Smrg# Have a temporary directory for convenience.  Make it in the build tree
119278ae04fa6Smrg# simply because there is no reason against having it here, and in addition,
119288ae04fa6Smrg# creating and moving files from /tmp can sometimes cause problems.
119298ae04fa6Smrg# Hook for its removal unless debugging.
119308ae04fa6Smrg# Note that there is a small window in which the directory will not be cleaned:
119318ae04fa6Smrg# after its creation but before its name has been assigned to `$tmp'.
119328ae04fa6Smrg$debug ||
119338ae04fa6Smrg{
119342d1d20fcSmrg  tmp= ac_tmp=
119358ae04fa6Smrg  trap 'exit_status=$?
119362d1d20fcSmrg  : "${ac_tmp:=$tmp}"
119372d1d20fcSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
119388ae04fa6Smrg' 0
119392d1d20fcSmrg  trap 'as_fn_exit 1' 1 2 13 15
119408ae04fa6Smrg}
119418ae04fa6Smrg# Create a (secure) tmp directory for tmp files.
119428ae04fa6Smrg
119438ae04fa6Smrg{
119448ae04fa6Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
119452d1d20fcSmrg  test -d "$tmp"
119468ae04fa6Smrg}  ||
119478ae04fa6Smrg{
119488ae04fa6Smrg  tmp=./conf$$-$RANDOM
119498ae04fa6Smrg  (umask 077 && mkdir "$tmp")
119502d1d20fcSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
119512d1d20fcSmrgac_tmp=$tmp
119528ae04fa6Smrg
1195344af7230Smrg# Set up the scripts for CONFIG_FILES section.
1195444af7230Smrg# No need to generate them if there are no CONFIG_FILES.
1195544af7230Smrg# This happens for instance with `./config.status config.h'.
119568ae04fa6Smrgif test -n "$CONFIG_FILES"; then
119578ae04fa6Smrg
119588ae04fa6Smrg
119592d1d20fcSmrgac_cr=`echo X | tr X '\015'`
119602d1d20fcSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
119612d1d20fcSmrg# But we know of no other shell where ac_cr would be empty at this
119622d1d20fcSmrg# point, so we can use a bashism as a fallback.
119632d1d20fcSmrgif test "x$ac_cr" = x; then
119642d1d20fcSmrg  eval ac_cr=\$\'\\r\'
119652d1d20fcSmrgfi
1196644af7230Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
1196744af7230Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1196844af7230Smrg  ac_cs_awk_cr='\\r'
1196944af7230Smrgelse
1197044af7230Smrg  ac_cs_awk_cr=$ac_cr
119718ae04fa6Smrgfi
119728ae04fa6Smrg
119732d1d20fcSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
119748ae04fa6Smrg_ACEOF
119758ae04fa6Smrg
119768ae04fa6Smrg
1197744af7230Smrg{
1197844af7230Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
1197944af7230Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
1198044af7230Smrg  echo "_ACEOF"
1198144af7230Smrg} >conf$$subs.sh ||
119822d1d20fcSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
119832d1d20fcSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
119848ae04fa6Smrgac_delim='%!_!# '
119858ae04fa6Smrgfor ac_last_try in false false false false false :; do
1198644af7230Smrg  . ./conf$$subs.sh ||
119872d1d20fcSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
119888ae04fa6Smrg
1198944af7230Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
1199044af7230Smrg  if test $ac_delim_n = $ac_delim_num; then
119918ae04fa6Smrg    break
119928ae04fa6Smrg  elif $ac_last_try; then
119932d1d20fcSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
119948ae04fa6Smrg  else
119958ae04fa6Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
119968ae04fa6Smrg  fi
119978ae04fa6Smrgdone
1199844af7230Smrgrm -f conf$$subs.sh
119998ae04fa6Smrg
1200044af7230Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
120012d1d20fcSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1200244af7230Smrg_ACEOF
1200344af7230Smrgsed -n '
1200444af7230Smrgh
1200544af7230Smrgs/^/S["/; s/!.*/"]=/
1200644af7230Smrgp
1200744af7230Smrgg
1200844af7230Smrgs/^[^!]*!//
1200944af7230Smrg:repl
1201044af7230Smrgt repl
1201144af7230Smrgs/'"$ac_delim"'$//
1201244af7230Smrgt delim
1201344af7230Smrg:nl
1201444af7230Smrgh
120152d1d20fcSmrgs/\(.\{148\}\)..*/\1/
1201644af7230Smrgt more1
1201744af7230Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
1201844af7230Smrgp
1201944af7230Smrgn
1202044af7230Smrgb repl
1202144af7230Smrg:more1
1202244af7230Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
1202344af7230Smrgp
1202444af7230Smrgg
1202544af7230Smrgs/.\{148\}//
1202644af7230Smrgt nl
1202744af7230Smrg:delim
1202844af7230Smrgh
120292d1d20fcSmrgs/\(.\{148\}\)..*/\1/
1203044af7230Smrgt more2
1203144af7230Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
1203244af7230Smrgp
1203344af7230Smrgb
1203444af7230Smrg:more2
1203544af7230Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
1203644af7230Smrgp
1203744af7230Smrgg
1203844af7230Smrgs/.\{148\}//
1203944af7230Smrgt delim
1204044af7230Smrg' <conf$$subs.awk | sed '
1204144af7230Smrg/^[^""]/{
1204244af7230Smrg  N
1204344af7230Smrg  s/\n//
1204444af7230Smrg}
1204544af7230Smrg' >>$CONFIG_STATUS || ac_write_fail=1
1204644af7230Smrgrm -f conf$$subs.awk
1204744af7230Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1204844af7230Smrg_ACAWK
120492d1d20fcSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1205044af7230Smrg  for (key in S) S_is_set[key] = 1
1205144af7230Smrg  FS = ""
1205244af7230Smrg
1205344af7230Smrg}
1205444af7230Smrg{
1205544af7230Smrg  line = $ 0
1205644af7230Smrg  nfields = split(line, field, "@")
1205744af7230Smrg  substed = 0
1205844af7230Smrg  len = length(field[1])
1205944af7230Smrg  for (i = 2; i < nfields; i++) {
1206044af7230Smrg    key = field[i]
1206144af7230Smrg    keylen = length(key)
1206244af7230Smrg    if (S_is_set[key]) {
1206344af7230Smrg      value = S[key]
1206444af7230Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
1206544af7230Smrg      len += length(value) + length(field[++i])
1206644af7230Smrg      substed = 1
1206744af7230Smrg    } else
1206844af7230Smrg      len += 1 + keylen
1206944af7230Smrg  }
1207044af7230Smrg
1207144af7230Smrg  print line
1207244af7230Smrg}
120738ae04fa6Smrg
1207444af7230Smrg_ACAWK
120758ae04fa6Smrg_ACEOF
1207644af7230Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1207744af7230Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
1207844af7230Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
1207944af7230Smrgelse
1208044af7230Smrg  cat
120812d1d20fcSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
120822d1d20fcSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
120838ae04fa6Smrg_ACEOF
120848ae04fa6Smrg
120852d1d20fcSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
120862d1d20fcSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
120878ae04fa6Smrg# trailing colons and then remove the whole line if VPATH becomes empty
120888ae04fa6Smrg# (actually we leave an empty line to preserve line numbers).
120898ae04fa6Smrgif test "x$srcdir" = x.; then
120902d1d20fcSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
120912d1d20fcSmrgh
120922d1d20fcSmrgs///
120932d1d20fcSmrgs/^/:/
120942d1d20fcSmrgs/[	 ]*$/:/
120952d1d20fcSmrgs/:\$(srcdir):/:/g
120962d1d20fcSmrgs/:\${srcdir}:/:/g
120972d1d20fcSmrgs/:@srcdir@:/:/g
120982d1d20fcSmrgs/^:*//
120998ae04fa6Smrgs/:*$//
121002d1d20fcSmrgx
121012d1d20fcSmrgs/\(=[	 ]*\).*/\1/
121022d1d20fcSmrgG
121032d1d20fcSmrgs/\n//
121048ae04fa6Smrgs/^[^=]*=[	 ]*$//
121058ae04fa6Smrg}'
121068ae04fa6Smrgfi
121078ae04fa6Smrg
1210844af7230Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
121098ae04fa6Smrgfi # test -n "$CONFIG_FILES"
121108ae04fa6Smrg
1211144af7230Smrg# Set up the scripts for CONFIG_HEADERS section.
1211244af7230Smrg# No need to generate them if there are no CONFIG_HEADERS.
1211344af7230Smrg# This happens for instance with `./config.status Makefile'.
1211444af7230Smrgif test -n "$CONFIG_HEADERS"; then
121152d1d20fcSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1211644af7230SmrgBEGIN {
1211744af7230Smrg_ACEOF
1211844af7230Smrg
1211944af7230Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
1212044af7230Smrg# here-document in config.status, that substitutes the proper values into
1212144af7230Smrg# config.h.in to produce config.h.
1212244af7230Smrg
1212344af7230Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
1212444af7230Smrg# handling of long lines.
1212544af7230Smrgac_delim='%!_!# '
1212644af7230Smrgfor ac_last_try in false false :; do
121272d1d20fcSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
121282d1d20fcSmrg  if test -z "$ac_tt"; then
1212944af7230Smrg    break
1213044af7230Smrg  elif $ac_last_try; then
121312d1d20fcSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1213244af7230Smrg  else
1213344af7230Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1213444af7230Smrg  fi
1213544af7230Smrgdone
1213644af7230Smrg
1213744af7230Smrg# For the awk script, D is an array of macro values keyed by name,
1213844af7230Smrg# likewise P contains macro parameters if any.  Preserve backslash
1213944af7230Smrg# newline sequences.
1214044af7230Smrg
1214144af7230Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
1214244af7230Smrgsed -n '
1214344af7230Smrgs/.\{148\}/&'"$ac_delim"'/g
1214444af7230Smrgt rset
1214544af7230Smrg:rset
1214644af7230Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
1214744af7230Smrgt def
1214844af7230Smrgd
1214944af7230Smrg:def
1215044af7230Smrgs/\\$//
1215144af7230Smrgt bsnl
1215244af7230Smrgs/["\\]/\\&/g
1215344af7230Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
1215444af7230SmrgD["\1"]=" \3"/p
1215544af7230Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
1215644af7230Smrgd
1215744af7230Smrg:bsnl
1215844af7230Smrgs/["\\]/\\&/g
1215944af7230Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
1216044af7230SmrgD["\1"]=" \3\\\\\\n"\\/p
1216144af7230Smrgt cont
1216244af7230Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
1216344af7230Smrgt cont
1216444af7230Smrgd
1216544af7230Smrg:cont
1216644af7230Smrgn
1216744af7230Smrgs/.\{148\}/&'"$ac_delim"'/g
1216844af7230Smrgt clear
1216944af7230Smrg:clear
1217044af7230Smrgs/\\$//
1217144af7230Smrgt bsnlc
1217244af7230Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
1217344af7230Smrgd
1217444af7230Smrg:bsnlc
1217544af7230Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
1217644af7230Smrgb cont
1217744af7230Smrg' <confdefs.h | sed '
1217844af7230Smrgs/'"$ac_delim"'/"\\\
1217944af7230Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
1218044af7230Smrg
1218144af7230Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1218244af7230Smrg  for (key in D) D_is_set[key] = 1
1218344af7230Smrg  FS = ""
1218444af7230Smrg}
1218544af7230Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
1218644af7230Smrg  line = \$ 0
1218744af7230Smrg  split(line, arg, " ")
1218844af7230Smrg  if (arg[1] == "#") {
1218944af7230Smrg    defundef = arg[2]
1219044af7230Smrg    mac1 = arg[3]
1219144af7230Smrg  } else {
1219244af7230Smrg    defundef = substr(arg[1], 2)
1219344af7230Smrg    mac1 = arg[2]
1219444af7230Smrg  }
1219544af7230Smrg  split(mac1, mac2, "(") #)
1219644af7230Smrg  macro = mac2[1]
1219744af7230Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
1219844af7230Smrg  if (D_is_set[macro]) {
1219944af7230Smrg    # Preserve the white space surrounding the "#".
1220044af7230Smrg    print prefix "define", macro P[macro] D[macro]
1220144af7230Smrg    next
1220244af7230Smrg  } else {
1220344af7230Smrg    # Replace #undef with comments.  This is necessary, for example,
1220444af7230Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
1220544af7230Smrg    # on some systems where configure will not decide to define it.
1220644af7230Smrg    if (defundef == "undef") {
1220744af7230Smrg      print "/*", prefix defundef, macro, "*/"
1220844af7230Smrg      next
1220944af7230Smrg    }
1221044af7230Smrg  }
1221144af7230Smrg}
1221244af7230Smrg{ print }
1221344af7230Smrg_ACAWK
1221444af7230Smrg_ACEOF
1221544af7230Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
122162d1d20fcSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1221744af7230Smrgfi # test -n "$CONFIG_HEADERS"
1221844af7230Smrg
122198ae04fa6Smrg
1222044af7230Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
1222144af7230Smrgshift
1222244af7230Smrgfor ac_tag
122238ae04fa6Smrgdo
122248ae04fa6Smrg  case $ac_tag in
122258ae04fa6Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
122268ae04fa6Smrg  esac
122278ae04fa6Smrg  case $ac_mode$ac_tag in
122288ae04fa6Smrg  :[FHL]*:*);;
122292d1d20fcSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
122308ae04fa6Smrg  :[FH]-) ac_tag=-:-;;
122318ae04fa6Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
122328ae04fa6Smrg  esac
122338ae04fa6Smrg  ac_save_IFS=$IFS
122348ae04fa6Smrg  IFS=:
122358ae04fa6Smrg  set x $ac_tag
122368ae04fa6Smrg  IFS=$ac_save_IFS
122378ae04fa6Smrg  shift
122388ae04fa6Smrg  ac_file=$1
122398ae04fa6Smrg  shift
122408ae04fa6Smrg
122418ae04fa6Smrg  case $ac_mode in
122428ae04fa6Smrg  :L) ac_source=$1;;
122438ae04fa6Smrg  :[FH])
122448ae04fa6Smrg    ac_file_inputs=
122458ae04fa6Smrg    for ac_f
122468ae04fa6Smrg    do
122478ae04fa6Smrg      case $ac_f in
122482d1d20fcSmrg      -) ac_f="$ac_tmp/stdin";;
122498ae04fa6Smrg      *) # Look for the file first in the build tree, then in the source tree
122508ae04fa6Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
122518ae04fa6Smrg	 # because $ac_f cannot contain `:'.
122528ae04fa6Smrg	 test -f "$ac_f" ||
122538ae04fa6Smrg	   case $ac_f in
122548ae04fa6Smrg	   [\\/$]*) false;;
122558ae04fa6Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
122568ae04fa6Smrg	   esac ||
122572d1d20fcSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
122588ae04fa6Smrg      esac
12259138a9f8aSmrg      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
122602d1d20fcSmrg      as_fn_append ac_file_inputs " '$ac_f'"
122618ae04fa6Smrg    done
122628ae04fa6Smrg
122638ae04fa6Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
122648ae04fa6Smrg    # use $as_me), people would be surprised to read:
122658ae04fa6Smrg    #    /* config.h.  Generated by config.status.  */
1226644af7230Smrg    configure_input='Generated from '`
12267138a9f8aSmrg	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1226844af7230Smrg	`' by configure.'
122698ae04fa6Smrg    if test x"$ac_file" != x-; then
122708ae04fa6Smrg      configure_input="$ac_file.  $configure_input"
12271138a9f8aSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12272138a9f8aSmrgprintf "%s\n" "$as_me: creating $ac_file" >&6;}
122738ae04fa6Smrg    fi
1227444af7230Smrg    # Neutralize special characters interpreted by sed in replacement strings.
1227544af7230Smrg    case $configure_input in #(
1227644af7230Smrg    *\&* | *\|* | *\\* )
12277138a9f8aSmrg       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
1227844af7230Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
1227944af7230Smrg    *) ac_sed_conf_input=$configure_input;;
1228044af7230Smrg    esac
122818ae04fa6Smrg
122828ae04fa6Smrg    case $ac_tag in
122832d1d20fcSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
122842d1d20fcSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
122858ae04fa6Smrg    esac
122868ae04fa6Smrg    ;;
122878ae04fa6Smrg  esac
122888ae04fa6Smrg
122898ae04fa6Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
122908ae04fa6Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
122918ae04fa6Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
122928ae04fa6Smrg	 X"$ac_file" : 'X\(//\)$' \| \
122938ae04fa6Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12294138a9f8aSmrgprintf "%s\n" X"$ac_file" |
122958ae04fa6Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
122968ae04fa6Smrg	    s//\1/
122978ae04fa6Smrg	    q
122988ae04fa6Smrg	  }
122998ae04fa6Smrg	  /^X\(\/\/\)[^/].*/{
123008ae04fa6Smrg	    s//\1/
123018ae04fa6Smrg	    q
123028ae04fa6Smrg	  }
123038ae04fa6Smrg	  /^X\(\/\/\)$/{
123048ae04fa6Smrg	    s//\1/
123058ae04fa6Smrg	    q
123068ae04fa6Smrg	  }
123078ae04fa6Smrg	  /^X\(\/\).*/{
123088ae04fa6Smrg	    s//\1/
123098ae04fa6Smrg	    q
123108ae04fa6Smrg	  }
123118ae04fa6Smrg	  s/.*/./; q'`
123122d1d20fcSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
123138ae04fa6Smrg  ac_builddir=.
123148ae04fa6Smrg
123158ae04fa6Smrgcase "$ac_dir" in
123168ae04fa6Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
123178ae04fa6Smrg*)
12318138a9f8aSmrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
123198ae04fa6Smrg  # A ".." for each directory in $ac_dir_suffix.
12320138a9f8aSmrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
123218ae04fa6Smrg  case $ac_top_builddir_sub in
123228ae04fa6Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
123238ae04fa6Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
123248ae04fa6Smrg  esac ;;
123258ae04fa6Smrgesac
123268ae04fa6Smrgac_abs_top_builddir=$ac_pwd
123278ae04fa6Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
123288ae04fa6Smrg# for backward compatibility:
123298ae04fa6Smrgac_top_builddir=$ac_top_build_prefix
123308ae04fa6Smrg
123318ae04fa6Smrgcase $srcdir in
123328ae04fa6Smrg  .)  # We are building in place.
123338ae04fa6Smrg    ac_srcdir=.
123348ae04fa6Smrg    ac_top_srcdir=$ac_top_builddir_sub
123358ae04fa6Smrg    ac_abs_top_srcdir=$ac_pwd ;;
123368ae04fa6Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
123378ae04fa6Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
123388ae04fa6Smrg    ac_top_srcdir=$srcdir
123398ae04fa6Smrg    ac_abs_top_srcdir=$srcdir ;;
123408ae04fa6Smrg  *) # Relative name.
123418ae04fa6Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
123428ae04fa6Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
123438ae04fa6Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
123448ae04fa6Smrgesac
123458ae04fa6Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
123468ae04fa6Smrg
123478ae04fa6Smrg
123488ae04fa6Smrg  case $ac_mode in
123498ae04fa6Smrg  :F)
123508ae04fa6Smrg  #
123518ae04fa6Smrg  # CONFIG_FILE
123528ae04fa6Smrg  #
123538ae04fa6Smrg
123548ae04fa6Smrg  case $INSTALL in
123558ae04fa6Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
123568ae04fa6Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
123578ae04fa6Smrg  esac
123588ae04fa6Smrg  ac_MKDIR_P=$MKDIR_P
123598ae04fa6Smrg  case $MKDIR_P in
123608ae04fa6Smrg  [\\/$]* | ?:[\\/]* ) ;;
123618ae04fa6Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
123628ae04fa6Smrg  esac
123638ae04fa6Smrg_ACEOF
123648ae04fa6Smrg
1236544af7230Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
123668ae04fa6Smrg# If the template does not know about datarootdir, expand it.
123678ae04fa6Smrg# FIXME: This hack should be removed a few years after 2.60.
123688ae04fa6Smrgac_datarootdir_hack=; ac_datarootdir_seen=
1236944af7230Smrgac_sed_dataroot='
1237044af7230Smrg/datarootdir/ {
123718ae04fa6Smrg  p
123728ae04fa6Smrg  q
123738ae04fa6Smrg}
123748ae04fa6Smrg/@datadir@/p
123758ae04fa6Smrg/@docdir@/p
123768ae04fa6Smrg/@infodir@/p
123778ae04fa6Smrg/@localedir@/p
123782d1d20fcSmrg/@mandir@/p'
1237944af7230Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
123808ae04fa6Smrg*datarootdir*) ac_datarootdir_seen=yes;;
123818ae04fa6Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12382138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12383138a9f8aSmrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
123848ae04fa6Smrg_ACEOF
1238544af7230Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
123868ae04fa6Smrg  ac_datarootdir_hack='
123878ae04fa6Smrg  s&@datadir@&$datadir&g
123888ae04fa6Smrg  s&@docdir@&$docdir&g
123898ae04fa6Smrg  s&@infodir@&$infodir&g
123908ae04fa6Smrg  s&@localedir@&$localedir&g
123918ae04fa6Smrg  s&@mandir@&$mandir&g
123922d1d20fcSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
123938ae04fa6Smrgesac
123948ae04fa6Smrg_ACEOF
123958ae04fa6Smrg
123968ae04fa6Smrg# Neutralize VPATH when `$srcdir' = `.'.
123978ae04fa6Smrg# Shell code in configure.ac might set extrasub.
123988ae04fa6Smrg# FIXME: do we really want to maintain this feature?
1239944af7230Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1240044af7230Smrgac_sed_extra="$ac_vpsub
124018ae04fa6Smrg$extrasub
124028ae04fa6Smrg_ACEOF
1240344af7230Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
124048ae04fa6Smrg:t
124058ae04fa6Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1240644af7230Smrgs|@configure_input@|$ac_sed_conf_input|;t t
124078ae04fa6Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
1240844af7230Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
124098ae04fa6Smrgs&@srcdir@&$ac_srcdir&;t t
124108ae04fa6Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
124118ae04fa6Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
124128ae04fa6Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
124138ae04fa6Smrgs&@builddir@&$ac_builddir&;t t
124148ae04fa6Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
124158ae04fa6Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
124168ae04fa6Smrgs&@INSTALL@&$ac_INSTALL&;t t
124178ae04fa6Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
124188ae04fa6Smrg$ac_datarootdir_hack
1241944af7230Smrg"
124202d1d20fcSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
124212d1d20fcSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
124228ae04fa6Smrg
124238ae04fa6Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
124242d1d20fcSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
124252d1d20fcSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
124262d1d20fcSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12427138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
124282d1d20fcSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
12429138a9f8aSmrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
124302d1d20fcSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
124318ae04fa6Smrg
124322d1d20fcSmrg  rm -f "$ac_tmp/stdin"
124338ae04fa6Smrg  case $ac_file in
124342d1d20fcSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
124352d1d20fcSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1243644af7230Smrg  esac \
124372d1d20fcSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
124388ae04fa6Smrg ;;
124398ae04fa6Smrg  :H)
124408ae04fa6Smrg  #
124418ae04fa6Smrg  # CONFIG_HEADER
124428ae04fa6Smrg  #
124438ae04fa6Smrg  if test x"$ac_file" != x-; then
1244444af7230Smrg    {
12445138a9f8aSmrg      printf "%s\n" "/* $configure_input  */" >&1 \
124462d1d20fcSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
124472d1d20fcSmrg    } >"$ac_tmp/config.h" \
124482d1d20fcSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
124492d1d20fcSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12450138a9f8aSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12451138a9f8aSmrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
124528ae04fa6Smrg    else
1245344af7230Smrg      rm -f "$ac_file"
124542d1d20fcSmrg      mv "$ac_tmp/config.h" "$ac_file" \
124552d1d20fcSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
124568ae04fa6Smrg    fi
124578ae04fa6Smrg  else
12458138a9f8aSmrg    printf "%s\n" "/* $configure_input  */" >&1 \
124592d1d20fcSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
124602d1d20fcSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
124618ae04fa6Smrg  fi
1246244af7230Smrg# Compute "$ac_file"'s index in $config_headers.
1246344af7230Smrg_am_arg="$ac_file"
124648ae04fa6Smrg_am_stamp_count=1
124658ae04fa6Smrgfor _am_header in $config_headers :; do
124668ae04fa6Smrg  case $_am_header in
1246744af7230Smrg    $_am_arg | $_am_arg:* )
124688ae04fa6Smrg      break ;;
124698ae04fa6Smrg    * )
124708ae04fa6Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
124718ae04fa6Smrg  esac
124728ae04fa6Smrgdone
1247344af7230Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
1247444af7230Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1247544af7230Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
1247644af7230Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
1247744af7230Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12478138a9f8aSmrgprintf "%s\n" X"$_am_arg" |
124798ae04fa6Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
124808ae04fa6Smrg	    s//\1/
124818ae04fa6Smrg	    q
124828ae04fa6Smrg	  }
124838ae04fa6Smrg	  /^X\(\/\/\)[^/].*/{
124848ae04fa6Smrg	    s//\1/
124858ae04fa6Smrg	    q
124868ae04fa6Smrg	  }
124878ae04fa6Smrg	  /^X\(\/\/\)$/{
124888ae04fa6Smrg	    s//\1/
124898ae04fa6Smrg	    q
124908ae04fa6Smrg	  }
124918ae04fa6Smrg	  /^X\(\/\).*/{
124928ae04fa6Smrg	    s//\1/
124938ae04fa6Smrg	    q
124948ae04fa6Smrg	  }
124958ae04fa6Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
124968ae04fa6Smrg ;;
124978ae04fa6Smrg
12498138a9f8aSmrg  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12499138a9f8aSmrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;}
125008ae04fa6Smrg ;;
125018ae04fa6Smrg  esac
125028ae04fa6Smrg
125038ae04fa6Smrg
125048ae04fa6Smrg  case $ac_file$ac_mode in
1250544af7230Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1250680f56f3aSmrg  # Older Autoconf quotes --file arguments for eval, but not when files
1250744af7230Smrg  # are listed without --file.  Let's play safe and only enable the eval
1250844af7230Smrg  # if we detect the quoting.
12509138a9f8aSmrg  # TODO: see whether this extra hack can be removed once we start
12510138a9f8aSmrg  # requiring Autoconf 2.70 or later.
12511138a9f8aSmrg  case $CONFIG_FILES in #(
12512138a9f8aSmrg  *\'*) :
12513138a9f8aSmrg    eval set x "$CONFIG_FILES" ;; #(
12514138a9f8aSmrg  *) :
12515138a9f8aSmrg    set x $CONFIG_FILES ;; #(
12516138a9f8aSmrg  *) :
12517138a9f8aSmrg     ;;
12518138a9f8aSmrgesac
1251944af7230Smrg  shift
12520138a9f8aSmrg  # Used to flag and report bootstrapping failures.
12521138a9f8aSmrg  am_rc=0
12522138a9f8aSmrg  for am_mf
1252344af7230Smrg  do
1252444af7230Smrg    # Strip MF so we end up with the name of the file.
12525138a9f8aSmrg    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12526138a9f8aSmrg    # Check whether this is an Automake generated Makefile which includes
12527138a9f8aSmrg    # dependency-tracking related rules and includes.
12528138a9f8aSmrg    # Grep'ing the whole file directly is not great: AIX grep has a line
1252944af7230Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
12530138a9f8aSmrg    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12531138a9f8aSmrg      || continue
12532138a9f8aSmrg    am_dirpart=`$as_dirname -- "$am_mf" ||
12533138a9f8aSmrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12534138a9f8aSmrg	 X"$am_mf" : 'X\(//\)[^/]' \| \
12535138a9f8aSmrg	 X"$am_mf" : 'X\(//\)$' \| \
12536138a9f8aSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12537138a9f8aSmrgprintf "%s\n" X"$am_mf" |
125388ae04fa6Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
125398ae04fa6Smrg	    s//\1/
125408ae04fa6Smrg	    q
125418ae04fa6Smrg	  }
125428ae04fa6Smrg	  /^X\(\/\/\)[^/].*/{
125438ae04fa6Smrg	    s//\1/
125448ae04fa6Smrg	    q
125458ae04fa6Smrg	  }
125468ae04fa6Smrg	  /^X\(\/\/\)$/{
125478ae04fa6Smrg	    s//\1/
125488ae04fa6Smrg	    q
125498ae04fa6Smrg	  }
125508ae04fa6Smrg	  /^X\(\/\).*/{
125518ae04fa6Smrg	    s//\1/
125528ae04fa6Smrg	    q
125538ae04fa6Smrg	  }
125548ae04fa6Smrg	  s/.*/./; q'`
12555138a9f8aSmrg    am_filepart=`$as_basename -- "$am_mf" ||
12556138a9f8aSmrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12557138a9f8aSmrg	 X"$am_mf" : 'X\(//\)$' \| \
12558138a9f8aSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12559138a9f8aSmrgprintf "%s\n" X/"$am_mf" |
12560138a9f8aSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
125618ae04fa6Smrg	    s//\1/
125628ae04fa6Smrg	    q
125638ae04fa6Smrg	  }
12564138a9f8aSmrg	  /^X\/\(\/\/\)$/{
125658ae04fa6Smrg	    s//\1/
125668ae04fa6Smrg	    q
125678ae04fa6Smrg	  }
12568138a9f8aSmrg	  /^X\/\(\/\).*/{
125698ae04fa6Smrg	    s//\1/
125708ae04fa6Smrg	    q
125718ae04fa6Smrg	  }
125728ae04fa6Smrg	  s/.*/./; q'`
12573138a9f8aSmrg    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12574138a9f8aSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
12575138a9f8aSmrg        | $MAKE -f - am--depfiles" >&5
12576138a9f8aSmrg   (cd "$am_dirpart" \
12577138a9f8aSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
12578138a9f8aSmrg        | $MAKE -f - am--depfiles) >&5 2>&5
12579138a9f8aSmrg   ac_status=$?
12580138a9f8aSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581138a9f8aSmrg   (exit $ac_status); } || am_rc=$?
125828ae04fa6Smrg  done
12583138a9f8aSmrg  if test $am_rc -ne 0; then
12584138a9f8aSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12585138a9f8aSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12586138a9f8aSmrgas_fn_error $? "Something went wrong bootstrapping makefile fragments
12587138a9f8aSmrg    for automatic dependency tracking.  If GNU make was not used, consider
12588138a9f8aSmrg    re-running the configure script with MAKE=\"gmake\" (or whatever is
12589138a9f8aSmrg    necessary).  You can also try re-running configure with the
12590138a9f8aSmrg    '--disable-dependency-tracking' option to at least be able to build
12591138a9f8aSmrg    the package (albeit without support for automatic dependency tracking).
12592138a9f8aSmrgSee \`config.log' for more details" "$LINENO" 5; }
12593138a9f8aSmrg  fi
12594138a9f8aSmrg  { am_dirpart=; unset am_dirpart;}
12595138a9f8aSmrg  { am_filepart=; unset am_filepart;}
12596138a9f8aSmrg  { am_mf=; unset am_mf;}
12597138a9f8aSmrg  { am_rc=; unset am_rc;}
12598138a9f8aSmrg  rm -f conftest-deps.mk
1259944af7230Smrg}
126008ae04fa6Smrg ;;
126018ae04fa6Smrg
126028ae04fa6Smrg  esac
126038ae04fa6Smrgdone # for ac_tag
126048ae04fa6Smrg
126058ae04fa6Smrg
126062d1d20fcSmrgas_fn_exit 0
126078ae04fa6Smrg_ACEOF
126088ae04fa6Smrgac_clean_files=$ac_clean_files_save
126098ae04fa6Smrg
1261044af7230Smrgtest $ac_write_fail = 0 ||
126112d1d20fcSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1261244af7230Smrg
126138ae04fa6Smrg
126148ae04fa6Smrg# configure is writing to config.log, and then calls config.status.
126158ae04fa6Smrg# config.status does its own redirection, appending to config.log.
126168ae04fa6Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
126178ae04fa6Smrg# by configure, so config.status won't be able to write to it; its
126188ae04fa6Smrg# output is simply discarded.  So we exec the FD to /dev/null,
126198ae04fa6Smrg# effectively closing config.log, so it can be properly (re)opened and
126208ae04fa6Smrg# appended to by config.status.  When coming back to configure, we
126218ae04fa6Smrg# need to make the FD available again.
126228ae04fa6Smrgif test "$no_create" != yes; then
126238ae04fa6Smrg  ac_cs_success=:
126248ae04fa6Smrg  ac_config_status_args=
126258ae04fa6Smrg  test "$silent" = yes &&
126268ae04fa6Smrg    ac_config_status_args="$ac_config_status_args --quiet"
126278ae04fa6Smrg  exec 5>/dev/null
126288ae04fa6Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
126298ae04fa6Smrg  exec 5>>config.log
126308ae04fa6Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
126318ae04fa6Smrg  # would make configure fail if this is the last instruction.
126322d1d20fcSmrg  $ac_cs_success || as_fn_exit 1
126338ae04fa6Smrgfi
1263444af7230Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12635138a9f8aSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12636138a9f8aSmrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1263744af7230Smrgfi
126388ae04fa6Smrg
12639138a9f8aSmrg
12640