1067610f1Smrg#! /bin/sh
2067610f1Smrg# Guess values for system-dependent variables and create Makefiles.
358105723Smrg# Generated by GNU Autoconf 2.71 for xfsinfo 1.0.7.
4067610f1Smrg#
558105723Smrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfsinfo/-/issues>.
6067610f1Smrg#
77e6533d5Smrg#
858105723Smrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
958105723Smrg# Inc.
107e6533d5Smrg#
117e6533d5Smrg#
12067610f1Smrg# This configure script is free software; the Free Software Foundation
13067610f1Smrg# gives unlimited permission to copy, distribute and modify it.
147e6533d5Smrg## -------------------- ##
157e6533d5Smrg## M4sh Initialization. ##
167e6533d5Smrg## -------------------- ##
17067610f1Smrg
18067610f1Smrg# Be more Bourne compatible
19067610f1SmrgDUALCASE=1; export DUALCASE # for MKS sh
2058105723Smrgas_nop=:
2158105723Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
2258105723Smrgthen :
23067610f1Smrg  emulate sh
24067610f1Smrg  NULLCMD=:
257e6533d5Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26067610f1Smrg  # is contrary to our usage.  Disable this feature.
27067610f1Smrg  alias -g '${1+"$@"}'='"$@"'
28067610f1Smrg  setopt NO_GLOB_SUBST
2958105723Smrgelse $as_nop
307e6533d5Smrg  case `(set -o) 2>/dev/null` in #(
317e6533d5Smrg  *posix*) :
327e6533d5Smrg    set -o posix ;; #(
337e6533d5Smrg  *) :
347e6533d5Smrg     ;;
35067610f1Smrgesac
36067610f1Smrgfi
37067610f1Smrg
38067610f1Smrg
3958105723Smrg
4058105723Smrg# Reset variables that may have inherited troublesome values from
4158105723Smrg# the environment.
4258105723Smrg
4358105723Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
4458105723Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
4558105723Smrg# side effect of setting IFS to empty, thus disabling word splitting.)
4658105723Smrg# Quoting is to prevent editors from complaining about space-tab.
477e6533d5Smrgas_nl='
487e6533d5Smrg'
497e6533d5Smrgexport as_nl
5058105723SmrgIFS=" ""	$as_nl"
5158105723Smrg
5258105723SmrgPS1='$ '
5358105723SmrgPS2='> '
5458105723SmrgPS4='+ '
5558105723Smrg
5658105723Smrg# Ensure predictable behavior from utilities with locale-dependent output.
5758105723SmrgLC_ALL=C
5858105723Smrgexport LC_ALL
5958105723SmrgLANGUAGE=C
6058105723Smrgexport LANGUAGE
6158105723Smrg
6258105723Smrg# We cannot yet rely on "unset" to work, but we need these variables
6358105723Smrg# to be unset--not just set to an empty or harmless value--now, to
6458105723Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
6558105723Smrg# also avoids known problems related to "unset" and subshell syntax
6658105723Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6758105723Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6858105723Smrgdo eval test \${$as_var+y} \
6958105723Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7058105723Smrgdone
7158105723Smrg
7258105723Smrg# Ensure that fds 0, 1, and 2 are open.
7358105723Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
7458105723Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
7558105723Smrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76067610f1Smrg
777e6533d5Smrg# The user is always right.
7858105723Smrgif ${PATH_SEPARATOR+false} :; then
797e6533d5Smrg  PATH_SEPARATOR=:
807e6533d5Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
817e6533d5Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
827e6533d5Smrg      PATH_SEPARATOR=';'
837e6533d5Smrg  }
84067610f1Smrgfi
85067610f1Smrg
86067610f1Smrg
87067610f1Smrg# Find who we are.  Look in the path if we contain no directory separator.
887e6533d5Smrgas_myself=
897e6533d5Smrgcase $0 in #((
90067610f1Smrg  *[\\/]* ) as_myself=$0 ;;
91067610f1Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92067610f1Smrgfor as_dir in $PATH
93067610f1Smrgdo
94067610f1Smrg  IFS=$as_save_IFS
9558105723Smrg  case $as_dir in #(((
9658105723Smrg    '') as_dir=./ ;;
9758105723Smrg    */) ;;
9858105723Smrg    *) as_dir=$as_dir/ ;;
9958105723Smrg  esac
10058105723Smrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1017e6533d5Smrg  done
102067610f1SmrgIFS=$as_save_IFS
103067610f1Smrg
104067610f1Smrg     ;;
105067610f1Smrgesac
106067610f1Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
107067610f1Smrg# in which case we are not to be found in the path.
108067610f1Smrgif test "x$as_myself" = x; then
109067610f1Smrg  as_myself=$0
110067610f1Smrgfi
111067610f1Smrgif test ! -f "$as_myself"; then
11258105723Smrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1137e6533d5Smrg  exit 1
114067610f1Smrgfi
115067610f1Smrg
1167e6533d5Smrg
117e7fdea5fSmrg# Use a proper internal environment variable to ensure we don't fall
118e7fdea5fSmrg  # into an infinite loop, continuously re-executing ourselves.
119e7fdea5fSmrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120e7fdea5fSmrg    _as_can_reexec=no; export _as_can_reexec;
121e7fdea5fSmrg    # We cannot yet assume a decent shell, so we have to provide a
122e7fdea5fSmrg# neutralization value for shells without unset; and this also
123e7fdea5fSmrg# works around shells that cannot unset nonexistent variables.
124e7fdea5fSmrg# Preserve -v and -x to the replacement shell.
125e7fdea5fSmrgBASH_ENV=/dev/null
126e7fdea5fSmrgENV=/dev/null
127e7fdea5fSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128e7fdea5fSmrgcase $- in # ((((
129e7fdea5fSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
130e7fdea5fSmrg  *v* ) as_opts=-v ;;
131e7fdea5fSmrg  *x* ) as_opts=-x ;;
132e7fdea5fSmrg  * ) as_opts= ;;
133e7fdea5fSmrgesac
134e7fdea5fSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135e7fdea5fSmrg# Admittedly, this is quite paranoid, since all the known shells bail
136e7fdea5fSmrg# out after a failed `exec'.
13758105723Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
13858105723Smrgexit 255
139e7fdea5fSmrg  fi
140e7fdea5fSmrg  # We don't want this to propagate to other subprocesses.
141e7fdea5fSmrg          { _as_can_reexec=; unset _as_can_reexec;}
1427e6533d5Smrgif test "x$CONFIG_SHELL" = x; then
14358105723Smrg  as_bourne_compatible="as_nop=:
14458105723Smrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14558105723Smrgthen :
1467e6533d5Smrg  emulate sh
1477e6533d5Smrg  NULLCMD=:
1487e6533d5Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1497e6533d5Smrg  # is contrary to our usage.  Disable this feature.
1507e6533d5Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1517e6533d5Smrg  setopt NO_GLOB_SUBST
15258105723Smrgelse \$as_nop
1537e6533d5Smrg  case \`(set -o) 2>/dev/null\` in #(
1547e6533d5Smrg  *posix*) :
1557e6533d5Smrg    set -o posix ;; #(
1567e6533d5Smrg  *) :
1577e6533d5Smrg     ;;
1587e6533d5Smrgesac
1597e6533d5Smrgfi
1607e6533d5Smrg"
1617e6533d5Smrg  as_required="as_fn_return () { (exit \$1); }
1627e6533d5Smrgas_fn_success () { as_fn_return 0; }
1637e6533d5Smrgas_fn_failure () { as_fn_return 1; }
1647e6533d5Smrgas_fn_ret_success () { return 0; }
1657e6533d5Smrgas_fn_ret_failure () { return 1; }
1667e6533d5Smrg
1677e6533d5Smrgexitcode=0
1687e6533d5Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1697e6533d5Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1707e6533d5Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1717e6533d5Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
17258105723Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" )
17358105723Smrgthen :
1747e6533d5Smrg
17558105723Smrgelse \$as_nop
1767e6533d5Smrg  exitcode=1; echo positional parameters were not saved.
1777e6533d5Smrgfi
178e7fdea5fSmrgtest x\$exitcode = x0 || exit 1
17958105723Smrgblah=\$(echo \$(echo blah))
18058105723Smrgtest x\"\$blah\" = xblah || exit 1
181e7fdea5fSmrgtest -x / || exit 1"
1827e6533d5Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1837e6533d5Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1847e6533d5Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1857e6533d5Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1867e6533d5Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
18758105723Smrg  if (eval "$as_required") 2>/dev/null
18858105723Smrgthen :
1897e6533d5Smrg  as_have_required=yes
19058105723Smrgelse $as_nop
1917e6533d5Smrg  as_have_required=no
1927e6533d5Smrgfi
19358105723Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
19458105723Smrgthen :
1957e6533d5Smrg
19658105723Smrgelse $as_nop
1977e6533d5Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987e6533d5Smrgas_found=false
1997e6533d5Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200067610f1Smrgdo
2017e6533d5Smrg  IFS=$as_save_IFS
20258105723Smrg  case $as_dir in #(((
20358105723Smrg    '') as_dir=./ ;;
20458105723Smrg    */) ;;
20558105723Smrg    *) as_dir=$as_dir/ ;;
20658105723Smrg  esac
2077e6533d5Smrg  as_found=:
2087e6533d5Smrg  case $as_dir in #(
2097e6533d5Smrg	 /*)
2107e6533d5Smrg	   for as_base in sh bash ksh sh5; do
2117e6533d5Smrg	     # Try only shells that exist, to save several forks.
21258105723Smrg	     as_shell=$as_dir$as_base
2137e6533d5Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
21458105723Smrg		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
21558105723Smrgthen :
2167e6533d5Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
21758105723Smrg		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
21858105723Smrgthen :
2197e6533d5Smrg  break 2
2207e6533d5Smrgfi
2217e6533d5Smrgfi
2227e6533d5Smrg	   done;;
2237e6533d5Smrg       esac
2247e6533d5Smrg  as_found=false
2257e6533d5Smrgdone
2267e6533d5SmrgIFS=$as_save_IFS
22758105723Smrgif $as_found
22858105723Smrgthen :
22958105723Smrg
23058105723Smrgelse $as_nop
23158105723Smrg  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
23258105723Smrg	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
23358105723Smrgthen :
23458105723Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
23558105723Smrgfi
23658105723Smrgfi
2377e6533d5Smrg
2387e6533d5Smrg
23958105723Smrg      if test "x$CONFIG_SHELL" != x
24058105723Smrgthen :
241e7fdea5fSmrg  export CONFIG_SHELL
242e7fdea5fSmrg             # We cannot yet assume a decent shell, so we have to provide a
243e7fdea5fSmrg# neutralization value for shells without unset; and this also
244e7fdea5fSmrg# works around shells that cannot unset nonexistent variables.
245e7fdea5fSmrg# Preserve -v and -x to the replacement shell.
246e7fdea5fSmrgBASH_ENV=/dev/null
247e7fdea5fSmrgENV=/dev/null
248e7fdea5fSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249e7fdea5fSmrgcase $- in # ((((
250e7fdea5fSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
251e7fdea5fSmrg  *v* ) as_opts=-v ;;
252e7fdea5fSmrg  *x* ) as_opts=-x ;;
253e7fdea5fSmrg  * ) as_opts= ;;
254e7fdea5fSmrgesac
255e7fdea5fSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256e7fdea5fSmrg# Admittedly, this is quite paranoid, since all the known shells bail
257e7fdea5fSmrg# out after a failed `exec'.
25858105723Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259e7fdea5fSmrgexit 255
2607e6533d5Smrgfi
2617e6533d5Smrg
26258105723Smrg    if test x$as_have_required = xno
26358105723Smrgthen :
26458105723Smrg  printf "%s\n" "$0: This script requires a shell more modern than all"
26558105723Smrg  printf "%s\n" "$0: the shells that I found on your system."
26658105723Smrg  if test ${ZSH_VERSION+y} ; then
26758105723Smrg    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
26858105723Smrg    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269067610f1Smrg  else
27058105723Smrg    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
27158105723Smrg$0: https://gitlab.freedesktop.org/xorg/app/xfsinfo/-/issues
2727e6533d5Smrg$0: about your system, including any error possibly output
2737e6533d5Smrg$0: before this message. Then install a modern shell, or
2747e6533d5Smrg$0: manually run the script under such a shell if you do
2757e6533d5Smrg$0: have one."
276067610f1Smrg  fi
2777e6533d5Smrg  exit 1
2787e6533d5Smrgfi
2797e6533d5Smrgfi
2807e6533d5Smrgfi
2817e6533d5SmrgSHELL=${CONFIG_SHELL-/bin/sh}
2827e6533d5Smrgexport SHELL
2837e6533d5Smrg# Unset more variables known to interfere with behavior of common tools.
2847e6533d5SmrgCLICOLOR_FORCE= GREP_OPTIONS=
2857e6533d5Smrgunset CLICOLOR_FORCE GREP_OPTIONS
2867e6533d5Smrg
2877e6533d5Smrg## --------------------- ##
2887e6533d5Smrg## M4sh Shell Functions. ##
2897e6533d5Smrg## --------------------- ##
2907e6533d5Smrg# as_fn_unset VAR
2917e6533d5Smrg# ---------------
2927e6533d5Smrg# Portably unset VAR.
2937e6533d5Smrgas_fn_unset ()
2947e6533d5Smrg{
2957e6533d5Smrg  { eval $1=; unset $1;}
2967e6533d5Smrg}
2977e6533d5Smrgas_unset=as_fn_unset
2987e6533d5Smrg
29958105723Smrg
3007e6533d5Smrg# as_fn_set_status STATUS
3017e6533d5Smrg# -----------------------
3027e6533d5Smrg# Set $? to STATUS, without forking.
3037e6533d5Smrgas_fn_set_status ()
3047e6533d5Smrg{
3057e6533d5Smrg  return $1
3067e6533d5Smrg} # as_fn_set_status
3077e6533d5Smrg
3087e6533d5Smrg# as_fn_exit STATUS
3097e6533d5Smrg# -----------------
3107e6533d5Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3117e6533d5Smrgas_fn_exit ()
3127e6533d5Smrg{
3137e6533d5Smrg  set +e
3147e6533d5Smrg  as_fn_set_status $1
3157e6533d5Smrg  exit $1
3167e6533d5Smrg} # as_fn_exit
31758105723Smrg# as_fn_nop
31858105723Smrg# ---------
31958105723Smrg# Do nothing but, unlike ":", preserve the value of $?.
32058105723Smrgas_fn_nop ()
32158105723Smrg{
32258105723Smrg  return $?
32358105723Smrg}
32458105723Smrgas_nop=as_fn_nop
3257e6533d5Smrg
3267e6533d5Smrg# as_fn_mkdir_p
3277e6533d5Smrg# -------------
3287e6533d5Smrg# Create "$as_dir" as a directory, including parents if necessary.
3297e6533d5Smrgas_fn_mkdir_p ()
3307e6533d5Smrg{
3317e6533d5Smrg
3327e6533d5Smrg  case $as_dir in #(
3337e6533d5Smrg  -*) as_dir=./$as_dir;;
3347e6533d5Smrg  esac
3357e6533d5Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
3367e6533d5Smrg    as_dirs=
3377e6533d5Smrg    while :; do
3387e6533d5Smrg      case $as_dir in #(
33958105723Smrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3407e6533d5Smrg      *) as_qdir=$as_dir;;
3417e6533d5Smrg      esac
3427e6533d5Smrg      as_dirs="'$as_qdir' $as_dirs"
3437e6533d5Smrg      as_dir=`$as_dirname -- "$as_dir" ||
3447e6533d5Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3457e6533d5Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3467e6533d5Smrg	 X"$as_dir" : 'X\(//\)$' \| \
3477e6533d5Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34858105723Smrgprintf "%s\n" X"$as_dir" |
3497e6533d5Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3507e6533d5Smrg	    s//\1/
3517e6533d5Smrg	    q
3527e6533d5Smrg	  }
3537e6533d5Smrg	  /^X\(\/\/\)[^/].*/{
3547e6533d5Smrg	    s//\1/
3557e6533d5Smrg	    q
3567e6533d5Smrg	  }
3577e6533d5Smrg	  /^X\(\/\/\)$/{
3587e6533d5Smrg	    s//\1/
3597e6533d5Smrg	    q
3607e6533d5Smrg	  }
3617e6533d5Smrg	  /^X\(\/\).*/{
3627e6533d5Smrg	    s//\1/
3637e6533d5Smrg	    q
3647e6533d5Smrg	  }
3657e6533d5Smrg	  s/.*/./; q'`
3667e6533d5Smrg      test -d "$as_dir" && break
3677e6533d5Smrg    done
3687e6533d5Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3697e6533d5Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3707e6533d5Smrg
3717e6533d5Smrg
3727e6533d5Smrg} # as_fn_mkdir_p
373e7fdea5fSmrg
374e7fdea5fSmrg# as_fn_executable_p FILE
375e7fdea5fSmrg# -----------------------
376e7fdea5fSmrg# Test if FILE is an executable regular file.
377e7fdea5fSmrgas_fn_executable_p ()
378e7fdea5fSmrg{
379e7fdea5fSmrg  test -f "$1" && test -x "$1"
380e7fdea5fSmrg} # as_fn_executable_p
3817e6533d5Smrg# as_fn_append VAR VALUE
3827e6533d5Smrg# ----------------------
3837e6533d5Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3847e6533d5Smrg# advantage of any shell optimizations that allow amortized linear growth over
3857e6533d5Smrg# repeated appends, instead of the typical quadratic growth present in naive
3867e6533d5Smrg# implementations.
38758105723Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
38858105723Smrgthen :
3897e6533d5Smrg  eval 'as_fn_append ()
3907e6533d5Smrg  {
3917e6533d5Smrg    eval $1+=\$2
3927e6533d5Smrg  }'
39358105723Smrgelse $as_nop
3947e6533d5Smrg  as_fn_append ()
3957e6533d5Smrg  {
3967e6533d5Smrg    eval $1=\$$1\$2
3977e6533d5Smrg  }
3987e6533d5Smrgfi # as_fn_append
3997e6533d5Smrg
4007e6533d5Smrg# as_fn_arith ARG...
4017e6533d5Smrg# ------------------
4027e6533d5Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
4037e6533d5Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
4047e6533d5Smrg# must be portable across $(()) and expr.
40558105723Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
40658105723Smrgthen :
4077e6533d5Smrg  eval 'as_fn_arith ()
4087e6533d5Smrg  {
4097e6533d5Smrg    as_val=$(( $* ))
4107e6533d5Smrg  }'
41158105723Smrgelse $as_nop
4127e6533d5Smrg  as_fn_arith ()
4137e6533d5Smrg  {
4147e6533d5Smrg    as_val=`expr "$@" || test $? -eq 1`
4157e6533d5Smrg  }
4167e6533d5Smrgfi # as_fn_arith
4177e6533d5Smrg
41858105723Smrg# as_fn_nop
41958105723Smrg# ---------
42058105723Smrg# Do nothing but, unlike ":", preserve the value of $?.
42158105723Smrgas_fn_nop ()
42258105723Smrg{
42358105723Smrg  return $?
42458105723Smrg}
42558105723Smrgas_nop=as_fn_nop
4267e6533d5Smrg
4277e6533d5Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
4287e6533d5Smrg# ----------------------------------------
4297e6533d5Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4307e6533d5Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4317e6533d5Smrg# script with STATUS, using 1 if that was 0.
4327e6533d5Smrgas_fn_error ()
4337e6533d5Smrg{
4347e6533d5Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
4357e6533d5Smrg  if test "$4"; then
4367e6533d5Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
43758105723Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4387e6533d5Smrg  fi
43958105723Smrg  printf "%s\n" "$as_me: error: $2" >&2
4407e6533d5Smrg  as_fn_exit $as_status
4417e6533d5Smrg} # as_fn_error
442067610f1Smrg
443067610f1Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
444067610f1Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
445067610f1Smrg  as_expr=expr
446067610f1Smrgelse
447067610f1Smrg  as_expr=false
448067610f1Smrgfi
449067610f1Smrg
450067610f1Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451067610f1Smrg  as_basename=basename
452067610f1Smrgelse
453067610f1Smrg  as_basename=false
454067610f1Smrgfi
455067610f1Smrg
4567e6533d5Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4577e6533d5Smrg  as_dirname=dirname
4587e6533d5Smrgelse
4597e6533d5Smrg  as_dirname=false
4607e6533d5Smrgfi
461067610f1Smrg
462067610f1Smrgas_me=`$as_basename -- "$0" ||
463067610f1Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464067610f1Smrg	 X"$0" : 'X\(//\)$' \| \
465067610f1Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
46658105723Smrgprintf "%s\n" X/"$0" |
467067610f1Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
468067610f1Smrg	    s//\1/
469067610f1Smrg	    q
470067610f1Smrg	  }
471067610f1Smrg	  /^X\/\(\/\/\)$/{
472067610f1Smrg	    s//\1/
473067610f1Smrg	    q
474067610f1Smrg	  }
475067610f1Smrg	  /^X\/\(\/\).*/{
476067610f1Smrg	    s//\1/
477067610f1Smrg	    q
478067610f1Smrg	  }
479067610f1Smrg	  s/.*/./; q'`
480067610f1Smrg
4817e6533d5Smrg# Avoid depending upon Character Ranges.
4827e6533d5Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4837e6533d5Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4847e6533d5Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4857e6533d5Smrgas_cr_digits='0123456789'
4867e6533d5Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
487067610f1Smrg
488067610f1Smrg
4897e6533d5Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4907e6533d5Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4917e6533d5Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4927e6533d5Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4937e6533d5Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4947e6533d5Smrg  sed -n '
4957e6533d5Smrg    p
4967e6533d5Smrg    /[$]LINENO/=
4977e6533d5Smrg  ' <$as_myself |
4987e6533d5Smrg    sed '
4997e6533d5Smrg      s/[$]LINENO.*/&-/
5007e6533d5Smrg      t lineno
5017e6533d5Smrg      b
5027e6533d5Smrg      :lineno
5037e6533d5Smrg      N
5047e6533d5Smrg      :loop
5057e6533d5Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5067e6533d5Smrg      t loop
5077e6533d5Smrg      s/-\n.*//
5087e6533d5Smrg    ' >$as_me.lineno &&
5097e6533d5Smrg  chmod +x "$as_me.lineno" ||
51058105723Smrg    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511067610f1Smrg
512e7fdea5fSmrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513e7fdea5fSmrg  # already done that, so ensure we don't try to do so again and fall
514e7fdea5fSmrg  # in an infinite loop.  This has already happened in practice.
515e7fdea5fSmrg  _as_can_reexec=no; export _as_can_reexec
5167e6533d5Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
5177e6533d5Smrg  # (the dirname of $[0] is not the place where we might find the
5187e6533d5Smrg  # original and so on.  Autoconf is especially sensitive to this).
5197e6533d5Smrg  . "./$as_me.lineno"
5207e6533d5Smrg  # Exit status is that of the last command.
5217e6533d5Smrg  exit
522067610f1Smrg}
523067610f1Smrg
52458105723Smrg
52558105723Smrg# Determine whether it's possible to make 'echo' print without a newline.
52658105723Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
52758105723Smrg# for compatibility with existing Makefiles.
5287e6533d5SmrgECHO_C= ECHO_N= ECHO_T=
5297e6533d5Smrgcase `echo -n x` in #(((((
5307e6533d5Smrg-n*)
5317e6533d5Smrg  case `echo 'xy\c'` in
5327e6533d5Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5337e6533d5Smrg  xy)  ECHO_C='\c';;
5347e6533d5Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5357e6533d5Smrg       ECHO_T='	';;
5367e6533d5Smrg  esac;;
5377e6533d5Smrg*)
5387e6533d5Smrg  ECHO_N='-n';;
5397e6533d5Smrgesac
540067610f1Smrg
54158105723Smrg# For backward compatibility with old third-party macros, we provide
54258105723Smrg# the shell variables $as_echo and $as_echo_n.  New code should use
54358105723Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
54458105723Smrgas_echo='printf %s\n'
54558105723Smrgas_echo_n='printf %s'
54658105723Smrg
54758105723Smrg
5487e6533d5Smrgrm -f conf$$ conf$$.exe conf$$.file
5497e6533d5Smrgif test -d conf$$.dir; then
5507e6533d5Smrg  rm -f conf$$.dir/conf$$.file
551067610f1Smrgelse
5527e6533d5Smrg  rm -f conf$$.dir
5537e6533d5Smrg  mkdir conf$$.dir 2>/dev/null
5547e6533d5Smrgfi
5557e6533d5Smrgif (echo >conf$$.file) 2>/dev/null; then
5567e6533d5Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5577e6533d5Smrg    as_ln_s='ln -s'
5587e6533d5Smrg    # ... but there are two gotchas:
5597e6533d5Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5607e6533d5Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561e7fdea5fSmrg    # In both cases, we have to default to `cp -pR'.
5627e6533d5Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563e7fdea5fSmrg      as_ln_s='cp -pR'
5647e6533d5Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5657e6533d5Smrg    as_ln_s=ln
5667e6533d5Smrg  else
567e7fdea5fSmrg    as_ln_s='cp -pR'
5687e6533d5Smrg  fi
569067610f1Smrgelse
570e7fdea5fSmrg  as_ln_s='cp -pR'
571067610f1Smrgfi
5727e6533d5Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5737e6533d5Smrgrmdir conf$$.dir 2>/dev/null
574067610f1Smrg
5757e6533d5Smrgif mkdir -p . 2>/dev/null; then
5767e6533d5Smrg  as_mkdir_p='mkdir -p "$as_dir"'
577067610f1Smrgelse
5787e6533d5Smrg  test -d ./-p && rmdir ./-p
5797e6533d5Smrg  as_mkdir_p=false
5807e6533d5Smrgfi
581067610f1Smrg
582e7fdea5fSmrgas_test_x='test -x'
583e7fdea5fSmrgas_executable_p=as_fn_executable_p
584067610f1Smrg
5857e6533d5Smrg# Sed expression to map a string onto a valid CPP name.
5867e6533d5Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587067610f1Smrg
5887e6533d5Smrg# Sed expression to map a string onto a valid variable name.
5897e6533d5Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590067610f1Smrg
591067610f1Smrg
5927e6533d5Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
5937e6533d5Smrgexec 6>&1
594067610f1Smrg
595067610f1Smrg# Name of the host.
5967e6533d5Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597067610f1Smrg# so uname gets run too.
598067610f1Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599067610f1Smrg
600067610f1Smrg#
601067610f1Smrg# Initializations.
602067610f1Smrg#
603067610f1Smrgac_default_prefix=/usr/local
604067610f1Smrgac_clean_files=
605067610f1Smrgac_config_libobj_dir=.
606067610f1SmrgLIBOBJS=
607067610f1Smrgcross_compiling=no
608067610f1Smrgsubdirs=
609067610f1SmrgMFLAGS=
610067610f1SmrgMAKEFLAGS=
611067610f1Smrg
612067610f1Smrg# Identity of this package.
613067610f1SmrgPACKAGE_NAME='xfsinfo'
614067610f1SmrgPACKAGE_TARNAME='xfsinfo'
61558105723SmrgPACKAGE_VERSION='1.0.7'
61658105723SmrgPACKAGE_STRING='xfsinfo 1.0.7'
61758105723SmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xfsinfo/-/issues'
6187e6533d5SmrgPACKAGE_URL=''
619067610f1Smrg
620aea1d7ffSmrgac_unique_file="Makefile.am"
6217e6533d5Smrg# Factoring default headers for most tests.
6227e6533d5Smrgac_includes_default="\
62358105723Smrg#include <stddef.h>
62458105723Smrg#ifdef HAVE_STDIO_H
62558105723Smrg# include <stdio.h>
6267e6533d5Smrg#endif
62758105723Smrg#ifdef HAVE_STDLIB_H
6287e6533d5Smrg# include <stdlib.h>
6297e6533d5Smrg#endif
6307e6533d5Smrg#ifdef HAVE_STRING_H
6317e6533d5Smrg# include <string.h>
6327e6533d5Smrg#endif
6337e6533d5Smrg#ifdef HAVE_INTTYPES_H
6347e6533d5Smrg# include <inttypes.h>
6357e6533d5Smrg#endif
6367e6533d5Smrg#ifdef HAVE_STDINT_H
6377e6533d5Smrg# include <stdint.h>
6387e6533d5Smrg#endif
63958105723Smrg#ifdef HAVE_STRINGS_H
64058105723Smrg# include <strings.h>
64158105723Smrg#endif
64258105723Smrg#ifdef HAVE_SYS_TYPES_H
64358105723Smrg# include <sys/types.h>
64458105723Smrg#endif
64558105723Smrg#ifdef HAVE_SYS_STAT_H
64658105723Smrg# include <sys/stat.h>
64758105723Smrg#endif
6487e6533d5Smrg#ifdef HAVE_UNISTD_H
6497e6533d5Smrg# include <unistd.h>
6507e6533d5Smrg#endif"
6517e6533d5Smrg
65258105723Smrgac_header_c_list=
6537e6533d5Smrgac_subst_vars='am__EXEEXT_FALSE
6547e6533d5Smrgam__EXEEXT_TRUE
6557e6533d5SmrgLTLIBOBJS
6567e6533d5SmrgLIBOBJS
657067610f1SmrgXFSINFO_LIBS
6587e6533d5SmrgXFSINFO_CFLAGS
6597e6533d5SmrgMAN_SUBSTS
6607e6533d5SmrgXORG_MAN_PAGE
661067610f1SmrgADMIN_MAN_DIR
6627e6533d5SmrgDRIVER_MAN_DIR
6637e6533d5SmrgMISC_MAN_DIR
6647e6533d5SmrgFILE_MAN_DIR
6657e6533d5SmrgLIB_MAN_DIR
6667e6533d5SmrgAPP_MAN_DIR
6677e6533d5SmrgADMIN_MAN_SUFFIX
6687e6533d5SmrgDRIVER_MAN_SUFFIX
6697e6533d5SmrgMISC_MAN_SUFFIX
6707e6533d5SmrgFILE_MAN_SUFFIX
6717e6533d5SmrgLIB_MAN_SUFFIX
6727e6533d5SmrgAPP_MAN_SUFFIX
6737e6533d5SmrgSED
6747e6533d5Smrghost_os
6757e6533d5Smrghost_vendor
6767e6533d5Smrghost_cpu
6777e6533d5Smrghost
6787e6533d5Smrgbuild_os
6797e6533d5Smrgbuild_vendor
6807e6533d5Smrgbuild_cpu
6817e6533d5Smrgbuild
6827e6533d5SmrgINSTALL_CMD
6834d9306dbSmrgPKG_CONFIG_LIBDIR
6844d9306dbSmrgPKG_CONFIG_PATH
6857e6533d5SmrgPKG_CONFIG
6867e6533d5SmrgCHANGELOG_CMD
687aea1d7ffSmrgSTRICT_CFLAGS
6887e6533d5SmrgCWARNFLAGS
689aea1d7ffSmrgBASE_CFLAGS
6907e6533d5Smrgam__fastdepCC_FALSE
6917e6533d5Smrgam__fastdepCC_TRUE
6927e6533d5SmrgCCDEPMODE
693aea1d7ffSmrgam__nodep
6947e6533d5SmrgAMDEPBACKSLASH
6957e6533d5SmrgAMDEP_FALSE
6967e6533d5SmrgAMDEP_TRUE
6977e6533d5Smrgam__include
6987e6533d5SmrgDEPDIR
6997e6533d5SmrgOBJEXT
7007e6533d5SmrgEXEEXT
7017e6533d5Smrgac_ct_CC
7027e6533d5SmrgCPPFLAGS
7037e6533d5SmrgLDFLAGS
7047e6533d5SmrgCFLAGS
7057e6533d5SmrgCC
706e7fdea5fSmrgAM_BACKSLASH
707e7fdea5fSmrgAM_DEFAULT_VERBOSITY
708e7fdea5fSmrgAM_DEFAULT_V
709e7fdea5fSmrgAM_V
71058105723SmrgCSCOPE
71158105723SmrgETAGS
71258105723SmrgCTAGS
7137e6533d5Smrgam__untar
7147e6533d5Smrgam__tar
7157e6533d5SmrgAMTAR
7167e6533d5Smrgam__leading_dot
7177e6533d5SmrgSET_MAKE
7187e6533d5SmrgAWK
7197e6533d5Smrgmkdir_p
7207e6533d5SmrgMKDIR_P
7217e6533d5SmrgINSTALL_STRIP_PROGRAM
7227e6533d5SmrgSTRIP
7237e6533d5Smrginstall_sh
7247e6533d5SmrgMAKEINFO
7257e6533d5SmrgAUTOHEADER
7267e6533d5SmrgAUTOMAKE
7277e6533d5SmrgAUTOCONF
7287e6533d5SmrgACLOCAL
7297e6533d5SmrgVERSION
7307e6533d5SmrgPACKAGE
7317e6533d5SmrgCYGPATH_W
7327e6533d5Smrgam__isrc
7337e6533d5SmrgINSTALL_DATA
7347e6533d5SmrgINSTALL_SCRIPT
7357e6533d5SmrgINSTALL_PROGRAM
7367e6533d5Smrgtarget_alias
7377e6533d5Smrghost_alias
7387e6533d5Smrgbuild_alias
7397e6533d5SmrgLIBS
7407e6533d5SmrgECHO_T
7417e6533d5SmrgECHO_N
7427e6533d5SmrgECHO_C
7437e6533d5SmrgDEFS
7447e6533d5Smrgmandir
7457e6533d5Smrglocaledir
7467e6533d5Smrglibdir
7477e6533d5Smrgpsdir
7487e6533d5Smrgpdfdir
7497e6533d5Smrgdvidir
7507e6533d5Smrghtmldir
7517e6533d5Smrginfodir
7527e6533d5Smrgdocdir
7537e6533d5Smrgoldincludedir
7547e6533d5Smrgincludedir
75558105723Smrgrunstatedir
7567e6533d5Smrglocalstatedir
7577e6533d5Smrgsharedstatedir
7587e6533d5Smrgsysconfdir
7597e6533d5Smrgdatadir
7607e6533d5Smrgdatarootdir
7617e6533d5Smrglibexecdir
7627e6533d5Smrgsbindir
7637e6533d5Smrgbindir
7647e6533d5Smrgprogram_transform_name
7657e6533d5Smrgprefix
7667e6533d5Smrgexec_prefix
7677e6533d5SmrgPACKAGE_URL
7687e6533d5SmrgPACKAGE_BUGREPORT
7697e6533d5SmrgPACKAGE_STRING
7707e6533d5SmrgPACKAGE_VERSION
7717e6533d5SmrgPACKAGE_TARNAME
7727e6533d5SmrgPACKAGE_NAME
7737e6533d5SmrgPATH_SEPARATOR
77458105723SmrgSHELL
77558105723Smrgam__quote'
776067610f1Smrgac_subst_files=''
7777e6533d5Smrgac_user_opts='
7787e6533d5Smrgenable_option_checking
779e7fdea5fSmrgenable_silent_rules
7807e6533d5Smrgenable_dependency_tracking
781aea1d7ffSmrgenable_selective_werror
7827e6533d5Smrgenable_strict_compilation
7837e6533d5Smrg'
784067610f1Smrg      ac_precious_vars='build_alias
785067610f1Smrghost_alias
786067610f1Smrgtarget_alias
787067610f1SmrgCC
788067610f1SmrgCFLAGS
789067610f1SmrgLDFLAGS
790067610f1SmrgLIBS
791067610f1SmrgCPPFLAGS
792067610f1SmrgPKG_CONFIG
7934d9306dbSmrgPKG_CONFIG_PATH
7944d9306dbSmrgPKG_CONFIG_LIBDIR
795067610f1SmrgXFSINFO_CFLAGS
796067610f1SmrgXFSINFO_LIBS'
797067610f1Smrg
798067610f1Smrg
799067610f1Smrg# Initialize some variables set by options.
800067610f1Smrgac_init_help=
801067610f1Smrgac_init_version=false
8027e6533d5Smrgac_unrecognized_opts=
8037e6533d5Smrgac_unrecognized_sep=
804067610f1Smrg# The variables have the same names as the options, with
805067610f1Smrg# dashes changed to underlines.
806067610f1Smrgcache_file=/dev/null
807067610f1Smrgexec_prefix=NONE
808067610f1Smrgno_create=
809067610f1Smrgno_recursion=
810067610f1Smrgprefix=NONE
811067610f1Smrgprogram_prefix=NONE
812067610f1Smrgprogram_suffix=NONE
813067610f1Smrgprogram_transform_name=s,x,x,
814067610f1Smrgsilent=
815067610f1Smrgsite=
816067610f1Smrgsrcdir=
817067610f1Smrgverbose=
818067610f1Smrgx_includes=NONE
819067610f1Smrgx_libraries=NONE
820067610f1Smrg
821067610f1Smrg# Installation directory options.
822067610f1Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
823067610f1Smrg# and all the variables that are supposed to be based on exec_prefix
824067610f1Smrg# by default will actually change.
825067610f1Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
826067610f1Smrg# (The list follows the same order as the GNU Coding Standards.)
827067610f1Smrgbindir='${exec_prefix}/bin'
828067610f1Smrgsbindir='${exec_prefix}/sbin'
829067610f1Smrglibexecdir='${exec_prefix}/libexec'
830067610f1Smrgdatarootdir='${prefix}/share'
831067610f1Smrgdatadir='${datarootdir}'
832067610f1Smrgsysconfdir='${prefix}/etc'
833067610f1Smrgsharedstatedir='${prefix}/com'
834067610f1Smrglocalstatedir='${prefix}/var'
83558105723Smrgrunstatedir='${localstatedir}/run'
836067610f1Smrgincludedir='${prefix}/include'
837067610f1Smrgoldincludedir='/usr/include'
838067610f1Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839067610f1Smrginfodir='${datarootdir}/info'
840067610f1Smrghtmldir='${docdir}'
841067610f1Smrgdvidir='${docdir}'
842067610f1Smrgpdfdir='${docdir}'
843067610f1Smrgpsdir='${docdir}'
844067610f1Smrglibdir='${exec_prefix}/lib'
845067610f1Smrglocaledir='${datarootdir}/locale'
846067610f1Smrgmandir='${datarootdir}/man'
847067610f1Smrg
848067610f1Smrgac_prev=
849067610f1Smrgac_dashdash=
850067610f1Smrgfor ac_option
851067610f1Smrgdo
852067610f1Smrg  # If the previous option needs an argument, assign it.
853067610f1Smrg  if test -n "$ac_prev"; then
854067610f1Smrg    eval $ac_prev=\$ac_option
855067610f1Smrg    ac_prev=
856067610f1Smrg    continue
857067610f1Smrg  fi
858067610f1Smrg
859067610f1Smrg  case $ac_option in
8607e6533d5Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8617e6533d5Smrg  *=)   ac_optarg= ;;
8627e6533d5Smrg  *)    ac_optarg=yes ;;
863067610f1Smrg  esac
864067610f1Smrg
865067610f1Smrg  case $ac_dashdash$ac_option in
866067610f1Smrg  --)
867067610f1Smrg    ac_dashdash=yes ;;
868067610f1Smrg
869067610f1Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
870067610f1Smrg    ac_prev=bindir ;;
871067610f1Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872067610f1Smrg    bindir=$ac_optarg ;;
873067610f1Smrg
874067610f1Smrg  -build | --build | --buil | --bui | --bu)
875067610f1Smrg    ac_prev=build_alias ;;
876067610f1Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877067610f1Smrg    build_alias=$ac_optarg ;;
878067610f1Smrg
879067610f1Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
880067610f1Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881067610f1Smrg    ac_prev=cache_file ;;
882067610f1Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883067610f1Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884067610f1Smrg    cache_file=$ac_optarg ;;
885067610f1Smrg
886067610f1Smrg  --config-cache | -C)
887067610f1Smrg    cache_file=config.cache ;;
888067610f1Smrg
889067610f1Smrg  -datadir | --datadir | --datadi | --datad)
890067610f1Smrg    ac_prev=datadir ;;
891067610f1Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
892067610f1Smrg    datadir=$ac_optarg ;;
893067610f1Smrg
894067610f1Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895067610f1Smrg  | --dataroo | --dataro | --datar)
896067610f1Smrg    ac_prev=datarootdir ;;
897067610f1Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898067610f1Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899067610f1Smrg    datarootdir=$ac_optarg ;;
900067610f1Smrg
901067610f1Smrg  -disable-* | --disable-*)
9027e6533d5Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903067610f1Smrg    # Reject names that are not valid shell variable names.
9047e6533d5Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
90558105723Smrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
9067e6533d5Smrg    ac_useropt_orig=$ac_useropt
90758105723Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
9087e6533d5Smrg    case $ac_user_opts in
9097e6533d5Smrg      *"
9107e6533d5Smrg"enable_$ac_useropt"
9117e6533d5Smrg"*) ;;
9127e6533d5Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
9137e6533d5Smrg	 ac_unrecognized_sep=', ';;
9147e6533d5Smrg    esac
9157e6533d5Smrg    eval enable_$ac_useropt=no ;;
916067610f1Smrg
917067610f1Smrg  -docdir | --docdir | --docdi | --doc | --do)
918067610f1Smrg    ac_prev=docdir ;;
919067610f1Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920067610f1Smrg    docdir=$ac_optarg ;;
921067610f1Smrg
922067610f1Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923067610f1Smrg    ac_prev=dvidir ;;
924067610f1Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925067610f1Smrg    dvidir=$ac_optarg ;;
926067610f1Smrg
927067610f1Smrg  -enable-* | --enable-*)
9287e6533d5Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929067610f1Smrg    # Reject names that are not valid shell variable names.
9307e6533d5Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
93158105723Smrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
9327e6533d5Smrg    ac_useropt_orig=$ac_useropt
93358105723Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
9347e6533d5Smrg    case $ac_user_opts in
9357e6533d5Smrg      *"
9367e6533d5Smrg"enable_$ac_useropt"
9377e6533d5Smrg"*) ;;
9387e6533d5Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
9397e6533d5Smrg	 ac_unrecognized_sep=', ';;
9407e6533d5Smrg    esac
9417e6533d5Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
942067610f1Smrg
943067610f1Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944067610f1Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945067610f1Smrg  | --exec | --exe | --ex)
946067610f1Smrg    ac_prev=exec_prefix ;;
947067610f1Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948067610f1Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949067610f1Smrg  | --exec=* | --exe=* | --ex=*)
950067610f1Smrg    exec_prefix=$ac_optarg ;;
951067610f1Smrg
952067610f1Smrg  -gas | --gas | --ga | --g)
953067610f1Smrg    # Obsolete; use --with-gas.
954067610f1Smrg    with_gas=yes ;;
955067610f1Smrg
956067610f1Smrg  -help | --help | --hel | --he | -h)
957067610f1Smrg    ac_init_help=long ;;
958067610f1Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959067610f1Smrg    ac_init_help=recursive ;;
960067610f1Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961067610f1Smrg    ac_init_help=short ;;
962067610f1Smrg
963067610f1Smrg  -host | --host | --hos | --ho)
964067610f1Smrg    ac_prev=host_alias ;;
965067610f1Smrg  -host=* | --host=* | --hos=* | --ho=*)
966067610f1Smrg    host_alias=$ac_optarg ;;
967067610f1Smrg
968067610f1Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969067610f1Smrg    ac_prev=htmldir ;;
970067610f1Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971067610f1Smrg  | --ht=*)
972067610f1Smrg    htmldir=$ac_optarg ;;
973067610f1Smrg
974067610f1Smrg  -includedir | --includedir | --includedi | --included | --include \
975067610f1Smrg  | --includ | --inclu | --incl | --inc)
976067610f1Smrg    ac_prev=includedir ;;
977067610f1Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978067610f1Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
979067610f1Smrg    includedir=$ac_optarg ;;
980067610f1Smrg
981067610f1Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
982067610f1Smrg    ac_prev=infodir ;;
983067610f1Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984067610f1Smrg    infodir=$ac_optarg ;;
985067610f1Smrg
986067610f1Smrg  -libdir | --libdir | --libdi | --libd)
987067610f1Smrg    ac_prev=libdir ;;
988067610f1Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
989067610f1Smrg    libdir=$ac_optarg ;;
990067610f1Smrg
991067610f1Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992067610f1Smrg  | --libexe | --libex | --libe)
993067610f1Smrg    ac_prev=libexecdir ;;
994067610f1Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995067610f1Smrg  | --libexe=* | --libex=* | --libe=*)
996067610f1Smrg    libexecdir=$ac_optarg ;;
997067610f1Smrg
998067610f1Smrg  -localedir | --localedir | --localedi | --localed | --locale)
999067610f1Smrg    ac_prev=localedir ;;
1000067610f1Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001067610f1Smrg    localedir=$ac_optarg ;;
1002067610f1Smrg
1003067610f1Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
1004067610f1Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
1005067610f1Smrg    ac_prev=localstatedir ;;
1006067610f1Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007067610f1Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008067610f1Smrg    localstatedir=$ac_optarg ;;
1009067610f1Smrg
1010067610f1Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011067610f1Smrg    ac_prev=mandir ;;
1012067610f1Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013067610f1Smrg    mandir=$ac_optarg ;;
1014067610f1Smrg
1015067610f1Smrg  -nfp | --nfp | --nf)
1016067610f1Smrg    # Obsolete; use --without-fp.
1017067610f1Smrg    with_fp=no ;;
1018067610f1Smrg
1019067610f1Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020067610f1Smrg  | --no-cr | --no-c | -n)
1021067610f1Smrg    no_create=yes ;;
1022067610f1Smrg
1023067610f1Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024067610f1Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025067610f1Smrg    no_recursion=yes ;;
1026067610f1Smrg
1027067610f1Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028067610f1Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029067610f1Smrg  | --oldin | --oldi | --old | --ol | --o)
1030067610f1Smrg    ac_prev=oldincludedir ;;
1031067610f1Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032067610f1Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033067610f1Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034067610f1Smrg    oldincludedir=$ac_optarg ;;
1035067610f1Smrg
1036067610f1Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037067610f1Smrg    ac_prev=prefix ;;
1038067610f1Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039067610f1Smrg    prefix=$ac_optarg ;;
1040067610f1Smrg
1041067610f1Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042067610f1Smrg  | --program-pre | --program-pr | --program-p)
1043067610f1Smrg    ac_prev=program_prefix ;;
1044067610f1Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045067610f1Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046067610f1Smrg    program_prefix=$ac_optarg ;;
1047067610f1Smrg
1048067610f1Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049067610f1Smrg  | --program-suf | --program-su | --program-s)
1050067610f1Smrg    ac_prev=program_suffix ;;
1051067610f1Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052067610f1Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053067610f1Smrg    program_suffix=$ac_optarg ;;
1054067610f1Smrg
1055067610f1Smrg  -program-transform-name | --program-transform-name \
1056067610f1Smrg  | --program-transform-nam | --program-transform-na \
1057067610f1Smrg  | --program-transform-n | --program-transform- \
1058067610f1Smrg  | --program-transform | --program-transfor \
1059067610f1Smrg  | --program-transfo | --program-transf \
1060067610f1Smrg  | --program-trans | --program-tran \
1061067610f1Smrg  | --progr-tra | --program-tr | --program-t)
1062067610f1Smrg    ac_prev=program_transform_name ;;
1063067610f1Smrg  -program-transform-name=* | --program-transform-name=* \
1064067610f1Smrg  | --program-transform-nam=* | --program-transform-na=* \
1065067610f1Smrg  | --program-transform-n=* | --program-transform-=* \
1066067610f1Smrg  | --program-transform=* | --program-transfor=* \
1067067610f1Smrg  | --program-transfo=* | --program-transf=* \
1068067610f1Smrg  | --program-trans=* | --program-tran=* \
1069067610f1Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1070067610f1Smrg    program_transform_name=$ac_optarg ;;
1071067610f1Smrg
1072067610f1Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073067610f1Smrg    ac_prev=pdfdir ;;
1074067610f1Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075067610f1Smrg    pdfdir=$ac_optarg ;;
1076067610f1Smrg
1077067610f1Smrg  -psdir | --psdir | --psdi | --psd | --ps)
1078067610f1Smrg    ac_prev=psdir ;;
1079067610f1Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080067610f1Smrg    psdir=$ac_optarg ;;
1081067610f1Smrg
1082067610f1Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083067610f1Smrg  | -silent | --silent | --silen | --sile | --sil)
1084067610f1Smrg    silent=yes ;;
1085067610f1Smrg
108658105723Smrg  -runstatedir | --runstatedir | --runstatedi | --runstated \
108758105723Smrg  | --runstate | --runstat | --runsta | --runst | --runs \
108858105723Smrg  | --run | --ru | --r)
108958105723Smrg    ac_prev=runstatedir ;;
109058105723Smrg  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
109158105723Smrg  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
109258105723Smrg  | --run=* | --ru=* | --r=*)
109358105723Smrg    runstatedir=$ac_optarg ;;
109458105723Smrg
1095067610f1Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096067610f1Smrg    ac_prev=sbindir ;;
1097067610f1Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098067610f1Smrg  | --sbi=* | --sb=*)
1099067610f1Smrg    sbindir=$ac_optarg ;;
1100067610f1Smrg
1101067610f1Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102067610f1Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103067610f1Smrg  | --sharedst | --shareds | --shared | --share | --shar \
1104067610f1Smrg  | --sha | --sh)
1105067610f1Smrg    ac_prev=sharedstatedir ;;
1106067610f1Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107067610f1Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108067610f1Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109067610f1Smrg  | --sha=* | --sh=*)
1110067610f1Smrg    sharedstatedir=$ac_optarg ;;
1111067610f1Smrg
1112067610f1Smrg  -site | --site | --sit)
1113067610f1Smrg    ac_prev=site ;;
1114067610f1Smrg  -site=* | --site=* | --sit=*)
1115067610f1Smrg    site=$ac_optarg ;;
1116067610f1Smrg
1117067610f1Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118067610f1Smrg    ac_prev=srcdir ;;
1119067610f1Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120067610f1Smrg    srcdir=$ac_optarg ;;
1121067610f1Smrg
1122067610f1Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123067610f1Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
1124067610f1Smrg    ac_prev=sysconfdir ;;
1125067610f1Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126067610f1Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127067610f1Smrg    sysconfdir=$ac_optarg ;;
1128067610f1Smrg
1129067610f1Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1130067610f1Smrg    ac_prev=target_alias ;;
1131067610f1Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132067610f1Smrg    target_alias=$ac_optarg ;;
1133067610f1Smrg
1134067610f1Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135067610f1Smrg    verbose=yes ;;
1136067610f1Smrg
1137067610f1Smrg  -version | --version | --versio | --versi | --vers | -V)
1138067610f1Smrg    ac_init_version=: ;;
1139067610f1Smrg
1140067610f1Smrg  -with-* | --with-*)
11417e6533d5Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142067610f1Smrg    # Reject names that are not valid shell variable names.
11437e6533d5Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
114458105723Smrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
11457e6533d5Smrg    ac_useropt_orig=$ac_useropt
114658105723Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11477e6533d5Smrg    case $ac_user_opts in
11487e6533d5Smrg      *"
11497e6533d5Smrg"with_$ac_useropt"
11507e6533d5Smrg"*) ;;
11517e6533d5Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
11527e6533d5Smrg	 ac_unrecognized_sep=', ';;
11537e6533d5Smrg    esac
11547e6533d5Smrg    eval with_$ac_useropt=\$ac_optarg ;;
1155067610f1Smrg
1156067610f1Smrg  -without-* | --without-*)
11577e6533d5Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158067610f1Smrg    # Reject names that are not valid shell variable names.
11597e6533d5Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
116058105723Smrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
11617e6533d5Smrg    ac_useropt_orig=$ac_useropt
116258105723Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11637e6533d5Smrg    case $ac_user_opts in
11647e6533d5Smrg      *"
11657e6533d5Smrg"with_$ac_useropt"
11667e6533d5Smrg"*) ;;
11677e6533d5Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11687e6533d5Smrg	 ac_unrecognized_sep=', ';;
11697e6533d5Smrg    esac
11707e6533d5Smrg    eval with_$ac_useropt=no ;;
1171067610f1Smrg
1172067610f1Smrg  --x)
1173067610f1Smrg    # Obsolete; use --with-x.
1174067610f1Smrg    with_x=yes ;;
1175067610f1Smrg
1176067610f1Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177067610f1Smrg  | --x-incl | --x-inc | --x-in | --x-i)
1178067610f1Smrg    ac_prev=x_includes ;;
1179067610f1Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180067610f1Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181067610f1Smrg    x_includes=$ac_optarg ;;
1182067610f1Smrg
1183067610f1Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184067610f1Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185067610f1Smrg    ac_prev=x_libraries ;;
1186067610f1Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187067610f1Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188067610f1Smrg    x_libraries=$ac_optarg ;;
1189067610f1Smrg
11907e6533d5Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
11917e6533d5SmrgTry \`$0 --help' for more information"
1192067610f1Smrg    ;;
1193067610f1Smrg
1194067610f1Smrg  *=*)
1195067610f1Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196067610f1Smrg    # Reject names that are not valid shell variable names.
11977e6533d5Smrg    case $ac_envvar in #(
11987e6533d5Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
11997e6533d5Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
12007e6533d5Smrg    esac
1201067610f1Smrg    eval $ac_envvar=\$ac_optarg
1202067610f1Smrg    export $ac_envvar ;;
1203067610f1Smrg
1204067610f1Smrg  *)
1205067610f1Smrg    # FIXME: should be removed in autoconf 3.0.
120658105723Smrg    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1207067610f1Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
120858105723Smrg      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
12097e6533d5Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210067610f1Smrg    ;;
1211067610f1Smrg
1212067610f1Smrg  esac
1213067610f1Smrgdone
1214067610f1Smrg
1215067610f1Smrgif test -n "$ac_prev"; then
1216067610f1Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12177e6533d5Smrg  as_fn_error $? "missing argument to $ac_option"
12187e6533d5Smrgfi
12197e6533d5Smrg
12207e6533d5Smrgif test -n "$ac_unrecognized_opts"; then
12217e6533d5Smrg  case $enable_option_checking in
12227e6533d5Smrg    no) ;;
12237e6533d5Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
122458105723Smrg    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12257e6533d5Smrg  esac
1226067610f1Smrgfi
1227067610f1Smrg
12287e6533d5Smrg# Check all directory arguments for consistency.
1229067610f1Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230067610f1Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1231067610f1Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
123258105723Smrg		libdir localedir mandir runstatedir
1233067610f1Smrgdo
1234067610f1Smrg  eval ac_val=\$$ac_var
12357e6533d5Smrg  # Remove trailing slashes.
12367e6533d5Smrg  case $ac_val in
12377e6533d5Smrg    */ )
12387e6533d5Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
12397e6533d5Smrg      eval $ac_var=\$ac_val;;
12407e6533d5Smrg  esac
12417e6533d5Smrg  # Be sure to have absolute directory names.
1242067610f1Smrg  case $ac_val in
1243067610f1Smrg    [\\/$]* | ?:[\\/]* )  continue;;
1244067610f1Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245067610f1Smrg  esac
12467e6533d5Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247067610f1Smrgdone
1248067610f1Smrg
1249067610f1Smrg# There might be people who depend on the old broken behavior: `$host'
1250067610f1Smrg# used to hold the argument of --host etc.
1251067610f1Smrg# FIXME: To remove some day.
1252067610f1Smrgbuild=$build_alias
1253067610f1Smrghost=$host_alias
1254067610f1Smrgtarget=$target_alias
1255067610f1Smrg
1256067610f1Smrg# FIXME: To remove some day.
1257067610f1Smrgif test "x$host_alias" != x; then
1258067610f1Smrg  if test "x$build_alias" = x; then
1259067610f1Smrg    cross_compiling=maybe
1260067610f1Smrg  elif test "x$build_alias" != "x$host_alias"; then
1261067610f1Smrg    cross_compiling=yes
1262067610f1Smrg  fi
1263067610f1Smrgfi
1264067610f1Smrg
1265067610f1Smrgac_tool_prefix=
1266067610f1Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1267067610f1Smrg
1268067610f1Smrgtest "$silent" = yes && exec 6>/dev/null
1269067610f1Smrg
1270067610f1Smrg
1271067610f1Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1272067610f1Smrgac_ls_di=`ls -di .` &&
1273067610f1Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12747e6533d5Smrg  as_fn_error $? "working directory cannot be determined"
1275067610f1Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12767e6533d5Smrg  as_fn_error $? "pwd does not report name of working directory"
1277067610f1Smrg
1278067610f1Smrg
1279067610f1Smrg# Find the source files, if location was not specified.
1280067610f1Smrgif test -z "$srcdir"; then
1281067610f1Smrg  ac_srcdir_defaulted=yes
1282067610f1Smrg  # Try the directory containing this script, then the parent directory.
12837e6533d5Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12847e6533d5Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12857e6533d5Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12867e6533d5Smrg	 X"$as_myself" : 'X\(//\)$' \| \
12877e6533d5Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
128858105723Smrgprintf "%s\n" X"$as_myself" |
1289067610f1Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290067610f1Smrg	    s//\1/
1291067610f1Smrg	    q
1292067610f1Smrg	  }
1293067610f1Smrg	  /^X\(\/\/\)[^/].*/{
1294067610f1Smrg	    s//\1/
1295067610f1Smrg	    q
1296067610f1Smrg	  }
1297067610f1Smrg	  /^X\(\/\/\)$/{
1298067610f1Smrg	    s//\1/
1299067610f1Smrg	    q
1300067610f1Smrg	  }
1301067610f1Smrg	  /^X\(\/\).*/{
1302067610f1Smrg	    s//\1/
1303067610f1Smrg	    q
1304067610f1Smrg	  }
1305067610f1Smrg	  s/.*/./; q'`
1306067610f1Smrg  srcdir=$ac_confdir
1307067610f1Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
1308067610f1Smrg    srcdir=..
1309067610f1Smrg  fi
1310067610f1Smrgelse
1311067610f1Smrg  ac_srcdir_defaulted=no
1312067610f1Smrgfi
1313067610f1Smrgif test ! -r "$srcdir/$ac_unique_file"; then
1314067610f1Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
13157e6533d5Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316067610f1Smrgfi
1317067610f1Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318067610f1Smrgac_abs_confdir=`(
13197e6533d5Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320067610f1Smrg	pwd)`
1321067610f1Smrg# When building in place, set srcdir=.
1322067610f1Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1323067610f1Smrg  srcdir=.
1324067610f1Smrgfi
1325067610f1Smrg# Remove unnecessary trailing slashes from srcdir.
1326067610f1Smrg# Double slashes in file names in object file debugging info
1327067610f1Smrg# mess up M-x gdb in Emacs.
1328067610f1Smrgcase $srcdir in
1329067610f1Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330067610f1Smrgesac
1331067610f1Smrgfor ac_var in $ac_precious_vars; do
1332067610f1Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333067610f1Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
1334067610f1Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335067610f1Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336067610f1Smrgdone
1337067610f1Smrg
1338067610f1Smrg#
1339067610f1Smrg# Report the --help message.
1340067610f1Smrg#
1341067610f1Smrgif test "$ac_init_help" = "long"; then
1342067610f1Smrg  # Omit some internal or obsolete options to make the list less imposing.
1343067610f1Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
1344067610f1Smrg  cat <<_ACEOF
134558105723Smrg\`configure' configures xfsinfo 1.0.7 to adapt to many kinds of systems.
1346067610f1Smrg
1347067610f1SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1348067610f1Smrg
1349067610f1SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1350067610f1SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1351067610f1Smrg
1352067610f1SmrgDefaults for the options are specified in brackets.
1353067610f1Smrg
1354067610f1SmrgConfiguration:
1355067610f1Smrg  -h, --help              display this help and exit
1356067610f1Smrg      --help=short        display options specific to this package
1357067610f1Smrg      --help=recursive    display the short help of all the included packages
1358067610f1Smrg  -V, --version           display version information and exit
13597e6533d5Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
1360067610f1Smrg      --cache-file=FILE   cache test results in FILE [disabled]
1361067610f1Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1362067610f1Smrg  -n, --no-create         do not create output files
1363067610f1Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1364067610f1Smrg
1365067610f1SmrgInstallation directories:
1366067610f1Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13677e6533d5Smrg                          [$ac_default_prefix]
1368067610f1Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13697e6533d5Smrg                          [PREFIX]
1370067610f1Smrg
1371067610f1SmrgBy default, \`make install' will install all the files in
1372067610f1Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1373067610f1Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374067610f1Smrgfor instance \`--prefix=\$HOME'.
1375067610f1Smrg
1376067610f1SmrgFor better control, use the options below.
1377067610f1Smrg
1378067610f1SmrgFine tuning of the installation directories:
13797e6533d5Smrg  --bindir=DIR            user executables [EPREFIX/bin]
13807e6533d5Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13817e6533d5Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13827e6533d5Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13837e6533d5Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13847e6533d5Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
138558105723Smrg  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
13867e6533d5Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13877e6533d5Smrg  --includedir=DIR        C header files [PREFIX/include]
13887e6533d5Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13897e6533d5Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13907e6533d5Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13917e6533d5Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
13927e6533d5Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13937e6533d5Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
13947e6533d5Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xfsinfo]
13957e6533d5Smrg  --htmldir=DIR           html documentation [DOCDIR]
13967e6533d5Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
13977e6533d5Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
13987e6533d5Smrg  --psdir=DIR             ps documentation [DOCDIR]
1399067610f1Smrg_ACEOF
1400067610f1Smrg
1401067610f1Smrg  cat <<\_ACEOF
1402067610f1Smrg
1403067610f1SmrgProgram names:
1404067610f1Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1405067610f1Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1406067610f1Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1407067610f1Smrg
1408067610f1SmrgSystem types:
1409067610f1Smrg  --build=BUILD     configure for building on BUILD [guessed]
1410067610f1Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1411067610f1Smrg_ACEOF
1412067610f1Smrgfi
1413067610f1Smrg
1414067610f1Smrgif test -n "$ac_init_help"; then
1415067610f1Smrg  case $ac_init_help in
141658105723Smrg     short | recursive ) echo "Configuration of xfsinfo 1.0.7:";;
1417067610f1Smrg   esac
1418067610f1Smrg  cat <<\_ACEOF
1419067610f1Smrg
1420067610f1SmrgOptional Features:
14217e6533d5Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
1422067610f1Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1423067610f1Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424e7fdea5fSmrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
1425e7fdea5fSmrg  --disable-silent-rules  verbose build output (undo: "make V=0")
1426e7fdea5fSmrg  --enable-dependency-tracking
1427e7fdea5fSmrg                          do not reject slow dependency extractors
1428e7fdea5fSmrg  --disable-dependency-tracking
1429e7fdea5fSmrg                          speeds up one-time build
1430aea1d7ffSmrg  --disable-selective-werror
1431aea1d7ffSmrg                          Turn off selective compiler errors. (default:
1432aea1d7ffSmrg                          enabled)
14337e6533d5Smrg  --enable-strict-compilation
14347e6533d5Smrg                          Enable all warnings from compiler and make them
14357e6533d5Smrg                          errors (default: disabled)
1436067610f1Smrg
1437067610f1SmrgSome influential environment variables:
1438067610f1Smrg  CC          C compiler command
1439067610f1Smrg  CFLAGS      C compiler flags
1440067610f1Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1441067610f1Smrg              nonstandard directory <lib dir>
1442067610f1Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
14437e6533d5Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444067610f1Smrg              you have headers in a nonstandard directory <include dir>
1445067610f1Smrg  PKG_CONFIG  path to pkg-config utility
14464d9306dbSmrg  PKG_CONFIG_PATH
14474d9306dbSmrg              directories to add to pkg-config's search path
14484d9306dbSmrg  PKG_CONFIG_LIBDIR
14494d9306dbSmrg              path overriding pkg-config's built-in search path
1450067610f1Smrg  XFSINFO_CFLAGS
1451067610f1Smrg              C compiler flags for XFSINFO, overriding pkg-config
1452067610f1Smrg  XFSINFO_LIBS
1453067610f1Smrg              linker flags for XFSINFO, overriding pkg-config
1454067610f1Smrg
1455067610f1SmrgUse these variables to override the choices made by `configure' or to help
1456067610f1Smrgit to find libraries and programs with nonstandard names/locations.
1457067610f1Smrg
145858105723SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xfsinfo/-/issues>.
1459067610f1Smrg_ACEOF
1460067610f1Smrgac_status=$?
1461067610f1Smrgfi
1462067610f1Smrg
1463067610f1Smrgif test "$ac_init_help" = "recursive"; then
1464067610f1Smrg  # If there are subdirs, report their specific --help.
1465067610f1Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14667e6533d5Smrg    test -d "$ac_dir" ||
14677e6533d5Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14687e6533d5Smrg      continue
1469067610f1Smrg    ac_builddir=.
1470067610f1Smrg
1471067610f1Smrgcase "$ac_dir" in
1472067610f1Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473067610f1Smrg*)
147458105723Smrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1475067610f1Smrg  # A ".." for each directory in $ac_dir_suffix.
147658105723Smrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1477067610f1Smrg  case $ac_top_builddir_sub in
1478067610f1Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479067610f1Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480067610f1Smrg  esac ;;
1481067610f1Smrgesac
1482067610f1Smrgac_abs_top_builddir=$ac_pwd
1483067610f1Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1484067610f1Smrg# for backward compatibility:
1485067610f1Smrgac_top_builddir=$ac_top_build_prefix
1486067610f1Smrg
1487067610f1Smrgcase $srcdir in
1488067610f1Smrg  .)  # We are building in place.
1489067610f1Smrg    ac_srcdir=.
1490067610f1Smrg    ac_top_srcdir=$ac_top_builddir_sub
1491067610f1Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1492067610f1Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1493067610f1Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1494067610f1Smrg    ac_top_srcdir=$srcdir
1495067610f1Smrg    ac_abs_top_srcdir=$srcdir ;;
1496067610f1Smrg  *) # Relative name.
1497067610f1Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498067610f1Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1499067610f1Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500067610f1Smrgesac
1501067610f1Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502067610f1Smrg
1503067610f1Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
150458105723Smrg    # Check for configure.gnu first; this name is used for a wrapper for
150558105723Smrg    # Metaconfig's "Configure" on case-insensitive file systems.
1506067610f1Smrg    if test -f "$ac_srcdir/configure.gnu"; then
1507067610f1Smrg      echo &&
1508067610f1Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509067610f1Smrg    elif test -f "$ac_srcdir/configure"; then
1510067610f1Smrg      echo &&
1511067610f1Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
1512067610f1Smrg    else
151358105723Smrg      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514067610f1Smrg    fi || ac_status=$?
1515067610f1Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
1516067610f1Smrg  done
1517067610f1Smrgfi
1518067610f1Smrg
1519067610f1Smrgtest -n "$ac_init_help" && exit $ac_status
1520067610f1Smrgif $ac_init_version; then
1521067610f1Smrg  cat <<\_ACEOF
152258105723Smrgxfsinfo configure 1.0.7
152358105723Smrggenerated by GNU Autoconf 2.71
1524067610f1Smrg
152558105723SmrgCopyright (C) 2021 Free Software Foundation, Inc.
1526067610f1SmrgThis configure script is free software; the Free Software Foundation
1527067610f1Smrggives unlimited permission to copy, distribute and modify it.
1528067610f1Smrg_ACEOF
1529067610f1Smrg  exit
1530067610f1Smrgfi
15317e6533d5Smrg
15327e6533d5Smrg## ------------------------ ##
15337e6533d5Smrg## Autoconf initialization. ##
15347e6533d5Smrg## ------------------------ ##
15357e6533d5Smrg
15367e6533d5Smrg# ac_fn_c_try_compile LINENO
15377e6533d5Smrg# --------------------------
15387e6533d5Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
15397e6533d5Smrgac_fn_c_try_compile ()
15407e6533d5Smrg{
15417e6533d5Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
154258105723Smrg  rm -f conftest.$ac_objext conftest.beam
15437e6533d5Smrg  if { { ac_try="$ac_compile"
15447e6533d5Smrgcase "(($ac_try" in
15457e6533d5Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15467e6533d5Smrg  *) ac_try_echo=$ac_try;;
15477e6533d5Smrgesac
15487e6533d5Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
154958105723Smrgprintf "%s\n" "$ac_try_echo"; } >&5
15507e6533d5Smrg  (eval "$ac_compile") 2>conftest.err
15517e6533d5Smrg  ac_status=$?
15527e6533d5Smrg  if test -s conftest.err; then
15537e6533d5Smrg    grep -v '^ *+' conftest.err >conftest.er1
15547e6533d5Smrg    cat conftest.er1 >&5
15557e6533d5Smrg    mv -f conftest.er1 conftest.err
15567e6533d5Smrg  fi
155758105723Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15587e6533d5Smrg  test $ac_status = 0; } && {
15597e6533d5Smrg	 test -z "$ac_c_werror_flag" ||
15607e6533d5Smrg	 test ! -s conftest.err
156158105723Smrg       } && test -s conftest.$ac_objext
156258105723Smrgthen :
15637e6533d5Smrg  ac_retval=0
156458105723Smrgelse $as_nop
156558105723Smrg  printf "%s\n" "$as_me: failed program was:" >&5
15667e6533d5Smrgsed 's/^/| /' conftest.$ac_ext >&5
15677e6533d5Smrg
15687e6533d5Smrg	ac_retval=1
15697e6533d5Smrgfi
15707e6533d5Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15717e6533d5Smrg  as_fn_set_status $ac_retval
15727e6533d5Smrg
15737e6533d5Smrg} # ac_fn_c_try_compile
15747e6533d5Smrg
157558105723Smrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
157658105723Smrg# ------------------------------------------------------------------
15777e6533d5Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
157858105723Smrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
157958105723Smrgac_fn_check_decl ()
15807e6533d5Smrg{
15817e6533d5Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15827e6533d5Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
158358105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
158458105723Smrgprintf %s "checking whether $as_decl_name is declared... " >&6; }
158558105723Smrgif eval test \${$3+y}
158658105723Smrgthen :
158758105723Smrg  printf %s "(cached) " >&6
158858105723Smrgelse $as_nop
15897e6533d5Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
159058105723Smrg  eval ac_save_FLAGS=\$$6
159158105723Smrg  as_fn_append $6 " $5"
15927e6533d5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937e6533d5Smrg/* end confdefs.h.  */
15947e6533d5Smrg$4
15957e6533d5Smrgint
159658105723Smrgmain (void)
15977e6533d5Smrg{
15987e6533d5Smrg#ifndef $as_decl_name
15997e6533d5Smrg#ifdef __cplusplus
16007e6533d5Smrg  (void) $as_decl_use;
16017e6533d5Smrg#else
16027e6533d5Smrg  (void) $as_decl_name;
16037e6533d5Smrg#endif
16047e6533d5Smrg#endif
16057e6533d5Smrg
16067e6533d5Smrg  ;
16077e6533d5Smrg  return 0;
16087e6533d5Smrg}
16097e6533d5Smrg_ACEOF
161058105723Smrgif ac_fn_c_try_compile "$LINENO"
161158105723Smrgthen :
16127e6533d5Smrg  eval "$3=yes"
161358105723Smrgelse $as_nop
16147e6533d5Smrg  eval "$3=no"
16157e6533d5Smrgfi
161658105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
161758105723Smrg  eval $6=\$ac_save_FLAGS
16187e6533d5Smrg
16197e6533d5Smrgfi
162058105723Smrgeval ac_res=\$$3
162158105723Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
162258105723Smrgprintf "%s\n" "$ac_res" >&6; }
16237e6533d5Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16247e6533d5Smrg
162558105723Smrg} # ac_fn_check_decl
16267e6533d5Smrg
16277e6533d5Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
16287e6533d5Smrg# -------------------------------------------------------
16297e6533d5Smrg# Tests whether HEADER exists and can be compiled using the include files in
16307e6533d5Smrg# INCLUDES, setting the cache variable VAR accordingly.
16317e6533d5Smrgac_fn_c_check_header_compile ()
16327e6533d5Smrg{
16337e6533d5Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
163458105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
163558105723Smrgprintf %s "checking for $2... " >&6; }
163658105723Smrgif eval test \${$3+y}
163758105723Smrgthen :
163858105723Smrg  printf %s "(cached) " >&6
163958105723Smrgelse $as_nop
16407e6533d5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417e6533d5Smrg/* end confdefs.h.  */
16427e6533d5Smrg$4
16437e6533d5Smrg#include <$2>
16447e6533d5Smrg_ACEOF
164558105723Smrgif ac_fn_c_try_compile "$LINENO"
164658105723Smrgthen :
16477e6533d5Smrg  eval "$3=yes"
164858105723Smrgelse $as_nop
16497e6533d5Smrg  eval "$3=no"
16507e6533d5Smrgfi
165158105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16527e6533d5Smrgfi
16537e6533d5Smrgeval ac_res=\$$3
165458105723Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
165558105723Smrgprintf "%s\n" "$ac_res" >&6; }
16567e6533d5Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16577e6533d5Smrg
16587e6533d5Smrg} # ac_fn_c_check_header_compile
1659aea1d7ffSmrg
1660aea1d7ffSmrg# ac_fn_c_try_link LINENO
1661aea1d7ffSmrg# -----------------------
1662aea1d7ffSmrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1663aea1d7ffSmrgac_fn_c_try_link ()
1664aea1d7ffSmrg{
1665aea1d7ffSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
166658105723Smrg  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1667aea1d7ffSmrg  if { { ac_try="$ac_link"
1668aea1d7ffSmrgcase "(($ac_try" in
1669aea1d7ffSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670aea1d7ffSmrg  *) ac_try_echo=$ac_try;;
1671aea1d7ffSmrgesac
1672aea1d7ffSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
167358105723Smrgprintf "%s\n" "$ac_try_echo"; } >&5
1674aea1d7ffSmrg  (eval "$ac_link") 2>conftest.err
1675aea1d7ffSmrg  ac_status=$?
1676aea1d7ffSmrg  if test -s conftest.err; then
1677aea1d7ffSmrg    grep -v '^ *+' conftest.err >conftest.er1
1678aea1d7ffSmrg    cat conftest.er1 >&5
1679aea1d7ffSmrg    mv -f conftest.er1 conftest.err
1680aea1d7ffSmrg  fi
168158105723Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682aea1d7ffSmrg  test $ac_status = 0; } && {
1683aea1d7ffSmrg	 test -z "$ac_c_werror_flag" ||
1684aea1d7ffSmrg	 test ! -s conftest.err
1685aea1d7ffSmrg       } && test -s conftest$ac_exeext && {
1686aea1d7ffSmrg	 test "$cross_compiling" = yes ||
1687e7fdea5fSmrg	 test -x conftest$ac_exeext
168858105723Smrg       }
168958105723Smrgthen :
1690aea1d7ffSmrg  ac_retval=0
169158105723Smrgelse $as_nop
169258105723Smrg  printf "%s\n" "$as_me: failed program was:" >&5
1693aea1d7ffSmrgsed 's/^/| /' conftest.$ac_ext >&5
1694aea1d7ffSmrg
1695aea1d7ffSmrg	ac_retval=1
1696aea1d7ffSmrgfi
1697aea1d7ffSmrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698aea1d7ffSmrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699aea1d7ffSmrg  # interfere with the next link command; also delete a directory that is
1700aea1d7ffSmrg  # left behind by Apple's compiler.  We do this before executing the actions.
1701aea1d7ffSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702aea1d7ffSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703aea1d7ffSmrg  as_fn_set_status $ac_retval
1704aea1d7ffSmrg
1705aea1d7ffSmrg} # ac_fn_c_try_link
170658105723Smrgac_configure_args_raw=
170758105723Smrgfor ac_arg
170858105723Smrgdo
170958105723Smrg  case $ac_arg in
171058105723Smrg  *\'*)
171158105723Smrg    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
171258105723Smrg  esac
171358105723Smrg  as_fn_append ac_configure_args_raw " '$ac_arg'"
171458105723Smrgdone
171558105723Smrg
171658105723Smrgcase $ac_configure_args_raw in
171758105723Smrg  *$as_nl*)
171858105723Smrg    ac_safe_unquote= ;;
171958105723Smrg  *)
172058105723Smrg    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
172158105723Smrg    ac_unsafe_a="$ac_unsafe_z#~"
172258105723Smrg    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
172358105723Smrg    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
172458105723Smrgesac
172558105723Smrg
1726067610f1Smrgcat >config.log <<_ACEOF
1727067610f1SmrgThis file contains any messages produced by compilers while
1728067610f1Smrgrunning configure, to aid debugging if configure makes a mistake.
1729067610f1Smrg
173058105723SmrgIt was created by xfsinfo $as_me 1.0.7, which was
173158105723Smrggenerated by GNU Autoconf 2.71.  Invocation command line was
1732067610f1Smrg
173358105723Smrg  $ $0$ac_configure_args_raw
1734067610f1Smrg
1735067610f1Smrg_ACEOF
1736067610f1Smrgexec 5>>config.log
1737067610f1Smrg{
1738067610f1Smrgcat <<_ASUNAME
1739067610f1Smrg## --------- ##
1740067610f1Smrg## Platform. ##
1741067610f1Smrg## --------- ##
1742067610f1Smrg
1743067610f1Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1744067610f1Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1745067610f1Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1746067610f1Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1747067610f1Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1748067610f1Smrg
1749067610f1Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1750067610f1Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1751067610f1Smrg
1752067610f1Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1753067610f1Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1754067610f1Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1755067610f1Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1756067610f1Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1757067610f1Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1758067610f1Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1759067610f1Smrg
1760067610f1Smrg_ASUNAME
1761067610f1Smrg
1762067610f1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763067610f1Smrgfor as_dir in $PATH
1764067610f1Smrgdo
1765067610f1Smrg  IFS=$as_save_IFS
176658105723Smrg  case $as_dir in #(((
176758105723Smrg    '') as_dir=./ ;;
176858105723Smrg    */) ;;
176958105723Smrg    *) as_dir=$as_dir/ ;;
177058105723Smrg  esac
177158105723Smrg    printf "%s\n" "PATH: $as_dir"
17727e6533d5Smrg  done
1773067610f1SmrgIFS=$as_save_IFS
1774067610f1Smrg
1775067610f1Smrg} >&5
1776067610f1Smrg
1777067610f1Smrgcat >&5 <<_ACEOF
1778067610f1Smrg
1779067610f1Smrg
1780067610f1Smrg## ----------- ##
1781067610f1Smrg## Core tests. ##
1782067610f1Smrg## ----------- ##
1783067610f1Smrg
1784067610f1Smrg_ACEOF
1785067610f1Smrg
1786067610f1Smrg
1787067610f1Smrg# Keep a trace of the command line.
1788067610f1Smrg# Strip out --no-create and --no-recursion so they do not pile up.
1789067610f1Smrg# Strip out --silent because we don't want to record it for future runs.
1790067610f1Smrg# Also quote any args containing shell meta-characters.
1791067610f1Smrg# Make two passes to allow for proper duplicate-argument suppression.
1792067610f1Smrgac_configure_args=
1793067610f1Smrgac_configure_args0=
1794067610f1Smrgac_configure_args1=
1795067610f1Smrgac_must_keep_next=false
1796067610f1Smrgfor ac_pass in 1 2
1797067610f1Smrgdo
1798067610f1Smrg  for ac_arg
1799067610f1Smrg  do
1800067610f1Smrg    case $ac_arg in
1801067610f1Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1802067610f1Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1803067610f1Smrg    | -silent | --silent | --silen | --sile | --sil)
1804067610f1Smrg      continue ;;
1805067610f1Smrg    *\'*)
180658105723Smrg      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1807067610f1Smrg    esac
1808067610f1Smrg    case $ac_pass in
18097e6533d5Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1810067610f1Smrg    2)
18117e6533d5Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1812067610f1Smrg      if test $ac_must_keep_next = true; then
1813067610f1Smrg	ac_must_keep_next=false # Got value, back to normal.
1814067610f1Smrg      else
1815067610f1Smrg	case $ac_arg in
1816067610f1Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1817067610f1Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1818067610f1Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1819067610f1Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1820067610f1Smrg	    case "$ac_configure_args0 " in
1821067610f1Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1822067610f1Smrg	    esac
1823067610f1Smrg	    ;;
1824067610f1Smrg	  -* ) ac_must_keep_next=true ;;
1825067610f1Smrg	esac
1826067610f1Smrg      fi
18277e6533d5Smrg      as_fn_append ac_configure_args " '$ac_arg'"
1828067610f1Smrg      ;;
1829067610f1Smrg    esac
1830067610f1Smrg  done
1831067610f1Smrgdone
18327e6533d5Smrg{ ac_configure_args0=; unset ac_configure_args0;}
18337e6533d5Smrg{ ac_configure_args1=; unset ac_configure_args1;}
1834067610f1Smrg
1835067610f1Smrg# When interrupted or exit'd, cleanup temporary files, and complete
1836067610f1Smrg# config.log.  We remove comments because anyway the quotes in there
1837067610f1Smrg# would cause problems or look ugly.
1838067610f1Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1839067610f1Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1840067610f1Smrgtrap 'exit_status=$?
184158105723Smrg  # Sanitize IFS.
184258105723Smrg  IFS=" ""	$as_nl"
1843067610f1Smrg  # Save into config.log some information that might help in debugging.
1844067610f1Smrg  {
1845067610f1Smrg    echo
1846067610f1Smrg
184758105723Smrg    printf "%s\n" "## ---------------- ##
1848067610f1Smrg## Cache variables. ##
18497e6533d5Smrg## ---------------- ##"
1850067610f1Smrg    echo
1851067610f1Smrg    # The following way of writing the cache mishandles newlines in values,
1852067610f1Smrg(
1853067610f1Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1854067610f1Smrg    eval ac_val=\$$ac_var
1855067610f1Smrg    case $ac_val in #(
1856067610f1Smrg    *${as_nl}*)
1857067610f1Smrg      case $ac_var in #(
185858105723Smrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
185958105723Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1860067610f1Smrg      esac
1861067610f1Smrg      case $ac_var in #(
1862067610f1Smrg      _ | IFS | as_nl) ;; #(
18637e6533d5Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18647e6533d5Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1865067610f1Smrg      esac ;;
1866067610f1Smrg    esac
1867067610f1Smrg  done
1868067610f1Smrg  (set) 2>&1 |
1869067610f1Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1870067610f1Smrg    *${as_nl}ac_space=\ *)
1871067610f1Smrg      sed -n \
1872067610f1Smrg	"s/'\''/'\''\\\\'\'''\''/g;
1873067610f1Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1874067610f1Smrg      ;; #(
1875067610f1Smrg    *)
1876067610f1Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1877067610f1Smrg      ;;
1878067610f1Smrg    esac |
1879067610f1Smrg    sort
1880067610f1Smrg)
1881067610f1Smrg    echo
1882067610f1Smrg
188358105723Smrg    printf "%s\n" "## ----------------- ##
1884067610f1Smrg## Output variables. ##
18857e6533d5Smrg## ----------------- ##"
1886067610f1Smrg    echo
1887067610f1Smrg    for ac_var in $ac_subst_vars
1888067610f1Smrg    do
1889067610f1Smrg      eval ac_val=\$$ac_var
1890067610f1Smrg      case $ac_val in
189158105723Smrg      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1892067610f1Smrg      esac
189358105723Smrg      printf "%s\n" "$ac_var='\''$ac_val'\''"
1894067610f1Smrg    done | sort
1895067610f1Smrg    echo
1896067610f1Smrg
1897067610f1Smrg    if test -n "$ac_subst_files"; then
189858105723Smrg      printf "%s\n" "## ------------------- ##
1899067610f1Smrg## File substitutions. ##
19007e6533d5Smrg## ------------------- ##"
1901067610f1Smrg      echo
1902067610f1Smrg      for ac_var in $ac_subst_files
1903067610f1Smrg      do
1904067610f1Smrg	eval ac_val=\$$ac_var
1905067610f1Smrg	case $ac_val in
190658105723Smrg	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1907067610f1Smrg	esac
190858105723Smrg	printf "%s\n" "$ac_var='\''$ac_val'\''"
1909067610f1Smrg      done | sort
1910067610f1Smrg      echo
1911067610f1Smrg    fi
1912067610f1Smrg
1913067610f1Smrg    if test -s confdefs.h; then
191458105723Smrg      printf "%s\n" "## ----------- ##
1915067610f1Smrg## confdefs.h. ##
19167e6533d5Smrg## ----------- ##"
1917067610f1Smrg      echo
1918067610f1Smrg      cat confdefs.h
1919067610f1Smrg      echo
1920067610f1Smrg    fi
1921067610f1Smrg    test "$ac_signal" != 0 &&
192258105723Smrg      printf "%s\n" "$as_me: caught signal $ac_signal"
192358105723Smrg    printf "%s\n" "$as_me: exit $exit_status"
1924067610f1Smrg  } >&5
1925067610f1Smrg  rm -f core *.core core.conftest.* &&
1926067610f1Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1927067610f1Smrg    exit $exit_status
1928067610f1Smrg' 0
1929067610f1Smrgfor ac_signal in 1 2 13 15; do
19307e6533d5Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1931067610f1Smrgdone
1932067610f1Smrgac_signal=0
1933067610f1Smrg
1934067610f1Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
1935067610f1Smrgrm -f -r conftest* confdefs.h
1936067610f1Smrg
193758105723Smrgprintf "%s\n" "/* confdefs.h */" > confdefs.h
19387e6533d5Smrg
1939067610f1Smrg# Predefined preprocessor variables.
1940067610f1Smrg
194158105723Smrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1942067610f1Smrg
194358105723Smrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1944067610f1Smrg
194558105723Smrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1946067610f1Smrg
194758105723Smrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1948067610f1Smrg
194958105723Smrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1950067610f1Smrg
195158105723Smrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
19527e6533d5Smrg
1953067610f1Smrg
1954067610f1Smrg# Let the site file select an alternate cache file if it wants to.
19557e6533d5Smrg# Prefer an explicitly selected file to automatically selected ones.
1956067610f1Smrgif test -n "$CONFIG_SITE"; then
195758105723Smrg  ac_site_files="$CONFIG_SITE"
1958067610f1Smrgelif test "x$prefix" != xNONE; then
195958105723Smrg  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1960067610f1Smrgelse
196158105723Smrg  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1962067610f1Smrgfi
196358105723Smrg
196458105723Smrgfor ac_site_file in $ac_site_files
1965067610f1Smrgdo
196658105723Smrg  case $ac_site_file in #(
196758105723Smrg  */*) :
196858105723Smrg     ;; #(
196958105723Smrg  *) :
197058105723Smrg    ac_site_file=./$ac_site_file ;;
197158105723Smrgesac
197258105723Smrg  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
197358105723Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
197458105723Smrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1975067610f1Smrg    sed 's/^/| /' "$ac_site_file" >&5
19767e6533d5Smrg    . "$ac_site_file" \
197758105723Smrg      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
197858105723Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19797e6533d5Smrgas_fn_error $? "failed to load site script $ac_site_file
19807e6533d5SmrgSee \`config.log' for more details" "$LINENO" 5; }
1981067610f1Smrg  fi
1982067610f1Smrgdone
1983067610f1Smrg
1984067610f1Smrgif test -r "$cache_file"; then
19857e6533d5Smrg  # Some versions of bash will fail to source /dev/null (special files
19867e6533d5Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
19877e6533d5Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
198858105723Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
198958105723Smrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1990067610f1Smrg    case $cache_file in
1991067610f1Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1992067610f1Smrg      *)                      . "./$cache_file";;
1993067610f1Smrg    esac
1994067610f1Smrg  fi
1995067610f1Smrgelse
199658105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
199758105723Smrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1998067610f1Smrg  >$cache_file
1999067610f1Smrgfi
2000067610f1Smrg
200158105723Smrg# Test code for whether the C compiler supports C89 (global declarations)
200258105723Smrgac_c_conftest_c89_globals='
200358105723Smrg/* Does the compiler advertise C89 conformance?
200458105723Smrg   Do not test the value of __STDC__, because some compilers set it to 0
200558105723Smrg   while being otherwise adequately conformant. */
200658105723Smrg#if !defined __STDC__
200758105723Smrg# error "Compiler does not advertise C89 conformance"
200858105723Smrg#endif
2009067610f1Smrg
201058105723Smrg#include <stddef.h>
201158105723Smrg#include <stdarg.h>
201258105723Smrgstruct stat;
201358105723Smrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
201458105723Smrgstruct buf { int x; };
201558105723Smrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int);
201658105723Smrgstatic char *e (p, i)
201758105723Smrg     char **p;
201858105723Smrg     int i;
201958105723Smrg{
202058105723Smrg  return p[i];
202158105723Smrg}
202258105723Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
202358105723Smrg{
202458105723Smrg  char *s;
202558105723Smrg  va_list v;
202658105723Smrg  va_start (v,p);
202758105723Smrg  s = g (p, va_arg (v,int));
202858105723Smrg  va_end (v);
202958105723Smrg  return s;
203058105723Smrg}
2031aea1d7ffSmrg
203258105723Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
203358105723Smrg   function prototypes and stuff, but not \xHH hex character constants.
203458105723Smrg   These do not provoke an error unfortunately, instead are silently treated
203558105723Smrg   as an "x".  The following induces an error, until -std is added to get
203658105723Smrg   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
203758105723Smrg   array size at least.  It is necessary to write \x00 == 0 to get something
203858105723Smrg   that is true only with -std.  */
203958105723Smrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2040aea1d7ffSmrg
204158105723Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
204258105723Smrg   inside strings and character constants.  */
204358105723Smrg#define FOO(x) '\''x'\''
204458105723Smrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2045aea1d7ffSmrg
204658105723Smrgint test (int i, double x);
204758105723Smrgstruct s1 {int (*f) (int a);};
204858105723Smrgstruct s2 {int (*f) (double a);};
204958105723Smrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
205058105723Smrg               int, int);'
2051067610f1Smrg
205258105723Smrg# Test code for whether the C compiler supports C89 (body of main).
205358105723Smrgac_c_conftest_c89_main='
205458105723Smrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
205558105723Smrg'
2056067610f1Smrg
205758105723Smrg# Test code for whether the C compiler supports C99 (global declarations)
205858105723Smrgac_c_conftest_c99_globals='
205958105723Smrg// Does the compiler advertise C99 conformance?
206058105723Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
206158105723Smrg# error "Compiler does not advertise C99 conformance"
206258105723Smrg#endif
2063067610f1Smrg
206458105723Smrg#include <stdbool.h>
206558105723Smrgextern int puts (const char *);
206658105723Smrgextern int printf (const char *, ...);
206758105723Smrgextern int dprintf (int, const char *, ...);
206858105723Smrgextern void *malloc (size_t);
2069067610f1Smrg
207058105723Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
207158105723Smrg// dprintf is used instead of fprintf to avoid needing to declare
207258105723Smrg// FILE and stderr.
207358105723Smrg#define debug(...) dprintf (2, __VA_ARGS__)
207458105723Smrg#define showlist(...) puts (#__VA_ARGS__)
207558105723Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
207658105723Smrgstatic void
207758105723Smrgtest_varargs_macros (void)
207858105723Smrg{
207958105723Smrg  int x = 1234;
208058105723Smrg  int y = 5678;
208158105723Smrg  debug ("Flag");
208258105723Smrg  debug ("X = %d\n", x);
208358105723Smrg  showlist (The first, second, and third items.);
208458105723Smrg  report (x>y, "x is %d but y is %d", x, y);
208558105723Smrg}
208658105723Smrg
208758105723Smrg// Check long long types.
208858105723Smrg#define BIG64 18446744073709551615ull
208958105723Smrg#define BIG32 4294967295ul
209058105723Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
209158105723Smrg#if !BIG_OK
209258105723Smrg  #error "your preprocessor is broken"
209358105723Smrg#endif
209458105723Smrg#if BIG_OK
209558105723Smrg#else
209658105723Smrg  #error "your preprocessor is broken"
209758105723Smrg#endif
209858105723Smrgstatic long long int bignum = -9223372036854775807LL;
209958105723Smrgstatic unsigned long long int ubignum = BIG64;
210058105723Smrg
210158105723Smrgstruct incomplete_array
210258105723Smrg{
210358105723Smrg  int datasize;
210458105723Smrg  double data[];
210558105723Smrg};
210658105723Smrg
210758105723Smrgstruct named_init {
210858105723Smrg  int number;
210958105723Smrg  const wchar_t *name;
211058105723Smrg  double average;
211158105723Smrg};
211258105723Smrg
211358105723Smrgtypedef const char *ccp;
211458105723Smrg
211558105723Smrgstatic inline int
211658105723Smrgtest_restrict (ccp restrict text)
211758105723Smrg{
211858105723Smrg  // See if C++-style comments work.
211958105723Smrg  // Iterate through items via the restricted pointer.
212058105723Smrg  // Also check for declarations in for loops.
212158105723Smrg  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
212258105723Smrg    continue;
212358105723Smrg  return 0;
212458105723Smrg}
212558105723Smrg
212658105723Smrg// Check varargs and va_copy.
212758105723Smrgstatic bool
212858105723Smrgtest_varargs (const char *format, ...)
212958105723Smrg{
213058105723Smrg  va_list args;
213158105723Smrg  va_start (args, format);
213258105723Smrg  va_list args_copy;
213358105723Smrg  va_copy (args_copy, args);
213458105723Smrg
213558105723Smrg  const char *str = "";
213658105723Smrg  int number = 0;
213758105723Smrg  float fnumber = 0;
213858105723Smrg
213958105723Smrg  while (*format)
214058105723Smrg    {
214158105723Smrg      switch (*format++)
214258105723Smrg	{
214358105723Smrg	case '\''s'\'': // string
214458105723Smrg	  str = va_arg (args_copy, const char *);
214558105723Smrg	  break;
214658105723Smrg	case '\''d'\'': // int
214758105723Smrg	  number = va_arg (args_copy, int);
214858105723Smrg	  break;
214958105723Smrg	case '\''f'\'': // float
215058105723Smrg	  fnumber = va_arg (args_copy, double);
215158105723Smrg	  break;
215258105723Smrg	default:
215358105723Smrg	  break;
215458105723Smrg	}
215558105723Smrg    }
215658105723Smrg  va_end (args_copy);
215758105723Smrg  va_end (args);
215858105723Smrg
215958105723Smrg  return *str && number && fnumber;
216058105723Smrg}
216158105723Smrg'
216258105723Smrg
216358105723Smrg# Test code for whether the C compiler supports C99 (body of main).
216458105723Smrgac_c_conftest_c99_main='
216558105723Smrg  // Check bool.
216658105723Smrg  _Bool success = false;
216758105723Smrg  success |= (argc != 0);
216858105723Smrg
216958105723Smrg  // Check restrict.
217058105723Smrg  if (test_restrict ("String literal") == 0)
217158105723Smrg    success = true;
217258105723Smrg  char *restrict newvar = "Another string";
217358105723Smrg
217458105723Smrg  // Check varargs.
217558105723Smrg  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
217658105723Smrg  test_varargs_macros ();
217758105723Smrg
217858105723Smrg  // Check flexible array members.
217958105723Smrg  struct incomplete_array *ia =
218058105723Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
218158105723Smrg  ia->datasize = 10;
218258105723Smrg  for (int i = 0; i < ia->datasize; ++i)
218358105723Smrg    ia->data[i] = i * 1.234;
218458105723Smrg
218558105723Smrg  // Check named initializers.
218658105723Smrg  struct named_init ni = {
218758105723Smrg    .number = 34,
218858105723Smrg    .name = L"Test wide string",
218958105723Smrg    .average = 543.34343,
219058105723Smrg  };
219158105723Smrg
219258105723Smrg  ni.number = 58;
219358105723Smrg
219458105723Smrg  int dynamic_array[ni.number];
219558105723Smrg  dynamic_array[0] = argv[0][0];
219658105723Smrg  dynamic_array[ni.number - 1] = 543;
219758105723Smrg
219858105723Smrg  // work around unused variable warnings
219958105723Smrg  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
220058105723Smrg	 || dynamic_array[ni.number - 1] != 543);
220158105723Smrg'
220258105723Smrg
220358105723Smrg# Test code for whether the C compiler supports C11 (global declarations)
220458105723Smrgac_c_conftest_c11_globals='
220558105723Smrg// Does the compiler advertise C11 conformance?
220658105723Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
220758105723Smrg# error "Compiler does not advertise C11 conformance"
220858105723Smrg#endif
220958105723Smrg
221058105723Smrg// Check _Alignas.
221158105723Smrgchar _Alignas (double) aligned_as_double;
221258105723Smrgchar _Alignas (0) no_special_alignment;
221358105723Smrgextern char aligned_as_int;
221458105723Smrgchar _Alignas (0) _Alignas (int) aligned_as_int;
221558105723Smrg
221658105723Smrg// Check _Alignof.
221758105723Smrgenum
221858105723Smrg{
221958105723Smrg  int_alignment = _Alignof (int),
222058105723Smrg  int_array_alignment = _Alignof (int[100]),
222158105723Smrg  char_alignment = _Alignof (char)
222258105723Smrg};
222358105723Smrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
222458105723Smrg
222558105723Smrg// Check _Noreturn.
222658105723Smrgint _Noreturn does_not_return (void) { for (;;) continue; }
222758105723Smrg
222858105723Smrg// Check _Static_assert.
222958105723Smrgstruct test_static_assert
223058105723Smrg{
223158105723Smrg  int x;
223258105723Smrg  _Static_assert (sizeof (int) <= sizeof (long int),
223358105723Smrg                  "_Static_assert does not work in struct");
223458105723Smrg  long int y;
223558105723Smrg};
223658105723Smrg
223758105723Smrg// Check UTF-8 literals.
223858105723Smrg#define u8 syntax error!
223958105723Smrgchar const utf8_literal[] = u8"happens to be ASCII" "another string";
224058105723Smrg
224158105723Smrg// Check duplicate typedefs.
224258105723Smrgtypedef long *long_ptr;
224358105723Smrgtypedef long int *long_ptr;
224458105723Smrgtypedef long_ptr long_ptr;
224558105723Smrg
224658105723Smrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
224758105723Smrgstruct anonymous
224858105723Smrg{
224958105723Smrg  union {
225058105723Smrg    struct { int i; int j; };
225158105723Smrg    struct { int k; long int l; } w;
225258105723Smrg  };
225358105723Smrg  int m;
225458105723Smrg} v1;
225558105723Smrg'
225658105723Smrg
225758105723Smrg# Test code for whether the C compiler supports C11 (body of main).
225858105723Smrgac_c_conftest_c11_main='
225958105723Smrg  _Static_assert ((offsetof (struct anonymous, i)
226058105723Smrg		   == offsetof (struct anonymous, w.k)),
226158105723Smrg		  "Anonymous union alignment botch");
226258105723Smrg  v1.i = 2;
226358105723Smrg  v1.w.k = 5;
226458105723Smrg  ok |= v1.i != 5;
226558105723Smrg'
226658105723Smrg
226758105723Smrg# Test code for whether the C compiler supports C11 (complete).
226858105723Smrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
226958105723Smrg${ac_c_conftest_c99_globals}
227058105723Smrg${ac_c_conftest_c11_globals}
227158105723Smrg
227258105723Smrgint
227358105723Smrgmain (int argc, char **argv)
227458105723Smrg{
227558105723Smrg  int ok = 0;
227658105723Smrg  ${ac_c_conftest_c89_main}
227758105723Smrg  ${ac_c_conftest_c99_main}
227858105723Smrg  ${ac_c_conftest_c11_main}
227958105723Smrg  return ok;
228058105723Smrg}
228158105723Smrg"
228258105723Smrg
228358105723Smrg# Test code for whether the C compiler supports C99 (complete).
228458105723Smrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
228558105723Smrg${ac_c_conftest_c99_globals}
228658105723Smrg
228758105723Smrgint
228858105723Smrgmain (int argc, char **argv)
228958105723Smrg{
229058105723Smrg  int ok = 0;
229158105723Smrg  ${ac_c_conftest_c89_main}
229258105723Smrg  ${ac_c_conftest_c99_main}
229358105723Smrg  return ok;
229458105723Smrg}
229558105723Smrg"
229658105723Smrg
229758105723Smrg# Test code for whether the C compiler supports C89 (complete).
229858105723Smrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
229958105723Smrg
230058105723Smrgint
230158105723Smrgmain (int argc, char **argv)
230258105723Smrg{
230358105723Smrg  int ok = 0;
230458105723Smrg  ${ac_c_conftest_c89_main}
230558105723Smrg  return ok;
230658105723Smrg}
230758105723Smrg"
230858105723Smrg
230958105723Smrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
231058105723Smrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
231158105723Smrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
231258105723Smrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
231358105723Smrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
231458105723Smrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
231558105723Smrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
231658105723Smrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
231758105723Smrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
231858105723Smrg
231958105723Smrg# Auxiliary files required by this configure script.
232058105723Smrgac_aux_files="config.guess config.sub compile missing install-sh"
232158105723Smrg
232258105723Smrg# Locations in which to look for auxiliary files.
232358105723Smrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
232458105723Smrg
232558105723Smrg# Search for a directory containing all of the required auxiliary files,
232658105723Smrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
232758105723Smrg# If we don't find one directory that contains all the files we need,
232858105723Smrg# we report the set of missing files from the *first* directory in
232958105723Smrg# $ac_aux_dir_candidates and give up.
233058105723Smrgac_missing_aux_files=""
233158105723Smrgac_first_candidate=:
233258105723Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
233358105723Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
233458105723Smrgas_found=false
233558105723Smrgfor as_dir in $ac_aux_dir_candidates
233658105723Smrgdo
233758105723Smrg  IFS=$as_save_IFS
233858105723Smrg  case $as_dir in #(((
233958105723Smrg    '') as_dir=./ ;;
234058105723Smrg    */) ;;
234158105723Smrg    *) as_dir=$as_dir/ ;;
234258105723Smrg  esac
234358105723Smrg  as_found=:
234458105723Smrg
234558105723Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
234658105723Smrg  ac_aux_dir_found=yes
234758105723Smrg  ac_install_sh=
234858105723Smrg  for ac_aux in $ac_aux_files
234958105723Smrg  do
235058105723Smrg    # As a special case, if "install-sh" is required, that requirement
235158105723Smrg    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
235258105723Smrg    # and $ac_install_sh is set appropriately for whichever one is found.
235358105723Smrg    if test x"$ac_aux" = x"install-sh"
235458105723Smrg    then
235558105723Smrg      if test -f "${as_dir}install-sh"; then
235658105723Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
235758105723Smrg        ac_install_sh="${as_dir}install-sh -c"
235858105723Smrg      elif test -f "${as_dir}install.sh"; then
235958105723Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
236058105723Smrg        ac_install_sh="${as_dir}install.sh -c"
236158105723Smrg      elif test -f "${as_dir}shtool"; then
236258105723Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
236358105723Smrg        ac_install_sh="${as_dir}shtool install -c"
236458105723Smrg      else
236558105723Smrg        ac_aux_dir_found=no
236658105723Smrg        if $ac_first_candidate; then
236758105723Smrg          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
236858105723Smrg        else
236958105723Smrg          break
237058105723Smrg        fi
237158105723Smrg      fi
237258105723Smrg    else
237358105723Smrg      if test -f "${as_dir}${ac_aux}"; then
237458105723Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
237558105723Smrg      else
237658105723Smrg        ac_aux_dir_found=no
237758105723Smrg        if $ac_first_candidate; then
237858105723Smrg          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
237958105723Smrg        else
238058105723Smrg          break
238158105723Smrg        fi
238258105723Smrg      fi
238358105723Smrg    fi
238458105723Smrg  done
238558105723Smrg  if test "$ac_aux_dir_found" = yes; then
238658105723Smrg    ac_aux_dir="$as_dir"
238758105723Smrg    break
238858105723Smrg  fi
238958105723Smrg  ac_first_candidate=false
239058105723Smrg
239158105723Smrg  as_found=false
239258105723Smrgdone
239358105723SmrgIFS=$as_save_IFS
239458105723Smrgif $as_found
239558105723Smrgthen :
239658105723Smrg
239758105723Smrgelse $as_nop
239858105723Smrg  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
239958105723Smrgfi
240058105723Smrg
240158105723Smrg
240258105723Smrg# These three variables are undocumented and unsupported,
240358105723Smrg# and are intended to be withdrawn in a future Autoconf release.
240458105723Smrg# They can cause serious problems if a builder's source tree is in a directory
240558105723Smrg# whose full name contains unusual characters.
240658105723Smrgif test -f "${ac_aux_dir}config.guess"; then
240758105723Smrg  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
240858105723Smrgfi
240958105723Smrgif test -f "${ac_aux_dir}config.sub"; then
241058105723Smrg  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
241158105723Smrgfi
241258105723Smrgif test -f "$ac_aux_dir/configure"; then
241358105723Smrg  ac_configure="$SHELL ${ac_aux_dir}configure"
241458105723Smrgfi
241558105723Smrg
241658105723Smrg# Check that the precious variables saved in the cache have kept the same
241758105723Smrg# value.
241858105723Smrgac_cache_corrupted=false
241958105723Smrgfor ac_var in $ac_precious_vars; do
242058105723Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
242158105723Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
242258105723Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
242358105723Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
242458105723Smrg  case $ac_old_set,$ac_new_set in
242558105723Smrg    set,)
242658105723Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
242758105723Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
242858105723Smrg      ac_cache_corrupted=: ;;
242958105723Smrg    ,set)
243058105723Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
243158105723Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
243258105723Smrg      ac_cache_corrupted=: ;;
243358105723Smrg    ,);;
243458105723Smrg    *)
243558105723Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
243658105723Smrg	# differences in whitespace do not lead to failure.
243758105723Smrg	ac_old_val_w=`echo x $ac_old_val`
243858105723Smrg	ac_new_val_w=`echo x $ac_new_val`
243958105723Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
244058105723Smrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
244158105723Smrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
244258105723Smrg	  ac_cache_corrupted=:
244358105723Smrg	else
244458105723Smrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
244558105723Smrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
244658105723Smrg	  eval $ac_var=\$ac_old_val
244758105723Smrg	fi
244858105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
244958105723Smrgprintf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
245058105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
245158105723Smrgprintf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
245258105723Smrg      fi;;
245358105723Smrg  esac
245458105723Smrg  # Pass precious variables to config.status.
245558105723Smrg  if test "$ac_new_set" = set; then
245658105723Smrg    case $ac_new_val in
245758105723Smrg    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
245858105723Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
245958105723Smrg    esac
246058105723Smrg    case " $ac_configure_args " in
246158105723Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
246258105723Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
246358105723Smrg    esac
246458105723Smrg  fi
246558105723Smrgdone
246658105723Smrgif $ac_cache_corrupted; then
246758105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
246858105723Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
246958105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
247058105723Smrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
247158105723Smrg  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
247258105723Smrg	    and start over" "$LINENO" 5
247358105723Smrgfi
247458105723Smrg## -------------------- ##
247558105723Smrg## Main body of script. ##
247658105723Smrg## -------------------- ##
247758105723Smrg
247858105723Smrgac_ext=c
247958105723Smrgac_cpp='$CPP $CPPFLAGS'
248058105723Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
248158105723Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
248258105723Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
248358105723Smrg
248458105723Smrg
248558105723Smrg
248658105723Smrgac_config_headers="$ac_config_headers config.h"
248758105723Smrg
248858105723Smrg
248958105723Smrg# Initialize Automake
249058105723Smrgam__api_version='1.16'
249158105723Smrg
249258105723Smrg
249358105723Smrg
249458105723Smrg  # Find a good install program.  We prefer a C program (faster),
249558105723Smrg# so one script is as good as another.  But avoid the broken or
249658105723Smrg# incompatible versions:
249758105723Smrg# SysV /etc/install, /usr/sbin/install
249858105723Smrg# SunOS /usr/etc/install
249958105723Smrg# IRIX /sbin/install
250058105723Smrg# AIX /bin/install
2501067610f1Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2502067610f1Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2503067610f1Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2504067610f1Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2505067610f1Smrg# OS/2's system install, which has a completely different semantic
2506067610f1Smrg# ./install, which can be erroneously created by make from ./install.sh.
25077e6533d5Smrg# Reject install programs that cannot install multiple files.
250858105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
250958105723Smrgprintf %s "checking for a BSD-compatible install... " >&6; }
2510067610f1Smrgif test -z "$INSTALL"; then
251158105723Smrgif test ${ac_cv_path_install+y}
251258105723Smrgthen :
251358105723Smrg  printf %s "(cached) " >&6
251458105723Smrgelse $as_nop
2515067610f1Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516067610f1Smrgfor as_dir in $PATH
2517067610f1Smrgdo
2518067610f1Smrg  IFS=$as_save_IFS
251958105723Smrg  case $as_dir in #(((
252058105723Smrg    '') as_dir=./ ;;
252158105723Smrg    */) ;;
252258105723Smrg    *) as_dir=$as_dir/ ;;
252358105723Smrg  esac
252458105723Smrg    # Account for fact that we put trailing slashes in our PATH walk.
252558105723Smrgcase $as_dir in #((
252658105723Smrg  ./ | /[cC]/* | \
2527067610f1Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
25287e6533d5Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2529067610f1Smrg  /usr/ucb/* ) ;;
2530067610f1Smrg  *)
2531067610f1Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2532067610f1Smrg    # Don't use installbsd from OSF since it installs stuff as root
2533067610f1Smrg    # by default.
2534067610f1Smrg    for ac_prog in ginstall scoinst install; do
2535067610f1Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
253658105723Smrg	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2537067610f1Smrg	  if test $ac_prog = install &&
253858105723Smrg	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2539067610f1Smrg	    # AIX install.  It has an incompatible calling convention.
2540067610f1Smrg	    :
2541067610f1Smrg	  elif test $ac_prog = install &&
254258105723Smrg	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2543067610f1Smrg	    # program-specific install script used by HP pwplus--don't use.
2544067610f1Smrg	    :
2545067610f1Smrg	  else
25467e6533d5Smrg	    rm -rf conftest.one conftest.two conftest.dir
25477e6533d5Smrg	    echo one > conftest.one
25487e6533d5Smrg	    echo two > conftest.two
25497e6533d5Smrg	    mkdir conftest.dir
255058105723Smrg	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
25517e6533d5Smrg	      test -s conftest.one && test -s conftest.two &&
25527e6533d5Smrg	      test -s conftest.dir/conftest.one &&
25537e6533d5Smrg	      test -s conftest.dir/conftest.two
25547e6533d5Smrg	    then
255558105723Smrg	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
25567e6533d5Smrg	      break 3
25577e6533d5Smrg	    fi
2558067610f1Smrg	  fi
2559067610f1Smrg	fi
2560067610f1Smrg      done
2561067610f1Smrg    done
2562067610f1Smrg    ;;
2563067610f1Smrgesac
25647e6533d5Smrg
25657e6533d5Smrg  done
2566067610f1SmrgIFS=$as_save_IFS
2567067610f1Smrg
25687e6533d5Smrgrm -rf conftest.one conftest.two conftest.dir
2569067610f1Smrg
2570067610f1Smrgfi
257158105723Smrg  if test ${ac_cv_path_install+y}; then
2572067610f1Smrg    INSTALL=$ac_cv_path_install
2573067610f1Smrg  else
2574067610f1Smrg    # As a last resort, use the slow shell script.  Don't cache a
2575067610f1Smrg    # value for INSTALL within a source directory, because that will
2576067610f1Smrg    # break other packages using the cache if that directory is
2577067610f1Smrg    # removed, or if the value is a relative name.
2578067610f1Smrg    INSTALL=$ac_install_sh
2579067610f1Smrg  fi
2580067610f1Smrgfi
258158105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
258258105723Smrgprintf "%s\n" "$INSTALL" >&6; }
2583067610f1Smrg
2584067610f1Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2585067610f1Smrg# It thinks the first close brace ends the variable substitution.
2586067610f1Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2587067610f1Smrg
2588067610f1Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2589067610f1Smrg
2590067610f1Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2591067610f1Smrg
259258105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
259358105723Smrgprintf %s "checking whether build environment is sane... " >&6; }
25947e6533d5Smrg# Reject unsafe characters in $srcdir or the absolute working directory
25957e6533d5Smrg# name.  Accept space and tab only in the latter.
25967e6533d5Smrgam_lf='
25977e6533d5Smrg'
25987e6533d5Smrgcase `pwd` in
25997e6533d5Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
26007e6533d5Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
26017e6533d5Smrgesac
26027e6533d5Smrgcase $srcdir in
26037e6533d5Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2604e7fdea5fSmrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
26057e6533d5Smrgesac
26067e6533d5Smrg
2607e7fdea5fSmrg# Do 'set' in a subshell so we don't clobber the current shell's
2608067610f1Smrg# arguments.  Must try -L first in case configure is actually a
2609067610f1Smrg# symlink; some systems play weird games with the mod time of symlinks
2610067610f1Smrg# (eg FreeBSD returns the mod time of the symlink's containing
2611067610f1Smrg# directory).
2612067610f1Smrgif (
2613e7fdea5fSmrg   am_has_slept=no
2614e7fdea5fSmrg   for am_try in 1 2; do
2615e7fdea5fSmrg     echo "timestamp, slept: $am_has_slept" > conftest.file
2616e7fdea5fSmrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2617e7fdea5fSmrg     if test "$*" = "X"; then
2618e7fdea5fSmrg	# -L didn't work.
2619e7fdea5fSmrg	set X `ls -t "$srcdir/configure" conftest.file`
2620e7fdea5fSmrg     fi
2621e7fdea5fSmrg     if test "$*" != "X $srcdir/configure conftest.file" \
2622e7fdea5fSmrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
2623e7fdea5fSmrg
2624e7fdea5fSmrg	# If neither matched, then we have a broken ls.  This can happen
2625e7fdea5fSmrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
2626e7fdea5fSmrg	# broken ls alias from the environment.  This has actually
2627e7fdea5fSmrg	# happened.  Such a system could not be considered "sane".
2628e7fdea5fSmrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2629e7fdea5fSmrg  alias in your environment" "$LINENO" 5
2630e7fdea5fSmrg     fi
2631e7fdea5fSmrg     if test "$2" = conftest.file || test $am_try -eq 2; then
2632e7fdea5fSmrg       break
2633e7fdea5fSmrg     fi
2634e7fdea5fSmrg     # Just in case.
2635e7fdea5fSmrg     sleep 1
2636e7fdea5fSmrg     am_has_slept=yes
2637e7fdea5fSmrg   done
2638067610f1Smrg   test "$2" = conftest.file
2639067610f1Smrg   )
2640067610f1Smrgthen
2641067610f1Smrg   # Ok.
2642067610f1Smrg   :
2643067610f1Smrgelse
26447e6533d5Smrg   as_fn_error $? "newly created file is older than distributed files!
26457e6533d5SmrgCheck your system clock" "$LINENO" 5
2646067610f1Smrgfi
264758105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
264858105723Smrgprintf "%s\n" "yes" >&6; }
2649e7fdea5fSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and
2650e7fdea5fSmrg# generated files are strictly newer.
2651e7fdea5fSmrgam_sleep_pid=
2652e7fdea5fSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
2653e7fdea5fSmrg  ( sleep 1 ) &
2654e7fdea5fSmrg  am_sleep_pid=$!
2655e7fdea5fSmrgfi
2656e7fdea5fSmrg
2657e7fdea5fSmrgrm -f conftest.file
2658e7fdea5fSmrg
2659067610f1Smrgtest "$program_prefix" != NONE &&
2660067610f1Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2661067610f1Smrg# Use a double $ so make ignores it.
2662067610f1Smrgtest "$program_suffix" != NONE &&
2663067610f1Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
26647e6533d5Smrg# Double any \ or $.
2665067610f1Smrg# By default was `s,x,x', remove it if useless.
26667e6533d5Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
266758105723Smrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
266858105723Smrg
2669067610f1Smrg
26704d9306dbSmrg# Expand $ac_aux_dir to an absolute path.
26714d9306dbSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
2672067610f1Smrg
267358105723Smrg
267458105723Smrg  if test x"${MISSING+set}" != xset; then
267558105723Smrg  MISSING="\${SHELL} '$am_aux_dir/missing'"
26767e6533d5Smrgfi
2677067610f1Smrg# Use eval to expand $SHELL
2678e7fdea5fSmrgif eval "$MISSING --is-lightweight"; then
2679e7fdea5fSmrg  am_missing_run="$MISSING "
2680067610f1Smrgelse
26817e6533d5Smrg  am_missing_run=
268258105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
268358105723Smrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
26847e6533d5Smrgfi
26857e6533d5Smrg
26864d9306dbSmrgif test x"${install_sh+set}" != xset; then
26877e6533d5Smrg  case $am_aux_dir in
26887e6533d5Smrg  *\ * | *\	*)
26897e6533d5Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
26907e6533d5Smrg  *)
26917e6533d5Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
26927e6533d5Smrg  esac
26937e6533d5Smrgfi
26947e6533d5Smrg
2695e7fdea5fSmrg# Installed binaries are usually stripped using 'strip' when the user
2696e7fdea5fSmrg# run "make install-strip".  However 'strip' might not be the right
26977e6533d5Smrg# tool to use in cross-compilation environments, therefore Automake
2698e7fdea5fSmrg# will honor the 'STRIP' environment variable to overrule this program.
26997e6533d5Smrgif test "$cross_compiling" != no; then
27007e6533d5Smrg  if test -n "$ac_tool_prefix"; then
27017e6533d5Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
27027e6533d5Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
270358105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
270458105723Smrgprintf %s "checking for $ac_word... " >&6; }
270558105723Smrgif test ${ac_cv_prog_STRIP+y}
270658105723Smrgthen :
270758105723Smrg  printf %s "(cached) " >&6
270858105723Smrgelse $as_nop
27097e6533d5Smrg  if test -n "$STRIP"; then
27107e6533d5Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
27117e6533d5Smrgelse
27127e6533d5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27137e6533d5Smrgfor as_dir in $PATH
27147e6533d5Smrgdo
27157e6533d5Smrg  IFS=$as_save_IFS
271658105723Smrg  case $as_dir in #(((
271758105723Smrg    '') as_dir=./ ;;
271858105723Smrg    */) ;;
271958105723Smrg    *) as_dir=$as_dir/ ;;
272058105723Smrg  esac
27217e6533d5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
272258105723Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27237e6533d5Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
272458105723Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27257e6533d5Smrg    break 2
27267e6533d5Smrg  fi
27277e6533d5Smrgdone
27287e6533d5Smrg  done
27297e6533d5SmrgIFS=$as_save_IFS
27307e6533d5Smrg
27317e6533d5Smrgfi
27327e6533d5Smrgfi
27337e6533d5SmrgSTRIP=$ac_cv_prog_STRIP
27347e6533d5Smrgif test -n "$STRIP"; then
273558105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
273658105723Smrgprintf "%s\n" "$STRIP" >&6; }
27377e6533d5Smrgelse
273858105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
273958105723Smrgprintf "%s\n" "no" >&6; }
27407e6533d5Smrgfi
27417e6533d5Smrg
27427e6533d5Smrg
27437e6533d5Smrgfi
27447e6533d5Smrgif test -z "$ac_cv_prog_STRIP"; then
27457e6533d5Smrg  ac_ct_STRIP=$STRIP
27467e6533d5Smrg  # Extract the first word of "strip", so it can be a program name with args.
27477e6533d5Smrgset dummy strip; ac_word=$2
274858105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
274958105723Smrgprintf %s "checking for $ac_word... " >&6; }
275058105723Smrgif test ${ac_cv_prog_ac_ct_STRIP+y}
275158105723Smrgthen :
275258105723Smrg  printf %s "(cached) " >&6
275358105723Smrgelse $as_nop
27547e6533d5Smrg  if test -n "$ac_ct_STRIP"; then
27557e6533d5Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
27567e6533d5Smrgelse
27577e6533d5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27587e6533d5Smrgfor as_dir in $PATH
27597e6533d5Smrgdo
27607e6533d5Smrg  IFS=$as_save_IFS
276158105723Smrg  case $as_dir in #(((
276258105723Smrg    '') as_dir=./ ;;
276358105723Smrg    */) ;;
276458105723Smrg    *) as_dir=$as_dir/ ;;
276558105723Smrg  esac
27667e6533d5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
276758105723Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27687e6533d5Smrg    ac_cv_prog_ac_ct_STRIP="strip"
276958105723Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27707e6533d5Smrg    break 2
27717e6533d5Smrg  fi
27727e6533d5Smrgdone
27737e6533d5Smrg  done
27747e6533d5SmrgIFS=$as_save_IFS
27757e6533d5Smrg
27767e6533d5Smrgfi
27777e6533d5Smrgfi
27787e6533d5Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
27797e6533d5Smrgif test -n "$ac_ct_STRIP"; then
278058105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
278158105723Smrgprintf "%s\n" "$ac_ct_STRIP" >&6; }
27827e6533d5Smrgelse
278358105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
278458105723Smrgprintf "%s\n" "no" >&6; }
27857e6533d5Smrgfi
27867e6533d5Smrg
27877e6533d5Smrg  if test "x$ac_ct_STRIP" = x; then
27887e6533d5Smrg    STRIP=":"
27897e6533d5Smrg  else
27907e6533d5Smrg    case $cross_compiling:$ac_tool_warned in
27917e6533d5Smrgyes:)
279258105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
279358105723Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27947e6533d5Smrgac_tool_warned=yes ;;
27957e6533d5Smrgesac
27967e6533d5Smrg    STRIP=$ac_ct_STRIP
27977e6533d5Smrg  fi
27987e6533d5Smrgelse
27997e6533d5Smrg  STRIP="$ac_cv_prog_STRIP"
2800067610f1Smrgfi
2801067610f1Smrg
28027e6533d5Smrgfi
28037e6533d5SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
28047e6533d5Smrg
280558105723Smrg
280658105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
280758105723Smrgprintf %s "checking for a race-free mkdir -p... " >&6; }
2808067610f1Smrgif test -z "$MKDIR_P"; then
280958105723Smrg  if test ${ac_cv_path_mkdir+y}
281058105723Smrgthen :
281158105723Smrg  printf %s "(cached) " >&6
281258105723Smrgelse $as_nop
2813067610f1Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814067610f1Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2815067610f1Smrgdo
2816067610f1Smrg  IFS=$as_save_IFS
281758105723Smrg  case $as_dir in #(((
281858105723Smrg    '') as_dir=./ ;;
281958105723Smrg    */) ;;
282058105723Smrg    *) as_dir=$as_dir/ ;;
282158105723Smrg  esac
28227e6533d5Smrg    for ac_prog in mkdir gmkdir; do
2823067610f1Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
282458105723Smrg	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
282558105723Smrg	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
282658105723Smrg	     'mkdir ('*'coreutils) '* | \
282758105723Smrg	     'BusyBox '* | \
2828067610f1Smrg	     'mkdir (fileutils) '4.1*)
282958105723Smrg	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2830067610f1Smrg	       break 3;;
2831067610f1Smrg	   esac
2832067610f1Smrg	 done
2833067610f1Smrg       done
28347e6533d5Smrg  done
2835067610f1SmrgIFS=$as_save_IFS
2836067610f1Smrg
2837067610f1Smrgfi
2838067610f1Smrg
28397e6533d5Smrg  test -d ./--version && rmdir ./--version
284058105723Smrg  if test ${ac_cv_path_mkdir+y}; then
2841067610f1Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
2842067610f1Smrg  else
2843067610f1Smrg    # As a last resort, use the slow shell script.  Don't cache a
2844067610f1Smrg    # value for MKDIR_P within a source directory, because that will
2845067610f1Smrg    # break other packages using the cache if that directory is
2846067610f1Smrg    # removed, or if the value is a relative name.
2847067610f1Smrg    MKDIR_P="$ac_install_sh -d"
2848067610f1Smrg  fi
2849067610f1Smrgfi
285058105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
285158105723Smrgprintf "%s\n" "$MKDIR_P" >&6; }
2852067610f1Smrg
2853067610f1Smrgfor ac_prog in gawk mawk nawk awk
2854067610f1Smrgdo
2855067610f1Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2856067610f1Smrgset dummy $ac_prog; ac_word=$2
285758105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
285858105723Smrgprintf %s "checking for $ac_word... " >&6; }
285958105723Smrgif test ${ac_cv_prog_AWK+y}
286058105723Smrgthen :
286158105723Smrg  printf %s "(cached) " >&6
286258105723Smrgelse $as_nop
2863067610f1Smrg  if test -n "$AWK"; then
2864067610f1Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2865067610f1Smrgelse
2866067610f1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867067610f1Smrgfor as_dir in $PATH
2868067610f1Smrgdo
2869067610f1Smrg  IFS=$as_save_IFS
287058105723Smrg  case $as_dir in #(((
287158105723Smrg    '') as_dir=./ ;;
287258105723Smrg    */) ;;
287358105723Smrg    *) as_dir=$as_dir/ ;;
287458105723Smrg  esac
28757e6533d5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
287658105723Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2877067610f1Smrg    ac_cv_prog_AWK="$ac_prog"
287858105723Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2879067610f1Smrg    break 2
2880067610f1Smrg  fi
2881067610f1Smrgdone
28827e6533d5Smrg  done
2883067610f1SmrgIFS=$as_save_IFS
2884067610f1Smrg
2885067610f1Smrgfi
2886067610f1Smrgfi
2887067610f1SmrgAWK=$ac_cv_prog_AWK
2888067610f1Smrgif test -n "$AWK"; then
288958105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
289058105723Smrgprintf "%s\n" "$AWK" >&6; }
2891067610f1Smrgelse
289258105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
289358105723Smrgprintf "%s\n" "no" >&6; }
2894067610f1Smrgfi
2895067610f1Smrg
2896067610f1Smrg
2897067610f1Smrg  test -n "$AWK" && break
2898067610f1Smrgdone
2899067610f1Smrg
290058105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
290158105723Smrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
29027e6533d5Smrgset x ${MAKE-make}
290358105723Smrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
290458105723Smrgif eval test \${ac_cv_prog_make_${ac_make}_set+y}
290558105723Smrgthen :
290658105723Smrg  printf %s "(cached) " >&6
290758105723Smrgelse $as_nop
2908067610f1Smrg  cat >conftest.make <<\_ACEOF
2909067610f1SmrgSHELL = /bin/sh
2910067610f1Smrgall:
2911067610f1Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2912067610f1Smrg_ACEOF
29137e6533d5Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2914067610f1Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2915067610f1Smrg  *@@@%%%=?*=@@@%%%*)
2916067610f1Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2917067610f1Smrg  *)
2918067610f1Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2919067610f1Smrgesac
2920067610f1Smrgrm -f conftest.make
2921067610f1Smrgfi
2922067610f1Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
292358105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
292458105723Smrgprintf "%s\n" "yes" >&6; }
2925067610f1Smrg  SET_MAKE=
2926067610f1Smrgelse
292758105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
292858105723Smrgprintf "%s\n" "no" >&6; }
2929067610f1Smrg  SET_MAKE="MAKE=${MAKE-make}"
2930067610f1Smrgfi
2931067610f1Smrg
2932067610f1Smrgrm -rf .tst 2>/dev/null
2933067610f1Smrgmkdir .tst 2>/dev/null
2934067610f1Smrgif test -d .tst; then
2935067610f1Smrg  am__leading_dot=.
2936067610f1Smrgelse
2937067610f1Smrg  am__leading_dot=_
2938067610f1Smrgfi
2939067610f1Smrgrmdir .tst 2>/dev/null
2940067610f1Smrg
2941e7fdea5fSmrg# Check whether --enable-silent-rules was given.
294258105723Smrgif test ${enable_silent_rules+y}
294358105723Smrgthen :
2944e7fdea5fSmrg  enableval=$enable_silent_rules;
2945e7fdea5fSmrgfi
2946e7fdea5fSmrg
2947e7fdea5fSmrgcase $enable_silent_rules in # (((
2948e7fdea5fSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
2949e7fdea5fSmrg   no) AM_DEFAULT_VERBOSITY=1;;
2950e7fdea5fSmrg    *) AM_DEFAULT_VERBOSITY=1;;
2951e7fdea5fSmrgesac
2952e7fdea5fSmrgam_make=${MAKE-make}
295358105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
295458105723Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
295558105723Smrgif test ${am_cv_make_support_nested_variables+y}
295658105723Smrgthen :
295758105723Smrg  printf %s "(cached) " >&6
295858105723Smrgelse $as_nop
295958105723Smrg  if printf "%s\n" 'TRUE=$(BAR$(V))
2960e7fdea5fSmrgBAR0=false
2961e7fdea5fSmrgBAR1=true
2962e7fdea5fSmrgV=1
2963e7fdea5fSmrgam__doit:
2964e7fdea5fSmrg	@$(TRUE)
2965e7fdea5fSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2966e7fdea5fSmrg  am_cv_make_support_nested_variables=yes
2967e7fdea5fSmrgelse
2968e7fdea5fSmrg  am_cv_make_support_nested_variables=no
2969e7fdea5fSmrgfi
2970e7fdea5fSmrgfi
297158105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
297258105723Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2973e7fdea5fSmrgif test $am_cv_make_support_nested_variables = yes; then
2974e7fdea5fSmrg    AM_V='$(V)'
2975e7fdea5fSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2976e7fdea5fSmrgelse
2977e7fdea5fSmrg  AM_V=$AM_DEFAULT_VERBOSITY
2978e7fdea5fSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2979e7fdea5fSmrgfi
2980e7fdea5fSmrgAM_BACKSLASH='\'
2981e7fdea5fSmrg
2982067610f1Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2983067610f1Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2984067610f1Smrg  # is not polluted with repeated "-I."
2985067610f1Smrg  am__isrc=' -I$(srcdir)'
2986067610f1Smrg  # test to see if srcdir already configured
2987067610f1Smrg  if test -f $srcdir/config.status; then
29887e6533d5Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2989067610f1Smrg  fi
2990067610f1Smrgfi
2991067610f1Smrg
2992067610f1Smrg# test whether we have cygpath
2993067610f1Smrgif test -z "$CYGPATH_W"; then
2994067610f1Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2995067610f1Smrg    CYGPATH_W='cygpath -w'
2996067610f1Smrg  else
2997067610f1Smrg    CYGPATH_W=echo
2998067610f1Smrg  fi
2999067610f1Smrgfi
3000067610f1Smrg
3001067610f1Smrg
3002067610f1Smrg# Define the identity of the package.
3003067610f1Smrg PACKAGE='xfsinfo'
300458105723Smrg VERSION='1.0.7'
3005067610f1Smrg
3006067610f1Smrg
300758105723Smrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3008067610f1Smrg
3009067610f1Smrg
301058105723Smrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3011067610f1Smrg
3012067610f1Smrg# Some tools Automake needs.
3013067610f1Smrg
3014067610f1SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3015067610f1Smrg
3016067610f1Smrg
3017067610f1SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3018067610f1Smrg
3019067610f1Smrg
3020067610f1SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3021067610f1Smrg
3022067610f1Smrg
3023067610f1SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3024067610f1Smrg
3025067610f1Smrg
3026067610f1SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3027067610f1Smrg
3028e7fdea5fSmrg# For better backward compatibility.  To be removed once Automake 1.9.x
3029e7fdea5fSmrg# dies out for good.  For more background, see:
303058105723Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
303158105723Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3032e7fdea5fSmrgmkdir_p='$(MKDIR_P)'
3033e7fdea5fSmrg
30344d9306dbSmrg# We need awk for the "check" target (and possibly the TAP driver).  The
30354d9306dbSmrg# system "awk" is bad on some platforms.
3036e7fdea5fSmrg# Always define AMTAR for backward compatibility.  Yes, it's still used
3037e7fdea5fSmrg# in the wild :-(  We should find a proper way to deprecate it ...
3038e7fdea5fSmrgAMTAR='$${TAR-tar}'
3039067610f1Smrg
3040067610f1Smrg
3041e7fdea5fSmrg# We'll loop over all known methods to create a tar archive until one works.
3042e7fdea5fSmrg_am_tools='gnutar  pax cpio none'
3043067610f1Smrg
3044e7fdea5fSmrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3045067610f1Smrg
3046067610f1Smrg
3047067610f1Smrg
3048067610f1Smrg
30497e6533d5Smrg
305058105723Smrg# Variables for tags utilities; see am/tags.am
305158105723Smrgif test -z "$CTAGS"; then
305258105723Smrg  CTAGS=ctags
305358105723Smrgfi
305458105723Smrg
305558105723Smrgif test -z "$ETAGS"; then
305658105723Smrg  ETAGS=etags
305758105723Smrgfi
305858105723Smrg
305958105723Smrgif test -z "$CSCOPE"; then
306058105723Smrg  CSCOPE=cscope
306158105723Smrgfi
306258105723Smrg
306358105723Smrg
3064067610f1Smrg
3065e7fdea5fSmrg# POSIX will say in a future version that running "rm -f" with no argument
3066e7fdea5fSmrg# is OK; and we want to be able to make that assumption in our Makefile
3067e7fdea5fSmrg# recipes.  So use an aggressive probe to check that the usage we want is
3068e7fdea5fSmrg# actually supported "in the wild" to an acceptable degree.
3069e7fdea5fSmrg# See automake bug#10828.
3070e7fdea5fSmrg# To make any issue more visible, cause the running configure to be aborted
3071e7fdea5fSmrg# by default if the 'rm' program in use doesn't match our expectations; the
3072e7fdea5fSmrg# user can still override this though.
3073e7fdea5fSmrgif rm -f && rm -fr && rm -rf; then : OK; else
3074e7fdea5fSmrg  cat >&2 <<'END'
3075e7fdea5fSmrgOops!
3076067610f1Smrg
3077e7fdea5fSmrgYour 'rm' program seems unable to run without file operands specified
3078e7fdea5fSmrgon the command line, even when the '-f' option is present.  This is contrary
3079e7fdea5fSmrgto the behaviour of most rm programs out there, and not conforming with
3080e7fdea5fSmrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3081067610f1Smrg
3082e7fdea5fSmrgPlease tell bug-automake@gnu.org about your system, including the value
3083e7fdea5fSmrgof your $PATH and any error possibly output before this message.  This
3084e7fdea5fSmrgcan help us improve future automake versions.
3085067610f1Smrg
3086e7fdea5fSmrgEND
3087e7fdea5fSmrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3088e7fdea5fSmrg    echo 'Configuration will proceed anyway, since you have set the' >&2
3089e7fdea5fSmrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3090e7fdea5fSmrg    echo >&2
3091e7fdea5fSmrg  else
3092e7fdea5fSmrg    cat >&2 <<'END'
3093e7fdea5fSmrgAborting the configuration process, to ensure you take notice of the issue.
3094e7fdea5fSmrg
3095e7fdea5fSmrgYou can download and install GNU coreutils to get an 'rm' implementation
309658105723Smrgthat behaves properly: <https://www.gnu.org/software/coreutils/>.
3097e7fdea5fSmrg
3098e7fdea5fSmrgIf you want to complete the configuration process using your problematic
3099e7fdea5fSmrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3100e7fdea5fSmrgto "yes", and re-run configure.
3101e7fdea5fSmrg
3102e7fdea5fSmrgEND
3103e7fdea5fSmrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3104e7fdea5fSmrg  fi
3105e7fdea5fSmrgfi
3106067610f1Smrg
31074d9306dbSmrg
31087e6533d5Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
31097e6533d5Smrg
31107e6533d5Smrg
31117e6533d5Smrg
31127e6533d5Smrg
31137e6533d5Smrg
31147e6533d5Smrg
31157e6533d5Smrg
31167e6533d5Smrg
31177e6533d5Smrg
31187e6533d5Smrg
31197e6533d5Smrg
312058105723Smrg
312158105723Smrg
312258105723Smrg
312358105723Smrg
312458105723Smrg
312558105723Smrg
312658105723Smrg
312758105723Smrg
312858105723Smrg
31297e6533d5SmrgDEPDIR="${am__leading_dot}deps"
31307e6533d5Smrg
31317e6533d5Smrgac_config_commands="$ac_config_commands depfiles"
31327e6533d5Smrg
313358105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
313458105723Smrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
313558105723Smrgcat > confinc.mk << 'END'
31367e6533d5Smrgam__doit:
313758105723Smrg	@echo this is the am__doit target >confinc.out
31387e6533d5Smrg.PHONY: am__doit
31397e6533d5SmrgEND
31407e6533d5Smrgam__include="#"
31417e6533d5Smrgam__quote=
314258105723Smrg# BSD make does it like this.
314358105723Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD
314458105723Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this.
314558105723Smrgecho 'include confinc.mk # ignored' > confmf.GNU
314658105723Smrg_am_result=no
314758105723Smrgfor s in GNU BSD; do
314858105723Smrg  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
314958105723Smrg   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
315058105723Smrg   ac_status=$?
315158105723Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
315258105723Smrg   (exit $ac_status); }
315358105723Smrg  case $?:`cat confinc.out 2>/dev/null` in #(
315458105723Smrg  '0:this is the am__doit target') :
315558105723Smrg    case $s in #(
315658105723Smrg  BSD) :
315758105723Smrg    am__include='.include' am__quote='"' ;; #(
315858105723Smrg  *) :
315958105723Smrg    am__include='include' am__quote='' ;;
316058105723Smrgesac ;; #(
316158105723Smrg  *) :
31627e6533d5Smrg     ;;
316358105723Smrgesac
316458105723Smrg  if test "$am__include" != "#"; then
316558105723Smrg    _am_result="yes ($s style)"
316658105723Smrg    break
316758105723Smrg  fi
316858105723Smrgdone
316958105723Smrgrm -f confinc.* confmf.*
317058105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
317158105723Smrgprintf "%s\n" "${_am_result}" >&6; }
31727e6533d5Smrg
31737e6533d5Smrg# Check whether --enable-dependency-tracking was given.
317458105723Smrgif test ${enable_dependency_tracking+y}
317558105723Smrgthen :
31767e6533d5Smrg  enableval=$enable_dependency_tracking;
31777e6533d5Smrgfi
31787e6533d5Smrg
31797e6533d5Smrgif test "x$enable_dependency_tracking" != xno; then
31807e6533d5Smrg  am_depcomp="$ac_aux_dir/depcomp"
31817e6533d5Smrg  AMDEPBACKSLASH='\'
3182aea1d7ffSmrg  am__nodep='_no'
31837e6533d5Smrgfi
31847e6533d5Smrg if test "x$enable_dependency_tracking" != xno; then
31857e6533d5Smrg  AMDEP_TRUE=
31867e6533d5Smrg  AMDEP_FALSE='#'
31877e6533d5Smrgelse
31887e6533d5Smrg  AMDEP_TRUE='#'
31897e6533d5Smrg  AMDEP_FALSE=
31907e6533d5Smrgfi
3191067610f1Smrg
3192067610f1Smrg
3193067610f1Smrgac_ext=c
3194067610f1Smrgac_cpp='$CPP $CPPFLAGS'
3195067610f1Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196067610f1Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197067610f1Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3198067610f1Smrgif test -n "$ac_tool_prefix"; then
3199067610f1Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3200067610f1Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
320158105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
320258105723Smrgprintf %s "checking for $ac_word... " >&6; }
320358105723Smrgif test ${ac_cv_prog_CC+y}
320458105723Smrgthen :
320558105723Smrg  printf %s "(cached) " >&6
320658105723Smrgelse $as_nop
3207067610f1Smrg  if test -n "$CC"; then
3208067610f1Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3209067610f1Smrgelse
3210067610f1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211067610f1Smrgfor as_dir in $PATH
3212067610f1Smrgdo
3213067610f1Smrg  IFS=$as_save_IFS
321458105723Smrg  case $as_dir in #(((
321558105723Smrg    '') as_dir=./ ;;
321658105723Smrg    */) ;;
321758105723Smrg    *) as_dir=$as_dir/ ;;
321858105723Smrg  esac
32197e6533d5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
322058105723Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3221067610f1Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
322258105723Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3223067610f1Smrg    break 2
3224067610f1Smrg  fi
3225067610f1Smrgdone
32267e6533d5Smrg  done
3227067610f1SmrgIFS=$as_save_IFS
3228067610f1Smrg
3229067610f1Smrgfi
3230067610f1Smrgfi
3231067610f1SmrgCC=$ac_cv_prog_CC
3232067610f1Smrgif test -n "$CC"; then
323358105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
323458105723Smrgprintf "%s\n" "$CC" >&6; }
3235067610f1Smrgelse
323658105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
323758105723Smrgprintf "%s\n" "no" >&6; }
3238067610f1Smrgfi
3239067610f1Smrg
3240067610f1Smrg
3241067610f1Smrgfi
3242067610f1Smrgif test -z "$ac_cv_prog_CC"; then
3243067610f1Smrg  ac_ct_CC=$CC
3244067610f1Smrg  # Extract the first word of "gcc", so it can be a program name with args.
3245067610f1Smrgset dummy gcc; ac_word=$2
324658105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
324758105723Smrgprintf %s "checking for $ac_word... " >&6; }
324858105723Smrgif test ${ac_cv_prog_ac_ct_CC+y}
324958105723Smrgthen :
325058105723Smrg  printf %s "(cached) " >&6
325158105723Smrgelse $as_nop
3252067610f1Smrg  if test -n "$ac_ct_CC"; then
3253067610f1Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3254067610f1Smrgelse
3255067610f1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256067610f1Smrgfor as_dir in $PATH
3257067610f1Smrgdo
3258067610f1Smrg  IFS=$as_save_IFS
325958105723Smrg  case $as_dir in #(((
326058105723Smrg    '') as_dir=./ ;;
326158105723Smrg    */) ;;
326258105723Smrg    *) as_dir=$as_dir/ ;;
326358105723Smrg  esac
32647e6533d5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
326558105723Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3266067610f1Smrg    ac_cv_prog_ac_ct_CC="gcc"
326758105723Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3268067610f1Smrg    break 2
3269067610f1Smrg  fi
3270067610f1Smrgdone
32717e6533d5Smrg  done
3272067610f1SmrgIFS=$as_save_IFS
3273067610f1Smrg
3274067610f1Smrgfi
3275067610f1Smrgfi
3276067610f1Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3277067610f1Smrgif test -n "$ac_ct_CC"; then
327858105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
327958105723Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
3280067610f1Smrgelse
328158105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
328258105723Smrgprintf "%s\n" "no" >&6; }
3283067610f1Smrgfi
3284067610f1Smrg
3285067610f1Smrg  if test "x$ac_ct_CC" = x; then
3286067610f1Smrg    CC=""
3287067610f1Smrg  else
3288067610f1Smrg    case $cross_compiling:$ac_tool_warned in
3289067610f1Smrgyes:)
329058105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
329158105723Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3292067610f1Smrgac_tool_warned=yes ;;
3293067610f1Smrgesac
3294067610f1Smrg    CC=$ac_ct_CC
3295067610f1Smrg  fi
3296067610f1Smrgelse
3297067610f1Smrg  CC="$ac_cv_prog_CC"
3298067610f1Smrgfi
3299067610f1Smrg
3300067610f1Smrgif test -z "$CC"; then
3301067610f1Smrg          if test -n "$ac_tool_prefix"; then
3302067610f1Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3303067610f1Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
330458105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
330558105723Smrgprintf %s "checking for $ac_word... " >&6; }
330658105723Smrgif test ${ac_cv_prog_CC+y}
330758105723Smrgthen :
330858105723Smrg  printf %s "(cached) " >&6
330958105723Smrgelse $as_nop
3310067610f1Smrg  if test -n "$CC"; then
3311067610f1Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3312067610f1Smrgelse
3313067610f1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314067610f1Smrgfor as_dir in $PATH
3315067610f1Smrgdo
3316067610f1Smrg  IFS=$as_save_IFS
331758105723Smrg  case $as_dir in #(((
331858105723Smrg    '') as_dir=./ ;;
331958105723Smrg    */) ;;
332058105723Smrg    *) as_dir=$as_dir/ ;;
332158105723Smrg  esac
33227e6533d5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
332358105723Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3324067610f1Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
332558105723Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3326067610f1Smrg    break 2
3327067610f1Smrg  fi
3328067610f1Smrgdone
33297e6533d5Smrg  done
3330067610f1SmrgIFS=$as_save_IFS
3331067610f1Smrg
3332067610f1Smrgfi
3333067610f1Smrgfi
3334067610f1SmrgCC=$ac_cv_prog_CC
3335067610f1Smrgif test -n "$CC"; then
333658105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
333758105723Smrgprintf "%s\n" "$CC" >&6; }
3338067610f1Smrgelse
333958105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
334058105723Smrgprintf "%s\n" "no" >&6; }
3341067610f1Smrgfi
3342067610f1Smrg
3343067610f1Smrg
3344067610f1Smrg  fi
3345067610f1Smrgfi
3346067610f1Smrgif test -z "$CC"; then
3347067610f1Smrg  # Extract the first word of "cc", so it can be a program name with args.
3348067610f1Smrgset dummy cc; ac_word=$2
334958105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
335058105723Smrgprintf %s "checking for $ac_word... " >&6; }
335158105723Smrgif test ${ac_cv_prog_CC+y}
335258105723Smrgthen :
335358105723Smrg  printf %s "(cached) " >&6
335458105723Smrgelse $as_nop
3355067610f1Smrg  if test -n "$CC"; then
3356067610f1Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3357067610f1Smrgelse
3358067610f1Smrg  ac_prog_rejected=no
3359067610f1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360067610f1Smrgfor as_dir in $PATH
3361067610f1Smrgdo
3362067610f1Smrg  IFS=$as_save_IFS
336358105723Smrg  case $as_dir in #(((
336458105723Smrg    '') as_dir=./ ;;
336558105723Smrg    */) ;;
336658105723Smrg    *) as_dir=$as_dir/ ;;
336758105723Smrg  esac
33687e6533d5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
336958105723Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
337058105723Smrg    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3371067610f1Smrg       ac_prog_rejected=yes
3372067610f1Smrg       continue
3373067610f1Smrg     fi
3374067610f1Smrg    ac_cv_prog_CC="cc"
337558105723Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3376067610f1Smrg    break 2
3377067610f1Smrg  fi
3378067610f1Smrgdone
33797e6533d5Smrg  done
3380067610f1SmrgIFS=$as_save_IFS
3381067610f1Smrg
3382067610f1Smrgif test $ac_prog_rejected = yes; then
3383067610f1Smrg  # We found a bogon in the path, so make sure we never use it.
3384067610f1Smrg  set dummy $ac_cv_prog_CC
3385067610f1Smrg  shift
3386067610f1Smrg  if test $# != 0; then
3387067610f1Smrg    # We chose a different compiler from the bogus one.
3388067610f1Smrg    # However, it has the same basename, so the bogon will be chosen
3389067610f1Smrg    # first if we set CC to just the basename; use the full file name.
3390067610f1Smrg    shift
339158105723Smrg    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3392067610f1Smrg  fi
3393067610f1Smrgfi
3394067610f1Smrgfi
3395067610f1Smrgfi
3396067610f1SmrgCC=$ac_cv_prog_CC
3397067610f1Smrgif test -n "$CC"; then
339858105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
339958105723Smrgprintf "%s\n" "$CC" >&6; }
3400067610f1Smrgelse
340158105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
340258105723Smrgprintf "%s\n" "no" >&6; }
3403067610f1Smrgfi
3404067610f1Smrg
3405067610f1Smrg
3406067610f1Smrgfi
3407067610f1Smrgif test -z "$CC"; then
3408067610f1Smrg  if test -n "$ac_tool_prefix"; then
3409067610f1Smrg  for ac_prog in cl.exe
3410067610f1Smrg  do
3411067610f1Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3412067610f1Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
341358105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
341458105723Smrgprintf %s "checking for $ac_word... " >&6; }
341558105723Smrgif test ${ac_cv_prog_CC+y}
341658105723Smrgthen :
341758105723Smrg  printf %s "(cached) " >&6
341858105723Smrgelse $as_nop
3419067610f1Smrg  if test -n "$CC"; then
3420067610f1Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3421067610f1Smrgelse
3422067610f1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423067610f1Smrgfor as_dir in $PATH
3424067610f1Smrgdo
3425067610f1Smrg  IFS=$as_save_IFS
342658105723Smrg  case $as_dir in #(((
342758105723Smrg    '') as_dir=./ ;;
342858105723Smrg    */) ;;
342958105723Smrg    *) as_dir=$as_dir/ ;;
343058105723Smrg  esac
34317e6533d5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
343258105723Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3433067610f1Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
343458105723Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3435067610f1Smrg    break 2
3436067610f1Smrg  fi
3437067610f1Smrgdone
34387e6533d5Smrg  done
3439067610f1SmrgIFS=$as_save_IFS
3440067610f1Smrg
3441067610f1Smrgfi
3442067610f1Smrgfi
3443067610f1SmrgCC=$ac_cv_prog_CC
3444067610f1Smrgif test -n "$CC"; then
344558105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
344658105723Smrgprintf "%s\n" "$CC" >&6; }
3447067610f1Smrgelse
344858105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
344958105723Smrgprintf "%s\n" "no" >&6; }
3450067610f1Smrgfi
3451067610f1Smrg
3452067610f1Smrg
3453067610f1Smrg    test -n "$CC" && break
3454067610f1Smrg  done
3455067610f1Smrgfi
3456067610f1Smrgif test -z "$CC"; then
3457067610f1Smrg  ac_ct_CC=$CC
3458067610f1Smrg  for ac_prog in cl.exe
3459067610f1Smrgdo
3460067610f1Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
3461067610f1Smrgset dummy $ac_prog; ac_word=$2
346258105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
346358105723Smrgprintf %s "checking for $ac_word... " >&6; }
346458105723Smrgif test ${ac_cv_prog_ac_ct_CC+y}
346558105723Smrgthen :
346658105723Smrg  printf %s "(cached) " >&6
346758105723Smrgelse $as_nop
3468067610f1Smrg  if test -n "$ac_ct_CC"; then
3469067610f1Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3470067610f1Smrgelse
3471067610f1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472067610f1Smrgfor as_dir in $PATH
3473067610f1Smrgdo
3474067610f1Smrg  IFS=$as_save_IFS
347558105723Smrg  case $as_dir in #(((
347658105723Smrg    '') as_dir=./ ;;
347758105723Smrg    */) ;;
347858105723Smrg    *) as_dir=$as_dir/ ;;
347958105723Smrg  esac
34807e6533d5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
348158105723Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3482067610f1Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
348358105723Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3484067610f1Smrg    break 2
3485067610f1Smrg  fi
3486067610f1Smrgdone
34877e6533d5Smrg  done
3488067610f1SmrgIFS=$as_save_IFS
3489067610f1Smrg
3490067610f1Smrgfi
3491067610f1Smrgfi
3492067610f1Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3493067610f1Smrgif test -n "$ac_ct_CC"; then
349458105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
349558105723Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
3496067610f1Smrgelse
349758105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
349858105723Smrgprintf "%s\n" "no" >&6; }
3499067610f1Smrgfi
3500067610f1Smrg
3501067610f1Smrg
3502067610f1Smrg  test -n "$ac_ct_CC" && break
3503067610f1Smrgdone
3504067610f1Smrg
3505067610f1Smrg  if test "x$ac_ct_CC" = x; then
3506067610f1Smrg    CC=""
3507067610f1Smrg  else
3508067610f1Smrg    case $cross_compiling:$ac_tool_warned in
3509067610f1Smrgyes:)
351058105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
351158105723Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
351258105723Smrgac_tool_warned=yes ;;
351358105723Smrgesac
351458105723Smrg    CC=$ac_ct_CC
351558105723Smrg  fi
351658105723Smrgfi
351758105723Smrg
351858105723Smrgfi
351958105723Smrgif test -z "$CC"; then
352058105723Smrg  if test -n "$ac_tool_prefix"; then
352158105723Smrg  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
352258105723Smrgset dummy ${ac_tool_prefix}clang; ac_word=$2
352358105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
352458105723Smrgprintf %s "checking for $ac_word... " >&6; }
352558105723Smrgif test ${ac_cv_prog_CC+y}
352658105723Smrgthen :
352758105723Smrg  printf %s "(cached) " >&6
352858105723Smrgelse $as_nop
352958105723Smrg  if test -n "$CC"; then
353058105723Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
353158105723Smrgelse
353258105723Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
353358105723Smrgfor as_dir in $PATH
353458105723Smrgdo
353558105723Smrg  IFS=$as_save_IFS
353658105723Smrg  case $as_dir in #(((
353758105723Smrg    '') as_dir=./ ;;
353858105723Smrg    */) ;;
353958105723Smrg    *) as_dir=$as_dir/ ;;
354058105723Smrg  esac
354158105723Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
354258105723Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
354358105723Smrg    ac_cv_prog_CC="${ac_tool_prefix}clang"
354458105723Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
354558105723Smrg    break 2
354658105723Smrg  fi
354758105723Smrgdone
354858105723Smrg  done
354958105723SmrgIFS=$as_save_IFS
355058105723Smrg
355158105723Smrgfi
355258105723Smrgfi
355358105723SmrgCC=$ac_cv_prog_CC
355458105723Smrgif test -n "$CC"; then
355558105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
355658105723Smrgprintf "%s\n" "$CC" >&6; }
355758105723Smrgelse
355858105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
355958105723Smrgprintf "%s\n" "no" >&6; }
356058105723Smrgfi
356158105723Smrg
356258105723Smrg
356358105723Smrgfi
356458105723Smrgif test -z "$ac_cv_prog_CC"; then
356558105723Smrg  ac_ct_CC=$CC
356658105723Smrg  # Extract the first word of "clang", so it can be a program name with args.
356758105723Smrgset dummy clang; ac_word=$2
356858105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
356958105723Smrgprintf %s "checking for $ac_word... " >&6; }
357058105723Smrgif test ${ac_cv_prog_ac_ct_CC+y}
357158105723Smrgthen :
357258105723Smrg  printf %s "(cached) " >&6
357358105723Smrgelse $as_nop
357458105723Smrg  if test -n "$ac_ct_CC"; then
357558105723Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
357658105723Smrgelse
357758105723Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
357858105723Smrgfor as_dir in $PATH
357958105723Smrgdo
358058105723Smrg  IFS=$as_save_IFS
358158105723Smrg  case $as_dir in #(((
358258105723Smrg    '') as_dir=./ ;;
358358105723Smrg    */) ;;
358458105723Smrg    *) as_dir=$as_dir/ ;;
358558105723Smrg  esac
358658105723Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
358758105723Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
358858105723Smrg    ac_cv_prog_ac_ct_CC="clang"
358958105723Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
359058105723Smrg    break 2
359158105723Smrg  fi
359258105723Smrgdone
359358105723Smrg  done
359458105723SmrgIFS=$as_save_IFS
359558105723Smrg
359658105723Smrgfi
359758105723Smrgfi
359858105723Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
359958105723Smrgif test -n "$ac_ct_CC"; then
360058105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
360158105723Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
360258105723Smrgelse
360358105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
360458105723Smrgprintf "%s\n" "no" >&6; }
360558105723Smrgfi
360658105723Smrg
360758105723Smrg  if test "x$ac_ct_CC" = x; then
360858105723Smrg    CC=""
360958105723Smrg  else
361058105723Smrg    case $cross_compiling:$ac_tool_warned in
361158105723Smrgyes:)
361258105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
361358105723Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3614067610f1Smrgac_tool_warned=yes ;;
3615067610f1Smrgesac
3616067610f1Smrg    CC=$ac_ct_CC
3617067610f1Smrg  fi
361858105723Smrgelse
361958105723Smrg  CC="$ac_cv_prog_CC"
3620067610f1Smrgfi
3621067610f1Smrg
3622067610f1Smrgfi
3623067610f1Smrg
3624067610f1Smrg
362558105723Smrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
362658105723Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
36277e6533d5Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
36287e6533d5SmrgSee \`config.log' for more details" "$LINENO" 5; }
3629067610f1Smrg
3630067610f1Smrg# Provide some information about the compiler.
363158105723Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
36327e6533d5Smrgset X $ac_compile
36337e6533d5Smrgac_compiler=$2
363458105723Smrgfor ac_option in --version -v -V -qversion -version; do
36357e6533d5Smrg  { { ac_try="$ac_compiler $ac_option >&5"
3636067610f1Smrgcase "(($ac_try" in
3637067610f1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638067610f1Smrg  *) ac_try_echo=$ac_try;;
3639067610f1Smrgesac
36407e6533d5Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
364158105723Smrgprintf "%s\n" "$ac_try_echo"; } >&5
36427e6533d5Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3643067610f1Smrg  ac_status=$?
36447e6533d5Smrg  if test -s conftest.err; then
36457e6533d5Smrg    sed '10a\
36467e6533d5Smrg... rest of stderr output deleted ...
36477e6533d5Smrg         10q' conftest.err >conftest.er1
36487e6533d5Smrg    cat conftest.er1 >&5
36497e6533d5Smrg  fi
36507e6533d5Smrg  rm -f conftest.er1 conftest.err
365158105723Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36527e6533d5Smrg  test $ac_status = 0; }
36537e6533d5Smrgdone
3654067610f1Smrg
36557e6533d5Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656067610f1Smrg/* end confdefs.h.  */
3657067610f1Smrg
3658067610f1Smrgint
365958105723Smrgmain (void)
3660067610f1Smrg{
3661067610f1Smrg
3662067610f1Smrg  ;
3663067610f1Smrg  return 0;
3664067610f1Smrg}
3665067610f1Smrg_ACEOF
3666067610f1Smrgac_clean_files_save=$ac_clean_files
36677e6533d5Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3668067610f1Smrg# Try to create an executable without -o first, disregard a.out.
3669067610f1Smrg# It will help us diagnose broken compilers, and finding out an intuition
3670067610f1Smrg# of exeext.
367158105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
367258105723Smrgprintf %s "checking whether the C compiler works... " >&6; }
367358105723Smrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
36747e6533d5Smrg
36757e6533d5Smrg# The possible output files:
36767e6533d5Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
36777e6533d5Smrg
3678067610f1Smrgac_rmfiles=
3679067610f1Smrgfor ac_file in $ac_files
3680067610f1Smrgdo
3681067610f1Smrg  case $ac_file in
36827e6533d5Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3683067610f1Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3684067610f1Smrg  esac
3685067610f1Smrgdone
3686067610f1Smrgrm -f $ac_rmfiles
3687067610f1Smrg
36887e6533d5Smrgif { { ac_try="$ac_link_default"
3689067610f1Smrgcase "(($ac_try" in
3690067610f1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691067610f1Smrg  *) ac_try_echo=$ac_try;;
3692067610f1Smrgesac
36937e6533d5Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
369458105723Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3695067610f1Smrg  (eval "$ac_link_default") 2>&5
3696067610f1Smrg  ac_status=$?
369758105723Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
369858105723Smrg  test $ac_status = 0; }
369958105723Smrgthen :
3700067610f1Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3701067610f1Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3702067610f1Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3703067610f1Smrg# so that the user can short-circuit this test for compilers unknown to
3704067610f1Smrg# Autoconf.
3705067610f1Smrgfor ac_file in $ac_files ''
3706067610f1Smrgdo
3707067610f1Smrg  test -f "$ac_file" || continue
3708067610f1Smrg  case $ac_file in
37097e6533d5Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3710067610f1Smrg	;;
3711067610f1Smrg    [ab].out )
3712067610f1Smrg	# We found the default executable, but exeext='' is most
3713067610f1Smrg	# certainly right.
3714067610f1Smrg	break;;
3715067610f1Smrg    *.* )
371658105723Smrg	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3717067610f1Smrg	then :; else
3718067610f1Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3719067610f1Smrg	fi
3720067610f1Smrg	# We set ac_cv_exeext here because the later test for it is not
3721067610f1Smrg	# safe: cross compilers may not add the suffix if given an `-o'
3722067610f1Smrg	# argument, so we may need to know it at that point already.
3723067610f1Smrg	# Even if this section looks crufty: it has the advantage of
3724067610f1Smrg	# actually working.
3725067610f1Smrg	break;;
3726067610f1Smrg    * )
3727067610f1Smrg	break;;
3728067610f1Smrg  esac
3729067610f1Smrgdone
3730067610f1Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3731067610f1Smrg
373258105723Smrgelse $as_nop
3733067610f1Smrg  ac_file=''
3734067610f1Smrgfi
373558105723Smrgif test -z "$ac_file"
373658105723Smrgthen :
373758105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
373858105723Smrgprintf "%s\n" "no" >&6; }
373958105723Smrgprintf "%s\n" "$as_me: failed program was:" >&5
3740067610f1Smrgsed 's/^/| /' conftest.$ac_ext >&5
3741067610f1Smrg
374258105723Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
374358105723Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37447e6533d5Smrgas_fn_error 77 "C compiler cannot create executables
37457e6533d5SmrgSee \`config.log' for more details" "$LINENO" 5; }
374658105723Smrgelse $as_nop
374758105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
374858105723Smrgprintf "%s\n" "yes" >&6; }
374958105723Smrgfi
375058105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
375158105723Smrgprintf %s "checking for C compiler default output file name... " >&6; }
375258105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
375358105723Smrgprintf "%s\n" "$ac_file" >&6; }
3754067610f1Smrgac_exeext=$ac_cv_exeext
3755067610f1Smrg
37567e6533d5Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3757067610f1Smrgac_clean_files=$ac_clean_files_save
375858105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
375958105723Smrgprintf %s "checking for suffix of executables... " >&6; }
37607e6533d5Smrgif { { ac_try="$ac_link"
3761067610f1Smrgcase "(($ac_try" in
3762067610f1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763067610f1Smrg  *) ac_try_echo=$ac_try;;
3764067610f1Smrgesac
37657e6533d5Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
376658105723Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3767067610f1Smrg  (eval "$ac_link") 2>&5
3768067610f1Smrg  ac_status=$?
376958105723Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
377058105723Smrg  test $ac_status = 0; }
377158105723Smrgthen :
3772067610f1Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3773067610f1Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3774067610f1Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3775067610f1Smrg# `rm'.
3776067610f1Smrgfor ac_file in conftest.exe conftest conftest.*; do
3777067610f1Smrg  test -f "$ac_file" || continue
3778067610f1Smrg  case $ac_file in
37797e6533d5Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3780067610f1Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3781067610f1Smrg	  break;;
3782067610f1Smrg    * ) break;;
3783067610f1Smrg  esac
3784067610f1Smrgdone
378558105723Smrgelse $as_nop
378658105723Smrg  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
378758105723Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37887e6533d5Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
37897e6533d5SmrgSee \`config.log' for more details" "$LINENO" 5; }
3790067610f1Smrgfi
37917e6533d5Smrgrm -f conftest conftest$ac_cv_exeext
379258105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
379358105723Smrgprintf "%s\n" "$ac_cv_exeext" >&6; }
3794067610f1Smrg
3795067610f1Smrgrm -f conftest.$ac_ext
3796067610f1SmrgEXEEXT=$ac_cv_exeext
3797067610f1Smrgac_exeext=$EXEEXT
37987e6533d5Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
37997e6533d5Smrg/* end confdefs.h.  */
38007e6533d5Smrg#include <stdio.h>
38017e6533d5Smrgint
380258105723Smrgmain (void)
38037e6533d5Smrg{
38047e6533d5SmrgFILE *f = fopen ("conftest.out", "w");
38057e6533d5Smrg return ferror (f) || fclose (f) != 0;
38067e6533d5Smrg
38077e6533d5Smrg  ;
38087e6533d5Smrg  return 0;
38097e6533d5Smrg}
3810067610f1Smrg_ACEOF
38117e6533d5Smrgac_clean_files="$ac_clean_files conftest.out"
38127e6533d5Smrg# Check that the compiler produces executables we can run.  If not, either
38137e6533d5Smrg# the compiler is broken, or we cross compile.
381458105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
381558105723Smrgprintf %s "checking whether we are cross compiling... " >&6; }
38167e6533d5Smrgif test "$cross_compiling" != yes; then
38177e6533d5Smrg  { { ac_try="$ac_link"
38187e6533d5Smrgcase "(($ac_try" in
38197e6533d5Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38207e6533d5Smrg  *) ac_try_echo=$ac_try;;
38217e6533d5Smrgesac
38227e6533d5Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
382358105723Smrgprintf "%s\n" "$ac_try_echo"; } >&5
38247e6533d5Smrg  (eval "$ac_link") 2>&5
38257e6533d5Smrg  ac_status=$?
382658105723Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38277e6533d5Smrg  test $ac_status = 0; }
38287e6533d5Smrg  if { ac_try='./conftest$ac_cv_exeext'
38297e6533d5Smrg  { { case "(($ac_try" in
38307e6533d5Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38317e6533d5Smrg  *) ac_try_echo=$ac_try;;
38327e6533d5Smrgesac
38337e6533d5Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
383458105723Smrgprintf "%s\n" "$ac_try_echo"; } >&5
38357e6533d5Smrg  (eval "$ac_try") 2>&5
38367e6533d5Smrg  ac_status=$?
383758105723Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38387e6533d5Smrg  test $ac_status = 0; }; }; then
38397e6533d5Smrg    cross_compiling=no
38407e6533d5Smrg  else
38417e6533d5Smrg    if test "$cross_compiling" = maybe; then
38427e6533d5Smrg	cross_compiling=yes
38437e6533d5Smrg    else
384458105723Smrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
384558105723Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
384658105723Smrgas_fn_error 77 "cannot run C compiled programs.
38477e6533d5SmrgIf you meant to cross compile, use \`--host'.
38487e6533d5SmrgSee \`config.log' for more details" "$LINENO" 5; }
38497e6533d5Smrg    fi
38507e6533d5Smrg  fi
38517e6533d5Smrgfi
385258105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
385358105723Smrgprintf "%s\n" "$cross_compiling" >&6; }
38547e6533d5Smrg
38557e6533d5Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
38567e6533d5Smrgac_clean_files=$ac_clean_files_save
385758105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
385858105723Smrgprintf %s "checking for suffix of object files... " >&6; }
385958105723Smrgif test ${ac_cv_objext+y}
386058105723Smrgthen :
386158105723Smrg  printf %s "(cached) " >&6
386258105723Smrgelse $as_nop
38637e6533d5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864067610f1Smrg/* end confdefs.h.  */
3865067610f1Smrg
3866067610f1Smrgint
386758105723Smrgmain (void)
3868067610f1Smrg{
3869067610f1Smrg
3870067610f1Smrg  ;
3871067610f1Smrg  return 0;
3872067610f1Smrg}
3873067610f1Smrg_ACEOF
3874067610f1Smrgrm -f conftest.o conftest.obj
38757e6533d5Smrgif { { ac_try="$ac_compile"
3876067610f1Smrgcase "(($ac_try" in
3877067610f1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878067610f1Smrg  *) ac_try_echo=$ac_try;;
3879067610f1Smrgesac
38807e6533d5Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
388158105723Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3882067610f1Smrg  (eval "$ac_compile") 2>&5
3883067610f1Smrg  ac_status=$?
388458105723Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
388558105723Smrg  test $ac_status = 0; }
388658105723Smrgthen :
3887067610f1Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
3888067610f1Smrg  test -f "$ac_file" || continue;
3889067610f1Smrg  case $ac_file in
38907e6533d5Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3891067610f1Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3892067610f1Smrg       break;;
3893067610f1Smrg  esac
3894067610f1Smrgdone
389558105723Smrgelse $as_nop
389658105723Smrg  printf "%s\n" "$as_me: failed program was:" >&5
3897067610f1Smrgsed 's/^/| /' conftest.$ac_ext >&5
3898067610f1Smrg
389958105723Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
390058105723Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39017e6533d5Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
39027e6533d5SmrgSee \`config.log' for more details" "$LINENO" 5; }
3903067610f1Smrgfi
3904067610f1Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3905067610f1Smrgfi
390658105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
390758105723Smrgprintf "%s\n" "$ac_cv_objext" >&6; }
3908067610f1SmrgOBJEXT=$ac_cv_objext
3909067610f1Smrgac_objext=$OBJEXT
391058105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
391158105723Smrgprintf %s "checking whether the compiler supports GNU C... " >&6; }
391258105723Smrgif test ${ac_cv_c_compiler_gnu+y}
391358105723Smrgthen :
391458105723Smrg  printf %s "(cached) " >&6
391558105723Smrgelse $as_nop
39167e6533d5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917067610f1Smrg/* end confdefs.h.  */
3918067610f1Smrg
3919067610f1Smrgint
392058105723Smrgmain (void)
3921067610f1Smrg{
3922067610f1Smrg#ifndef __GNUC__
3923067610f1Smrg       choke me
3924067610f1Smrg#endif
3925067610f1Smrg
3926067610f1Smrg  ;
3927067610f1Smrg  return 0;
3928067610f1Smrg}
3929067610f1Smrg_ACEOF
393058105723Smrgif ac_fn_c_try_compile "$LINENO"
393158105723Smrgthen :
3932067610f1Smrg  ac_compiler_gnu=yes
393358105723Smrgelse $as_nop
39347e6533d5Smrg  ac_compiler_gnu=no
3935067610f1Smrgfi
393658105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3937067610f1Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3938067610f1Smrg
3939067610f1Smrgfi
394058105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
394158105723Smrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
394258105723Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
394358105723Smrg
39447e6533d5Smrgif test $ac_compiler_gnu = yes; then
39457e6533d5Smrg  GCC=yes
39467e6533d5Smrgelse
39477e6533d5Smrg  GCC=
39487e6533d5Smrgfi
394958105723Smrgac_test_CFLAGS=${CFLAGS+y}
3950067610f1Smrgac_save_CFLAGS=$CFLAGS
395158105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
395258105723Smrgprintf %s "checking whether $CC accepts -g... " >&6; }
395358105723Smrgif test ${ac_cv_prog_cc_g+y}
395458105723Smrgthen :
395558105723Smrg  printf %s "(cached) " >&6
395658105723Smrgelse $as_nop
3957067610f1Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
3958067610f1Smrg   ac_c_werror_flag=yes
3959067610f1Smrg   ac_cv_prog_cc_g=no
3960067610f1Smrg   CFLAGS="-g"
39617e6533d5Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962067610f1Smrg/* end confdefs.h.  */
3963067610f1Smrg
3964067610f1Smrgint
396558105723Smrgmain (void)
3966067610f1Smrg{
3967067610f1Smrg
3968067610f1Smrg  ;
3969067610f1Smrg  return 0;
3970067610f1Smrg}
3971067610f1Smrg_ACEOF
397258105723Smrgif ac_fn_c_try_compile "$LINENO"
397358105723Smrgthen :
3974067610f1Smrg  ac_cv_prog_cc_g=yes
397558105723Smrgelse $as_nop
39767e6533d5Smrg  CFLAGS=""
39777e6533d5Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978067610f1Smrg/* end confdefs.h.  */
3979067610f1Smrg
3980067610f1Smrgint
398158105723Smrgmain (void)
3982067610f1Smrg{
3983067610f1Smrg
3984067610f1Smrg  ;
3985067610f1Smrg  return 0;
3986067610f1Smrg}
3987067610f1Smrg_ACEOF
398858105723Smrgif ac_fn_c_try_compile "$LINENO"
398958105723Smrgthen :
3990067610f1Smrg
399158105723Smrgelse $as_nop
39927e6533d5Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
3993067610f1Smrg	 CFLAGS="-g"
39947e6533d5Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995067610f1Smrg/* end confdefs.h.  */
3996067610f1Smrg
3997067610f1Smrgint
399858105723Smrgmain (void)
3999067610f1Smrg{
4000067610f1Smrg
4001067610f1Smrg  ;
4002067610f1Smrg  return 0;
4003067610f1Smrg}
4004067610f1Smrg_ACEOF
400558105723Smrgif ac_fn_c_try_compile "$LINENO"
400658105723Smrgthen :
4007067610f1Smrg  ac_cv_prog_cc_g=yes
4008067610f1Smrgfi
400958105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4010067610f1Smrgfi
401158105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4012067610f1Smrgfi
401358105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4014067610f1Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
4015067610f1Smrgfi
401658105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
401758105723Smrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
401858105723Smrgif test $ac_test_CFLAGS; then
4019067610f1Smrg  CFLAGS=$ac_save_CFLAGS
4020067610f1Smrgelif test $ac_cv_prog_cc_g = yes; then
4021067610f1Smrg  if test "$GCC" = yes; then
4022067610f1Smrg    CFLAGS="-g -O2"
4023067610f1Smrg  else
4024067610f1Smrg    CFLAGS="-g"
4025067610f1Smrg  fi
4026067610f1Smrgelse
4027067610f1Smrg  if test "$GCC" = yes; then
4028067610f1Smrg    CFLAGS="-O2"
4029067610f1Smrg  else
4030067610f1Smrg    CFLAGS=
4031067610f1Smrg  fi
4032067610f1Smrgfi
403358105723Smrgac_prog_cc_stdc=no
403458105723Smrgif test x$ac_prog_cc_stdc = xno
403558105723Smrgthen :
403658105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
403758105723Smrgprintf %s "checking for $CC option to enable C11 features... " >&6; }
403858105723Smrgif test ${ac_cv_prog_cc_c11+y}
403958105723Smrgthen :
404058105723Smrg  printf %s "(cached) " >&6
404158105723Smrgelse $as_nop
404258105723Smrg  ac_cv_prog_cc_c11=no
4043067610f1Smrgac_save_CC=$CC
40447e6533d5Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045067610f1Smrg/* end confdefs.h.  */
404658105723Smrg$ac_c_conftest_c11_program
404758105723Smrg_ACEOF
404858105723Smrgfor ac_arg in '' -std=gnu11
404958105723Smrgdo
405058105723Smrg  CC="$ac_save_CC $ac_arg"
405158105723Smrg  if ac_fn_c_try_compile "$LINENO"
405258105723Smrgthen :
405358105723Smrg  ac_cv_prog_cc_c11=$ac_arg
405458105723Smrgfi
405558105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
405658105723Smrg  test "x$ac_cv_prog_cc_c11" != "xno" && break
405758105723Smrgdone
405858105723Smrgrm -f conftest.$ac_ext
405958105723SmrgCC=$ac_save_CC
406058105723Smrgfi
4061067610f1Smrg
406258105723Smrgif test "x$ac_cv_prog_cc_c11" = xno
406358105723Smrgthen :
406458105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
406558105723Smrgprintf "%s\n" "unsupported" >&6; }
406658105723Smrgelse $as_nop
406758105723Smrg  if test "x$ac_cv_prog_cc_c11" = x
406858105723Smrgthen :
406958105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
407058105723Smrgprintf "%s\n" "none needed" >&6; }
407158105723Smrgelse $as_nop
407258105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
407358105723Smrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
407458105723Smrg     CC="$CC $ac_cv_prog_cc_c11"
407558105723Smrgfi
407658105723Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
407758105723Smrg  ac_prog_cc_stdc=c11
407858105723Smrgfi
407958105723Smrgfi
408058105723Smrgif test x$ac_prog_cc_stdc = xno
408158105723Smrgthen :
408258105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
408358105723Smrgprintf %s "checking for $CC option to enable C99 features... " >&6; }
408458105723Smrgif test ${ac_cv_prog_cc_c99+y}
408558105723Smrgthen :
408658105723Smrg  printf %s "(cached) " >&6
408758105723Smrgelse $as_nop
408858105723Smrg  ac_cv_prog_cc_c99=no
408958105723Smrgac_save_CC=$CC
409058105723Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
409158105723Smrg/* end confdefs.h.  */
409258105723Smrg$ac_c_conftest_c99_program
409358105723Smrg_ACEOF
409458105723Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
409558105723Smrgdo
409658105723Smrg  CC="$ac_save_CC $ac_arg"
409758105723Smrg  if ac_fn_c_try_compile "$LINENO"
409858105723Smrgthen :
409958105723Smrg  ac_cv_prog_cc_c99=$ac_arg
410058105723Smrgfi
410158105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
410258105723Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
410358105723Smrgdone
410458105723Smrgrm -f conftest.$ac_ext
410558105723SmrgCC=$ac_save_CC
410658105723Smrgfi
4107067610f1Smrg
410858105723Smrgif test "x$ac_cv_prog_cc_c99" = xno
410958105723Smrgthen :
411058105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
411158105723Smrgprintf "%s\n" "unsupported" >&6; }
411258105723Smrgelse $as_nop
411358105723Smrg  if test "x$ac_cv_prog_cc_c99" = x
411458105723Smrgthen :
411558105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
411658105723Smrgprintf "%s\n" "none needed" >&6; }
411758105723Smrgelse $as_nop
411858105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
411958105723Smrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
412058105723Smrg     CC="$CC $ac_cv_prog_cc_c99"
412158105723Smrgfi
412258105723Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
412358105723Smrg  ac_prog_cc_stdc=c99
412458105723Smrgfi
412558105723Smrgfi
412658105723Smrgif test x$ac_prog_cc_stdc = xno
412758105723Smrgthen :
412858105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
412958105723Smrgprintf %s "checking for $CC option to enable C89 features... " >&6; }
413058105723Smrgif test ${ac_cv_prog_cc_c89+y}
413158105723Smrgthen :
413258105723Smrg  printf %s "(cached) " >&6
413358105723Smrgelse $as_nop
413458105723Smrg  ac_cv_prog_cc_c89=no
413558105723Smrgac_save_CC=$CC
413658105723Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
413758105723Smrg/* end confdefs.h.  */
413858105723Smrg$ac_c_conftest_c89_program
4139067610f1Smrg_ACEOF
414058105723Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4141067610f1Smrgdo
4142067610f1Smrg  CC="$ac_save_CC $ac_arg"
414358105723Smrg  if ac_fn_c_try_compile "$LINENO"
414458105723Smrgthen :
4145067610f1Smrg  ac_cv_prog_cc_c89=$ac_arg
4146067610f1Smrgfi
414758105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4148067610f1Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
4149067610f1Smrgdone
4150067610f1Smrgrm -f conftest.$ac_ext
4151067610f1SmrgCC=$ac_save_CC
4152067610f1Smrgfi
4153067610f1Smrg
415458105723Smrgif test "x$ac_cv_prog_cc_c89" = xno
415558105723Smrgthen :
415658105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
415758105723Smrgprintf "%s\n" "unsupported" >&6; }
415858105723Smrgelse $as_nop
415958105723Smrg  if test "x$ac_cv_prog_cc_c89" = x
416058105723Smrgthen :
416158105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
416258105723Smrgprintf "%s\n" "none needed" >&6; }
416358105723Smrgelse $as_nop
416458105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
416558105723Smrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
416658105723Smrg     CC="$CC $ac_cv_prog_cc_c89"
416758105723Smrgfi
416858105723Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
416958105723Smrg  ac_prog_cc_stdc=c89
417058105723Smrgfi
41717e6533d5Smrgfi
4172067610f1Smrg
4173067610f1Smrgac_ext=c
4174067610f1Smrgac_cpp='$CPP $CPPFLAGS'
4175067610f1Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176067610f1Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177067610f1Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4178067610f1Smrg
417958105723Smrg
418058105723Smrg  ac_ext=c
4181e7fdea5fSmrgac_cpp='$CPP $CPPFLAGS'
4182e7fdea5fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183e7fdea5fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184e7fdea5fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
418558105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
418658105723Smrgprintf %s "checking whether $CC understands -c and -o together... " >&6; }
418758105723Smrgif test ${am_cv_prog_cc_c_o+y}
418858105723Smrgthen :
418958105723Smrg  printf %s "(cached) " >&6
419058105723Smrgelse $as_nop
4191e7fdea5fSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192e7fdea5fSmrg/* end confdefs.h.  */
4193e7fdea5fSmrg
4194e7fdea5fSmrgint
419558105723Smrgmain (void)
4196e7fdea5fSmrg{
4197e7fdea5fSmrg
4198e7fdea5fSmrg  ;
4199e7fdea5fSmrg  return 0;
4200e7fdea5fSmrg}
4201e7fdea5fSmrg_ACEOF
4202e7fdea5fSmrg  # Make sure it works both with $CC and with simple cc.
4203e7fdea5fSmrg  # Following AC_PROG_CC_C_O, we do the test twice because some
4204e7fdea5fSmrg  # compilers refuse to overwrite an existing .o file with -o,
4205e7fdea5fSmrg  # though they will create one.
4206e7fdea5fSmrg  am_cv_prog_cc_c_o=yes
4207e7fdea5fSmrg  for am_i in 1 2; do
4208e7fdea5fSmrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4209e7fdea5fSmrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4210e7fdea5fSmrg   ac_status=$?
4211e7fdea5fSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212e7fdea5fSmrg   (exit $ac_status); } \
4213e7fdea5fSmrg         && test -f conftest2.$ac_objext; then
4214e7fdea5fSmrg      : OK
4215e7fdea5fSmrg    else
4216e7fdea5fSmrg      am_cv_prog_cc_c_o=no
4217e7fdea5fSmrg      break
4218e7fdea5fSmrg    fi
4219e7fdea5fSmrg  done
4220e7fdea5fSmrg  rm -f core conftest*
4221e7fdea5fSmrg  unset am_i
4222e7fdea5fSmrgfi
422358105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
422458105723Smrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4225e7fdea5fSmrgif test "$am_cv_prog_cc_c_o" != yes; then
4226e7fdea5fSmrg   # Losing compiler, so override with the script.
4227e7fdea5fSmrg   # FIXME: It is wrong to rewrite CC.
4228e7fdea5fSmrg   # But if we don't then we get into trouble of one sort or another.
4229e7fdea5fSmrg   # A longer-term fix would be to have automake use am__CC in this case,
4230e7fdea5fSmrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4231e7fdea5fSmrg   CC="$am_aux_dir/compile $CC"
4232e7fdea5fSmrgfi
4233e7fdea5fSmrgac_ext=c
4234e7fdea5fSmrgac_cpp='$CPP $CPPFLAGS'
4235e7fdea5fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236e7fdea5fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237e7fdea5fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4238e7fdea5fSmrg
4239e7fdea5fSmrg
42407e6533d5Smrgdepcc="$CC"   am_compiler_list=
42417e6533d5Smrg
424258105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
424358105723Smrgprintf %s "checking dependency style of $depcc... " >&6; }
424458105723Smrgif test ${am_cv_CC_dependencies_compiler_type+y}
424558105723Smrgthen :
424658105723Smrg  printf %s "(cached) " >&6
424758105723Smrgelse $as_nop
42487e6533d5Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
42497e6533d5Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
42507e6533d5Smrg  # making bogus files that we don't know about and never remove.  For
42517e6533d5Smrg  # instance it was reported that on HP-UX the gcc test will end up
4252e7fdea5fSmrg  # making a dummy file named 'D' -- because '-MD' means "put the output
4253e7fdea5fSmrg  # in D".
4254aea1d7ffSmrg  rm -rf conftest.dir
42557e6533d5Smrg  mkdir conftest.dir
42567e6533d5Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
42577e6533d5Smrg  # using a relative directory.
42587e6533d5Smrg  cp "$am_depcomp" conftest.dir
42597e6533d5Smrg  cd conftest.dir
42607e6533d5Smrg  # We will build objects and dependencies in a subdirectory because
42617e6533d5Smrg  # it helps to detect inapplicable dependency modes.  For instance
42627e6533d5Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
42637e6533d5Smrg  # side effect of compilation, but ICC will put the dependencies in
42647e6533d5Smrg  # the current directory while Tru64 will put them in the object
42657e6533d5Smrg  # directory.
42667e6533d5Smrg  mkdir sub
4267067610f1Smrg
42687e6533d5Smrg  am_cv_CC_dependencies_compiler_type=none
42697e6533d5Smrg  if test "$am_compiler_list" = ""; then
42707e6533d5Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
42717e6533d5Smrg  fi
42727e6533d5Smrg  am__universal=false
42737e6533d5Smrg  case " $depcc " in #(
42747e6533d5Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
42757e6533d5Smrg     esac
4276067610f1Smrg
42777e6533d5Smrg  for depmode in $am_compiler_list; do
42787e6533d5Smrg    # Setup a source with many dependencies, because some compilers
42797e6533d5Smrg    # like to wrap large dependency lists on column 80 (with \), and
42807e6533d5Smrg    # we should not choose a depcomp mode which is confused by this.
42817e6533d5Smrg    #
42827e6533d5Smrg    # We need to recreate these files for each test, as the compiler may
42837e6533d5Smrg    # overwrite some of them when testing with obscure command lines.
42847e6533d5Smrg    # This happens at least with the AIX C compiler.
42857e6533d5Smrg    : > sub/conftest.c
42867e6533d5Smrg    for i in 1 2 3 4 5 6; do
42877e6533d5Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4288e7fdea5fSmrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4289e7fdea5fSmrg      # Solaris 10 /bin/sh.
4290e7fdea5fSmrg      echo '/* dummy */' > sub/conftst$i.h
42917e6533d5Smrg    done
42927e6533d5Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
42937e6533d5Smrg
4294e7fdea5fSmrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
42957e6533d5Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
4296e7fdea5fSmrg    # handle '-M -o', and we need to detect this.  Also, some Intel
4297e7fdea5fSmrg    # versions had trouble with output in subdirs.
42987e6533d5Smrg    am__obj=sub/conftest.${OBJEXT-o}
42997e6533d5Smrg    am__minus_obj="-o $am__obj"
43007e6533d5Smrg    case $depmode in
43017e6533d5Smrg    gcc)
43027e6533d5Smrg      # This depmode causes a compiler race in universal mode.
43037e6533d5Smrg      test "$am__universal" = false || continue
43047e6533d5Smrg      ;;
43057e6533d5Smrg    nosideeffect)
4306e7fdea5fSmrg      # After this tag, mechanisms are not by side-effect, so they'll
4307e7fdea5fSmrg      # only be used when explicitly requested.
43087e6533d5Smrg      if test "x$enable_dependency_tracking" = xyes; then
43097e6533d5Smrg	continue
43107e6533d5Smrg      else
43117e6533d5Smrg	break
43127e6533d5Smrg      fi
43137e6533d5Smrg      ;;
4314aea1d7ffSmrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4315e7fdea5fSmrg      # This compiler won't grok '-c -o', but also, the minuso test has
43167e6533d5Smrg      # not run yet.  These depmodes are late enough in the game, and
43177e6533d5Smrg      # so weak that their functioning should not be impacted.
43187e6533d5Smrg      am__obj=conftest.${OBJEXT-o}
43197e6533d5Smrg      am__minus_obj=
43207e6533d5Smrg      ;;
43217e6533d5Smrg    none) break ;;
43227e6533d5Smrg    esac
43237e6533d5Smrg    if depmode=$depmode \
43247e6533d5Smrg       source=sub/conftest.c object=$am__obj \
432558105723Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
432658105723Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
432758105723Smrg         >/dev/null 2>conftest.err &&
432858105723Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
432958105723Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
433058105723Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
433158105723Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
433258105723Smrg      # icc doesn't choke on unknown options, it will just issue warnings
433358105723Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
433458105723Smrg      # that says an option was ignored or not supported.
433558105723Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
433658105723Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
433758105723Smrg      # The diagnosis changed in icc 8.0:
433858105723Smrg      #   icc: Command line remark: option '-MP' not supported
433958105723Smrg      if (grep 'ignoring option' conftest.err ||
434058105723Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
434158105723Smrg        am_cv_CC_dependencies_compiler_type=$depmode
434258105723Smrg        break
434358105723Smrg      fi
4344067610f1Smrg    fi
4345067610f1Smrg  done
4346067610f1Smrg
434758105723Smrg  cd ..
434858105723Smrg  rm -rf conftest.dir
4349067610f1Smrgelse
435058105723Smrg  am_cv_CC_dependencies_compiler_type=none
4351067610f1Smrgfi
4352067610f1Smrg
4353067610f1Smrgfi
435458105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
435558105723Smrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
435658105723SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4357067610f1Smrg
435858105723Smrg if
435958105723Smrg  test "x$enable_dependency_tracking" != xno \
436058105723Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
436158105723Smrg  am__fastdepCC_TRUE=
436258105723Smrg  am__fastdepCC_FALSE='#'
4363067610f1Smrgelse
436458105723Smrg  am__fastdepCC_TRUE='#'
436558105723Smrg  am__fastdepCC_FALSE=
43667e6533d5Smrgfi
43677e6533d5Smrg
43687e6533d5Smrg
43697e6533d5Smrg
437058105723Smrg
437158105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
437258105723Smrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
437358105723Smrgif test ${ac_cv_c_undeclared_builtin_options+y}
437458105723Smrgthen :
437558105723Smrg  printf %s "(cached) " >&6
437658105723Smrgelse $as_nop
437758105723Smrg  ac_save_CFLAGS=$CFLAGS
437858105723Smrg   ac_cv_c_undeclared_builtin_options='cannot detect'
437958105723Smrg   for ac_arg in '' -fno-builtin; do
438058105723Smrg     CFLAGS="$ac_save_CFLAGS $ac_arg"
438158105723Smrg     # This test program should *not* compile successfully.
438258105723Smrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383067610f1Smrg/* end confdefs.h.  */
4384067610f1Smrg
4385067610f1Smrgint
438658105723Smrgmain (void)
4387067610f1Smrg{
438858105723Smrg(void) strchr;
4389067610f1Smrg  ;
4390067610f1Smrg  return 0;
4391067610f1Smrg}
4392067610f1Smrg_ACEOF
439358105723Smrgif ac_fn_c_try_compile "$LINENO"
439458105723Smrgthen :
43957e6533d5Smrg
439658105723Smrgelse $as_nop
439758105723Smrg  # This test program should compile successfully.
439858105723Smrg        # No library function is consistently available on
439958105723Smrg        # freestanding implementations, so test against a dummy
440058105723Smrg        # declaration.  Include always-available headers on the
440158105723Smrg        # off chance that they somehow elicit warnings.
440258105723Smrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44037e6533d5Smrg/* end confdefs.h.  */
440458105723Smrg#include <float.h>
440558105723Smrg#include <limits.h>
440658105723Smrg#include <stdarg.h>
440758105723Smrg#include <stddef.h>
440858105723Smrgextern void ac_decl (int, char *);
4409067610f1Smrg
44107e6533d5Smrgint
441158105723Smrgmain (void)
44127e6533d5Smrg{
441358105723Smrg(void) ac_decl (0, (char *) 0);
441458105723Smrg  (void) ac_decl;
441558105723Smrg
441658105723Smrg  ;
44177e6533d5Smrg  return 0;
44187e6533d5Smrg}
44197e6533d5Smrg_ACEOF
442058105723Smrgif ac_fn_c_try_compile "$LINENO"
442158105723Smrgthen :
442258105723Smrg  if test x"$ac_arg" = x
442358105723Smrgthen :
442458105723Smrg  ac_cv_c_undeclared_builtin_options='none needed'
442558105723Smrgelse $as_nop
442658105723Smrg  ac_cv_c_undeclared_builtin_options=$ac_arg
4427067610f1Smrgfi
442858105723Smrg          break
44297e6533d5Smrgfi
443058105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
44317e6533d5Smrgfi
443258105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
443358105723Smrg    done
443458105723Smrg    CFLAGS=$ac_save_CFLAGS
443558105723Smrg
443658105723Smrgfi
443758105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
443858105723Smrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
443958105723Smrg  case $ac_cv_c_undeclared_builtin_options in #(
444058105723Smrg  'cannot detect') :
444158105723Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
444258105723Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
444358105723Smrgas_fn_error $? "cannot make $CC report undeclared builtins
444458105723SmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #(
444558105723Smrg  'none needed') :
444658105723Smrg    ac_c_undeclared_builtin_options='' ;; #(
444758105723Smrg  *) :
444858105723Smrg    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
444958105723Smrgesac
44507e6533d5Smrg
445158105723Smrgac_header= ac_cache=
445258105723Smrgfor ac_item in $ac_header_c_list
445358105723Smrgdo
445458105723Smrg  if test $ac_cache; then
445558105723Smrg    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
445658105723Smrg    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
445758105723Smrg      printf "%s\n" "#define $ac_item 1" >> confdefs.h
445858105723Smrg    fi
445958105723Smrg    ac_header= ac_cache=
446058105723Smrg  elif test $ac_header; then
446158105723Smrg    ac_cache=$ac_item
446258105723Smrg  else
446358105723Smrg    ac_header=$ac_item
446458105723Smrg  fi
446558105723Smrgdone
44667e6533d5Smrg
4467067610f1Smrg
4468067610f1Smrg
44697e6533d5Smrg
4470067610f1Smrg
4471067610f1Smrg
4472067610f1Smrg
4473067610f1Smrg
447458105723Smrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
447558105723Smrgthen :
447658105723Smrg
447758105723Smrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
447858105723Smrg
447958105723Smrgfi
448058105723Smrg
448158105723Smrg
4482aea1d7ffSmrg
4483aea1d7ffSmrg
448458105723Smrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
448558105723Smrgif test "x$ac_cv_have_decl___clang__" = xyes
448658105723Smrgthen :
4487aea1d7ffSmrg  CLANGCC="yes"
448858105723Smrgelse $as_nop
4489aea1d7ffSmrg  CLANGCC="no"
4490aea1d7ffSmrgfi
449158105723Smrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
449258105723Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
449358105723Smrgthen :
4494aea1d7ffSmrg  INTELCC="yes"
449558105723Smrgelse $as_nop
4496aea1d7ffSmrg  INTELCC="no"
4497aea1d7ffSmrgfi
449858105723Smrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
449958105723Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes
450058105723Smrgthen :
4501aea1d7ffSmrg  SUNCC="yes"
450258105723Smrgelse $as_nop
4503aea1d7ffSmrg  SUNCC="no"
4504aea1d7ffSmrgfi
4505aea1d7ffSmrg
4506aea1d7ffSmrg
4507aea1d7ffSmrg
4508aea1d7ffSmrg
45094d9306dbSmrg
45104d9306dbSmrg
45114d9306dbSmrg
45124d9306dbSmrg
4513067610f1Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4514067610f1Smrg	if test -n "$ac_tool_prefix"; then
4515067610f1Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4516067610f1Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
451758105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
451858105723Smrgprintf %s "checking for $ac_word... " >&6; }
451958105723Smrgif test ${ac_cv_path_PKG_CONFIG+y}
452058105723Smrgthen :
452158105723Smrg  printf %s "(cached) " >&6
452258105723Smrgelse $as_nop
4523067610f1Smrg  case $PKG_CONFIG in
4524067610f1Smrg  [\\/]* | ?:[\\/]*)
4525067610f1Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4526067610f1Smrg  ;;
4527067610f1Smrg  *)
4528067610f1Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529067610f1Smrgfor as_dir in $PATH
4530067610f1Smrgdo
4531067610f1Smrg  IFS=$as_save_IFS
453258105723Smrg  case $as_dir in #(((
453358105723Smrg    '') as_dir=./ ;;
453458105723Smrg    */) ;;
453558105723Smrg    *) as_dir=$as_dir/ ;;
453658105723Smrg  esac
45377e6533d5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
453858105723Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
453958105723Smrg    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
454058105723Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4541067610f1Smrg    break 2
4542067610f1Smrg  fi
4543067610f1Smrgdone
45447e6533d5Smrg  done
4545067610f1SmrgIFS=$as_save_IFS
4546067610f1Smrg
4547067610f1Smrg  ;;
4548067610f1Smrgesac
4549067610f1Smrgfi
4550067610f1SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4551067610f1Smrgif test -n "$PKG_CONFIG"; then
455258105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
455358105723Smrgprintf "%s\n" "$PKG_CONFIG" >&6; }
4554067610f1Smrgelse
455558105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
455658105723Smrgprintf "%s\n" "no" >&6; }
4557067610f1Smrgfi
4558067610f1Smrg
4559067610f1Smrg
4560067610f1Smrgfi
4561067610f1Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4562067610f1Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4563067610f1Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4564067610f1Smrgset dummy pkg-config; ac_word=$2
456558105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
456658105723Smrgprintf %s "checking for $ac_word... " >&6; }
456758105723Smrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
456858105723Smrgthen :
456958105723Smrg  printf %s "(cached) " >&6
457058105723Smrgelse $as_nop
4571067610f1Smrg  case $ac_pt_PKG_CONFIG in
4572067610f1Smrg  [\\/]* | ?:[\\/]*)
4573067610f1Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4574067610f1Smrg  ;;
4575067610f1Smrg  *)
4576067610f1Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577067610f1Smrgfor as_dir in $PATH
4578067610f1Smrgdo
4579067610f1Smrg  IFS=$as_save_IFS
458058105723Smrg  case $as_dir in #(((
458158105723Smrg    '') as_dir=./ ;;
458258105723Smrg    */) ;;
458358105723Smrg    *) as_dir=$as_dir/ ;;
458458105723Smrg  esac
45857e6533d5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
458658105723Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
458758105723Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
458858105723Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4589067610f1Smrg    break 2
4590067610f1Smrg  fi
4591067610f1Smrgdone
45927e6533d5Smrg  done
4593067610f1SmrgIFS=$as_save_IFS
4594067610f1Smrg
4595067610f1Smrg  ;;
4596067610f1Smrgesac
4597067610f1Smrgfi
4598067610f1Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4599067610f1Smrgif test -n "$ac_pt_PKG_CONFIG"; then
460058105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
460158105723Smrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4602067610f1Smrgelse
460358105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
460458105723Smrgprintf "%s\n" "no" >&6; }
4605067610f1Smrgfi
4606067610f1Smrg
4607067610f1Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4608067610f1Smrg    PKG_CONFIG=""
4609067610f1Smrg  else
4610067610f1Smrg    case $cross_compiling:$ac_tool_warned in
4611067610f1Smrgyes:)
461258105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
461358105723Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4614067610f1Smrgac_tool_warned=yes ;;
4615067610f1Smrgesac
4616067610f1Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4617067610f1Smrg  fi
4618067610f1Smrgelse
4619067610f1Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4620067610f1Smrgfi
4621067610f1Smrg
4622067610f1Smrgfi
4623067610f1Smrgif test -n "$PKG_CONFIG"; then
4624067610f1Smrg	_pkg_min_version=0.9.0
462558105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
462658105723Smrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4627067610f1Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
462858105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
462958105723Smrgprintf "%s\n" "yes" >&6; }
4630067610f1Smrg	else
463158105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
463258105723Smrgprintf "%s\n" "no" >&6; }
4633067610f1Smrg		PKG_CONFIG=""
4634067610f1Smrg	fi
4635067610f1Smrgfi
4636067610f1Smrg
463758105723Smrg
463858105723Smrg  # Make sure we can run config.sub.
463958105723Smrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
464058105723Smrg  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
464158105723Smrg
464258105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
464358105723Smrgprintf %s "checking build system type... " >&6; }
464458105723Smrgif test ${ac_cv_build+y}
464558105723Smrgthen :
464658105723Smrg  printf %s "(cached) " >&6
464758105723Smrgelse $as_nop
4648067610f1Smrg  ac_build_alias=$build_alias
4649067610f1Smrgtest "x$ac_build_alias" = x &&
465058105723Smrg  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4651067610f1Smrgtest "x$ac_build_alias" = x &&
46527e6533d5Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
465358105723Smrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
465458105723Smrg  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4655067610f1Smrg
4656067610f1Smrgfi
465758105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
465858105723Smrgprintf "%s\n" "$ac_cv_build" >&6; }
4659067610f1Smrgcase $ac_cv_build in
4660067610f1Smrg*-*-*) ;;
46617e6533d5Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4662067610f1Smrgesac
4663067610f1Smrgbuild=$ac_cv_build
4664067610f1Smrgac_save_IFS=$IFS; IFS='-'
4665067610f1Smrgset x $ac_cv_build
4666067610f1Smrgshift
4667067610f1Smrgbuild_cpu=$1
4668067610f1Smrgbuild_vendor=$2
4669067610f1Smrgshift; shift
4670067610f1Smrg# Remember, the first character of IFS is used to create $*,
4671067610f1Smrg# except with old shells:
4672067610f1Smrgbuild_os=$*
4673067610f1SmrgIFS=$ac_save_IFS
4674067610f1Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4675067610f1Smrg
4676067610f1Smrg
467758105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
467858105723Smrgprintf %s "checking host system type... " >&6; }
467958105723Smrgif test ${ac_cv_host+y}
468058105723Smrgthen :
468158105723Smrg  printf %s "(cached) " >&6
468258105723Smrgelse $as_nop
4683067610f1Smrg  if test "x$host_alias" = x; then
4684067610f1Smrg  ac_cv_host=$ac_cv_build
4685067610f1Smrgelse
468658105723Smrg  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
468758105723Smrg    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4688067610f1Smrgfi
4689067610f1Smrg
4690067610f1Smrgfi
469158105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
469258105723Smrgprintf "%s\n" "$ac_cv_host" >&6; }
4693067610f1Smrgcase $ac_cv_host in
4694067610f1Smrg*-*-*) ;;
46957e6533d5Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4696067610f1Smrgesac
4697067610f1Smrghost=$ac_cv_host
4698067610f1Smrgac_save_IFS=$IFS; IFS='-'
4699067610f1Smrgset x $ac_cv_host
4700067610f1Smrgshift
4701067610f1Smrghost_cpu=$1
4702067610f1Smrghost_vendor=$2
4703067610f1Smrgshift; shift
4704067610f1Smrg# Remember, the first character of IFS is used to create $*,
4705067610f1Smrg# except with old shells:
4706067610f1Smrghost_os=$*
4707067610f1SmrgIFS=$ac_save_IFS
4708067610f1Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4709067610f1Smrg
4710067610f1Smrg
471158105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
471258105723Smrgprintf %s "checking for a sed that does not truncate output... " >&6; }
471358105723Smrgif test ${ac_cv_path_SED+y}
471458105723Smrgthen :
471558105723Smrg  printf %s "(cached) " >&6
471658105723Smrgelse $as_nop
47177e6533d5Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
47187e6533d5Smrg     for ac_i in 1 2 3 4 5 6 7; do
47197e6533d5Smrg       ac_script="$ac_script$as_nl$ac_script"
47207e6533d5Smrg     done
47217e6533d5Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
47227e6533d5Smrg     { ac_script=; unset ac_script;}
47237e6533d5Smrg     if test -z "$SED"; then
47247e6533d5Smrg  ac_path_SED_found=false
47257e6533d5Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
47267e6533d5Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47277e6533d5Smrgfor as_dir in $PATH
47287e6533d5Smrgdo
47297e6533d5Smrg  IFS=$as_save_IFS
473058105723Smrg  case $as_dir in #(((
473158105723Smrg    '') as_dir=./ ;;
473258105723Smrg    */) ;;
473358105723Smrg    *) as_dir=$as_dir/ ;;
473458105723Smrg  esac
473558105723Smrg    for ac_prog in sed gsed
473658105723Smrg   do
47377e6533d5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
473858105723Smrg      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4739e7fdea5fSmrg      as_fn_executable_p "$ac_path_SED" || continue
47407e6533d5Smrg# Check for GNU ac_path_SED and select it if it is found.
47417e6533d5Smrg  # Check for GNU $ac_path_SED
47427e6533d5Smrgcase `"$ac_path_SED" --version 2>&1` in
47437e6533d5Smrg*GNU*)
47447e6533d5Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
47457e6533d5Smrg*)
47467e6533d5Smrg  ac_count=0
474758105723Smrg  printf %s 0123456789 >"conftest.in"
47487e6533d5Smrg  while :
47497e6533d5Smrg  do
47507e6533d5Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
47517e6533d5Smrg    mv "conftest.tmp" "conftest.in"
47527e6533d5Smrg    cp "conftest.in" "conftest.nl"
475358105723Smrg    printf "%s\n" '' >> "conftest.nl"
47547e6533d5Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
47557e6533d5Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
47567e6533d5Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
47577e6533d5Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
47587e6533d5Smrg      # Best one so far, save it but keep looking for a better one
47597e6533d5Smrg      ac_cv_path_SED="$ac_path_SED"
47607e6533d5Smrg      ac_path_SED_max=$ac_count
47617e6533d5Smrg    fi
47627e6533d5Smrg    # 10*(2^10) chars as input seems more than enough
47637e6533d5Smrg    test $ac_count -gt 10 && break
47647e6533d5Smrg  done
47657e6533d5Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
47667e6533d5Smrgesac
47677e6533d5Smrg
47687e6533d5Smrg      $ac_path_SED_found && break 3
47697e6533d5Smrg    done
47707e6533d5Smrg  done
47717e6533d5Smrg  done
47727e6533d5SmrgIFS=$as_save_IFS
47737e6533d5Smrg  if test -z "$ac_cv_path_SED"; then
47747e6533d5Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
47757e6533d5Smrg  fi
47767e6533d5Smrgelse
47777e6533d5Smrg  ac_cv_path_SED=$SED
47787e6533d5Smrgfi
47797e6533d5Smrg
47807e6533d5Smrgfi
478158105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
478258105723Smrgprintf "%s\n" "$ac_cv_path_SED" >&6; }
47837e6533d5Smrg SED="$ac_cv_path_SED"
47847e6533d5Smrg  rm -f conftest.sed
47857e6533d5Smrg
47867e6533d5Smrg
47877e6533d5Smrg
47887e6533d5Smrg
47897e6533d5Smrg
4790aea1d7ffSmrg
4791aea1d7ffSmrg# Check whether --enable-selective-werror was given.
479258105723Smrgif test ${enable_selective_werror+y}
479358105723Smrgthen :
4794aea1d7ffSmrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
479558105723Smrgelse $as_nop
4796aea1d7ffSmrg  SELECTIVE_WERROR=yes
47977e6533d5Smrgfi
47987e6533d5Smrg
4799aea1d7ffSmrg
4800aea1d7ffSmrg
4801aea1d7ffSmrg
4802aea1d7ffSmrg
4803aea1d7ffSmrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
4804aea1d7ffSmrgif test "x$SUNCC" = "xyes"; then
4805aea1d7ffSmrg    BASE_CFLAGS="-v"
4806aea1d7ffSmrgelse
4807aea1d7ffSmrg    BASE_CFLAGS=""
48087e6533d5Smrgfi
48097e6533d5Smrg
4810aea1d7ffSmrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
48117e6533d5Smrg
48127e6533d5Smrg
48137e6533d5Smrg
48147e6533d5Smrg
48157e6533d5Smrg
48167e6533d5Smrg
48177e6533d5Smrg
4818aea1d7ffSmrg
4819aea1d7ffSmrg
4820aea1d7ffSmrg
4821aea1d7ffSmrg
4822aea1d7ffSmrg
4823aea1d7ffSmrg
4824aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
4825aea1d7ffSmrg
4826aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4827aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
482858105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
482958105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
483058105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
483158105723Smrgthen :
483258105723Smrg  printf %s "(cached) " >&6
483358105723Smrgelse $as_nop
4834aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835aea1d7ffSmrg/* end confdefs.h.  */
4836aea1d7ffSmrgint i;
4837aea1d7ffSmrg_ACEOF
483858105723Smrgif ac_fn_c_try_compile "$LINENO"
483958105723Smrgthen :
4840aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
484158105723Smrgelse $as_nop
4842aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
4843aea1d7ffSmrgfi
484458105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4845aea1d7ffSmrgfi
484658105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
484758105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4848aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4849aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
48507e6533d5Smrgfi
48517e6533d5Smrg
4852aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4853aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4854aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
48557e6533d5Smrg	fi
4856aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
485758105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
485858105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
485958105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
486058105723Smrgthen :
486158105723Smrg  printf %s "(cached) " >&6
486258105723Smrgelse $as_nop
4863aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864aea1d7ffSmrg/* end confdefs.h.  */
4865aea1d7ffSmrgint i;
4866aea1d7ffSmrg_ACEOF
486758105723Smrgif ac_fn_c_try_compile "$LINENO"
486858105723Smrgthen :
4869aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
487058105723Smrgelse $as_nop
4871aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
4872aea1d7ffSmrgfi
487358105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4874aea1d7ffSmrgfi
487558105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
487658105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4877aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4878aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
48797e6533d5Smrgfi
48807e6533d5Smrg
4881aea1d7ffSmrgfound="no"
48827e6533d5Smrg
4883aea1d7ffSmrg	if test $found = "no" ; then
4884e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4885aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4886aea1d7ffSmrg		fi
48877e6533d5Smrg
4888e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4889aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4890aea1d7ffSmrg		fi
48917e6533d5Smrg
4892aea1d7ffSmrg		CFLAGS="$CFLAGS -Wall"
48937e6533d5Smrg
489458105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
489558105723Smrgprintf %s "checking if $CC supports -Wall... " >&6; }
4896aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wall
489758105723Smrg		if eval test \${$cacheid+y}
489858105723Smrgthen :
489958105723Smrg  printf %s "(cached) " >&6
490058105723Smrgelse $as_nop
4901aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902aea1d7ffSmrg/* end confdefs.h.  */
4903aea1d7ffSmrgint i;
4904aea1d7ffSmrgint
490558105723Smrgmain (void)
4906aea1d7ffSmrg{
49077e6533d5Smrg
4908aea1d7ffSmrg  ;
4909aea1d7ffSmrg  return 0;
4910aea1d7ffSmrg}
49117e6533d5Smrg_ACEOF
491258105723Smrgif ac_fn_c_try_link "$LINENO"
491358105723Smrgthen :
4914aea1d7ffSmrg  eval $cacheid=yes
491558105723Smrgelse $as_nop
4916aea1d7ffSmrg  eval $cacheid=no
4917aea1d7ffSmrgfi
491858105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
4919aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
4920aea1d7ffSmrgfi
49217e6533d5Smrg
4922aea1d7ffSmrg
4923aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
4924aea1d7ffSmrg
4925aea1d7ffSmrg		eval supported=\$$cacheid
492658105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
492758105723Smrgprintf "%s\n" "$supported" >&6; }
4928aea1d7ffSmrg		if test "$supported" = "yes" ; then
4929aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4930aea1d7ffSmrg			found="yes"
4931aea1d7ffSmrg		fi
49327e6533d5Smrg	fi
49337e6533d5Smrg
49347e6533d5Smrg
49357e6533d5Smrg
49367e6533d5Smrg
49377e6533d5Smrg
49387e6533d5Smrg
49397e6533d5Smrg
49407e6533d5Smrg
49417e6533d5Smrg
49427e6533d5Smrg
49437e6533d5Smrg
4944067610f1Smrg
4945067610f1Smrg
4946067610f1Smrg
4947067610f1Smrg
4948aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
4949067610f1Smrg
4950aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4951aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
495258105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
495358105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
495458105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
495558105723Smrgthen :
495658105723Smrg  printf %s "(cached) " >&6
495758105723Smrgelse $as_nop
4958aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959aea1d7ffSmrg/* end confdefs.h.  */
4960aea1d7ffSmrgint i;
4961aea1d7ffSmrg_ACEOF
496258105723Smrgif ac_fn_c_try_compile "$LINENO"
496358105723Smrgthen :
4964aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
496558105723Smrgelse $as_nop
4966aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
4967067610f1Smrgfi
496858105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4969067610f1Smrgfi
497058105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
497158105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4972aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4973aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4974067610f1Smrgfi
4975067610f1Smrg
4976aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4977aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4978aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4979aea1d7ffSmrg	fi
4980aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
498158105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
498258105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
498358105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
498458105723Smrgthen :
498558105723Smrg  printf %s "(cached) " >&6
498658105723Smrgelse $as_nop
4987aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988aea1d7ffSmrg/* end confdefs.h.  */
4989aea1d7ffSmrgint i;
4990aea1d7ffSmrg_ACEOF
499158105723Smrgif ac_fn_c_try_compile "$LINENO"
499258105723Smrgthen :
4993aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
499458105723Smrgelse $as_nop
4995aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
4996067610f1Smrgfi
499758105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4998067610f1Smrgfi
499958105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
500058105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5001aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5002aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5003067610f1Smrgfi
5004067610f1Smrg
5005aea1d7ffSmrgfound="no"
5006067610f1Smrg
5007aea1d7ffSmrg	if test $found = "no" ; then
5008e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5009aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5010aea1d7ffSmrg		fi
5011067610f1Smrg
5012e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5013aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5014aea1d7ffSmrg		fi
5015067610f1Smrg
5016aea1d7ffSmrg		CFLAGS="$CFLAGS -Wpointer-arith"
5017067610f1Smrg
501858105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
501958105723Smrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5020aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
502158105723Smrg		if eval test \${$cacheid+y}
502258105723Smrgthen :
502358105723Smrg  printf %s "(cached) " >&6
502458105723Smrgelse $as_nop
5025aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026aea1d7ffSmrg/* end confdefs.h.  */
5027aea1d7ffSmrgint i;
5028aea1d7ffSmrgint
502958105723Smrgmain (void)
5030aea1d7ffSmrg{
5031067610f1Smrg
5032aea1d7ffSmrg  ;
5033aea1d7ffSmrg  return 0;
5034aea1d7ffSmrg}
5035aea1d7ffSmrg_ACEOF
503658105723Smrgif ac_fn_c_try_link "$LINENO"
503758105723Smrgthen :
5038aea1d7ffSmrg  eval $cacheid=yes
503958105723Smrgelse $as_nop
5040aea1d7ffSmrg  eval $cacheid=no
5041aea1d7ffSmrgfi
504258105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5043aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
5044aea1d7ffSmrgfi
5045067610f1Smrg
5046067610f1Smrg
5047aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5048067610f1Smrg
5049aea1d7ffSmrg		eval supported=\$$cacheid
505058105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
505158105723Smrgprintf "%s\n" "$supported" >&6; }
5052aea1d7ffSmrg		if test "$supported" = "yes" ; then
5053aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5054aea1d7ffSmrg			found="yes"
5055aea1d7ffSmrg		fi
5056aea1d7ffSmrg	fi
5057067610f1Smrg
5058067610f1Smrg
5059067610f1Smrg
5060067610f1Smrg
5061067610f1Smrg
5062067610f1Smrg
50637e6533d5Smrg
5064067610f1Smrg
5065067610f1Smrg
50667e6533d5Smrg
50677e6533d5Smrg
50687e6533d5Smrg
50697e6533d5Smrg
50707e6533d5Smrg
50717e6533d5Smrg
5072aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
50737e6533d5Smrg
5074aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5075aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
507658105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
507758105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
507858105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
507958105723Smrgthen :
508058105723Smrg  printf %s "(cached) " >&6
508158105723Smrgelse $as_nop
5082aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083aea1d7ffSmrg/* end confdefs.h.  */
5084aea1d7ffSmrgint i;
5085aea1d7ffSmrg_ACEOF
508658105723Smrgif ac_fn_c_try_compile "$LINENO"
508758105723Smrgthen :
5088aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
508958105723Smrgelse $as_nop
5090aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5091aea1d7ffSmrgfi
509258105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5093aea1d7ffSmrgfi
509458105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
509558105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5096aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5097aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5098aea1d7ffSmrgfi
5099aea1d7ffSmrg
5100aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5101aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5102aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5103aea1d7ffSmrg	fi
5104aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
510558105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
510658105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
510758105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
510858105723Smrgthen :
510958105723Smrg  printf %s "(cached) " >&6
511058105723Smrgelse $as_nop
5111aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112aea1d7ffSmrg/* end confdefs.h.  */
5113aea1d7ffSmrgint i;
5114aea1d7ffSmrg_ACEOF
511558105723Smrgif ac_fn_c_try_compile "$LINENO"
511658105723Smrgthen :
5117aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
511858105723Smrgelse $as_nop
5119aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5120aea1d7ffSmrgfi
512158105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5122aea1d7ffSmrgfi
512358105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
512458105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5125aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5126aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5127aea1d7ffSmrgfi
5128aea1d7ffSmrg
5129aea1d7ffSmrgfound="no"
5130aea1d7ffSmrg
5131aea1d7ffSmrg	if test $found = "no" ; then
5132e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5133aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5134aea1d7ffSmrg		fi
5135aea1d7ffSmrg
5136e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5137aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5138aea1d7ffSmrg		fi
5139aea1d7ffSmrg
5140aea1d7ffSmrg		CFLAGS="$CFLAGS -Wmissing-declarations"
5141aea1d7ffSmrg
514258105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
514358105723Smrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5144aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
514558105723Smrg		if eval test \${$cacheid+y}
514658105723Smrgthen :
514758105723Smrg  printf %s "(cached) " >&6
514858105723Smrgelse $as_nop
5149aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150aea1d7ffSmrg/* end confdefs.h.  */
5151aea1d7ffSmrgint i;
5152aea1d7ffSmrgint
515358105723Smrgmain (void)
5154aea1d7ffSmrg{
5155aea1d7ffSmrg
5156aea1d7ffSmrg  ;
5157aea1d7ffSmrg  return 0;
5158aea1d7ffSmrg}
5159aea1d7ffSmrg_ACEOF
516058105723Smrgif ac_fn_c_try_link "$LINENO"
516158105723Smrgthen :
5162aea1d7ffSmrg  eval $cacheid=yes
516358105723Smrgelse $as_nop
5164aea1d7ffSmrg  eval $cacheid=no
5165aea1d7ffSmrgfi
516658105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5167aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
5168aea1d7ffSmrgfi
5169aea1d7ffSmrg
5170aea1d7ffSmrg
5171aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5172aea1d7ffSmrg
5173aea1d7ffSmrg		eval supported=\$$cacheid
517458105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
517558105723Smrgprintf "%s\n" "$supported" >&6; }
5176aea1d7ffSmrg		if test "$supported" = "yes" ; then
5177aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5178aea1d7ffSmrg			found="yes"
5179aea1d7ffSmrg		fi
5180aea1d7ffSmrg	fi
5181aea1d7ffSmrg
5182aea1d7ffSmrg
5183aea1d7ffSmrg
5184aea1d7ffSmrg
5185aea1d7ffSmrg
5186aea1d7ffSmrg
5187aea1d7ffSmrg
5188aea1d7ffSmrg
5189aea1d7ffSmrg
5190aea1d7ffSmrg
5191aea1d7ffSmrg
5192aea1d7ffSmrg
5193aea1d7ffSmrg
5194aea1d7ffSmrg
5195aea1d7ffSmrg
5196aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5197aea1d7ffSmrg
5198aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5199aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
520058105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
520158105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
520258105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
520358105723Smrgthen :
520458105723Smrg  printf %s "(cached) " >&6
520558105723Smrgelse $as_nop
5206aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207aea1d7ffSmrg/* end confdefs.h.  */
5208aea1d7ffSmrgint i;
5209aea1d7ffSmrg_ACEOF
521058105723Smrgif ac_fn_c_try_compile "$LINENO"
521158105723Smrgthen :
5212aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
521358105723Smrgelse $as_nop
5214aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5215aea1d7ffSmrgfi
521658105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5217aea1d7ffSmrgfi
521858105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
521958105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5220aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5221aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5222aea1d7ffSmrgfi
5223aea1d7ffSmrg
5224aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5225aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5226aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5227aea1d7ffSmrg	fi
5228aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
522958105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
523058105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
523158105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
523258105723Smrgthen :
523358105723Smrg  printf %s "(cached) " >&6
523458105723Smrgelse $as_nop
5235aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236aea1d7ffSmrg/* end confdefs.h.  */
5237aea1d7ffSmrgint i;
5238aea1d7ffSmrg_ACEOF
523958105723Smrgif ac_fn_c_try_compile "$LINENO"
524058105723Smrgthen :
5241aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
524258105723Smrgelse $as_nop
5243aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5244aea1d7ffSmrgfi
524558105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5246aea1d7ffSmrgfi
524758105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
524858105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5249aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5250aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5251aea1d7ffSmrgfi
5252aea1d7ffSmrg
5253aea1d7ffSmrgfound="no"
5254aea1d7ffSmrg
5255aea1d7ffSmrg	if test $found = "no" ; then
5256e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5257aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5258aea1d7ffSmrg		fi
5259aea1d7ffSmrg
5260e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5261aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5262aea1d7ffSmrg		fi
5263aea1d7ffSmrg
5264aea1d7ffSmrg		CFLAGS="$CFLAGS -Wformat=2"
5265aea1d7ffSmrg
526658105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
526758105723Smrgprintf %s "checking if $CC supports -Wformat=2... " >&6; }
5268e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__Wformat_2
526958105723Smrg		if eval test \${$cacheid+y}
527058105723Smrgthen :
527158105723Smrg  printf %s "(cached) " >&6
527258105723Smrgelse $as_nop
5273aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274aea1d7ffSmrg/* end confdefs.h.  */
5275aea1d7ffSmrgint i;
5276aea1d7ffSmrgint
527758105723Smrgmain (void)
5278aea1d7ffSmrg{
5279aea1d7ffSmrg
5280aea1d7ffSmrg  ;
5281aea1d7ffSmrg  return 0;
5282aea1d7ffSmrg}
5283aea1d7ffSmrg_ACEOF
528458105723Smrgif ac_fn_c_try_link "$LINENO"
528558105723Smrgthen :
5286aea1d7ffSmrg  eval $cacheid=yes
528758105723Smrgelse $as_nop
5288aea1d7ffSmrg  eval $cacheid=no
5289aea1d7ffSmrgfi
529058105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5291aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
5292aea1d7ffSmrgfi
5293aea1d7ffSmrg
5294aea1d7ffSmrg
5295aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5296aea1d7ffSmrg
5297aea1d7ffSmrg		eval supported=\$$cacheid
529858105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
529958105723Smrgprintf "%s\n" "$supported" >&6; }
5300aea1d7ffSmrg		if test "$supported" = "yes" ; then
5301aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5302aea1d7ffSmrg			found="yes"
5303aea1d7ffSmrg		fi
5304aea1d7ffSmrg	fi
5305aea1d7ffSmrg
5306aea1d7ffSmrg	if test $found = "no" ; then
5307e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5308aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5309aea1d7ffSmrg		fi
5310aea1d7ffSmrg
5311e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5312aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5313aea1d7ffSmrg		fi
5314aea1d7ffSmrg
5315aea1d7ffSmrg		CFLAGS="$CFLAGS -Wformat"
5316aea1d7ffSmrg
531758105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
531858105723Smrgprintf %s "checking if $CC supports -Wformat... " >&6; }
5319aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wformat
532058105723Smrg		if eval test \${$cacheid+y}
532158105723Smrgthen :
532258105723Smrg  printf %s "(cached) " >&6
532358105723Smrgelse $as_nop
5324aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325aea1d7ffSmrg/* end confdefs.h.  */
5326aea1d7ffSmrgint i;
5327aea1d7ffSmrgint
532858105723Smrgmain (void)
5329aea1d7ffSmrg{
5330aea1d7ffSmrg
5331aea1d7ffSmrg  ;
5332aea1d7ffSmrg  return 0;
5333aea1d7ffSmrg}
5334aea1d7ffSmrg_ACEOF
533558105723Smrgif ac_fn_c_try_link "$LINENO"
533658105723Smrgthen :
5337aea1d7ffSmrg  eval $cacheid=yes
533858105723Smrgelse $as_nop
5339aea1d7ffSmrg  eval $cacheid=no
5340aea1d7ffSmrgfi
534158105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5342aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
5343aea1d7ffSmrgfi
5344aea1d7ffSmrg
5345aea1d7ffSmrg
5346aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5347aea1d7ffSmrg
5348aea1d7ffSmrg		eval supported=\$$cacheid
534958105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
535058105723Smrgprintf "%s\n" "$supported" >&6; }
5351aea1d7ffSmrg		if test "$supported" = "yes" ; then
5352aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5353aea1d7ffSmrg			found="yes"
5354aea1d7ffSmrg		fi
5355aea1d7ffSmrg	fi
5356aea1d7ffSmrg
5357aea1d7ffSmrg
5358aea1d7ffSmrg
5359aea1d7ffSmrg
5360aea1d7ffSmrg
5361aea1d7ffSmrg
5362aea1d7ffSmrg
5363aea1d7ffSmrg
5364aea1d7ffSmrg
5365aea1d7ffSmrg
5366aea1d7ffSmrg
5367aea1d7ffSmrg
5368aea1d7ffSmrg
5369aea1d7ffSmrg
5370aea1d7ffSmrg
5371aea1d7ffSmrg
5372aea1d7ffSmrg
5373aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5374aea1d7ffSmrg
5375aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5376aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
537758105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
537858105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
537958105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
538058105723Smrgthen :
538158105723Smrg  printf %s "(cached) " >&6
538258105723Smrgelse $as_nop
5383aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384aea1d7ffSmrg/* end confdefs.h.  */
5385aea1d7ffSmrgint i;
5386aea1d7ffSmrg_ACEOF
538758105723Smrgif ac_fn_c_try_compile "$LINENO"
538858105723Smrgthen :
5389aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
539058105723Smrgelse $as_nop
5391aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5392aea1d7ffSmrgfi
539358105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5394aea1d7ffSmrgfi
539558105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
539658105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5397aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5398aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5399aea1d7ffSmrgfi
5400aea1d7ffSmrg
5401aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5402aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5403aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5404aea1d7ffSmrg	fi
5405aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
540658105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
540758105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
540858105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
540958105723Smrgthen :
541058105723Smrg  printf %s "(cached) " >&6
541158105723Smrgelse $as_nop
5412aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413aea1d7ffSmrg/* end confdefs.h.  */
5414aea1d7ffSmrgint i;
5415aea1d7ffSmrg_ACEOF
541658105723Smrgif ac_fn_c_try_compile "$LINENO"
541758105723Smrgthen :
5418aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
541958105723Smrgelse $as_nop
5420aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5421aea1d7ffSmrgfi
542258105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5423aea1d7ffSmrgfi
542458105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
542558105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5426aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5427aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5428aea1d7ffSmrgfi
5429aea1d7ffSmrg
5430aea1d7ffSmrgfound="no"
5431aea1d7ffSmrg
5432aea1d7ffSmrg	if test $found = "no" ; then
5433e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5434aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5435aea1d7ffSmrg		fi
5436aea1d7ffSmrg
5437e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5438aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5439aea1d7ffSmrg		fi
5440aea1d7ffSmrg
5441aea1d7ffSmrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
5442aea1d7ffSmrg
544358105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
544458105723Smrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5445aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
544658105723Smrg		if eval test \${$cacheid+y}
544758105723Smrgthen :
544858105723Smrg  printf %s "(cached) " >&6
544958105723Smrgelse $as_nop
5450aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451aea1d7ffSmrg/* end confdefs.h.  */
5452aea1d7ffSmrgint i;
5453aea1d7ffSmrgint
545458105723Smrgmain (void)
5455aea1d7ffSmrg{
5456aea1d7ffSmrg
5457aea1d7ffSmrg  ;
5458aea1d7ffSmrg  return 0;
5459aea1d7ffSmrg}
5460aea1d7ffSmrg_ACEOF
546158105723Smrgif ac_fn_c_try_link "$LINENO"
546258105723Smrgthen :
5463aea1d7ffSmrg  eval $cacheid=yes
546458105723Smrgelse $as_nop
5465aea1d7ffSmrg  eval $cacheid=no
5466aea1d7ffSmrgfi
546758105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5468aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
5469aea1d7ffSmrgfi
5470aea1d7ffSmrg
5471aea1d7ffSmrg
5472aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5473aea1d7ffSmrg
5474aea1d7ffSmrg		eval supported=\$$cacheid
547558105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
547658105723Smrgprintf "%s\n" "$supported" >&6; }
5477aea1d7ffSmrg		if test "$supported" = "yes" ; then
5478aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5479aea1d7ffSmrg			found="yes"
5480aea1d7ffSmrg		fi
5481aea1d7ffSmrg	fi
5482aea1d7ffSmrg
5483aea1d7ffSmrg
5484aea1d7ffSmrg
5485aea1d7ffSmrg
5486aea1d7ffSmrg
5487aea1d7ffSmrg
5488aea1d7ffSmrg
5489aea1d7ffSmrg
5490aea1d7ffSmrg
5491aea1d7ffSmrg
5492aea1d7ffSmrg
5493aea1d7ffSmrg
5494aea1d7ffSmrg
5495aea1d7ffSmrg
5496aea1d7ffSmrg
5497aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5498aea1d7ffSmrg
5499aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5500aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
550158105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
550258105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
550358105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
550458105723Smrgthen :
550558105723Smrg  printf %s "(cached) " >&6
550658105723Smrgelse $as_nop
5507aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508aea1d7ffSmrg/* end confdefs.h.  */
5509aea1d7ffSmrgint i;
5510aea1d7ffSmrg_ACEOF
551158105723Smrgif ac_fn_c_try_compile "$LINENO"
551258105723Smrgthen :
5513aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
551458105723Smrgelse $as_nop
5515aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5516aea1d7ffSmrgfi
551758105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5518aea1d7ffSmrgfi
551958105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
552058105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5521aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5522aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5523aea1d7ffSmrgfi
5524aea1d7ffSmrg
5525aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5526aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5527aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5528aea1d7ffSmrg	fi
5529aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
553058105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
553158105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
553258105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
553358105723Smrgthen :
553458105723Smrg  printf %s "(cached) " >&6
553558105723Smrgelse $as_nop
5536aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537aea1d7ffSmrg/* end confdefs.h.  */
5538aea1d7ffSmrgint i;
5539aea1d7ffSmrg_ACEOF
554058105723Smrgif ac_fn_c_try_compile "$LINENO"
554158105723Smrgthen :
5542aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
554358105723Smrgelse $as_nop
5544aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5545aea1d7ffSmrgfi
554658105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5547aea1d7ffSmrgfi
554858105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
554958105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5550aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5551aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5552aea1d7ffSmrgfi
5553aea1d7ffSmrg
5554aea1d7ffSmrgfound="no"
5555aea1d7ffSmrg
5556aea1d7ffSmrg	if test $found = "no" ; then
5557e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5558aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5559aea1d7ffSmrg		fi
5560aea1d7ffSmrg
5561e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5562aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5563aea1d7ffSmrg		fi
5564aea1d7ffSmrg
5565aea1d7ffSmrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
5566aea1d7ffSmrg
556758105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
556858105723Smrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5569aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
557058105723Smrg		if eval test \${$cacheid+y}
557158105723Smrgthen :
557258105723Smrg  printf %s "(cached) " >&6
557358105723Smrgelse $as_nop
5574aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575aea1d7ffSmrg/* end confdefs.h.  */
5576aea1d7ffSmrgint i;
5577aea1d7ffSmrgint
557858105723Smrgmain (void)
5579aea1d7ffSmrg{
5580aea1d7ffSmrg
5581aea1d7ffSmrg  ;
5582aea1d7ffSmrg  return 0;
5583aea1d7ffSmrg}
5584aea1d7ffSmrg_ACEOF
558558105723Smrgif ac_fn_c_try_link "$LINENO"
558658105723Smrgthen :
5587aea1d7ffSmrg  eval $cacheid=yes
558858105723Smrgelse $as_nop
5589aea1d7ffSmrg  eval $cacheid=no
5590aea1d7ffSmrgfi
559158105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5592aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
5593aea1d7ffSmrgfi
5594aea1d7ffSmrg
5595aea1d7ffSmrg
5596aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5597aea1d7ffSmrg
5598aea1d7ffSmrg		eval supported=\$$cacheid
559958105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
560058105723Smrgprintf "%s\n" "$supported" >&6; }
5601aea1d7ffSmrg		if test "$supported" = "yes" ; then
5602aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5603aea1d7ffSmrg			found="yes"
5604aea1d7ffSmrg		fi
5605aea1d7ffSmrg	fi
5606aea1d7ffSmrg
5607aea1d7ffSmrg
5608aea1d7ffSmrg
5609aea1d7ffSmrg
5610aea1d7ffSmrg
5611aea1d7ffSmrg
5612aea1d7ffSmrg
5613aea1d7ffSmrg
5614aea1d7ffSmrg
5615aea1d7ffSmrg
5616aea1d7ffSmrg
5617aea1d7ffSmrg
5618aea1d7ffSmrg
5619aea1d7ffSmrg
5620aea1d7ffSmrg
5621aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5622aea1d7ffSmrg
5623aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5624aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
562558105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
562658105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
562758105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
562858105723Smrgthen :
562958105723Smrg  printf %s "(cached) " >&6
563058105723Smrgelse $as_nop
5631aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632aea1d7ffSmrg/* end confdefs.h.  */
5633aea1d7ffSmrgint i;
5634aea1d7ffSmrg_ACEOF
563558105723Smrgif ac_fn_c_try_compile "$LINENO"
563658105723Smrgthen :
5637aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
563858105723Smrgelse $as_nop
5639aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5640aea1d7ffSmrgfi
564158105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5642aea1d7ffSmrgfi
564358105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
564458105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5645aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5646aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5647aea1d7ffSmrgfi
5648aea1d7ffSmrg
5649aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5650aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5651aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5652aea1d7ffSmrg	fi
5653aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
565458105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
565558105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
565658105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
565758105723Smrgthen :
565858105723Smrg  printf %s "(cached) " >&6
565958105723Smrgelse $as_nop
5660aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661aea1d7ffSmrg/* end confdefs.h.  */
5662aea1d7ffSmrgint i;
5663aea1d7ffSmrg_ACEOF
566458105723Smrgif ac_fn_c_try_compile "$LINENO"
566558105723Smrgthen :
5666aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
566758105723Smrgelse $as_nop
5668aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5669aea1d7ffSmrgfi
567058105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5671aea1d7ffSmrgfi
567258105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
567358105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5674aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5675aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5676aea1d7ffSmrgfi
5677aea1d7ffSmrg
5678aea1d7ffSmrgfound="no"
5679aea1d7ffSmrg
5680aea1d7ffSmrg	if test $found = "no" ; then
5681e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5682aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5683aea1d7ffSmrg		fi
5684aea1d7ffSmrg
5685e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5686aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5687aea1d7ffSmrg		fi
5688aea1d7ffSmrg
5689aea1d7ffSmrg		CFLAGS="$CFLAGS -Wnested-externs"
5690aea1d7ffSmrg
569158105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
569258105723Smrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; }
5693aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wnested_externs
569458105723Smrg		if eval test \${$cacheid+y}
569558105723Smrgthen :
569658105723Smrg  printf %s "(cached) " >&6
569758105723Smrgelse $as_nop
5698aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699aea1d7ffSmrg/* end confdefs.h.  */
5700aea1d7ffSmrgint i;
5701aea1d7ffSmrgint
570258105723Smrgmain (void)
5703aea1d7ffSmrg{
5704aea1d7ffSmrg
5705aea1d7ffSmrg  ;
5706aea1d7ffSmrg  return 0;
5707aea1d7ffSmrg}
5708aea1d7ffSmrg_ACEOF
570958105723Smrgif ac_fn_c_try_link "$LINENO"
571058105723Smrgthen :
5711aea1d7ffSmrg  eval $cacheid=yes
571258105723Smrgelse $as_nop
5713aea1d7ffSmrg  eval $cacheid=no
5714aea1d7ffSmrgfi
571558105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5716aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
5717aea1d7ffSmrgfi
5718aea1d7ffSmrg
5719aea1d7ffSmrg
5720aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5721aea1d7ffSmrg
5722aea1d7ffSmrg		eval supported=\$$cacheid
572358105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
572458105723Smrgprintf "%s\n" "$supported" >&6; }
5725aea1d7ffSmrg		if test "$supported" = "yes" ; then
5726aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5727aea1d7ffSmrg			found="yes"
5728aea1d7ffSmrg		fi
5729aea1d7ffSmrg	fi
5730aea1d7ffSmrg
5731aea1d7ffSmrg
5732aea1d7ffSmrg
5733aea1d7ffSmrg
5734aea1d7ffSmrg
5735aea1d7ffSmrg
5736aea1d7ffSmrg
5737aea1d7ffSmrg
5738aea1d7ffSmrg
5739aea1d7ffSmrg
5740aea1d7ffSmrg
5741aea1d7ffSmrg
5742aea1d7ffSmrg
5743aea1d7ffSmrg
5744aea1d7ffSmrg
5745aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5746aea1d7ffSmrg
5747aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5748aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
574958105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
575058105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
575158105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
575258105723Smrgthen :
575358105723Smrg  printf %s "(cached) " >&6
575458105723Smrgelse $as_nop
5755aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756aea1d7ffSmrg/* end confdefs.h.  */
5757aea1d7ffSmrgint i;
5758aea1d7ffSmrg_ACEOF
575958105723Smrgif ac_fn_c_try_compile "$LINENO"
576058105723Smrgthen :
5761aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
576258105723Smrgelse $as_nop
5763aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5764aea1d7ffSmrgfi
576558105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5766aea1d7ffSmrgfi
576758105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
576858105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5769aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5770aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5771aea1d7ffSmrgfi
5772aea1d7ffSmrg
5773aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5774aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5775aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5776aea1d7ffSmrg	fi
5777aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
577858105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
577958105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
578058105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
578158105723Smrgthen :
578258105723Smrg  printf %s "(cached) " >&6
578358105723Smrgelse $as_nop
5784aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785aea1d7ffSmrg/* end confdefs.h.  */
5786aea1d7ffSmrgint i;
5787aea1d7ffSmrg_ACEOF
578858105723Smrgif ac_fn_c_try_compile "$LINENO"
578958105723Smrgthen :
5790aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
579158105723Smrgelse $as_nop
5792aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5793aea1d7ffSmrgfi
579458105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5795aea1d7ffSmrgfi
579658105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
579758105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5798aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5799aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5800aea1d7ffSmrgfi
5801aea1d7ffSmrg
5802aea1d7ffSmrgfound="no"
5803aea1d7ffSmrg
5804aea1d7ffSmrg	if test $found = "no" ; then
5805e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5806aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5807aea1d7ffSmrg		fi
5808aea1d7ffSmrg
5809e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5810aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5811aea1d7ffSmrg		fi
5812aea1d7ffSmrg
5813aea1d7ffSmrg		CFLAGS="$CFLAGS -Wbad-function-cast"
5814aea1d7ffSmrg
581558105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
581658105723Smrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5817aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
581858105723Smrg		if eval test \${$cacheid+y}
581958105723Smrgthen :
582058105723Smrg  printf %s "(cached) " >&6
582158105723Smrgelse $as_nop
5822aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823aea1d7ffSmrg/* end confdefs.h.  */
5824aea1d7ffSmrgint i;
5825aea1d7ffSmrgint
582658105723Smrgmain (void)
5827aea1d7ffSmrg{
5828aea1d7ffSmrg
5829aea1d7ffSmrg  ;
5830aea1d7ffSmrg  return 0;
5831aea1d7ffSmrg}
5832aea1d7ffSmrg_ACEOF
583358105723Smrgif ac_fn_c_try_link "$LINENO"
583458105723Smrgthen :
5835aea1d7ffSmrg  eval $cacheid=yes
583658105723Smrgelse $as_nop
5837aea1d7ffSmrg  eval $cacheid=no
5838aea1d7ffSmrgfi
583958105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5840aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
5841aea1d7ffSmrgfi
5842aea1d7ffSmrg
5843aea1d7ffSmrg
5844aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5845aea1d7ffSmrg
5846aea1d7ffSmrg		eval supported=\$$cacheid
584758105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
584858105723Smrgprintf "%s\n" "$supported" >&6; }
5849aea1d7ffSmrg		if test "$supported" = "yes" ; then
5850aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5851aea1d7ffSmrg			found="yes"
5852aea1d7ffSmrg		fi
5853aea1d7ffSmrg	fi
5854aea1d7ffSmrg
5855aea1d7ffSmrg
5856aea1d7ffSmrg
5857aea1d7ffSmrg
5858aea1d7ffSmrg
5859aea1d7ffSmrg
5860aea1d7ffSmrg
5861aea1d7ffSmrg
5862aea1d7ffSmrg
5863aea1d7ffSmrg
5864aea1d7ffSmrg
5865aea1d7ffSmrg
5866aea1d7ffSmrg
5867aea1d7ffSmrg
5868aea1d7ffSmrg
5869aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5870aea1d7ffSmrg
5871aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5872aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
587358105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
587458105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
587558105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
587658105723Smrgthen :
587758105723Smrg  printf %s "(cached) " >&6
587858105723Smrgelse $as_nop
5879aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880aea1d7ffSmrg/* end confdefs.h.  */
5881aea1d7ffSmrgint i;
5882aea1d7ffSmrg_ACEOF
588358105723Smrgif ac_fn_c_try_compile "$LINENO"
588458105723Smrgthen :
5885aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
588658105723Smrgelse $as_nop
5887aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5888aea1d7ffSmrgfi
588958105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5890aea1d7ffSmrgfi
589158105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
589258105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5893aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5894aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5895aea1d7ffSmrgfi
5896aea1d7ffSmrg
5897aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5898aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5899aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5900aea1d7ffSmrg	fi
5901aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
590258105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
590358105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
590458105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
590558105723Smrgthen :
590658105723Smrg  printf %s "(cached) " >&6
590758105723Smrgelse $as_nop
5908aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909aea1d7ffSmrg/* end confdefs.h.  */
5910aea1d7ffSmrgint i;
5911aea1d7ffSmrg_ACEOF
591258105723Smrgif ac_fn_c_try_compile "$LINENO"
591358105723Smrgthen :
5914aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
591558105723Smrgelse $as_nop
5916aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5917aea1d7ffSmrgfi
591858105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5919aea1d7ffSmrgfi
592058105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
592158105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5922aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5923aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5924aea1d7ffSmrgfi
5925aea1d7ffSmrg
5926aea1d7ffSmrgfound="no"
5927aea1d7ffSmrg
5928aea1d7ffSmrg	if test $found = "no" ; then
5929e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5930aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5931aea1d7ffSmrg		fi
5932aea1d7ffSmrg
5933e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5934aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5935aea1d7ffSmrg		fi
5936aea1d7ffSmrg
5937aea1d7ffSmrg		CFLAGS="$CFLAGS -Wold-style-definition"
5938aea1d7ffSmrg
593958105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
594058105723Smrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5941aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
594258105723Smrg		if eval test \${$cacheid+y}
594358105723Smrgthen :
594458105723Smrg  printf %s "(cached) " >&6
594558105723Smrgelse $as_nop
5946aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947aea1d7ffSmrg/* end confdefs.h.  */
5948aea1d7ffSmrgint i;
5949aea1d7ffSmrgint
595058105723Smrgmain (void)
5951aea1d7ffSmrg{
5952aea1d7ffSmrg
5953aea1d7ffSmrg  ;
5954aea1d7ffSmrg  return 0;
5955aea1d7ffSmrg}
5956aea1d7ffSmrg_ACEOF
595758105723Smrgif ac_fn_c_try_link "$LINENO"
595858105723Smrgthen :
5959aea1d7ffSmrg  eval $cacheid=yes
596058105723Smrgelse $as_nop
5961aea1d7ffSmrg  eval $cacheid=no
5962aea1d7ffSmrgfi
596358105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5964aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
5965aea1d7ffSmrgfi
5966aea1d7ffSmrg
5967aea1d7ffSmrg
5968aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5969aea1d7ffSmrg
5970aea1d7ffSmrg		eval supported=\$$cacheid
597158105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
597258105723Smrgprintf "%s\n" "$supported" >&6; }
5973aea1d7ffSmrg		if test "$supported" = "yes" ; then
5974aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5975aea1d7ffSmrg			found="yes"
5976aea1d7ffSmrg		fi
5977aea1d7ffSmrg	fi
5978aea1d7ffSmrg
5979e7fdea5fSmrg	if test $found = "no" ; then
5980e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5981e7fdea5fSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5982e7fdea5fSmrg		fi
5983e7fdea5fSmrg
5984e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5985e7fdea5fSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5986e7fdea5fSmrg		fi
5987e7fdea5fSmrg
5988e7fdea5fSmrg		CFLAGS="$CFLAGS -fd"
5989e7fdea5fSmrg
599058105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
599158105723Smrgprintf %s "checking if $CC supports -fd... " >&6; }
5992e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__fd
599358105723Smrg		if eval test \${$cacheid+y}
599458105723Smrgthen :
599558105723Smrg  printf %s "(cached) " >&6
599658105723Smrgelse $as_nop
5997e7fdea5fSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998e7fdea5fSmrg/* end confdefs.h.  */
5999e7fdea5fSmrgint i;
6000e7fdea5fSmrgint
600158105723Smrgmain (void)
6002e7fdea5fSmrg{
6003e7fdea5fSmrg
6004e7fdea5fSmrg  ;
6005e7fdea5fSmrg  return 0;
6006e7fdea5fSmrg}
6007e7fdea5fSmrg_ACEOF
600858105723Smrgif ac_fn_c_try_link "$LINENO"
600958105723Smrgthen :
6010e7fdea5fSmrg  eval $cacheid=yes
601158105723Smrgelse $as_nop
6012e7fdea5fSmrg  eval $cacheid=no
6013e7fdea5fSmrgfi
601458105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6015e7fdea5fSmrg    conftest$ac_exeext conftest.$ac_ext
6016e7fdea5fSmrgfi
6017e7fdea5fSmrg
6018e7fdea5fSmrg
6019e7fdea5fSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6020e7fdea5fSmrg
6021e7fdea5fSmrg		eval supported=\$$cacheid
602258105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
602358105723Smrgprintf "%s\n" "$supported" >&6; }
6024e7fdea5fSmrg		if test "$supported" = "yes" ; then
6025e7fdea5fSmrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
6026e7fdea5fSmrg			found="yes"
6027e7fdea5fSmrg		fi
6028e7fdea5fSmrg	fi
6029e7fdea5fSmrg
6030aea1d7ffSmrg
6031aea1d7ffSmrg
6032aea1d7ffSmrg
6033aea1d7ffSmrg
6034aea1d7ffSmrg
6035aea1d7ffSmrg
6036aea1d7ffSmrg
6037aea1d7ffSmrg
6038aea1d7ffSmrg
6039aea1d7ffSmrg
6040aea1d7ffSmrg
6041aea1d7ffSmrg
6042aea1d7ffSmrg
6043aea1d7ffSmrg
6044aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6045aea1d7ffSmrg
6046aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6047aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
604858105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
604958105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
605058105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
605158105723Smrgthen :
605258105723Smrg  printf %s "(cached) " >&6
605358105723Smrgelse $as_nop
6054aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055aea1d7ffSmrg/* end confdefs.h.  */
6056aea1d7ffSmrgint i;
6057aea1d7ffSmrg_ACEOF
605858105723Smrgif ac_fn_c_try_compile "$LINENO"
605958105723Smrgthen :
6060aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
606158105723Smrgelse $as_nop
6062aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6063aea1d7ffSmrgfi
606458105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6065aea1d7ffSmrgfi
606658105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
606758105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6068aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6069aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6070aea1d7ffSmrgfi
6071aea1d7ffSmrg
6072aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6073aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6074aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6075aea1d7ffSmrg	fi
6076aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
607758105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
607858105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
607958105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
608058105723Smrgthen :
608158105723Smrg  printf %s "(cached) " >&6
608258105723Smrgelse $as_nop
6083aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084aea1d7ffSmrg/* end confdefs.h.  */
6085aea1d7ffSmrgint i;
6086aea1d7ffSmrg_ACEOF
608758105723Smrgif ac_fn_c_try_compile "$LINENO"
608858105723Smrgthen :
6089aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
609058105723Smrgelse $as_nop
6091aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6092aea1d7ffSmrgfi
609358105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6094aea1d7ffSmrgfi
609558105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
609658105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6097aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6098aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6099aea1d7ffSmrgfi
6100aea1d7ffSmrg
6101aea1d7ffSmrgfound="no"
6102aea1d7ffSmrg
6103aea1d7ffSmrg	if test $found = "no" ; then
6104e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6105aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6106aea1d7ffSmrg		fi
6107aea1d7ffSmrg
6108e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6109aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6110aea1d7ffSmrg		fi
6111aea1d7ffSmrg
6112aea1d7ffSmrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6113aea1d7ffSmrg
611458105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
611558105723Smrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6116aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
611758105723Smrg		if eval test \${$cacheid+y}
611858105723Smrgthen :
611958105723Smrg  printf %s "(cached) " >&6
612058105723Smrgelse $as_nop
6121aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122aea1d7ffSmrg/* end confdefs.h.  */
6123aea1d7ffSmrgint i;
6124aea1d7ffSmrgint
612558105723Smrgmain (void)
6126aea1d7ffSmrg{
6127aea1d7ffSmrg
6128aea1d7ffSmrg  ;
6129aea1d7ffSmrg  return 0;
6130aea1d7ffSmrg}
6131aea1d7ffSmrg_ACEOF
613258105723Smrgif ac_fn_c_try_link "$LINENO"
613358105723Smrgthen :
6134aea1d7ffSmrg  eval $cacheid=yes
613558105723Smrgelse $as_nop
6136aea1d7ffSmrg  eval $cacheid=no
6137aea1d7ffSmrgfi
613858105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6139aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
6140aea1d7ffSmrgfi
6141aea1d7ffSmrg
6142aea1d7ffSmrg
6143aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6144aea1d7ffSmrg
6145aea1d7ffSmrg		eval supported=\$$cacheid
614658105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
614758105723Smrgprintf "%s\n" "$supported" >&6; }
6148aea1d7ffSmrg		if test "$supported" = "yes" ; then
6149aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6150aea1d7ffSmrg			found="yes"
6151aea1d7ffSmrg		fi
6152aea1d7ffSmrg	fi
6153aea1d7ffSmrg
6154aea1d7ffSmrg
6155aea1d7ffSmrg
6156aea1d7ffSmrg
6157aea1d7ffSmrg
6158aea1d7ffSmrg# This chunk adds additional warnings that could catch undesired effects.
6159aea1d7ffSmrg
6160aea1d7ffSmrg
6161aea1d7ffSmrg
6162aea1d7ffSmrg
6163aea1d7ffSmrg
6164aea1d7ffSmrg
6165aea1d7ffSmrg
6166aea1d7ffSmrg
6167aea1d7ffSmrg
6168aea1d7ffSmrg
6169aea1d7ffSmrg
6170aea1d7ffSmrg
6171aea1d7ffSmrg
6172aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6173aea1d7ffSmrg
6174aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6175aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
617658105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
617758105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
617858105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
617958105723Smrgthen :
618058105723Smrg  printf %s "(cached) " >&6
618158105723Smrgelse $as_nop
6182aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183aea1d7ffSmrg/* end confdefs.h.  */
6184aea1d7ffSmrgint i;
6185aea1d7ffSmrg_ACEOF
618658105723Smrgif ac_fn_c_try_compile "$LINENO"
618758105723Smrgthen :
6188aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
618958105723Smrgelse $as_nop
6190aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6191aea1d7ffSmrgfi
619258105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6193aea1d7ffSmrgfi
619458105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
619558105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6196aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6197aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6198aea1d7ffSmrgfi
6199aea1d7ffSmrg
6200aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6201aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6202aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6203aea1d7ffSmrg	fi
6204aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
620558105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
620658105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
620758105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
620858105723Smrgthen :
620958105723Smrg  printf %s "(cached) " >&6
621058105723Smrgelse $as_nop
6211aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212aea1d7ffSmrg/* end confdefs.h.  */
6213aea1d7ffSmrgint i;
6214aea1d7ffSmrg_ACEOF
621558105723Smrgif ac_fn_c_try_compile "$LINENO"
621658105723Smrgthen :
6217aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
621858105723Smrgelse $as_nop
6219aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6220aea1d7ffSmrgfi
622158105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6222aea1d7ffSmrgfi
622358105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
622458105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6225aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6226aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6227aea1d7ffSmrgfi
6228aea1d7ffSmrg
6229aea1d7ffSmrgfound="no"
6230aea1d7ffSmrg
6231aea1d7ffSmrg	if test $found = "no" ; then
6232e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6233aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6234aea1d7ffSmrg		fi
6235aea1d7ffSmrg
6236e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6237aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6238aea1d7ffSmrg		fi
6239aea1d7ffSmrg
6240aea1d7ffSmrg		CFLAGS="$CFLAGS -Wunused"
6241aea1d7ffSmrg
624258105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
624358105723Smrgprintf %s "checking if $CC supports -Wunused... " >&6; }
6244aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wunused
624558105723Smrg		if eval test \${$cacheid+y}
624658105723Smrgthen :
624758105723Smrg  printf %s "(cached) " >&6
624858105723Smrgelse $as_nop
6249aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250aea1d7ffSmrg/* end confdefs.h.  */
6251aea1d7ffSmrgint i;
6252aea1d7ffSmrgint
625358105723Smrgmain (void)
6254aea1d7ffSmrg{
6255aea1d7ffSmrg
6256aea1d7ffSmrg  ;
6257aea1d7ffSmrg  return 0;
6258aea1d7ffSmrg}
6259aea1d7ffSmrg_ACEOF
626058105723Smrgif ac_fn_c_try_link "$LINENO"
626158105723Smrgthen :
6262aea1d7ffSmrg  eval $cacheid=yes
626358105723Smrgelse $as_nop
6264aea1d7ffSmrg  eval $cacheid=no
6265aea1d7ffSmrgfi
626658105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6267aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
6268aea1d7ffSmrgfi
6269aea1d7ffSmrg
6270aea1d7ffSmrg
6271aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6272aea1d7ffSmrg
6273aea1d7ffSmrg		eval supported=\$$cacheid
627458105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
627558105723Smrgprintf "%s\n" "$supported" >&6; }
6276aea1d7ffSmrg		if test "$supported" = "yes" ; then
6277aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6278aea1d7ffSmrg			found="yes"
6279aea1d7ffSmrg		fi
6280aea1d7ffSmrg	fi
6281aea1d7ffSmrg
6282aea1d7ffSmrg
6283aea1d7ffSmrg
6284aea1d7ffSmrg
6285aea1d7ffSmrg
6286aea1d7ffSmrg
6287aea1d7ffSmrg
6288aea1d7ffSmrg
6289aea1d7ffSmrg
6290aea1d7ffSmrg
6291aea1d7ffSmrg
6292aea1d7ffSmrg
6293aea1d7ffSmrg
6294aea1d7ffSmrg
6295aea1d7ffSmrg
6296aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6297aea1d7ffSmrg
6298aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6299aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
630058105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
630158105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
630258105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
630358105723Smrgthen :
630458105723Smrg  printf %s "(cached) " >&6
630558105723Smrgelse $as_nop
6306aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307aea1d7ffSmrg/* end confdefs.h.  */
6308aea1d7ffSmrgint i;
6309aea1d7ffSmrg_ACEOF
631058105723Smrgif ac_fn_c_try_compile "$LINENO"
631158105723Smrgthen :
6312aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
631358105723Smrgelse $as_nop
6314aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6315aea1d7ffSmrgfi
631658105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6317aea1d7ffSmrgfi
631858105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
631958105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6320aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6321aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6322aea1d7ffSmrgfi
6323aea1d7ffSmrg
6324aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6325aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6326aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6327aea1d7ffSmrg	fi
6328aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
632958105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
633058105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
633158105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
633258105723Smrgthen :
633358105723Smrg  printf %s "(cached) " >&6
633458105723Smrgelse $as_nop
6335aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336aea1d7ffSmrg/* end confdefs.h.  */
6337aea1d7ffSmrgint i;
6338aea1d7ffSmrg_ACEOF
633958105723Smrgif ac_fn_c_try_compile "$LINENO"
634058105723Smrgthen :
6341aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
634258105723Smrgelse $as_nop
6343aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6344aea1d7ffSmrgfi
634558105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6346aea1d7ffSmrgfi
634758105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
634858105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6349aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6350aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6351aea1d7ffSmrgfi
6352aea1d7ffSmrg
6353aea1d7ffSmrgfound="no"
6354aea1d7ffSmrg
6355aea1d7ffSmrg	if test $found = "no" ; then
6356e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6357aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358aea1d7ffSmrg		fi
6359aea1d7ffSmrg
6360e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6361aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6362aea1d7ffSmrg		fi
6363aea1d7ffSmrg
6364aea1d7ffSmrg		CFLAGS="$CFLAGS -Wuninitialized"
6365aea1d7ffSmrg
636658105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
636758105723Smrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; }
6368aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wuninitialized
636958105723Smrg		if eval test \${$cacheid+y}
637058105723Smrgthen :
637158105723Smrg  printf %s "(cached) " >&6
637258105723Smrgelse $as_nop
6373aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374aea1d7ffSmrg/* end confdefs.h.  */
6375aea1d7ffSmrgint i;
6376aea1d7ffSmrgint
637758105723Smrgmain (void)
6378aea1d7ffSmrg{
6379aea1d7ffSmrg
6380aea1d7ffSmrg  ;
6381aea1d7ffSmrg  return 0;
6382aea1d7ffSmrg}
6383aea1d7ffSmrg_ACEOF
638458105723Smrgif ac_fn_c_try_link "$LINENO"
638558105723Smrgthen :
6386aea1d7ffSmrg  eval $cacheid=yes
638758105723Smrgelse $as_nop
6388aea1d7ffSmrg  eval $cacheid=no
6389aea1d7ffSmrgfi
639058105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6391aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
6392aea1d7ffSmrgfi
6393aea1d7ffSmrg
6394aea1d7ffSmrg
6395aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6396aea1d7ffSmrg
6397aea1d7ffSmrg		eval supported=\$$cacheid
639858105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
639958105723Smrgprintf "%s\n" "$supported" >&6; }
6400aea1d7ffSmrg		if test "$supported" = "yes" ; then
6401aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6402aea1d7ffSmrg			found="yes"
6403aea1d7ffSmrg		fi
6404aea1d7ffSmrg	fi
6405aea1d7ffSmrg
6406aea1d7ffSmrg
6407aea1d7ffSmrg
6408aea1d7ffSmrg
6409aea1d7ffSmrg
6410aea1d7ffSmrg
6411aea1d7ffSmrg
6412aea1d7ffSmrg
6413aea1d7ffSmrg
6414aea1d7ffSmrg
6415aea1d7ffSmrg
6416aea1d7ffSmrg
6417aea1d7ffSmrg
6418aea1d7ffSmrg
6419aea1d7ffSmrg
6420aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6421aea1d7ffSmrg
6422aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6423aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
642458105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
642558105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
642658105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
642758105723Smrgthen :
642858105723Smrg  printf %s "(cached) " >&6
642958105723Smrgelse $as_nop
6430aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431aea1d7ffSmrg/* end confdefs.h.  */
6432aea1d7ffSmrgint i;
6433aea1d7ffSmrg_ACEOF
643458105723Smrgif ac_fn_c_try_compile "$LINENO"
643558105723Smrgthen :
6436aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
643758105723Smrgelse $as_nop
6438aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6439aea1d7ffSmrgfi
644058105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6441aea1d7ffSmrgfi
644258105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
644358105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6444aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6445aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6446aea1d7ffSmrgfi
6447aea1d7ffSmrg
6448aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6449aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6450aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6451aea1d7ffSmrg	fi
6452aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
645358105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
645458105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
645558105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
645658105723Smrgthen :
645758105723Smrg  printf %s "(cached) " >&6
645858105723Smrgelse $as_nop
6459aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460aea1d7ffSmrg/* end confdefs.h.  */
6461aea1d7ffSmrgint i;
6462aea1d7ffSmrg_ACEOF
646358105723Smrgif ac_fn_c_try_compile "$LINENO"
646458105723Smrgthen :
6465aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
646658105723Smrgelse $as_nop
6467aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6468aea1d7ffSmrgfi
646958105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6470aea1d7ffSmrgfi
647158105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
647258105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6473aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6474aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6475aea1d7ffSmrgfi
6476aea1d7ffSmrg
6477aea1d7ffSmrgfound="no"
6478aea1d7ffSmrg
6479aea1d7ffSmrg	if test $found = "no" ; then
6480e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6481aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6482aea1d7ffSmrg		fi
6483aea1d7ffSmrg
6484e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6485aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6486aea1d7ffSmrg		fi
6487aea1d7ffSmrg
6488aea1d7ffSmrg		CFLAGS="$CFLAGS -Wshadow"
6489aea1d7ffSmrg
649058105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
649158105723Smrgprintf %s "checking if $CC supports -Wshadow... " >&6; }
6492aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wshadow
649358105723Smrg		if eval test \${$cacheid+y}
649458105723Smrgthen :
649558105723Smrg  printf %s "(cached) " >&6
649658105723Smrgelse $as_nop
6497aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498aea1d7ffSmrg/* end confdefs.h.  */
6499aea1d7ffSmrgint i;
6500aea1d7ffSmrgint
650158105723Smrgmain (void)
6502aea1d7ffSmrg{
6503aea1d7ffSmrg
6504aea1d7ffSmrg  ;
6505aea1d7ffSmrg  return 0;
6506aea1d7ffSmrg}
6507aea1d7ffSmrg_ACEOF
650858105723Smrgif ac_fn_c_try_link "$LINENO"
650958105723Smrgthen :
6510aea1d7ffSmrg  eval $cacheid=yes
651158105723Smrgelse $as_nop
6512aea1d7ffSmrg  eval $cacheid=no
6513aea1d7ffSmrgfi
651458105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6515aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
6516aea1d7ffSmrgfi
6517aea1d7ffSmrg
6518aea1d7ffSmrg
6519aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6520aea1d7ffSmrg
6521aea1d7ffSmrg		eval supported=\$$cacheid
652258105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
652358105723Smrgprintf "%s\n" "$supported" >&6; }
6524aea1d7ffSmrg		if test "$supported" = "yes" ; then
6525aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6526aea1d7ffSmrg			found="yes"
6527aea1d7ffSmrg		fi
6528aea1d7ffSmrg	fi
6529aea1d7ffSmrg
6530aea1d7ffSmrg
6531aea1d7ffSmrg
6532aea1d7ffSmrg
6533aea1d7ffSmrg
6534aea1d7ffSmrg
6535aea1d7ffSmrg
6536aea1d7ffSmrg
6537aea1d7ffSmrg
6538aea1d7ffSmrg
6539aea1d7ffSmrg
6540aea1d7ffSmrg
6541aea1d7ffSmrg
6542aea1d7ffSmrg
6543aea1d7ffSmrg
6544aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6545aea1d7ffSmrg
6546aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6547aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
654858105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
654958105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
655058105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
655158105723Smrgthen :
655258105723Smrg  printf %s "(cached) " >&6
655358105723Smrgelse $as_nop
6554aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555aea1d7ffSmrg/* end confdefs.h.  */
6556aea1d7ffSmrgint i;
6557aea1d7ffSmrg_ACEOF
655858105723Smrgif ac_fn_c_try_compile "$LINENO"
655958105723Smrgthen :
6560aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
656158105723Smrgelse $as_nop
6562aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6563aea1d7ffSmrgfi
656458105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6565aea1d7ffSmrgfi
656658105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
656758105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6568aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6569aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6570aea1d7ffSmrgfi
6571aea1d7ffSmrg
6572aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6573aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6574aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6575aea1d7ffSmrg	fi
6576aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
657758105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
657858105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
657958105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
658058105723Smrgthen :
658158105723Smrg  printf %s "(cached) " >&6
658258105723Smrgelse $as_nop
6583aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584aea1d7ffSmrg/* end confdefs.h.  */
6585aea1d7ffSmrgint i;
6586aea1d7ffSmrg_ACEOF
658758105723Smrgif ac_fn_c_try_compile "$LINENO"
658858105723Smrgthen :
6589aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
659058105723Smrgelse $as_nop
6591aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6592aea1d7ffSmrgfi
659358105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6594aea1d7ffSmrgfi
659558105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
659658105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6597aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6598aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6599aea1d7ffSmrgfi
6600aea1d7ffSmrg
6601aea1d7ffSmrgfound="no"
6602aea1d7ffSmrg
6603aea1d7ffSmrg	if test $found = "no" ; then
6604e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6605aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6606aea1d7ffSmrg		fi
6607aea1d7ffSmrg
6608e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6609aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6610aea1d7ffSmrg		fi
6611aea1d7ffSmrg
6612e7fdea5fSmrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
6613aea1d7ffSmrg
661458105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
661558105723Smrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6616e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
661758105723Smrg		if eval test \${$cacheid+y}
661858105723Smrgthen :
661958105723Smrg  printf %s "(cached) " >&6
662058105723Smrgelse $as_nop
6621aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622aea1d7ffSmrg/* end confdefs.h.  */
6623aea1d7ffSmrgint i;
6624aea1d7ffSmrgint
662558105723Smrgmain (void)
6626aea1d7ffSmrg{
6627aea1d7ffSmrg
6628aea1d7ffSmrg  ;
6629aea1d7ffSmrg  return 0;
6630aea1d7ffSmrg}
6631aea1d7ffSmrg_ACEOF
663258105723Smrgif ac_fn_c_try_link "$LINENO"
663358105723Smrgthen :
6634aea1d7ffSmrg  eval $cacheid=yes
663558105723Smrgelse $as_nop
6636aea1d7ffSmrg  eval $cacheid=no
6637aea1d7ffSmrgfi
663858105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6639aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
6640aea1d7ffSmrgfi
6641aea1d7ffSmrg
6642aea1d7ffSmrg
6643aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6644aea1d7ffSmrg
6645aea1d7ffSmrg		eval supported=\$$cacheid
664658105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
664758105723Smrgprintf "%s\n" "$supported" >&6; }
6648aea1d7ffSmrg		if test "$supported" = "yes" ; then
6649e7fdea5fSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6650aea1d7ffSmrg			found="yes"
6651aea1d7ffSmrg		fi
6652aea1d7ffSmrg	fi
6653aea1d7ffSmrg
6654aea1d7ffSmrg
6655aea1d7ffSmrg
6656aea1d7ffSmrg
6657aea1d7ffSmrg
6658aea1d7ffSmrg
6659aea1d7ffSmrg
6660aea1d7ffSmrg
6661aea1d7ffSmrg
6662aea1d7ffSmrg
6663aea1d7ffSmrg
6664aea1d7ffSmrg
6665aea1d7ffSmrg
6666aea1d7ffSmrg
6667aea1d7ffSmrg
6668aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6669aea1d7ffSmrg
6670aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6671aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
667258105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
667358105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
667458105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
667558105723Smrgthen :
667658105723Smrg  printf %s "(cached) " >&6
667758105723Smrgelse $as_nop
6678aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679aea1d7ffSmrg/* end confdefs.h.  */
6680aea1d7ffSmrgint i;
6681aea1d7ffSmrg_ACEOF
668258105723Smrgif ac_fn_c_try_compile "$LINENO"
668358105723Smrgthen :
6684aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
668558105723Smrgelse $as_nop
6686aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6687aea1d7ffSmrgfi
668858105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6689aea1d7ffSmrgfi
669058105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
669158105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6692aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6693aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6694aea1d7ffSmrgfi
6695aea1d7ffSmrg
6696aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6697aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6698aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6699aea1d7ffSmrg	fi
6700aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
670158105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
670258105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
670358105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
670458105723Smrgthen :
670558105723Smrg  printf %s "(cached) " >&6
670658105723Smrgelse $as_nop
6707aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708aea1d7ffSmrg/* end confdefs.h.  */
6709aea1d7ffSmrgint i;
6710aea1d7ffSmrg_ACEOF
671158105723Smrgif ac_fn_c_try_compile "$LINENO"
671258105723Smrgthen :
6713aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
671458105723Smrgelse $as_nop
6715aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6716aea1d7ffSmrgfi
671758105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6718aea1d7ffSmrgfi
671958105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
672058105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6721aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6722aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6723aea1d7ffSmrgfi
6724aea1d7ffSmrg
6725aea1d7ffSmrgfound="no"
6726aea1d7ffSmrg
6727aea1d7ffSmrg	if test $found = "no" ; then
6728e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6729aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6730aea1d7ffSmrg		fi
6731aea1d7ffSmrg
6732e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6733aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6734aea1d7ffSmrg		fi
6735aea1d7ffSmrg
6736e7fdea5fSmrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6737aea1d7ffSmrg
673858105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
673958105723Smrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6740e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
674158105723Smrg		if eval test \${$cacheid+y}
674258105723Smrgthen :
674358105723Smrg  printf %s "(cached) " >&6
674458105723Smrgelse $as_nop
6745aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746aea1d7ffSmrg/* end confdefs.h.  */
6747aea1d7ffSmrgint i;
6748aea1d7ffSmrgint
674958105723Smrgmain (void)
6750aea1d7ffSmrg{
6751aea1d7ffSmrg
6752aea1d7ffSmrg  ;
6753aea1d7ffSmrg  return 0;
6754aea1d7ffSmrg}
6755aea1d7ffSmrg_ACEOF
675658105723Smrgif ac_fn_c_try_link "$LINENO"
675758105723Smrgthen :
6758aea1d7ffSmrg  eval $cacheid=yes
675958105723Smrgelse $as_nop
6760aea1d7ffSmrg  eval $cacheid=no
6761aea1d7ffSmrgfi
676258105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6763aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
6764aea1d7ffSmrgfi
6765aea1d7ffSmrg
6766aea1d7ffSmrg
6767aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6768aea1d7ffSmrg
6769aea1d7ffSmrg		eval supported=\$$cacheid
677058105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
677158105723Smrgprintf "%s\n" "$supported" >&6; }
6772aea1d7ffSmrg		if test "$supported" = "yes" ; then
6773e7fdea5fSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6774aea1d7ffSmrg			found="yes"
6775aea1d7ffSmrg		fi
6776aea1d7ffSmrg	fi
6777aea1d7ffSmrg
6778aea1d7ffSmrg
6779aea1d7ffSmrg
6780aea1d7ffSmrg
6781aea1d7ffSmrg
6782aea1d7ffSmrg
6783aea1d7ffSmrg
6784aea1d7ffSmrg
6785aea1d7ffSmrg
6786aea1d7ffSmrg
6787aea1d7ffSmrg
6788aea1d7ffSmrg
6789aea1d7ffSmrg
6790aea1d7ffSmrg
6791aea1d7ffSmrg
6792aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6793aea1d7ffSmrg
6794aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6795aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
679658105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
679758105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
679858105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
679958105723Smrgthen :
680058105723Smrg  printf %s "(cached) " >&6
680158105723Smrgelse $as_nop
6802aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803aea1d7ffSmrg/* end confdefs.h.  */
6804aea1d7ffSmrgint i;
6805aea1d7ffSmrg_ACEOF
680658105723Smrgif ac_fn_c_try_compile "$LINENO"
680758105723Smrgthen :
6808aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
680958105723Smrgelse $as_nop
6810aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6811aea1d7ffSmrgfi
681258105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6813aea1d7ffSmrgfi
681458105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
681558105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6816aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6817aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6818aea1d7ffSmrgfi
6819aea1d7ffSmrg
6820aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6821aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6822aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6823aea1d7ffSmrg	fi
6824aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
682558105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
682658105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
682758105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
682858105723Smrgthen :
682958105723Smrg  printf %s "(cached) " >&6
683058105723Smrgelse $as_nop
6831aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832aea1d7ffSmrg/* end confdefs.h.  */
6833aea1d7ffSmrgint i;
6834aea1d7ffSmrg_ACEOF
683558105723Smrgif ac_fn_c_try_compile "$LINENO"
683658105723Smrgthen :
6837aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
683858105723Smrgelse $as_nop
6839aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6840aea1d7ffSmrgfi
684158105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6842aea1d7ffSmrgfi
684358105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
684458105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6845aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6846aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6847aea1d7ffSmrgfi
6848aea1d7ffSmrg
6849aea1d7ffSmrgfound="no"
6850aea1d7ffSmrg
6851aea1d7ffSmrg	if test $found = "no" ; then
6852e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6853aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6854aea1d7ffSmrg		fi
6855aea1d7ffSmrg
6856e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6857aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6858aea1d7ffSmrg		fi
6859aea1d7ffSmrg
6860e7fdea5fSmrg		CFLAGS="$CFLAGS -Wredundant-decls"
6861aea1d7ffSmrg
686258105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
686358105723Smrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6864e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
686558105723Smrg		if eval test \${$cacheid+y}
686658105723Smrgthen :
686758105723Smrg  printf %s "(cached) " >&6
686858105723Smrgelse $as_nop
6869aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870aea1d7ffSmrg/* end confdefs.h.  */
6871aea1d7ffSmrgint i;
6872aea1d7ffSmrgint
687358105723Smrgmain (void)
6874aea1d7ffSmrg{
6875aea1d7ffSmrg
6876aea1d7ffSmrg  ;
6877aea1d7ffSmrg  return 0;
6878aea1d7ffSmrg}
6879aea1d7ffSmrg_ACEOF
688058105723Smrgif ac_fn_c_try_link "$LINENO"
688158105723Smrgthen :
6882aea1d7ffSmrg  eval $cacheid=yes
688358105723Smrgelse $as_nop
6884aea1d7ffSmrg  eval $cacheid=no
6885aea1d7ffSmrgfi
688658105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6887aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
6888aea1d7ffSmrgfi
6889aea1d7ffSmrg
6890aea1d7ffSmrg
6891aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6892aea1d7ffSmrg
6893aea1d7ffSmrg		eval supported=\$$cacheid
689458105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
689558105723Smrgprintf "%s\n" "$supported" >&6; }
6896aea1d7ffSmrg		if test "$supported" = "yes" ; then
6897e7fdea5fSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6898aea1d7ffSmrg			found="yes"
6899aea1d7ffSmrg		fi
6900aea1d7ffSmrg	fi
6901aea1d7ffSmrg
6902aea1d7ffSmrg
6903aea1d7ffSmrg
6904aea1d7ffSmrg
6905aea1d7ffSmrg
6906aea1d7ffSmrg
6907aea1d7ffSmrg
6908aea1d7ffSmrg
6909aea1d7ffSmrg
6910aea1d7ffSmrg
6911aea1d7ffSmrg
6912aea1d7ffSmrg
6913aea1d7ffSmrg
6914aea1d7ffSmrg
6915aea1d7ffSmrg
6916aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6917aea1d7ffSmrg
6918aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6919aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
692058105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
692158105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
692258105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
692358105723Smrgthen :
692458105723Smrg  printf %s "(cached) " >&6
692558105723Smrgelse $as_nop
6926aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927aea1d7ffSmrg/* end confdefs.h.  */
6928aea1d7ffSmrgint i;
6929aea1d7ffSmrg_ACEOF
693058105723Smrgif ac_fn_c_try_compile "$LINENO"
693158105723Smrgthen :
6932aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
693358105723Smrgelse $as_nop
6934aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6935aea1d7ffSmrgfi
693658105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6937aea1d7ffSmrgfi
693858105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
693958105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6940aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6941aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6942aea1d7ffSmrgfi
6943aea1d7ffSmrg
6944aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6945aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6946aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6947aea1d7ffSmrg	fi
6948aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
694958105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
695058105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
695158105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
695258105723Smrgthen :
695358105723Smrg  printf %s "(cached) " >&6
695458105723Smrgelse $as_nop
6955aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956aea1d7ffSmrg/* end confdefs.h.  */
6957aea1d7ffSmrgint i;
6958aea1d7ffSmrg_ACEOF
695958105723Smrgif ac_fn_c_try_compile "$LINENO"
696058105723Smrgthen :
6961aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
696258105723Smrgelse $as_nop
6963aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6964aea1d7ffSmrgfi
696558105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6966aea1d7ffSmrgfi
696758105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
696858105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6969aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6970aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6971aea1d7ffSmrgfi
6972aea1d7ffSmrg
6973aea1d7ffSmrgfound="no"
6974aea1d7ffSmrg
6975aea1d7ffSmrg	if test $found = "no" ; then
6976e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6977aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6978aea1d7ffSmrg		fi
6979aea1d7ffSmrg
6980e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6981aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6982aea1d7ffSmrg		fi
6983aea1d7ffSmrg
6984e7fdea5fSmrg		CFLAGS="$CFLAGS -Wlogical-op"
6985aea1d7ffSmrg
698658105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
698758105723Smrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; }
6988e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__Wlogical_op
698958105723Smrg		if eval test \${$cacheid+y}
699058105723Smrgthen :
699158105723Smrg  printf %s "(cached) " >&6
699258105723Smrgelse $as_nop
6993aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994aea1d7ffSmrg/* end confdefs.h.  */
6995aea1d7ffSmrgint i;
6996aea1d7ffSmrgint
699758105723Smrgmain (void)
6998aea1d7ffSmrg{
6999aea1d7ffSmrg
7000aea1d7ffSmrg  ;
7001aea1d7ffSmrg  return 0;
7002aea1d7ffSmrg}
7003aea1d7ffSmrg_ACEOF
700458105723Smrgif ac_fn_c_try_link "$LINENO"
700558105723Smrgthen :
7006aea1d7ffSmrg  eval $cacheid=yes
700758105723Smrgelse $as_nop
7008aea1d7ffSmrg  eval $cacheid=no
7009aea1d7ffSmrgfi
701058105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7011aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
7012aea1d7ffSmrgfi
7013aea1d7ffSmrg
7014aea1d7ffSmrg
7015aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7016aea1d7ffSmrg
7017aea1d7ffSmrg		eval supported=\$$cacheid
701858105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
701958105723Smrgprintf "%s\n" "$supported" >&6; }
7020aea1d7ffSmrg		if test "$supported" = "yes" ; then
7021e7fdea5fSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7022aea1d7ffSmrg			found="yes"
7023aea1d7ffSmrg		fi
7024aea1d7ffSmrg	fi
7025aea1d7ffSmrg
7026aea1d7ffSmrg
7027aea1d7ffSmrg
7028aea1d7ffSmrg# These are currently disabled because they are noisy.  They will be enabled
7029aea1d7ffSmrg# in the future once the codebase is sufficiently modernized to silence
7030aea1d7ffSmrg# them.  For now, I don't want them to drown out the other warnings.
7031aea1d7ffSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7032aea1d7ffSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7033e7fdea5fSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7034aea1d7ffSmrg
7035aea1d7ffSmrg# Turn some warnings into errors, so we don't accidently get successful builds
7036aea1d7ffSmrg# when there are problems that should be fixed.
7037aea1d7ffSmrg
7038aea1d7ffSmrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
7039aea1d7ffSmrg
7040aea1d7ffSmrg
7041aea1d7ffSmrg
7042aea1d7ffSmrg
7043aea1d7ffSmrg
7044aea1d7ffSmrg
7045aea1d7ffSmrg
7046aea1d7ffSmrg
7047aea1d7ffSmrg
7048aea1d7ffSmrg
7049aea1d7ffSmrg
7050aea1d7ffSmrg
7051aea1d7ffSmrg
7052aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7053aea1d7ffSmrg
7054aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7055aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
705658105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
705758105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
705858105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
705958105723Smrgthen :
706058105723Smrg  printf %s "(cached) " >&6
706158105723Smrgelse $as_nop
7062aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063aea1d7ffSmrg/* end confdefs.h.  */
7064aea1d7ffSmrgint i;
7065aea1d7ffSmrg_ACEOF
706658105723Smrgif ac_fn_c_try_compile "$LINENO"
706758105723Smrgthen :
7068aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
706958105723Smrgelse $as_nop
7070aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7071aea1d7ffSmrgfi
707258105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7073aea1d7ffSmrgfi
707458105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
707558105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7076aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7077aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7078aea1d7ffSmrgfi
7079aea1d7ffSmrg
7080aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7081aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7082aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7083aea1d7ffSmrg	fi
7084aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
708558105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
708658105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
708758105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
708858105723Smrgthen :
708958105723Smrg  printf %s "(cached) " >&6
709058105723Smrgelse $as_nop
7091aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092aea1d7ffSmrg/* end confdefs.h.  */
7093aea1d7ffSmrgint i;
7094aea1d7ffSmrg_ACEOF
709558105723Smrgif ac_fn_c_try_compile "$LINENO"
709658105723Smrgthen :
7097aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
709858105723Smrgelse $as_nop
7099aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7100aea1d7ffSmrgfi
710158105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7102aea1d7ffSmrgfi
710358105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
710458105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7105aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7106aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7107aea1d7ffSmrgfi
7108aea1d7ffSmrg
7109aea1d7ffSmrgfound="no"
7110aea1d7ffSmrg
7111aea1d7ffSmrg	if test $found = "no" ; then
7112e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7113aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7114aea1d7ffSmrg		fi
7115aea1d7ffSmrg
7116e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7117aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7118aea1d7ffSmrg		fi
7119aea1d7ffSmrg
7120aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=implicit"
7121aea1d7ffSmrg
712258105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
712358105723Smrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; }
7124e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__Werror_implicit
712558105723Smrg		if eval test \${$cacheid+y}
712658105723Smrgthen :
712758105723Smrg  printf %s "(cached) " >&6
712858105723Smrgelse $as_nop
7129aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130aea1d7ffSmrg/* end confdefs.h.  */
7131aea1d7ffSmrgint i;
7132aea1d7ffSmrgint
713358105723Smrgmain (void)
7134aea1d7ffSmrg{
7135aea1d7ffSmrg
7136aea1d7ffSmrg  ;
7137aea1d7ffSmrg  return 0;
7138aea1d7ffSmrg}
7139aea1d7ffSmrg_ACEOF
714058105723Smrgif ac_fn_c_try_link "$LINENO"
714158105723Smrgthen :
7142aea1d7ffSmrg  eval $cacheid=yes
714358105723Smrgelse $as_nop
7144aea1d7ffSmrg  eval $cacheid=no
7145aea1d7ffSmrgfi
714658105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7147aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
7148aea1d7ffSmrgfi
7149aea1d7ffSmrg
7150aea1d7ffSmrg
7151aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7152aea1d7ffSmrg
7153aea1d7ffSmrg		eval supported=\$$cacheid
715458105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
715558105723Smrgprintf "%s\n" "$supported" >&6; }
7156aea1d7ffSmrg		if test "$supported" = "yes" ; then
7157aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7158aea1d7ffSmrg			found="yes"
7159aea1d7ffSmrg		fi
7160aea1d7ffSmrg	fi
7161aea1d7ffSmrg
7162aea1d7ffSmrg	if test $found = "no" ; then
7163e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7164aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7165aea1d7ffSmrg		fi
7166aea1d7ffSmrg
7167e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7168aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7169aea1d7ffSmrg		fi
7170aea1d7ffSmrg
7171aea1d7ffSmrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7172aea1d7ffSmrg
717358105723Smrg		{ 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
717458105723Smrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7175e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
717658105723Smrg		if eval test \${$cacheid+y}
717758105723Smrgthen :
717858105723Smrg  printf %s "(cached) " >&6
717958105723Smrgelse $as_nop
7180aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181aea1d7ffSmrg/* end confdefs.h.  */
7182aea1d7ffSmrgint i;
7183aea1d7ffSmrgint
718458105723Smrgmain (void)
7185aea1d7ffSmrg{
7186aea1d7ffSmrg
7187aea1d7ffSmrg  ;
7188aea1d7ffSmrg  return 0;
7189aea1d7ffSmrg}
7190aea1d7ffSmrg_ACEOF
719158105723Smrgif ac_fn_c_try_link "$LINENO"
719258105723Smrgthen :
7193aea1d7ffSmrg  eval $cacheid=yes
719458105723Smrgelse $as_nop
7195aea1d7ffSmrg  eval $cacheid=no
7196aea1d7ffSmrgfi
719758105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7198aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
7199aea1d7ffSmrgfi
7200aea1d7ffSmrg
7201aea1d7ffSmrg
7202aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7203aea1d7ffSmrg
7204aea1d7ffSmrg		eval supported=\$$cacheid
720558105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
720658105723Smrgprintf "%s\n" "$supported" >&6; }
7207aea1d7ffSmrg		if test "$supported" = "yes" ; then
7208aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7209aea1d7ffSmrg			found="yes"
7210aea1d7ffSmrg		fi
7211aea1d7ffSmrg	fi
7212aea1d7ffSmrg
7213aea1d7ffSmrg
7214aea1d7ffSmrg
7215aea1d7ffSmrg
7216aea1d7ffSmrg
7217aea1d7ffSmrg
7218aea1d7ffSmrg
7219aea1d7ffSmrg
7220aea1d7ffSmrg
7221aea1d7ffSmrg
7222aea1d7ffSmrg
7223aea1d7ffSmrg
7224aea1d7ffSmrg
7225aea1d7ffSmrg
7226aea1d7ffSmrg
7227aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7228aea1d7ffSmrg
7229aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7230aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
723158105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
723258105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
723358105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
723458105723Smrgthen :
723558105723Smrg  printf %s "(cached) " >&6
723658105723Smrgelse $as_nop
7237aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238aea1d7ffSmrg/* end confdefs.h.  */
7239aea1d7ffSmrgint i;
7240aea1d7ffSmrg_ACEOF
724158105723Smrgif ac_fn_c_try_compile "$LINENO"
724258105723Smrgthen :
7243aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
724458105723Smrgelse $as_nop
7245aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7246aea1d7ffSmrgfi
724758105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7248aea1d7ffSmrgfi
724958105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
725058105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7251aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7252aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7253aea1d7ffSmrgfi
7254aea1d7ffSmrg
7255aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7256aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7257aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7258aea1d7ffSmrg	fi
7259aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
726058105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
726158105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
726258105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
726358105723Smrgthen :
726458105723Smrg  printf %s "(cached) " >&6
726558105723Smrgelse $as_nop
7266aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267aea1d7ffSmrg/* end confdefs.h.  */
7268aea1d7ffSmrgint i;
7269aea1d7ffSmrg_ACEOF
727058105723Smrgif ac_fn_c_try_compile "$LINENO"
727158105723Smrgthen :
7272aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
727358105723Smrgelse $as_nop
7274aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7275aea1d7ffSmrgfi
727658105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7277aea1d7ffSmrgfi
727858105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
727958105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7280aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7281aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7282aea1d7ffSmrgfi
7283aea1d7ffSmrg
7284aea1d7ffSmrgfound="no"
7285aea1d7ffSmrg
7286aea1d7ffSmrg	if test $found = "no" ; then
7287e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7288aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7289aea1d7ffSmrg		fi
7290aea1d7ffSmrg
7291e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7292aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7293aea1d7ffSmrg		fi
7294aea1d7ffSmrg
7295aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=nonnull"
7296aea1d7ffSmrg
729758105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
729858105723Smrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7299e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
730058105723Smrg		if eval test \${$cacheid+y}
730158105723Smrgthen :
730258105723Smrg  printf %s "(cached) " >&6
730358105723Smrgelse $as_nop
7304aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305aea1d7ffSmrg/* end confdefs.h.  */
7306aea1d7ffSmrgint i;
7307aea1d7ffSmrgint
730858105723Smrgmain (void)
7309aea1d7ffSmrg{
7310aea1d7ffSmrg
7311aea1d7ffSmrg  ;
7312aea1d7ffSmrg  return 0;
7313aea1d7ffSmrg}
7314aea1d7ffSmrg_ACEOF
731558105723Smrgif ac_fn_c_try_link "$LINENO"
731658105723Smrgthen :
7317aea1d7ffSmrg  eval $cacheid=yes
731858105723Smrgelse $as_nop
7319aea1d7ffSmrg  eval $cacheid=no
7320aea1d7ffSmrgfi
732158105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7322aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
7323aea1d7ffSmrgfi
7324aea1d7ffSmrg
7325aea1d7ffSmrg
7326aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7327aea1d7ffSmrg
7328aea1d7ffSmrg		eval supported=\$$cacheid
732958105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
733058105723Smrgprintf "%s\n" "$supported" >&6; }
7331aea1d7ffSmrg		if test "$supported" = "yes" ; then
7332aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7333aea1d7ffSmrg			found="yes"
7334aea1d7ffSmrg		fi
7335aea1d7ffSmrg	fi
7336aea1d7ffSmrg
7337aea1d7ffSmrg
7338aea1d7ffSmrg
7339aea1d7ffSmrg
7340aea1d7ffSmrg
7341aea1d7ffSmrg
7342aea1d7ffSmrg
7343aea1d7ffSmrg
7344aea1d7ffSmrg
7345aea1d7ffSmrg
7346aea1d7ffSmrg
7347aea1d7ffSmrg
7348aea1d7ffSmrg
7349aea1d7ffSmrg
7350aea1d7ffSmrg
7351aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7352aea1d7ffSmrg
7353aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7354aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
735558105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
735658105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
735758105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
735858105723Smrgthen :
735958105723Smrg  printf %s "(cached) " >&6
736058105723Smrgelse $as_nop
7361aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362aea1d7ffSmrg/* end confdefs.h.  */
7363aea1d7ffSmrgint i;
7364aea1d7ffSmrg_ACEOF
736558105723Smrgif ac_fn_c_try_compile "$LINENO"
736658105723Smrgthen :
7367aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
736858105723Smrgelse $as_nop
7369aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7370aea1d7ffSmrgfi
737158105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7372aea1d7ffSmrgfi
737358105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
737458105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7375aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7376aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7377aea1d7ffSmrgfi
7378aea1d7ffSmrg
7379aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7380aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7381aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7382aea1d7ffSmrg	fi
7383aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
738458105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
738558105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
738658105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
738758105723Smrgthen :
738858105723Smrg  printf %s "(cached) " >&6
738958105723Smrgelse $as_nop
7390aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391aea1d7ffSmrg/* end confdefs.h.  */
7392aea1d7ffSmrgint i;
7393aea1d7ffSmrg_ACEOF
739458105723Smrgif ac_fn_c_try_compile "$LINENO"
739558105723Smrgthen :
7396aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
739758105723Smrgelse $as_nop
7398aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7399aea1d7ffSmrgfi
740058105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7401aea1d7ffSmrgfi
740258105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
740358105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7404aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7405aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7406aea1d7ffSmrgfi
7407aea1d7ffSmrg
7408aea1d7ffSmrgfound="no"
7409aea1d7ffSmrg
7410aea1d7ffSmrg	if test $found = "no" ; then
7411e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7412aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7413aea1d7ffSmrg		fi
7414aea1d7ffSmrg
7415e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7416aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7417aea1d7ffSmrg		fi
7418aea1d7ffSmrg
7419aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=init-self"
7420aea1d7ffSmrg
742158105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
742258105723Smrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; }
7423e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__Werror_init_self
742458105723Smrg		if eval test \${$cacheid+y}
742558105723Smrgthen :
742658105723Smrg  printf %s "(cached) " >&6
742758105723Smrgelse $as_nop
7428aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429aea1d7ffSmrg/* end confdefs.h.  */
7430aea1d7ffSmrgint i;
7431aea1d7ffSmrgint
743258105723Smrgmain (void)
7433aea1d7ffSmrg{
7434aea1d7ffSmrg
7435aea1d7ffSmrg  ;
7436aea1d7ffSmrg  return 0;
7437aea1d7ffSmrg}
7438aea1d7ffSmrg_ACEOF
743958105723Smrgif ac_fn_c_try_link "$LINENO"
744058105723Smrgthen :
7441aea1d7ffSmrg  eval $cacheid=yes
744258105723Smrgelse $as_nop
7443aea1d7ffSmrg  eval $cacheid=no
7444aea1d7ffSmrgfi
744558105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7446aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
7447aea1d7ffSmrgfi
7448aea1d7ffSmrg
7449aea1d7ffSmrg
7450aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7451aea1d7ffSmrg
7452aea1d7ffSmrg		eval supported=\$$cacheid
745358105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
745458105723Smrgprintf "%s\n" "$supported" >&6; }
7455aea1d7ffSmrg		if test "$supported" = "yes" ; then
7456aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7457aea1d7ffSmrg			found="yes"
7458aea1d7ffSmrg		fi
7459aea1d7ffSmrg	fi
7460aea1d7ffSmrg
7461aea1d7ffSmrg
7462aea1d7ffSmrg
7463aea1d7ffSmrg
7464aea1d7ffSmrg
7465aea1d7ffSmrg
7466aea1d7ffSmrg
7467aea1d7ffSmrg
7468aea1d7ffSmrg
7469aea1d7ffSmrg
7470aea1d7ffSmrg
7471aea1d7ffSmrg
7472aea1d7ffSmrg
7473aea1d7ffSmrg
7474aea1d7ffSmrg
7475aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7476aea1d7ffSmrg
7477aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7478aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
747958105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
748058105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
748158105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
748258105723Smrgthen :
748358105723Smrg  printf %s "(cached) " >&6
748458105723Smrgelse $as_nop
7485aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486aea1d7ffSmrg/* end confdefs.h.  */
7487aea1d7ffSmrgint i;
7488aea1d7ffSmrg_ACEOF
748958105723Smrgif ac_fn_c_try_compile "$LINENO"
749058105723Smrgthen :
7491aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
749258105723Smrgelse $as_nop
7493aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7494aea1d7ffSmrgfi
749558105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7496aea1d7ffSmrgfi
749758105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
749858105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7499aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7500aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7501aea1d7ffSmrgfi
7502aea1d7ffSmrg
7503aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7504aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7505aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7506aea1d7ffSmrg	fi
7507aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
750858105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
750958105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
751058105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
751158105723Smrgthen :
751258105723Smrg  printf %s "(cached) " >&6
751358105723Smrgelse $as_nop
7514aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515aea1d7ffSmrg/* end confdefs.h.  */
7516aea1d7ffSmrgint i;
7517aea1d7ffSmrg_ACEOF
751858105723Smrgif ac_fn_c_try_compile "$LINENO"
751958105723Smrgthen :
7520aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
752158105723Smrgelse $as_nop
7522aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7523aea1d7ffSmrgfi
752458105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7525aea1d7ffSmrgfi
752658105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
752758105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7528aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7529aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7530aea1d7ffSmrgfi
7531aea1d7ffSmrg
7532aea1d7ffSmrgfound="no"
7533aea1d7ffSmrg
7534aea1d7ffSmrg	if test $found = "no" ; then
7535e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7536aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7537aea1d7ffSmrg		fi
7538aea1d7ffSmrg
7539e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7540aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7541aea1d7ffSmrg		fi
7542aea1d7ffSmrg
7543aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=main"
7544aea1d7ffSmrg
754558105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
754658105723Smrgprintf %s "checking if $CC supports -Werror=main... " >&6; }
7547e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__Werror_main
754858105723Smrg		if eval test \${$cacheid+y}
754958105723Smrgthen :
755058105723Smrg  printf %s "(cached) " >&6
755158105723Smrgelse $as_nop
7552aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553aea1d7ffSmrg/* end confdefs.h.  */
7554aea1d7ffSmrgint i;
7555aea1d7ffSmrgint
755658105723Smrgmain (void)
7557aea1d7ffSmrg{
7558aea1d7ffSmrg
7559aea1d7ffSmrg  ;
7560aea1d7ffSmrg  return 0;
7561aea1d7ffSmrg}
7562aea1d7ffSmrg_ACEOF
756358105723Smrgif ac_fn_c_try_link "$LINENO"
756458105723Smrgthen :
7565aea1d7ffSmrg  eval $cacheid=yes
756658105723Smrgelse $as_nop
7567aea1d7ffSmrg  eval $cacheid=no
7568aea1d7ffSmrgfi
756958105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7570aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
7571aea1d7ffSmrgfi
7572aea1d7ffSmrg
7573aea1d7ffSmrg
7574aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7575aea1d7ffSmrg
7576aea1d7ffSmrg		eval supported=\$$cacheid
757758105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
757858105723Smrgprintf "%s\n" "$supported" >&6; }
7579aea1d7ffSmrg		if test "$supported" = "yes" ; then
7580aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7581aea1d7ffSmrg			found="yes"
7582aea1d7ffSmrg		fi
7583aea1d7ffSmrg	fi
7584aea1d7ffSmrg
7585aea1d7ffSmrg
7586aea1d7ffSmrg
7587aea1d7ffSmrg
7588aea1d7ffSmrg
7589aea1d7ffSmrg
7590aea1d7ffSmrg
7591aea1d7ffSmrg
7592aea1d7ffSmrg
7593aea1d7ffSmrg
7594aea1d7ffSmrg
7595aea1d7ffSmrg
7596aea1d7ffSmrg
7597aea1d7ffSmrg
7598aea1d7ffSmrg
7599aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7600aea1d7ffSmrg
7601aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7602aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
760358105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
760458105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
760558105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
760658105723Smrgthen :
760758105723Smrg  printf %s "(cached) " >&6
760858105723Smrgelse $as_nop
7609aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610aea1d7ffSmrg/* end confdefs.h.  */
7611aea1d7ffSmrgint i;
7612aea1d7ffSmrg_ACEOF
761358105723Smrgif ac_fn_c_try_compile "$LINENO"
761458105723Smrgthen :
7615aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
761658105723Smrgelse $as_nop
7617aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7618aea1d7ffSmrgfi
761958105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7620aea1d7ffSmrgfi
762158105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
762258105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7623aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7624aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7625aea1d7ffSmrgfi
7626aea1d7ffSmrg
7627aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7628aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7629aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7630aea1d7ffSmrg	fi
7631aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
763258105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
763358105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
763458105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
763558105723Smrgthen :
763658105723Smrg  printf %s "(cached) " >&6
763758105723Smrgelse $as_nop
7638aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639aea1d7ffSmrg/* end confdefs.h.  */
7640aea1d7ffSmrgint i;
7641aea1d7ffSmrg_ACEOF
764258105723Smrgif ac_fn_c_try_compile "$LINENO"
764358105723Smrgthen :
7644aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
764558105723Smrgelse $as_nop
7646aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7647aea1d7ffSmrgfi
764858105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7649aea1d7ffSmrgfi
765058105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
765158105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7652aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7653aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7654aea1d7ffSmrgfi
7655aea1d7ffSmrg
7656aea1d7ffSmrgfound="no"
7657aea1d7ffSmrg
7658aea1d7ffSmrg	if test $found = "no" ; then
7659e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7660aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7661aea1d7ffSmrg		fi
7662aea1d7ffSmrg
7663e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7664aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7665aea1d7ffSmrg		fi
7666aea1d7ffSmrg
7667aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=missing-braces"
7668aea1d7ffSmrg
766958105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
767058105723Smrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7671e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
767258105723Smrg		if eval test \${$cacheid+y}
767358105723Smrgthen :
767458105723Smrg  printf %s "(cached) " >&6
767558105723Smrgelse $as_nop
7676aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677aea1d7ffSmrg/* end confdefs.h.  */
7678aea1d7ffSmrgint i;
7679aea1d7ffSmrgint
768058105723Smrgmain (void)
7681aea1d7ffSmrg{
7682aea1d7ffSmrg
7683aea1d7ffSmrg  ;
7684aea1d7ffSmrg  return 0;
7685aea1d7ffSmrg}
7686aea1d7ffSmrg_ACEOF
768758105723Smrgif ac_fn_c_try_link "$LINENO"
768858105723Smrgthen :
7689aea1d7ffSmrg  eval $cacheid=yes
769058105723Smrgelse $as_nop
7691aea1d7ffSmrg  eval $cacheid=no
7692aea1d7ffSmrgfi
769358105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7694aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
7695aea1d7ffSmrgfi
7696aea1d7ffSmrg
7697aea1d7ffSmrg
7698aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7699aea1d7ffSmrg
7700aea1d7ffSmrg		eval supported=\$$cacheid
770158105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
770258105723Smrgprintf "%s\n" "$supported" >&6; }
7703aea1d7ffSmrg		if test "$supported" = "yes" ; then
7704aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7705aea1d7ffSmrg			found="yes"
7706aea1d7ffSmrg		fi
7707aea1d7ffSmrg	fi
7708aea1d7ffSmrg
7709aea1d7ffSmrg
7710aea1d7ffSmrg
7711aea1d7ffSmrg
7712aea1d7ffSmrg
7713aea1d7ffSmrg
7714aea1d7ffSmrg
7715aea1d7ffSmrg
7716aea1d7ffSmrg
7717aea1d7ffSmrg
7718aea1d7ffSmrg
7719aea1d7ffSmrg
7720aea1d7ffSmrg
7721aea1d7ffSmrg
7722aea1d7ffSmrg
7723aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7724aea1d7ffSmrg
7725aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7726aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
772758105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
772858105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
772958105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
773058105723Smrgthen :
773158105723Smrg  printf %s "(cached) " >&6
773258105723Smrgelse $as_nop
7733aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734aea1d7ffSmrg/* end confdefs.h.  */
7735aea1d7ffSmrgint i;
7736aea1d7ffSmrg_ACEOF
773758105723Smrgif ac_fn_c_try_compile "$LINENO"
773858105723Smrgthen :
7739aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
774058105723Smrgelse $as_nop
7741aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7742aea1d7ffSmrgfi
774358105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7744aea1d7ffSmrgfi
774558105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
774658105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7747aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7748aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7749aea1d7ffSmrgfi
7750aea1d7ffSmrg
7751aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7752aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7753aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7754aea1d7ffSmrg	fi
7755aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
775658105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
775758105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
775858105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
775958105723Smrgthen :
776058105723Smrg  printf %s "(cached) " >&6
776158105723Smrgelse $as_nop
7762aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763aea1d7ffSmrg/* end confdefs.h.  */
7764aea1d7ffSmrgint i;
7765aea1d7ffSmrg_ACEOF
776658105723Smrgif ac_fn_c_try_compile "$LINENO"
776758105723Smrgthen :
7768aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
776958105723Smrgelse $as_nop
7770aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7771aea1d7ffSmrgfi
777258105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7773aea1d7ffSmrgfi
777458105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
777558105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7776aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7777aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7778aea1d7ffSmrgfi
7779aea1d7ffSmrg
7780aea1d7ffSmrgfound="no"
7781aea1d7ffSmrg
7782aea1d7ffSmrg	if test $found = "no" ; then
7783e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7784aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7785aea1d7ffSmrg		fi
7786aea1d7ffSmrg
7787e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7788aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7789aea1d7ffSmrg		fi
7790aea1d7ffSmrg
7791aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=sequence-point"
7792aea1d7ffSmrg
779358105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
779458105723Smrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7795e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
779658105723Smrg		if eval test \${$cacheid+y}
779758105723Smrgthen :
779858105723Smrg  printf %s "(cached) " >&6
779958105723Smrgelse $as_nop
7800aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801aea1d7ffSmrg/* end confdefs.h.  */
7802aea1d7ffSmrgint i;
7803aea1d7ffSmrgint
780458105723Smrgmain (void)
7805aea1d7ffSmrg{
7806aea1d7ffSmrg
7807aea1d7ffSmrg  ;
7808aea1d7ffSmrg  return 0;
7809aea1d7ffSmrg}
7810aea1d7ffSmrg_ACEOF
781158105723Smrgif ac_fn_c_try_link "$LINENO"
781258105723Smrgthen :
7813aea1d7ffSmrg  eval $cacheid=yes
781458105723Smrgelse $as_nop
7815aea1d7ffSmrg  eval $cacheid=no
7816aea1d7ffSmrgfi
781758105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7818aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
7819aea1d7ffSmrgfi
7820aea1d7ffSmrg
7821aea1d7ffSmrg
7822aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7823aea1d7ffSmrg
7824aea1d7ffSmrg		eval supported=\$$cacheid
782558105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
782658105723Smrgprintf "%s\n" "$supported" >&6; }
7827aea1d7ffSmrg		if test "$supported" = "yes" ; then
7828aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7829aea1d7ffSmrg			found="yes"
7830aea1d7ffSmrg		fi
7831aea1d7ffSmrg	fi
7832aea1d7ffSmrg
7833aea1d7ffSmrg
7834aea1d7ffSmrg
7835aea1d7ffSmrg
7836aea1d7ffSmrg
7837aea1d7ffSmrg
7838aea1d7ffSmrg
7839aea1d7ffSmrg
7840aea1d7ffSmrg
7841aea1d7ffSmrg
7842aea1d7ffSmrg
7843aea1d7ffSmrg
7844aea1d7ffSmrg
7845aea1d7ffSmrg
7846aea1d7ffSmrg
7847aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7848aea1d7ffSmrg
7849aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7850aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
785158105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
785258105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
785358105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
785458105723Smrgthen :
785558105723Smrg  printf %s "(cached) " >&6
785658105723Smrgelse $as_nop
7857aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858aea1d7ffSmrg/* end confdefs.h.  */
7859aea1d7ffSmrgint i;
7860aea1d7ffSmrg_ACEOF
786158105723Smrgif ac_fn_c_try_compile "$LINENO"
786258105723Smrgthen :
7863aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
786458105723Smrgelse $as_nop
7865aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7866aea1d7ffSmrgfi
786758105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7868aea1d7ffSmrgfi
786958105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
787058105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7871aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7872aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7873aea1d7ffSmrgfi
7874aea1d7ffSmrg
7875aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7876aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7877aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7878aea1d7ffSmrg	fi
7879aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
788058105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
788158105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
788258105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
788358105723Smrgthen :
788458105723Smrg  printf %s "(cached) " >&6
788558105723Smrgelse $as_nop
7886aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887aea1d7ffSmrg/* end confdefs.h.  */
7888aea1d7ffSmrgint i;
7889aea1d7ffSmrg_ACEOF
789058105723Smrgif ac_fn_c_try_compile "$LINENO"
789158105723Smrgthen :
7892aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
789358105723Smrgelse $as_nop
7894aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7895aea1d7ffSmrgfi
789658105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7897aea1d7ffSmrgfi
789858105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
789958105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7900aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7901aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7902aea1d7ffSmrgfi
7903aea1d7ffSmrg
7904aea1d7ffSmrgfound="no"
7905aea1d7ffSmrg
7906aea1d7ffSmrg	if test $found = "no" ; then
7907e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7908aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7909aea1d7ffSmrg		fi
7910aea1d7ffSmrg
7911e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7912aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7913aea1d7ffSmrg		fi
7914aea1d7ffSmrg
7915aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=return-type"
7916aea1d7ffSmrg
791758105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
791858105723Smrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; }
7919e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__Werror_return_type
792058105723Smrg		if eval test \${$cacheid+y}
792158105723Smrgthen :
792258105723Smrg  printf %s "(cached) " >&6
792358105723Smrgelse $as_nop
7924aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925aea1d7ffSmrg/* end confdefs.h.  */
7926aea1d7ffSmrgint i;
7927aea1d7ffSmrgint
792858105723Smrgmain (void)
7929aea1d7ffSmrg{
7930aea1d7ffSmrg
7931aea1d7ffSmrg  ;
7932aea1d7ffSmrg  return 0;
7933aea1d7ffSmrg}
7934aea1d7ffSmrg_ACEOF
793558105723Smrgif ac_fn_c_try_link "$LINENO"
793658105723Smrgthen :
7937aea1d7ffSmrg  eval $cacheid=yes
793858105723Smrgelse $as_nop
7939aea1d7ffSmrg  eval $cacheid=no
7940aea1d7ffSmrgfi
794158105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7942aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
7943aea1d7ffSmrgfi
7944aea1d7ffSmrg
7945aea1d7ffSmrg
7946aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7947aea1d7ffSmrg
7948aea1d7ffSmrg		eval supported=\$$cacheid
794958105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
795058105723Smrgprintf "%s\n" "$supported" >&6; }
7951aea1d7ffSmrg		if test "$supported" = "yes" ; then
7952aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7953aea1d7ffSmrg			found="yes"
7954aea1d7ffSmrg		fi
7955aea1d7ffSmrg	fi
7956aea1d7ffSmrg
7957aea1d7ffSmrg	if test $found = "no" ; then
7958e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7959aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7960aea1d7ffSmrg		fi
7961aea1d7ffSmrg
7962e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7963aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7964aea1d7ffSmrg		fi
7965aea1d7ffSmrg
7966aea1d7ffSmrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7967aea1d7ffSmrg
796858105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
796958105723Smrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7970e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
797158105723Smrg		if eval test \${$cacheid+y}
797258105723Smrgthen :
797358105723Smrg  printf %s "(cached) " >&6
797458105723Smrgelse $as_nop
7975aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976aea1d7ffSmrg/* end confdefs.h.  */
7977aea1d7ffSmrgint i;
7978aea1d7ffSmrgint
797958105723Smrgmain (void)
7980aea1d7ffSmrg{
7981aea1d7ffSmrg
7982aea1d7ffSmrg  ;
7983aea1d7ffSmrg  return 0;
7984aea1d7ffSmrg}
7985aea1d7ffSmrg_ACEOF
798658105723Smrgif ac_fn_c_try_link "$LINENO"
798758105723Smrgthen :
7988aea1d7ffSmrg  eval $cacheid=yes
798958105723Smrgelse $as_nop
7990aea1d7ffSmrg  eval $cacheid=no
7991aea1d7ffSmrgfi
799258105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7993aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
7994aea1d7ffSmrgfi
7995aea1d7ffSmrg
7996aea1d7ffSmrg
7997aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7998aea1d7ffSmrg
7999aea1d7ffSmrg		eval supported=\$$cacheid
800058105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
800158105723Smrgprintf "%s\n" "$supported" >&6; }
8002aea1d7ffSmrg		if test "$supported" = "yes" ; then
8003aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8004aea1d7ffSmrg			found="yes"
8005aea1d7ffSmrg		fi
8006aea1d7ffSmrg	fi
8007aea1d7ffSmrg
8008aea1d7ffSmrg
8009aea1d7ffSmrg
8010aea1d7ffSmrg
8011aea1d7ffSmrg
8012aea1d7ffSmrg
8013aea1d7ffSmrg
8014aea1d7ffSmrg
8015aea1d7ffSmrg
8016aea1d7ffSmrg
8017aea1d7ffSmrg
8018aea1d7ffSmrg
8019aea1d7ffSmrg
8020aea1d7ffSmrg
8021aea1d7ffSmrg
8022aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8023aea1d7ffSmrg
8024aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8025aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
802658105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
802758105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
802858105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
802958105723Smrgthen :
803058105723Smrg  printf %s "(cached) " >&6
803158105723Smrgelse $as_nop
8032aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033aea1d7ffSmrg/* end confdefs.h.  */
8034aea1d7ffSmrgint i;
8035aea1d7ffSmrg_ACEOF
803658105723Smrgif ac_fn_c_try_compile "$LINENO"
803758105723Smrgthen :
8038aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
803958105723Smrgelse $as_nop
8040aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8041aea1d7ffSmrgfi
804258105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8043aea1d7ffSmrgfi
804458105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
804558105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8046aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8047aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8048aea1d7ffSmrgfi
8049aea1d7ffSmrg
8050aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8051aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8052aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8053aea1d7ffSmrg	fi
8054aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
805558105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
805658105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
805758105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
805858105723Smrgthen :
805958105723Smrg  printf %s "(cached) " >&6
806058105723Smrgelse $as_nop
8061aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062aea1d7ffSmrg/* end confdefs.h.  */
8063aea1d7ffSmrgint i;
8064aea1d7ffSmrg_ACEOF
806558105723Smrgif ac_fn_c_try_compile "$LINENO"
806658105723Smrgthen :
8067aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
806858105723Smrgelse $as_nop
8069aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8070aea1d7ffSmrgfi
807158105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8072aea1d7ffSmrgfi
807358105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
807458105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8075aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8076aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8077aea1d7ffSmrgfi
8078aea1d7ffSmrg
8079aea1d7ffSmrgfound="no"
8080aea1d7ffSmrg
8081aea1d7ffSmrg	if test $found = "no" ; then
8082e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8083aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8084aea1d7ffSmrg		fi
8085aea1d7ffSmrg
8086e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8087aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8088aea1d7ffSmrg		fi
8089aea1d7ffSmrg
8090aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=trigraphs"
8091aea1d7ffSmrg
809258105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
809358105723Smrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8094e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
809558105723Smrg		if eval test \${$cacheid+y}
809658105723Smrgthen :
809758105723Smrg  printf %s "(cached) " >&6
809858105723Smrgelse $as_nop
8099aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100aea1d7ffSmrg/* end confdefs.h.  */
8101aea1d7ffSmrgint i;
8102aea1d7ffSmrgint
810358105723Smrgmain (void)
8104aea1d7ffSmrg{
8105aea1d7ffSmrg
8106aea1d7ffSmrg  ;
8107aea1d7ffSmrg  return 0;
8108aea1d7ffSmrg}
8109aea1d7ffSmrg_ACEOF
811058105723Smrgif ac_fn_c_try_link "$LINENO"
811158105723Smrgthen :
8112aea1d7ffSmrg  eval $cacheid=yes
811358105723Smrgelse $as_nop
8114aea1d7ffSmrg  eval $cacheid=no
8115aea1d7ffSmrgfi
811658105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8117aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
8118aea1d7ffSmrgfi
8119aea1d7ffSmrg
8120aea1d7ffSmrg
8121aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8122aea1d7ffSmrg
8123aea1d7ffSmrg		eval supported=\$$cacheid
812458105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
812558105723Smrgprintf "%s\n" "$supported" >&6; }
8126aea1d7ffSmrg		if test "$supported" = "yes" ; then
8127aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8128aea1d7ffSmrg			found="yes"
8129aea1d7ffSmrg		fi
8130aea1d7ffSmrg	fi
8131aea1d7ffSmrg
8132aea1d7ffSmrg
8133aea1d7ffSmrg
8134aea1d7ffSmrg
8135aea1d7ffSmrg
8136aea1d7ffSmrg
8137aea1d7ffSmrg
8138aea1d7ffSmrg
8139aea1d7ffSmrg
8140aea1d7ffSmrg
8141aea1d7ffSmrg
8142aea1d7ffSmrg
8143aea1d7ffSmrg
8144aea1d7ffSmrg
8145aea1d7ffSmrg
8146aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8147aea1d7ffSmrg
8148aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8149aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
815058105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
815158105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
815258105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
815358105723Smrgthen :
815458105723Smrg  printf %s "(cached) " >&6
815558105723Smrgelse $as_nop
8156aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8157aea1d7ffSmrg/* end confdefs.h.  */
8158aea1d7ffSmrgint i;
8159aea1d7ffSmrg_ACEOF
816058105723Smrgif ac_fn_c_try_compile "$LINENO"
816158105723Smrgthen :
8162aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
816358105723Smrgelse $as_nop
8164aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8165aea1d7ffSmrgfi
816658105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8167aea1d7ffSmrgfi
816858105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
816958105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8170aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8171aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8172aea1d7ffSmrgfi
8173aea1d7ffSmrg
8174aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8175aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8176aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8177aea1d7ffSmrg	fi
8178aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
817958105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
818058105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
818158105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
818258105723Smrgthen :
818358105723Smrg  printf %s "(cached) " >&6
818458105723Smrgelse $as_nop
8185aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8186aea1d7ffSmrg/* end confdefs.h.  */
8187aea1d7ffSmrgint i;
8188aea1d7ffSmrg_ACEOF
818958105723Smrgif ac_fn_c_try_compile "$LINENO"
819058105723Smrgthen :
8191aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
819258105723Smrgelse $as_nop
8193aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8194aea1d7ffSmrgfi
819558105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8196aea1d7ffSmrgfi
819758105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
819858105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8199aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8200aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8201aea1d7ffSmrgfi
8202aea1d7ffSmrg
8203aea1d7ffSmrgfound="no"
8204aea1d7ffSmrg
8205aea1d7ffSmrg	if test $found = "no" ; then
8206e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8207aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8208aea1d7ffSmrg		fi
8209aea1d7ffSmrg
8210e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8211aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8212aea1d7ffSmrg		fi
8213aea1d7ffSmrg
8214aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=array-bounds"
8215aea1d7ffSmrg
821658105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
821758105723Smrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8218e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
821958105723Smrg		if eval test \${$cacheid+y}
822058105723Smrgthen :
822158105723Smrg  printf %s "(cached) " >&6
822258105723Smrgelse $as_nop
8223aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224aea1d7ffSmrg/* end confdefs.h.  */
8225aea1d7ffSmrgint i;
8226aea1d7ffSmrgint
822758105723Smrgmain (void)
8228aea1d7ffSmrg{
8229aea1d7ffSmrg
8230aea1d7ffSmrg  ;
8231aea1d7ffSmrg  return 0;
8232aea1d7ffSmrg}
8233aea1d7ffSmrg_ACEOF
823458105723Smrgif ac_fn_c_try_link "$LINENO"
823558105723Smrgthen :
8236aea1d7ffSmrg  eval $cacheid=yes
823758105723Smrgelse $as_nop
8238aea1d7ffSmrg  eval $cacheid=no
8239aea1d7ffSmrgfi
824058105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8241aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
8242aea1d7ffSmrgfi
8243aea1d7ffSmrg
8244aea1d7ffSmrg
8245aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8246aea1d7ffSmrg
8247aea1d7ffSmrg		eval supported=\$$cacheid
824858105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
824958105723Smrgprintf "%s\n" "$supported" >&6; }
8250aea1d7ffSmrg		if test "$supported" = "yes" ; then
8251aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8252aea1d7ffSmrg			found="yes"
8253aea1d7ffSmrg		fi
8254aea1d7ffSmrg	fi
8255aea1d7ffSmrg
8256aea1d7ffSmrg
8257aea1d7ffSmrg
8258aea1d7ffSmrg
8259aea1d7ffSmrg
8260aea1d7ffSmrg
8261aea1d7ffSmrg
8262aea1d7ffSmrg
8263aea1d7ffSmrg
8264aea1d7ffSmrg
8265aea1d7ffSmrg
8266aea1d7ffSmrg
8267aea1d7ffSmrg
8268aea1d7ffSmrg
8269aea1d7ffSmrg
8270aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8271aea1d7ffSmrg
8272aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8273aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
827458105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
827558105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
827658105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
827758105723Smrgthen :
827858105723Smrg  printf %s "(cached) " >&6
827958105723Smrgelse $as_nop
8280aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281aea1d7ffSmrg/* end confdefs.h.  */
8282aea1d7ffSmrgint i;
8283aea1d7ffSmrg_ACEOF
828458105723Smrgif ac_fn_c_try_compile "$LINENO"
828558105723Smrgthen :
8286aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
828758105723Smrgelse $as_nop
8288aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8289aea1d7ffSmrgfi
829058105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8291aea1d7ffSmrgfi
829258105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
829358105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8294aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8295aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8296aea1d7ffSmrgfi
8297aea1d7ffSmrg
8298aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8299aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8300aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8301aea1d7ffSmrg	fi
8302aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
830358105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
830458105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
830558105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
830658105723Smrgthen :
830758105723Smrg  printf %s "(cached) " >&6
830858105723Smrgelse $as_nop
8309aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310aea1d7ffSmrg/* end confdefs.h.  */
8311aea1d7ffSmrgint i;
8312aea1d7ffSmrg_ACEOF
831358105723Smrgif ac_fn_c_try_compile "$LINENO"
831458105723Smrgthen :
8315aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
831658105723Smrgelse $as_nop
8317aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8318aea1d7ffSmrgfi
831958105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8320aea1d7ffSmrgfi
832158105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
832258105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8323aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8324aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8325aea1d7ffSmrgfi
8326aea1d7ffSmrg
8327aea1d7ffSmrgfound="no"
8328aea1d7ffSmrg
8329aea1d7ffSmrg	if test $found = "no" ; then
8330e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8331aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8332aea1d7ffSmrg		fi
8333aea1d7ffSmrg
8334e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8335aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8336aea1d7ffSmrg		fi
8337aea1d7ffSmrg
8338aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=write-strings"
8339aea1d7ffSmrg
834058105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
834158105723Smrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8342e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
834358105723Smrg		if eval test \${$cacheid+y}
834458105723Smrgthen :
834558105723Smrg  printf %s "(cached) " >&6
834658105723Smrgelse $as_nop
8347aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348aea1d7ffSmrg/* end confdefs.h.  */
8349aea1d7ffSmrgint i;
8350aea1d7ffSmrgint
835158105723Smrgmain (void)
8352aea1d7ffSmrg{
8353aea1d7ffSmrg
8354aea1d7ffSmrg  ;
8355aea1d7ffSmrg  return 0;
8356aea1d7ffSmrg}
8357aea1d7ffSmrg_ACEOF
835858105723Smrgif ac_fn_c_try_link "$LINENO"
835958105723Smrgthen :
8360aea1d7ffSmrg  eval $cacheid=yes
836158105723Smrgelse $as_nop
8362aea1d7ffSmrg  eval $cacheid=no
8363aea1d7ffSmrgfi
836458105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8365aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
8366aea1d7ffSmrgfi
8367aea1d7ffSmrg
8368aea1d7ffSmrg
8369aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8370aea1d7ffSmrg
8371aea1d7ffSmrg		eval supported=\$$cacheid
837258105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
837358105723Smrgprintf "%s\n" "$supported" >&6; }
8374aea1d7ffSmrg		if test "$supported" = "yes" ; then
8375aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8376aea1d7ffSmrg			found="yes"
8377aea1d7ffSmrg		fi
8378aea1d7ffSmrg	fi
8379aea1d7ffSmrg
8380aea1d7ffSmrg
8381aea1d7ffSmrg
8382aea1d7ffSmrg
8383aea1d7ffSmrg
8384aea1d7ffSmrg
8385aea1d7ffSmrg
8386aea1d7ffSmrg
8387aea1d7ffSmrg
8388aea1d7ffSmrg
8389aea1d7ffSmrg
8390aea1d7ffSmrg
8391aea1d7ffSmrg
8392aea1d7ffSmrg
8393aea1d7ffSmrg
8394aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8395aea1d7ffSmrg
8396aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8397aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
839858105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
839958105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
840058105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
840158105723Smrgthen :
840258105723Smrg  printf %s "(cached) " >&6
840358105723Smrgelse $as_nop
8404aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405aea1d7ffSmrg/* end confdefs.h.  */
8406aea1d7ffSmrgint i;
8407aea1d7ffSmrg_ACEOF
840858105723Smrgif ac_fn_c_try_compile "$LINENO"
840958105723Smrgthen :
8410aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
841158105723Smrgelse $as_nop
8412aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8413aea1d7ffSmrgfi
841458105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8415aea1d7ffSmrgfi
841658105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
841758105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8418aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8419aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8420aea1d7ffSmrgfi
8421aea1d7ffSmrg
8422aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8423aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8424aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8425aea1d7ffSmrg	fi
8426aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
842758105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
842858105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
842958105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
843058105723Smrgthen :
843158105723Smrg  printf %s "(cached) " >&6
843258105723Smrgelse $as_nop
8433aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434aea1d7ffSmrg/* end confdefs.h.  */
8435aea1d7ffSmrgint i;
8436aea1d7ffSmrg_ACEOF
843758105723Smrgif ac_fn_c_try_compile "$LINENO"
843858105723Smrgthen :
8439aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
844058105723Smrgelse $as_nop
8441aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8442aea1d7ffSmrgfi
844358105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8444aea1d7ffSmrgfi
844558105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
844658105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8447aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8448aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8449aea1d7ffSmrgfi
8450aea1d7ffSmrg
8451aea1d7ffSmrgfound="no"
8452aea1d7ffSmrg
8453aea1d7ffSmrg	if test $found = "no" ; then
8454e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8455aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8456aea1d7ffSmrg		fi
8457aea1d7ffSmrg
8458e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8459aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8460aea1d7ffSmrg		fi
8461aea1d7ffSmrg
8462aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=address"
8463aea1d7ffSmrg
846458105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
846558105723Smrgprintf %s "checking if $CC supports -Werror=address... " >&6; }
8466e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__Werror_address
846758105723Smrg		if eval test \${$cacheid+y}
846858105723Smrgthen :
846958105723Smrg  printf %s "(cached) " >&6
847058105723Smrgelse $as_nop
8471aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472aea1d7ffSmrg/* end confdefs.h.  */
8473aea1d7ffSmrgint i;
8474aea1d7ffSmrgint
847558105723Smrgmain (void)
8476aea1d7ffSmrg{
8477aea1d7ffSmrg
8478aea1d7ffSmrg  ;
8479aea1d7ffSmrg  return 0;
8480aea1d7ffSmrg}
8481aea1d7ffSmrg_ACEOF
848258105723Smrgif ac_fn_c_try_link "$LINENO"
848358105723Smrgthen :
8484aea1d7ffSmrg  eval $cacheid=yes
848558105723Smrgelse $as_nop
8486aea1d7ffSmrg  eval $cacheid=no
8487aea1d7ffSmrgfi
848858105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8489aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
8490aea1d7ffSmrgfi
8491aea1d7ffSmrg
8492aea1d7ffSmrg
8493aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8494aea1d7ffSmrg
8495aea1d7ffSmrg		eval supported=\$$cacheid
849658105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
849758105723Smrgprintf "%s\n" "$supported" >&6; }
8498aea1d7ffSmrg		if test "$supported" = "yes" ; then
8499aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8500aea1d7ffSmrg			found="yes"
8501aea1d7ffSmrg		fi
8502aea1d7ffSmrg	fi
8503aea1d7ffSmrg
8504aea1d7ffSmrg
8505aea1d7ffSmrg
8506aea1d7ffSmrg
8507aea1d7ffSmrg
8508aea1d7ffSmrg
8509aea1d7ffSmrg
8510aea1d7ffSmrg
8511aea1d7ffSmrg
8512aea1d7ffSmrg
8513aea1d7ffSmrg
8514aea1d7ffSmrg
8515aea1d7ffSmrg
8516aea1d7ffSmrg
8517aea1d7ffSmrg
8518aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8519aea1d7ffSmrg
8520aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8521aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
852258105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
852358105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
852458105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
852558105723Smrgthen :
852658105723Smrg  printf %s "(cached) " >&6
852758105723Smrgelse $as_nop
8528aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529aea1d7ffSmrg/* end confdefs.h.  */
8530aea1d7ffSmrgint i;
8531aea1d7ffSmrg_ACEOF
853258105723Smrgif ac_fn_c_try_compile "$LINENO"
853358105723Smrgthen :
8534aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
853558105723Smrgelse $as_nop
8536aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8537aea1d7ffSmrgfi
853858105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8539aea1d7ffSmrgfi
854058105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
854158105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8542aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8543aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8544aea1d7ffSmrgfi
8545aea1d7ffSmrg
8546aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8547aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8548aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8549aea1d7ffSmrg	fi
8550aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
855158105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
855258105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
855358105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
855458105723Smrgthen :
855558105723Smrg  printf %s "(cached) " >&6
855658105723Smrgelse $as_nop
8557aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558aea1d7ffSmrg/* end confdefs.h.  */
8559aea1d7ffSmrgint i;
8560aea1d7ffSmrg_ACEOF
856158105723Smrgif ac_fn_c_try_compile "$LINENO"
856258105723Smrgthen :
8563aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
856458105723Smrgelse $as_nop
8565aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8566aea1d7ffSmrgfi
856758105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8568aea1d7ffSmrgfi
856958105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
857058105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8571aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8572aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8573aea1d7ffSmrgfi
8574aea1d7ffSmrg
8575aea1d7ffSmrgfound="no"
8576aea1d7ffSmrg
8577aea1d7ffSmrg	if test $found = "no" ; then
8578e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8579aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8580aea1d7ffSmrg		fi
8581aea1d7ffSmrg
8582e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8583aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8584aea1d7ffSmrg		fi
8585aea1d7ffSmrg
8586aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8587aea1d7ffSmrg
858858105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
858958105723Smrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8590e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
859158105723Smrg		if eval test \${$cacheid+y}
859258105723Smrgthen :
859358105723Smrg  printf %s "(cached) " >&6
859458105723Smrgelse $as_nop
8595aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596aea1d7ffSmrg/* end confdefs.h.  */
8597aea1d7ffSmrgint i;
8598aea1d7ffSmrgint
859958105723Smrgmain (void)
8600aea1d7ffSmrg{
8601aea1d7ffSmrg
8602aea1d7ffSmrg  ;
8603aea1d7ffSmrg  return 0;
8604aea1d7ffSmrg}
8605aea1d7ffSmrg_ACEOF
860658105723Smrgif ac_fn_c_try_link "$LINENO"
860758105723Smrgthen :
8608aea1d7ffSmrg  eval $cacheid=yes
860958105723Smrgelse $as_nop
8610aea1d7ffSmrg  eval $cacheid=no
8611aea1d7ffSmrgfi
861258105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8613aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
8614aea1d7ffSmrgfi
8615aea1d7ffSmrg
8616aea1d7ffSmrg
8617aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8618aea1d7ffSmrg
8619aea1d7ffSmrg		eval supported=\$$cacheid
862058105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
862158105723Smrgprintf "%s\n" "$supported" >&6; }
8622aea1d7ffSmrg		if test "$supported" = "yes" ; then
8623aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8624aea1d7ffSmrg			found="yes"
8625aea1d7ffSmrg		fi
8626aea1d7ffSmrg	fi
8627aea1d7ffSmrg
8628aea1d7ffSmrg	if test $found = "no" ; then
8629e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8630aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8631aea1d7ffSmrg		fi
8632aea1d7ffSmrg
8633e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8634aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8635aea1d7ffSmrg		fi
8636aea1d7ffSmrg
8637aea1d7ffSmrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8638aea1d7ffSmrg
863958105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
864058105723Smrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8641e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
864258105723Smrg		if eval test \${$cacheid+y}
864358105723Smrgthen :
864458105723Smrg  printf %s "(cached) " >&6
864558105723Smrgelse $as_nop
8646aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647aea1d7ffSmrg/* end confdefs.h.  */
8648aea1d7ffSmrgint i;
8649aea1d7ffSmrgint
865058105723Smrgmain (void)
8651aea1d7ffSmrg{
8652aea1d7ffSmrg
8653aea1d7ffSmrg  ;
8654aea1d7ffSmrg  return 0;
8655aea1d7ffSmrg}
8656aea1d7ffSmrg_ACEOF
865758105723Smrgif ac_fn_c_try_link "$LINENO"
865858105723Smrgthen :
8659aea1d7ffSmrg  eval $cacheid=yes
866058105723Smrgelse $as_nop
8661aea1d7ffSmrg  eval $cacheid=no
8662aea1d7ffSmrgfi
866358105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8664aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
8665aea1d7ffSmrgfi
8666aea1d7ffSmrg
8667aea1d7ffSmrg
8668aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8669aea1d7ffSmrg
8670aea1d7ffSmrg		eval supported=\$$cacheid
867158105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
867258105723Smrgprintf "%s\n" "$supported" >&6; }
8673aea1d7ffSmrg		if test "$supported" = "yes" ; then
8674aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8675aea1d7ffSmrg			found="yes"
8676aea1d7ffSmrg		fi
8677aea1d7ffSmrg	fi
8678aea1d7ffSmrg
8679aea1d7ffSmrg
8680aea1d7ffSmrg
8681aea1d7ffSmrg
8682aea1d7ffSmrg
8683aea1d7ffSmrg
8684aea1d7ffSmrg
8685aea1d7ffSmrg
8686aea1d7ffSmrg
8687aea1d7ffSmrg
8688aea1d7ffSmrg
8689aea1d7ffSmrg
8690aea1d7ffSmrg
8691aea1d7ffSmrg
8692aea1d7ffSmrg
8693aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8694aea1d7ffSmrg
8695aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8696aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
869758105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
869858105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
869958105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
870058105723Smrgthen :
870158105723Smrg  printf %s "(cached) " >&6
870258105723Smrgelse $as_nop
8703aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704aea1d7ffSmrg/* end confdefs.h.  */
8705aea1d7ffSmrgint i;
8706aea1d7ffSmrg_ACEOF
870758105723Smrgif ac_fn_c_try_compile "$LINENO"
870858105723Smrgthen :
8709aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
871058105723Smrgelse $as_nop
8711aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8712aea1d7ffSmrgfi
871358105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8714aea1d7ffSmrgfi
871558105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
871658105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8717aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8718aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8719aea1d7ffSmrgfi
8720aea1d7ffSmrg
8721aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8722aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8723aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8724aea1d7ffSmrg	fi
8725aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
872658105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
872758105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
872858105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
872958105723Smrgthen :
873058105723Smrg  printf %s "(cached) " >&6
873158105723Smrgelse $as_nop
8732aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733aea1d7ffSmrg/* end confdefs.h.  */
8734aea1d7ffSmrgint i;
8735aea1d7ffSmrg_ACEOF
873658105723Smrgif ac_fn_c_try_compile "$LINENO"
873758105723Smrgthen :
8738aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
873958105723Smrgelse $as_nop
8740aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8741aea1d7ffSmrgfi
874258105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8743aea1d7ffSmrgfi
874458105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
874558105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8746aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8747aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8748aea1d7ffSmrgfi
8749aea1d7ffSmrg
8750aea1d7ffSmrgfound="no"
8751aea1d7ffSmrg
8752aea1d7ffSmrg	if test $found = "no" ; then
8753e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8754aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8755aea1d7ffSmrg		fi
8756aea1d7ffSmrg
8757e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8758aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8759aea1d7ffSmrg		fi
8760aea1d7ffSmrg
8761aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8762aea1d7ffSmrg
876358105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
876458105723Smrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8765e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
876658105723Smrg		if eval test \${$cacheid+y}
876758105723Smrgthen :
876858105723Smrg  printf %s "(cached) " >&6
876958105723Smrgelse $as_nop
8770aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771aea1d7ffSmrg/* end confdefs.h.  */
8772aea1d7ffSmrgint i;
8773aea1d7ffSmrgint
877458105723Smrgmain (void)
8775aea1d7ffSmrg{
8776aea1d7ffSmrg
8777aea1d7ffSmrg  ;
8778aea1d7ffSmrg  return 0;
8779aea1d7ffSmrg}
8780aea1d7ffSmrg_ACEOF
878158105723Smrgif ac_fn_c_try_link "$LINENO"
878258105723Smrgthen :
8783aea1d7ffSmrg  eval $cacheid=yes
878458105723Smrgelse $as_nop
8785aea1d7ffSmrg  eval $cacheid=no
8786aea1d7ffSmrgfi
878758105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8788aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
8789aea1d7ffSmrgfi
8790aea1d7ffSmrg
8791aea1d7ffSmrg
8792aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8793aea1d7ffSmrg
8794aea1d7ffSmrg		eval supported=\$$cacheid
879558105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
879658105723Smrgprintf "%s\n" "$supported" >&6; }
8797aea1d7ffSmrg		if test "$supported" = "yes" ; then
8798aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8799aea1d7ffSmrg			found="yes"
8800aea1d7ffSmrg		fi
8801aea1d7ffSmrg	fi
8802aea1d7ffSmrg
8803aea1d7ffSmrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8804aea1d7ffSmrgelse
880558105723Smrg{ 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
880658105723Smrgprintf "%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;}
8807aea1d7ffSmrg
8808aea1d7ffSmrg
8809aea1d7ffSmrg
8810aea1d7ffSmrg
8811aea1d7ffSmrg
8812aea1d7ffSmrg
8813aea1d7ffSmrg
8814aea1d7ffSmrg
8815aea1d7ffSmrg
8816aea1d7ffSmrg
8817aea1d7ffSmrg
8818aea1d7ffSmrg
8819aea1d7ffSmrg
8820aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8821aea1d7ffSmrg
8822aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8823aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
882458105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
882558105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
882658105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
882758105723Smrgthen :
882858105723Smrg  printf %s "(cached) " >&6
882958105723Smrgelse $as_nop
8830aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831aea1d7ffSmrg/* end confdefs.h.  */
8832aea1d7ffSmrgint i;
8833aea1d7ffSmrg_ACEOF
883458105723Smrgif ac_fn_c_try_compile "$LINENO"
883558105723Smrgthen :
8836aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
883758105723Smrgelse $as_nop
8838aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8839aea1d7ffSmrgfi
884058105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8841aea1d7ffSmrgfi
884258105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
884358105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8844aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8845aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8846aea1d7ffSmrgfi
8847aea1d7ffSmrg
8848aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8849aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8850aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8851aea1d7ffSmrg	fi
8852aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
885358105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
885458105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
885558105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
885658105723Smrgthen :
885758105723Smrg  printf %s "(cached) " >&6
885858105723Smrgelse $as_nop
8859aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860aea1d7ffSmrg/* end confdefs.h.  */
8861aea1d7ffSmrgint i;
8862aea1d7ffSmrg_ACEOF
886358105723Smrgif ac_fn_c_try_compile "$LINENO"
886458105723Smrgthen :
8865aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
886658105723Smrgelse $as_nop
8867aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8868aea1d7ffSmrgfi
886958105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8870aea1d7ffSmrgfi
887158105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
887258105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8873aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8874aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8875aea1d7ffSmrgfi
8876aea1d7ffSmrg
8877aea1d7ffSmrgfound="no"
8878aea1d7ffSmrg
8879aea1d7ffSmrg	if test $found = "no" ; then
8880e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8881aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8882aea1d7ffSmrg		fi
8883aea1d7ffSmrg
8884e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8885aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8886aea1d7ffSmrg		fi
8887aea1d7ffSmrg
8888aea1d7ffSmrg		CFLAGS="$CFLAGS -Wimplicit"
8889aea1d7ffSmrg
889058105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
889158105723Smrgprintf %s "checking if $CC supports -Wimplicit... " >&6; }
8892aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wimplicit
889358105723Smrg		if eval test \${$cacheid+y}
889458105723Smrgthen :
889558105723Smrg  printf %s "(cached) " >&6
889658105723Smrgelse $as_nop
8897aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898aea1d7ffSmrg/* end confdefs.h.  */
8899aea1d7ffSmrgint i;
8900aea1d7ffSmrgint
890158105723Smrgmain (void)
8902aea1d7ffSmrg{
8903aea1d7ffSmrg
8904aea1d7ffSmrg  ;
8905aea1d7ffSmrg  return 0;
8906aea1d7ffSmrg}
8907aea1d7ffSmrg_ACEOF
890858105723Smrgif ac_fn_c_try_link "$LINENO"
890958105723Smrgthen :
8910aea1d7ffSmrg  eval $cacheid=yes
891158105723Smrgelse $as_nop
8912aea1d7ffSmrg  eval $cacheid=no
8913aea1d7ffSmrgfi
891458105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8915aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
8916aea1d7ffSmrgfi
8917aea1d7ffSmrg
8918aea1d7ffSmrg
8919aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8920aea1d7ffSmrg
8921aea1d7ffSmrg		eval supported=\$$cacheid
892258105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
892358105723Smrgprintf "%s\n" "$supported" >&6; }
8924aea1d7ffSmrg		if test "$supported" = "yes" ; then
8925aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8926aea1d7ffSmrg			found="yes"
8927aea1d7ffSmrg		fi
8928aea1d7ffSmrg	fi
8929aea1d7ffSmrg
8930aea1d7ffSmrg
8931aea1d7ffSmrg
8932aea1d7ffSmrg
8933aea1d7ffSmrg
8934aea1d7ffSmrg
8935aea1d7ffSmrg
8936aea1d7ffSmrg
8937aea1d7ffSmrg
8938aea1d7ffSmrg
8939aea1d7ffSmrg
8940aea1d7ffSmrg
8941aea1d7ffSmrg
8942aea1d7ffSmrg
8943aea1d7ffSmrg
8944aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8945aea1d7ffSmrg
8946aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8947aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
894858105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
894958105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
895058105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
895158105723Smrgthen :
895258105723Smrg  printf %s "(cached) " >&6
895358105723Smrgelse $as_nop
8954aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955aea1d7ffSmrg/* end confdefs.h.  */
8956aea1d7ffSmrgint i;
8957aea1d7ffSmrg_ACEOF
895858105723Smrgif ac_fn_c_try_compile "$LINENO"
895958105723Smrgthen :
8960aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
896158105723Smrgelse $as_nop
8962aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8963aea1d7ffSmrgfi
896458105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8965aea1d7ffSmrgfi
896658105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
896758105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8968aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8969aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8970aea1d7ffSmrgfi
8971aea1d7ffSmrg
8972aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8973aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8974aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8975aea1d7ffSmrg	fi
8976aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
897758105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
897858105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
897958105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
898058105723Smrgthen :
898158105723Smrg  printf %s "(cached) " >&6
898258105723Smrgelse $as_nop
8983aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984aea1d7ffSmrg/* end confdefs.h.  */
8985aea1d7ffSmrgint i;
8986aea1d7ffSmrg_ACEOF
898758105723Smrgif ac_fn_c_try_compile "$LINENO"
898858105723Smrgthen :
8989aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
899058105723Smrgelse $as_nop
8991aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8992aea1d7ffSmrgfi
899358105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8994aea1d7ffSmrgfi
899558105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
899658105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8997aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8998aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8999aea1d7ffSmrgfi
9000aea1d7ffSmrg
9001aea1d7ffSmrgfound="no"
9002aea1d7ffSmrg
9003aea1d7ffSmrg	if test $found = "no" ; then
9004e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9005aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9006aea1d7ffSmrg		fi
9007aea1d7ffSmrg
9008e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9009aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9010aea1d7ffSmrg		fi
9011aea1d7ffSmrg
9012aea1d7ffSmrg		CFLAGS="$CFLAGS -Wnonnull"
9013aea1d7ffSmrg
901458105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
901558105723Smrgprintf %s "checking if $CC supports -Wnonnull... " >&6; }
9016aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wnonnull
901758105723Smrg		if eval test \${$cacheid+y}
901858105723Smrgthen :
901958105723Smrg  printf %s "(cached) " >&6
902058105723Smrgelse $as_nop
9021aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022aea1d7ffSmrg/* end confdefs.h.  */
9023aea1d7ffSmrgint i;
9024aea1d7ffSmrgint
902558105723Smrgmain (void)
9026aea1d7ffSmrg{
9027aea1d7ffSmrg
9028aea1d7ffSmrg  ;
9029aea1d7ffSmrg  return 0;
9030aea1d7ffSmrg}
9031aea1d7ffSmrg_ACEOF
903258105723Smrgif ac_fn_c_try_link "$LINENO"
903358105723Smrgthen :
9034aea1d7ffSmrg  eval $cacheid=yes
903558105723Smrgelse $as_nop
9036aea1d7ffSmrg  eval $cacheid=no
9037aea1d7ffSmrgfi
903858105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9039aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
9040aea1d7ffSmrgfi
9041aea1d7ffSmrg
9042aea1d7ffSmrg
9043aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9044aea1d7ffSmrg
9045aea1d7ffSmrg		eval supported=\$$cacheid
904658105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
904758105723Smrgprintf "%s\n" "$supported" >&6; }
9048aea1d7ffSmrg		if test "$supported" = "yes" ; then
9049aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9050aea1d7ffSmrg			found="yes"
9051aea1d7ffSmrg		fi
9052aea1d7ffSmrg	fi
9053aea1d7ffSmrg
9054aea1d7ffSmrg
9055aea1d7ffSmrg
9056aea1d7ffSmrg
9057aea1d7ffSmrg
9058aea1d7ffSmrg
9059aea1d7ffSmrg
9060aea1d7ffSmrg
9061aea1d7ffSmrg
9062aea1d7ffSmrg
9063aea1d7ffSmrg
9064aea1d7ffSmrg
9065aea1d7ffSmrg
9066aea1d7ffSmrg
9067aea1d7ffSmrg
9068aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9069aea1d7ffSmrg
9070aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9071aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
907258105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
907358105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
907458105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
907558105723Smrgthen :
907658105723Smrg  printf %s "(cached) " >&6
907758105723Smrgelse $as_nop
9078aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079aea1d7ffSmrg/* end confdefs.h.  */
9080aea1d7ffSmrgint i;
9081aea1d7ffSmrg_ACEOF
908258105723Smrgif ac_fn_c_try_compile "$LINENO"
908358105723Smrgthen :
9084aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
908558105723Smrgelse $as_nop
9086aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9087aea1d7ffSmrgfi
908858105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9089aea1d7ffSmrgfi
909058105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
909158105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9092aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9093aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9094aea1d7ffSmrgfi
9095aea1d7ffSmrg
9096aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9097aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9098aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9099aea1d7ffSmrg	fi
9100aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
910158105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
910258105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
910358105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
910458105723Smrgthen :
910558105723Smrg  printf %s "(cached) " >&6
910658105723Smrgelse $as_nop
9107aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108aea1d7ffSmrg/* end confdefs.h.  */
9109aea1d7ffSmrgint i;
9110aea1d7ffSmrg_ACEOF
911158105723Smrgif ac_fn_c_try_compile "$LINENO"
911258105723Smrgthen :
9113aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
911458105723Smrgelse $as_nop
9115aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9116aea1d7ffSmrgfi
911758105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9118aea1d7ffSmrgfi
911958105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
912058105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9121aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9122aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9123aea1d7ffSmrgfi
9124aea1d7ffSmrg
9125aea1d7ffSmrgfound="no"
9126aea1d7ffSmrg
9127aea1d7ffSmrg	if test $found = "no" ; then
9128e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9129aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9130aea1d7ffSmrg		fi
9131aea1d7ffSmrg
9132e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9133aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9134aea1d7ffSmrg		fi
9135aea1d7ffSmrg
9136aea1d7ffSmrg		CFLAGS="$CFLAGS -Winit-self"
9137aea1d7ffSmrg
913858105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
913958105723Smrgprintf %s "checking if $CC supports -Winit-self... " >&6; }
9140aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Winit_self
914158105723Smrg		if eval test \${$cacheid+y}
914258105723Smrgthen :
914358105723Smrg  printf %s "(cached) " >&6
914458105723Smrgelse $as_nop
9145aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146aea1d7ffSmrg/* end confdefs.h.  */
9147aea1d7ffSmrgint i;
9148aea1d7ffSmrgint
914958105723Smrgmain (void)
9150aea1d7ffSmrg{
9151aea1d7ffSmrg
9152aea1d7ffSmrg  ;
9153aea1d7ffSmrg  return 0;
9154aea1d7ffSmrg}
9155aea1d7ffSmrg_ACEOF
915658105723Smrgif ac_fn_c_try_link "$LINENO"
915758105723Smrgthen :
9158aea1d7ffSmrg  eval $cacheid=yes
915958105723Smrgelse $as_nop
9160aea1d7ffSmrg  eval $cacheid=no
9161aea1d7ffSmrgfi
916258105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9163aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
9164aea1d7ffSmrgfi
9165aea1d7ffSmrg
9166aea1d7ffSmrg
9167aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9168aea1d7ffSmrg
9169aea1d7ffSmrg		eval supported=\$$cacheid
917058105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
917158105723Smrgprintf "%s\n" "$supported" >&6; }
9172aea1d7ffSmrg		if test "$supported" = "yes" ; then
9173aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9174aea1d7ffSmrg			found="yes"
9175aea1d7ffSmrg		fi
9176aea1d7ffSmrg	fi
9177aea1d7ffSmrg
9178aea1d7ffSmrg
9179aea1d7ffSmrg
9180aea1d7ffSmrg
9181aea1d7ffSmrg
9182aea1d7ffSmrg
9183aea1d7ffSmrg
9184aea1d7ffSmrg
9185aea1d7ffSmrg
9186aea1d7ffSmrg
9187aea1d7ffSmrg
9188aea1d7ffSmrg
9189aea1d7ffSmrg
9190aea1d7ffSmrg
9191aea1d7ffSmrg
9192aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9193aea1d7ffSmrg
9194aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9195aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
919658105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
919758105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
919858105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
919958105723Smrgthen :
920058105723Smrg  printf %s "(cached) " >&6
920158105723Smrgelse $as_nop
9202aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203aea1d7ffSmrg/* end confdefs.h.  */
9204aea1d7ffSmrgint i;
9205aea1d7ffSmrg_ACEOF
920658105723Smrgif ac_fn_c_try_compile "$LINENO"
920758105723Smrgthen :
9208aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
920958105723Smrgelse $as_nop
9210aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9211aea1d7ffSmrgfi
921258105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9213aea1d7ffSmrgfi
921458105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
921558105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9216aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9217aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9218aea1d7ffSmrgfi
9219aea1d7ffSmrg
9220aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9221aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9222aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9223aea1d7ffSmrg	fi
9224aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
922558105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
922658105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
922758105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
922858105723Smrgthen :
922958105723Smrg  printf %s "(cached) " >&6
923058105723Smrgelse $as_nop
9231aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232aea1d7ffSmrg/* end confdefs.h.  */
9233aea1d7ffSmrgint i;
9234aea1d7ffSmrg_ACEOF
923558105723Smrgif ac_fn_c_try_compile "$LINENO"
923658105723Smrgthen :
9237aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
923858105723Smrgelse $as_nop
9239aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9240aea1d7ffSmrgfi
924158105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9242aea1d7ffSmrgfi
924358105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
924458105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9245aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9246aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9247aea1d7ffSmrgfi
9248aea1d7ffSmrg
9249aea1d7ffSmrgfound="no"
9250aea1d7ffSmrg
9251aea1d7ffSmrg	if test $found = "no" ; then
9252e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9253aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9254aea1d7ffSmrg		fi
9255aea1d7ffSmrg
9256e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9257aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9258aea1d7ffSmrg		fi
9259aea1d7ffSmrg
9260aea1d7ffSmrg		CFLAGS="$CFLAGS -Wmain"
9261aea1d7ffSmrg
926258105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
926358105723Smrgprintf %s "checking if $CC supports -Wmain... " >&6; }
9264aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wmain
926558105723Smrg		if eval test \${$cacheid+y}
926658105723Smrgthen :
926758105723Smrg  printf %s "(cached) " >&6
926858105723Smrgelse $as_nop
9269aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270aea1d7ffSmrg/* end confdefs.h.  */
9271aea1d7ffSmrgint i;
9272aea1d7ffSmrgint
927358105723Smrgmain (void)
9274aea1d7ffSmrg{
9275aea1d7ffSmrg
9276aea1d7ffSmrg  ;
9277aea1d7ffSmrg  return 0;
9278aea1d7ffSmrg}
9279aea1d7ffSmrg_ACEOF
928058105723Smrgif ac_fn_c_try_link "$LINENO"
928158105723Smrgthen :
9282aea1d7ffSmrg  eval $cacheid=yes
928358105723Smrgelse $as_nop
9284aea1d7ffSmrg  eval $cacheid=no
9285aea1d7ffSmrgfi
928658105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9287aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
9288aea1d7ffSmrgfi
9289aea1d7ffSmrg
9290aea1d7ffSmrg
9291aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9292aea1d7ffSmrg
9293aea1d7ffSmrg		eval supported=\$$cacheid
929458105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
929558105723Smrgprintf "%s\n" "$supported" >&6; }
9296aea1d7ffSmrg		if test "$supported" = "yes" ; then
9297aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9298aea1d7ffSmrg			found="yes"
9299aea1d7ffSmrg		fi
9300aea1d7ffSmrg	fi
9301aea1d7ffSmrg
9302aea1d7ffSmrg
9303aea1d7ffSmrg
9304aea1d7ffSmrg
9305aea1d7ffSmrg
9306aea1d7ffSmrg
9307aea1d7ffSmrg
9308aea1d7ffSmrg
9309aea1d7ffSmrg
9310aea1d7ffSmrg
9311aea1d7ffSmrg
9312aea1d7ffSmrg
9313aea1d7ffSmrg
9314aea1d7ffSmrg
9315aea1d7ffSmrg
9316aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9317aea1d7ffSmrg
9318aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9319aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
932058105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
932158105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
932258105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
932358105723Smrgthen :
932458105723Smrg  printf %s "(cached) " >&6
932558105723Smrgelse $as_nop
9326aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327aea1d7ffSmrg/* end confdefs.h.  */
9328aea1d7ffSmrgint i;
9329aea1d7ffSmrg_ACEOF
933058105723Smrgif ac_fn_c_try_compile "$LINENO"
933158105723Smrgthen :
9332aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
933358105723Smrgelse $as_nop
9334aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9335aea1d7ffSmrgfi
933658105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9337aea1d7ffSmrgfi
933858105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
933958105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9340aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9341aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9342aea1d7ffSmrgfi
9343aea1d7ffSmrg
9344aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9345aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9346aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9347aea1d7ffSmrg	fi
9348aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
934958105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
935058105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
935158105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
935258105723Smrgthen :
935358105723Smrg  printf %s "(cached) " >&6
935458105723Smrgelse $as_nop
9355aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356aea1d7ffSmrg/* end confdefs.h.  */
9357aea1d7ffSmrgint i;
9358aea1d7ffSmrg_ACEOF
935958105723Smrgif ac_fn_c_try_compile "$LINENO"
936058105723Smrgthen :
9361aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
936258105723Smrgelse $as_nop
9363aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9364aea1d7ffSmrgfi
936558105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9366aea1d7ffSmrgfi
936758105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
936858105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9369aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9370aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9371aea1d7ffSmrgfi
9372aea1d7ffSmrg
9373aea1d7ffSmrgfound="no"
9374aea1d7ffSmrg
9375aea1d7ffSmrg	if test $found = "no" ; then
9376e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9377aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9378aea1d7ffSmrg		fi
9379aea1d7ffSmrg
9380e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9381aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9382aea1d7ffSmrg		fi
9383aea1d7ffSmrg
9384aea1d7ffSmrg		CFLAGS="$CFLAGS -Wmissing-braces"
9385aea1d7ffSmrg
938658105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
938758105723Smrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9388aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
938958105723Smrg		if eval test \${$cacheid+y}
939058105723Smrgthen :
939158105723Smrg  printf %s "(cached) " >&6
939258105723Smrgelse $as_nop
9393aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394aea1d7ffSmrg/* end confdefs.h.  */
9395aea1d7ffSmrgint i;
9396aea1d7ffSmrgint
939758105723Smrgmain (void)
9398aea1d7ffSmrg{
9399aea1d7ffSmrg
9400aea1d7ffSmrg  ;
9401aea1d7ffSmrg  return 0;
9402aea1d7ffSmrg}
9403aea1d7ffSmrg_ACEOF
940458105723Smrgif ac_fn_c_try_link "$LINENO"
940558105723Smrgthen :
9406aea1d7ffSmrg  eval $cacheid=yes
940758105723Smrgelse $as_nop
9408aea1d7ffSmrg  eval $cacheid=no
9409aea1d7ffSmrgfi
941058105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9411aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
9412aea1d7ffSmrgfi
9413aea1d7ffSmrg
9414aea1d7ffSmrg
9415aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9416aea1d7ffSmrg
9417aea1d7ffSmrg		eval supported=\$$cacheid
941858105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
941958105723Smrgprintf "%s\n" "$supported" >&6; }
9420aea1d7ffSmrg		if test "$supported" = "yes" ; then
9421aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9422aea1d7ffSmrg			found="yes"
9423aea1d7ffSmrg		fi
9424aea1d7ffSmrg	fi
9425aea1d7ffSmrg
9426aea1d7ffSmrg
9427aea1d7ffSmrg
9428aea1d7ffSmrg
9429aea1d7ffSmrg
9430aea1d7ffSmrg
9431aea1d7ffSmrg
9432aea1d7ffSmrg
9433aea1d7ffSmrg
9434aea1d7ffSmrg
9435aea1d7ffSmrg
9436aea1d7ffSmrg
9437aea1d7ffSmrg
9438aea1d7ffSmrg
9439aea1d7ffSmrg
9440aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9441aea1d7ffSmrg
9442aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9443aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
944458105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
944558105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
944658105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
944758105723Smrgthen :
944858105723Smrg  printf %s "(cached) " >&6
944958105723Smrgelse $as_nop
9450aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451aea1d7ffSmrg/* end confdefs.h.  */
9452aea1d7ffSmrgint i;
9453aea1d7ffSmrg_ACEOF
945458105723Smrgif ac_fn_c_try_compile "$LINENO"
945558105723Smrgthen :
9456aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
945758105723Smrgelse $as_nop
9458aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9459aea1d7ffSmrgfi
946058105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9461aea1d7ffSmrgfi
946258105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
946358105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9464aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9465aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9466aea1d7ffSmrgfi
9467aea1d7ffSmrg
9468aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9469aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9470aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9471aea1d7ffSmrg	fi
9472aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
947358105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
947458105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
947558105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
947658105723Smrgthen :
947758105723Smrg  printf %s "(cached) " >&6
947858105723Smrgelse $as_nop
9479aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9480aea1d7ffSmrg/* end confdefs.h.  */
9481aea1d7ffSmrgint i;
9482aea1d7ffSmrg_ACEOF
948358105723Smrgif ac_fn_c_try_compile "$LINENO"
948458105723Smrgthen :
9485aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
948658105723Smrgelse $as_nop
9487aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9488aea1d7ffSmrgfi
948958105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9490aea1d7ffSmrgfi
949158105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
949258105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9493aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9494aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9495aea1d7ffSmrgfi
9496aea1d7ffSmrg
9497aea1d7ffSmrgfound="no"
9498aea1d7ffSmrg
9499aea1d7ffSmrg	if test $found = "no" ; then
9500e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9501aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9502aea1d7ffSmrg		fi
9503aea1d7ffSmrg
9504e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9505aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9506aea1d7ffSmrg		fi
9507aea1d7ffSmrg
9508aea1d7ffSmrg		CFLAGS="$CFLAGS -Wsequence-point"
9509aea1d7ffSmrg
951058105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
951158105723Smrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; }
9512aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wsequence_point
951358105723Smrg		if eval test \${$cacheid+y}
951458105723Smrgthen :
951558105723Smrg  printf %s "(cached) " >&6
951658105723Smrgelse $as_nop
9517aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518aea1d7ffSmrg/* end confdefs.h.  */
9519aea1d7ffSmrgint i;
9520aea1d7ffSmrgint
952158105723Smrgmain (void)
9522aea1d7ffSmrg{
9523aea1d7ffSmrg
9524aea1d7ffSmrg  ;
9525aea1d7ffSmrg  return 0;
9526aea1d7ffSmrg}
9527aea1d7ffSmrg_ACEOF
952858105723Smrgif ac_fn_c_try_link "$LINENO"
952958105723Smrgthen :
9530aea1d7ffSmrg  eval $cacheid=yes
953158105723Smrgelse $as_nop
9532aea1d7ffSmrg  eval $cacheid=no
9533aea1d7ffSmrgfi
953458105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9535aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
9536aea1d7ffSmrgfi
9537aea1d7ffSmrg
9538aea1d7ffSmrg
9539aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9540aea1d7ffSmrg
9541aea1d7ffSmrg		eval supported=\$$cacheid
954258105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
954358105723Smrgprintf "%s\n" "$supported" >&6; }
9544aea1d7ffSmrg		if test "$supported" = "yes" ; then
9545aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9546aea1d7ffSmrg			found="yes"
9547aea1d7ffSmrg		fi
9548aea1d7ffSmrg	fi
9549aea1d7ffSmrg
9550aea1d7ffSmrg
9551aea1d7ffSmrg
9552aea1d7ffSmrg
9553aea1d7ffSmrg
9554aea1d7ffSmrg
9555aea1d7ffSmrg
9556aea1d7ffSmrg
9557aea1d7ffSmrg
9558aea1d7ffSmrg
9559aea1d7ffSmrg
9560aea1d7ffSmrg
9561aea1d7ffSmrg
9562aea1d7ffSmrg
9563aea1d7ffSmrg
9564aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9565aea1d7ffSmrg
9566aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9567aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
956858105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
956958105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
957058105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
957158105723Smrgthen :
957258105723Smrg  printf %s "(cached) " >&6
957358105723Smrgelse $as_nop
9574aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575aea1d7ffSmrg/* end confdefs.h.  */
9576aea1d7ffSmrgint i;
9577aea1d7ffSmrg_ACEOF
957858105723Smrgif ac_fn_c_try_compile "$LINENO"
957958105723Smrgthen :
9580aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
958158105723Smrgelse $as_nop
9582aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9583aea1d7ffSmrgfi
958458105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9585aea1d7ffSmrgfi
958658105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
958758105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9588aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9589aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9590aea1d7ffSmrgfi
9591aea1d7ffSmrg
9592aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9593aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9594aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9595aea1d7ffSmrg	fi
9596aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
959758105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
959858105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
959958105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
960058105723Smrgthen :
960158105723Smrg  printf %s "(cached) " >&6
960258105723Smrgelse $as_nop
9603aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604aea1d7ffSmrg/* end confdefs.h.  */
9605aea1d7ffSmrgint i;
9606aea1d7ffSmrg_ACEOF
960758105723Smrgif ac_fn_c_try_compile "$LINENO"
960858105723Smrgthen :
9609aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
961058105723Smrgelse $as_nop
9611aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9612aea1d7ffSmrgfi
961358105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9614aea1d7ffSmrgfi
961558105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
961658105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9617aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9618aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9619aea1d7ffSmrgfi
9620aea1d7ffSmrg
9621aea1d7ffSmrgfound="no"
9622aea1d7ffSmrg
9623aea1d7ffSmrg	if test $found = "no" ; then
9624e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9625aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9626aea1d7ffSmrg		fi
9627aea1d7ffSmrg
9628e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9629aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9630aea1d7ffSmrg		fi
9631aea1d7ffSmrg
9632aea1d7ffSmrg		CFLAGS="$CFLAGS -Wreturn-type"
9633aea1d7ffSmrg
963458105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
963558105723Smrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; }
9636aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wreturn_type
963758105723Smrg		if eval test \${$cacheid+y}
963858105723Smrgthen :
963958105723Smrg  printf %s "(cached) " >&6
964058105723Smrgelse $as_nop
9641aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642aea1d7ffSmrg/* end confdefs.h.  */
9643aea1d7ffSmrgint i;
9644aea1d7ffSmrgint
964558105723Smrgmain (void)
9646aea1d7ffSmrg{
9647aea1d7ffSmrg
9648aea1d7ffSmrg  ;
9649aea1d7ffSmrg  return 0;
9650aea1d7ffSmrg}
9651aea1d7ffSmrg_ACEOF
965258105723Smrgif ac_fn_c_try_link "$LINENO"
965358105723Smrgthen :
9654aea1d7ffSmrg  eval $cacheid=yes
965558105723Smrgelse $as_nop
9656aea1d7ffSmrg  eval $cacheid=no
9657aea1d7ffSmrgfi
965858105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9659aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
9660aea1d7ffSmrgfi
9661aea1d7ffSmrg
9662aea1d7ffSmrg
9663aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9664aea1d7ffSmrg
9665aea1d7ffSmrg		eval supported=\$$cacheid
966658105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
966758105723Smrgprintf "%s\n" "$supported" >&6; }
9668aea1d7ffSmrg		if test "$supported" = "yes" ; then
9669aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9670aea1d7ffSmrg			found="yes"
9671aea1d7ffSmrg		fi
9672aea1d7ffSmrg	fi
9673aea1d7ffSmrg
9674aea1d7ffSmrg
9675aea1d7ffSmrg
9676aea1d7ffSmrg
9677aea1d7ffSmrg
9678aea1d7ffSmrg
9679aea1d7ffSmrg
9680aea1d7ffSmrg
9681aea1d7ffSmrg
9682aea1d7ffSmrg
9683aea1d7ffSmrg
9684aea1d7ffSmrg
9685aea1d7ffSmrg
9686aea1d7ffSmrg
9687aea1d7ffSmrg
9688aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9689aea1d7ffSmrg
9690aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9691aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
969258105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
969358105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
969458105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
969558105723Smrgthen :
969658105723Smrg  printf %s "(cached) " >&6
969758105723Smrgelse $as_nop
9698aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699aea1d7ffSmrg/* end confdefs.h.  */
9700aea1d7ffSmrgint i;
9701aea1d7ffSmrg_ACEOF
970258105723Smrgif ac_fn_c_try_compile "$LINENO"
970358105723Smrgthen :
9704aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
970558105723Smrgelse $as_nop
9706aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9707aea1d7ffSmrgfi
970858105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9709aea1d7ffSmrgfi
971058105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
971158105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9712aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9713aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9714aea1d7ffSmrgfi
9715aea1d7ffSmrg
9716aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9717aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9718aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9719aea1d7ffSmrg	fi
9720aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
972158105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
972258105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
972358105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
972458105723Smrgthen :
972558105723Smrg  printf %s "(cached) " >&6
972658105723Smrgelse $as_nop
9727aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728aea1d7ffSmrg/* end confdefs.h.  */
9729aea1d7ffSmrgint i;
9730aea1d7ffSmrg_ACEOF
973158105723Smrgif ac_fn_c_try_compile "$LINENO"
973258105723Smrgthen :
9733aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
973458105723Smrgelse $as_nop
9735aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9736aea1d7ffSmrgfi
973758105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9738aea1d7ffSmrgfi
973958105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
974058105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9741aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9742aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9743aea1d7ffSmrgfi
9744aea1d7ffSmrg
9745aea1d7ffSmrgfound="no"
9746aea1d7ffSmrg
9747aea1d7ffSmrg	if test $found = "no" ; then
9748e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9749aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9750aea1d7ffSmrg		fi
9751aea1d7ffSmrg
9752e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9753aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9754aea1d7ffSmrg		fi
9755aea1d7ffSmrg
9756aea1d7ffSmrg		CFLAGS="$CFLAGS -Wtrigraphs"
9757aea1d7ffSmrg
975858105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
975958105723Smrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9760aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
976158105723Smrg		if eval test \${$cacheid+y}
976258105723Smrgthen :
976358105723Smrg  printf %s "(cached) " >&6
976458105723Smrgelse $as_nop
9765aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766aea1d7ffSmrg/* end confdefs.h.  */
9767aea1d7ffSmrgint i;
9768aea1d7ffSmrgint
976958105723Smrgmain (void)
9770aea1d7ffSmrg{
9771aea1d7ffSmrg
9772aea1d7ffSmrg  ;
9773aea1d7ffSmrg  return 0;
9774aea1d7ffSmrg}
9775aea1d7ffSmrg_ACEOF
977658105723Smrgif ac_fn_c_try_link "$LINENO"
977758105723Smrgthen :
9778aea1d7ffSmrg  eval $cacheid=yes
977958105723Smrgelse $as_nop
9780aea1d7ffSmrg  eval $cacheid=no
9781aea1d7ffSmrgfi
978258105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9783aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
9784aea1d7ffSmrgfi
9785aea1d7ffSmrg
9786aea1d7ffSmrg
9787aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9788aea1d7ffSmrg
9789aea1d7ffSmrg		eval supported=\$$cacheid
979058105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
979158105723Smrgprintf "%s\n" "$supported" >&6; }
9792aea1d7ffSmrg		if test "$supported" = "yes" ; then
9793aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9794aea1d7ffSmrg			found="yes"
9795aea1d7ffSmrg		fi
9796aea1d7ffSmrg	fi
9797aea1d7ffSmrg
9798aea1d7ffSmrg
9799aea1d7ffSmrg
9800aea1d7ffSmrg
9801aea1d7ffSmrg
9802aea1d7ffSmrg
9803aea1d7ffSmrg
9804aea1d7ffSmrg
9805aea1d7ffSmrg
9806aea1d7ffSmrg
9807aea1d7ffSmrg
9808aea1d7ffSmrg
9809aea1d7ffSmrg
9810aea1d7ffSmrg
9811aea1d7ffSmrg
9812aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9813aea1d7ffSmrg
9814aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9815aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
981658105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
981758105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
981858105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
981958105723Smrgthen :
982058105723Smrg  printf %s "(cached) " >&6
982158105723Smrgelse $as_nop
9822aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823aea1d7ffSmrg/* end confdefs.h.  */
9824aea1d7ffSmrgint i;
9825aea1d7ffSmrg_ACEOF
982658105723Smrgif ac_fn_c_try_compile "$LINENO"
982758105723Smrgthen :
9828aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
982958105723Smrgelse $as_nop
9830aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9831aea1d7ffSmrgfi
983258105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9833aea1d7ffSmrgfi
983458105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
983558105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9836aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9837aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9838aea1d7ffSmrgfi
9839aea1d7ffSmrg
9840aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9841aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9842aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9843aea1d7ffSmrg	fi
9844aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
984558105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
984658105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
984758105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
984858105723Smrgthen :
984958105723Smrg  printf %s "(cached) " >&6
985058105723Smrgelse $as_nop
9851aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852aea1d7ffSmrg/* end confdefs.h.  */
9853aea1d7ffSmrgint i;
9854aea1d7ffSmrg_ACEOF
985558105723Smrgif ac_fn_c_try_compile "$LINENO"
985658105723Smrgthen :
9857aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
985858105723Smrgelse $as_nop
9859aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9860aea1d7ffSmrgfi
986158105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9862aea1d7ffSmrgfi
986358105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
986458105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9865aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9866aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9867aea1d7ffSmrgfi
9868aea1d7ffSmrg
9869aea1d7ffSmrgfound="no"
9870aea1d7ffSmrg
9871aea1d7ffSmrg	if test $found = "no" ; then
9872e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9873aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9874aea1d7ffSmrg		fi
9875aea1d7ffSmrg
9876e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9877aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9878aea1d7ffSmrg		fi
9879aea1d7ffSmrg
9880aea1d7ffSmrg		CFLAGS="$CFLAGS -Warray-bounds"
9881aea1d7ffSmrg
988258105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
988358105723Smrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; }
9884aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Warray_bounds
988558105723Smrg		if eval test \${$cacheid+y}
988658105723Smrgthen :
988758105723Smrg  printf %s "(cached) " >&6
988858105723Smrgelse $as_nop
9889aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890aea1d7ffSmrg/* end confdefs.h.  */
9891aea1d7ffSmrgint i;
9892aea1d7ffSmrgint
989358105723Smrgmain (void)
9894aea1d7ffSmrg{
9895aea1d7ffSmrg
9896aea1d7ffSmrg  ;
9897aea1d7ffSmrg  return 0;
9898aea1d7ffSmrg}
9899aea1d7ffSmrg_ACEOF
990058105723Smrgif ac_fn_c_try_link "$LINENO"
990158105723Smrgthen :
9902aea1d7ffSmrg  eval $cacheid=yes
990358105723Smrgelse $as_nop
9904aea1d7ffSmrg  eval $cacheid=no
9905aea1d7ffSmrgfi
990658105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9907aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
9908aea1d7ffSmrgfi
9909aea1d7ffSmrg
9910aea1d7ffSmrg
9911aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9912aea1d7ffSmrg
9913aea1d7ffSmrg		eval supported=\$$cacheid
991458105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
991558105723Smrgprintf "%s\n" "$supported" >&6; }
9916aea1d7ffSmrg		if test "$supported" = "yes" ; then
9917aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9918aea1d7ffSmrg			found="yes"
9919aea1d7ffSmrg		fi
9920aea1d7ffSmrg	fi
9921aea1d7ffSmrg
9922aea1d7ffSmrg
9923aea1d7ffSmrg
9924aea1d7ffSmrg
9925aea1d7ffSmrg
9926aea1d7ffSmrg
9927aea1d7ffSmrg
9928aea1d7ffSmrg
9929aea1d7ffSmrg
9930aea1d7ffSmrg
9931aea1d7ffSmrg
9932aea1d7ffSmrg
9933aea1d7ffSmrg
9934aea1d7ffSmrg
9935aea1d7ffSmrg
9936aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9937aea1d7ffSmrg
9938aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9939aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
994058105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
994158105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
994258105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
994358105723Smrgthen :
994458105723Smrg  printf %s "(cached) " >&6
994558105723Smrgelse $as_nop
9946aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947aea1d7ffSmrg/* end confdefs.h.  */
9948aea1d7ffSmrgint i;
9949aea1d7ffSmrg_ACEOF
995058105723Smrgif ac_fn_c_try_compile "$LINENO"
995158105723Smrgthen :
9952aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
995358105723Smrgelse $as_nop
9954aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9955aea1d7ffSmrgfi
995658105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9957aea1d7ffSmrgfi
995858105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
995958105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9960aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9961aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9962aea1d7ffSmrgfi
9963aea1d7ffSmrg
9964aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9965aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9966aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9967aea1d7ffSmrg	fi
9968aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
996958105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
997058105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
997158105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
997258105723Smrgthen :
997358105723Smrg  printf %s "(cached) " >&6
997458105723Smrgelse $as_nop
9975aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9976aea1d7ffSmrg/* end confdefs.h.  */
9977aea1d7ffSmrgint i;
9978aea1d7ffSmrg_ACEOF
997958105723Smrgif ac_fn_c_try_compile "$LINENO"
998058105723Smrgthen :
9981aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
998258105723Smrgelse $as_nop
9983aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9984aea1d7ffSmrgfi
998558105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9986aea1d7ffSmrgfi
998758105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
998858105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9989aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9990aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9991aea1d7ffSmrgfi
9992aea1d7ffSmrg
9993aea1d7ffSmrgfound="no"
9994aea1d7ffSmrg
9995aea1d7ffSmrg	if test $found = "no" ; then
9996e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9997aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9998aea1d7ffSmrg		fi
9999aea1d7ffSmrg
10000e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10001aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10002aea1d7ffSmrg		fi
10003aea1d7ffSmrg
10004aea1d7ffSmrg		CFLAGS="$CFLAGS -Wwrite-strings"
10005aea1d7ffSmrg
1000658105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
1000758105723Smrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10008aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
1000958105723Smrg		if eval test \${$cacheid+y}
1001058105723Smrgthen :
1001158105723Smrg  printf %s "(cached) " >&6
1001258105723Smrgelse $as_nop
10013aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014aea1d7ffSmrg/* end confdefs.h.  */
10015aea1d7ffSmrgint i;
10016aea1d7ffSmrgint
1001758105723Smrgmain (void)
10018aea1d7ffSmrg{
10019aea1d7ffSmrg
10020aea1d7ffSmrg  ;
10021aea1d7ffSmrg  return 0;
10022aea1d7ffSmrg}
10023aea1d7ffSmrg_ACEOF
1002458105723Smrgif ac_fn_c_try_link "$LINENO"
1002558105723Smrgthen :
10026aea1d7ffSmrg  eval $cacheid=yes
1002758105723Smrgelse $as_nop
10028aea1d7ffSmrg  eval $cacheid=no
10029aea1d7ffSmrgfi
1003058105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10031aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
10032aea1d7ffSmrgfi
10033aea1d7ffSmrg
10034aea1d7ffSmrg
10035aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10036aea1d7ffSmrg
10037aea1d7ffSmrg		eval supported=\$$cacheid
1003858105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1003958105723Smrgprintf "%s\n" "$supported" >&6; }
10040aea1d7ffSmrg		if test "$supported" = "yes" ; then
10041aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10042aea1d7ffSmrg			found="yes"
10043aea1d7ffSmrg		fi
10044aea1d7ffSmrg	fi
10045aea1d7ffSmrg
10046aea1d7ffSmrg
10047aea1d7ffSmrg
10048aea1d7ffSmrg
10049aea1d7ffSmrg
10050aea1d7ffSmrg
10051aea1d7ffSmrg
10052aea1d7ffSmrg
10053aea1d7ffSmrg
10054aea1d7ffSmrg
10055aea1d7ffSmrg
10056aea1d7ffSmrg
10057aea1d7ffSmrg
10058aea1d7ffSmrg
10059aea1d7ffSmrg
10060aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10061aea1d7ffSmrg
10062aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10063aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1006458105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1006558105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1006658105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
1006758105723Smrgthen :
1006858105723Smrg  printf %s "(cached) " >&6
1006958105723Smrgelse $as_nop
10070aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071aea1d7ffSmrg/* end confdefs.h.  */
10072aea1d7ffSmrgint i;
10073aea1d7ffSmrg_ACEOF
1007458105723Smrgif ac_fn_c_try_compile "$LINENO"
1007558105723Smrgthen :
10076aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
1007758105723Smrgelse $as_nop
10078aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
10079aea1d7ffSmrgfi
1008058105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10081aea1d7ffSmrgfi
1008258105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1008358105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10084aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10085aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10086aea1d7ffSmrgfi
10087aea1d7ffSmrg
10088aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10089aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10090aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10091aea1d7ffSmrg	fi
10092aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1009358105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1009458105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1009558105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
1009658105723Smrgthen :
1009758105723Smrg  printf %s "(cached) " >&6
1009858105723Smrgelse $as_nop
10099aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100aea1d7ffSmrg/* end confdefs.h.  */
10101aea1d7ffSmrgint i;
10102aea1d7ffSmrg_ACEOF
1010358105723Smrgif ac_fn_c_try_compile "$LINENO"
1010458105723Smrgthen :
10105aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1010658105723Smrgelse $as_nop
10107aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
10108aea1d7ffSmrgfi
1010958105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10110aea1d7ffSmrgfi
1011158105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1011258105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10113aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10114aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10115aea1d7ffSmrgfi
10116aea1d7ffSmrg
10117aea1d7ffSmrgfound="no"
10118aea1d7ffSmrg
10119aea1d7ffSmrg	if test $found = "no" ; then
10120e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10121aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10122aea1d7ffSmrg		fi
10123aea1d7ffSmrg
10124e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10125aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10126aea1d7ffSmrg		fi
10127aea1d7ffSmrg
10128aea1d7ffSmrg		CFLAGS="$CFLAGS -Waddress"
10129aea1d7ffSmrg
1013058105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
1013158105723Smrgprintf %s "checking if $CC supports -Waddress... " >&6; }
10132aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Waddress
1013358105723Smrg		if eval test \${$cacheid+y}
1013458105723Smrgthen :
1013558105723Smrg  printf %s "(cached) " >&6
1013658105723Smrgelse $as_nop
10137aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138aea1d7ffSmrg/* end confdefs.h.  */
10139aea1d7ffSmrgint i;
10140aea1d7ffSmrgint
1014158105723Smrgmain (void)
10142aea1d7ffSmrg{
10143aea1d7ffSmrg
10144aea1d7ffSmrg  ;
10145aea1d7ffSmrg  return 0;
10146aea1d7ffSmrg}
10147aea1d7ffSmrg_ACEOF
1014858105723Smrgif ac_fn_c_try_link "$LINENO"
1014958105723Smrgthen :
10150aea1d7ffSmrg  eval $cacheid=yes
1015158105723Smrgelse $as_nop
10152aea1d7ffSmrg  eval $cacheid=no
10153aea1d7ffSmrgfi
1015458105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10155aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
10156aea1d7ffSmrgfi
10157aea1d7ffSmrg
10158aea1d7ffSmrg
10159aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10160aea1d7ffSmrg
10161aea1d7ffSmrg		eval supported=\$$cacheid
1016258105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1016358105723Smrgprintf "%s\n" "$supported" >&6; }
10164aea1d7ffSmrg		if test "$supported" = "yes" ; then
10165aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10166aea1d7ffSmrg			found="yes"
10167aea1d7ffSmrg		fi
10168aea1d7ffSmrg	fi
10169aea1d7ffSmrg
10170aea1d7ffSmrg
10171aea1d7ffSmrg
10172aea1d7ffSmrg
10173aea1d7ffSmrg
10174aea1d7ffSmrg
10175aea1d7ffSmrg
10176aea1d7ffSmrg
10177aea1d7ffSmrg
10178aea1d7ffSmrg
10179aea1d7ffSmrg
10180aea1d7ffSmrg
10181aea1d7ffSmrg
10182aea1d7ffSmrg
10183aea1d7ffSmrg
10184aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10185aea1d7ffSmrg
10186aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10187aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1018858105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1018958105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1019058105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
1019158105723Smrgthen :
1019258105723Smrg  printf %s "(cached) " >&6
1019358105723Smrgelse $as_nop
10194aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195aea1d7ffSmrg/* end confdefs.h.  */
10196aea1d7ffSmrgint i;
10197aea1d7ffSmrg_ACEOF
1019858105723Smrgif ac_fn_c_try_compile "$LINENO"
1019958105723Smrgthen :
10200aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
1020158105723Smrgelse $as_nop
10202aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
10203aea1d7ffSmrgfi
1020458105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10205aea1d7ffSmrgfi
1020658105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1020758105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10208aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10209aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10210aea1d7ffSmrgfi
10211aea1d7ffSmrg
10212aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10213aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10214aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10215aea1d7ffSmrg	fi
10216aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1021758105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1021858105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1021958105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
1022058105723Smrgthen :
1022158105723Smrg  printf %s "(cached) " >&6
1022258105723Smrgelse $as_nop
10223aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224aea1d7ffSmrg/* end confdefs.h.  */
10225aea1d7ffSmrgint i;
10226aea1d7ffSmrg_ACEOF
1022758105723Smrgif ac_fn_c_try_compile "$LINENO"
1022858105723Smrgthen :
10229aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1023058105723Smrgelse $as_nop
10231aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
10232aea1d7ffSmrgfi
1023358105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10234aea1d7ffSmrgfi
1023558105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1023658105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10237aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10238aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10239aea1d7ffSmrgfi
10240aea1d7ffSmrg
10241aea1d7ffSmrgfound="no"
10242aea1d7ffSmrg
10243aea1d7ffSmrg	if test $found = "no" ; then
10244e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10245aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10246aea1d7ffSmrg		fi
10247aea1d7ffSmrg
10248e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10249aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10250aea1d7ffSmrg		fi
10251aea1d7ffSmrg
10252aea1d7ffSmrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10253aea1d7ffSmrg
1025458105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
1025558105723Smrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10256aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
1025758105723Smrg		if eval test \${$cacheid+y}
1025858105723Smrgthen :
1025958105723Smrg  printf %s "(cached) " >&6
1026058105723Smrgelse $as_nop
10261aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10262aea1d7ffSmrg/* end confdefs.h.  */
10263aea1d7ffSmrgint i;
10264aea1d7ffSmrgint
1026558105723Smrgmain (void)
10266aea1d7ffSmrg{
10267aea1d7ffSmrg
10268aea1d7ffSmrg  ;
10269aea1d7ffSmrg  return 0;
10270aea1d7ffSmrg}
10271aea1d7ffSmrg_ACEOF
1027258105723Smrgif ac_fn_c_try_link "$LINENO"
1027358105723Smrgthen :
10274aea1d7ffSmrg  eval $cacheid=yes
1027558105723Smrgelse $as_nop
10276aea1d7ffSmrg  eval $cacheid=no
10277aea1d7ffSmrgfi
1027858105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10279aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
10280aea1d7ffSmrgfi
10281aea1d7ffSmrg
10282aea1d7ffSmrg
10283aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10284aea1d7ffSmrg
10285aea1d7ffSmrg		eval supported=\$$cacheid
1028658105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1028758105723Smrgprintf "%s\n" "$supported" >&6; }
10288aea1d7ffSmrg		if test "$supported" = "yes" ; then
10289aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10290aea1d7ffSmrg			found="yes"
10291aea1d7ffSmrg		fi
10292aea1d7ffSmrg	fi
10293aea1d7ffSmrg
10294aea1d7ffSmrg
10295aea1d7ffSmrg
10296aea1d7ffSmrg
10297aea1d7ffSmrg
10298aea1d7ffSmrg
10299aea1d7ffSmrg
10300aea1d7ffSmrg
10301aea1d7ffSmrg
10302aea1d7ffSmrg
10303aea1d7ffSmrg
10304aea1d7ffSmrg
10305aea1d7ffSmrg
10306aea1d7ffSmrg
10307aea1d7ffSmrg
10308aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10309aea1d7ffSmrg
10310aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10311aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1031258105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1031358105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1031458105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
1031558105723Smrgthen :
1031658105723Smrg  printf %s "(cached) " >&6
1031758105723Smrgelse $as_nop
10318aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319aea1d7ffSmrg/* end confdefs.h.  */
10320aea1d7ffSmrgint i;
10321aea1d7ffSmrg_ACEOF
1032258105723Smrgif ac_fn_c_try_compile "$LINENO"
1032358105723Smrgthen :
10324aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
1032558105723Smrgelse $as_nop
10326aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
10327aea1d7ffSmrgfi
1032858105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10329aea1d7ffSmrgfi
1033058105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1033158105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10332aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10333aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10334aea1d7ffSmrgfi
10335aea1d7ffSmrg
10336aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10337aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10338aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10339aea1d7ffSmrg	fi
10340aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1034158105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1034258105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1034358105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
1034458105723Smrgthen :
1034558105723Smrg  printf %s "(cached) " >&6
1034658105723Smrgelse $as_nop
10347aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348aea1d7ffSmrg/* end confdefs.h.  */
10349aea1d7ffSmrgint i;
10350aea1d7ffSmrg_ACEOF
1035158105723Smrgif ac_fn_c_try_compile "$LINENO"
1035258105723Smrgthen :
10353aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1035458105723Smrgelse $as_nop
10355aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
10356aea1d7ffSmrgfi
1035758105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10358aea1d7ffSmrgfi
1035958105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1036058105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10361aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10362aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10363aea1d7ffSmrgfi
10364aea1d7ffSmrg
10365aea1d7ffSmrgfound="no"
10366aea1d7ffSmrg
10367aea1d7ffSmrg	if test $found = "no" ; then
10368e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10369aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10370aea1d7ffSmrg		fi
10371aea1d7ffSmrg
10372e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10373aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10374aea1d7ffSmrg		fi
10375aea1d7ffSmrg
10376aea1d7ffSmrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10377aea1d7ffSmrg
1037858105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
1037958105723Smrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10380aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
1038158105723Smrg		if eval test \${$cacheid+y}
1038258105723Smrgthen :
1038358105723Smrg  printf %s "(cached) " >&6
1038458105723Smrgelse $as_nop
10385aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386aea1d7ffSmrg/* end confdefs.h.  */
10387aea1d7ffSmrgint i;
10388aea1d7ffSmrgint
1038958105723Smrgmain (void)
10390aea1d7ffSmrg{
10391aea1d7ffSmrg
10392aea1d7ffSmrg  ;
10393aea1d7ffSmrg  return 0;
10394aea1d7ffSmrg}
10395aea1d7ffSmrg_ACEOF
1039658105723Smrgif ac_fn_c_try_link "$LINENO"
1039758105723Smrgthen :
10398aea1d7ffSmrg  eval $cacheid=yes
1039958105723Smrgelse $as_nop
10400aea1d7ffSmrg  eval $cacheid=no
10401aea1d7ffSmrgfi
1040258105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10403aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
10404aea1d7ffSmrgfi
10405aea1d7ffSmrg
10406aea1d7ffSmrg
10407aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10408aea1d7ffSmrg
10409aea1d7ffSmrg		eval supported=\$$cacheid
1041058105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1041158105723Smrgprintf "%s\n" "$supported" >&6; }
10412aea1d7ffSmrg		if test "$supported" = "yes" ; then
10413aea1d7ffSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10414aea1d7ffSmrg			found="yes"
10415aea1d7ffSmrg		fi
10416aea1d7ffSmrg	fi
10417aea1d7ffSmrg
10418aea1d7ffSmrg
10419aea1d7ffSmrgfi
10420aea1d7ffSmrg
10421aea1d7ffSmrg
10422aea1d7ffSmrg
10423aea1d7ffSmrg
10424aea1d7ffSmrg
10425aea1d7ffSmrg
10426aea1d7ffSmrg
10427aea1d7ffSmrg		CWARNFLAGS="$BASE_CFLAGS"
10428aea1d7ffSmrg		if  test "x$GCC" = xyes ; then
10429aea1d7ffSmrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10430aea1d7ffSmrg		fi
10431aea1d7ffSmrg
10432aea1d7ffSmrg
10433aea1d7ffSmrg
10434aea1d7ffSmrg
10435aea1d7ffSmrg
10436aea1d7ffSmrg
10437aea1d7ffSmrg
10438aea1d7ffSmrg
10439aea1d7ffSmrg# Check whether --enable-strict-compilation was given.
1044058105723Smrgif test ${enable_strict_compilation+y}
1044158105723Smrgthen :
10442aea1d7ffSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
1044358105723Smrgelse $as_nop
10444aea1d7ffSmrg  STRICT_COMPILE=no
10445aea1d7ffSmrgfi
10446aea1d7ffSmrg
10447aea1d7ffSmrg
10448aea1d7ffSmrg
10449aea1d7ffSmrg
10450aea1d7ffSmrg
10451aea1d7ffSmrg
10452aea1d7ffSmrgSTRICT_CFLAGS=""
10453aea1d7ffSmrg
10454aea1d7ffSmrg
10455aea1d7ffSmrg
10456aea1d7ffSmrg
10457aea1d7ffSmrg
10458aea1d7ffSmrg
10459aea1d7ffSmrg
10460aea1d7ffSmrg
10461aea1d7ffSmrg
10462aea1d7ffSmrg
10463aea1d7ffSmrg
10464aea1d7ffSmrg
10465aea1d7ffSmrg
10466aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10467aea1d7ffSmrg
10468aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10469aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1047058105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1047158105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1047258105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
1047358105723Smrgthen :
1047458105723Smrg  printf %s "(cached) " >&6
1047558105723Smrgelse $as_nop
10476aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477aea1d7ffSmrg/* end confdefs.h.  */
10478aea1d7ffSmrgint i;
10479aea1d7ffSmrg_ACEOF
1048058105723Smrgif ac_fn_c_try_compile "$LINENO"
1048158105723Smrgthen :
10482aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
1048358105723Smrgelse $as_nop
10484aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
10485aea1d7ffSmrgfi
1048658105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10487aea1d7ffSmrgfi
1048858105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1048958105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10490aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10491aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10492aea1d7ffSmrgfi
10493aea1d7ffSmrg
10494aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10495aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10496aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10497aea1d7ffSmrg	fi
10498aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1049958105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1050058105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1050158105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
1050258105723Smrgthen :
1050358105723Smrg  printf %s "(cached) " >&6
1050458105723Smrgelse $as_nop
10505aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506aea1d7ffSmrg/* end confdefs.h.  */
10507aea1d7ffSmrgint i;
10508aea1d7ffSmrg_ACEOF
1050958105723Smrgif ac_fn_c_try_compile "$LINENO"
1051058105723Smrgthen :
10511aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1051258105723Smrgelse $as_nop
10513aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
10514aea1d7ffSmrgfi
1051558105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10516aea1d7ffSmrgfi
1051758105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1051858105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10519aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10520aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10521aea1d7ffSmrgfi
10522aea1d7ffSmrg
10523aea1d7ffSmrgfound="no"
10524aea1d7ffSmrg
10525aea1d7ffSmrg	if test $found = "no" ; then
10526e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10527aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10528aea1d7ffSmrg		fi
10529aea1d7ffSmrg
10530e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10531aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10532aea1d7ffSmrg		fi
10533aea1d7ffSmrg
10534aea1d7ffSmrg		CFLAGS="$CFLAGS -pedantic"
10535aea1d7ffSmrg
1053658105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
1053758105723Smrgprintf %s "checking if $CC supports -pedantic... " >&6; }
10538aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__pedantic
1053958105723Smrg		if eval test \${$cacheid+y}
1054058105723Smrgthen :
1054158105723Smrg  printf %s "(cached) " >&6
1054258105723Smrgelse $as_nop
10543aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544aea1d7ffSmrg/* end confdefs.h.  */
10545aea1d7ffSmrgint i;
10546aea1d7ffSmrgint
1054758105723Smrgmain (void)
10548aea1d7ffSmrg{
10549aea1d7ffSmrg
10550aea1d7ffSmrg  ;
10551aea1d7ffSmrg  return 0;
10552aea1d7ffSmrg}
10553aea1d7ffSmrg_ACEOF
1055458105723Smrgif ac_fn_c_try_link "$LINENO"
1055558105723Smrgthen :
10556aea1d7ffSmrg  eval $cacheid=yes
1055758105723Smrgelse $as_nop
10558aea1d7ffSmrg  eval $cacheid=no
10559aea1d7ffSmrgfi
1056058105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10561aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
10562aea1d7ffSmrgfi
10563aea1d7ffSmrg
10564aea1d7ffSmrg
10565aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10566aea1d7ffSmrg
10567aea1d7ffSmrg		eval supported=\$$cacheid
1056858105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1056958105723Smrgprintf "%s\n" "$supported" >&6; }
10570aea1d7ffSmrg		if test "$supported" = "yes" ; then
10571aea1d7ffSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10572aea1d7ffSmrg			found="yes"
10573aea1d7ffSmrg		fi
10574aea1d7ffSmrg	fi
10575aea1d7ffSmrg
10576aea1d7ffSmrg
10577aea1d7ffSmrg
10578aea1d7ffSmrg
10579aea1d7ffSmrg
10580aea1d7ffSmrg
10581aea1d7ffSmrg
10582aea1d7ffSmrg
10583aea1d7ffSmrg
10584aea1d7ffSmrg
10585aea1d7ffSmrg
10586aea1d7ffSmrg
10587aea1d7ffSmrg
10588aea1d7ffSmrg
10589aea1d7ffSmrg
10590aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10591aea1d7ffSmrg
10592aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10593aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1059458105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1059558105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1059658105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
1059758105723Smrgthen :
1059858105723Smrg  printf %s "(cached) " >&6
1059958105723Smrgelse $as_nop
10600aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601aea1d7ffSmrg/* end confdefs.h.  */
10602aea1d7ffSmrgint i;
10603aea1d7ffSmrg_ACEOF
1060458105723Smrgif ac_fn_c_try_compile "$LINENO"
1060558105723Smrgthen :
10606aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
1060758105723Smrgelse $as_nop
10608aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
10609aea1d7ffSmrgfi
1061058105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10611aea1d7ffSmrgfi
1061258105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1061358105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10614aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10615aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10616aea1d7ffSmrgfi
10617aea1d7ffSmrg
10618aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10619aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10620aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10621aea1d7ffSmrg	fi
10622aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1062358105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1062458105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1062558105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
1062658105723Smrgthen :
1062758105723Smrg  printf %s "(cached) " >&6
1062858105723Smrgelse $as_nop
10629aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630aea1d7ffSmrg/* end confdefs.h.  */
10631aea1d7ffSmrgint i;
10632aea1d7ffSmrg_ACEOF
1063358105723Smrgif ac_fn_c_try_compile "$LINENO"
1063458105723Smrgthen :
10635aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1063658105723Smrgelse $as_nop
10637aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
10638aea1d7ffSmrgfi
1063958105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10640aea1d7ffSmrgfi
1064158105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1064258105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10643aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10644aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10645aea1d7ffSmrgfi
10646aea1d7ffSmrg
10647aea1d7ffSmrgfound="no"
10648aea1d7ffSmrg
10649aea1d7ffSmrg	if test $found = "no" ; then
10650e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10651aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10652aea1d7ffSmrg		fi
10653aea1d7ffSmrg
10654e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10655aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10656aea1d7ffSmrg		fi
10657aea1d7ffSmrg
10658aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror"
10659aea1d7ffSmrg
1066058105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
1066158105723Smrgprintf %s "checking if $CC supports -Werror... " >&6; }
10662aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__Werror
1066358105723Smrg		if eval test \${$cacheid+y}
1066458105723Smrgthen :
1066558105723Smrg  printf %s "(cached) " >&6
1066658105723Smrgelse $as_nop
10667aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668aea1d7ffSmrg/* end confdefs.h.  */
10669aea1d7ffSmrgint i;
10670aea1d7ffSmrgint
1067158105723Smrgmain (void)
10672aea1d7ffSmrg{
10673aea1d7ffSmrg
10674aea1d7ffSmrg  ;
10675aea1d7ffSmrg  return 0;
10676aea1d7ffSmrg}
10677aea1d7ffSmrg_ACEOF
1067858105723Smrgif ac_fn_c_try_link "$LINENO"
1067958105723Smrgthen :
10680aea1d7ffSmrg  eval $cacheid=yes
1068158105723Smrgelse $as_nop
10682aea1d7ffSmrg  eval $cacheid=no
10683aea1d7ffSmrgfi
1068458105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10685aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
10686aea1d7ffSmrgfi
10687aea1d7ffSmrg
10688aea1d7ffSmrg
10689aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10690aea1d7ffSmrg
10691aea1d7ffSmrg		eval supported=\$$cacheid
1069258105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1069358105723Smrgprintf "%s\n" "$supported" >&6; }
10694aea1d7ffSmrg		if test "$supported" = "yes" ; then
10695aea1d7ffSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10696aea1d7ffSmrg			found="yes"
10697aea1d7ffSmrg		fi
10698aea1d7ffSmrg	fi
10699aea1d7ffSmrg
10700aea1d7ffSmrg	if test $found = "no" ; then
10701e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10702aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10703aea1d7ffSmrg		fi
10704aea1d7ffSmrg
10705e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10706aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10707aea1d7ffSmrg		fi
10708aea1d7ffSmrg
10709aea1d7ffSmrg		CFLAGS="$CFLAGS -errwarn"
10710aea1d7ffSmrg
1071158105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
1071258105723Smrgprintf %s "checking if $CC supports -errwarn... " >&6; }
10713aea1d7ffSmrg		cacheid=xorg_cv_cc_flag__errwarn
1071458105723Smrg		if eval test \${$cacheid+y}
1071558105723Smrgthen :
1071658105723Smrg  printf %s "(cached) " >&6
1071758105723Smrgelse $as_nop
10718aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719aea1d7ffSmrg/* end confdefs.h.  */
10720aea1d7ffSmrgint i;
10721aea1d7ffSmrgint
1072258105723Smrgmain (void)
10723aea1d7ffSmrg{
10724aea1d7ffSmrg
10725aea1d7ffSmrg  ;
10726aea1d7ffSmrg  return 0;
10727aea1d7ffSmrg}
10728aea1d7ffSmrg_ACEOF
1072958105723Smrgif ac_fn_c_try_link "$LINENO"
1073058105723Smrgthen :
10731aea1d7ffSmrg  eval $cacheid=yes
1073258105723Smrgelse $as_nop
10733aea1d7ffSmrg  eval $cacheid=no
10734aea1d7ffSmrgfi
1073558105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10736aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
10737aea1d7ffSmrgfi
10738aea1d7ffSmrg
10739aea1d7ffSmrg
10740aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10741aea1d7ffSmrg
10742aea1d7ffSmrg		eval supported=\$$cacheid
1074358105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1074458105723Smrgprintf "%s\n" "$supported" >&6; }
10745aea1d7ffSmrg		if test "$supported" = "yes" ; then
10746aea1d7ffSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10747aea1d7ffSmrg			found="yes"
10748aea1d7ffSmrg		fi
10749aea1d7ffSmrg	fi
10750aea1d7ffSmrg
10751aea1d7ffSmrg
10752aea1d7ffSmrg
10753aea1d7ffSmrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10754aea1d7ffSmrg# activate it with -Werror, so we add it here explicitly.
10755aea1d7ffSmrg
10756aea1d7ffSmrg
10757aea1d7ffSmrg
10758aea1d7ffSmrg
10759aea1d7ffSmrg
10760aea1d7ffSmrg
10761aea1d7ffSmrg
10762aea1d7ffSmrg
10763aea1d7ffSmrg
10764aea1d7ffSmrg
10765aea1d7ffSmrg
10766aea1d7ffSmrg
10767aea1d7ffSmrg
10768aea1d7ffSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10769aea1d7ffSmrg
10770aea1d7ffSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10771aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1077258105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1077358105723Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1077458105723Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
1077558105723Smrgthen :
1077658105723Smrg  printf %s "(cached) " >&6
1077758105723Smrgelse $as_nop
10778aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779aea1d7ffSmrg/* end confdefs.h.  */
10780aea1d7ffSmrgint i;
10781aea1d7ffSmrg_ACEOF
1078258105723Smrgif ac_fn_c_try_compile "$LINENO"
1078358105723Smrgthen :
10784aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
1078558105723Smrgelse $as_nop
10786aea1d7ffSmrg  xorg_cv_cc_flag_unknown_warning_option=no
10787aea1d7ffSmrgfi
1078858105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10789aea1d7ffSmrgfi
1079058105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1079158105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10792aea1d7ffSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10793aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10794aea1d7ffSmrgfi
10795aea1d7ffSmrg
10796aea1d7ffSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10797aea1d7ffSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10798aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10799aea1d7ffSmrg	fi
10800aea1d7ffSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1080158105723Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1080258105723Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1080358105723Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
1080458105723Smrgthen :
1080558105723Smrg  printf %s "(cached) " >&6
1080658105723Smrgelse $as_nop
10807aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10808aea1d7ffSmrg/* end confdefs.h.  */
10809aea1d7ffSmrgint i;
10810aea1d7ffSmrg_ACEOF
1081158105723Smrgif ac_fn_c_try_compile "$LINENO"
1081258105723Smrgthen :
10813aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1081458105723Smrgelse $as_nop
10815aea1d7ffSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
10816aea1d7ffSmrgfi
1081758105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10818aea1d7ffSmrgfi
1081958105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1082058105723Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10821aea1d7ffSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10822aea1d7ffSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10823aea1d7ffSmrgfi
10824aea1d7ffSmrg
10825aea1d7ffSmrgfound="no"
10826aea1d7ffSmrg
10827aea1d7ffSmrg	if test $found = "no" ; then
10828e7fdea5fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10829aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10830aea1d7ffSmrg		fi
10831aea1d7ffSmrg
10832e7fdea5fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10833aea1d7ffSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10834aea1d7ffSmrg		fi
10835aea1d7ffSmrg
10836aea1d7ffSmrg		CFLAGS="$CFLAGS -Werror=attributes"
10837aea1d7ffSmrg
1083858105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
1083958105723Smrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; }
10840e7fdea5fSmrg		cacheid=xorg_cv_cc_flag__Werror_attributes
1084158105723Smrg		if eval test \${$cacheid+y}
1084258105723Smrgthen :
1084358105723Smrg  printf %s "(cached) " >&6
1084458105723Smrgelse $as_nop
10845aea1d7ffSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10846aea1d7ffSmrg/* end confdefs.h.  */
10847aea1d7ffSmrgint i;
10848aea1d7ffSmrgint
1084958105723Smrgmain (void)
10850aea1d7ffSmrg{
10851aea1d7ffSmrg
10852aea1d7ffSmrg  ;
10853aea1d7ffSmrg  return 0;
10854aea1d7ffSmrg}
10855aea1d7ffSmrg_ACEOF
1085658105723Smrgif ac_fn_c_try_link "$LINENO"
1085758105723Smrgthen :
10858aea1d7ffSmrg  eval $cacheid=yes
1085958105723Smrgelse $as_nop
10860aea1d7ffSmrg  eval $cacheid=no
10861aea1d7ffSmrgfi
1086258105723Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10863aea1d7ffSmrg    conftest$ac_exeext conftest.$ac_ext
10864aea1d7ffSmrgfi
10865aea1d7ffSmrg
10866aea1d7ffSmrg
10867aea1d7ffSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10868aea1d7ffSmrg
10869aea1d7ffSmrg		eval supported=\$$cacheid
1087058105723Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1087158105723Smrgprintf "%s\n" "$supported" >&6; }
10872aea1d7ffSmrg		if test "$supported" = "yes" ; then
10873aea1d7ffSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10874aea1d7ffSmrg			found="yes"
10875aea1d7ffSmrg		fi
10876aea1d7ffSmrg	fi
10877aea1d7ffSmrg
10878aea1d7ffSmrg
10879aea1d7ffSmrg
10880aea1d7ffSmrgif test "x$STRICT_COMPILE" = "xyes"; then
10881aea1d7ffSmrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10882aea1d7ffSmrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10883aea1d7ffSmrgfi
10884aea1d7ffSmrg
10885aea1d7ffSmrg
10886aea1d7ffSmrg
10887aea1d7ffSmrg
10888aea1d7ffSmrg
10889aea1d7ffSmrg
10890aea1d7ffSmrgcat >>confdefs.h <<_ACEOF
10891aea1d7ffSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10892aea1d7ffSmrg_ACEOF
10893aea1d7ffSmrg
10894aea1d7ffSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10895aea1d7ffSmrg	if test "x$PVM" = "x"; then
10896aea1d7ffSmrg		PVM="0"
10897aea1d7ffSmrg	fi
10898aea1d7ffSmrg
1089958105723Smrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10900aea1d7ffSmrg
10901aea1d7ffSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10902aea1d7ffSmrg	if test "x$PVP" = "x"; then
10903aea1d7ffSmrg		PVP="0"
10904aea1d7ffSmrg	fi
10905aea1d7ffSmrg
1090658105723Smrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10907aea1d7ffSmrg
10908aea1d7ffSmrg
10909aea1d7ffSmrg
1091058105723SmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10911aea1d7ffSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
1091258105723Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
1091358105723Smrgtouch \$(top_srcdir)/ChangeLog; \
1091458105723Smrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10915aea1d7ffSmrg
10916aea1d7ffSmrg
10917aea1d7ffSmrg
10918aea1d7ffSmrg
10919aea1d7ffSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10920aea1d7ffSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10921aea1d7ffSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
1092258105723Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
1092358105723Smrgtouch \$(top_srcdir)/INSTALL; \
1092458105723Smrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
1092558105723Smrg
10926aea1d7ffSmrg
10927aea1d7ffSmrg
10928aea1d7ffSmrg
10929aea1d7ffSmrg
10930aea1d7ffSmrg
1093158105723Smrgcase $host_os in
1093258105723Smrg    solaris*)
1093358105723Smrg        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
1093458105723Smrg        # check for a man page file found in later versions that use
1093558105723Smrg        # traditional section numbers instead
1093658105723Smrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
1093758105723Smrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
1093858105723Smrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
1093958105723Smrgthen :
1094058105723Smrg  printf %s "(cached) " >&6
1094158105723Smrgelse $as_nop
1094258105723Smrg  test "$cross_compiling" = yes &&
1094358105723Smrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
1094458105723Smrgif test -r "/usr/share/man/man7/attributes.7"; then
1094558105723Smrg  ac_cv_file__usr_share_man_man7_attributes_7=yes
1094658105723Smrgelse
1094758105723Smrg  ac_cv_file__usr_share_man_man7_attributes_7=no
1094858105723Smrgfi
1094958105723Smrgfi
1095058105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
1095158105723Smrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
1095258105723Smrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
1095358105723Smrgthen :
1095458105723Smrg  SYSV_MAN_SECTIONS=false
1095558105723Smrgelse $as_nop
1095658105723Smrg  SYSV_MAN_SECTIONS=true
1095758105723Smrgfi
1095858105723Smrg
1095958105723Smrg        ;;
1096058105723Smrg    *) SYSV_MAN_SECTIONS=false ;;
1096158105723Smrgesac
10962aea1d7ffSmrg
10963aea1d7ffSmrgif test x$APP_MAN_SUFFIX = x    ; then
10964aea1d7ffSmrg    APP_MAN_SUFFIX=1
10965aea1d7ffSmrgfi
10966aea1d7ffSmrgif test x$APP_MAN_DIR = x    ; then
10967aea1d7ffSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10968aea1d7ffSmrgfi
10969aea1d7ffSmrg
10970aea1d7ffSmrgif test x$LIB_MAN_SUFFIX = x    ; then
10971aea1d7ffSmrg    LIB_MAN_SUFFIX=3
10972aea1d7ffSmrgfi
10973aea1d7ffSmrgif test x$LIB_MAN_DIR = x    ; then
10974aea1d7ffSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10975aea1d7ffSmrgfi
10976aea1d7ffSmrg
10977aea1d7ffSmrgif test x$FILE_MAN_SUFFIX = x    ; then
1097858105723Smrg    case $SYSV_MAN_SECTIONS in
1097958105723Smrg	true)				FILE_MAN_SUFFIX=4  ;;
109804d9306dbSmrg	*)				FILE_MAN_SUFFIX=5  ;;
10981aea1d7ffSmrg    esac
10982aea1d7ffSmrgfi
10983aea1d7ffSmrgif test x$FILE_MAN_DIR = x    ; then
10984aea1d7ffSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10985aea1d7ffSmrgfi
10986aea1d7ffSmrg
10987aea1d7ffSmrgif test x$MISC_MAN_SUFFIX = x    ; then
1098858105723Smrg    case $SYSV_MAN_SECTIONS in
1098958105723Smrg	true)				MISC_MAN_SUFFIX=5  ;;
109904d9306dbSmrg	*)				MISC_MAN_SUFFIX=7  ;;
10991aea1d7ffSmrg    esac
10992aea1d7ffSmrgfi
10993aea1d7ffSmrgif test x$MISC_MAN_DIR = x    ; then
10994aea1d7ffSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10995aea1d7ffSmrgfi
10996aea1d7ffSmrg
10997aea1d7ffSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
1099858105723Smrg    case $SYSV_MAN_SECTIONS in
1099958105723Smrg	true)				DRIVER_MAN_SUFFIX=7  ;;
110004d9306dbSmrg	*)				DRIVER_MAN_SUFFIX=4  ;;
11001aea1d7ffSmrg    esac
11002aea1d7ffSmrgfi
11003aea1d7ffSmrgif test x$DRIVER_MAN_DIR = x    ; then
11004aea1d7ffSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11005aea1d7ffSmrgfi
11006aea1d7ffSmrg
11007aea1d7ffSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
1100858105723Smrg    case $SYSV_MAN_SECTIONS in
1100958105723Smrg	true)				ADMIN_MAN_SUFFIX=1m ;;
110104d9306dbSmrg	*)				ADMIN_MAN_SUFFIX=8  ;;
11011aea1d7ffSmrg    esac
11012aea1d7ffSmrgfi
11013aea1d7ffSmrgif test x$ADMIN_MAN_DIR = x    ; then
11014aea1d7ffSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11015aea1d7ffSmrgfi
11016aea1d7ffSmrg
11017aea1d7ffSmrg
11018aea1d7ffSmrg
11019aea1d7ffSmrg
11020aea1d7ffSmrg
11021aea1d7ffSmrg
11022aea1d7ffSmrg
11023aea1d7ffSmrg
11024aea1d7ffSmrg
11025aea1d7ffSmrg
11026aea1d7ffSmrg
11027aea1d7ffSmrg
11028aea1d7ffSmrg
11029aea1d7ffSmrg
11030aea1d7ffSmrg
11031aea1d7ffSmrgXORG_MAN_PAGE="X Version 11"
11032aea1d7ffSmrg
11033aea1d7ffSmrgMAN_SUBSTS="\
11034aea1d7ffSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11035aea1d7ffSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11036aea1d7ffSmrg	-e 's|__xservername__|Xorg|g' \
11037aea1d7ffSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
11038aea1d7ffSmrg	-e 's|__projectroot__|\$(prefix)|g' \
11039aea1d7ffSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11040aea1d7ffSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11041aea1d7ffSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11042aea1d7ffSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11043aea1d7ffSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11044aea1d7ffSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11045aea1d7ffSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11046aea1d7ffSmrg
11047aea1d7ffSmrg
11048aea1d7ffSmrg
11049aea1d7ffSmrg# Check whether --enable-silent-rules was given.
1105058105723Smrgif test ${enable_silent_rules+y}
1105158105723Smrgthen :
11052aea1d7ffSmrg  enableval=$enable_silent_rules;
11053aea1d7ffSmrgfi
11054aea1d7ffSmrg
11055e7fdea5fSmrgcase $enable_silent_rules in # (((
11056e7fdea5fSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
11057e7fdea5fSmrg   no) AM_DEFAULT_VERBOSITY=1;;
11058e7fdea5fSmrg    *) AM_DEFAULT_VERBOSITY=0;;
11059aea1d7ffSmrgesac
11060e7fdea5fSmrgam_make=${MAKE-make}
1106158105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
1106258105723Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
1106358105723Smrgif test ${am_cv_make_support_nested_variables+y}
1106458105723Smrgthen :
1106558105723Smrg  printf %s "(cached) " >&6
1106658105723Smrgelse $as_nop
1106758105723Smrg  if printf "%s\n" 'TRUE=$(BAR$(V))
11068e7fdea5fSmrgBAR0=false
11069e7fdea5fSmrgBAR1=true
11070e7fdea5fSmrgV=1
11071e7fdea5fSmrgam__doit:
11072e7fdea5fSmrg	@$(TRUE)
11073e7fdea5fSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11074e7fdea5fSmrg  am_cv_make_support_nested_variables=yes
11075e7fdea5fSmrgelse
11076e7fdea5fSmrg  am_cv_make_support_nested_variables=no
11077e7fdea5fSmrgfi
11078e7fdea5fSmrgfi
1107958105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
1108058105723Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11081e7fdea5fSmrgif test $am_cv_make_support_nested_variables = yes; then
11082e7fdea5fSmrg    AM_V='$(V)'
11083e7fdea5fSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11084e7fdea5fSmrgelse
11085e7fdea5fSmrg  AM_V=$AM_DEFAULT_VERBOSITY
11086e7fdea5fSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11087e7fdea5fSmrgfi
11088aea1d7ffSmrgAM_BACKSLASH='\'
11089aea1d7ffSmrg
11090aea1d7ffSmrg
11091aea1d7ffSmrg
11092aea1d7ffSmrg# Checks for pkg-config packages
11093aea1d7ffSmrg
11094aea1d7ffSmrgpkg_failed=no
1109558105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFSINFO" >&5
1109658105723Smrgprintf %s "checking for XFSINFO... " >&6; }
110977e6533d5Smrg
110987e6533d5Smrgif test -n "$XFSINFO_CFLAGS"; then
110997e6533d5Smrg    pkg_cv_XFSINFO_CFLAGS="$XFSINFO_CFLAGS"
111007e6533d5Smrg elif test -n "$PKG_CONFIG"; then
111017e6533d5Smrg    if test -n "$PKG_CONFIG" && \
1110258105723Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25 libfs\""; } >&5
1110358105723Smrg  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25 libfs") 2>&5
111047e6533d5Smrg  ac_status=$?
1110558105723Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
111067e6533d5Smrg  test $ac_status = 0; }; then
1110758105723Smrg  pkg_cv_XFSINFO_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25 libfs" 2>/dev/null`
111084d9306dbSmrg		      test "x$?" != "x0" && pkg_failed=yes
111097e6533d5Smrgelse
111107e6533d5Smrg  pkg_failed=yes
111117e6533d5Smrgfi
111127e6533d5Smrg else
111137e6533d5Smrg    pkg_failed=untried
111147e6533d5Smrgfi
111157e6533d5Smrgif test -n "$XFSINFO_LIBS"; then
111167e6533d5Smrg    pkg_cv_XFSINFO_LIBS="$XFSINFO_LIBS"
111177e6533d5Smrg elif test -n "$PKG_CONFIG"; then
111187e6533d5Smrg    if test -n "$PKG_CONFIG" && \
1111958105723Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25 libfs\""; } >&5
1112058105723Smrg  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25 libfs") 2>&5
111217e6533d5Smrg  ac_status=$?
1112258105723Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
111237e6533d5Smrg  test $ac_status = 0; }; then
1112458105723Smrg  pkg_cv_XFSINFO_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25 libfs" 2>/dev/null`
111254d9306dbSmrg		      test "x$?" != "x0" && pkg_failed=yes
11126067610f1Smrgelse
111277e6533d5Smrg  pkg_failed=yes
111287e6533d5Smrgfi
111297e6533d5Smrg else
111307e6533d5Smrg    pkg_failed=untried
11131067610f1Smrgfi
11132067610f1Smrg
11133067610f1Smrg
11134067610f1Smrg
111357e6533d5Smrgif test $pkg_failed = yes; then
1113658105723Smrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1113758105723Smrgprintf "%s\n" "no" >&6; }
11138067610f1Smrg
111397e6533d5Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
111407e6533d5Smrg        _pkg_short_errors_supported=yes
111417e6533d5Smrgelse
111427e6533d5Smrg        _pkg_short_errors_supported=no
111437e6533d5Smrgfi
111447e6533d5Smrg        if test $_pkg_short_errors_supported = yes; then
1114558105723Smrg	        XFSINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25 libfs" 2>&1`
111467e6533d5Smrg        else
1114758105723Smrg	        XFSINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25 libfs" 2>&1`
111487e6533d5Smrg        fi
111497e6533d5Smrg	# Put the nasty error message in config.log where it belongs
111507e6533d5Smrg	echo "$XFSINFO_PKG_ERRORS" >&5
11151067610f1Smrg
1115258105723Smrg	as_fn_error $? "Package requirements (xproto >= 7.0.25 libfs) were not met:
11153067610f1Smrg
111547e6533d5Smrg$XFSINFO_PKG_ERRORS
111557e6533d5Smrg
111567e6533d5SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
111577e6533d5Smrginstalled software in a non-standard prefix.
111587e6533d5Smrg
111597e6533d5SmrgAlternatively, you may set the environment variables XFSINFO_CFLAGS
111607e6533d5Smrgand XFSINFO_LIBS to avoid the need to call pkg-config.
111614d9306dbSmrgSee the pkg-config man page for more details." "$LINENO" 5
111627e6533d5Smrgelif test $pkg_failed = untried; then
1116358105723Smrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1116458105723Smrgprintf "%s\n" "no" >&6; }
1116558105723Smrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1116658105723Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
111677e6533d5Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
111687e6533d5Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
111697e6533d5Smrgpath to pkg-config.
11170067610f1Smrg
111717e6533d5SmrgAlternatively, you may set the environment variables XFSINFO_CFLAGS
111727e6533d5Smrgand XFSINFO_LIBS to avoid the need to call pkg-config.
111737e6533d5SmrgSee the pkg-config man page for more details.
11174067610f1Smrg
111757e6533d5SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
111767e6533d5SmrgSee \`config.log' for more details" "$LINENO" 5; }
111777e6533d5Smrgelse
111787e6533d5Smrg	XFSINFO_CFLAGS=$pkg_cv_XFSINFO_CFLAGS
111797e6533d5Smrg	XFSINFO_LIBS=$pkg_cv_XFSINFO_LIBS
1118058105723Smrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1118158105723Smrgprintf "%s\n" "yes" >&6; }
111824d9306dbSmrg
111837e6533d5Smrgfi
11184067610f1Smrg
11185aea1d7ffSmrgac_config_files="$ac_config_files Makefile man/Makefile"
11186067610f1Smrg
11187067610f1Smrgcat >confcache <<\_ACEOF
11188067610f1Smrg# This file is a shell script that caches the results of configure
11189067610f1Smrg# tests run on this system so they can be shared between configure
11190067610f1Smrg# scripts and configure runs, see configure's option --config-cache.
11191067610f1Smrg# It is not useful on other systems.  If it contains results you don't
11192067610f1Smrg# want to keep, you may remove or edit it.
11193067610f1Smrg#
11194067610f1Smrg# config.status only pays attention to the cache file if you give it
11195067610f1Smrg# the --recheck option to rerun configure.
11196067610f1Smrg#
11197067610f1Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
11198067610f1Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
11199067610f1Smrg# following values.
11200067610f1Smrg
11201067610f1Smrg_ACEOF
11202067610f1Smrg
11203067610f1Smrg# The following way of writing the cache mishandles newlines in values,
11204067610f1Smrg# but we know of no workaround that is simple, portable, and efficient.
11205067610f1Smrg# So, we kill variables containing newlines.
11206067610f1Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
11207067610f1Smrg# and sets the high bit in the cache file unless we assign to the vars.
11208067610f1Smrg(
11209067610f1Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11210067610f1Smrg    eval ac_val=\$$ac_var
11211067610f1Smrg    case $ac_val in #(
11212067610f1Smrg    *${as_nl}*)
11213067610f1Smrg      case $ac_var in #(
1121458105723Smrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1121558105723Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11216067610f1Smrg      esac
11217067610f1Smrg      case $ac_var in #(
11218067610f1Smrg      _ | IFS | as_nl) ;; #(
112197e6533d5Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
112207e6533d5Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
11221067610f1Smrg      esac ;;
11222067610f1Smrg    esac
11223067610f1Smrg  done
11224067610f1Smrg
11225067610f1Smrg  (set) 2>&1 |
11226067610f1Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11227067610f1Smrg    *${as_nl}ac_space=\ *)
112287e6533d5Smrg      # `set' does not quote correctly, so add quotes: double-quote
112297e6533d5Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
11230067610f1Smrg      sed -n \
11231067610f1Smrg	"s/'/'\\\\''/g;
11232067610f1Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11233067610f1Smrg      ;; #(
11234067610f1Smrg    *)
11235067610f1Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
11236067610f1Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11237067610f1Smrg      ;;
11238067610f1Smrg    esac |
11239067610f1Smrg    sort
11240067610f1Smrg) |
11241067610f1Smrg  sed '
11242067610f1Smrg     /^ac_cv_env_/b end
11243067610f1Smrg     t clear
11244067610f1Smrg     :clear
1124558105723Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11246067610f1Smrg     t end
11247067610f1Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11248067610f1Smrg     :end' >>confcache
11249067610f1Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11250067610f1Smrg  if test -w "$cache_file"; then
112517e6533d5Smrg    if test "x$cache_file" != "x/dev/null"; then
1125258105723Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1125358105723Smrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
112547e6533d5Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
112557e6533d5Smrg	cat confcache >"$cache_file"
112567e6533d5Smrg      else
112577e6533d5Smrg        case $cache_file in #(
112587e6533d5Smrg        */* | ?:*)
112597e6533d5Smrg	  mv -f confcache "$cache_file"$$ &&
112607e6533d5Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
112617e6533d5Smrg        *)
112627e6533d5Smrg	  mv -f confcache "$cache_file" ;;
112637e6533d5Smrg	esac
112647e6533d5Smrg      fi
112657e6533d5Smrg    fi
11266067610f1Smrg  else
1126758105723Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1126858105723Smrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11269067610f1Smrg  fi
11270067610f1Smrgfi
11271067610f1Smrgrm -f confcache
11272067610f1Smrg
11273067610f1Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
11274067610f1Smrg# Let make expand exec_prefix.
11275067610f1Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11276067610f1Smrg
11277067610f1SmrgDEFS=-DHAVE_CONFIG_H
11278067610f1Smrg
11279067610f1Smrgac_libobjs=
11280067610f1Smrgac_ltlibobjs=
112817e6533d5SmrgU=
11282067610f1Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11283067610f1Smrg  # 1. Remove the extension, and $U if already installed.
11284067610f1Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1128558105723Smrg  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11286067610f1Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11287067610f1Smrg  #    will be set to the directory where LIBOBJS objects are built.
112887e6533d5Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
112897e6533d5Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11290067610f1Smrgdone
11291067610f1SmrgLIBOBJS=$ac_libobjs
11292067610f1Smrg
11293067610f1SmrgLTLIBOBJS=$ac_ltlibobjs
11294067610f1Smrg
11295067610f1Smrg
1129658105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
1129758105723Smrgprintf %s "checking that generated files are newer than configure... " >&6; }
11298e7fdea5fSmrg   if test -n "$am_sleep_pid"; then
11299e7fdea5fSmrg     # Hide warnings about reused PIDs.
11300e7fdea5fSmrg     wait $am_sleep_pid 2>/dev/null
11301e7fdea5fSmrg   fi
1130258105723Smrg   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
1130358105723Smrgprintf "%s\n" "done" >&6; }
113047e6533d5Smrg if test -n "$EXEEXT"; then
113057e6533d5Smrg  am__EXEEXT_TRUE=
113067e6533d5Smrg  am__EXEEXT_FALSE='#'
113077e6533d5Smrgelse
113087e6533d5Smrg  am__EXEEXT_TRUE='#'
113097e6533d5Smrg  am__EXEEXT_FALSE=
113107e6533d5Smrgfi
113117e6533d5Smrg
11312067610f1Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
113137e6533d5Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
113147e6533d5SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
11315067610f1Smrgfi
11316067610f1Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
113177e6533d5Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
113187e6533d5SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
11319067610f1Smrgfi
11320067610f1Smrg
113217e6533d5Smrg: "${CONFIG_STATUS=./config.status}"
113227e6533d5Smrgac_write_fail=0
11323067610f1Smrgac_clean_files_save=$ac_clean_files
11324067610f1Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
1132558105723Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
1132658105723Smrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
113277e6533d5Smrgas_write_fail=0
113287e6533d5Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11329067610f1Smrg#! $SHELL
11330067610f1Smrg# Generated by $as_me.
11331067610f1Smrg# Run this file to recreate the current configuration.
11332067610f1Smrg# Compiler output produced by configure, useful for debugging
11333067610f1Smrg# configure, is in config.log if it exists.
11334067610f1Smrg
11335067610f1Smrgdebug=false
11336067610f1Smrgac_cs_recheck=false
11337067610f1Smrgac_cs_silent=false
11338067610f1Smrg
113397e6533d5SmrgSHELL=\${CONFIG_SHELL-$SHELL}
113407e6533d5Smrgexport SHELL
113417e6533d5Smrg_ASEOF
113427e6533d5Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
113437e6533d5Smrg## -------------------- ##
113447e6533d5Smrg## M4sh Initialization. ##
113457e6533d5Smrg## -------------------- ##
11346067610f1Smrg
11347067610f1Smrg# Be more Bourne compatible
11348067610f1SmrgDUALCASE=1; export DUALCASE # for MKS sh
1134958105723Smrgas_nop=:
1135058105723Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
1135158105723Smrgthen :
11352067610f1Smrg  emulate sh
11353067610f1Smrg  NULLCMD=:
113547e6533d5Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11355067610f1Smrg  # is contrary to our usage.  Disable this feature.
11356067610f1Smrg  alias -g '${1+"$@"}'='"$@"'
11357067610f1Smrg  setopt NO_GLOB_SUBST
1135858105723Smrgelse $as_nop
113597e6533d5Smrg  case `(set -o) 2>/dev/null` in #(
113607e6533d5Smrg  *posix*) :
113617e6533d5Smrg    set -o posix ;; #(
113627e6533d5Smrg  *) :
113637e6533d5Smrg     ;;
11364067610f1Smrgesac
11365067610f1Smrgfi
11366067610f1Smrg
11367067610f1Smrg
1136858105723Smrg
1136958105723Smrg# Reset variables that may have inherited troublesome values from
1137058105723Smrg# the environment.
1137158105723Smrg
1137258105723Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
1137358105723Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
1137458105723Smrg# side effect of setting IFS to empty, thus disabling word splitting.)
1137558105723Smrg# Quoting is to prevent editors from complaining about space-tab.
113767e6533d5Smrgas_nl='
113777e6533d5Smrg'
113787e6533d5Smrgexport as_nl
1137958105723SmrgIFS=" ""	$as_nl"
1138058105723Smrg
1138158105723SmrgPS1='$ '
1138258105723SmrgPS2='> '
1138358105723SmrgPS4='+ '
1138458105723Smrg
1138558105723Smrg# Ensure predictable behavior from utilities with locale-dependent output.
1138658105723SmrgLC_ALL=C
1138758105723Smrgexport LC_ALL
1138858105723SmrgLANGUAGE=C
1138958105723Smrgexport LANGUAGE
1139058105723Smrg
1139158105723Smrg# We cannot yet rely on "unset" to work, but we need these variables
1139258105723Smrg# to be unset--not just set to an empty or harmless value--now, to
1139358105723Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
1139458105723Smrg# also avoids known problems related to "unset" and subshell syntax
1139558105723Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
1139658105723Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
1139758105723Smrgdo eval test \${$as_var+y} \
1139858105723Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1139958105723Smrgdone
1140058105723Smrg
1140158105723Smrg# Ensure that fds 0, 1, and 2 are open.
1140258105723Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
1140358105723Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
1140458105723Smrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11405067610f1Smrg
114067e6533d5Smrg# The user is always right.
1140758105723Smrgif ${PATH_SEPARATOR+false} :; then
114087e6533d5Smrg  PATH_SEPARATOR=:
114097e6533d5Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
114107e6533d5Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
114117e6533d5Smrg      PATH_SEPARATOR=';'
114127e6533d5Smrg  }
11413067610f1Smrgfi
11414067610f1Smrg
11415067610f1Smrg
11416067610f1Smrg# Find who we are.  Look in the path if we contain no directory separator.
114177e6533d5Smrgas_myself=
114187e6533d5Smrgcase $0 in #((
11419067610f1Smrg  *[\\/]* ) as_myself=$0 ;;
11420067610f1Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421067610f1Smrgfor as_dir in $PATH
11422067610f1Smrgdo
11423067610f1Smrg  IFS=$as_save_IFS
1142458105723Smrg  case $as_dir in #(((
1142558105723Smrg    '') as_dir=./ ;;
1142658105723Smrg    */) ;;
1142758105723Smrg    *) as_dir=$as_dir/ ;;
1142858105723Smrg  esac
1142958105723Smrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
114307e6533d5Smrg  done
11431067610f1SmrgIFS=$as_save_IFS
11432067610f1Smrg
11433067610f1Smrg     ;;
11434067610f1Smrgesac
11435067610f1Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
11436067610f1Smrg# in which case we are not to be found in the path.
11437067610f1Smrgif test "x$as_myself" = x; then
11438067610f1Smrg  as_myself=$0
11439067610f1Smrgfi
11440067610f1Smrgif test ! -f "$as_myself"; then
1144158105723Smrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114427e6533d5Smrg  exit 1
11443067610f1Smrgfi
11444067610f1Smrg
114457e6533d5Smrg
114467e6533d5Smrg
114477e6533d5Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
114487e6533d5Smrg# ----------------------------------------
114497e6533d5Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
114507e6533d5Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
114517e6533d5Smrg# script with STATUS, using 1 if that was 0.
114527e6533d5Smrgas_fn_error ()
114537e6533d5Smrg{
114547e6533d5Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
114557e6533d5Smrg  if test "$4"; then
114567e6533d5Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1145758105723Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11458067610f1Smrg  fi
1145958105723Smrg  printf "%s\n" "$as_me: error: $2" >&2
114607e6533d5Smrg  as_fn_exit $as_status
114617e6533d5Smrg} # as_fn_error
114627e6533d5Smrg
114637e6533d5Smrg
1146458105723Smrg
114657e6533d5Smrg# as_fn_set_status STATUS
114667e6533d5Smrg# -----------------------
114677e6533d5Smrg# Set $? to STATUS, without forking.
114687e6533d5Smrgas_fn_set_status ()
114697e6533d5Smrg{
114707e6533d5Smrg  return $1
114717e6533d5Smrg} # as_fn_set_status
114727e6533d5Smrg
114737e6533d5Smrg# as_fn_exit STATUS
114747e6533d5Smrg# -----------------
114757e6533d5Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
114767e6533d5Smrgas_fn_exit ()
114777e6533d5Smrg{
114787e6533d5Smrg  set +e
114797e6533d5Smrg  as_fn_set_status $1
114807e6533d5Smrg  exit $1
114817e6533d5Smrg} # as_fn_exit
114827e6533d5Smrg
114837e6533d5Smrg# as_fn_unset VAR
114847e6533d5Smrg# ---------------
114857e6533d5Smrg# Portably unset VAR.
114867e6533d5Smrgas_fn_unset ()
114877e6533d5Smrg{
114887e6533d5Smrg  { eval $1=; unset $1;}
114897e6533d5Smrg}
114907e6533d5Smrgas_unset=as_fn_unset
1149158105723Smrg
114927e6533d5Smrg# as_fn_append VAR VALUE
114937e6533d5Smrg# ----------------------
114947e6533d5Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
114957e6533d5Smrg# advantage of any shell optimizations that allow amortized linear growth over
114967e6533d5Smrg# repeated appends, instead of the typical quadratic growth present in naive
114977e6533d5Smrg# implementations.
1149858105723Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
1149958105723Smrgthen :
115007e6533d5Smrg  eval 'as_fn_append ()
115017e6533d5Smrg  {
115027e6533d5Smrg    eval $1+=\$2
115037e6533d5Smrg  }'
1150458105723Smrgelse $as_nop
115057e6533d5Smrg  as_fn_append ()
115067e6533d5Smrg  {
115077e6533d5Smrg    eval $1=\$$1\$2
115087e6533d5Smrg  }
115097e6533d5Smrgfi # as_fn_append
115107e6533d5Smrg
115117e6533d5Smrg# as_fn_arith ARG...
115127e6533d5Smrg# ------------------
115137e6533d5Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
115147e6533d5Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
115157e6533d5Smrg# must be portable across $(()) and expr.
1151658105723Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
1151758105723Smrgthen :
115187e6533d5Smrg  eval 'as_fn_arith ()
115197e6533d5Smrg  {
115207e6533d5Smrg    as_val=$(( $* ))
115217e6533d5Smrg  }'
1152258105723Smrgelse $as_nop
115237e6533d5Smrg  as_fn_arith ()
115247e6533d5Smrg  {
115257e6533d5Smrg    as_val=`expr "$@" || test $? -eq 1`
115267e6533d5Smrg  }
115277e6533d5Smrgfi # as_fn_arith
115287e6533d5Smrg
11529067610f1Smrg
11530067610f1Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
11531067610f1Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11532067610f1Smrg  as_expr=expr
11533067610f1Smrgelse
11534067610f1Smrg  as_expr=false
11535067610f1Smrgfi
11536067610f1Smrg
11537067610f1Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11538067610f1Smrg  as_basename=basename
11539067610f1Smrgelse
11540067610f1Smrg  as_basename=false
11541067610f1Smrgfi
11542067610f1Smrg
115437e6533d5Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
115447e6533d5Smrg  as_dirname=dirname
115457e6533d5Smrgelse
115467e6533d5Smrg  as_dirname=false
115477e6533d5Smrgfi
11548067610f1Smrg
11549067610f1Smrgas_me=`$as_basename -- "$0" ||
11550067610f1Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11551067610f1Smrg	 X"$0" : 'X\(//\)$' \| \
11552067610f1Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1155358105723Smrgprintf "%s\n" X/"$0" |
11554067610f1Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
11555067610f1Smrg	    s//\1/
11556067610f1Smrg	    q
11557067610f1Smrg	  }
11558067610f1Smrg	  /^X\/\(\/\/\)$/{
11559067610f1Smrg	    s//\1/
11560067610f1Smrg	    q
11561067610f1Smrg	  }
11562067610f1Smrg	  /^X\/\(\/\).*/{
11563067610f1Smrg	    s//\1/
11564067610f1Smrg	    q
11565067610f1Smrg	  }
11566067610f1Smrg	  s/.*/./; q'`
11567067610f1Smrg
115687e6533d5Smrg# Avoid depending upon Character Ranges.
115697e6533d5Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
115707e6533d5Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
115717e6533d5Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
115727e6533d5Smrgas_cr_digits='0123456789'
115737e6533d5Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
11574067610f1Smrg
1157558105723Smrg
1157658105723Smrg# Determine whether it's possible to make 'echo' print without a newline.
1157758105723Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
1157858105723Smrg# for compatibility with existing Makefiles.
11579067610f1SmrgECHO_C= ECHO_N= ECHO_T=
115807e6533d5Smrgcase `echo -n x` in #(((((
11581067610f1Smrg-n*)
115827e6533d5Smrg  case `echo 'xy\c'` in
11583067610f1Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
115847e6533d5Smrg  xy)  ECHO_C='\c';;
115857e6533d5Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
115867e6533d5Smrg       ECHO_T='	';;
11587067610f1Smrg  esac;;
11588067610f1Smrg*)
11589067610f1Smrg  ECHO_N='-n';;
11590067610f1Smrgesac
11591067610f1Smrg
1159258105723Smrg# For backward compatibility with old third-party macros, we provide
1159358105723Smrg# the shell variables $as_echo and $as_echo_n.  New code should use
1159458105723Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
1159558105723Smrgas_echo='printf %s\n'
1159658105723Smrgas_echo_n='printf %s'
1159758105723Smrg
11598067610f1Smrgrm -f conf$$ conf$$.exe conf$$.file
11599067610f1Smrgif test -d conf$$.dir; then
11600067610f1Smrg  rm -f conf$$.dir/conf$$.file
11601067610f1Smrgelse
11602067610f1Smrg  rm -f conf$$.dir
116037e6533d5Smrg  mkdir conf$$.dir 2>/dev/null
116047e6533d5Smrgfi
116057e6533d5Smrgif (echo >conf$$.file) 2>/dev/null; then
116067e6533d5Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
116077e6533d5Smrg    as_ln_s='ln -s'
116087e6533d5Smrg    # ... but there are two gotchas:
116097e6533d5Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
116107e6533d5Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11611e7fdea5fSmrg    # In both cases, we have to default to `cp -pR'.
116127e6533d5Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11613e7fdea5fSmrg      as_ln_s='cp -pR'
116147e6533d5Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
116157e6533d5Smrg    as_ln_s=ln
116167e6533d5Smrg  else
11617e7fdea5fSmrg    as_ln_s='cp -pR'
116187e6533d5Smrg  fi
11619067610f1Smrgelse
11620e7fdea5fSmrg  as_ln_s='cp -pR'
11621067610f1Smrgfi
11622067610f1Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11623067610f1Smrgrmdir conf$$.dir 2>/dev/null
11624067610f1Smrg
116257e6533d5Smrg
116267e6533d5Smrg# as_fn_mkdir_p
116277e6533d5Smrg# -------------
116287e6533d5Smrg# Create "$as_dir" as a directory, including parents if necessary.
116297e6533d5Smrgas_fn_mkdir_p ()
116307e6533d5Smrg{
116317e6533d5Smrg
116327e6533d5Smrg  case $as_dir in #(
116337e6533d5Smrg  -*) as_dir=./$as_dir;;
116347e6533d5Smrg  esac
116357e6533d5Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
116367e6533d5Smrg    as_dirs=
116377e6533d5Smrg    while :; do
116387e6533d5Smrg      case $as_dir in #(
1163958105723Smrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
116407e6533d5Smrg      *) as_qdir=$as_dir;;
116417e6533d5Smrg      esac
116427e6533d5Smrg      as_dirs="'$as_qdir' $as_dirs"
116437e6533d5Smrg      as_dir=`$as_dirname -- "$as_dir" ||
116447e6533d5Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
116457e6533d5Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
116467e6533d5Smrg	 X"$as_dir" : 'X\(//\)$' \| \
116477e6533d5Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1164858105723Smrgprintf "%s\n" X"$as_dir" |
116497e6533d5Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
116507e6533d5Smrg	    s//\1/
116517e6533d5Smrg	    q
116527e6533d5Smrg	  }
116537e6533d5Smrg	  /^X\(\/\/\)[^/].*/{
116547e6533d5Smrg	    s//\1/
116557e6533d5Smrg	    q
116567e6533d5Smrg	  }
116577e6533d5Smrg	  /^X\(\/\/\)$/{
116587e6533d5Smrg	    s//\1/
116597e6533d5Smrg	    q
116607e6533d5Smrg	  }
116617e6533d5Smrg	  /^X\(\/\).*/{
116627e6533d5Smrg	    s//\1/
116637e6533d5Smrg	    q
116647e6533d5Smrg	  }
116657e6533d5Smrg	  s/.*/./; q'`
116667e6533d5Smrg      test -d "$as_dir" && break
116677e6533d5Smrg    done
116687e6533d5Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
116697e6533d5Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
116707e6533d5Smrg
116717e6533d5Smrg
116727e6533d5Smrg} # as_fn_mkdir_p
11673067610f1Smrgif mkdir -p . 2>/dev/null; then
116747e6533d5Smrg  as_mkdir_p='mkdir -p "$as_dir"'
11675067610f1Smrgelse
11676067610f1Smrg  test -d ./-p && rmdir ./-p
11677067610f1Smrg  as_mkdir_p=false
11678067610f1Smrgfi
11679067610f1Smrg
11680e7fdea5fSmrg
11681e7fdea5fSmrg# as_fn_executable_p FILE
11682e7fdea5fSmrg# -----------------------
11683e7fdea5fSmrg# Test if FILE is an executable regular file.
11684e7fdea5fSmrgas_fn_executable_p ()
11685e7fdea5fSmrg{
11686e7fdea5fSmrg  test -f "$1" && test -x "$1"
11687e7fdea5fSmrg} # as_fn_executable_p
11688e7fdea5fSmrgas_test_x='test -x'
11689e7fdea5fSmrgas_executable_p=as_fn_executable_p
11690067610f1Smrg
11691067610f1Smrg# Sed expression to map a string onto a valid CPP name.
11692067610f1Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11693067610f1Smrg
11694067610f1Smrg# Sed expression to map a string onto a valid variable name.
11695067610f1Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11696067610f1Smrg
11697067610f1Smrg
11698067610f1Smrgexec 6>&1
116997e6533d5Smrg## ----------------------------------- ##
117007e6533d5Smrg## Main body of $CONFIG_STATUS script. ##
117017e6533d5Smrg## ----------------------------------- ##
117027e6533d5Smrg_ASEOF
117037e6533d5Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11704067610f1Smrg
117057e6533d5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
117067e6533d5Smrg# Save the log message, to keep $0 and so on meaningful, and to
11707067610f1Smrg# report actual input values of CONFIG_FILES etc. instead of their
11708067610f1Smrg# values after options handling.
11709067610f1Smrgac_log="
1171058105723SmrgThis file was extended by xfsinfo $as_me 1.0.7, which was
1171158105723Smrggenerated by GNU Autoconf 2.71.  Invocation command line was
11712067610f1Smrg
11713067610f1Smrg  CONFIG_FILES    = $CONFIG_FILES
11714067610f1Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
11715067610f1Smrg  CONFIG_LINKS    = $CONFIG_LINKS
11716067610f1Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
11717067610f1Smrg  $ $0 $@
11718067610f1Smrg
11719067610f1Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
11720067610f1Smrg"
11721067610f1Smrg
11722067610f1Smrg_ACEOF
11723067610f1Smrg
117247e6533d5Smrgcase $ac_config_files in *"
117257e6533d5Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
117267e6533d5Smrgesac
117277e6533d5Smrg
117287e6533d5Smrgcase $ac_config_headers in *"
117297e6533d5Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
117307e6533d5Smrgesac
117317e6533d5Smrg
117327e6533d5Smrg
117337e6533d5Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11734067610f1Smrg# Files that config.status was made for.
11735067610f1Smrgconfig_files="$ac_config_files"
11736067610f1Smrgconfig_headers="$ac_config_headers"
11737067610f1Smrgconfig_commands="$ac_config_commands"
11738067610f1Smrg
11739067610f1Smrg_ACEOF
11740067610f1Smrg
117417e6533d5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11742067610f1Smrgac_cs_usage="\
117437e6533d5Smrg\`$as_me' instantiates files and other configuration actions
117447e6533d5Smrgfrom templates according to the current configuration.  Unless the files
117457e6533d5Smrgand actions are specified as TAGs, all are instantiated by default.
11746067610f1Smrg
117477e6533d5SmrgUsage: $0 [OPTION]... [TAG]...
11748067610f1Smrg
11749067610f1Smrg  -h, --help       print this help, then exit
11750067610f1Smrg  -V, --version    print version number and configuration settings, then exit
117517e6533d5Smrg      --config     print configuration, then exit
117527e6533d5Smrg  -q, --quiet, --silent
117537e6533d5Smrg                   do not print progress messages
11754067610f1Smrg  -d, --debug      don't remove temporary files
11755067610f1Smrg      --recheck    update $as_me by reconfiguring in the same conditions
117567e6533d5Smrg      --file=FILE[:TEMPLATE]
117577e6533d5Smrg                   instantiate the configuration file FILE
117587e6533d5Smrg      --header=FILE[:TEMPLATE]
117597e6533d5Smrg                   instantiate the configuration header FILE
11760067610f1Smrg
11761067610f1SmrgConfiguration files:
11762067610f1Smrg$config_files
11763067610f1Smrg
11764067610f1SmrgConfiguration headers:
11765067610f1Smrg$config_headers
11766067610f1Smrg
11767067610f1SmrgConfiguration commands:
11768067610f1Smrg$config_commands
11769067610f1Smrg
1177058105723SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xfsinfo/-/issues>."
11771067610f1Smrg
11772067610f1Smrg_ACEOF
1177358105723Smrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
1177458105723Smrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
117757e6533d5Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1177658105723Smrgac_cs_config='$ac_cs_config_escaped'
11777067610f1Smrgac_cs_version="\\
1177858105723Smrgxfsinfo config.status 1.0.7
1177958105723Smrgconfigured by $0, generated by GNU Autoconf 2.71,
117807e6533d5Smrg  with options \\"\$ac_cs_config\\"
11781067610f1Smrg
1178258105723SmrgCopyright (C) 2021 Free Software Foundation, Inc.
11783067610f1SmrgThis config.status script is free software; the Free Software Foundation
11784067610f1Smrggives unlimited permission to copy, distribute and modify it."
11785067610f1Smrg
11786067610f1Smrgac_pwd='$ac_pwd'
11787067610f1Smrgsrcdir='$srcdir'
11788067610f1SmrgINSTALL='$INSTALL'
11789067610f1SmrgMKDIR_P='$MKDIR_P'
117907e6533d5SmrgAWK='$AWK'
117917e6533d5Smrgtest -n "\$AWK" || AWK=awk
11792067610f1Smrg_ACEOF
11793067610f1Smrg
117947e6533d5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
117957e6533d5Smrg# The default lists apply if the user does not specify any file.
11796067610f1Smrgac_need_defaults=:
11797067610f1Smrgwhile test $# != 0
11798067610f1Smrgdo
11799067610f1Smrg  case $1 in
118007e6533d5Smrg  --*=?*)
11801067610f1Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11802067610f1Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11803067610f1Smrg    ac_shift=:
11804067610f1Smrg    ;;
118057e6533d5Smrg  --*=)
118067e6533d5Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
118077e6533d5Smrg    ac_optarg=
118087e6533d5Smrg    ac_shift=:
118097e6533d5Smrg    ;;
11810067610f1Smrg  *)
11811067610f1Smrg    ac_option=$1
11812067610f1Smrg    ac_optarg=$2
11813067610f1Smrg    ac_shift=shift
11814067610f1Smrg    ;;
11815067610f1Smrg  esac
11816067610f1Smrg
11817067610f1Smrg  case $ac_option in
11818067610f1Smrg  # Handling of the options.
11819067610f1Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11820067610f1Smrg    ac_cs_recheck=: ;;
11821067610f1Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1182258105723Smrg    printf "%s\n" "$ac_cs_version"; exit ;;
118237e6533d5Smrg  --config | --confi | --conf | --con | --co | --c )
1182458105723Smrg    printf "%s\n" "$ac_cs_config"; exit ;;
11825067610f1Smrg  --debug | --debu | --deb | --de | --d | -d )
11826067610f1Smrg    debug=: ;;
11827067610f1Smrg  --file | --fil | --fi | --f )
11828067610f1Smrg    $ac_shift
118297e6533d5Smrg    case $ac_optarg in
1183058105723Smrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
118317e6533d5Smrg    '') as_fn_error $? "missing file argument" ;;
118327e6533d5Smrg    esac
118337e6533d5Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
11834067610f1Smrg    ac_need_defaults=false;;
11835067610f1Smrg  --header | --heade | --head | --hea )
11836067610f1Smrg    $ac_shift
118377e6533d5Smrg    case $ac_optarg in
1183858105723Smrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
118397e6533d5Smrg    esac
118407e6533d5Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11841067610f1Smrg    ac_need_defaults=false;;
11842067610f1Smrg  --he | --h)
11843067610f1Smrg    # Conflict between --help and --header
118447e6533d5Smrg    as_fn_error $? "ambiguous option: \`$1'
118457e6533d5SmrgTry \`$0 --help' for more information.";;
11846067610f1Smrg  --help | --hel | -h )
1184758105723Smrg    printf "%s\n" "$ac_cs_usage"; exit ;;
11848067610f1Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11849067610f1Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11850067610f1Smrg    ac_cs_silent=: ;;
11851067610f1Smrg
11852067610f1Smrg  # This is an error.
118537e6533d5Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
118547e6533d5SmrgTry \`$0 --help' for more information." ;;
11855067610f1Smrg
118567e6533d5Smrg  *) as_fn_append ac_config_targets " $1"
11857067610f1Smrg     ac_need_defaults=false ;;
11858067610f1Smrg
11859067610f1Smrg  esac
11860067610f1Smrg  shift
11861067610f1Smrgdone
11862067610f1Smrg
11863067610f1Smrgac_configure_extra_args=
11864067610f1Smrg
11865067610f1Smrgif $ac_cs_silent; then
11866067610f1Smrg  exec 6>/dev/null
11867067610f1Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
11868067610f1Smrgfi
11869067610f1Smrg
11870067610f1Smrg_ACEOF
118717e6533d5Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11872067610f1Smrgif \$ac_cs_recheck; then
11873e7fdea5fSmrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
118747e6533d5Smrg  shift
1187558105723Smrg  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
118767e6533d5Smrg  CONFIG_SHELL='$SHELL'
11877067610f1Smrg  export CONFIG_SHELL
118787e6533d5Smrg  exec "\$@"
11879067610f1Smrgfi
11880067610f1Smrg
11881067610f1Smrg_ACEOF
118827e6533d5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11883067610f1Smrgexec 5>>config.log
11884067610f1Smrg{
11885067610f1Smrg  echo
11886067610f1Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11887067610f1Smrg## Running $as_me. ##
11888067610f1Smrg_ASBOX
1188958105723Smrg  printf "%s\n" "$ac_log"
11890067610f1Smrg} >&5
11891067610f1Smrg
11892067610f1Smrg_ACEOF
118937e6533d5Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11894067610f1Smrg#
11895067610f1Smrg# INIT-COMMANDS
11896067610f1Smrg#
1189758105723SmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11898067610f1Smrg
11899067610f1Smrg_ACEOF
11900067610f1Smrg
119017e6533d5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11902067610f1Smrg
11903067610f1Smrg# Handling of arguments.
11904067610f1Smrgfor ac_config_target in $ac_config_targets
11905067610f1Smrgdo
11906067610f1Smrg  case $ac_config_target in
119077e6533d5Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11908aea1d7ffSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11909067610f1Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11910aea1d7ffSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11911067610f1Smrg
119127e6533d5Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11913067610f1Smrg  esac
11914067610f1Smrgdone
11915067610f1Smrg
11916067610f1Smrg
11917067610f1Smrg# If the user did not use the arguments to specify the items to instantiate,
11918067610f1Smrg# then the envvar interface is used.  Set only those that are not.
11919067610f1Smrg# We use the long form for the default assignment because of an extremely
11920067610f1Smrg# bizarre bug on SunOS 4.1.3.
11921067610f1Smrgif $ac_need_defaults; then
1192258105723Smrg  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
1192358105723Smrg  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
1192458105723Smrg  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
11925067610f1Smrgfi
11926067610f1Smrg
11927067610f1Smrg# Have a temporary directory for convenience.  Make it in the build tree
11928067610f1Smrg# simply because there is no reason against having it here, and in addition,
11929067610f1Smrg# creating and moving files from /tmp can sometimes cause problems.
11930067610f1Smrg# Hook for its removal unless debugging.
11931067610f1Smrg# Note that there is a small window in which the directory will not be cleaned:
11932067610f1Smrg# after its creation but before its name has been assigned to `$tmp'.
11933067610f1Smrg$debug ||
11934067610f1Smrg{
119357e6533d5Smrg  tmp= ac_tmp=
11936067610f1Smrg  trap 'exit_status=$?
119377e6533d5Smrg  : "${ac_tmp:=$tmp}"
119387e6533d5Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11939067610f1Smrg' 0
119407e6533d5Smrg  trap 'as_fn_exit 1' 1 2 13 15
11941067610f1Smrg}
11942067610f1Smrg# Create a (secure) tmp directory for tmp files.
11943067610f1Smrg
11944067610f1Smrg{
11945067610f1Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
119467e6533d5Smrg  test -d "$tmp"
11947067610f1Smrg}  ||
11948067610f1Smrg{
11949067610f1Smrg  tmp=./conf$$-$RANDOM
11950067610f1Smrg  (umask 077 && mkdir "$tmp")
119517e6533d5Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
119527e6533d5Smrgac_tmp=$tmp
11953067610f1Smrg
119547e6533d5Smrg# Set up the scripts for CONFIG_FILES section.
119557e6533d5Smrg# No need to generate them if there are no CONFIG_FILES.
119567e6533d5Smrg# This happens for instance with `./config.status config.h'.
11957067610f1Smrgif test -n "$CONFIG_FILES"; then
11958067610f1Smrg
11959067610f1Smrg
119607e6533d5Smrgac_cr=`echo X | tr X '\015'`
119617e6533d5Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
119627e6533d5Smrg# But we know of no other shell where ac_cr would be empty at this
119637e6533d5Smrg# point, so we can use a bashism as a fallback.
119647e6533d5Smrgif test "x$ac_cr" = x; then
119657e6533d5Smrg  eval ac_cr=\$\'\\r\'
119667e6533d5Smrgfi
119677e6533d5Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
119687e6533d5Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
119697e6533d5Smrg  ac_cs_awk_cr='\\r'
119707e6533d5Smrgelse
119717e6533d5Smrg  ac_cs_awk_cr=$ac_cr
11972067610f1Smrgfi
11973067610f1Smrg
119747e6533d5Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11975067610f1Smrg_ACEOF
11976067610f1Smrg
11977067610f1Smrg
119787e6533d5Smrg{
119797e6533d5Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
119807e6533d5Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
119817e6533d5Smrg  echo "_ACEOF"
119827e6533d5Smrg} >conf$$subs.sh ||
119837e6533d5Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
119847e6533d5Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11985067610f1Smrgac_delim='%!_!# '
11986067610f1Smrgfor ac_last_try in false false false false false :; do
119877e6533d5Smrg  . ./conf$$subs.sh ||
119887e6533d5Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11989067610f1Smrg
119907e6533d5Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
119917e6533d5Smrg  if test $ac_delim_n = $ac_delim_num; then
11992067610f1Smrg    break
11993067610f1Smrg  elif $ac_last_try; then
119947e6533d5Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11995067610f1Smrg  else
11996067610f1Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11997067610f1Smrg  fi
11998067610f1Smrgdone
119997e6533d5Smrgrm -f conf$$subs.sh
12000067610f1Smrg
120017e6533d5Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
120027e6533d5Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
120037e6533d5Smrg_ACEOF
120047e6533d5Smrgsed -n '
120057e6533d5Smrgh
120067e6533d5Smrgs/^/S["/; s/!.*/"]=/
120077e6533d5Smrgp
120087e6533d5Smrgg
120097e6533d5Smrgs/^[^!]*!//
120107e6533d5Smrg:repl
120117e6533d5Smrgt repl
120127e6533d5Smrgs/'"$ac_delim"'$//
120137e6533d5Smrgt delim
120147e6533d5Smrg:nl
120157e6533d5Smrgh
120167e6533d5Smrgs/\(.\{148\}\)..*/\1/
120177e6533d5Smrgt more1
120187e6533d5Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
120197e6533d5Smrgp
120207e6533d5Smrgn
120217e6533d5Smrgb repl
120227e6533d5Smrg:more1
120237e6533d5Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
120247e6533d5Smrgp
120257e6533d5Smrgg
120267e6533d5Smrgs/.\{148\}//
120277e6533d5Smrgt nl
120287e6533d5Smrg:delim
120297e6533d5Smrgh
120307e6533d5Smrgs/\(.\{148\}\)..*/\1/
120317e6533d5Smrgt more2
120327e6533d5Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
120337e6533d5Smrgp
120347e6533d5Smrgb
120357e6533d5Smrg:more2
120367e6533d5Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
120377e6533d5Smrgp
120387e6533d5Smrgg
120397e6533d5Smrgs/.\{148\}//
120407e6533d5Smrgt delim
120417e6533d5Smrg' <conf$$subs.awk | sed '
120427e6533d5Smrg/^[^""]/{
120437e6533d5Smrg  N
120447e6533d5Smrg  s/\n//
120457e6533d5Smrg}
120467e6533d5Smrg' >>$CONFIG_STATUS || ac_write_fail=1
120477e6533d5Smrgrm -f conf$$subs.awk
120487e6533d5Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
120497e6533d5Smrg_ACAWK
120507e6533d5Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
120517e6533d5Smrg  for (key in S) S_is_set[key] = 1
120527e6533d5Smrg  FS = ""
120537e6533d5Smrg
120547e6533d5Smrg}
120557e6533d5Smrg{
120567e6533d5Smrg  line = $ 0
120577e6533d5Smrg  nfields = split(line, field, "@")
120587e6533d5Smrg  substed = 0
120597e6533d5Smrg  len = length(field[1])
120607e6533d5Smrg  for (i = 2; i < nfields; i++) {
120617e6533d5Smrg    key = field[i]
120627e6533d5Smrg    keylen = length(key)
120637e6533d5Smrg    if (S_is_set[key]) {
120647e6533d5Smrg      value = S[key]
120657e6533d5Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
120667e6533d5Smrg      len += length(value) + length(field[++i])
120677e6533d5Smrg      substed = 1
120687e6533d5Smrg    } else
120697e6533d5Smrg      len += 1 + keylen
120707e6533d5Smrg  }
120717e6533d5Smrg
120727e6533d5Smrg  print line
120737e6533d5Smrg}
12074067610f1Smrg
120757e6533d5Smrg_ACAWK
12076067610f1Smrg_ACEOF
120777e6533d5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
120787e6533d5Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
120797e6533d5Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
120807e6533d5Smrgelse
120817e6533d5Smrg  cat
120827e6533d5Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
120837e6533d5Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12084067610f1Smrg_ACEOF
12085067610f1Smrg
120867e6533d5Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
120877e6533d5Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12088067610f1Smrg# trailing colons and then remove the whole line if VPATH becomes empty
12089067610f1Smrg# (actually we leave an empty line to preserve line numbers).
12090067610f1Smrgif test "x$srcdir" = x.; then
120917e6533d5Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
120927e6533d5Smrgh
120937e6533d5Smrgs///
120947e6533d5Smrgs/^/:/
120957e6533d5Smrgs/[	 ]*$/:/
120967e6533d5Smrgs/:\$(srcdir):/:/g
120977e6533d5Smrgs/:\${srcdir}:/:/g
120987e6533d5Smrgs/:@srcdir@:/:/g
120997e6533d5Smrgs/^:*//
12100067610f1Smrgs/:*$//
121017e6533d5Smrgx
121027e6533d5Smrgs/\(=[	 ]*\).*/\1/
121037e6533d5SmrgG
121047e6533d5Smrgs/\n//
12105067610f1Smrgs/^[^=]*=[	 ]*$//
12106067610f1Smrg}'
12107067610f1Smrgfi
12108067610f1Smrg
121097e6533d5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12110067610f1Smrgfi # test -n "$CONFIG_FILES"
12111067610f1Smrg
121127e6533d5Smrg# Set up the scripts for CONFIG_HEADERS section.
121137e6533d5Smrg# No need to generate them if there are no CONFIG_HEADERS.
121147e6533d5Smrg# This happens for instance with `./config.status Makefile'.
121157e6533d5Smrgif test -n "$CONFIG_HEADERS"; then
121167e6533d5Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
121177e6533d5SmrgBEGIN {
121187e6533d5Smrg_ACEOF
121197e6533d5Smrg
121207e6533d5Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
121217e6533d5Smrg# here-document in config.status, that substitutes the proper values into
121227e6533d5Smrg# config.h.in to produce config.h.
121237e6533d5Smrg
121247e6533d5Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
121257e6533d5Smrg# handling of long lines.
121267e6533d5Smrgac_delim='%!_!# '
121277e6533d5Smrgfor ac_last_try in false false :; do
121287e6533d5Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
121297e6533d5Smrg  if test -z "$ac_tt"; then
121307e6533d5Smrg    break
121317e6533d5Smrg  elif $ac_last_try; then
121327e6533d5Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
121337e6533d5Smrg  else
121347e6533d5Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
121357e6533d5Smrg  fi
121367e6533d5Smrgdone
121377e6533d5Smrg
121387e6533d5Smrg# For the awk script, D is an array of macro values keyed by name,
121397e6533d5Smrg# likewise P contains macro parameters if any.  Preserve backslash
121407e6533d5Smrg# newline sequences.
121417e6533d5Smrg
121427e6533d5Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
121437e6533d5Smrgsed -n '
121447e6533d5Smrgs/.\{148\}/&'"$ac_delim"'/g
121457e6533d5Smrgt rset
121467e6533d5Smrg:rset
121477e6533d5Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
121487e6533d5Smrgt def
121497e6533d5Smrgd
121507e6533d5Smrg:def
121517e6533d5Smrgs/\\$//
121527e6533d5Smrgt bsnl
121537e6533d5Smrgs/["\\]/\\&/g
121547e6533d5Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
121557e6533d5SmrgD["\1"]=" \3"/p
121567e6533d5Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
121577e6533d5Smrgd
121587e6533d5Smrg:bsnl
121597e6533d5Smrgs/["\\]/\\&/g
121607e6533d5Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
121617e6533d5SmrgD["\1"]=" \3\\\\\\n"\\/p
121627e6533d5Smrgt cont
121637e6533d5Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
121647e6533d5Smrgt cont
121657e6533d5Smrgd
121667e6533d5Smrg:cont
121677e6533d5Smrgn
121687e6533d5Smrgs/.\{148\}/&'"$ac_delim"'/g
121697e6533d5Smrgt clear
121707e6533d5Smrg:clear
121717e6533d5Smrgs/\\$//
121727e6533d5Smrgt bsnlc
121737e6533d5Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
121747e6533d5Smrgd
121757e6533d5Smrg:bsnlc
121767e6533d5Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
121777e6533d5Smrgb cont
121787e6533d5Smrg' <confdefs.h | sed '
121797e6533d5Smrgs/'"$ac_delim"'/"\\\
121807e6533d5Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
121817e6533d5Smrg
121827e6533d5Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
121837e6533d5Smrg  for (key in D) D_is_set[key] = 1
121847e6533d5Smrg  FS = ""
121857e6533d5Smrg}
121867e6533d5Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
121877e6533d5Smrg  line = \$ 0
121887e6533d5Smrg  split(line, arg, " ")
121897e6533d5Smrg  if (arg[1] == "#") {
121907e6533d5Smrg    defundef = arg[2]
121917e6533d5Smrg    mac1 = arg[3]
121927e6533d5Smrg  } else {
121937e6533d5Smrg    defundef = substr(arg[1], 2)
121947e6533d5Smrg    mac1 = arg[2]
121957e6533d5Smrg  }
121967e6533d5Smrg  split(mac1, mac2, "(") #)
121977e6533d5Smrg  macro = mac2[1]
121987e6533d5Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
121997e6533d5Smrg  if (D_is_set[macro]) {
122007e6533d5Smrg    # Preserve the white space surrounding the "#".
122017e6533d5Smrg    print prefix "define", macro P[macro] D[macro]
122027e6533d5Smrg    next
122037e6533d5Smrg  } else {
122047e6533d5Smrg    # Replace #undef with comments.  This is necessary, for example,
122057e6533d5Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
122067e6533d5Smrg    # on some systems where configure will not decide to define it.
122077e6533d5Smrg    if (defundef == "undef") {
122087e6533d5Smrg      print "/*", prefix defundef, macro, "*/"
122097e6533d5Smrg      next
122107e6533d5Smrg    }
122117e6533d5Smrg  }
122127e6533d5Smrg}
122137e6533d5Smrg{ print }
122147e6533d5Smrg_ACAWK
122157e6533d5Smrg_ACEOF
122167e6533d5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
122177e6533d5Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
122187e6533d5Smrgfi # test -n "$CONFIG_HEADERS"
122197e6533d5Smrg
12220067610f1Smrg
122217e6533d5Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
122227e6533d5Smrgshift
122237e6533d5Smrgfor ac_tag
12224067610f1Smrgdo
12225067610f1Smrg  case $ac_tag in
12226067610f1Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
12227067610f1Smrg  esac
12228067610f1Smrg  case $ac_mode$ac_tag in
12229067610f1Smrg  :[FHL]*:*);;
122307e6533d5Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12231067610f1Smrg  :[FH]-) ac_tag=-:-;;
12232067610f1Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12233067610f1Smrg  esac
12234067610f1Smrg  ac_save_IFS=$IFS
12235067610f1Smrg  IFS=:
12236067610f1Smrg  set x $ac_tag
12237067610f1Smrg  IFS=$ac_save_IFS
12238067610f1Smrg  shift
12239067610f1Smrg  ac_file=$1
12240067610f1Smrg  shift
12241067610f1Smrg
12242067610f1Smrg  case $ac_mode in
12243067610f1Smrg  :L) ac_source=$1;;
12244067610f1Smrg  :[FH])
12245067610f1Smrg    ac_file_inputs=
12246067610f1Smrg    for ac_f
12247067610f1Smrg    do
12248067610f1Smrg      case $ac_f in
122497e6533d5Smrg      -) ac_f="$ac_tmp/stdin";;
12250067610f1Smrg      *) # Look for the file first in the build tree, then in the source tree
12251067610f1Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12252067610f1Smrg	 # because $ac_f cannot contain `:'.
12253067610f1Smrg	 test -f "$ac_f" ||
12254067610f1Smrg	   case $ac_f in
12255067610f1Smrg	   [\\/$]*) false;;
12256067610f1Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12257067610f1Smrg	   esac ||
122587e6533d5Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12259067610f1Smrg      esac
1226058105723Smrg      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
122617e6533d5Smrg      as_fn_append ac_file_inputs " '$ac_f'"
12262067610f1Smrg    done
12263067610f1Smrg
12264067610f1Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
12265067610f1Smrg    # use $as_me), people would be surprised to read:
12266067610f1Smrg    #    /* config.h.  Generated by config.status.  */
122677e6533d5Smrg    configure_input='Generated from '`
1226858105723Smrg	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
122697e6533d5Smrg	`' by configure.'
12270067610f1Smrg    if test x"$ac_file" != x-; then
12271067610f1Smrg      configure_input="$ac_file.  $configure_input"
1227258105723Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
1227358105723Smrgprintf "%s\n" "$as_me: creating $ac_file" >&6;}
12274067610f1Smrg    fi
122757e6533d5Smrg    # Neutralize special characters interpreted by sed in replacement strings.
122767e6533d5Smrg    case $configure_input in #(
122777e6533d5Smrg    *\&* | *\|* | *\\* )
1227858105723Smrg       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
122797e6533d5Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
122807e6533d5Smrg    *) ac_sed_conf_input=$configure_input;;
122817e6533d5Smrg    esac
12282067610f1Smrg
12283067610f1Smrg    case $ac_tag in
122847e6533d5Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
122857e6533d5Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12286067610f1Smrg    esac
12287067610f1Smrg    ;;
12288067610f1Smrg  esac
12289067610f1Smrg
12290067610f1Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
12291067610f1Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12292067610f1Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
12293067610f1Smrg	 X"$ac_file" : 'X\(//\)$' \| \
12294067610f1Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1229558105723Smrgprintf "%s\n" X"$ac_file" |
12296067610f1Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12297067610f1Smrg	    s//\1/
12298067610f1Smrg	    q
12299067610f1Smrg	  }
12300067610f1Smrg	  /^X\(\/\/\)[^/].*/{
12301067610f1Smrg	    s//\1/
12302067610f1Smrg	    q
12303067610f1Smrg	  }
12304067610f1Smrg	  /^X\(\/\/\)$/{
12305067610f1Smrg	    s//\1/
12306067610f1Smrg	    q
12307067610f1Smrg	  }
12308067610f1Smrg	  /^X\(\/\).*/{
12309067610f1Smrg	    s//\1/
12310067610f1Smrg	    q
12311067610f1Smrg	  }
12312067610f1Smrg	  s/.*/./; q'`
123137e6533d5Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
12314067610f1Smrg  ac_builddir=.
12315067610f1Smrg
12316067610f1Smrgcase "$ac_dir" in
12317067610f1Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12318067610f1Smrg*)
1231958105723Smrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12320067610f1Smrg  # A ".." for each directory in $ac_dir_suffix.
1232158105723Smrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12322067610f1Smrg  case $ac_top_builddir_sub in
12323067610f1Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12324067610f1Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12325067610f1Smrg  esac ;;
12326067610f1Smrgesac
12327067610f1Smrgac_abs_top_builddir=$ac_pwd
12328067610f1Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
12329067610f1Smrg# for backward compatibility:
12330067610f1Smrgac_top_builddir=$ac_top_build_prefix
12331067610f1Smrg
12332067610f1Smrgcase $srcdir in
12333067610f1Smrg  .)  # We are building in place.
12334067610f1Smrg    ac_srcdir=.
12335067610f1Smrg    ac_top_srcdir=$ac_top_builddir_sub
12336067610f1Smrg    ac_abs_top_srcdir=$ac_pwd ;;
12337067610f1Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
12338067610f1Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
12339067610f1Smrg    ac_top_srcdir=$srcdir
12340067610f1Smrg    ac_abs_top_srcdir=$srcdir ;;
12341067610f1Smrg  *) # Relative name.
12342067610f1Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12343067610f1Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
12344067610f1Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12345067610f1Smrgesac
12346067610f1Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12347067610f1Smrg
12348067610f1Smrg
12349067610f1Smrg  case $ac_mode in
12350067610f1Smrg  :F)
12351067610f1Smrg  #
12352067610f1Smrg  # CONFIG_FILE
12353067610f1Smrg  #
12354067610f1Smrg
12355067610f1Smrg  case $INSTALL in
12356067610f1Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12357067610f1Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12358067610f1Smrg  esac
12359067610f1Smrg  ac_MKDIR_P=$MKDIR_P
12360067610f1Smrg  case $MKDIR_P in
12361067610f1Smrg  [\\/$]* | ?:[\\/]* ) ;;
12362067610f1Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12363067610f1Smrg  esac
12364067610f1Smrg_ACEOF
12365067610f1Smrg
123667e6533d5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12367067610f1Smrg# If the template does not know about datarootdir, expand it.
12368067610f1Smrg# FIXME: This hack should be removed a few years after 2.60.
12369067610f1Smrgac_datarootdir_hack=; ac_datarootdir_seen=
123707e6533d5Smrgac_sed_dataroot='
123717e6533d5Smrg/datarootdir/ {
12372067610f1Smrg  p
12373067610f1Smrg  q
12374067610f1Smrg}
12375067610f1Smrg/@datadir@/p
12376067610f1Smrg/@docdir@/p
12377067610f1Smrg/@infodir@/p
12378067610f1Smrg/@localedir@/p
123797e6533d5Smrg/@mandir@/p'
123807e6533d5Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12381067610f1Smrg*datarootdir*) ac_datarootdir_seen=yes;;
12382067610f1Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1238358105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
1238458105723Smrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12385067610f1Smrg_ACEOF
123867e6533d5Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12387067610f1Smrg  ac_datarootdir_hack='
12388067610f1Smrg  s&@datadir@&$datadir&g
12389067610f1Smrg  s&@docdir@&$docdir&g
12390067610f1Smrg  s&@infodir@&$infodir&g
12391067610f1Smrg  s&@localedir@&$localedir&g
12392067610f1Smrg  s&@mandir@&$mandir&g
123937e6533d5Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
12394067610f1Smrgesac
12395067610f1Smrg_ACEOF
12396067610f1Smrg
12397067610f1Smrg# Neutralize VPATH when `$srcdir' = `.'.
12398067610f1Smrg# Shell code in configure.ac might set extrasub.
12399067610f1Smrg# FIXME: do we really want to maintain this feature?
124007e6533d5Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
124017e6533d5Smrgac_sed_extra="$ac_vpsub
12402067610f1Smrg$extrasub
12403067610f1Smrg_ACEOF
124047e6533d5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12405067610f1Smrg:t
12406067610f1Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
124077e6533d5Smrgs|@configure_input@|$ac_sed_conf_input|;t t
12408067610f1Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
124097e6533d5Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
12410067610f1Smrgs&@srcdir@&$ac_srcdir&;t t
12411067610f1Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
12412067610f1Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
12413067610f1Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12414067610f1Smrgs&@builddir@&$ac_builddir&;t t
12415067610f1Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
12416067610f1Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12417067610f1Smrgs&@INSTALL@&$ac_INSTALL&;t t
12418067610f1Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
12419067610f1Smrg$ac_datarootdir_hack
124207e6533d5Smrg"
124217e6533d5Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
124227e6533d5Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12423067610f1Smrg
12424067610f1Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
124257e6533d5Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
124267e6533d5Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
124277e6533d5Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
1242858105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
124297e6533d5Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
1243058105723Smrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
124317e6533d5Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
124327e6533d5Smrg
124337e6533d5Smrg  rm -f "$ac_tmp/stdin"
12434067610f1Smrg  case $ac_file in
124357e6533d5Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
124367e6533d5Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
124377e6533d5Smrg  esac \
124387e6533d5Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12439067610f1Smrg ;;
12440067610f1Smrg  :H)
12441067610f1Smrg  #
12442067610f1Smrg  # CONFIG_HEADER
12443067610f1Smrg  #
12444067610f1Smrg  if test x"$ac_file" != x-; then
124457e6533d5Smrg    {
1244658105723Smrg      printf "%s\n" "/* $configure_input  */" >&1 \
124477e6533d5Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
124487e6533d5Smrg    } >"$ac_tmp/config.h" \
124497e6533d5Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
124507e6533d5Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1245158105723Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1245258105723Smrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12453067610f1Smrg    else
124547e6533d5Smrg      rm -f "$ac_file"
124557e6533d5Smrg      mv "$ac_tmp/config.h" "$ac_file" \
124567e6533d5Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12457067610f1Smrg    fi
12458067610f1Smrg  else
1245958105723Smrg    printf "%s\n" "/* $configure_input  */" >&1 \
124607e6533d5Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
124617e6533d5Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
12462067610f1Smrg  fi
124637e6533d5Smrg# Compute "$ac_file"'s index in $config_headers.
124647e6533d5Smrg_am_arg="$ac_file"
12465067610f1Smrg_am_stamp_count=1
12466067610f1Smrgfor _am_header in $config_headers :; do
12467067610f1Smrg  case $_am_header in
124687e6533d5Smrg    $_am_arg | $_am_arg:* )
12469067610f1Smrg      break ;;
12470067610f1Smrg    * )
12471067610f1Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12472067610f1Smrg  esac
12473067610f1Smrgdone
124747e6533d5Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
124757e6533d5Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
124767e6533d5Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
124777e6533d5Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
124787e6533d5Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1247958105723Smrgprintf "%s\n" X"$_am_arg" |
12480067610f1Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12481067610f1Smrg	    s//\1/
12482067610f1Smrg	    q
12483067610f1Smrg	  }
12484067610f1Smrg	  /^X\(\/\/\)[^/].*/{
12485067610f1Smrg	    s//\1/
12486067610f1Smrg	    q
12487067610f1Smrg	  }
12488067610f1Smrg	  /^X\(\/\/\)$/{
12489067610f1Smrg	    s//\1/
12490067610f1Smrg	    q
12491067610f1Smrg	  }
12492067610f1Smrg	  /^X\(\/\).*/{
12493067610f1Smrg	    s//\1/
12494067610f1Smrg	    q
12495067610f1Smrg	  }
12496067610f1Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
12497067610f1Smrg ;;
12498067610f1Smrg
1249958105723Smrg  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
1250058105723Smrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12501067610f1Smrg ;;
12502067610f1Smrg  esac
12503067610f1Smrg
12504067610f1Smrg
12505067610f1Smrg  case $ac_file$ac_mode in
125067e6533d5Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12507e7fdea5fSmrg  # Older Autoconf quotes --file arguments for eval, but not when files
125087e6533d5Smrg  # are listed without --file.  Let's play safe and only enable the eval
125097e6533d5Smrg  # if we detect the quoting.
1251058105723Smrg  # TODO: see whether this extra hack can be removed once we start
1251158105723Smrg  # requiring Autoconf 2.70 or later.
1251258105723Smrg  case $CONFIG_FILES in #(
1251358105723Smrg  *\'*) :
1251458105723Smrg    eval set x "$CONFIG_FILES" ;; #(
1251558105723Smrg  *) :
1251658105723Smrg    set x $CONFIG_FILES ;; #(
1251758105723Smrg  *) :
1251858105723Smrg     ;;
1251958105723Smrgesac
125207e6533d5Smrg  shift
1252158105723Smrg  # Used to flag and report bootstrapping failures.
1252258105723Smrg  am_rc=0
1252358105723Smrg  for am_mf
125247e6533d5Smrg  do
125257e6533d5Smrg    # Strip MF so we end up with the name of the file.
1252658105723Smrg    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
1252758105723Smrg    # Check whether this is an Automake generated Makefile which includes
1252858105723Smrg    # dependency-tracking related rules and includes.
1252958105723Smrg    # Grep'ing the whole file directly is not great: AIX grep has a line
125307e6533d5Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
1253158105723Smrg    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
1253258105723Smrg      || continue
1253358105723Smrg    am_dirpart=`$as_dirname -- "$am_mf" ||
1253458105723Smrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253558105723Smrg	 X"$am_mf" : 'X\(//\)[^/]' \| \
1253658105723Smrg	 X"$am_mf" : 'X\(//\)$' \| \
1253758105723Smrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1253858105723Smrgprintf "%s\n" X"$am_mf" |
12539067610f1Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12540067610f1Smrg	    s//\1/
12541067610f1Smrg	    q
12542067610f1Smrg	  }
12543067610f1Smrg	  /^X\(\/\/\)[^/].*/{
12544067610f1Smrg	    s//\1/
12545067610f1Smrg	    q
12546067610f1Smrg	  }
12547067610f1Smrg	  /^X\(\/\/\)$/{
12548067610f1Smrg	    s//\1/
12549067610f1Smrg	    q
12550067610f1Smrg	  }
12551067610f1Smrg	  /^X\(\/\).*/{
12552067610f1Smrg	    s//\1/
12553067610f1Smrg	    q
12554067610f1Smrg	  }
12555067610f1Smrg	  s/.*/./; q'`
1255658105723Smrg    am_filepart=`$as_basename -- "$am_mf" ||
1255758105723Smrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
1255858105723Smrg	 X"$am_mf" : 'X\(//\)$' \| \
1255958105723Smrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1256058105723Smrgprintf "%s\n" X/"$am_mf" |
1256158105723Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
12562067610f1Smrg	    s//\1/
12563067610f1Smrg	    q
12564067610f1Smrg	  }
1256558105723Smrg	  /^X\/\(\/\/\)$/{
12566067610f1Smrg	    s//\1/
12567067610f1Smrg	    q
12568067610f1Smrg	  }
1256958105723Smrg	  /^X\/\(\/\).*/{
12570067610f1Smrg	    s//\1/
12571067610f1Smrg	    q
12572067610f1Smrg	  }
12573067610f1Smrg	  s/.*/./; q'`
1257458105723Smrg    { echo "$as_me:$LINENO: cd "$am_dirpart" \
1257558105723Smrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
1257658105723Smrg        | $MAKE -f - am--depfiles" >&5
1257758105723Smrg   (cd "$am_dirpart" \
1257858105723Smrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
1257958105723Smrg        | $MAKE -f - am--depfiles) >&5 2>&5
1258058105723Smrg   ac_status=$?
1258158105723Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1258258105723Smrg   (exit $ac_status); } || am_rc=$?
12583067610f1Smrg  done
1258458105723Smrg  if test $am_rc -ne 0; then
1258558105723Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1258658105723Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1258758105723Smrgas_fn_error $? "Something went wrong bootstrapping makefile fragments
1258858105723Smrg    for automatic dependency tracking.  If GNU make was not used, consider
1258958105723Smrg    re-running the configure script with MAKE=\"gmake\" (or whatever is
1259058105723Smrg    necessary).  You can also try re-running configure with the
1259158105723Smrg    '--disable-dependency-tracking' option to at least be able to build
1259258105723Smrg    the package (albeit without support for automatic dependency tracking).
1259358105723SmrgSee \`config.log' for more details" "$LINENO" 5; }
1259458105723Smrg  fi
1259558105723Smrg  { am_dirpart=; unset am_dirpart;}
1259658105723Smrg  { am_filepart=; unset am_filepart;}
1259758105723Smrg  { am_mf=; unset am_mf;}
1259858105723Smrg  { am_rc=; unset am_rc;}
1259958105723Smrg  rm -f conftest-deps.mk
126007e6533d5Smrg}
12601067610f1Smrg ;;
12602067610f1Smrg
12603067610f1Smrg  esac
12604067610f1Smrgdone # for ac_tag
12605067610f1Smrg
12606067610f1Smrg
126077e6533d5Smrgas_fn_exit 0
12608067610f1Smrg_ACEOF
12609067610f1Smrgac_clean_files=$ac_clean_files_save
12610067610f1Smrg
126117e6533d5Smrgtest $ac_write_fail = 0 ||
126127e6533d5Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
126137e6533d5Smrg
12614067610f1Smrg
12615067610f1Smrg# configure is writing to config.log, and then calls config.status.
12616067610f1Smrg# config.status does its own redirection, appending to config.log.
12617067610f1Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
12618067610f1Smrg# by configure, so config.status won't be able to write to it; its
12619067610f1Smrg# output is simply discarded.  So we exec the FD to /dev/null,
12620067610f1Smrg# effectively closing config.log, so it can be properly (re)opened and
12621067610f1Smrg# appended to by config.status.  When coming back to configure, we
12622067610f1Smrg# need to make the FD available again.
12623067610f1Smrgif test "$no_create" != yes; then
12624067610f1Smrg  ac_cs_success=:
12625067610f1Smrg  ac_config_status_args=
12626067610f1Smrg  test "$silent" = yes &&
12627067610f1Smrg    ac_config_status_args="$ac_config_status_args --quiet"
12628067610f1Smrg  exec 5>/dev/null
12629067610f1Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12630067610f1Smrg  exec 5>>config.log
12631067610f1Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12632067610f1Smrg  # would make configure fail if this is the last instruction.
126337e6533d5Smrg  $ac_cs_success || as_fn_exit 1
126347e6533d5Smrgfi
126357e6533d5Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1263658105723Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
1263758105723Smrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12638067610f1Smrgfi
12639067610f1Smrg
1264058105723Smrg
12641