configure revision c05e7a3e
1e6232409Smrg#! /bin/sh
2e6232409Smrg# Guess values for system-dependent variables and create Makefiles.
3c05e7a3eSmrg# Generated by GNU Autoconf 2.69 for xlsfonts 1.0.6.
4e6232409Smrg#
5e6232409Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6e6232409Smrg#
78fff3f40Smrg#
86a45684fSmrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
98fff3f40Smrg#
108fff3f40Smrg#
11e6232409Smrg# This configure script is free software; the Free Software Foundation
12e6232409Smrg# gives unlimited permission to copy, distribute and modify it.
138fff3f40Smrg## -------------------- ##
148fff3f40Smrg## M4sh Initialization. ##
158fff3f40Smrg## -------------------- ##
16e6232409Smrg
178fff3f40Smrg# Be more Bourne compatible
188fff3f40SmrgDUALCASE=1; export DUALCASE # for MKS sh
198fff3f40Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20e6232409Smrg  emulate sh
21e6232409Smrg  NULLCMD=:
228fff3f40Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23e6232409Smrg  # is contrary to our usage.  Disable this feature.
24e6232409Smrg  alias -g '${1+"$@"}'='"$@"'
25e6232409Smrg  setopt NO_GLOB_SUBST
26e6232409Smrgelse
278fff3f40Smrg  case `(set -o) 2>/dev/null` in #(
288fff3f40Smrg  *posix*) :
298fff3f40Smrg    set -o posix ;; #(
308fff3f40Smrg  *) :
318fff3f40Smrg     ;;
328fff3f40Smrgesac
33e6232409Smrgfi
34e6232409Smrg
35e6232409Smrg
368fff3f40Smrgas_nl='
378fff3f40Smrg'
388fff3f40Smrgexport as_nl
398fff3f40Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
408fff3f40Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
418fff3f40Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
428fff3f40Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
438fff3f40Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
448fff3f40Smrg# but without wasting forks for bash or zsh.
458fff3f40Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
468fff3f40Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
478fff3f40Smrg  as_echo='print -r --'
488fff3f40Smrg  as_echo_n='print -rn --'
498fff3f40Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
508fff3f40Smrg  as_echo='printf %s\n'
518fff3f40Smrg  as_echo_n='printf %s'
528fff3f40Smrgelse
538fff3f40Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
548fff3f40Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
558fff3f40Smrg    as_echo_n='/usr/ucb/echo -n'
56e6232409Smrg  else
578fff3f40Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
588fff3f40Smrg    as_echo_n_body='eval
598fff3f40Smrg      arg=$1;
608fff3f40Smrg      case $arg in #(
618fff3f40Smrg      *"$as_nl"*)
628fff3f40Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
638fff3f40Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
648fff3f40Smrg      esac;
658fff3f40Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
668fff3f40Smrg    '
678fff3f40Smrg    export as_echo_n_body
688fff3f40Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
69e6232409Smrg  fi
708fff3f40Smrg  export as_echo_body
718fff3f40Smrg  as_echo='sh -c $as_echo_body as_echo'
72e6232409Smrgfi
73e6232409Smrg
748fff3f40Smrg# The user is always right.
758fff3f40Smrgif test "${PATH_SEPARATOR+set}" != set; then
768fff3f40Smrg  PATH_SEPARATOR=:
778fff3f40Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
788fff3f40Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
798fff3f40Smrg      PATH_SEPARATOR=';'
808fff3f40Smrg  }
81e6232409Smrgfi
82e6232409Smrg
83e6232409Smrg
84e6232409Smrg# IFS
85e6232409Smrg# We need space, tab and new line, in precisely that order.  Quoting is
86e6232409Smrg# there to prevent editors from complaining about space-tab.
87e6232409Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88e6232409Smrg# splitting by setting IFS to empty value.)
89e6232409SmrgIFS=" ""	$as_nl"
90e6232409Smrg
91e6232409Smrg# Find who we are.  Look in the path if we contain no directory separator.
9294a251fdSmrgas_myself=
938fff3f40Smrgcase $0 in #((
94e6232409Smrg  *[\\/]* ) as_myself=$0 ;;
95e6232409Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96e6232409Smrgfor as_dir in $PATH
97e6232409Smrgdo
98e6232409Smrg  IFS=$as_save_IFS
99e6232409Smrg  test -z "$as_dir" && as_dir=.
1008fff3f40Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1018fff3f40Smrg  done
102e6232409SmrgIFS=$as_save_IFS
103e6232409Smrg
104e6232409Smrg     ;;
105e6232409Smrgesac
106e6232409Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
107e6232409Smrg# in which case we are not to be found in the path.
108e6232409Smrgif test "x$as_myself" = x; then
109e6232409Smrg  as_myself=$0
110e6232409Smrgfi
111e6232409Smrgif test ! -f "$as_myself"; then
1128fff3f40Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1138fff3f40Smrg  exit 1
114e6232409Smrgfi
115e6232409Smrg
1168fff3f40Smrg# Unset variables that we do not need and which cause bugs (e.g. in
1178fff3f40Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1188fff3f40Smrg# suppresses any "Segmentation fault" message there.  '((' could
1198fff3f40Smrg# trigger a bug in pdksh 5.2.14.
1208fff3f40Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1218fff3f40Smrgdo eval test x\${$as_var+set} = xset \
1228fff3f40Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123e6232409Smrgdone
124e6232409SmrgPS1='$ '
125e6232409SmrgPS2='> '
126e6232409SmrgPS4='+ '
127e6232409Smrg
128e6232409Smrg# NLS nuisances.
1298fff3f40SmrgLC_ALL=C
1308fff3f40Smrgexport LC_ALL
1318fff3f40SmrgLANGUAGE=C
1328fff3f40Smrgexport LANGUAGE
133e6232409Smrg
134e6232409Smrg# CDPATH.
1358fff3f40Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136e6232409Smrg
1376a45684fSmrg# Use a proper internal environment variable to ensure we don't fall
1386a45684fSmrg  # into an infinite loop, continuously re-executing ourselves.
1396a45684fSmrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
1406a45684fSmrg    _as_can_reexec=no; export _as_can_reexec;
1416a45684fSmrg    # We cannot yet assume a decent shell, so we have to provide a
1426a45684fSmrg# neutralization value for shells without unset; and this also
1436a45684fSmrg# works around shells that cannot unset nonexistent variables.
1446a45684fSmrg# Preserve -v and -x to the replacement shell.
1456a45684fSmrgBASH_ENV=/dev/null
1466a45684fSmrgENV=/dev/null
1476a45684fSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
1486a45684fSmrgcase $- in # ((((
1496a45684fSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
1506a45684fSmrg  *v* ) as_opts=-v ;;
1516a45684fSmrg  *x* ) as_opts=-x ;;
1526a45684fSmrg  * ) as_opts= ;;
1536a45684fSmrgesac
1546a45684fSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
1556a45684fSmrg# Admittedly, this is quite paranoid, since all the known shells bail
1566a45684fSmrg# out after a failed `exec'.
1576a45684fSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
1586a45684fSmrgas_fn_exit 255
1596a45684fSmrg  fi
1606a45684fSmrg  # We don't want this to propagate to other subprocesses.
1616a45684fSmrg          { _as_can_reexec=; unset _as_can_reexec;}
162e6232409Smrgif test "x$CONFIG_SHELL" = x; then
1638fff3f40Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1648fff3f40Smrg  emulate sh
1658fff3f40Smrg  NULLCMD=:
1668fff3f40Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1678fff3f40Smrg  # is contrary to our usage.  Disable this feature.
1688fff3f40Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1698fff3f40Smrg  setopt NO_GLOB_SUBST
170e6232409Smrgelse
1718fff3f40Smrg  case \`(set -o) 2>/dev/null\` in #(
1728fff3f40Smrg  *posix*) :
1738fff3f40Smrg    set -o posix ;; #(
1748fff3f40Smrg  *) :
1758fff3f40Smrg     ;;
1768fff3f40Smrgesac
177e6232409Smrgfi
1788fff3f40Smrg"
1798fff3f40Smrg  as_required="as_fn_return () { (exit \$1); }
1808fff3f40Smrgas_fn_success () { as_fn_return 0; }
1818fff3f40Smrgas_fn_failure () { as_fn_return 1; }
1828fff3f40Smrgas_fn_ret_success () { return 0; }
1838fff3f40Smrgas_fn_ret_failure () { return 1; }
184e6232409Smrg
185e6232409Smrgexitcode=0
1868fff3f40Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1878fff3f40Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1888fff3f40Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1898fff3f40Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1908fff3f40Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191e6232409Smrg
192e6232409Smrgelse
1938fff3f40Smrg  exitcode=1; echo positional parameters were not saved.
1948fff3f40Smrgfi
1956a45684fSmrgtest x\$exitcode = x0 || exit 1
1966a45684fSmrgtest -x / || exit 1"
1978fff3f40Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1988fff3f40Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1998fff3f40Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
2008fff3f40Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
2018fff3f40Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
2028fff3f40Smrg  if (eval "$as_required") 2>/dev/null; then :
2038fff3f40Smrg  as_have_required=yes
204e6232409Smrgelse
2058fff3f40Smrg  as_have_required=no
206e6232409Smrgfi
2078fff3f40Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208e6232409Smrg
209e6232409Smrgelse
2108fff3f40Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118fff3f40Smrgas_found=false
2128fff3f40Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213e6232409Smrgdo
214e6232409Smrg  IFS=$as_save_IFS
215e6232409Smrg  test -z "$as_dir" && as_dir=.
2168fff3f40Smrg  as_found=:
2178fff3f40Smrg  case $as_dir in #(
218e6232409Smrg	 /*)
219e6232409Smrg	   for as_base in sh bash ksh sh5; do
2208fff3f40Smrg	     # Try only shells that exist, to save several forks.
2218fff3f40Smrg	     as_shell=$as_dir/$as_base
2228fff3f40Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2238fff3f40Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2248fff3f40Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
2258fff3f40Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2268fff3f40Smrg  break 2
2278fff3f40Smrgfi
2288fff3f40Smrgfi
229e6232409Smrg	   done;;
230e6232409Smrg       esac
2318fff3f40Smrg  as_found=false
232e6232409Smrgdone
2338fff3f40Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2348fff3f40Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2358fff3f40Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
2368fff3f40Smrgfi; }
237e6232409SmrgIFS=$as_save_IFS
238e6232409Smrg
239e6232409Smrg
2408fff3f40Smrg      if test "x$CONFIG_SHELL" != x; then :
2416a45684fSmrg  export CONFIG_SHELL
2426a45684fSmrg             # We cannot yet assume a decent shell, so we have to provide a
2436a45684fSmrg# neutralization value for shells without unset; and this also
2446a45684fSmrg# works around shells that cannot unset nonexistent variables.
2456a45684fSmrg# Preserve -v and -x to the replacement shell.
2466a45684fSmrgBASH_ENV=/dev/null
2476a45684fSmrgENV=/dev/null
2486a45684fSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2496a45684fSmrgcase $- in # ((((
2506a45684fSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
2516a45684fSmrg  *v* ) as_opts=-v ;;
2526a45684fSmrg  *x* ) as_opts=-x ;;
2536a45684fSmrg  * ) as_opts= ;;
2546a45684fSmrgesac
2556a45684fSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
2566a45684fSmrg# Admittedly, this is quite paranoid, since all the known shells bail
2576a45684fSmrg# out after a failed `exec'.
2586a45684fSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
2596a45684fSmrgexit 255
260e6232409Smrgfi
261e6232409Smrg
2628fff3f40Smrg    if test x$as_have_required = xno; then :
2638fff3f40Smrg  $as_echo "$0: This script requires a shell more modern than all"
2648fff3f40Smrg  $as_echo "$0: the shells that I found on your system."
2658fff3f40Smrg  if test x${ZSH_VERSION+set} = xset ; then
2668fff3f40Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2678fff3f40Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2688fff3f40Smrg  else
2698fff3f40Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2708fff3f40Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
2718fff3f40Smrg$0: about your system, including any error possibly output
2728fff3f40Smrg$0: before this message. Then install a modern shell, or
2738fff3f40Smrg$0: manually run the script under such a shell if you do
2748fff3f40Smrg$0: have one."
2758fff3f40Smrg  fi
2768fff3f40Smrg  exit 1
277e6232409Smrgfi
2788fff3f40Smrgfi
2798fff3f40Smrgfi
2808fff3f40SmrgSHELL=${CONFIG_SHELL-/bin/sh}
2818fff3f40Smrgexport SHELL
2828fff3f40Smrg# Unset more variables known to interfere with behavior of common tools.
2838fff3f40SmrgCLICOLOR_FORCE= GREP_OPTIONS=
2848fff3f40Smrgunset CLICOLOR_FORCE GREP_OPTIONS
285e6232409Smrg
2868fff3f40Smrg## --------------------- ##
2878fff3f40Smrg## M4sh Shell Functions. ##
2888fff3f40Smrg## --------------------- ##
2898fff3f40Smrg# as_fn_unset VAR
2908fff3f40Smrg# ---------------
2918fff3f40Smrg# Portably unset VAR.
2928fff3f40Smrgas_fn_unset ()
2938fff3f40Smrg{
2948fff3f40Smrg  { eval $1=; unset $1;}
295e6232409Smrg}
2968fff3f40Smrgas_unset=as_fn_unset
297e6232409Smrg
2988fff3f40Smrg# as_fn_set_status STATUS
2998fff3f40Smrg# -----------------------
3008fff3f40Smrg# Set $? to STATUS, without forking.
3018fff3f40Smrgas_fn_set_status ()
3028fff3f40Smrg{
3038fff3f40Smrg  return $1
3048fff3f40Smrg} # as_fn_set_status
305e6232409Smrg
3068fff3f40Smrg# as_fn_exit STATUS
3078fff3f40Smrg# -----------------
3088fff3f40Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3098fff3f40Smrgas_fn_exit ()
3108fff3f40Smrg{
3118fff3f40Smrg  set +e
3128fff3f40Smrg  as_fn_set_status $1
3138fff3f40Smrg  exit $1
3148fff3f40Smrg} # as_fn_exit
3158fff3f40Smrg
3168fff3f40Smrg# as_fn_mkdir_p
3178fff3f40Smrg# -------------
3188fff3f40Smrg# Create "$as_dir" as a directory, including parents if necessary.
3198fff3f40Smrgas_fn_mkdir_p ()
3208fff3f40Smrg{
321e6232409Smrg
3228fff3f40Smrg  case $as_dir in #(
3238fff3f40Smrg  -*) as_dir=./$as_dir;;
3248fff3f40Smrg  esac
3258fff3f40Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
3268fff3f40Smrg    as_dirs=
3278fff3f40Smrg    while :; do
3288fff3f40Smrg      case $as_dir in #(
3298fff3f40Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3308fff3f40Smrg      *) as_qdir=$as_dir;;
3318fff3f40Smrg      esac
3328fff3f40Smrg      as_dirs="'$as_qdir' $as_dirs"
3338fff3f40Smrg      as_dir=`$as_dirname -- "$as_dir" ||
3348fff3f40Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3358fff3f40Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3368fff3f40Smrg	 X"$as_dir" : 'X\(//\)$' \| \
3378fff3f40Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3388fff3f40Smrg$as_echo X"$as_dir" |
3398fff3f40Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3408fff3f40Smrg	    s//\1/
3418fff3f40Smrg	    q
3428fff3f40Smrg	  }
3438fff3f40Smrg	  /^X\(\/\/\)[^/].*/{
3448fff3f40Smrg	    s//\1/
3458fff3f40Smrg	    q
3468fff3f40Smrg	  }
3478fff3f40Smrg	  /^X\(\/\/\)$/{
3488fff3f40Smrg	    s//\1/
3498fff3f40Smrg	    q
3508fff3f40Smrg	  }
3518fff3f40Smrg	  /^X\(\/\).*/{
3528fff3f40Smrg	    s//\1/
3538fff3f40Smrg	    q
3548fff3f40Smrg	  }
3558fff3f40Smrg	  s/.*/./; q'`
3568fff3f40Smrg      test -d "$as_dir" && break
3578fff3f40Smrg    done
3588fff3f40Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
35994a251fdSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3608fff3f40Smrg
3618fff3f40Smrg
3628fff3f40Smrg} # as_fn_mkdir_p
3636a45684fSmrg
3646a45684fSmrg# as_fn_executable_p FILE
3656a45684fSmrg# -----------------------
3666a45684fSmrg# Test if FILE is an executable regular file.
3676a45684fSmrgas_fn_executable_p ()
3686a45684fSmrg{
3696a45684fSmrg  test -f "$1" && test -x "$1"
3706a45684fSmrg} # as_fn_executable_p
3718fff3f40Smrg# as_fn_append VAR VALUE
3728fff3f40Smrg# ----------------------
3738fff3f40Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3748fff3f40Smrg# advantage of any shell optimizations that allow amortized linear growth over
3758fff3f40Smrg# repeated appends, instead of the typical quadratic growth present in naive
3768fff3f40Smrg# implementations.
3778fff3f40Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3788fff3f40Smrg  eval 'as_fn_append ()
3798fff3f40Smrg  {
3808fff3f40Smrg    eval $1+=\$2
3818fff3f40Smrg  }'
382e6232409Smrgelse
3838fff3f40Smrg  as_fn_append ()
3848fff3f40Smrg  {
3858fff3f40Smrg    eval $1=\$$1\$2
3868fff3f40Smrg  }
3878fff3f40Smrgfi # as_fn_append
3888fff3f40Smrg
3898fff3f40Smrg# as_fn_arith ARG...
3908fff3f40Smrg# ------------------
3918fff3f40Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
3928fff3f40Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
3938fff3f40Smrg# must be portable across $(()) and expr.
3948fff3f40Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3958fff3f40Smrg  eval 'as_fn_arith ()
3968fff3f40Smrg  {
3978fff3f40Smrg    as_val=$(( $* ))
3988fff3f40Smrg  }'
399e6232409Smrgelse
4008fff3f40Smrg  as_fn_arith ()
4018fff3f40Smrg  {
4028fff3f40Smrg    as_val=`expr "$@" || test $? -eq 1`
4038fff3f40Smrg  }
4048fff3f40Smrgfi # as_fn_arith
405e6232409Smrg
406e6232409Smrg
40794a251fdSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
40894a251fdSmrg# ----------------------------------------
4098fff3f40Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4108fff3f40Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41194a251fdSmrg# script with STATUS, using 1 if that was 0.
4128fff3f40Smrgas_fn_error ()
4138fff3f40Smrg{
41494a251fdSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
41594a251fdSmrg  if test "$4"; then
41694a251fdSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41794a251fdSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4188fff3f40Smrg  fi
41994a251fdSmrg  $as_echo "$as_me: error: $2" >&2
4208fff3f40Smrg  as_fn_exit $as_status
4218fff3f40Smrg} # as_fn_error
422e6232409Smrg
4238fff3f40Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
4248fff3f40Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4258fff3f40Smrg  as_expr=expr
426e6232409Smrgelse
4278fff3f40Smrg  as_expr=false
428e6232409Smrgfi
429e6232409Smrg
4308fff3f40Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4318fff3f40Smrg  as_basename=basename
432e6232409Smrgelse
4338fff3f40Smrg  as_basename=false
434e6232409Smrgfi
435e6232409Smrg
4368fff3f40Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4378fff3f40Smrg  as_dirname=dirname
438e6232409Smrgelse
4398fff3f40Smrg  as_dirname=false
440e6232409Smrgfi
441e6232409Smrg
4428fff3f40Smrgas_me=`$as_basename -- "$0" ||
4438fff3f40Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4448fff3f40Smrg	 X"$0" : 'X\(//\)$' \| \
4458fff3f40Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4468fff3f40Smrg$as_echo X/"$0" |
4478fff3f40Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
4488fff3f40Smrg	    s//\1/
4498fff3f40Smrg	    q
4508fff3f40Smrg	  }
4518fff3f40Smrg	  /^X\/\(\/\/\)$/{
4528fff3f40Smrg	    s//\1/
4538fff3f40Smrg	    q
4548fff3f40Smrg	  }
4558fff3f40Smrg	  /^X\/\(\/\).*/{
4568fff3f40Smrg	    s//\1/
4578fff3f40Smrg	    q
4588fff3f40Smrg	  }
4598fff3f40Smrg	  s/.*/./; q'`
460e6232409Smrg
4618fff3f40Smrg# Avoid depending upon Character Ranges.
4628fff3f40Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4638fff3f40Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4648fff3f40Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4658fff3f40Smrgas_cr_digits='0123456789'
4668fff3f40Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
467e6232409Smrg
468e6232409Smrg
4698fff3f40Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4708fff3f40Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4718fff3f40Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4728fff3f40Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4738fff3f40Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474e6232409Smrg  sed -n '
475e6232409Smrg    p
476e6232409Smrg    /[$]LINENO/=
477e6232409Smrg  ' <$as_myself |
478e6232409Smrg    sed '
479e6232409Smrg      s/[$]LINENO.*/&-/
480e6232409Smrg      t lineno
481e6232409Smrg      b
482e6232409Smrg      :lineno
483e6232409Smrg      N
484e6232409Smrg      :loop
485e6232409Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486e6232409Smrg      t loop
487e6232409Smrg      s/-\n.*//
488e6232409Smrg    ' >$as_me.lineno &&
489e6232409Smrg  chmod +x "$as_me.lineno" ||
4908fff3f40Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491e6232409Smrg
4926a45684fSmrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
4936a45684fSmrg  # already done that, so ensure we don't try to do so again and fall
4946a45684fSmrg  # in an infinite loop.  This has already happened in practice.
4956a45684fSmrg  _as_can_reexec=no; export _as_can_reexec
496e6232409Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
497e6232409Smrg  # (the dirname of $[0] is not the place where we might find the
498e6232409Smrg  # original and so on.  Autoconf is especially sensitive to this).
499e6232409Smrg  . "./$as_me.lineno"
500e6232409Smrg  # Exit status is that of the last command.
501e6232409Smrg  exit
502e6232409Smrg}
503e6232409Smrg
504e6232409SmrgECHO_C= ECHO_N= ECHO_T=
5058fff3f40Smrgcase `echo -n x` in #(((((
506e6232409Smrg-n*)
5078fff3f40Smrg  case `echo 'xy\c'` in
508e6232409Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5098fff3f40Smrg  xy)  ECHO_C='\c';;
5108fff3f40Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5118fff3f40Smrg       ECHO_T='	';;
512e6232409Smrg  esac;;
513e6232409Smrg*)
514e6232409Smrg  ECHO_N='-n';;
515e6232409Smrgesac
516e6232409Smrg
517e6232409Smrgrm -f conf$$ conf$$.exe conf$$.file
518e6232409Smrgif test -d conf$$.dir; then
519e6232409Smrg  rm -f conf$$.dir/conf$$.file
520e6232409Smrgelse
521e6232409Smrg  rm -f conf$$.dir
5228fff3f40Smrg  mkdir conf$$.dir 2>/dev/null
5238fff3f40Smrgfi
5248fff3f40Smrgif (echo >conf$$.file) 2>/dev/null; then
5258fff3f40Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5268fff3f40Smrg    as_ln_s='ln -s'
5278fff3f40Smrg    # ... but there are two gotchas:
5288fff3f40Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5298fff3f40Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5306a45684fSmrg    # In both cases, we have to default to `cp -pR'.
5318fff3f40Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5326a45684fSmrg      as_ln_s='cp -pR'
5338fff3f40Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5348fff3f40Smrg    as_ln_s=ln
5358fff3f40Smrg  else
5366a45684fSmrg    as_ln_s='cp -pR'
5378fff3f40Smrg  fi
538e6232409Smrgelse
5396a45684fSmrg  as_ln_s='cp -pR'
540e6232409Smrgfi
541e6232409Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542e6232409Smrgrmdir conf$$.dir 2>/dev/null
543e6232409Smrg
544e6232409Smrgif mkdir -p . 2>/dev/null; then
5458fff3f40Smrg  as_mkdir_p='mkdir -p "$as_dir"'
546e6232409Smrgelse
547e6232409Smrg  test -d ./-p && rmdir ./-p
548e6232409Smrg  as_mkdir_p=false
549e6232409Smrgfi
550e6232409Smrg
5516a45684fSmrgas_test_x='test -x'
5526a45684fSmrgas_executable_p=as_fn_executable_p
553e6232409Smrg
554e6232409Smrg# Sed expression to map a string onto a valid CPP name.
555e6232409Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556e6232409Smrg
557e6232409Smrg# Sed expression to map a string onto a valid variable name.
558e6232409Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559e6232409Smrg
560e6232409Smrg
5618fff3f40Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
5628fff3f40Smrgexec 6>&1
563e6232409Smrg
564e6232409Smrg# Name of the host.
56594a251fdSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566e6232409Smrg# so uname gets run too.
567e6232409Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568e6232409Smrg
569e6232409Smrg#
570e6232409Smrg# Initializations.
571e6232409Smrg#
572e6232409Smrgac_default_prefix=/usr/local
573e6232409Smrgac_clean_files=
574e6232409Smrgac_config_libobj_dir=.
575e6232409SmrgLIBOBJS=
576e6232409Smrgcross_compiling=no
577e6232409Smrgsubdirs=
578e6232409SmrgMFLAGS=
579e6232409SmrgMAKEFLAGS=
580e6232409Smrg
581e6232409Smrg# Identity of this package.
582e6232409SmrgPACKAGE_NAME='xlsfonts'
583e6232409SmrgPACKAGE_TARNAME='xlsfonts'
584c05e7a3eSmrgPACKAGE_VERSION='1.0.6'
585c05e7a3eSmrgPACKAGE_STRING='xlsfonts 1.0.6'
586e6232409SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
5878fff3f40SmrgPACKAGE_URL=''
588e6232409Smrg
5896a45684fSmrgac_unique_file="Makefile.am"
5908fff3f40Smrg# Factoring default headers for most tests.
5918fff3f40Smrgac_includes_default="\
5928fff3f40Smrg#include <stdio.h>
5938fff3f40Smrg#ifdef HAVE_SYS_TYPES_H
5948fff3f40Smrg# include <sys/types.h>
5958fff3f40Smrg#endif
5968fff3f40Smrg#ifdef HAVE_SYS_STAT_H
5978fff3f40Smrg# include <sys/stat.h>
5988fff3f40Smrg#endif
5998fff3f40Smrg#ifdef STDC_HEADERS
6008fff3f40Smrg# include <stdlib.h>
6018fff3f40Smrg# include <stddef.h>
6028fff3f40Smrg#else
6038fff3f40Smrg# ifdef HAVE_STDLIB_H
6048fff3f40Smrg#  include <stdlib.h>
6058fff3f40Smrg# endif
6068fff3f40Smrg#endif
6078fff3f40Smrg#ifdef HAVE_STRING_H
6088fff3f40Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6098fff3f40Smrg#  include <memory.h>
6108fff3f40Smrg# endif
6118fff3f40Smrg# include <string.h>
6128fff3f40Smrg#endif
6138fff3f40Smrg#ifdef HAVE_STRINGS_H
6148fff3f40Smrg# include <strings.h>
6158fff3f40Smrg#endif
6168fff3f40Smrg#ifdef HAVE_INTTYPES_H
6178fff3f40Smrg# include <inttypes.h>
6188fff3f40Smrg#endif
6198fff3f40Smrg#ifdef HAVE_STDINT_H
6208fff3f40Smrg# include <stdint.h>
6218fff3f40Smrg#endif
6228fff3f40Smrg#ifdef HAVE_UNISTD_H
6238fff3f40Smrg# include <unistd.h>
6248fff3f40Smrg#endif"
6258fff3f40Smrg
6268fff3f40Smrgac_subst_vars='am__EXEEXT_FALSE
6278fff3f40Smrgam__EXEEXT_TRUE
6288fff3f40SmrgLTLIBOBJS
6298fff3f40SmrgLIBOBJS
630e6232409SmrgXLSFONTS_LIBS
6318fff3f40SmrgXLSFONTS_CFLAGS
63294a251fdSmrgMAN_SUBSTS
63394a251fdSmrgXORG_MAN_PAGE
634e6232409SmrgADMIN_MAN_DIR
6358fff3f40SmrgDRIVER_MAN_DIR
6368fff3f40SmrgMISC_MAN_DIR
6378fff3f40SmrgFILE_MAN_DIR
6388fff3f40SmrgLIB_MAN_DIR
6398fff3f40SmrgAPP_MAN_DIR
6408fff3f40SmrgADMIN_MAN_SUFFIX
6418fff3f40SmrgDRIVER_MAN_SUFFIX
6428fff3f40SmrgMISC_MAN_SUFFIX
6438fff3f40SmrgFILE_MAN_SUFFIX
6448fff3f40SmrgLIB_MAN_SUFFIX
6458fff3f40SmrgAPP_MAN_SUFFIX
64694a251fdSmrgSED
6478fff3f40Smrghost_os
6488fff3f40Smrghost_vendor
6498fff3f40Smrghost_cpu
6508fff3f40Smrghost
6518fff3f40Smrgbuild_os
6528fff3f40Smrgbuild_vendor
6538fff3f40Smrgbuild_cpu
6548fff3f40Smrgbuild
6558fff3f40SmrgINSTALL_CMD
656c05e7a3eSmrgPKG_CONFIG_LIBDIR
657c05e7a3eSmrgPKG_CONFIG_PATH
6588fff3f40SmrgPKG_CONFIG
6598fff3f40SmrgCHANGELOG_CMD
66094a251fdSmrgSTRICT_CFLAGS
6618fff3f40SmrgCWARNFLAGS
66294a251fdSmrgBASE_CFLAGS
6638fff3f40SmrgEGREP
6648fff3f40SmrgGREP
6658fff3f40SmrgCPP
6668fff3f40Smrgam__fastdepCC_FALSE
6678fff3f40Smrgam__fastdepCC_TRUE
6688fff3f40SmrgCCDEPMODE
66994a251fdSmrgam__nodep
6708fff3f40SmrgAMDEPBACKSLASH
6718fff3f40SmrgAMDEP_FALSE
6728fff3f40SmrgAMDEP_TRUE
6738fff3f40Smrgam__quote
6748fff3f40Smrgam__include
6758fff3f40SmrgDEPDIR
6768fff3f40SmrgOBJEXT
6778fff3f40SmrgEXEEXT
6788fff3f40Smrgac_ct_CC
6798fff3f40SmrgCPPFLAGS
6808fff3f40SmrgLDFLAGS
6818fff3f40SmrgCFLAGS
6828fff3f40SmrgCC
6836a45684fSmrgAM_BACKSLASH
6846a45684fSmrgAM_DEFAULT_VERBOSITY
6856a45684fSmrgAM_DEFAULT_V
6866a45684fSmrgAM_V
6878fff3f40Smrgam__untar
6888fff3f40Smrgam__tar
6898fff3f40SmrgAMTAR
6908fff3f40Smrgam__leading_dot
6918fff3f40SmrgSET_MAKE
6928fff3f40SmrgAWK
6938fff3f40Smrgmkdir_p
6948fff3f40SmrgMKDIR_P
6958fff3f40SmrgINSTALL_STRIP_PROGRAM
6968fff3f40SmrgSTRIP
6978fff3f40Smrginstall_sh
6988fff3f40SmrgMAKEINFO
6998fff3f40SmrgAUTOHEADER
7008fff3f40SmrgAUTOMAKE
7018fff3f40SmrgAUTOCONF
7028fff3f40SmrgACLOCAL
7038fff3f40SmrgVERSION
7048fff3f40SmrgPACKAGE
7058fff3f40SmrgCYGPATH_W
7068fff3f40Smrgam__isrc
7078fff3f40SmrgINSTALL_DATA
7088fff3f40SmrgINSTALL_SCRIPT
7098fff3f40SmrgINSTALL_PROGRAM
7108fff3f40Smrgtarget_alias
7118fff3f40Smrghost_alias
7128fff3f40Smrgbuild_alias
7138fff3f40SmrgLIBS
7148fff3f40SmrgECHO_T
7158fff3f40SmrgECHO_N
7168fff3f40SmrgECHO_C
7178fff3f40SmrgDEFS
7188fff3f40Smrgmandir
7198fff3f40Smrglocaledir
7208fff3f40Smrglibdir
7218fff3f40Smrgpsdir
7228fff3f40Smrgpdfdir
7238fff3f40Smrgdvidir
7248fff3f40Smrghtmldir
7258fff3f40Smrginfodir
7268fff3f40Smrgdocdir
7278fff3f40Smrgoldincludedir
7288fff3f40Smrgincludedir
7298fff3f40Smrglocalstatedir
7308fff3f40Smrgsharedstatedir
7318fff3f40Smrgsysconfdir
7328fff3f40Smrgdatadir
7338fff3f40Smrgdatarootdir
7348fff3f40Smrglibexecdir
7358fff3f40Smrgsbindir
7368fff3f40Smrgbindir
7378fff3f40Smrgprogram_transform_name
7388fff3f40Smrgprefix
7398fff3f40Smrgexec_prefix
7408fff3f40SmrgPACKAGE_URL
7418fff3f40SmrgPACKAGE_BUGREPORT
7428fff3f40SmrgPACKAGE_STRING
7438fff3f40SmrgPACKAGE_VERSION
7448fff3f40SmrgPACKAGE_TARNAME
7458fff3f40SmrgPACKAGE_NAME
7468fff3f40SmrgPATH_SEPARATOR
7478fff3f40SmrgSHELL'
748e6232409Smrgac_subst_files=''
7498fff3f40Smrgac_user_opts='
7508fff3f40Smrgenable_option_checking
7516a45684fSmrgenable_silent_rules
7528fff3f40Smrgenable_dependency_tracking
75394a251fdSmrgenable_selective_werror
7548fff3f40Smrgenable_strict_compilation
7558fff3f40Smrg'
756e6232409Smrg      ac_precious_vars='build_alias
757e6232409Smrghost_alias
758e6232409Smrgtarget_alias
759e6232409SmrgCC
760e6232409SmrgCFLAGS
761e6232409SmrgLDFLAGS
7628fff3f40SmrgLIBS
763e6232409SmrgCPPFLAGS
7648fff3f40SmrgCPP
765e6232409SmrgPKG_CONFIG
766c05e7a3eSmrgPKG_CONFIG_PATH
767c05e7a3eSmrgPKG_CONFIG_LIBDIR
768e6232409SmrgXLSFONTS_CFLAGS
769e6232409SmrgXLSFONTS_LIBS'
770e6232409Smrg
771e6232409Smrg
772e6232409Smrg# Initialize some variables set by options.
773e6232409Smrgac_init_help=
774e6232409Smrgac_init_version=false
7758fff3f40Smrgac_unrecognized_opts=
7768fff3f40Smrgac_unrecognized_sep=
777e6232409Smrg# The variables have the same names as the options, with
778e6232409Smrg# dashes changed to underlines.
779e6232409Smrgcache_file=/dev/null
780e6232409Smrgexec_prefix=NONE
781e6232409Smrgno_create=
782e6232409Smrgno_recursion=
783e6232409Smrgprefix=NONE
784e6232409Smrgprogram_prefix=NONE
785e6232409Smrgprogram_suffix=NONE
786e6232409Smrgprogram_transform_name=s,x,x,
787e6232409Smrgsilent=
788e6232409Smrgsite=
789e6232409Smrgsrcdir=
790e6232409Smrgverbose=
791e6232409Smrgx_includes=NONE
792e6232409Smrgx_libraries=NONE
793e6232409Smrg
794e6232409Smrg# Installation directory options.
795e6232409Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
796e6232409Smrg# and all the variables that are supposed to be based on exec_prefix
797e6232409Smrg# by default will actually change.
798e6232409Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
799e6232409Smrg# (The list follows the same order as the GNU Coding Standards.)
800e6232409Smrgbindir='${exec_prefix}/bin'
801e6232409Smrgsbindir='${exec_prefix}/sbin'
802e6232409Smrglibexecdir='${exec_prefix}/libexec'
803e6232409Smrgdatarootdir='${prefix}/share'
804e6232409Smrgdatadir='${datarootdir}'
805e6232409Smrgsysconfdir='${prefix}/etc'
806e6232409Smrgsharedstatedir='${prefix}/com'
807e6232409Smrglocalstatedir='${prefix}/var'
808e6232409Smrgincludedir='${prefix}/include'
809e6232409Smrgoldincludedir='/usr/include'
810e6232409Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811e6232409Smrginfodir='${datarootdir}/info'
812e6232409Smrghtmldir='${docdir}'
813e6232409Smrgdvidir='${docdir}'
814e6232409Smrgpdfdir='${docdir}'
815e6232409Smrgpsdir='${docdir}'
816e6232409Smrglibdir='${exec_prefix}/lib'
817e6232409Smrglocaledir='${datarootdir}/locale'
818e6232409Smrgmandir='${datarootdir}/man'
819e6232409Smrg
820e6232409Smrgac_prev=
821e6232409Smrgac_dashdash=
822e6232409Smrgfor ac_option
823e6232409Smrgdo
824e6232409Smrg  # If the previous option needs an argument, assign it.
825e6232409Smrg  if test -n "$ac_prev"; then
826e6232409Smrg    eval $ac_prev=\$ac_option
827e6232409Smrg    ac_prev=
828e6232409Smrg    continue
829e6232409Smrg  fi
830e6232409Smrg
831e6232409Smrg  case $ac_option in
83294a251fdSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
83394a251fdSmrg  *=)   ac_optarg= ;;
83494a251fdSmrg  *)    ac_optarg=yes ;;
835e6232409Smrg  esac
836e6232409Smrg
837e6232409Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
838e6232409Smrg
839e6232409Smrg  case $ac_dashdash$ac_option in
840e6232409Smrg  --)
841e6232409Smrg    ac_dashdash=yes ;;
842e6232409Smrg
843e6232409Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
844e6232409Smrg    ac_prev=bindir ;;
845e6232409Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846e6232409Smrg    bindir=$ac_optarg ;;
847e6232409Smrg
848e6232409Smrg  -build | --build | --buil | --bui | --bu)
849e6232409Smrg    ac_prev=build_alias ;;
850e6232409Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851e6232409Smrg    build_alias=$ac_optarg ;;
852e6232409Smrg
853e6232409Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
854e6232409Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855e6232409Smrg    ac_prev=cache_file ;;
856e6232409Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857e6232409Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858e6232409Smrg    cache_file=$ac_optarg ;;
859e6232409Smrg
860e6232409Smrg  --config-cache | -C)
861e6232409Smrg    cache_file=config.cache ;;
862e6232409Smrg
863e6232409Smrg  -datadir | --datadir | --datadi | --datad)
864e6232409Smrg    ac_prev=datadir ;;
865e6232409Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
866e6232409Smrg    datadir=$ac_optarg ;;
867e6232409Smrg
868e6232409Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869e6232409Smrg  | --dataroo | --dataro | --datar)
870e6232409Smrg    ac_prev=datarootdir ;;
871e6232409Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872e6232409Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873e6232409Smrg    datarootdir=$ac_optarg ;;
874e6232409Smrg
875e6232409Smrg  -disable-* | --disable-*)
8768fff3f40Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877e6232409Smrg    # Reject names that are not valid shell variable names.
8788fff3f40Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
87994a251fdSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
8808fff3f40Smrg    ac_useropt_orig=$ac_useropt
8818fff3f40Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8828fff3f40Smrg    case $ac_user_opts in
8838fff3f40Smrg      *"
8848fff3f40Smrg"enable_$ac_useropt"
8858fff3f40Smrg"*) ;;
8868fff3f40Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8878fff3f40Smrg	 ac_unrecognized_sep=', ';;
8888fff3f40Smrg    esac
8898fff3f40Smrg    eval enable_$ac_useropt=no ;;
890e6232409Smrg
891e6232409Smrg  -docdir | --docdir | --docdi | --doc | --do)
892e6232409Smrg    ac_prev=docdir ;;
893e6232409Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894e6232409Smrg    docdir=$ac_optarg ;;
895e6232409Smrg
896e6232409Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897e6232409Smrg    ac_prev=dvidir ;;
898e6232409Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899e6232409Smrg    dvidir=$ac_optarg ;;
900e6232409Smrg
901e6232409Smrg  -enable-* | --enable-*)
9028fff3f40Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903e6232409Smrg    # Reject names that are not valid shell variable names.
9048fff3f40Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
90594a251fdSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
9068fff3f40Smrg    ac_useropt_orig=$ac_useropt
9078fff3f40Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
9088fff3f40Smrg    case $ac_user_opts in
9098fff3f40Smrg      *"
9108fff3f40Smrg"enable_$ac_useropt"
9118fff3f40Smrg"*) ;;
9128fff3f40Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
9138fff3f40Smrg	 ac_unrecognized_sep=', ';;
9148fff3f40Smrg    esac
9158fff3f40Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
916e6232409Smrg
917e6232409Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918e6232409Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919e6232409Smrg  | --exec | --exe | --ex)
920e6232409Smrg    ac_prev=exec_prefix ;;
921e6232409Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922e6232409Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923e6232409Smrg  | --exec=* | --exe=* | --ex=*)
924e6232409Smrg    exec_prefix=$ac_optarg ;;
925e6232409Smrg
926e6232409Smrg  -gas | --gas | --ga | --g)
927e6232409Smrg    # Obsolete; use --with-gas.
928e6232409Smrg    with_gas=yes ;;
929e6232409Smrg
930e6232409Smrg  -help | --help | --hel | --he | -h)
931e6232409Smrg    ac_init_help=long ;;
932e6232409Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933e6232409Smrg    ac_init_help=recursive ;;
934e6232409Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935e6232409Smrg    ac_init_help=short ;;
936e6232409Smrg
937e6232409Smrg  -host | --host | --hos | --ho)
938e6232409Smrg    ac_prev=host_alias ;;
939e6232409Smrg  -host=* | --host=* | --hos=* | --ho=*)
940e6232409Smrg    host_alias=$ac_optarg ;;
941e6232409Smrg
942e6232409Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943e6232409Smrg    ac_prev=htmldir ;;
944e6232409Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945e6232409Smrg  | --ht=*)
946e6232409Smrg    htmldir=$ac_optarg ;;
947e6232409Smrg
948e6232409Smrg  -includedir | --includedir | --includedi | --included | --include \
949e6232409Smrg  | --includ | --inclu | --incl | --inc)
950e6232409Smrg    ac_prev=includedir ;;
951e6232409Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952e6232409Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
953e6232409Smrg    includedir=$ac_optarg ;;
954e6232409Smrg
955e6232409Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
956e6232409Smrg    ac_prev=infodir ;;
957e6232409Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958e6232409Smrg    infodir=$ac_optarg ;;
959e6232409Smrg
960e6232409Smrg  -libdir | --libdir | --libdi | --libd)
961e6232409Smrg    ac_prev=libdir ;;
962e6232409Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
963e6232409Smrg    libdir=$ac_optarg ;;
964e6232409Smrg
965e6232409Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966e6232409Smrg  | --libexe | --libex | --libe)
967e6232409Smrg    ac_prev=libexecdir ;;
968e6232409Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969e6232409Smrg  | --libexe=* | --libex=* | --libe=*)
970e6232409Smrg    libexecdir=$ac_optarg ;;
971e6232409Smrg
972e6232409Smrg  -localedir | --localedir | --localedi | --localed | --locale)
973e6232409Smrg    ac_prev=localedir ;;
974e6232409Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975e6232409Smrg    localedir=$ac_optarg ;;
976e6232409Smrg
977e6232409Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
978e6232409Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
979e6232409Smrg    ac_prev=localstatedir ;;
980e6232409Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981e6232409Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982e6232409Smrg    localstatedir=$ac_optarg ;;
983e6232409Smrg
984e6232409Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985e6232409Smrg    ac_prev=mandir ;;
986e6232409Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987e6232409Smrg    mandir=$ac_optarg ;;
988e6232409Smrg
989e6232409Smrg  -nfp | --nfp | --nf)
990e6232409Smrg    # Obsolete; use --without-fp.
991e6232409Smrg    with_fp=no ;;
992e6232409Smrg
993e6232409Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994e6232409Smrg  | --no-cr | --no-c | -n)
995e6232409Smrg    no_create=yes ;;
996e6232409Smrg
997e6232409Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998e6232409Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999e6232409Smrg    no_recursion=yes ;;
1000e6232409Smrg
1001e6232409Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002e6232409Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003e6232409Smrg  | --oldin | --oldi | --old | --ol | --o)
1004e6232409Smrg    ac_prev=oldincludedir ;;
1005e6232409Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006e6232409Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007e6232409Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008e6232409Smrg    oldincludedir=$ac_optarg ;;
1009e6232409Smrg
1010e6232409Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011e6232409Smrg    ac_prev=prefix ;;
1012e6232409Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013e6232409Smrg    prefix=$ac_optarg ;;
1014e6232409Smrg
1015e6232409Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016e6232409Smrg  | --program-pre | --program-pr | --program-p)
1017e6232409Smrg    ac_prev=program_prefix ;;
1018e6232409Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019e6232409Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020e6232409Smrg    program_prefix=$ac_optarg ;;
1021e6232409Smrg
1022e6232409Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023e6232409Smrg  | --program-suf | --program-su | --program-s)
1024e6232409Smrg    ac_prev=program_suffix ;;
1025e6232409Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026e6232409Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027e6232409Smrg    program_suffix=$ac_optarg ;;
1028e6232409Smrg
1029e6232409Smrg  -program-transform-name | --program-transform-name \
1030e6232409Smrg  | --program-transform-nam | --program-transform-na \
1031e6232409Smrg  | --program-transform-n | --program-transform- \
1032e6232409Smrg  | --program-transform | --program-transfor \
1033e6232409Smrg  | --program-transfo | --program-transf \
1034e6232409Smrg  | --program-trans | --program-tran \
1035e6232409Smrg  | --progr-tra | --program-tr | --program-t)
1036e6232409Smrg    ac_prev=program_transform_name ;;
1037e6232409Smrg  -program-transform-name=* | --program-transform-name=* \
1038e6232409Smrg  | --program-transform-nam=* | --program-transform-na=* \
1039e6232409Smrg  | --program-transform-n=* | --program-transform-=* \
1040e6232409Smrg  | --program-transform=* | --program-transfor=* \
1041e6232409Smrg  | --program-transfo=* | --program-transf=* \
1042e6232409Smrg  | --program-trans=* | --program-tran=* \
1043e6232409Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1044e6232409Smrg    program_transform_name=$ac_optarg ;;
1045e6232409Smrg
1046e6232409Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047e6232409Smrg    ac_prev=pdfdir ;;
1048e6232409Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049e6232409Smrg    pdfdir=$ac_optarg ;;
1050e6232409Smrg
1051e6232409Smrg  -psdir | --psdir | --psdi | --psd | --ps)
1052e6232409Smrg    ac_prev=psdir ;;
1053e6232409Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054e6232409Smrg    psdir=$ac_optarg ;;
1055e6232409Smrg
1056e6232409Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057e6232409Smrg  | -silent | --silent | --silen | --sile | --sil)
1058e6232409Smrg    silent=yes ;;
1059e6232409Smrg
1060e6232409Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061e6232409Smrg    ac_prev=sbindir ;;
1062e6232409Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063e6232409Smrg  | --sbi=* | --sb=*)
1064e6232409Smrg    sbindir=$ac_optarg ;;
1065e6232409Smrg
1066e6232409Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067e6232409Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068e6232409Smrg  | --sharedst | --shareds | --shared | --share | --shar \
1069e6232409Smrg  | --sha | --sh)
1070e6232409Smrg    ac_prev=sharedstatedir ;;
1071e6232409Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072e6232409Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073e6232409Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074e6232409Smrg  | --sha=* | --sh=*)
1075e6232409Smrg    sharedstatedir=$ac_optarg ;;
1076e6232409Smrg
1077e6232409Smrg  -site | --site | --sit)
1078e6232409Smrg    ac_prev=site ;;
1079e6232409Smrg  -site=* | --site=* | --sit=*)
1080e6232409Smrg    site=$ac_optarg ;;
1081e6232409Smrg
1082e6232409Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083e6232409Smrg    ac_prev=srcdir ;;
1084e6232409Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085e6232409Smrg    srcdir=$ac_optarg ;;
1086e6232409Smrg
1087e6232409Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088e6232409Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
1089e6232409Smrg    ac_prev=sysconfdir ;;
1090e6232409Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091e6232409Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092e6232409Smrg    sysconfdir=$ac_optarg ;;
1093e6232409Smrg
1094e6232409Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1095e6232409Smrg    ac_prev=target_alias ;;
1096e6232409Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097e6232409Smrg    target_alias=$ac_optarg ;;
1098e6232409Smrg
1099e6232409Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100e6232409Smrg    verbose=yes ;;
1101e6232409Smrg
1102e6232409Smrg  -version | --version | --versio | --versi | --vers | -V)
1103e6232409Smrg    ac_init_version=: ;;
1104e6232409Smrg
1105e6232409Smrg  -with-* | --with-*)
11068fff3f40Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107e6232409Smrg    # Reject names that are not valid shell variable names.
11088fff3f40Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
110994a251fdSmrg      as_fn_error $? "invalid package name: $ac_useropt"
11108fff3f40Smrg    ac_useropt_orig=$ac_useropt
11118fff3f40Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11128fff3f40Smrg    case $ac_user_opts in
11138fff3f40Smrg      *"
11148fff3f40Smrg"with_$ac_useropt"
11158fff3f40Smrg"*) ;;
11168fff3f40Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
11178fff3f40Smrg	 ac_unrecognized_sep=', ';;
11188fff3f40Smrg    esac
11198fff3f40Smrg    eval with_$ac_useropt=\$ac_optarg ;;
1120e6232409Smrg
1121e6232409Smrg  -without-* | --without-*)
11228fff3f40Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123e6232409Smrg    # Reject names that are not valid shell variable names.
11248fff3f40Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
112594a251fdSmrg      as_fn_error $? "invalid package name: $ac_useropt"
11268fff3f40Smrg    ac_useropt_orig=$ac_useropt
11278fff3f40Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11288fff3f40Smrg    case $ac_user_opts in
11298fff3f40Smrg      *"
11308fff3f40Smrg"with_$ac_useropt"
11318fff3f40Smrg"*) ;;
11328fff3f40Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11338fff3f40Smrg	 ac_unrecognized_sep=', ';;
11348fff3f40Smrg    esac
11358fff3f40Smrg    eval with_$ac_useropt=no ;;
1136e6232409Smrg
1137e6232409Smrg  --x)
1138e6232409Smrg    # Obsolete; use --with-x.
1139e6232409Smrg    with_x=yes ;;
1140e6232409Smrg
1141e6232409Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142e6232409Smrg  | --x-incl | --x-inc | --x-in | --x-i)
1143e6232409Smrg    ac_prev=x_includes ;;
1144e6232409Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145e6232409Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146e6232409Smrg    x_includes=$ac_optarg ;;
1147e6232409Smrg
1148e6232409Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149e6232409Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150e6232409Smrg    ac_prev=x_libraries ;;
1151e6232409Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152e6232409Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153e6232409Smrg    x_libraries=$ac_optarg ;;
1154e6232409Smrg
115594a251fdSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
115694a251fdSmrgTry \`$0 --help' for more information"
1157e6232409Smrg    ;;
1158e6232409Smrg
1159e6232409Smrg  *=*)
1160e6232409Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161e6232409Smrg    # Reject names that are not valid shell variable names.
11628fff3f40Smrg    case $ac_envvar in #(
11638fff3f40Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
116494a251fdSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
11658fff3f40Smrg    esac
1166e6232409Smrg    eval $ac_envvar=\$ac_optarg
1167e6232409Smrg    export $ac_envvar ;;
1168e6232409Smrg
1169e6232409Smrg  *)
1170e6232409Smrg    # FIXME: should be removed in autoconf 3.0.
11718fff3f40Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172e6232409Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11738fff3f40Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
117494a251fdSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1175e6232409Smrg    ;;
1176e6232409Smrg
1177e6232409Smrg  esac
1178e6232409Smrgdone
1179e6232409Smrg
1180e6232409Smrgif test -n "$ac_prev"; then
1181e6232409Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
118294a251fdSmrg  as_fn_error $? "missing argument to $ac_option"
1183e6232409Smrgfi
1184e6232409Smrg
11858fff3f40Smrgif test -n "$ac_unrecognized_opts"; then
11868fff3f40Smrg  case $enable_option_checking in
11878fff3f40Smrg    no) ;;
118894a251fdSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
11898fff3f40Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11908fff3f40Smrg  esac
11918fff3f40Smrgfi
11928fff3f40Smrg
11938fff3f40Smrg# Check all directory arguments for consistency.
1194e6232409Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195e6232409Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1196e6232409Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197e6232409Smrg		libdir localedir mandir
1198e6232409Smrgdo
1199e6232409Smrg  eval ac_val=\$$ac_var
12008fff3f40Smrg  # Remove trailing slashes.
12018fff3f40Smrg  case $ac_val in
12028fff3f40Smrg    */ )
12038fff3f40Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
12048fff3f40Smrg      eval $ac_var=\$ac_val;;
12058fff3f40Smrg  esac
12068fff3f40Smrg  # Be sure to have absolute directory names.
1207e6232409Smrg  case $ac_val in
1208e6232409Smrg    [\\/$]* | ?:[\\/]* )  continue;;
1209e6232409Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210e6232409Smrg  esac
121194a251fdSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1212e6232409Smrgdone
1213e6232409Smrg
1214e6232409Smrg# There might be people who depend on the old broken behavior: `$host'
1215e6232409Smrg# used to hold the argument of --host etc.
1216e6232409Smrg# FIXME: To remove some day.
1217e6232409Smrgbuild=$build_alias
1218e6232409Smrghost=$host_alias
1219e6232409Smrgtarget=$target_alias
1220e6232409Smrg
1221e6232409Smrg# FIXME: To remove some day.
1222e6232409Smrgif test "x$host_alias" != x; then
1223e6232409Smrg  if test "x$build_alias" = x; then
1224e6232409Smrg    cross_compiling=maybe
1225e6232409Smrg  elif test "x$build_alias" != "x$host_alias"; then
1226e6232409Smrg    cross_compiling=yes
1227e6232409Smrg  fi
1228e6232409Smrgfi
1229e6232409Smrg
1230e6232409Smrgac_tool_prefix=
1231e6232409Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1232e6232409Smrg
1233e6232409Smrgtest "$silent" = yes && exec 6>/dev/null
1234e6232409Smrg
1235e6232409Smrg
1236e6232409Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1237e6232409Smrgac_ls_di=`ls -di .` &&
1238e6232409Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
123994a251fdSmrg  as_fn_error $? "working directory cannot be determined"
1240e6232409Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
124194a251fdSmrg  as_fn_error $? "pwd does not report name of working directory"
1242e6232409Smrg
1243e6232409Smrg
1244e6232409Smrg# Find the source files, if location was not specified.
1245e6232409Smrgif test -z "$srcdir"; then
1246e6232409Smrg  ac_srcdir_defaulted=yes
1247e6232409Smrg  # Try the directory containing this script, then the parent directory.
12488fff3f40Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12498fff3f40Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12508fff3f40Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12518fff3f40Smrg	 X"$as_myself" : 'X\(//\)$' \| \
12528fff3f40Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12538fff3f40Smrg$as_echo X"$as_myself" |
1254e6232409Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255e6232409Smrg	    s//\1/
1256e6232409Smrg	    q
1257e6232409Smrg	  }
1258e6232409Smrg	  /^X\(\/\/\)[^/].*/{
1259e6232409Smrg	    s//\1/
1260e6232409Smrg	    q
1261e6232409Smrg	  }
1262e6232409Smrg	  /^X\(\/\/\)$/{
1263e6232409Smrg	    s//\1/
1264e6232409Smrg	    q
1265e6232409Smrg	  }
1266e6232409Smrg	  /^X\(\/\).*/{
1267e6232409Smrg	    s//\1/
1268e6232409Smrg	    q
1269e6232409Smrg	  }
1270e6232409Smrg	  s/.*/./; q'`
1271e6232409Smrg  srcdir=$ac_confdir
1272e6232409Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
1273e6232409Smrg    srcdir=..
1274e6232409Smrg  fi
1275e6232409Smrgelse
1276e6232409Smrg  ac_srcdir_defaulted=no
1277e6232409Smrgfi
1278e6232409Smrgif test ! -r "$srcdir/$ac_unique_file"; then
1279e6232409Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
128094a251fdSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1281e6232409Smrgfi
1282e6232409Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283e6232409Smrgac_abs_confdir=`(
128494a251fdSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1285e6232409Smrg	pwd)`
1286e6232409Smrg# When building in place, set srcdir=.
1287e6232409Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1288e6232409Smrg  srcdir=.
1289e6232409Smrgfi
1290e6232409Smrg# Remove unnecessary trailing slashes from srcdir.
1291e6232409Smrg# Double slashes in file names in object file debugging info
1292e6232409Smrg# mess up M-x gdb in Emacs.
1293e6232409Smrgcase $srcdir in
1294e6232409Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1295e6232409Smrgesac
1296e6232409Smrgfor ac_var in $ac_precious_vars; do
1297e6232409Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1298e6232409Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
1299e6232409Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1300e6232409Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1301e6232409Smrgdone
1302e6232409Smrg
1303e6232409Smrg#
1304e6232409Smrg# Report the --help message.
1305e6232409Smrg#
1306e6232409Smrgif test "$ac_init_help" = "long"; then
1307e6232409Smrg  # Omit some internal or obsolete options to make the list less imposing.
1308e6232409Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
1309e6232409Smrg  cat <<_ACEOF
1310c05e7a3eSmrg\`configure' configures xlsfonts 1.0.6 to adapt to many kinds of systems.
1311e6232409Smrg
1312e6232409SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1313e6232409Smrg
1314e6232409SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1315e6232409SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1316e6232409Smrg
1317e6232409SmrgDefaults for the options are specified in brackets.
1318e6232409Smrg
1319e6232409SmrgConfiguration:
1320e6232409Smrg  -h, --help              display this help and exit
1321e6232409Smrg      --help=short        display options specific to this package
1322e6232409Smrg      --help=recursive    display the short help of all the included packages
1323e6232409Smrg  -V, --version           display version information and exit
132494a251fdSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
1325e6232409Smrg      --cache-file=FILE   cache test results in FILE [disabled]
1326e6232409Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1327e6232409Smrg  -n, --no-create         do not create output files
1328e6232409Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1329e6232409Smrg
1330e6232409SmrgInstallation directories:
1331e6232409Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13328fff3f40Smrg                          [$ac_default_prefix]
1333e6232409Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13348fff3f40Smrg                          [PREFIX]
1335e6232409Smrg
1336e6232409SmrgBy default, \`make install' will install all the files in
1337e6232409Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1338e6232409Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1339e6232409Smrgfor instance \`--prefix=\$HOME'.
1340e6232409Smrg
1341e6232409SmrgFor better control, use the options below.
1342e6232409Smrg
1343e6232409SmrgFine tuning of the installation directories:
13448fff3f40Smrg  --bindir=DIR            user executables [EPREFIX/bin]
13458fff3f40Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13468fff3f40Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13478fff3f40Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13488fff3f40Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13498fff3f40Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13508fff3f40Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13518fff3f40Smrg  --includedir=DIR        C header files [PREFIX/include]
13528fff3f40Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13538fff3f40Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13548fff3f40Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13558fff3f40Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
13568fff3f40Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13578fff3f40Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
13588fff3f40Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xlsfonts]
13598fff3f40Smrg  --htmldir=DIR           html documentation [DOCDIR]
13608fff3f40Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
13618fff3f40Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
13628fff3f40Smrg  --psdir=DIR             ps documentation [DOCDIR]
1363e6232409Smrg_ACEOF
1364e6232409Smrg
1365e6232409Smrg  cat <<\_ACEOF
1366e6232409Smrg
1367e6232409SmrgProgram names:
1368e6232409Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1369e6232409Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1370e6232409Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1371e6232409Smrg
1372e6232409SmrgSystem types:
1373e6232409Smrg  --build=BUILD     configure for building on BUILD [guessed]
1374e6232409Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1375e6232409Smrg_ACEOF
1376e6232409Smrgfi
1377e6232409Smrg
1378e6232409Smrgif test -n "$ac_init_help"; then
1379e6232409Smrg  case $ac_init_help in
1380c05e7a3eSmrg     short | recursive ) echo "Configuration of xlsfonts 1.0.6:";;
1381e6232409Smrg   esac
1382e6232409Smrg  cat <<\_ACEOF
1383e6232409Smrg
1384e6232409SmrgOptional Features:
13858fff3f40Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
1386e6232409Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1387e6232409Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
13886a45684fSmrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
13896a45684fSmrg  --disable-silent-rules  verbose build output (undo: "make V=0")
13906a45684fSmrg  --enable-dependency-tracking
13916a45684fSmrg                          do not reject slow dependency extractors
13926a45684fSmrg  --disable-dependency-tracking
13936a45684fSmrg                          speeds up one-time build
139494a251fdSmrg  --disable-selective-werror
139594a251fdSmrg                          Turn off selective compiler errors. (default:
139694a251fdSmrg                          enabled)
13978fff3f40Smrg  --enable-strict-compilation
13988fff3f40Smrg                          Enable all warnings from compiler and make them
13998fff3f40Smrg                          errors (default: disabled)
1400e6232409Smrg
1401e6232409SmrgSome influential environment variables:
1402e6232409Smrg  CC          C compiler command
1403e6232409Smrg  CFLAGS      C compiler flags
1404e6232409Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1405e6232409Smrg              nonstandard directory <lib dir>
14068fff3f40Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
14078fff3f40Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1408e6232409Smrg              you have headers in a nonstandard directory <include dir>
14098fff3f40Smrg  CPP         C preprocessor
1410e6232409Smrg  PKG_CONFIG  path to pkg-config utility
1411c05e7a3eSmrg  PKG_CONFIG_PATH
1412c05e7a3eSmrg              directories to add to pkg-config's search path
1413c05e7a3eSmrg  PKG_CONFIG_LIBDIR
1414c05e7a3eSmrg              path overriding pkg-config's built-in search path
1415e6232409Smrg  XLSFONTS_CFLAGS
1416e6232409Smrg              C compiler flags for XLSFONTS, overriding pkg-config
1417e6232409Smrg  XLSFONTS_LIBS
1418e6232409Smrg              linker flags for XLSFONTS, overriding pkg-config
1419e6232409Smrg
1420e6232409SmrgUse these variables to override the choices made by `configure' or to help
1421e6232409Smrgit to find libraries and programs with nonstandard names/locations.
1422e6232409Smrg
1423e6232409SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1424e6232409Smrg_ACEOF
1425e6232409Smrgac_status=$?
1426e6232409Smrgfi
1427e6232409Smrg
1428e6232409Smrgif test "$ac_init_help" = "recursive"; then
1429e6232409Smrg  # If there are subdirs, report their specific --help.
1430e6232409Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14318fff3f40Smrg    test -d "$ac_dir" ||
14328fff3f40Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14338fff3f40Smrg      continue
1434e6232409Smrg    ac_builddir=.
1435e6232409Smrg
1436e6232409Smrgcase "$ac_dir" in
1437e6232409Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438e6232409Smrg*)
14398fff3f40Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440e6232409Smrg  # A ".." for each directory in $ac_dir_suffix.
14418fff3f40Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442e6232409Smrg  case $ac_top_builddir_sub in
1443e6232409Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444e6232409Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445e6232409Smrg  esac ;;
1446e6232409Smrgesac
1447e6232409Smrgac_abs_top_builddir=$ac_pwd
1448e6232409Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1449e6232409Smrg# for backward compatibility:
1450e6232409Smrgac_top_builddir=$ac_top_build_prefix
1451e6232409Smrg
1452e6232409Smrgcase $srcdir in
1453e6232409Smrg  .)  # We are building in place.
1454e6232409Smrg    ac_srcdir=.
1455e6232409Smrg    ac_top_srcdir=$ac_top_builddir_sub
1456e6232409Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1457e6232409Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1458e6232409Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1459e6232409Smrg    ac_top_srcdir=$srcdir
1460e6232409Smrg    ac_abs_top_srcdir=$srcdir ;;
1461e6232409Smrg  *) # Relative name.
1462e6232409Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463e6232409Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1464e6232409Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465e6232409Smrgesac
1466e6232409Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467e6232409Smrg
1468e6232409Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1469e6232409Smrg    # Check for guested configure.
1470e6232409Smrg    if test -f "$ac_srcdir/configure.gnu"; then
1471e6232409Smrg      echo &&
1472e6232409Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473e6232409Smrg    elif test -f "$ac_srcdir/configure"; then
1474e6232409Smrg      echo &&
1475e6232409Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
1476e6232409Smrg    else
14778fff3f40Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478e6232409Smrg    fi || ac_status=$?
1479e6232409Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
1480e6232409Smrg  done
1481e6232409Smrgfi
1482e6232409Smrg
1483e6232409Smrgtest -n "$ac_init_help" && exit $ac_status
1484e6232409Smrgif $ac_init_version; then
1485e6232409Smrg  cat <<\_ACEOF
1486c05e7a3eSmrgxlsfonts configure 1.0.6
14876a45684fSmrggenerated by GNU Autoconf 2.69
1488e6232409Smrg
14896a45684fSmrgCopyright (C) 2012 Free Software Foundation, Inc.
1490e6232409SmrgThis configure script is free software; the Free Software Foundation
1491e6232409Smrggives unlimited permission to copy, distribute and modify it.
1492e6232409Smrg_ACEOF
1493e6232409Smrg  exit
1494e6232409Smrgfi
1495e6232409Smrg
14968fff3f40Smrg## ------------------------ ##
14978fff3f40Smrg## Autoconf initialization. ##
14988fff3f40Smrg## ------------------------ ##
1499e6232409Smrg
15008fff3f40Smrg# ac_fn_c_try_compile LINENO
15018fff3f40Smrg# --------------------------
15028fff3f40Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
15038fff3f40Smrgac_fn_c_try_compile ()
1504e6232409Smrg{
15058fff3f40Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15068fff3f40Smrg  rm -f conftest.$ac_objext
15078fff3f40Smrg  if { { ac_try="$ac_compile"
15088fff3f40Smrgcase "(($ac_try" in
15098fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108fff3f40Smrg  *) ac_try_echo=$ac_try;;
15118fff3f40Smrgesac
15128fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15138fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
15148fff3f40Smrg  (eval "$ac_compile") 2>conftest.err
15158fff3f40Smrg  ac_status=$?
15168fff3f40Smrg  if test -s conftest.err; then
15178fff3f40Smrg    grep -v '^ *+' conftest.err >conftest.er1
15188fff3f40Smrg    cat conftest.er1 >&5
15198fff3f40Smrg    mv -f conftest.er1 conftest.err
15208fff3f40Smrg  fi
15218fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15228fff3f40Smrg  test $ac_status = 0; } && {
15238fff3f40Smrg	 test -z "$ac_c_werror_flag" ||
15248fff3f40Smrg	 test ! -s conftest.err
15258fff3f40Smrg       } && test -s conftest.$ac_objext; then :
15268fff3f40Smrg  ac_retval=0
15278fff3f40Smrgelse
15288fff3f40Smrg  $as_echo "$as_me: failed program was:" >&5
15298fff3f40Smrgsed 's/^/| /' conftest.$ac_ext >&5
15308fff3f40Smrg
15318fff3f40Smrg	ac_retval=1
15328fff3f40Smrgfi
153394a251fdSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15348fff3f40Smrg  as_fn_set_status $ac_retval
15358fff3f40Smrg
15368fff3f40Smrg} # ac_fn_c_try_compile
15378fff3f40Smrg
153894a251fdSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
153994a251fdSmrg# ---------------------------------------------
154094a251fdSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
154194a251fdSmrg# accordingly.
15428fff3f40Smrgac_fn_c_check_decl ()
15438fff3f40Smrg{
15448fff3f40Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
154594a251fdSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
154694a251fdSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
154794a251fdSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
154894a251fdSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
154994a251fdSmrgif eval \${$3+:} false; then :
15508fff3f40Smrg  $as_echo_n "(cached) " >&6
15518fff3f40Smrgelse
15528fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15538fff3f40Smrg/* end confdefs.h.  */
15548fff3f40Smrg$4
15558fff3f40Smrgint
15568fff3f40Smrgmain ()
15578fff3f40Smrg{
155894a251fdSmrg#ifndef $as_decl_name
155994a251fdSmrg#ifdef __cplusplus
156094a251fdSmrg  (void) $as_decl_use;
156194a251fdSmrg#else
156294a251fdSmrg  (void) $as_decl_name;
156394a251fdSmrg#endif
15648fff3f40Smrg#endif
15658fff3f40Smrg
15668fff3f40Smrg  ;
15678fff3f40Smrg  return 0;
15688fff3f40Smrg}
15698fff3f40Smrg_ACEOF
15708fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
15718fff3f40Smrg  eval "$3=yes"
15728fff3f40Smrgelse
15738fff3f40Smrg  eval "$3=no"
15748fff3f40Smrgfi
15758fff3f40Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15768fff3f40Smrgfi
15778fff3f40Smrgeval ac_res=\$$3
15788fff3f40Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15798fff3f40Smrg$as_echo "$ac_res" >&6; }
158094a251fdSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15818fff3f40Smrg
15828fff3f40Smrg} # ac_fn_c_check_decl
15838fff3f40Smrg
15848fff3f40Smrg# ac_fn_c_try_cpp LINENO
15858fff3f40Smrg# ----------------------
15868fff3f40Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
15878fff3f40Smrgac_fn_c_try_cpp ()
15888fff3f40Smrg{
15898fff3f40Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15908fff3f40Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
15918fff3f40Smrgcase "(($ac_try" in
15928fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938fff3f40Smrg  *) ac_try_echo=$ac_try;;
15948fff3f40Smrgesac
15958fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15968fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
15978fff3f40Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
15988fff3f40Smrg  ac_status=$?
15998fff3f40Smrg  if test -s conftest.err; then
16008fff3f40Smrg    grep -v '^ *+' conftest.err >conftest.er1
16018fff3f40Smrg    cat conftest.er1 >&5
16028fff3f40Smrg    mv -f conftest.er1 conftest.err
16038fff3f40Smrg  fi
16048fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
160594a251fdSmrg  test $ac_status = 0; } > conftest.i && {
16068fff3f40Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16078fff3f40Smrg	 test ! -s conftest.err
16088fff3f40Smrg       }; then :
16098fff3f40Smrg  ac_retval=0
16108fff3f40Smrgelse
16118fff3f40Smrg  $as_echo "$as_me: failed program was:" >&5
16128fff3f40Smrgsed 's/^/| /' conftest.$ac_ext >&5
16138fff3f40Smrg
16148fff3f40Smrg    ac_retval=1
16158fff3f40Smrgfi
161694a251fdSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16178fff3f40Smrg  as_fn_set_status $ac_retval
16188fff3f40Smrg
16198fff3f40Smrg} # ac_fn_c_try_cpp
16208fff3f40Smrg
16218fff3f40Smrg# ac_fn_c_try_run LINENO
16228fff3f40Smrg# ----------------------
16238fff3f40Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
16248fff3f40Smrg# that executables *can* be run.
16258fff3f40Smrgac_fn_c_try_run ()
16268fff3f40Smrg{
16278fff3f40Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16288fff3f40Smrg  if { { ac_try="$ac_link"
16298fff3f40Smrgcase "(($ac_try" in
16308fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318fff3f40Smrg  *) ac_try_echo=$ac_try;;
16328fff3f40Smrgesac
16338fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16348fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
16358fff3f40Smrg  (eval "$ac_link") 2>&5
16368fff3f40Smrg  ac_status=$?
16378fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16388fff3f40Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
16398fff3f40Smrg  { { case "(($ac_try" in
16408fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418fff3f40Smrg  *) ac_try_echo=$ac_try;;
16428fff3f40Smrgesac
16438fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16448fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
16458fff3f40Smrg  (eval "$ac_try") 2>&5
16468fff3f40Smrg  ac_status=$?
16478fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16488fff3f40Smrg  test $ac_status = 0; }; }; then :
16498fff3f40Smrg  ac_retval=0
16508fff3f40Smrgelse
16518fff3f40Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
16528fff3f40Smrg       $as_echo "$as_me: failed program was:" >&5
16538fff3f40Smrgsed 's/^/| /' conftest.$ac_ext >&5
16548fff3f40Smrg
16558fff3f40Smrg       ac_retval=$ac_status
16568fff3f40Smrgfi
16578fff3f40Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
165894a251fdSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16598fff3f40Smrg  as_fn_set_status $ac_retval
16608fff3f40Smrg
16618fff3f40Smrg} # ac_fn_c_try_run
16628fff3f40Smrg
16638fff3f40Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
16648fff3f40Smrg# -------------------------------------------------------
16658fff3f40Smrg# Tests whether HEADER exists and can be compiled using the include files in
16668fff3f40Smrg# INCLUDES, setting the cache variable VAR accordingly.
16678fff3f40Smrgac_fn_c_check_header_compile ()
16688fff3f40Smrg{
16698fff3f40Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16708fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16718fff3f40Smrg$as_echo_n "checking for $2... " >&6; }
167294a251fdSmrgif eval \${$3+:} false; then :
16738fff3f40Smrg  $as_echo_n "(cached) " >&6
16748fff3f40Smrgelse
16758fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768fff3f40Smrg/* end confdefs.h.  */
16778fff3f40Smrg$4
16788fff3f40Smrg#include <$2>
16798fff3f40Smrg_ACEOF
16808fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
16818fff3f40Smrg  eval "$3=yes"
16828fff3f40Smrgelse
16838fff3f40Smrg  eval "$3=no"
16848fff3f40Smrgfi
16858fff3f40Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16868fff3f40Smrgfi
16878fff3f40Smrgeval ac_res=\$$3
16888fff3f40Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16898fff3f40Smrg$as_echo "$ac_res" >&6; }
169094a251fdSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16918fff3f40Smrg
16928fff3f40Smrg} # ac_fn_c_check_header_compile
169394a251fdSmrg
169494a251fdSmrg# ac_fn_c_try_link LINENO
169594a251fdSmrg# -----------------------
169694a251fdSmrg# Try to link conftest.$ac_ext, and return whether this succeeded.
169794a251fdSmrgac_fn_c_try_link ()
169894a251fdSmrg{
169994a251fdSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
170094a251fdSmrg  rm -f conftest.$ac_objext conftest$ac_exeext
170194a251fdSmrg  if { { ac_try="$ac_link"
170294a251fdSmrgcase "(($ac_try" in
170394a251fdSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
170494a251fdSmrg  *) ac_try_echo=$ac_try;;
170594a251fdSmrgesac
170694a251fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
170794a251fdSmrg$as_echo "$ac_try_echo"; } >&5
170894a251fdSmrg  (eval "$ac_link") 2>conftest.err
170994a251fdSmrg  ac_status=$?
171094a251fdSmrg  if test -s conftest.err; then
171194a251fdSmrg    grep -v '^ *+' conftest.err >conftest.er1
171294a251fdSmrg    cat conftest.er1 >&5
171394a251fdSmrg    mv -f conftest.er1 conftest.err
171494a251fdSmrg  fi
171594a251fdSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
171694a251fdSmrg  test $ac_status = 0; } && {
171794a251fdSmrg	 test -z "$ac_c_werror_flag" ||
171894a251fdSmrg	 test ! -s conftest.err
171994a251fdSmrg       } && test -s conftest$ac_exeext && {
172094a251fdSmrg	 test "$cross_compiling" = yes ||
17216a45684fSmrg	 test -x conftest$ac_exeext
172294a251fdSmrg       }; then :
172394a251fdSmrg  ac_retval=0
172494a251fdSmrgelse
172594a251fdSmrg  $as_echo "$as_me: failed program was:" >&5
172694a251fdSmrgsed 's/^/| /' conftest.$ac_ext >&5
172794a251fdSmrg
172894a251fdSmrg	ac_retval=1
172994a251fdSmrgfi
173094a251fdSmrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
173194a251fdSmrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
173294a251fdSmrg  # interfere with the next link command; also delete a directory that is
173394a251fdSmrg  # left behind by Apple's compiler.  We do this before executing the actions.
173494a251fdSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
173594a251fdSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
173694a251fdSmrg  as_fn_set_status $ac_retval
173794a251fdSmrg
173894a251fdSmrg} # ac_fn_c_try_link
17398fff3f40Smrgcat >config.log <<_ACEOF
17408fff3f40SmrgThis file contains any messages produced by compilers while
17418fff3f40Smrgrunning configure, to aid debugging if configure makes a mistake.
17428fff3f40Smrg
1743c05e7a3eSmrgIt was created by xlsfonts $as_me 1.0.6, which was
17446a45684fSmrggenerated by GNU Autoconf 2.69.  Invocation command line was
17458fff3f40Smrg
17468fff3f40Smrg  $ $0 $@
17478fff3f40Smrg
17488fff3f40Smrg_ACEOF
17498fff3f40Smrgexec 5>>config.log
17508fff3f40Smrg{
17518fff3f40Smrgcat <<_ASUNAME
17528fff3f40Smrg## --------- ##
17538fff3f40Smrg## Platform. ##
17548fff3f40Smrg## --------- ##
17558fff3f40Smrg
17568fff3f40Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
17578fff3f40Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
17588fff3f40Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
17598fff3f40Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
17608fff3f40Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1761e6232409Smrg
1762e6232409Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1763e6232409Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1764e6232409Smrg
1765e6232409Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1766e6232409Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1767e6232409Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1768e6232409Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1769e6232409Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1770e6232409Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1771e6232409Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1772e6232409Smrg
1773e6232409Smrg_ASUNAME
1774e6232409Smrg
1775e6232409Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776e6232409Smrgfor as_dir in $PATH
1777e6232409Smrgdo
1778e6232409Smrg  IFS=$as_save_IFS
1779e6232409Smrg  test -z "$as_dir" && as_dir=.
17808fff3f40Smrg    $as_echo "PATH: $as_dir"
17818fff3f40Smrg  done
1782e6232409SmrgIFS=$as_save_IFS
1783e6232409Smrg
1784e6232409Smrg} >&5
1785e6232409Smrg
1786e6232409Smrgcat >&5 <<_ACEOF
1787e6232409Smrg
1788e6232409Smrg
1789e6232409Smrg## ----------- ##
1790e6232409Smrg## Core tests. ##
1791e6232409Smrg## ----------- ##
1792e6232409Smrg
1793e6232409Smrg_ACEOF
1794e6232409Smrg
1795e6232409Smrg
1796e6232409Smrg# Keep a trace of the command line.
1797e6232409Smrg# Strip out --no-create and --no-recursion so they do not pile up.
1798e6232409Smrg# Strip out --silent because we don't want to record it for future runs.
1799e6232409Smrg# Also quote any args containing shell meta-characters.
1800e6232409Smrg# Make two passes to allow for proper duplicate-argument suppression.
1801e6232409Smrgac_configure_args=
1802e6232409Smrgac_configure_args0=
1803e6232409Smrgac_configure_args1=
1804e6232409Smrgac_must_keep_next=false
1805e6232409Smrgfor ac_pass in 1 2
1806e6232409Smrgdo
1807e6232409Smrg  for ac_arg
1808e6232409Smrg  do
1809e6232409Smrg    case $ac_arg in
1810e6232409Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1811e6232409Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1812e6232409Smrg    | -silent | --silent | --silen | --sile | --sil)
1813e6232409Smrg      continue ;;
1814e6232409Smrg    *\'*)
18158fff3f40Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1816e6232409Smrg    esac
1817e6232409Smrg    case $ac_pass in
18188fff3f40Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1819e6232409Smrg    2)
18208fff3f40Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1821e6232409Smrg      if test $ac_must_keep_next = true; then
1822e6232409Smrg	ac_must_keep_next=false # Got value, back to normal.
1823e6232409Smrg      else
1824e6232409Smrg	case $ac_arg in
1825e6232409Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1826e6232409Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1827e6232409Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1828e6232409Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1829e6232409Smrg	    case "$ac_configure_args0 " in
1830e6232409Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1831e6232409Smrg	    esac
1832e6232409Smrg	    ;;
1833e6232409Smrg	  -* ) ac_must_keep_next=true ;;
1834e6232409Smrg	esac
1835e6232409Smrg      fi
18368fff3f40Smrg      as_fn_append ac_configure_args " '$ac_arg'"
1837e6232409Smrg      ;;
1838e6232409Smrg    esac
1839e6232409Smrg  done
1840e6232409Smrgdone
18418fff3f40Smrg{ ac_configure_args0=; unset ac_configure_args0;}
18428fff3f40Smrg{ ac_configure_args1=; unset ac_configure_args1;}
1843e6232409Smrg
1844e6232409Smrg# When interrupted or exit'd, cleanup temporary files, and complete
1845e6232409Smrg# config.log.  We remove comments because anyway the quotes in there
1846e6232409Smrg# would cause problems or look ugly.
1847e6232409Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1848e6232409Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1849e6232409Smrgtrap 'exit_status=$?
1850e6232409Smrg  # Save into config.log some information that might help in debugging.
1851e6232409Smrg  {
1852e6232409Smrg    echo
1853e6232409Smrg
185494a251fdSmrg    $as_echo "## ---------------- ##
1855e6232409Smrg## Cache variables. ##
185694a251fdSmrg## ---------------- ##"
1857e6232409Smrg    echo
1858e6232409Smrg    # The following way of writing the cache mishandles newlines in values,
1859e6232409Smrg(
1860e6232409Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1861e6232409Smrg    eval ac_val=\$$ac_var
1862e6232409Smrg    case $ac_val in #(
1863e6232409Smrg    *${as_nl}*)
1864e6232409Smrg      case $ac_var in #(
18658fff3f40Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18668fff3f40Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1867e6232409Smrg      esac
1868e6232409Smrg      case $ac_var in #(
1869e6232409Smrg      _ | IFS | as_nl) ;; #(
18708fff3f40Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18718fff3f40Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1872e6232409Smrg      esac ;;
1873e6232409Smrg    esac
1874e6232409Smrg  done
1875e6232409Smrg  (set) 2>&1 |
1876e6232409Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1877e6232409Smrg    *${as_nl}ac_space=\ *)
1878e6232409Smrg      sed -n \
1879e6232409Smrg	"s/'\''/'\''\\\\'\'''\''/g;
1880e6232409Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1881e6232409Smrg      ;; #(
1882e6232409Smrg    *)
1883e6232409Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1884e6232409Smrg      ;;
1885e6232409Smrg    esac |
1886e6232409Smrg    sort
1887e6232409Smrg)
1888e6232409Smrg    echo
1889e6232409Smrg
189094a251fdSmrg    $as_echo "## ----------------- ##
1891e6232409Smrg## Output variables. ##
189294a251fdSmrg## ----------------- ##"
1893e6232409Smrg    echo
1894e6232409Smrg    for ac_var in $ac_subst_vars
1895e6232409Smrg    do
1896e6232409Smrg      eval ac_val=\$$ac_var
1897e6232409Smrg      case $ac_val in
18988fff3f40Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1899e6232409Smrg      esac
19008fff3f40Smrg      $as_echo "$ac_var='\''$ac_val'\''"
1901e6232409Smrg    done | sort
1902e6232409Smrg    echo
1903e6232409Smrg
1904e6232409Smrg    if test -n "$ac_subst_files"; then
190594a251fdSmrg      $as_echo "## ------------------- ##
1906e6232409Smrg## File substitutions. ##
190794a251fdSmrg## ------------------- ##"
1908e6232409Smrg      echo
1909e6232409Smrg      for ac_var in $ac_subst_files
1910e6232409Smrg      do
1911e6232409Smrg	eval ac_val=\$$ac_var
1912e6232409Smrg	case $ac_val in
19138fff3f40Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914e6232409Smrg	esac
19158fff3f40Smrg	$as_echo "$ac_var='\''$ac_val'\''"
1916e6232409Smrg      done | sort
1917e6232409Smrg      echo
1918e6232409Smrg    fi
1919e6232409Smrg
1920e6232409Smrg    if test -s confdefs.h; then
192194a251fdSmrg      $as_echo "## ----------- ##
1922e6232409Smrg## confdefs.h. ##
192394a251fdSmrg## ----------- ##"
1924e6232409Smrg      echo
1925e6232409Smrg      cat confdefs.h
1926e6232409Smrg      echo
1927e6232409Smrg    fi
1928e6232409Smrg    test "$ac_signal" != 0 &&
19298fff3f40Smrg      $as_echo "$as_me: caught signal $ac_signal"
19308fff3f40Smrg    $as_echo "$as_me: exit $exit_status"
1931e6232409Smrg  } >&5
1932e6232409Smrg  rm -f core *.core core.conftest.* &&
1933e6232409Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1934e6232409Smrg    exit $exit_status
1935e6232409Smrg' 0
1936e6232409Smrgfor ac_signal in 1 2 13 15; do
19378fff3f40Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1938e6232409Smrgdone
1939e6232409Smrgac_signal=0
1940e6232409Smrg
1941e6232409Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
1942e6232409Smrgrm -f -r conftest* confdefs.h
1943e6232409Smrg
19448fff3f40Smrg$as_echo "/* confdefs.h */" > confdefs.h
19458fff3f40Smrg
1946e6232409Smrg# Predefined preprocessor variables.
1947e6232409Smrg
1948e6232409Smrgcat >>confdefs.h <<_ACEOF
1949e6232409Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
1950e6232409Smrg_ACEOF
1951e6232409Smrg
1952e6232409Smrgcat >>confdefs.h <<_ACEOF
1953e6232409Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1954e6232409Smrg_ACEOF
1955e6232409Smrg
1956e6232409Smrgcat >>confdefs.h <<_ACEOF
1957e6232409Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
1958e6232409Smrg_ACEOF
1959e6232409Smrg
1960e6232409Smrgcat >>confdefs.h <<_ACEOF
1961e6232409Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
1962e6232409Smrg_ACEOF
1963e6232409Smrg
1964e6232409Smrgcat >>confdefs.h <<_ACEOF
1965e6232409Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1966e6232409Smrg_ACEOF
1967e6232409Smrg
19688fff3f40Smrgcat >>confdefs.h <<_ACEOF
19698fff3f40Smrg#define PACKAGE_URL "$PACKAGE_URL"
19708fff3f40Smrg_ACEOF
19718fff3f40Smrg
1972e6232409Smrg
1973e6232409Smrg# Let the site file select an alternate cache file if it wants to.
19748fff3f40Smrg# Prefer an explicitly selected file to automatically selected ones.
19758fff3f40Smrgac_site_file1=NONE
19768fff3f40Smrgac_site_file2=NONE
1977e6232409Smrgif test -n "$CONFIG_SITE"; then
197894a251fdSmrg  # We do not want a PATH search for config.site.
197994a251fdSmrg  case $CONFIG_SITE in #((
198094a251fdSmrg    -*)  ac_site_file1=./$CONFIG_SITE;;
198194a251fdSmrg    */*) ac_site_file1=$CONFIG_SITE;;
198294a251fdSmrg    *)   ac_site_file1=./$CONFIG_SITE;;
198394a251fdSmrg  esac
1984e6232409Smrgelif test "x$prefix" != xNONE; then
19858fff3f40Smrg  ac_site_file1=$prefix/share/config.site
19868fff3f40Smrg  ac_site_file2=$prefix/etc/config.site
1987e6232409Smrgelse
19888fff3f40Smrg  ac_site_file1=$ac_default_prefix/share/config.site
19898fff3f40Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
1990e6232409Smrgfi
19918fff3f40Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
1992e6232409Smrgdo
19938fff3f40Smrg  test "x$ac_site_file" = xNONE && continue
19948fff3f40Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
19958fff3f40Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
19968fff3f40Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1997e6232409Smrg    sed 's/^/| /' "$ac_site_file" >&5
199894a251fdSmrg    . "$ac_site_file" \
199994a251fdSmrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
200094a251fdSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
200194a251fdSmrgas_fn_error $? "failed to load site script $ac_site_file
200294a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; }
2003e6232409Smrg  fi
2004e6232409Smrgdone
2005e6232409Smrg
2006e6232409Smrgif test -r "$cache_file"; then
20078fff3f40Smrg  # Some versions of bash will fail to source /dev/null (special files
20088fff3f40Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
20098fff3f40Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
20108fff3f40Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
20118fff3f40Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
2012e6232409Smrg    case $cache_file in
2013e6232409Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2014e6232409Smrg      *)                      . "./$cache_file";;
2015e6232409Smrg    esac
2016e6232409Smrg  fi
2017e6232409Smrgelse
20188fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
20198fff3f40Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
2020e6232409Smrg  >$cache_file
2021e6232409Smrgfi
2022e6232409Smrg
2023e6232409Smrg# Check that the precious variables saved in the cache have kept the same
2024e6232409Smrg# value.
2025e6232409Smrgac_cache_corrupted=false
2026e6232409Smrgfor ac_var in $ac_precious_vars; do
2027e6232409Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2028e6232409Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
2029e6232409Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2030e6232409Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
2031e6232409Smrg  case $ac_old_set,$ac_new_set in
2032e6232409Smrg    set,)
20338fff3f40Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
20348fff3f40Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2035e6232409Smrg      ac_cache_corrupted=: ;;
2036e6232409Smrg    ,set)
20378fff3f40Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
20388fff3f40Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2039e6232409Smrg      ac_cache_corrupted=: ;;
2040e6232409Smrg    ,);;
2041e6232409Smrg    *)
2042e6232409Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
20438fff3f40Smrg	# differences in whitespace do not lead to failure.
20448fff3f40Smrg	ac_old_val_w=`echo x $ac_old_val`
20458fff3f40Smrg	ac_new_val_w=`echo x $ac_new_val`
20468fff3f40Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
20478fff3f40Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
20488fff3f40Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
20498fff3f40Smrg	  ac_cache_corrupted=:
20508fff3f40Smrg	else
20518fff3f40Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
20528fff3f40Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
20538fff3f40Smrg	  eval $ac_var=\$ac_old_val
20548fff3f40Smrg	fi
20558fff3f40Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
20568fff3f40Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
20578fff3f40Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
20588fff3f40Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2059e6232409Smrg      fi;;
2060e6232409Smrg  esac
2061e6232409Smrg  # Pass precious variables to config.status.
2062e6232409Smrg  if test "$ac_new_set" = set; then
2063e6232409Smrg    case $ac_new_val in
20648fff3f40Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2065e6232409Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
2066e6232409Smrg    esac
2067e6232409Smrg    case " $ac_configure_args " in
2068e6232409Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
20698fff3f40Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2070e6232409Smrg    esac
2071e6232409Smrg  fi
2072e6232409Smrgdone
2073e6232409Smrgif $ac_cache_corrupted; then
20748fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20758fff3f40Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20768fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
20778fff3f40Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
207894a251fdSmrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2079e6232409Smrgfi
20808fff3f40Smrg## -------------------- ##
20818fff3f40Smrg## Main body of script. ##
20828fff3f40Smrg## -------------------- ##
2083e6232409Smrg
2084e6232409Smrgac_ext=c
2085e6232409Smrgac_cpp='$CPP $CPPFLAGS'
2086e6232409Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2087e6232409Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2088e6232409Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2089e6232409Smrg
2090e6232409Smrg
20916a45684fSmrg
20926a45684fSmrgac_config_headers="$ac_config_headers config.h"
20936a45684fSmrg
20946a45684fSmrg
20956a45684fSmrg# Initialize Automake
20966a45684fSmrgam__api_version='1.15'
20978fff3f40Smrg
2098e6232409Smrgac_aux_dir=
2099e6232409Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
210094a251fdSmrg  if test -f "$ac_dir/install-sh"; then
210194a251fdSmrg    ac_aux_dir=$ac_dir
210294a251fdSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
210394a251fdSmrg    break
210494a251fdSmrg  elif test -f "$ac_dir/install.sh"; then
210594a251fdSmrg    ac_aux_dir=$ac_dir
210694a251fdSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
210794a251fdSmrg    break
210894a251fdSmrg  elif test -f "$ac_dir/shtool"; then
210994a251fdSmrg    ac_aux_dir=$ac_dir
211094a251fdSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
211194a251fdSmrg    break
211294a251fdSmrg  fi
2113e6232409Smrgdone
2114e6232409Smrgif test -z "$ac_aux_dir"; then
211594a251fdSmrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2116e6232409Smrgfi
2117e6232409Smrg
2118e6232409Smrg# These three variables are undocumented and unsupported,
2119e6232409Smrg# and are intended to be withdrawn in a future Autoconf release.
2120e6232409Smrg# They can cause serious problems if a builder's source tree is in a directory
2121e6232409Smrg# whose full name contains unusual characters.
2122e6232409Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2123e6232409Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2124e6232409Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2125e6232409Smrg
2126e6232409Smrg
2127e6232409Smrg# Find a good install program.  We prefer a C program (faster),
2128e6232409Smrg# so one script is as good as another.  But avoid the broken or
2129e6232409Smrg# incompatible versions:
2130e6232409Smrg# SysV /etc/install, /usr/sbin/install
2131e6232409Smrg# SunOS /usr/etc/install
2132e6232409Smrg# IRIX /sbin/install
2133e6232409Smrg# AIX /bin/install
2134e6232409Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2135e6232409Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2136e6232409Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2137e6232409Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2138e6232409Smrg# OS/2's system install, which has a completely different semantic
2139e6232409Smrg# ./install, which can be erroneously created by make from ./install.sh.
21408fff3f40Smrg# Reject install programs that cannot install multiple files.
21418fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
21428fff3f40Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2143e6232409Smrgif test -z "$INSTALL"; then
214494a251fdSmrgif ${ac_cv_path_install+:} false; then :
21458fff3f40Smrg  $as_echo_n "(cached) " >&6
2146e6232409Smrgelse
2147e6232409Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148e6232409Smrgfor as_dir in $PATH
2149e6232409Smrgdo
2150e6232409Smrg  IFS=$as_save_IFS
2151e6232409Smrg  test -z "$as_dir" && as_dir=.
21528fff3f40Smrg    # Account for people who put trailing slashes in PATH elements.
21538fff3f40Smrgcase $as_dir/ in #((
21548fff3f40Smrg  ./ | .// | /[cC]/* | \
2155e6232409Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
21568fff3f40Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2157e6232409Smrg  /usr/ucb/* ) ;;
2158e6232409Smrg  *)
2159e6232409Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2160e6232409Smrg    # Don't use installbsd from OSF since it installs stuff as root
2161e6232409Smrg    # by default.
2162e6232409Smrg    for ac_prog in ginstall scoinst install; do
2163e6232409Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
21646a45684fSmrg	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2165e6232409Smrg	  if test $ac_prog = install &&
2166e6232409Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2167e6232409Smrg	    # AIX install.  It has an incompatible calling convention.
2168e6232409Smrg	    :
2169e6232409Smrg	  elif test $ac_prog = install &&
2170e6232409Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2171e6232409Smrg	    # program-specific install script used by HP pwplus--don't use.
2172e6232409Smrg	    :
2173e6232409Smrg	  else
21748fff3f40Smrg	    rm -rf conftest.one conftest.two conftest.dir
21758fff3f40Smrg	    echo one > conftest.one
21768fff3f40Smrg	    echo two > conftest.two
21778fff3f40Smrg	    mkdir conftest.dir
21788fff3f40Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
21798fff3f40Smrg	      test -s conftest.one && test -s conftest.two &&
21808fff3f40Smrg	      test -s conftest.dir/conftest.one &&
21818fff3f40Smrg	      test -s conftest.dir/conftest.two
21828fff3f40Smrg	    then
21838fff3f40Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
21848fff3f40Smrg	      break 3
21858fff3f40Smrg	    fi
2186e6232409Smrg	  fi
2187e6232409Smrg	fi
2188e6232409Smrg      done
2189e6232409Smrg    done
2190e6232409Smrg    ;;
2191e6232409Smrgesac
21928fff3f40Smrg
21938fff3f40Smrg  done
2194e6232409SmrgIFS=$as_save_IFS
2195e6232409Smrg
21968fff3f40Smrgrm -rf conftest.one conftest.two conftest.dir
2197e6232409Smrg
2198e6232409Smrgfi
2199e6232409Smrg  if test "${ac_cv_path_install+set}" = set; then
2200e6232409Smrg    INSTALL=$ac_cv_path_install
2201e6232409Smrg  else
2202e6232409Smrg    # As a last resort, use the slow shell script.  Don't cache a
2203e6232409Smrg    # value for INSTALL within a source directory, because that will
2204e6232409Smrg    # break other packages using the cache if that directory is
2205e6232409Smrg    # removed, or if the value is a relative name.
2206e6232409Smrg    INSTALL=$ac_install_sh
2207e6232409Smrg  fi
2208e6232409Smrgfi
22098fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
22108fff3f40Smrg$as_echo "$INSTALL" >&6; }
2211e6232409Smrg
2212e6232409Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2213e6232409Smrg# It thinks the first close brace ends the variable substitution.
2214e6232409Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2215e6232409Smrg
2216e6232409Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2217e6232409Smrg
2218e6232409Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2219e6232409Smrg
22208fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
22218fff3f40Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
22228fff3f40Smrg# Reject unsafe characters in $srcdir or the absolute working directory
22238fff3f40Smrg# name.  Accept space and tab only in the latter.
22248fff3f40Smrgam_lf='
22258fff3f40Smrg'
22268fff3f40Smrgcase `pwd` in
22278fff3f40Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
222894a251fdSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
22298fff3f40Smrgesac
22308fff3f40Smrgcase $srcdir in
22318fff3f40Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
22326a45684fSmrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
22338fff3f40Smrgesac
22348fff3f40Smrg
22356a45684fSmrg# Do 'set' in a subshell so we don't clobber the current shell's
2236e6232409Smrg# arguments.  Must try -L first in case configure is actually a
2237e6232409Smrg# symlink; some systems play weird games with the mod time of symlinks
2238e6232409Smrg# (eg FreeBSD returns the mod time of the symlink's containing
2239e6232409Smrg# directory).
2240e6232409Smrgif (
22416a45684fSmrg   am_has_slept=no
22426a45684fSmrg   for am_try in 1 2; do
22436a45684fSmrg     echo "timestamp, slept: $am_has_slept" > conftest.file
22446a45684fSmrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
22456a45684fSmrg     if test "$*" = "X"; then
22466a45684fSmrg	# -L didn't work.
22476a45684fSmrg	set X `ls -t "$srcdir/configure" conftest.file`
22486a45684fSmrg     fi
22496a45684fSmrg     if test "$*" != "X $srcdir/configure conftest.file" \
22506a45684fSmrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
22516a45684fSmrg
22526a45684fSmrg	# If neither matched, then we have a broken ls.  This can happen
22536a45684fSmrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
22546a45684fSmrg	# broken ls alias from the environment.  This has actually
22556a45684fSmrg	# happened.  Such a system could not be considered "sane".
22566a45684fSmrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
22576a45684fSmrg  alias in your environment" "$LINENO" 5
22586a45684fSmrg     fi
22596a45684fSmrg     if test "$2" = conftest.file || test $am_try -eq 2; then
22606a45684fSmrg       break
22616a45684fSmrg     fi
22626a45684fSmrg     # Just in case.
22636a45684fSmrg     sleep 1
22646a45684fSmrg     am_has_slept=yes
22656a45684fSmrg   done
22668fff3f40Smrg   test "$2" = conftest.file
22678fff3f40Smrg   )
22688fff3f40Smrgthen
22698fff3f40Smrg   # Ok.
22708fff3f40Smrg   :
22718fff3f40Smrgelse
227294a251fdSmrg   as_fn_error $? "newly created file is older than distributed files!
22738fff3f40SmrgCheck your system clock" "$LINENO" 5
22748fff3f40Smrgfi
22758fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22768fff3f40Smrg$as_echo "yes" >&6; }
22776a45684fSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and
22786a45684fSmrg# generated files are strictly newer.
22796a45684fSmrgam_sleep_pid=
22806a45684fSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
22816a45684fSmrg  ( sleep 1 ) &
22826a45684fSmrg  am_sleep_pid=$!
22836a45684fSmrgfi
22846a45684fSmrg
22856a45684fSmrgrm -f conftest.file
22866a45684fSmrg
22878fff3f40Smrgtest "$program_prefix" != NONE &&
22888fff3f40Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
22898fff3f40Smrg# Use a double $ so make ignores it.
22908fff3f40Smrgtest "$program_suffix" != NONE &&
22918fff3f40Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
22928fff3f40Smrg# Double any \ or $.
22938fff3f40Smrg# By default was `s,x,x', remove it if useless.
22948fff3f40Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
22958fff3f40Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
22968fff3f40Smrg
22976a45684fSmrg# Expand $ac_aux_dir to an absolute path.
22986a45684fSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
22998fff3f40Smrg
23008fff3f40Smrgif test x"${MISSING+set}" != xset; then
23018fff3f40Smrg  case $am_aux_dir in
23028fff3f40Smrg  *\ * | *\	*)
23038fff3f40Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
23048fff3f40Smrg  *)
23058fff3f40Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
23068fff3f40Smrg  esac
23078fff3f40Smrgfi
23088fff3f40Smrg# Use eval to expand $SHELL
23096a45684fSmrgif eval "$MISSING --is-lightweight"; then
23106a45684fSmrg  am_missing_run="$MISSING "
23118fff3f40Smrgelse
23128fff3f40Smrg  am_missing_run=
23136a45684fSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
23146a45684fSmrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
23158fff3f40Smrgfi
23168fff3f40Smrg
23176a45684fSmrgif test x"${install_sh+set}" != xset; then
23188fff3f40Smrg  case $am_aux_dir in
23198fff3f40Smrg  *\ * | *\	*)
23208fff3f40Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
23218fff3f40Smrg  *)
23228fff3f40Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
23238fff3f40Smrg  esac
23248fff3f40Smrgfi
23258fff3f40Smrg
23266a45684fSmrg# Installed binaries are usually stripped using 'strip' when the user
23276a45684fSmrg# run "make install-strip".  However 'strip' might not be the right
23288fff3f40Smrg# tool to use in cross-compilation environments, therefore Automake
23296a45684fSmrg# will honor the 'STRIP' environment variable to overrule this program.
23308fff3f40Smrgif test "$cross_compiling" != no; then
23318fff3f40Smrg  if test -n "$ac_tool_prefix"; then
23328fff3f40Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
23338fff3f40Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
23348fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23358fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
233694a251fdSmrgif ${ac_cv_prog_STRIP+:} false; then :
23378fff3f40Smrg  $as_echo_n "(cached) " >&6
23388fff3f40Smrgelse
23398fff3f40Smrg  if test -n "$STRIP"; then
23408fff3f40Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
23418fff3f40Smrgelse
23428fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23438fff3f40Smrgfor as_dir in $PATH
23448fff3f40Smrgdo
23458fff3f40Smrg  IFS=$as_save_IFS
23468fff3f40Smrg  test -z "$as_dir" && as_dir=.
23478fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
23486a45684fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23498fff3f40Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
23508fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23518fff3f40Smrg    break 2
23528fff3f40Smrg  fi
23538fff3f40Smrgdone
23548fff3f40Smrg  done
23558fff3f40SmrgIFS=$as_save_IFS
23568fff3f40Smrg
23578fff3f40Smrgfi
23588fff3f40Smrgfi
23598fff3f40SmrgSTRIP=$ac_cv_prog_STRIP
23608fff3f40Smrgif test -n "$STRIP"; then
23618fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
23628fff3f40Smrg$as_echo "$STRIP" >&6; }
23638fff3f40Smrgelse
23648fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23658fff3f40Smrg$as_echo "no" >&6; }
23668fff3f40Smrgfi
23678fff3f40Smrg
23688fff3f40Smrg
23698fff3f40Smrgfi
23708fff3f40Smrgif test -z "$ac_cv_prog_STRIP"; then
23718fff3f40Smrg  ac_ct_STRIP=$STRIP
23728fff3f40Smrg  # Extract the first word of "strip", so it can be a program name with args.
23738fff3f40Smrgset dummy strip; ac_word=$2
23748fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23758fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
237694a251fdSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
23778fff3f40Smrg  $as_echo_n "(cached) " >&6
23788fff3f40Smrgelse
23798fff3f40Smrg  if test -n "$ac_ct_STRIP"; then
23808fff3f40Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
23818fff3f40Smrgelse
23828fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23838fff3f40Smrgfor as_dir in $PATH
23848fff3f40Smrgdo
23858fff3f40Smrg  IFS=$as_save_IFS
23868fff3f40Smrg  test -z "$as_dir" && as_dir=.
23878fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
23886a45684fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23898fff3f40Smrg    ac_cv_prog_ac_ct_STRIP="strip"
23908fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23918fff3f40Smrg    break 2
23928fff3f40Smrg  fi
23938fff3f40Smrgdone
23948fff3f40Smrg  done
23958fff3f40SmrgIFS=$as_save_IFS
23968fff3f40Smrg
23978fff3f40Smrgfi
23988fff3f40Smrgfi
23998fff3f40Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
24008fff3f40Smrgif test -n "$ac_ct_STRIP"; then
24018fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
24028fff3f40Smrg$as_echo "$ac_ct_STRIP" >&6; }
24038fff3f40Smrgelse
24048fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24058fff3f40Smrg$as_echo "no" >&6; }
24068fff3f40Smrgfi
24078fff3f40Smrg
24088fff3f40Smrg  if test "x$ac_ct_STRIP" = x; then
24098fff3f40Smrg    STRIP=":"
24108fff3f40Smrg  else
24118fff3f40Smrg    case $cross_compiling:$ac_tool_warned in
24128fff3f40Smrgyes:)
24138fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24148fff3f40Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24158fff3f40Smrgac_tool_warned=yes ;;
24168fff3f40Smrgesac
24178fff3f40Smrg    STRIP=$ac_ct_STRIP
24188fff3f40Smrg  fi
24198fff3f40Smrgelse
24208fff3f40Smrg  STRIP="$ac_cv_prog_STRIP"
24218fff3f40Smrgfi
24228fff3f40Smrg
24238fff3f40Smrgfi
24248fff3f40SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
24258fff3f40Smrg
24268fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
24278fff3f40Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
24288fff3f40Smrgif test -z "$MKDIR_P"; then
242994a251fdSmrg  if ${ac_cv_path_mkdir+:} false; then :
24308fff3f40Smrg  $as_echo_n "(cached) " >&6
24318fff3f40Smrgelse
24328fff3f40Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24338fff3f40Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
24348fff3f40Smrgdo
24358fff3f40Smrg  IFS=$as_save_IFS
24368fff3f40Smrg  test -z "$as_dir" && as_dir=.
24378fff3f40Smrg    for ac_prog in mkdir gmkdir; do
24388fff3f40Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
24396a45684fSmrg	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
24408fff3f40Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
24418fff3f40Smrg	     'mkdir (GNU coreutils) '* | \
24428fff3f40Smrg	     'mkdir (coreutils) '* | \
24438fff3f40Smrg	     'mkdir (fileutils) '4.1*)
24448fff3f40Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
24458fff3f40Smrg	       break 3;;
24468fff3f40Smrg	   esac
24478fff3f40Smrg	 done
24488fff3f40Smrg       done
24498fff3f40Smrg  done
24508fff3f40SmrgIFS=$as_save_IFS
24518fff3f40Smrg
24528fff3f40Smrgfi
24538fff3f40Smrg
24548fff3f40Smrg  test -d ./--version && rmdir ./--version
24558fff3f40Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
24568fff3f40Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
24578fff3f40Smrg  else
24588fff3f40Smrg    # As a last resort, use the slow shell script.  Don't cache a
24598fff3f40Smrg    # value for MKDIR_P within a source directory, because that will
24608fff3f40Smrg    # break other packages using the cache if that directory is
24618fff3f40Smrg    # removed, or if the value is a relative name.
24628fff3f40Smrg    MKDIR_P="$ac_install_sh -d"
24638fff3f40Smrg  fi
24648fff3f40Smrgfi
24658fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
24668fff3f40Smrg$as_echo "$MKDIR_P" >&6; }
24678fff3f40Smrg
24688fff3f40Smrgfor ac_prog in gawk mawk nawk awk
24698fff3f40Smrgdo
24708fff3f40Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
24718fff3f40Smrgset dummy $ac_prog; ac_word=$2
24728fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24738fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
247494a251fdSmrgif ${ac_cv_prog_AWK+:} false; then :
24758fff3f40Smrg  $as_echo_n "(cached) " >&6
24768fff3f40Smrgelse
24778fff3f40Smrg  if test -n "$AWK"; then
24788fff3f40Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
24798fff3f40Smrgelse
24808fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24818fff3f40Smrgfor as_dir in $PATH
24828fff3f40Smrgdo
24838fff3f40Smrg  IFS=$as_save_IFS
24848fff3f40Smrg  test -z "$as_dir" && as_dir=.
24858fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
24866a45684fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24878fff3f40Smrg    ac_cv_prog_AWK="$ac_prog"
24888fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24898fff3f40Smrg    break 2
24908fff3f40Smrg  fi
24918fff3f40Smrgdone
24928fff3f40Smrg  done
24938fff3f40SmrgIFS=$as_save_IFS
24948fff3f40Smrg
24958fff3f40Smrgfi
24968fff3f40Smrgfi
24978fff3f40SmrgAWK=$ac_cv_prog_AWK
24988fff3f40Smrgif test -n "$AWK"; then
24998fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
25008fff3f40Smrg$as_echo "$AWK" >&6; }
25018fff3f40Smrgelse
25028fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25038fff3f40Smrg$as_echo "no" >&6; }
25048fff3f40Smrgfi
25058fff3f40Smrg
25068fff3f40Smrg
25078fff3f40Smrg  test -n "$AWK" && break
25088fff3f40Smrgdone
25098fff3f40Smrg
25108fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
25118fff3f40Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
25128fff3f40Smrgset x ${MAKE-make}
25138fff3f40Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
251494a251fdSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
25158fff3f40Smrg  $as_echo_n "(cached) " >&6
25168fff3f40Smrgelse
25178fff3f40Smrg  cat >conftest.make <<\_ACEOF
25188fff3f40SmrgSHELL = /bin/sh
25198fff3f40Smrgall:
25208fff3f40Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
25218fff3f40Smrg_ACEOF
252294a251fdSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25238fff3f40Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
25248fff3f40Smrg  *@@@%%%=?*=@@@%%%*)
25258fff3f40Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
25268fff3f40Smrg  *)
25278fff3f40Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
25288fff3f40Smrgesac
25298fff3f40Smrgrm -f conftest.make
25308fff3f40Smrgfi
25318fff3f40Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
25328fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25338fff3f40Smrg$as_echo "yes" >&6; }
25348fff3f40Smrg  SET_MAKE=
25358fff3f40Smrgelse
25368fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25378fff3f40Smrg$as_echo "no" >&6; }
25388fff3f40Smrg  SET_MAKE="MAKE=${MAKE-make}"
25398fff3f40Smrgfi
25408fff3f40Smrg
25418fff3f40Smrgrm -rf .tst 2>/dev/null
25428fff3f40Smrgmkdir .tst 2>/dev/null
25438fff3f40Smrgif test -d .tst; then
25448fff3f40Smrg  am__leading_dot=.
25458fff3f40Smrgelse
25468fff3f40Smrg  am__leading_dot=_
25478fff3f40Smrgfi
25488fff3f40Smrgrmdir .tst 2>/dev/null
25498fff3f40Smrg
25506a45684fSmrg# Check whether --enable-silent-rules was given.
25516a45684fSmrgif test "${enable_silent_rules+set}" = set; then :
25526a45684fSmrg  enableval=$enable_silent_rules;
25536a45684fSmrgfi
25546a45684fSmrg
25556a45684fSmrgcase $enable_silent_rules in # (((
25566a45684fSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
25576a45684fSmrg   no) AM_DEFAULT_VERBOSITY=1;;
25586a45684fSmrg    *) AM_DEFAULT_VERBOSITY=1;;
25596a45684fSmrgesac
25606a45684fSmrgam_make=${MAKE-make}
25616a45684fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
25626a45684fSmrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
25636a45684fSmrgif ${am_cv_make_support_nested_variables+:} false; then :
25646a45684fSmrg  $as_echo_n "(cached) " >&6
25656a45684fSmrgelse
25666a45684fSmrg  if $as_echo 'TRUE=$(BAR$(V))
25676a45684fSmrgBAR0=false
25686a45684fSmrgBAR1=true
25696a45684fSmrgV=1
25706a45684fSmrgam__doit:
25716a45684fSmrg	@$(TRUE)
25726a45684fSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
25736a45684fSmrg  am_cv_make_support_nested_variables=yes
25746a45684fSmrgelse
25756a45684fSmrg  am_cv_make_support_nested_variables=no
25766a45684fSmrgfi
25776a45684fSmrgfi
25786a45684fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
25796a45684fSmrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
25806a45684fSmrgif test $am_cv_make_support_nested_variables = yes; then
25816a45684fSmrg    AM_V='$(V)'
25826a45684fSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
25836a45684fSmrgelse
25846a45684fSmrg  AM_V=$AM_DEFAULT_VERBOSITY
25856a45684fSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
25866a45684fSmrgfi
25876a45684fSmrgAM_BACKSLASH='\'
25886a45684fSmrg
25898fff3f40Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
25908fff3f40Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
25918fff3f40Smrg  # is not polluted with repeated "-I."
25928fff3f40Smrg  am__isrc=' -I$(srcdir)'
25938fff3f40Smrg  # test to see if srcdir already configured
25948fff3f40Smrg  if test -f $srcdir/config.status; then
259594a251fdSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
25968fff3f40Smrg  fi
25978fff3f40Smrgfi
25988fff3f40Smrg
25998fff3f40Smrg# test whether we have cygpath
26008fff3f40Smrgif test -z "$CYGPATH_W"; then
26018fff3f40Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
26028fff3f40Smrg    CYGPATH_W='cygpath -w'
26038fff3f40Smrg  else
26048fff3f40Smrg    CYGPATH_W=echo
26058fff3f40Smrg  fi
26068fff3f40Smrgfi
26078fff3f40Smrg
26088fff3f40Smrg
26098fff3f40Smrg# Define the identity of the package.
26108fff3f40Smrg PACKAGE='xlsfonts'
2611c05e7a3eSmrg VERSION='1.0.6'
26128fff3f40Smrg
26138fff3f40Smrg
26148fff3f40Smrgcat >>confdefs.h <<_ACEOF
26158fff3f40Smrg#define PACKAGE "$PACKAGE"
26168fff3f40Smrg_ACEOF
26178fff3f40Smrg
26188fff3f40Smrg
26198fff3f40Smrgcat >>confdefs.h <<_ACEOF
26208fff3f40Smrg#define VERSION "$VERSION"
26218fff3f40Smrg_ACEOF
26228fff3f40Smrg
26238fff3f40Smrg# Some tools Automake needs.
26248fff3f40Smrg
26258fff3f40SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
26268fff3f40Smrg
26278fff3f40Smrg
26288fff3f40SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
26298fff3f40Smrg
26308fff3f40Smrg
26318fff3f40SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
26328fff3f40Smrg
26338fff3f40Smrg
26348fff3f40SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
26358fff3f40Smrg
26368fff3f40Smrg
26378fff3f40SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
26388fff3f40Smrg
26396a45684fSmrg# For better backward compatibility.  To be removed once Automake 1.9.x
26406a45684fSmrg# dies out for good.  For more background, see:
26416a45684fSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
26426a45684fSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
26436a45684fSmrgmkdir_p='$(MKDIR_P)'
26448fff3f40Smrg
26456a45684fSmrg# We need awk for the "check" target (and possibly the TAP driver).  The
26466a45684fSmrg# system "awk" is bad on some platforms.
26476a45684fSmrg# Always define AMTAR for backward compatibility.  Yes, it's still used
26486a45684fSmrg# in the wild :-(  We should find a proper way to deprecate it ...
26496a45684fSmrgAMTAR='$${TAR-tar}'
26508fff3f40Smrg
26518fff3f40Smrg
26526a45684fSmrg# We'll loop over all known methods to create a tar archive until one works.
26536a45684fSmrg_am_tools='gnutar  pax cpio none'
26548fff3f40Smrg
26556a45684fSmrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
26568fff3f40Smrg
26578fff3f40Smrg
26588fff3f40Smrg
26598fff3f40Smrg
26608fff3f40Smrg
26618fff3f40Smrg
26626a45684fSmrg# POSIX will say in a future version that running "rm -f" with no argument
26636a45684fSmrg# is OK; and we want to be able to make that assumption in our Makefile
26646a45684fSmrg# recipes.  So use an aggressive probe to check that the usage we want is
26656a45684fSmrg# actually supported "in the wild" to an acceptable degree.
26666a45684fSmrg# See automake bug#10828.
26676a45684fSmrg# To make any issue more visible, cause the running configure to be aborted
26686a45684fSmrg# by default if the 'rm' program in use doesn't match our expectations; the
26696a45684fSmrg# user can still override this though.
26706a45684fSmrgif rm -f && rm -fr && rm -rf; then : OK; else
26716a45684fSmrg  cat >&2 <<'END'
26726a45684fSmrgOops!
26736a45684fSmrg
26746a45684fSmrgYour 'rm' program seems unable to run without file operands specified
26756a45684fSmrgon the command line, even when the '-f' option is present.  This is contrary
26766a45684fSmrgto the behaviour of most rm programs out there, and not conforming with
26776a45684fSmrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
26786a45684fSmrg
26796a45684fSmrgPlease tell bug-automake@gnu.org about your system, including the value
26806a45684fSmrgof your $PATH and any error possibly output before this message.  This
26816a45684fSmrgcan help us improve future automake versions.
26826a45684fSmrg
26836a45684fSmrgEND
26846a45684fSmrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
26856a45684fSmrg    echo 'Configuration will proceed anyway, since you have set the' >&2
26866a45684fSmrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
26876a45684fSmrg    echo >&2
26886a45684fSmrg  else
26896a45684fSmrg    cat >&2 <<'END'
26906a45684fSmrgAborting the configuration process, to ensure you take notice of the issue.
26916a45684fSmrg
26926a45684fSmrgYou can download and install GNU coreutils to get an 'rm' implementation
26936a45684fSmrgthat behaves properly: <http://www.gnu.org/software/coreutils/>.
26946a45684fSmrg
26956a45684fSmrgIf you want to complete the configuration process using your problematic
26966a45684fSmrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
26976a45684fSmrgto "yes", and re-run configure.
26988fff3f40Smrg
26996a45684fSmrgEND
27006a45684fSmrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
27016a45684fSmrg  fi
27026a45684fSmrgfi
27038fff3f40Smrg
27048fff3f40Smrg
270594a251fdSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
27068fff3f40Smrg
27078fff3f40Smrg
27088fff3f40Smrg
27098fff3f40Smrg
27108fff3f40Smrg
27118fff3f40Smrg
27128fff3f40Smrg
27138fff3f40Smrg
27148fff3f40Smrg
27158fff3f40Smrg
27168fff3f40Smrg
27178fff3f40SmrgDEPDIR="${am__leading_dot}deps"
27188fff3f40Smrg
27198fff3f40Smrgac_config_commands="$ac_config_commands depfiles"
27208fff3f40Smrg
27218fff3f40Smrg
27228fff3f40Smrgam_make=${MAKE-make}
27238fff3f40Smrgcat > confinc << 'END'
27248fff3f40Smrgam__doit:
27258fff3f40Smrg	@echo this is the am__doit target
27268fff3f40Smrg.PHONY: am__doit
27278fff3f40SmrgEND
27288fff3f40Smrg# If we don't find an include directive, just comment out the code.
27298fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
27308fff3f40Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
27318fff3f40Smrgam__include="#"
27328fff3f40Smrgam__quote=
27338fff3f40Smrg_am_result=none
27348fff3f40Smrg# First try GNU make style include.
27358fff3f40Smrgecho "include confinc" > confmf
27366a45684fSmrg# Ignore all kinds of additional output from 'make'.
27378fff3f40Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
27388fff3f40Smrg*the\ am__doit\ target*)
27398fff3f40Smrg  am__include=include
27408fff3f40Smrg  am__quote=
27418fff3f40Smrg  _am_result=GNU
27428fff3f40Smrg  ;;
27438fff3f40Smrgesac
27448fff3f40Smrg# Now try BSD make style include.
27458fff3f40Smrgif test "$am__include" = "#"; then
27468fff3f40Smrg   echo '.include "confinc"' > confmf
27478fff3f40Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
27488fff3f40Smrg   *the\ am__doit\ target*)
27498fff3f40Smrg     am__include=.include
27508fff3f40Smrg     am__quote="\""
27518fff3f40Smrg     _am_result=BSD
27528fff3f40Smrg     ;;
27538fff3f40Smrg   esac
27548fff3f40Smrgfi
27558fff3f40Smrg
27568fff3f40Smrg
27578fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
27588fff3f40Smrg$as_echo "$_am_result" >&6; }
27598fff3f40Smrgrm -f confinc confmf
27608fff3f40Smrg
27618fff3f40Smrg# Check whether --enable-dependency-tracking was given.
27628fff3f40Smrgif test "${enable_dependency_tracking+set}" = set; then :
27638fff3f40Smrg  enableval=$enable_dependency_tracking;
27648fff3f40Smrgfi
27658fff3f40Smrg
27668fff3f40Smrgif test "x$enable_dependency_tracking" != xno; then
27678fff3f40Smrg  am_depcomp="$ac_aux_dir/depcomp"
27688fff3f40Smrg  AMDEPBACKSLASH='\'
276994a251fdSmrg  am__nodep='_no'
27708fff3f40Smrgfi
27718fff3f40Smrg if test "x$enable_dependency_tracking" != xno; then
27728fff3f40Smrg  AMDEP_TRUE=
27738fff3f40Smrg  AMDEP_FALSE='#'
27748fff3f40Smrgelse
27758fff3f40Smrg  AMDEP_TRUE='#'
27768fff3f40Smrg  AMDEP_FALSE=
27778fff3f40Smrgfi
27788fff3f40Smrg
27798fff3f40Smrg
27808fff3f40Smrgac_ext=c
27818fff3f40Smrgac_cpp='$CPP $CPPFLAGS'
27828fff3f40Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27838fff3f40Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27848fff3f40Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
27858fff3f40Smrgif test -n "$ac_tool_prefix"; then
27868fff3f40Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
27878fff3f40Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
27888fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27898fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
279094a251fdSmrgif ${ac_cv_prog_CC+:} false; then :
27918fff3f40Smrg  $as_echo_n "(cached) " >&6
27928fff3f40Smrgelse
27938fff3f40Smrg  if test -n "$CC"; then
27948fff3f40Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
27958fff3f40Smrgelse
27968fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27978fff3f40Smrgfor as_dir in $PATH
27988fff3f40Smrgdo
27998fff3f40Smrg  IFS=$as_save_IFS
28008fff3f40Smrg  test -z "$as_dir" && as_dir=.
28018fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
28026a45684fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28038fff3f40Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
28048fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28058fff3f40Smrg    break 2
28068fff3f40Smrg  fi
28078fff3f40Smrgdone
28088fff3f40Smrg  done
28098fff3f40SmrgIFS=$as_save_IFS
28108fff3f40Smrg
28118fff3f40Smrgfi
28128fff3f40Smrgfi
28138fff3f40SmrgCC=$ac_cv_prog_CC
28148fff3f40Smrgif test -n "$CC"; then
28158fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
28168fff3f40Smrg$as_echo "$CC" >&6; }
28178fff3f40Smrgelse
28188fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28198fff3f40Smrg$as_echo "no" >&6; }
28208fff3f40Smrgfi
28218fff3f40Smrg
28228fff3f40Smrg
28238fff3f40Smrgfi
28248fff3f40Smrgif test -z "$ac_cv_prog_CC"; then
28258fff3f40Smrg  ac_ct_CC=$CC
28268fff3f40Smrg  # Extract the first word of "gcc", so it can be a program name with args.
28278fff3f40Smrgset dummy gcc; ac_word=$2
28288fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28298fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
283094a251fdSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
28318fff3f40Smrg  $as_echo_n "(cached) " >&6
28328fff3f40Smrgelse
28338fff3f40Smrg  if test -n "$ac_ct_CC"; then
28348fff3f40Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
28358fff3f40Smrgelse
28368fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28378fff3f40Smrgfor as_dir in $PATH
28388fff3f40Smrgdo
28398fff3f40Smrg  IFS=$as_save_IFS
28408fff3f40Smrg  test -z "$as_dir" && as_dir=.
28418fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
28426a45684fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28438fff3f40Smrg    ac_cv_prog_ac_ct_CC="gcc"
28448fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28458fff3f40Smrg    break 2
28468fff3f40Smrg  fi
28478fff3f40Smrgdone
28488fff3f40Smrg  done
28498fff3f40SmrgIFS=$as_save_IFS
28508fff3f40Smrg
28518fff3f40Smrgfi
28528fff3f40Smrgfi
28538fff3f40Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
28548fff3f40Smrgif test -n "$ac_ct_CC"; then
28558fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
28568fff3f40Smrg$as_echo "$ac_ct_CC" >&6; }
28578fff3f40Smrgelse
28588fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28598fff3f40Smrg$as_echo "no" >&6; }
28608fff3f40Smrgfi
28618fff3f40Smrg
28628fff3f40Smrg  if test "x$ac_ct_CC" = x; then
28638fff3f40Smrg    CC=""
28648fff3f40Smrg  else
28658fff3f40Smrg    case $cross_compiling:$ac_tool_warned in
28668fff3f40Smrgyes:)
28678fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28688fff3f40Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28698fff3f40Smrgac_tool_warned=yes ;;
28708fff3f40Smrgesac
28718fff3f40Smrg    CC=$ac_ct_CC
28728fff3f40Smrg  fi
28738fff3f40Smrgelse
28748fff3f40Smrg  CC="$ac_cv_prog_CC"
28758fff3f40Smrgfi
28768fff3f40Smrg
28778fff3f40Smrgif test -z "$CC"; then
28788fff3f40Smrg          if test -n "$ac_tool_prefix"; then
28798fff3f40Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
28808fff3f40Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
28818fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28828fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
288394a251fdSmrgif ${ac_cv_prog_CC+:} false; then :
28848fff3f40Smrg  $as_echo_n "(cached) " >&6
28858fff3f40Smrgelse
28868fff3f40Smrg  if test -n "$CC"; then
28878fff3f40Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
28888fff3f40Smrgelse
28898fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28908fff3f40Smrgfor as_dir in $PATH
28918fff3f40Smrgdo
28928fff3f40Smrg  IFS=$as_save_IFS
28938fff3f40Smrg  test -z "$as_dir" && as_dir=.
28948fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
28956a45684fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28968fff3f40Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
28978fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28988fff3f40Smrg    break 2
28998fff3f40Smrg  fi
29008fff3f40Smrgdone
29018fff3f40Smrg  done
29028fff3f40SmrgIFS=$as_save_IFS
29038fff3f40Smrg
29048fff3f40Smrgfi
29058fff3f40Smrgfi
29068fff3f40SmrgCC=$ac_cv_prog_CC
29078fff3f40Smrgif test -n "$CC"; then
29088fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
29098fff3f40Smrg$as_echo "$CC" >&6; }
29108fff3f40Smrgelse
29118fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29128fff3f40Smrg$as_echo "no" >&6; }
29138fff3f40Smrgfi
29148fff3f40Smrg
29158fff3f40Smrg
29168fff3f40Smrg  fi
29178fff3f40Smrgfi
29188fff3f40Smrgif test -z "$CC"; then
29198fff3f40Smrg  # Extract the first word of "cc", so it can be a program name with args.
29208fff3f40Smrgset dummy cc; ac_word=$2
29218fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29228fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
292394a251fdSmrgif ${ac_cv_prog_CC+:} false; then :
29248fff3f40Smrg  $as_echo_n "(cached) " >&6
29258fff3f40Smrgelse
29268fff3f40Smrg  if test -n "$CC"; then
29278fff3f40Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
29288fff3f40Smrgelse
29298fff3f40Smrg  ac_prog_rejected=no
29308fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29318fff3f40Smrgfor as_dir in $PATH
29328fff3f40Smrgdo
29338fff3f40Smrg  IFS=$as_save_IFS
29348fff3f40Smrg  test -z "$as_dir" && as_dir=.
29358fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
29366a45684fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29378fff3f40Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
29388fff3f40Smrg       ac_prog_rejected=yes
29398fff3f40Smrg       continue
29408fff3f40Smrg     fi
29418fff3f40Smrg    ac_cv_prog_CC="cc"
29428fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29438fff3f40Smrg    break 2
29448fff3f40Smrg  fi
29458fff3f40Smrgdone
29468fff3f40Smrg  done
29478fff3f40SmrgIFS=$as_save_IFS
29488fff3f40Smrg
29498fff3f40Smrgif test $ac_prog_rejected = yes; then
29508fff3f40Smrg  # We found a bogon in the path, so make sure we never use it.
29518fff3f40Smrg  set dummy $ac_cv_prog_CC
29528fff3f40Smrg  shift
29538fff3f40Smrg  if test $# != 0; then
29548fff3f40Smrg    # We chose a different compiler from the bogus one.
29558fff3f40Smrg    # However, it has the same basename, so the bogon will be chosen
29568fff3f40Smrg    # first if we set CC to just the basename; use the full file name.
29578fff3f40Smrg    shift
29588fff3f40Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
29598fff3f40Smrg  fi
29608fff3f40Smrgfi
29618fff3f40Smrgfi
29628fff3f40Smrgfi
29638fff3f40SmrgCC=$ac_cv_prog_CC
29648fff3f40Smrgif test -n "$CC"; then
29658fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
29668fff3f40Smrg$as_echo "$CC" >&6; }
29678fff3f40Smrgelse
29688fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29698fff3f40Smrg$as_echo "no" >&6; }
29708fff3f40Smrgfi
29718fff3f40Smrg
29728fff3f40Smrg
29738fff3f40Smrgfi
29748fff3f40Smrgif test -z "$CC"; then
29758fff3f40Smrg  if test -n "$ac_tool_prefix"; then
29768fff3f40Smrg  for ac_prog in cl.exe
29778fff3f40Smrg  do
29788fff3f40Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29798fff3f40Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
29808fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29818fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
298294a251fdSmrgif ${ac_cv_prog_CC+:} false; then :
29838fff3f40Smrg  $as_echo_n "(cached) " >&6
29848fff3f40Smrgelse
29858fff3f40Smrg  if test -n "$CC"; then
29868fff3f40Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
29878fff3f40Smrgelse
29888fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29898fff3f40Smrgfor as_dir in $PATH
29908fff3f40Smrgdo
29918fff3f40Smrg  IFS=$as_save_IFS
29928fff3f40Smrg  test -z "$as_dir" && as_dir=.
29938fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
29946a45684fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29958fff3f40Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
29968fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29978fff3f40Smrg    break 2
29988fff3f40Smrg  fi
29998fff3f40Smrgdone
30008fff3f40Smrg  done
30018fff3f40SmrgIFS=$as_save_IFS
30028fff3f40Smrg
30038fff3f40Smrgfi
30048fff3f40Smrgfi
30058fff3f40SmrgCC=$ac_cv_prog_CC
30068fff3f40Smrgif test -n "$CC"; then
30078fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
30088fff3f40Smrg$as_echo "$CC" >&6; }
30098fff3f40Smrgelse
30108fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30118fff3f40Smrg$as_echo "no" >&6; }
30128fff3f40Smrgfi
30138fff3f40Smrg
30148fff3f40Smrg
30158fff3f40Smrg    test -n "$CC" && break
30168fff3f40Smrg  done
30178fff3f40Smrgfi
30188fff3f40Smrgif test -z "$CC"; then
30198fff3f40Smrg  ac_ct_CC=$CC
30208fff3f40Smrg  for ac_prog in cl.exe
30218fff3f40Smrgdo
30228fff3f40Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
30238fff3f40Smrgset dummy $ac_prog; ac_word=$2
30248fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30258fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
302694a251fdSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
30278fff3f40Smrg  $as_echo_n "(cached) " >&6
30288fff3f40Smrgelse
30298fff3f40Smrg  if test -n "$ac_ct_CC"; then
30308fff3f40Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
30318fff3f40Smrgelse
30328fff3f40Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30338fff3f40Smrgfor as_dir in $PATH
30348fff3f40Smrgdo
30358fff3f40Smrg  IFS=$as_save_IFS
30368fff3f40Smrg  test -z "$as_dir" && as_dir=.
30378fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
30386a45684fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30398fff3f40Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
30408fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30418fff3f40Smrg    break 2
30428fff3f40Smrg  fi
30438fff3f40Smrgdone
30448fff3f40Smrg  done
30458fff3f40SmrgIFS=$as_save_IFS
30468fff3f40Smrg
30478fff3f40Smrgfi
30488fff3f40Smrgfi
30498fff3f40Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
30508fff3f40Smrgif test -n "$ac_ct_CC"; then
30518fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
30528fff3f40Smrg$as_echo "$ac_ct_CC" >&6; }
30538fff3f40Smrgelse
30548fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30558fff3f40Smrg$as_echo "no" >&6; }
30568fff3f40Smrgfi
30578fff3f40Smrg
30588fff3f40Smrg
30598fff3f40Smrg  test -n "$ac_ct_CC" && break
30608fff3f40Smrgdone
30618fff3f40Smrg
30628fff3f40Smrg  if test "x$ac_ct_CC" = x; then
30638fff3f40Smrg    CC=""
30648fff3f40Smrg  else
30658fff3f40Smrg    case $cross_compiling:$ac_tool_warned in
30668fff3f40Smrgyes:)
30678fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30688fff3f40Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30698fff3f40Smrgac_tool_warned=yes ;;
30708fff3f40Smrgesac
30718fff3f40Smrg    CC=$ac_ct_CC
30728fff3f40Smrg  fi
30738fff3f40Smrgfi
30748fff3f40Smrg
30758fff3f40Smrgfi
30768fff3f40Smrg
30778fff3f40Smrg
30788fff3f40Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30798fff3f40Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
308094a251fdSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
308194a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; }
30828fff3f40Smrg
30838fff3f40Smrg# Provide some information about the compiler.
30848fff3f40Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
30858fff3f40Smrgset X $ac_compile
30868fff3f40Smrgac_compiler=$2
30878fff3f40Smrgfor ac_option in --version -v -V -qversion; do
30888fff3f40Smrg  { { ac_try="$ac_compiler $ac_option >&5"
30898fff3f40Smrgcase "(($ac_try" in
30908fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30918fff3f40Smrg  *) ac_try_echo=$ac_try;;
30928fff3f40Smrgesac
30938fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30948fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
30958fff3f40Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
30968fff3f40Smrg  ac_status=$?
30978fff3f40Smrg  if test -s conftest.err; then
30988fff3f40Smrg    sed '10a\
30998fff3f40Smrg... rest of stderr output deleted ...
31008fff3f40Smrg         10q' conftest.err >conftest.er1
31018fff3f40Smrg    cat conftest.er1 >&5
31028fff3f40Smrg  fi
31038fff3f40Smrg  rm -f conftest.er1 conftest.err
31048fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31058fff3f40Smrg  test $ac_status = 0; }
31068fff3f40Smrgdone
31078fff3f40Smrg
31088fff3f40Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
31098fff3f40Smrg/* end confdefs.h.  */
31108fff3f40Smrg
31118fff3f40Smrgint
31128fff3f40Smrgmain ()
31138fff3f40Smrg{
31148fff3f40Smrg
31158fff3f40Smrg  ;
31168fff3f40Smrg  return 0;
31178fff3f40Smrg}
31188fff3f40Smrg_ACEOF
31198fff3f40Smrgac_clean_files_save=$ac_clean_files
31208fff3f40Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
31218fff3f40Smrg# Try to create an executable without -o first, disregard a.out.
31228fff3f40Smrg# It will help us diagnose broken compilers, and finding out an intuition
31238fff3f40Smrg# of exeext.
31248fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
31258fff3f40Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
31268fff3f40Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
31278fff3f40Smrg
31288fff3f40Smrg# The possible output files:
31298fff3f40Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
31308fff3f40Smrg
31318fff3f40Smrgac_rmfiles=
31328fff3f40Smrgfor ac_file in $ac_files
31338fff3f40Smrgdo
31348fff3f40Smrg  case $ac_file in
31358fff3f40Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
31368fff3f40Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
31378fff3f40Smrg  esac
31388fff3f40Smrgdone
31398fff3f40Smrgrm -f $ac_rmfiles
31408fff3f40Smrg
31418fff3f40Smrgif { { ac_try="$ac_link_default"
31428fff3f40Smrgcase "(($ac_try" in
31438fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31448fff3f40Smrg  *) ac_try_echo=$ac_try;;
31458fff3f40Smrgesac
31468fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31478fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
31488fff3f40Smrg  (eval "$ac_link_default") 2>&5
31498fff3f40Smrg  ac_status=$?
31508fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31518fff3f40Smrg  test $ac_status = 0; }; then :
31528fff3f40Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
31538fff3f40Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
31548fff3f40Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
31558fff3f40Smrg# so that the user can short-circuit this test for compilers unknown to
31568fff3f40Smrg# Autoconf.
31578fff3f40Smrgfor ac_file in $ac_files ''
31588fff3f40Smrgdo
31598fff3f40Smrg  test -f "$ac_file" || continue
31608fff3f40Smrg  case $ac_file in
31618fff3f40Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
31628fff3f40Smrg	;;
31638fff3f40Smrg    [ab].out )
31648fff3f40Smrg	# We found the default executable, but exeext='' is most
31658fff3f40Smrg	# certainly right.
31668fff3f40Smrg	break;;
31678fff3f40Smrg    *.* )
31688fff3f40Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
31698fff3f40Smrg	then :; else
31708fff3f40Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
31718fff3f40Smrg	fi
31728fff3f40Smrg	# We set ac_cv_exeext here because the later test for it is not
31738fff3f40Smrg	# safe: cross compilers may not add the suffix if given an `-o'
31748fff3f40Smrg	# argument, so we may need to know it at that point already.
31758fff3f40Smrg	# Even if this section looks crufty: it has the advantage of
31768fff3f40Smrg	# actually working.
31778fff3f40Smrg	break;;
31788fff3f40Smrg    * )
31798fff3f40Smrg	break;;
31808fff3f40Smrg  esac
31818fff3f40Smrgdone
31828fff3f40Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
31838fff3f40Smrg
31848fff3f40Smrgelse
31858fff3f40Smrg  ac_file=''
31868fff3f40Smrgfi
31878fff3f40Smrgif test -z "$ac_file"; then :
31888fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31898fff3f40Smrg$as_echo "no" >&6; }
31908fff3f40Smrg$as_echo "$as_me: failed program was:" >&5
31918fff3f40Smrgsed 's/^/| /' conftest.$ac_ext >&5
31928fff3f40Smrg
31938fff3f40Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31948fff3f40Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
319594a251fdSmrgas_fn_error 77 "C compiler cannot create executables
319694a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; }
31978fff3f40Smrgelse
31988fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31998fff3f40Smrg$as_echo "yes" >&6; }
32008fff3f40Smrgfi
32018fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
32028fff3f40Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
32038fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
32048fff3f40Smrg$as_echo "$ac_file" >&6; }
32058fff3f40Smrgac_exeext=$ac_cv_exeext
32068fff3f40Smrg
32078fff3f40Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
32088fff3f40Smrgac_clean_files=$ac_clean_files_save
32098fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
32108fff3f40Smrg$as_echo_n "checking for suffix of executables... " >&6; }
32118fff3f40Smrgif { { ac_try="$ac_link"
32128fff3f40Smrgcase "(($ac_try" in
32138fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148fff3f40Smrg  *) ac_try_echo=$ac_try;;
32158fff3f40Smrgesac
32168fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32178fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
32188fff3f40Smrg  (eval "$ac_link") 2>&5
32198fff3f40Smrg  ac_status=$?
32208fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32218fff3f40Smrg  test $ac_status = 0; }; then :
32228fff3f40Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
32238fff3f40Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
32248fff3f40Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
32258fff3f40Smrg# `rm'.
32268fff3f40Smrgfor ac_file in conftest.exe conftest conftest.*; do
32278fff3f40Smrg  test -f "$ac_file" || continue
32288fff3f40Smrg  case $ac_file in
32298fff3f40Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
32308fff3f40Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
32318fff3f40Smrg	  break;;
32328fff3f40Smrg    * ) break;;
32338fff3f40Smrg  esac
32348fff3f40Smrgdone
32358fff3f40Smrgelse
32368fff3f40Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32378fff3f40Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
323894a251fdSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
323994a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; }
32408fff3f40Smrgfi
32418fff3f40Smrgrm -f conftest conftest$ac_cv_exeext
32428fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
32438fff3f40Smrg$as_echo "$ac_cv_exeext" >&6; }
32448fff3f40Smrg
32458fff3f40Smrgrm -f conftest.$ac_ext
32468fff3f40SmrgEXEEXT=$ac_cv_exeext
32478fff3f40Smrgac_exeext=$EXEEXT
32488fff3f40Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
32498fff3f40Smrg/* end confdefs.h.  */
32508fff3f40Smrg#include <stdio.h>
32518fff3f40Smrgint
32528fff3f40Smrgmain ()
32538fff3f40Smrg{
32548fff3f40SmrgFILE *f = fopen ("conftest.out", "w");
32558fff3f40Smrg return ferror (f) || fclose (f) != 0;
32568fff3f40Smrg
32578fff3f40Smrg  ;
32588fff3f40Smrg  return 0;
32598fff3f40Smrg}
32608fff3f40Smrg_ACEOF
32618fff3f40Smrgac_clean_files="$ac_clean_files conftest.out"
32628fff3f40Smrg# Check that the compiler produces executables we can run.  If not, either
32638fff3f40Smrg# the compiler is broken, or we cross compile.
32648fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
32658fff3f40Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
32668fff3f40Smrgif test "$cross_compiling" != yes; then
32678fff3f40Smrg  { { ac_try="$ac_link"
32688fff3f40Smrgcase "(($ac_try" in
32698fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32708fff3f40Smrg  *) ac_try_echo=$ac_try;;
32718fff3f40Smrgesac
32728fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32738fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
32748fff3f40Smrg  (eval "$ac_link") 2>&5
32758fff3f40Smrg  ac_status=$?
32768fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32778fff3f40Smrg  test $ac_status = 0; }
32788fff3f40Smrg  if { ac_try='./conftest$ac_cv_exeext'
32798fff3f40Smrg  { { case "(($ac_try" in
32808fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32818fff3f40Smrg  *) ac_try_echo=$ac_try;;
32828fff3f40Smrgesac
32838fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32848fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
32858fff3f40Smrg  (eval "$ac_try") 2>&5
32868fff3f40Smrg  ac_status=$?
32878fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32888fff3f40Smrg  test $ac_status = 0; }; }; then
32898fff3f40Smrg    cross_compiling=no
32908fff3f40Smrg  else
32918fff3f40Smrg    if test "$cross_compiling" = maybe; then
32928fff3f40Smrg	cross_compiling=yes
32938fff3f40Smrg    else
32948fff3f40Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32958fff3f40Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
329694a251fdSmrgas_fn_error $? "cannot run C compiled programs.
32978fff3f40SmrgIf you meant to cross compile, use \`--host'.
329894a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; }
32998fff3f40Smrg    fi
33008fff3f40Smrg  fi
33018fff3f40Smrgfi
33028fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
33038fff3f40Smrg$as_echo "$cross_compiling" >&6; }
33048fff3f40Smrg
33058fff3f40Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
33068fff3f40Smrgac_clean_files=$ac_clean_files_save
33078fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
33088fff3f40Smrg$as_echo_n "checking for suffix of object files... " >&6; }
330994a251fdSmrgif ${ac_cv_objext+:} false; then :
33108fff3f40Smrg  $as_echo_n "(cached) " >&6
33118fff3f40Smrgelse
33128fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33138fff3f40Smrg/* end confdefs.h.  */
33148fff3f40Smrg
33158fff3f40Smrgint
33168fff3f40Smrgmain ()
33178fff3f40Smrg{
33188fff3f40Smrg
33198fff3f40Smrg  ;
33208fff3f40Smrg  return 0;
33218fff3f40Smrg}
33228fff3f40Smrg_ACEOF
33238fff3f40Smrgrm -f conftest.o conftest.obj
33248fff3f40Smrgif { { ac_try="$ac_compile"
33258fff3f40Smrgcase "(($ac_try" in
33268fff3f40Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33278fff3f40Smrg  *) ac_try_echo=$ac_try;;
33288fff3f40Smrgesac
33298fff3f40Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
33308fff3f40Smrg$as_echo "$ac_try_echo"; } >&5
33318fff3f40Smrg  (eval "$ac_compile") 2>&5
33328fff3f40Smrg  ac_status=$?
33338fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33348fff3f40Smrg  test $ac_status = 0; }; then :
33358fff3f40Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
33368fff3f40Smrg  test -f "$ac_file" || continue;
33378fff3f40Smrg  case $ac_file in
33388fff3f40Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
33398fff3f40Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
33408fff3f40Smrg       break;;
33418fff3f40Smrg  esac
33428fff3f40Smrgdone
33438fff3f40Smrgelse
33448fff3f40Smrg  $as_echo "$as_me: failed program was:" >&5
33458fff3f40Smrgsed 's/^/| /' conftest.$ac_ext >&5
33468fff3f40Smrg
33478fff3f40Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33488fff3f40Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
334994a251fdSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
335094a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; }
33518fff3f40Smrgfi
33528fff3f40Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
33538fff3f40Smrgfi
33548fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
33558fff3f40Smrg$as_echo "$ac_cv_objext" >&6; }
33568fff3f40SmrgOBJEXT=$ac_cv_objext
33578fff3f40Smrgac_objext=$OBJEXT
33588fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
33598fff3f40Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
336094a251fdSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
33618fff3f40Smrg  $as_echo_n "(cached) " >&6
33628fff3f40Smrgelse
33638fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33648fff3f40Smrg/* end confdefs.h.  */
33658fff3f40Smrg
33668fff3f40Smrgint
33678fff3f40Smrgmain ()
33688fff3f40Smrg{
33698fff3f40Smrg#ifndef __GNUC__
33708fff3f40Smrg       choke me
33718fff3f40Smrg#endif
33728fff3f40Smrg
33738fff3f40Smrg  ;
33748fff3f40Smrg  return 0;
33758fff3f40Smrg}
33768fff3f40Smrg_ACEOF
33778fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
33788fff3f40Smrg  ac_compiler_gnu=yes
33798fff3f40Smrgelse
33808fff3f40Smrg  ac_compiler_gnu=no
33818fff3f40Smrgfi
33828fff3f40Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33838fff3f40Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
33848fff3f40Smrg
33858fff3f40Smrgfi
33868fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
33878fff3f40Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
33888fff3f40Smrgif test $ac_compiler_gnu = yes; then
33898fff3f40Smrg  GCC=yes
33908fff3f40Smrgelse
33918fff3f40Smrg  GCC=
33928fff3f40Smrgfi
33938fff3f40Smrgac_test_CFLAGS=${CFLAGS+set}
33948fff3f40Smrgac_save_CFLAGS=$CFLAGS
33958fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
33968fff3f40Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
339794a251fdSmrgif ${ac_cv_prog_cc_g+:} false; then :
33988fff3f40Smrg  $as_echo_n "(cached) " >&6
33998fff3f40Smrgelse
34008fff3f40Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
34018fff3f40Smrg   ac_c_werror_flag=yes
34028fff3f40Smrg   ac_cv_prog_cc_g=no
34038fff3f40Smrg   CFLAGS="-g"
34048fff3f40Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34058fff3f40Smrg/* end confdefs.h.  */
34068fff3f40Smrg
34078fff3f40Smrgint
34088fff3f40Smrgmain ()
34098fff3f40Smrg{
34108fff3f40Smrg
34118fff3f40Smrg  ;
34128fff3f40Smrg  return 0;
34138fff3f40Smrg}
34148fff3f40Smrg_ACEOF
34158fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
34168fff3f40Smrg  ac_cv_prog_cc_g=yes
34178fff3f40Smrgelse
34188fff3f40Smrg  CFLAGS=""
34198fff3f40Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34208fff3f40Smrg/* end confdefs.h.  */
34218fff3f40Smrg
34228fff3f40Smrgint
34238fff3f40Smrgmain ()
34248fff3f40Smrg{
34258fff3f40Smrg
34268fff3f40Smrg  ;
34278fff3f40Smrg  return 0;
34288fff3f40Smrg}
34298fff3f40Smrg_ACEOF
34308fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
34318fff3f40Smrg
34328fff3f40Smrgelse
34338fff3f40Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
34348fff3f40Smrg	 CFLAGS="-g"
34358fff3f40Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34368fff3f40Smrg/* end confdefs.h.  */
34378fff3f40Smrg
34388fff3f40Smrgint
34398fff3f40Smrgmain ()
34408fff3f40Smrg{
34418fff3f40Smrg
34428fff3f40Smrg  ;
34438fff3f40Smrg  return 0;
34448fff3f40Smrg}
34458fff3f40Smrg_ACEOF
34468fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
34478fff3f40Smrg  ac_cv_prog_cc_g=yes
34488fff3f40Smrgfi
34498fff3f40Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34508fff3f40Smrgfi
34518fff3f40Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34528fff3f40Smrgfi
34538fff3f40Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34548fff3f40Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
34558fff3f40Smrgfi
34568fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
34578fff3f40Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
34588fff3f40Smrgif test "$ac_test_CFLAGS" = set; then
34598fff3f40Smrg  CFLAGS=$ac_save_CFLAGS
34608fff3f40Smrgelif test $ac_cv_prog_cc_g = yes; then
34618fff3f40Smrg  if test "$GCC" = yes; then
34628fff3f40Smrg    CFLAGS="-g -O2"
34638fff3f40Smrg  else
34648fff3f40Smrg    CFLAGS="-g"
34658fff3f40Smrg  fi
34668fff3f40Smrgelse
34678fff3f40Smrg  if test "$GCC" = yes; then
34688fff3f40Smrg    CFLAGS="-O2"
34698fff3f40Smrg  else
34708fff3f40Smrg    CFLAGS=
34718fff3f40Smrg  fi
34728fff3f40Smrgfi
34738fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
34748fff3f40Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
347594a251fdSmrgif ${ac_cv_prog_cc_c89+:} false; then :
34768fff3f40Smrg  $as_echo_n "(cached) " >&6
34778fff3f40Smrgelse
34788fff3f40Smrg  ac_cv_prog_cc_c89=no
34798fff3f40Smrgac_save_CC=$CC
34808fff3f40Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
34818fff3f40Smrg/* end confdefs.h.  */
34828fff3f40Smrg#include <stdarg.h>
34838fff3f40Smrg#include <stdio.h>
34846a45684fSmrgstruct stat;
34858fff3f40Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
34868fff3f40Smrgstruct buf { int x; };
34878fff3f40SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
34888fff3f40Smrgstatic char *e (p, i)
34898fff3f40Smrg     char **p;
34908fff3f40Smrg     int i;
34918fff3f40Smrg{
34928fff3f40Smrg  return p[i];
34938fff3f40Smrg}
34948fff3f40Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
34958fff3f40Smrg{
34968fff3f40Smrg  char *s;
34978fff3f40Smrg  va_list v;
34988fff3f40Smrg  va_start (v,p);
34998fff3f40Smrg  s = g (p, va_arg (v,int));
35008fff3f40Smrg  va_end (v);
35018fff3f40Smrg  return s;
35028fff3f40Smrg}
35038fff3f40Smrg
35048fff3f40Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
35058fff3f40Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
35068fff3f40Smrg   These don't provoke an error unfortunately, instead are silently treated
35078fff3f40Smrg   as 'x'.  The following induces an error, until -std is added to get
35088fff3f40Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
35098fff3f40Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
35108fff3f40Smrg   that's true only with -std.  */
35118fff3f40Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
35128fff3f40Smrg
35138fff3f40Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
35148fff3f40Smrg   inside strings and character constants.  */
35158fff3f40Smrg#define FOO(x) 'x'
35168fff3f40Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
35178fff3f40Smrg
35188fff3f40Smrgint test (int i, double x);
35198fff3f40Smrgstruct s1 {int (*f) (int a);};
35208fff3f40Smrgstruct s2 {int (*f) (double a);};
35218fff3f40Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
35228fff3f40Smrgint argc;
35238fff3f40Smrgchar **argv;
35248fff3f40Smrgint
35258fff3f40Smrgmain ()
35268fff3f40Smrg{
35278fff3f40Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
35288fff3f40Smrg  ;
35298fff3f40Smrg  return 0;
35308fff3f40Smrg}
35318fff3f40Smrg_ACEOF
35328fff3f40Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
35338fff3f40Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
35348fff3f40Smrgdo
35358fff3f40Smrg  CC="$ac_save_CC $ac_arg"
35368fff3f40Smrg  if ac_fn_c_try_compile "$LINENO"; then :
35378fff3f40Smrg  ac_cv_prog_cc_c89=$ac_arg
35388fff3f40Smrgfi
35398fff3f40Smrgrm -f core conftest.err conftest.$ac_objext
35408fff3f40Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
35418fff3f40Smrgdone
35428fff3f40Smrgrm -f conftest.$ac_ext
35438fff3f40SmrgCC=$ac_save_CC
35448fff3f40Smrg
35458fff3f40Smrgfi
35468fff3f40Smrg# AC_CACHE_VAL
35478fff3f40Smrgcase "x$ac_cv_prog_cc_c89" in
35488fff3f40Smrg  x)
35498fff3f40Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
35508fff3f40Smrg$as_echo "none needed" >&6; } ;;
35518fff3f40Smrg  xno)
35528fff3f40Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
35538fff3f40Smrg$as_echo "unsupported" >&6; } ;;
35548fff3f40Smrg  *)
35558fff3f40Smrg    CC="$CC $ac_cv_prog_cc_c89"
35568fff3f40Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
35578fff3f40Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
35588fff3f40Smrgesac
35598fff3f40Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
35608fff3f40Smrg
35618fff3f40Smrgfi
35628fff3f40Smrg
35638fff3f40Smrgac_ext=c
35648fff3f40Smrgac_cpp='$CPP $CPPFLAGS'
35658fff3f40Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35668fff3f40Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35678fff3f40Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
35688fff3f40Smrg
35696a45684fSmrgac_ext=c
35706a45684fSmrgac_cpp='$CPP $CPPFLAGS'
35716a45684fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35726a45684fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35736a45684fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
35746a45684fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
35756a45684fSmrg$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
35766a45684fSmrgif ${am_cv_prog_cc_c_o+:} false; then :
35776a45684fSmrg  $as_echo_n "(cached) " >&6
35786a45684fSmrgelse
35796a45684fSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35806a45684fSmrg/* end confdefs.h.  */
35816a45684fSmrg
35826a45684fSmrgint
35836a45684fSmrgmain ()
35846a45684fSmrg{
35856a45684fSmrg
35866a45684fSmrg  ;
35876a45684fSmrg  return 0;
35886a45684fSmrg}
35896a45684fSmrg_ACEOF
35906a45684fSmrg  # Make sure it works both with $CC and with simple cc.
35916a45684fSmrg  # Following AC_PROG_CC_C_O, we do the test twice because some
35926a45684fSmrg  # compilers refuse to overwrite an existing .o file with -o,
35936a45684fSmrg  # though they will create one.
35946a45684fSmrg  am_cv_prog_cc_c_o=yes
35956a45684fSmrg  for am_i in 1 2; do
35966a45684fSmrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
35976a45684fSmrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
35986a45684fSmrg   ac_status=$?
35996a45684fSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36006a45684fSmrg   (exit $ac_status); } \
36016a45684fSmrg         && test -f conftest2.$ac_objext; then
36026a45684fSmrg      : OK
36036a45684fSmrg    else
36046a45684fSmrg      am_cv_prog_cc_c_o=no
36056a45684fSmrg      break
36066a45684fSmrg    fi
36076a45684fSmrg  done
36086a45684fSmrg  rm -f core conftest*
36096a45684fSmrg  unset am_i
36106a45684fSmrgfi
36116a45684fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
36126a45684fSmrg$as_echo "$am_cv_prog_cc_c_o" >&6; }
36136a45684fSmrgif test "$am_cv_prog_cc_c_o" != yes; then
36146a45684fSmrg   # Losing compiler, so override with the script.
36156a45684fSmrg   # FIXME: It is wrong to rewrite CC.
36166a45684fSmrg   # But if we don't then we get into trouble of one sort or another.
36176a45684fSmrg   # A longer-term fix would be to have automake use am__CC in this case,
36186a45684fSmrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
36196a45684fSmrg   CC="$am_aux_dir/compile $CC"
36206a45684fSmrgfi
36216a45684fSmrgac_ext=c
36226a45684fSmrgac_cpp='$CPP $CPPFLAGS'
36236a45684fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36246a45684fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36256a45684fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
36266a45684fSmrg
36276a45684fSmrg
36288fff3f40Smrgdepcc="$CC"   am_compiler_list=
36298fff3f40Smrg
36308fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
36318fff3f40Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
363294a251fdSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
36338fff3f40Smrg  $as_echo_n "(cached) " >&6
36348fff3f40Smrgelse
36358fff3f40Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
36368fff3f40Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
36378fff3f40Smrg  # making bogus files that we don't know about and never remove.  For
36388fff3f40Smrg  # instance it was reported that on HP-UX the gcc test will end up
36396a45684fSmrg  # making a dummy file named 'D' -- because '-MD' means "put the output
36406a45684fSmrg  # in D".
364194a251fdSmrg  rm -rf conftest.dir
36428fff3f40Smrg  mkdir conftest.dir
36438fff3f40Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
36448fff3f40Smrg  # using a relative directory.
36458fff3f40Smrg  cp "$am_depcomp" conftest.dir
36468fff3f40Smrg  cd conftest.dir
36478fff3f40Smrg  # We will build objects and dependencies in a subdirectory because
36488fff3f40Smrg  # it helps to detect inapplicable dependency modes.  For instance
36498fff3f40Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
36508fff3f40Smrg  # side effect of compilation, but ICC will put the dependencies in
36518fff3f40Smrg  # the current directory while Tru64 will put them in the object
36528fff3f40Smrg  # directory.
36538fff3f40Smrg  mkdir sub
36548fff3f40Smrg
36558fff3f40Smrg  am_cv_CC_dependencies_compiler_type=none
36568fff3f40Smrg  if test "$am_compiler_list" = ""; then
36578fff3f40Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
36588fff3f40Smrg  fi
36598fff3f40Smrg  am__universal=false
36608fff3f40Smrg  case " $depcc " in #(
36618fff3f40Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
36628fff3f40Smrg     esac
36638fff3f40Smrg
36648fff3f40Smrg  for depmode in $am_compiler_list; do
36658fff3f40Smrg    # Setup a source with many dependencies, because some compilers
36668fff3f40Smrg    # like to wrap large dependency lists on column 80 (with \), and
36678fff3f40Smrg    # we should not choose a depcomp mode which is confused by this.
36688fff3f40Smrg    #
36698fff3f40Smrg    # We need to recreate these files for each test, as the compiler may
36708fff3f40Smrg    # overwrite some of them when testing with obscure command lines.
36718fff3f40Smrg    # This happens at least with the AIX C compiler.
36728fff3f40Smrg    : > sub/conftest.c
36738fff3f40Smrg    for i in 1 2 3 4 5 6; do
36748fff3f40Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
36756a45684fSmrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
36766a45684fSmrg      # Solaris 10 /bin/sh.
36776a45684fSmrg      echo '/* dummy */' > sub/conftst$i.h
36788fff3f40Smrg    done
36798fff3f40Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
36808fff3f40Smrg
36816a45684fSmrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
36828fff3f40Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
36836a45684fSmrg    # handle '-M -o', and we need to detect this.  Also, some Intel
36846a45684fSmrg    # versions had trouble with output in subdirs.
36858fff3f40Smrg    am__obj=sub/conftest.${OBJEXT-o}
36868fff3f40Smrg    am__minus_obj="-o $am__obj"
36878fff3f40Smrg    case $depmode in
36888fff3f40Smrg    gcc)
36898fff3f40Smrg      # This depmode causes a compiler race in universal mode.
36908fff3f40Smrg      test "$am__universal" = false || continue
36918fff3f40Smrg      ;;
36928fff3f40Smrg    nosideeffect)
36936a45684fSmrg      # After this tag, mechanisms are not by side-effect, so they'll
36946a45684fSmrg      # only be used when explicitly requested.
36958fff3f40Smrg      if test "x$enable_dependency_tracking" = xyes; then
36968fff3f40Smrg	continue
36978fff3f40Smrg      else
36988fff3f40Smrg	break
36998fff3f40Smrg      fi
37008fff3f40Smrg      ;;
370194a251fdSmrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
37026a45684fSmrg      # This compiler won't grok '-c -o', but also, the minuso test has
37038fff3f40Smrg      # not run yet.  These depmodes are late enough in the game, and
37048fff3f40Smrg      # so weak that their functioning should not be impacted.
37058fff3f40Smrg      am__obj=conftest.${OBJEXT-o}
37068fff3f40Smrg      am__minus_obj=
37078fff3f40Smrg      ;;
37088fff3f40Smrg    none) break ;;
37098fff3f40Smrg    esac
37108fff3f40Smrg    if depmode=$depmode \
37118fff3f40Smrg       source=sub/conftest.c object=$am__obj \
37128fff3f40Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
37138fff3f40Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
37148fff3f40Smrg         >/dev/null 2>conftest.err &&
37158fff3f40Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
37168fff3f40Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
37178fff3f40Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
37188fff3f40Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
37198fff3f40Smrg      # icc doesn't choke on unknown options, it will just issue warnings
37208fff3f40Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
37218fff3f40Smrg      # that says an option was ignored or not supported.
37228fff3f40Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
37238fff3f40Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
37248fff3f40Smrg      # The diagnosis changed in icc 8.0:
37258fff3f40Smrg      #   icc: Command line remark: option '-MP' not supported
37268fff3f40Smrg      if (grep 'ignoring option' conftest.err ||
37278fff3f40Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
37288fff3f40Smrg        am_cv_CC_dependencies_compiler_type=$depmode
37298fff3f40Smrg        break
37308fff3f40Smrg      fi
37318fff3f40Smrg    fi
37328fff3f40Smrg  done
37338fff3f40Smrg
37348fff3f40Smrg  cd ..
37358fff3f40Smrg  rm -rf conftest.dir
37368fff3f40Smrgelse
37378fff3f40Smrg  am_cv_CC_dependencies_compiler_type=none
37388fff3f40Smrgfi
37398fff3f40Smrg
37408fff3f40Smrgfi
37418fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
37428fff3f40Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
37438fff3f40SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
37448fff3f40Smrg
37458fff3f40Smrg if
37468fff3f40Smrg  test "x$enable_dependency_tracking" != xno \
37478fff3f40Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
37488fff3f40Smrg  am__fastdepCC_TRUE=
37498fff3f40Smrg  am__fastdepCC_FALSE='#'
37508fff3f40Smrgelse
37518fff3f40Smrg  am__fastdepCC_TRUE='#'
37528fff3f40Smrg  am__fastdepCC_FALSE=
37538fff3f40Smrgfi
37548fff3f40Smrg
37558fff3f40Smrg
375694a251fdSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
375794a251fdSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
375894a251fdSmrgif ${ac_cv_prog_cc_c99+:} false; then :
375994a251fdSmrg  $as_echo_n "(cached) " >&6
376094a251fdSmrgelse
376194a251fdSmrg  ac_cv_prog_cc_c99=no
376294a251fdSmrgac_save_CC=$CC
376394a251fdSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
376494a251fdSmrg/* end confdefs.h.  */
376594a251fdSmrg#include <stdarg.h>
376694a251fdSmrg#include <stdbool.h>
376794a251fdSmrg#include <stdlib.h>
376894a251fdSmrg#include <wchar.h>
376994a251fdSmrg#include <stdio.h>
377094a251fdSmrg
377194a251fdSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
377294a251fdSmrg#define debug(...) fprintf (stderr, __VA_ARGS__)
377394a251fdSmrg#define showlist(...) puts (#__VA_ARGS__)
377494a251fdSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
377594a251fdSmrgstatic void
377694a251fdSmrgtest_varargs_macros (void)
377794a251fdSmrg{
377894a251fdSmrg  int x = 1234;
377994a251fdSmrg  int y = 5678;
378094a251fdSmrg  debug ("Flag");
378194a251fdSmrg  debug ("X = %d\n", x);
378294a251fdSmrg  showlist (The first, second, and third items.);
378394a251fdSmrg  report (x>y, "x is %d but y is %d", x, y);
378494a251fdSmrg}
378594a251fdSmrg
378694a251fdSmrg// Check long long types.
378794a251fdSmrg#define BIG64 18446744073709551615ull
378894a251fdSmrg#define BIG32 4294967295ul
378994a251fdSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
379094a251fdSmrg#if !BIG_OK
379194a251fdSmrg  your preprocessor is broken;
379294a251fdSmrg#endif
379394a251fdSmrg#if BIG_OK
379494a251fdSmrg#else
379594a251fdSmrg  your preprocessor is broken;
379694a251fdSmrg#endif
379794a251fdSmrgstatic long long int bignum = -9223372036854775807LL;
379894a251fdSmrgstatic unsigned long long int ubignum = BIG64;
379994a251fdSmrg
380094a251fdSmrgstruct incomplete_array
380194a251fdSmrg{
380294a251fdSmrg  int datasize;
380394a251fdSmrg  double data[];
380494a251fdSmrg};
380594a251fdSmrg
380694a251fdSmrgstruct named_init {
380794a251fdSmrg  int number;
380894a251fdSmrg  const wchar_t *name;
380994a251fdSmrg  double average;
381094a251fdSmrg};
381194a251fdSmrg
381294a251fdSmrgtypedef const char *ccp;
381394a251fdSmrg
381494a251fdSmrgstatic inline int
381594a251fdSmrgtest_restrict (ccp restrict text)
381694a251fdSmrg{
381794a251fdSmrg  // See if C++-style comments work.
381894a251fdSmrg  // Iterate through items via the restricted pointer.
381994a251fdSmrg  // Also check for declarations in for loops.
382094a251fdSmrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
382194a251fdSmrg    continue;
382294a251fdSmrg  return 0;
382394a251fdSmrg}
382494a251fdSmrg
382594a251fdSmrg// Check varargs and va_copy.
382694a251fdSmrgstatic void
382794a251fdSmrgtest_varargs (const char *format, ...)
382894a251fdSmrg{
382994a251fdSmrg  va_list args;
383094a251fdSmrg  va_start (args, format);
383194a251fdSmrg  va_list args_copy;
383294a251fdSmrg  va_copy (args_copy, args);
383394a251fdSmrg
383494a251fdSmrg  const char *str;
383594a251fdSmrg  int number;
383694a251fdSmrg  float fnumber;
383794a251fdSmrg
383894a251fdSmrg  while (*format)
383994a251fdSmrg    {
384094a251fdSmrg      switch (*format++)
384194a251fdSmrg	{
384294a251fdSmrg	case 's': // string
384394a251fdSmrg	  str = va_arg (args_copy, const char *);
384494a251fdSmrg	  break;
384594a251fdSmrg	case 'd': // int
384694a251fdSmrg	  number = va_arg (args_copy, int);
384794a251fdSmrg	  break;
384894a251fdSmrg	case 'f': // float
384994a251fdSmrg	  fnumber = va_arg (args_copy, double);
385094a251fdSmrg	  break;
385194a251fdSmrg	default:
385294a251fdSmrg	  break;
385394a251fdSmrg	}
385494a251fdSmrg    }
385594a251fdSmrg  va_end (args_copy);
385694a251fdSmrg  va_end (args);
385794a251fdSmrg}
385894a251fdSmrg
385994a251fdSmrgint
386094a251fdSmrgmain ()
386194a251fdSmrg{
386294a251fdSmrg
386394a251fdSmrg  // Check bool.
386494a251fdSmrg  _Bool success = false;
386594a251fdSmrg
386694a251fdSmrg  // Check restrict.
386794a251fdSmrg  if (test_restrict ("String literal") == 0)
386894a251fdSmrg    success = true;
386994a251fdSmrg  char *restrict newvar = "Another string";
387094a251fdSmrg
387194a251fdSmrg  // Check varargs.
387294a251fdSmrg  test_varargs ("s, d' f .", "string", 65, 34.234);
387394a251fdSmrg  test_varargs_macros ();
387494a251fdSmrg
387594a251fdSmrg  // Check flexible array members.
387694a251fdSmrg  struct incomplete_array *ia =
387794a251fdSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
387894a251fdSmrg  ia->datasize = 10;
387994a251fdSmrg  for (int i = 0; i < ia->datasize; ++i)
388094a251fdSmrg    ia->data[i] = i * 1.234;
388194a251fdSmrg
388294a251fdSmrg  // Check named initializers.
388394a251fdSmrg  struct named_init ni = {
388494a251fdSmrg    .number = 34,
388594a251fdSmrg    .name = L"Test wide string",
388694a251fdSmrg    .average = 543.34343,
388794a251fdSmrg  };
388894a251fdSmrg
388994a251fdSmrg  ni.number = 58;
389094a251fdSmrg
389194a251fdSmrg  int dynamic_array[ni.number];
389294a251fdSmrg  dynamic_array[ni.number - 1] = 543;
389394a251fdSmrg
389494a251fdSmrg  // work around unused variable warnings
389594a251fdSmrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
389694a251fdSmrg	  || dynamic_array[ni.number - 1] != 543);
389794a251fdSmrg
389894a251fdSmrg  ;
389994a251fdSmrg  return 0;
390094a251fdSmrg}
390194a251fdSmrg_ACEOF
39026a45684fSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
390394a251fdSmrgdo
390494a251fdSmrg  CC="$ac_save_CC $ac_arg"
390594a251fdSmrg  if ac_fn_c_try_compile "$LINENO"; then :
390694a251fdSmrg  ac_cv_prog_cc_c99=$ac_arg
390794a251fdSmrgfi
390894a251fdSmrgrm -f core conftest.err conftest.$ac_objext
390994a251fdSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
391094a251fdSmrgdone
391194a251fdSmrgrm -f conftest.$ac_ext
391294a251fdSmrgCC=$ac_save_CC
391394a251fdSmrg
391494a251fdSmrgfi
391594a251fdSmrg# AC_CACHE_VAL
391694a251fdSmrgcase "x$ac_cv_prog_cc_c99" in
391794a251fdSmrg  x)
391894a251fdSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
391994a251fdSmrg$as_echo "none needed" >&6; } ;;
392094a251fdSmrg  xno)
392194a251fdSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
392294a251fdSmrg$as_echo "unsupported" >&6; } ;;
392394a251fdSmrg  *)
392494a251fdSmrg    CC="$CC $ac_cv_prog_cc_c99"
392594a251fdSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
392694a251fdSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
392794a251fdSmrgesac
392894a251fdSmrgif test "x$ac_cv_prog_cc_c99" != xno; then :
392994a251fdSmrg
393094a251fdSmrgfi
393194a251fdSmrg
393294a251fdSmrg
39338fff3f40Smrg
39348fff3f40Smrgac_ext=c
39358fff3f40Smrgac_cpp='$CPP $CPPFLAGS'
39368fff3f40Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39378fff3f40Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39388fff3f40Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
39398fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
39408fff3f40Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
39418fff3f40Smrg# On Suns, sometimes $CPP names a directory.
39428fff3f40Smrgif test -n "$CPP" && test -d "$CPP"; then
39438fff3f40Smrg  CPP=
39448fff3f40Smrgfi
39458fff3f40Smrgif test -z "$CPP"; then
394694a251fdSmrg  if ${ac_cv_prog_CPP+:} false; then :
39478fff3f40Smrg  $as_echo_n "(cached) " >&6
39488fff3f40Smrgelse
39498fff3f40Smrg      # Double quotes because CPP needs to be expanded
39508fff3f40Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
39518fff3f40Smrg    do
39528fff3f40Smrg      ac_preproc_ok=false
39538fff3f40Smrgfor ac_c_preproc_warn_flag in '' yes
39548fff3f40Smrgdo
39558fff3f40Smrg  # Use a header file that comes with gcc, so configuring glibc
39568fff3f40Smrg  # with a fresh cross-compiler works.
39578fff3f40Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39588fff3f40Smrg  # <limits.h> exists even on freestanding compilers.
39598fff3f40Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
39608fff3f40Smrg  # not just through cpp. "Syntax error" is here to catch this case.
39618fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39628fff3f40Smrg/* end confdefs.h.  */
39638fff3f40Smrg#ifdef __STDC__
39648fff3f40Smrg# include <limits.h>
39658fff3f40Smrg#else
39668fff3f40Smrg# include <assert.h>
39678fff3f40Smrg#endif
39688fff3f40Smrg		     Syntax error
39698fff3f40Smrg_ACEOF
39708fff3f40Smrgif ac_fn_c_try_cpp "$LINENO"; then :
39718fff3f40Smrg
39728fff3f40Smrgelse
39738fff3f40Smrg  # Broken: fails on valid input.
39748fff3f40Smrgcontinue
39758fff3f40Smrgfi
397694a251fdSmrgrm -f conftest.err conftest.i conftest.$ac_ext
39778fff3f40Smrg
39788fff3f40Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
39798fff3f40Smrg  # can be detected and how.
39808fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39818fff3f40Smrg/* end confdefs.h.  */
39828fff3f40Smrg#include <ac_nonexistent.h>
39838fff3f40Smrg_ACEOF
39848fff3f40Smrgif ac_fn_c_try_cpp "$LINENO"; then :
39858fff3f40Smrg  # Broken: success on invalid input.
39868fff3f40Smrgcontinue
39878fff3f40Smrgelse
39888fff3f40Smrg  # Passes both tests.
39898fff3f40Smrgac_preproc_ok=:
39908fff3f40Smrgbreak
39918fff3f40Smrgfi
399294a251fdSmrgrm -f conftest.err conftest.i conftest.$ac_ext
39938fff3f40Smrg
39948fff3f40Smrgdone
39958fff3f40Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
399694a251fdSmrgrm -f conftest.i conftest.err conftest.$ac_ext
39978fff3f40Smrgif $ac_preproc_ok; then :
39988fff3f40Smrg  break
39998fff3f40Smrgfi
40008fff3f40Smrg
40018fff3f40Smrg    done
40028fff3f40Smrg    ac_cv_prog_CPP=$CPP
40038fff3f40Smrg
40048fff3f40Smrgfi
40058fff3f40Smrg  CPP=$ac_cv_prog_CPP
40068fff3f40Smrgelse
40078fff3f40Smrg  ac_cv_prog_CPP=$CPP
40088fff3f40Smrgfi
40098fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
40108fff3f40Smrg$as_echo "$CPP" >&6; }
40118fff3f40Smrgac_preproc_ok=false
40128fff3f40Smrgfor ac_c_preproc_warn_flag in '' yes
40138fff3f40Smrgdo
40148fff3f40Smrg  # Use a header file that comes with gcc, so configuring glibc
40158fff3f40Smrg  # with a fresh cross-compiler works.
40168fff3f40Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40178fff3f40Smrg  # <limits.h> exists even on freestanding compilers.
40188fff3f40Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
40198fff3f40Smrg  # not just through cpp. "Syntax error" is here to catch this case.
40208fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40218fff3f40Smrg/* end confdefs.h.  */
40228fff3f40Smrg#ifdef __STDC__
40238fff3f40Smrg# include <limits.h>
40248fff3f40Smrg#else
40258fff3f40Smrg# include <assert.h>
40268fff3f40Smrg#endif
40278fff3f40Smrg		     Syntax error
40288fff3f40Smrg_ACEOF
40298fff3f40Smrgif ac_fn_c_try_cpp "$LINENO"; then :
40308fff3f40Smrg
40318fff3f40Smrgelse
40328fff3f40Smrg  # Broken: fails on valid input.
40338fff3f40Smrgcontinue
40348fff3f40Smrgfi
403594a251fdSmrgrm -f conftest.err conftest.i conftest.$ac_ext
40368fff3f40Smrg
40378fff3f40Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
40388fff3f40Smrg  # can be detected and how.
40398fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40408fff3f40Smrg/* end confdefs.h.  */
40418fff3f40Smrg#include <ac_nonexistent.h>
40428fff3f40Smrg_ACEOF
40438fff3f40Smrgif ac_fn_c_try_cpp "$LINENO"; then :
40448fff3f40Smrg  # Broken: success on invalid input.
40458fff3f40Smrgcontinue
40468fff3f40Smrgelse
40478fff3f40Smrg  # Passes both tests.
40488fff3f40Smrgac_preproc_ok=:
40498fff3f40Smrgbreak
40508fff3f40Smrgfi
405194a251fdSmrgrm -f conftest.err conftest.i conftest.$ac_ext
40528fff3f40Smrg
40538fff3f40Smrgdone
40548fff3f40Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
405594a251fdSmrgrm -f conftest.i conftest.err conftest.$ac_ext
40568fff3f40Smrgif $ac_preproc_ok; then :
40578fff3f40Smrg
40588fff3f40Smrgelse
40598fff3f40Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40608fff3f40Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
406194a251fdSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
406294a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; }
40638fff3f40Smrgfi
40648fff3f40Smrg
40658fff3f40Smrgac_ext=c
40668fff3f40Smrgac_cpp='$CPP $CPPFLAGS'
40678fff3f40Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40688fff3f40Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40698fff3f40Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
40708fff3f40Smrg
40718fff3f40Smrg
40728fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
40738fff3f40Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
407494a251fdSmrgif ${ac_cv_path_GREP+:} false; then :
40758fff3f40Smrg  $as_echo_n "(cached) " >&6
40768fff3f40Smrgelse
40778fff3f40Smrg  if test -z "$GREP"; then
40788fff3f40Smrg  ac_path_GREP_found=false
40798fff3f40Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
40808fff3f40Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40818fff3f40Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
40828fff3f40Smrgdo
40838fff3f40Smrg  IFS=$as_save_IFS
40848fff3f40Smrg  test -z "$as_dir" && as_dir=.
40858fff3f40Smrg    for ac_prog in grep ggrep; do
40868fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
40878fff3f40Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
40886a45684fSmrg      as_fn_executable_p "$ac_path_GREP" || continue
40898fff3f40Smrg# Check for GNU ac_path_GREP and select it if it is found.
40908fff3f40Smrg  # Check for GNU $ac_path_GREP
40918fff3f40Smrgcase `"$ac_path_GREP" --version 2>&1` in
40928fff3f40Smrg*GNU*)
40938fff3f40Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
40948fff3f40Smrg*)
40958fff3f40Smrg  ac_count=0
40968fff3f40Smrg  $as_echo_n 0123456789 >"conftest.in"
40978fff3f40Smrg  while :
40988fff3f40Smrg  do
40998fff3f40Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
41008fff3f40Smrg    mv "conftest.tmp" "conftest.in"
41018fff3f40Smrg    cp "conftest.in" "conftest.nl"
41028fff3f40Smrg    $as_echo 'GREP' >> "conftest.nl"
41038fff3f40Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
41048fff3f40Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
41058fff3f40Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
41068fff3f40Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
41078fff3f40Smrg      # Best one so far, save it but keep looking for a better one
41088fff3f40Smrg      ac_cv_path_GREP="$ac_path_GREP"
41098fff3f40Smrg      ac_path_GREP_max=$ac_count
41108fff3f40Smrg    fi
41118fff3f40Smrg    # 10*(2^10) chars as input seems more than enough
41128fff3f40Smrg    test $ac_count -gt 10 && break
41138fff3f40Smrg  done
41148fff3f40Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
41158fff3f40Smrgesac
41168fff3f40Smrg
41178fff3f40Smrg      $ac_path_GREP_found && break 3
41188fff3f40Smrg    done
41198fff3f40Smrg  done
41208fff3f40Smrg  done
41218fff3f40SmrgIFS=$as_save_IFS
41228fff3f40Smrg  if test -z "$ac_cv_path_GREP"; then
412394a251fdSmrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
41248fff3f40Smrg  fi
41258fff3f40Smrgelse
41268fff3f40Smrg  ac_cv_path_GREP=$GREP
41278fff3f40Smrgfi
41288fff3f40Smrg
41298fff3f40Smrgfi
41308fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
41318fff3f40Smrg$as_echo "$ac_cv_path_GREP" >&6; }
41328fff3f40Smrg GREP="$ac_cv_path_GREP"
41338fff3f40Smrg
41348fff3f40Smrg
41358fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
41368fff3f40Smrg$as_echo_n "checking for egrep... " >&6; }
413794a251fdSmrgif ${ac_cv_path_EGREP+:} false; then :
41388fff3f40Smrg  $as_echo_n "(cached) " >&6
41398fff3f40Smrgelse
41408fff3f40Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
41418fff3f40Smrg   then ac_cv_path_EGREP="$GREP -E"
41428fff3f40Smrg   else
41438fff3f40Smrg     if test -z "$EGREP"; then
41448fff3f40Smrg  ac_path_EGREP_found=false
41458fff3f40Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
41468fff3f40Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41478fff3f40Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
41488fff3f40Smrgdo
41498fff3f40Smrg  IFS=$as_save_IFS
41508fff3f40Smrg  test -z "$as_dir" && as_dir=.
41518fff3f40Smrg    for ac_prog in egrep; do
41528fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
41538fff3f40Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
41546a45684fSmrg      as_fn_executable_p "$ac_path_EGREP" || continue
41558fff3f40Smrg# Check for GNU ac_path_EGREP and select it if it is found.
41568fff3f40Smrg  # Check for GNU $ac_path_EGREP
41578fff3f40Smrgcase `"$ac_path_EGREP" --version 2>&1` in
41588fff3f40Smrg*GNU*)
41598fff3f40Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
41608fff3f40Smrg*)
41618fff3f40Smrg  ac_count=0
41628fff3f40Smrg  $as_echo_n 0123456789 >"conftest.in"
41638fff3f40Smrg  while :
41648fff3f40Smrg  do
41658fff3f40Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
41668fff3f40Smrg    mv "conftest.tmp" "conftest.in"
41678fff3f40Smrg    cp "conftest.in" "conftest.nl"
41688fff3f40Smrg    $as_echo 'EGREP' >> "conftest.nl"
41698fff3f40Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
41708fff3f40Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
41718fff3f40Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
41728fff3f40Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
41738fff3f40Smrg      # Best one so far, save it but keep looking for a better one
41748fff3f40Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
41758fff3f40Smrg      ac_path_EGREP_max=$ac_count
41768fff3f40Smrg    fi
41778fff3f40Smrg    # 10*(2^10) chars as input seems more than enough
41788fff3f40Smrg    test $ac_count -gt 10 && break
41798fff3f40Smrg  done
41808fff3f40Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
41818fff3f40Smrgesac
41828fff3f40Smrg
41838fff3f40Smrg      $ac_path_EGREP_found && break 3
41848fff3f40Smrg    done
41858fff3f40Smrg  done
41868fff3f40Smrg  done
41878fff3f40SmrgIFS=$as_save_IFS
41888fff3f40Smrg  if test -z "$ac_cv_path_EGREP"; then
418994a251fdSmrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
41908fff3f40Smrg  fi
41918fff3f40Smrgelse
41928fff3f40Smrg  ac_cv_path_EGREP=$EGREP
41938fff3f40Smrgfi
41948fff3f40Smrg
41958fff3f40Smrg   fi
41968fff3f40Smrgfi
41978fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
41988fff3f40Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
41998fff3f40Smrg EGREP="$ac_cv_path_EGREP"
42008fff3f40Smrg
42018fff3f40Smrg
42028fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
42038fff3f40Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
420494a251fdSmrgif ${ac_cv_header_stdc+:} false; then :
42058fff3f40Smrg  $as_echo_n "(cached) " >&6
42068fff3f40Smrgelse
42078fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42088fff3f40Smrg/* end confdefs.h.  */
42098fff3f40Smrg#include <stdlib.h>
42108fff3f40Smrg#include <stdarg.h>
42118fff3f40Smrg#include <string.h>
42128fff3f40Smrg#include <float.h>
42138fff3f40Smrg
42148fff3f40Smrgint
42158fff3f40Smrgmain ()
42168fff3f40Smrg{
42178fff3f40Smrg
42188fff3f40Smrg  ;
42198fff3f40Smrg  return 0;
42208fff3f40Smrg}
42218fff3f40Smrg_ACEOF
42228fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
42238fff3f40Smrg  ac_cv_header_stdc=yes
42248fff3f40Smrgelse
42258fff3f40Smrg  ac_cv_header_stdc=no
42268fff3f40Smrgfi
42278fff3f40Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42288fff3f40Smrg
42298fff3f40Smrgif test $ac_cv_header_stdc = yes; then
42308fff3f40Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
42318fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42328fff3f40Smrg/* end confdefs.h.  */
42338fff3f40Smrg#include <string.h>
42348fff3f40Smrg
42358fff3f40Smrg_ACEOF
42368fff3f40Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42378fff3f40Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
42388fff3f40Smrg
42398fff3f40Smrgelse
42408fff3f40Smrg  ac_cv_header_stdc=no
42418fff3f40Smrgfi
42428fff3f40Smrgrm -f conftest*
42438fff3f40Smrg
42448fff3f40Smrgfi
42458fff3f40Smrg
42468fff3f40Smrgif test $ac_cv_header_stdc = yes; then
42478fff3f40Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
42488fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42498fff3f40Smrg/* end confdefs.h.  */
42508fff3f40Smrg#include <stdlib.h>
42518fff3f40Smrg
42528fff3f40Smrg_ACEOF
42538fff3f40Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42548fff3f40Smrg  $EGREP "free" >/dev/null 2>&1; then :
42558fff3f40Smrg
42568fff3f40Smrgelse
42578fff3f40Smrg  ac_cv_header_stdc=no
42588fff3f40Smrgfi
42598fff3f40Smrgrm -f conftest*
42608fff3f40Smrg
42618fff3f40Smrgfi
42628fff3f40Smrg
42638fff3f40Smrgif test $ac_cv_header_stdc = yes; then
42648fff3f40Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
42658fff3f40Smrg  if test "$cross_compiling" = yes; then :
42668fff3f40Smrg  :
42678fff3f40Smrgelse
42688fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42698fff3f40Smrg/* end confdefs.h.  */
42708fff3f40Smrg#include <ctype.h>
42718fff3f40Smrg#include <stdlib.h>
42728fff3f40Smrg#if ((' ' & 0x0FF) == 0x020)
42738fff3f40Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
42748fff3f40Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
42758fff3f40Smrg#else
42768fff3f40Smrg# define ISLOWER(c) \
42778fff3f40Smrg		   (('a' <= (c) && (c) <= 'i') \
42788fff3f40Smrg		     || ('j' <= (c) && (c) <= 'r') \
42798fff3f40Smrg		     || ('s' <= (c) && (c) <= 'z'))
42808fff3f40Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
42818fff3f40Smrg#endif
42828fff3f40Smrg
42838fff3f40Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
42848fff3f40Smrgint
42858fff3f40Smrgmain ()
42868fff3f40Smrg{
42878fff3f40Smrg  int i;
42888fff3f40Smrg  for (i = 0; i < 256; i++)
42898fff3f40Smrg    if (XOR (islower (i), ISLOWER (i))
42908fff3f40Smrg	|| toupper (i) != TOUPPER (i))
42918fff3f40Smrg      return 2;
42928fff3f40Smrg  return 0;
42938fff3f40Smrg}
42948fff3f40Smrg_ACEOF
42958fff3f40Smrgif ac_fn_c_try_run "$LINENO"; then :
42968fff3f40Smrg
42978fff3f40Smrgelse
42988fff3f40Smrg  ac_cv_header_stdc=no
42998fff3f40Smrgfi
43008fff3f40Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43018fff3f40Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
43028fff3f40Smrgfi
43038fff3f40Smrg
43048fff3f40Smrgfi
43058fff3f40Smrgfi
43068fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
43078fff3f40Smrg$as_echo "$ac_cv_header_stdc" >&6; }
43088fff3f40Smrgif test $ac_cv_header_stdc = yes; then
43098fff3f40Smrg
43108fff3f40Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
43118fff3f40Smrg
43128fff3f40Smrgfi
43138fff3f40Smrg
43148fff3f40Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
43158fff3f40Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
43168fff3f40Smrg		  inttypes.h stdint.h unistd.h
43178fff3f40Smrgdo :
43188fff3f40Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43198fff3f40Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
43208fff3f40Smrg"
432194a251fdSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
43228fff3f40Smrg  cat >>confdefs.h <<_ACEOF
43238fff3f40Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43248fff3f40Smrg_ACEOF
43258fff3f40Smrg
43268fff3f40Smrgfi
43278fff3f40Smrg
43288fff3f40Smrgdone
43298fff3f40Smrg
43308fff3f40Smrg
43318fff3f40Smrg
43328fff3f40Smrg
43338fff3f40Smrg
43348fff3f40Smrg
433594a251fdSmrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
433694a251fdSmrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
433794a251fdSmrg  CLANGCC="yes"
433894a251fdSmrgelse
433994a251fdSmrg  CLANGCC="no"
43408fff3f40Smrgfi
43418fff3f40Smrg
434294a251fdSmrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
434394a251fdSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
434494a251fdSmrg  INTELCC="yes"
434594a251fdSmrgelse
434694a251fdSmrg  INTELCC="no"
43478fff3f40Smrgfi
43488fff3f40Smrg
434994a251fdSmrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
435094a251fdSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
435194a251fdSmrg  SUNCC="yes"
435294a251fdSmrgelse
435394a251fdSmrg  SUNCC="no"
43548fff3f40Smrgfi
43558fff3f40Smrg
43568fff3f40Smrg
43578fff3f40Smrg
43588fff3f40Smrg
4359c05e7a3eSmrg
4360c05e7a3eSmrg
4361c05e7a3eSmrg
4362c05e7a3eSmrg
4363c05e7a3eSmrg
43648fff3f40Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
43658fff3f40Smrg	if test -n "$ac_tool_prefix"; then
43668fff3f40Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43678fff3f40Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43688fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43698fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
437094a251fdSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
43718fff3f40Smrg  $as_echo_n "(cached) " >&6
43728fff3f40Smrgelse
43738fff3f40Smrg  case $PKG_CONFIG in
43748fff3f40Smrg  [\\/]* | ?:[\\/]*)
43758fff3f40Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
43768fff3f40Smrg  ;;
43778fff3f40Smrg  *)
43788fff3f40Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43798fff3f40Smrgfor as_dir in $PATH
43808fff3f40Smrgdo
43818fff3f40Smrg  IFS=$as_save_IFS
43828fff3f40Smrg  test -z "$as_dir" && as_dir=.
43838fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
43846a45684fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43858fff3f40Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43868fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43878fff3f40Smrg    break 2
43888fff3f40Smrg  fi
43898fff3f40Smrgdone
43908fff3f40Smrg  done
43918fff3f40SmrgIFS=$as_save_IFS
43928fff3f40Smrg
43938fff3f40Smrg  ;;
43948fff3f40Smrgesac
43958fff3f40Smrgfi
43968fff3f40SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
43978fff3f40Smrgif test -n "$PKG_CONFIG"; then
43988fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
43998fff3f40Smrg$as_echo "$PKG_CONFIG" >&6; }
44008fff3f40Smrgelse
44018fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44028fff3f40Smrg$as_echo "no" >&6; }
44038fff3f40Smrgfi
44048fff3f40Smrg
44058fff3f40Smrg
44068fff3f40Smrgfi
44078fff3f40Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
44088fff3f40Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
44098fff3f40Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
44108fff3f40Smrgset dummy pkg-config; ac_word=$2
44118fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44128fff3f40Smrg$as_echo_n "checking for $ac_word... " >&6; }
441394a251fdSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
44148fff3f40Smrg  $as_echo_n "(cached) " >&6
44158fff3f40Smrgelse
44168fff3f40Smrg  case $ac_pt_PKG_CONFIG in
44178fff3f40Smrg  [\\/]* | ?:[\\/]*)
44188fff3f40Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
44198fff3f40Smrg  ;;
44208fff3f40Smrg  *)
44218fff3f40Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44228fff3f40Smrgfor as_dir in $PATH
44238fff3f40Smrgdo
44248fff3f40Smrg  IFS=$as_save_IFS
44258fff3f40Smrg  test -z "$as_dir" && as_dir=.
44268fff3f40Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
44276a45684fSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44288fff3f40Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44298fff3f40Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44308fff3f40Smrg    break 2
44318fff3f40Smrg  fi
44328fff3f40Smrgdone
44338fff3f40Smrg  done
44348fff3f40SmrgIFS=$as_save_IFS
44358fff3f40Smrg
44368fff3f40Smrg  ;;
44378fff3f40Smrgesac
44388fff3f40Smrgfi
44398fff3f40Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
44408fff3f40Smrgif test -n "$ac_pt_PKG_CONFIG"; then
44418fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
44428fff3f40Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
44438fff3f40Smrgelse
44448fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44458fff3f40Smrg$as_echo "no" >&6; }
44468fff3f40Smrgfi
44478fff3f40Smrg
44488fff3f40Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
44498fff3f40Smrg    PKG_CONFIG=""
44508fff3f40Smrg  else
44518fff3f40Smrg    case $cross_compiling:$ac_tool_warned in
44528fff3f40Smrgyes:)
44538fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
44548fff3f40Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44558fff3f40Smrgac_tool_warned=yes ;;
44568fff3f40Smrgesac
44578fff3f40Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
44588fff3f40Smrg  fi
44598fff3f40Smrgelse
44608fff3f40Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
44618fff3f40Smrgfi
44628fff3f40Smrg
44638fff3f40Smrgfi
44648fff3f40Smrgif test -n "$PKG_CONFIG"; then
44658fff3f40Smrg	_pkg_min_version=0.9.0
44668fff3f40Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
44678fff3f40Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
44688fff3f40Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44698fff3f40Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44708fff3f40Smrg$as_echo "yes" >&6; }
44718fff3f40Smrg	else
44728fff3f40Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44738fff3f40Smrg$as_echo "no" >&6; }
44748fff3f40Smrg		PKG_CONFIG=""
44758fff3f40Smrg	fi
44768fff3f40Smrgfi
44778fff3f40Smrg# Make sure we can run config.sub.
44788fff3f40Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
447994a251fdSmrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
44808fff3f40Smrg
44818fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
44828fff3f40Smrg$as_echo_n "checking build system type... " >&6; }
448394a251fdSmrgif ${ac_cv_build+:} false; then :
44848fff3f40Smrg  $as_echo_n "(cached) " >&6
44858fff3f40Smrgelse
44868fff3f40Smrg  ac_build_alias=$build_alias
44878fff3f40Smrgtest "x$ac_build_alias" = x &&
44888fff3f40Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
44898fff3f40Smrgtest "x$ac_build_alias" = x &&
449094a251fdSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
44918fff3f40Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
449294a251fdSmrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
44938fff3f40Smrg
44948fff3f40Smrgfi
44958fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
44968fff3f40Smrg$as_echo "$ac_cv_build" >&6; }
44978fff3f40Smrgcase $ac_cv_build in
44988fff3f40Smrg*-*-*) ;;
449994a251fdSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
45008fff3f40Smrgesac
45018fff3f40Smrgbuild=$ac_cv_build
45028fff3f40Smrgac_save_IFS=$IFS; IFS='-'
45038fff3f40Smrgset x $ac_cv_build
45048fff3f40Smrgshift
45058fff3f40Smrgbuild_cpu=$1
45068fff3f40Smrgbuild_vendor=$2
45078fff3f40Smrgshift; shift
45088fff3f40Smrg# Remember, the first character of IFS is used to create $*,
45098fff3f40Smrg# except with old shells:
45108fff3f40Smrgbuild_os=$*
45118fff3f40SmrgIFS=$ac_save_IFS
45128fff3f40Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
45138fff3f40Smrg
45148fff3f40Smrg
45158fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
45168fff3f40Smrg$as_echo_n "checking host system type... " >&6; }
451794a251fdSmrgif ${ac_cv_host+:} false; then :
45188fff3f40Smrg  $as_echo_n "(cached) " >&6
45198fff3f40Smrgelse
45208fff3f40Smrg  if test "x$host_alias" = x; then
45218fff3f40Smrg  ac_cv_host=$ac_cv_build
45228fff3f40Smrgelse
45238fff3f40Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
452494a251fdSmrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
45258fff3f40Smrgfi
45268fff3f40Smrg
45278fff3f40Smrgfi
45288fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
45298fff3f40Smrg$as_echo "$ac_cv_host" >&6; }
45308fff3f40Smrgcase $ac_cv_host in
45318fff3f40Smrg*-*-*) ;;
453294a251fdSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
45338fff3f40Smrgesac
45348fff3f40Smrghost=$ac_cv_host
45358fff3f40Smrgac_save_IFS=$IFS; IFS='-'
45368fff3f40Smrgset x $ac_cv_host
45378fff3f40Smrgshift
45388fff3f40Smrghost_cpu=$1
45398fff3f40Smrghost_vendor=$2
45408fff3f40Smrgshift; shift
45418fff3f40Smrg# Remember, the first character of IFS is used to create $*,
45428fff3f40Smrg# except with old shells:
45438fff3f40Smrghost_os=$*
45448fff3f40SmrgIFS=$ac_save_IFS
45458fff3f40Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
45468fff3f40Smrg
4547e6232409Smrg
454894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
454994a251fdSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
455094a251fdSmrgif ${ac_cv_path_SED+:} false; then :
455194a251fdSmrg  $as_echo_n "(cached) " >&6
4552e6232409Smrgelse
455394a251fdSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
455494a251fdSmrg     for ac_i in 1 2 3 4 5 6 7; do
455594a251fdSmrg       ac_script="$ac_script$as_nl$ac_script"
455694a251fdSmrg     done
455794a251fdSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
455894a251fdSmrg     { ac_script=; unset ac_script;}
455994a251fdSmrg     if test -z "$SED"; then
456094a251fdSmrg  ac_path_SED_found=false
456194a251fdSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
456294a251fdSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
456394a251fdSmrgfor as_dir in $PATH
456494a251fdSmrgdo
456594a251fdSmrg  IFS=$as_save_IFS
456694a251fdSmrg  test -z "$as_dir" && as_dir=.
456794a251fdSmrg    for ac_prog in sed gsed; do
456894a251fdSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
456994a251fdSmrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
45706a45684fSmrg      as_fn_executable_p "$ac_path_SED" || continue
457194a251fdSmrg# Check for GNU ac_path_SED and select it if it is found.
457294a251fdSmrg  # Check for GNU $ac_path_SED
457394a251fdSmrgcase `"$ac_path_SED" --version 2>&1` in
457494a251fdSmrg*GNU*)
457594a251fdSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
457694a251fdSmrg*)
457794a251fdSmrg  ac_count=0
457894a251fdSmrg  $as_echo_n 0123456789 >"conftest.in"
457994a251fdSmrg  while :
458094a251fdSmrg  do
458194a251fdSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
458294a251fdSmrg    mv "conftest.tmp" "conftest.in"
458394a251fdSmrg    cp "conftest.in" "conftest.nl"
458494a251fdSmrg    $as_echo '' >> "conftest.nl"
458594a251fdSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
458694a251fdSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
458794a251fdSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
458894a251fdSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
458994a251fdSmrg      # Best one so far, save it but keep looking for a better one
459094a251fdSmrg      ac_cv_path_SED="$ac_path_SED"
459194a251fdSmrg      ac_path_SED_max=$ac_count
459294a251fdSmrg    fi
459394a251fdSmrg    # 10*(2^10) chars as input seems more than enough
459494a251fdSmrg    test $ac_count -gt 10 && break
459594a251fdSmrg  done
459694a251fdSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
459794a251fdSmrgesac
459894a251fdSmrg
459994a251fdSmrg      $ac_path_SED_found && break 3
460094a251fdSmrg    done
460194a251fdSmrg  done
460294a251fdSmrg  done
460394a251fdSmrgIFS=$as_save_IFS
460494a251fdSmrg  if test -z "$ac_cv_path_SED"; then
460594a251fdSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
460694a251fdSmrg  fi
4607e6232409Smrgelse
460894a251fdSmrg  ac_cv_path_SED=$SED
4609e6232409Smrgfi
46108fff3f40Smrg
4611e6232409Smrgfi
461294a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
461394a251fdSmrg$as_echo "$ac_cv_path_SED" >&6; }
461494a251fdSmrg SED="$ac_cv_path_SED"
461594a251fdSmrg  rm -f conftest.sed
4616e6232409Smrg
4617e6232409Smrg
4618e6232409Smrg
46198fff3f40Smrg
46208fff3f40Smrg
46218fff3f40Smrg
462294a251fdSmrg# Check whether --enable-selective-werror was given.
462394a251fdSmrgif test "${enable_selective_werror+set}" = set; then :
462494a251fdSmrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4625e6232409Smrgelse
462694a251fdSmrg  SELECTIVE_WERROR=yes
4627e6232409Smrgfi
4628e6232409Smrg
4629e6232409Smrg
4630e6232409Smrg
4631e6232409Smrg
4632e6232409Smrg
463394a251fdSmrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
463494a251fdSmrgif test "x$SUNCC" = "xyes"; then
463594a251fdSmrg    BASE_CFLAGS="-v"
46368fff3f40Smrgelse
463794a251fdSmrg    BASE_CFLAGS=""
46388fff3f40Smrgfi
46398fff3f40Smrg
464094a251fdSmrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4641e6232409Smrg
4642e6232409Smrg
4643e6232409Smrg
4644e6232409Smrg
4645e6232409Smrg
4646e6232409Smrg
4647e6232409Smrg
4648e6232409Smrg
4649e6232409Smrg
4650e6232409Smrg
4651e6232409Smrg
4652e6232409Smrg
4653e6232409Smrg
465494a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
46558fff3f40Smrg
465694a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
465794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
465894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
465994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
466094a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
466194a251fdSmrg  $as_echo_n "(cached) " >&6
466294a251fdSmrgelse
466394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
466494a251fdSmrg/* end confdefs.h.  */
466594a251fdSmrgint i;
466694a251fdSmrg_ACEOF
466794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
466894a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
466994a251fdSmrgelse
467094a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
4671e6232409Smrgfi
467294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46738fff3f40Smrgfi
467494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
467594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
467694a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
467794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4678e6232409Smrgfi
4679e6232409Smrg
468094a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
468194a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
468294a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
468394a251fdSmrg	fi
468494a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
468594a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
468694a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
468794a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
468894a251fdSmrg  $as_echo_n "(cached) " >&6
468994a251fdSmrgelse
469094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
469194a251fdSmrg/* end confdefs.h.  */
469294a251fdSmrgint i;
469394a251fdSmrg_ACEOF
469494a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
469594a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
469694a251fdSmrgelse
469794a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
4698e6232409Smrgfi
469994a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47008fff3f40Smrgfi
470194a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
470294a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
470394a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
470494a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4705e6232409Smrgfi
4706e6232409Smrg
470794a251fdSmrgfound="no"
4708e6232409Smrg
470994a251fdSmrg	if test $found = "no" ; then
47106a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
471194a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
471294a251fdSmrg		fi
4713e6232409Smrg
47146a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
471594a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
471694a251fdSmrg		fi
4717e6232409Smrg
471894a251fdSmrg		CFLAGS="$CFLAGS -Wall"
4719e6232409Smrg
472094a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
472194a251fdSmrg$as_echo_n "checking if $CC supports -Wall... " >&6; }
472294a251fdSmrg		cacheid=xorg_cv_cc_flag__Wall
472394a251fdSmrg		if eval \${$cacheid+:} false; then :
472494a251fdSmrg  $as_echo_n "(cached) " >&6
472594a251fdSmrgelse
472694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
472794a251fdSmrg/* end confdefs.h.  */
472894a251fdSmrgint i;
472994a251fdSmrgint
473094a251fdSmrgmain ()
473194a251fdSmrg{
4732e6232409Smrg
473394a251fdSmrg  ;
473494a251fdSmrg  return 0;
473594a251fdSmrg}
473694a251fdSmrg_ACEOF
473794a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
473894a251fdSmrg  eval $cacheid=yes
473994a251fdSmrgelse
474094a251fdSmrg  eval $cacheid=no
474194a251fdSmrgfi
474294a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
474394a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
474494a251fdSmrgfi
4745e6232409Smrg
4746e6232409Smrg
474794a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
4748e6232409Smrg
474994a251fdSmrg		eval supported=\$$cacheid
475094a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
475194a251fdSmrg$as_echo "$supported" >&6; }
475294a251fdSmrg		if test "$supported" = "yes" ; then
475394a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
475494a251fdSmrg			found="yes"
475594a251fdSmrg		fi
475694a251fdSmrg	fi
4757e6232409Smrg
4758e6232409Smrg
4759e6232409Smrg
4760e6232409Smrg
47618fff3f40Smrg
47628fff3f40Smrg
47638fff3f40Smrg
47648fff3f40Smrg
4765e6232409Smrg
4766e6232409Smrg
4767e6232409Smrg
4768e6232409Smrg
4769e6232409Smrg
4770e6232409Smrg
477194a251fdSmrg
477294a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
477394a251fdSmrg
477494a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
477594a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
477694a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
477794a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
477894a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
47798fff3f40Smrg  $as_echo_n "(cached) " >&6
4780e6232409Smrgelse
478194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
478294a251fdSmrg/* end confdefs.h.  */
478394a251fdSmrgint i;
478494a251fdSmrg_ACEOF
478594a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
478694a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
4787e6232409Smrgelse
478894a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
4789e6232409Smrgfi
479094a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791e6232409Smrgfi
479294a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
479394a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
479494a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
479594a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4796e6232409Smrgfi
4797e6232409Smrg
479894a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
479994a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
480094a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
480194a251fdSmrg	fi
480294a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
480394a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
480494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
480594a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
48068fff3f40Smrg  $as_echo_n "(cached) " >&6
4807e6232409Smrgelse
480894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
480994a251fdSmrg/* end confdefs.h.  */
481094a251fdSmrgint i;
481194a251fdSmrg_ACEOF
481294a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
481394a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
4814e6232409Smrgelse
481594a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
4816e6232409Smrgfi
481794a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818e6232409Smrgfi
481994a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
482094a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
482194a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
482294a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4823e6232409Smrgfi
4824e6232409Smrg
482594a251fdSmrgfound="no"
482694a251fdSmrg
482794a251fdSmrg	if test $found = "no" ; then
48286a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
482994a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
483094a251fdSmrg		fi
483194a251fdSmrg
48326a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
483394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
483494a251fdSmrg		fi
483594a251fdSmrg
483694a251fdSmrg		CFLAGS="$CFLAGS -Wpointer-arith"
483794a251fdSmrg
483894a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
483994a251fdSmrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
484094a251fdSmrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
484194a251fdSmrg		if eval \${$cacheid+:} false; then :
484294a251fdSmrg  $as_echo_n "(cached) " >&6
4843e6232409Smrgelse
484494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
484594a251fdSmrg/* end confdefs.h.  */
484694a251fdSmrgint i;
484794a251fdSmrgint
484894a251fdSmrgmain ()
484994a251fdSmrg{
485094a251fdSmrg
485194a251fdSmrg  ;
485294a251fdSmrg  return 0;
485394a251fdSmrg}
485494a251fdSmrg_ACEOF
485594a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
485694a251fdSmrg  eval $cacheid=yes
485794a251fdSmrgelse
485894a251fdSmrg  eval $cacheid=no
485994a251fdSmrgfi
486094a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
486194a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
4862e6232409Smrgfi
4863e6232409Smrg
486494a251fdSmrg
486594a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
486694a251fdSmrg
486794a251fdSmrg		eval supported=\$$cacheid
486894a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
486994a251fdSmrg$as_echo "$supported" >&6; }
487094a251fdSmrg		if test "$supported" = "yes" ; then
487194a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
487294a251fdSmrg			found="yes"
487394a251fdSmrg		fi
487494a251fdSmrg	fi
487594a251fdSmrg
487694a251fdSmrg
487794a251fdSmrg
487894a251fdSmrg
487994a251fdSmrg
488094a251fdSmrg
488194a251fdSmrg
488294a251fdSmrg
488394a251fdSmrg
488494a251fdSmrg
488594a251fdSmrg
488694a251fdSmrg
488794a251fdSmrg
488894a251fdSmrg
488994a251fdSmrg
489094a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
489194a251fdSmrg
489294a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
489394a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
489494a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
489594a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
489694a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
48978fff3f40Smrg  $as_echo_n "(cached) " >&6
4898e6232409Smrgelse
489994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
490094a251fdSmrg/* end confdefs.h.  */
490194a251fdSmrgint i;
490294a251fdSmrg_ACEOF
490394a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
490494a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
4905e6232409Smrgelse
490694a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
4907e6232409Smrgfi
490894a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909e6232409Smrgfi
491094a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
491194a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
491294a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
491394a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
491494a251fdSmrgfi
491594a251fdSmrg
491694a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
491794a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
491894a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
491994a251fdSmrg	fi
492094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
492194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
492294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
492394a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
492494a251fdSmrg  $as_echo_n "(cached) " >&6
4925e6232409Smrgelse
492694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
492794a251fdSmrg/* end confdefs.h.  */
492894a251fdSmrgint i;
492994a251fdSmrg_ACEOF
493094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
493194a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
493294a251fdSmrgelse
493394a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
493494a251fdSmrgfi
493594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
493694a251fdSmrgfi
493794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
493894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
493994a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
494094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4941e6232409Smrgfi
4942e6232409Smrg
494394a251fdSmrgfound="no"
4944e6232409Smrg
494594a251fdSmrg	if test $found = "no" ; then
49466a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
494794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
494894a251fdSmrg		fi
494994a251fdSmrg
49506a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
495194a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
495294a251fdSmrg		fi
495394a251fdSmrg
495494a251fdSmrg		CFLAGS="$CFLAGS -Wmissing-declarations"
495594a251fdSmrg
495694a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
495794a251fdSmrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
495894a251fdSmrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
495994a251fdSmrg		if eval \${$cacheid+:} false; then :
49608fff3f40Smrg  $as_echo_n "(cached) " >&6
4961e6232409Smrgelse
496294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
496394a251fdSmrg/* end confdefs.h.  */
496494a251fdSmrgint i;
496594a251fdSmrgint
496694a251fdSmrgmain ()
496794a251fdSmrg{
4968e6232409Smrg
496994a251fdSmrg  ;
497094a251fdSmrg  return 0;
497194a251fdSmrg}
497294a251fdSmrg_ACEOF
497394a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
497494a251fdSmrg  eval $cacheid=yes
497594a251fdSmrgelse
497694a251fdSmrg  eval $cacheid=no
497794a251fdSmrgfi
497894a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
497994a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
498094a251fdSmrgfi
498194a251fdSmrg
498294a251fdSmrg
498394a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
498494a251fdSmrg
498594a251fdSmrg		eval supported=\$$cacheid
498694a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
498794a251fdSmrg$as_echo "$supported" >&6; }
498894a251fdSmrg		if test "$supported" = "yes" ; then
498994a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
499094a251fdSmrg			found="yes"
499194a251fdSmrg		fi
499294a251fdSmrg	fi
499394a251fdSmrg
499494a251fdSmrg
499594a251fdSmrg
499694a251fdSmrg
499794a251fdSmrg
499894a251fdSmrg
499994a251fdSmrg
500094a251fdSmrg
500194a251fdSmrg
500294a251fdSmrg
500394a251fdSmrg
500494a251fdSmrg
500594a251fdSmrg
500694a251fdSmrg
500794a251fdSmrg
500894a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
500994a251fdSmrg
501094a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
501194a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
501294a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
501394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
501494a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
501594a251fdSmrg  $as_echo_n "(cached) " >&6
501694a251fdSmrgelse
501794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
501894a251fdSmrg/* end confdefs.h.  */
501994a251fdSmrgint i;
502094a251fdSmrg_ACEOF
502194a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
502294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
502394a251fdSmrgelse
502494a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5025e6232409Smrgfi
502694a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027e6232409Smrgfi
502894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
502994a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
503094a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
503194a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5032e6232409Smrgfi
503394a251fdSmrg
503494a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
503594a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
503694a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
503794a251fdSmrg	fi
503894a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
503994a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
504094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
504194a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
504294a251fdSmrg  $as_echo_n "(cached) " >&6
5043e6232409Smrgelse
504494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
504594a251fdSmrg/* end confdefs.h.  */
504694a251fdSmrgint i;
504794a251fdSmrg_ACEOF
504894a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
504994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
505094a251fdSmrgelse
505194a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
505294a251fdSmrgfi
505394a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
505494a251fdSmrgfi
505594a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
505694a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
505794a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
505894a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5059e6232409Smrgfi
5060e6232409Smrg
506194a251fdSmrgfound="no"
5062e6232409Smrg
506394a251fdSmrg	if test $found = "no" ; then
50646a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
506594a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
506694a251fdSmrg		fi
506794a251fdSmrg
50686a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
506994a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
507094a251fdSmrg		fi
507194a251fdSmrg
507294a251fdSmrg		CFLAGS="$CFLAGS -Wformat=2"
507394a251fdSmrg
507494a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
507594a251fdSmrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
50766a45684fSmrg		cacheid=xorg_cv_cc_flag__Wformat_2
507794a251fdSmrg		if eval \${$cacheid+:} false; then :
50788fff3f40Smrg  $as_echo_n "(cached) " >&6
5079e6232409Smrgelse
508094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
508194a251fdSmrg/* end confdefs.h.  */
508294a251fdSmrgint i;
508394a251fdSmrgint
508494a251fdSmrgmain ()
508594a251fdSmrg{
5086e6232409Smrg
508794a251fdSmrg  ;
508894a251fdSmrg  return 0;
508994a251fdSmrg}
509094a251fdSmrg_ACEOF
509194a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
509294a251fdSmrg  eval $cacheid=yes
509394a251fdSmrgelse
509494a251fdSmrg  eval $cacheid=no
5095e6232409Smrgfi
509694a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
509794a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
5098e6232409Smrgfi
509994a251fdSmrg
510094a251fdSmrg
510194a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
510294a251fdSmrg
510394a251fdSmrg		eval supported=\$$cacheid
510494a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
510594a251fdSmrg$as_echo "$supported" >&6; }
510694a251fdSmrg		if test "$supported" = "yes" ; then
510794a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
510894a251fdSmrg			found="yes"
510994a251fdSmrg		fi
511094a251fdSmrg	fi
511194a251fdSmrg
511294a251fdSmrg	if test $found = "no" ; then
51136a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
511494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
511594a251fdSmrg		fi
511694a251fdSmrg
51176a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
511894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
511994a251fdSmrg		fi
512094a251fdSmrg
512194a251fdSmrg		CFLAGS="$CFLAGS -Wformat"
512294a251fdSmrg
512394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
512494a251fdSmrg$as_echo_n "checking if $CC supports -Wformat... " >&6; }
512594a251fdSmrg		cacheid=xorg_cv_cc_flag__Wformat
512694a251fdSmrg		if eval \${$cacheid+:} false; then :
512794a251fdSmrg  $as_echo_n "(cached) " >&6
5128e6232409Smrgelse
512994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
513094a251fdSmrg/* end confdefs.h.  */
513194a251fdSmrgint i;
513294a251fdSmrgint
513394a251fdSmrgmain ()
513494a251fdSmrg{
513594a251fdSmrg
513694a251fdSmrg  ;
513794a251fdSmrg  return 0;
513894a251fdSmrg}
513994a251fdSmrg_ACEOF
514094a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
514194a251fdSmrg  eval $cacheid=yes
514294a251fdSmrgelse
514394a251fdSmrg  eval $cacheid=no
514494a251fdSmrgfi
514594a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
514694a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
5147e6232409Smrgfi
5148e6232409Smrg
5149e6232409Smrg
515094a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
515194a251fdSmrg
515294a251fdSmrg		eval supported=\$$cacheid
515394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
515494a251fdSmrg$as_echo "$supported" >&6; }
515594a251fdSmrg		if test "$supported" = "yes" ; then
515694a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
515794a251fdSmrg			found="yes"
515894a251fdSmrg		fi
515994a251fdSmrg	fi
516094a251fdSmrg
516194a251fdSmrg
516294a251fdSmrg
516394a251fdSmrg
516494a251fdSmrg
516594a251fdSmrg
516694a251fdSmrg
516794a251fdSmrg
516894a251fdSmrg
516994a251fdSmrg
517094a251fdSmrg
517194a251fdSmrg
517294a251fdSmrg
517394a251fdSmrg
517494a251fdSmrg
517594a251fdSmrg
517694a251fdSmrg
517794a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
517894a251fdSmrg
517994a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
518094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
518194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
518294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
518394a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
51848fff3f40Smrg  $as_echo_n "(cached) " >&6
5185e6232409Smrgelse
518694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
518794a251fdSmrg/* end confdefs.h.  */
518894a251fdSmrgint i;
518994a251fdSmrg_ACEOF
519094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
519194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5192e6232409Smrgelse
519394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5194e6232409Smrgfi
519594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196e6232409Smrgfi
519794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
519894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
519994a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
520094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
520194a251fdSmrgfi
520294a251fdSmrg
520394a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
520494a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
520594a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
520694a251fdSmrg	fi
520794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
520894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
520994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
521094a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
521194a251fdSmrg  $as_echo_n "(cached) " >&6
5212e6232409Smrgelse
521394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
521494a251fdSmrg/* end confdefs.h.  */
521594a251fdSmrgint i;
521694a251fdSmrg_ACEOF
521794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
521894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
521994a251fdSmrgelse
522094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
522194a251fdSmrgfi
522294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
522394a251fdSmrgfi
522494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
522594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
522694a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
522794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5228e6232409Smrgfi
5229e6232409Smrg
523094a251fdSmrgfound="no"
5231e6232409Smrg
523294a251fdSmrg	if test $found = "no" ; then
52336a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
523494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
523594a251fdSmrg		fi
5236e6232409Smrg
52376a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
523894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
523994a251fdSmrg		fi
524094a251fdSmrg
524194a251fdSmrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
524294a251fdSmrg
524394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
524494a251fdSmrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
524594a251fdSmrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
524694a251fdSmrg		if eval \${$cacheid+:} false; then :
524794a251fdSmrg  $as_echo_n "(cached) " >&6
524894a251fdSmrgelse
524994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
525094a251fdSmrg/* end confdefs.h.  */
525194a251fdSmrgint i;
525294a251fdSmrgint
525394a251fdSmrgmain ()
525494a251fdSmrg{
5255e6232409Smrg
525694a251fdSmrg  ;
525794a251fdSmrg  return 0;
525894a251fdSmrg}
525994a251fdSmrg_ACEOF
526094a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
526194a251fdSmrg  eval $cacheid=yes
526294a251fdSmrgelse
526394a251fdSmrg  eval $cacheid=no
526494a251fdSmrgfi
526594a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
526694a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
5267e6232409Smrgfi
5268e6232409Smrg
5269e6232409Smrg
527094a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5271e6232409Smrg
527294a251fdSmrg		eval supported=\$$cacheid
527394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
527494a251fdSmrg$as_echo "$supported" >&6; }
527594a251fdSmrg		if test "$supported" = "yes" ; then
527694a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
527794a251fdSmrg			found="yes"
527894a251fdSmrg		fi
527994a251fdSmrg	fi
528094a251fdSmrg
528194a251fdSmrg
528294a251fdSmrg
528394a251fdSmrg
528494a251fdSmrg
528594a251fdSmrg
528694a251fdSmrg
528794a251fdSmrg
528894a251fdSmrg
528994a251fdSmrg
529094a251fdSmrg
529194a251fdSmrg
529294a251fdSmrg
529394a251fdSmrg
529494a251fdSmrg
529594a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
529694a251fdSmrg
529794a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
529894a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
529994a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
530094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
530194a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
530294a251fdSmrg  $as_echo_n "(cached) " >&6
530394a251fdSmrgelse
530494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
530594a251fdSmrg/* end confdefs.h.  */
530694a251fdSmrgint i;
530794a251fdSmrg_ACEOF
530894a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
530994a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
531094a251fdSmrgelse
531194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
531294a251fdSmrgfi
531394a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
531494a251fdSmrgfi
531594a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
531694a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
531794a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
531894a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
531994a251fdSmrgfi
532094a251fdSmrg
532194a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
532294a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
532394a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
532494a251fdSmrg	fi
532594a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
532694a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
532794a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
532894a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
532994a251fdSmrg  $as_echo_n "(cached) " >&6
533094a251fdSmrgelse
533194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
533294a251fdSmrg/* end confdefs.h.  */
533394a251fdSmrgint i;
533494a251fdSmrg_ACEOF
533594a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
533694a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
533794a251fdSmrgelse
533894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
533994a251fdSmrgfi
534094a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
534194a251fdSmrgfi
534294a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
534394a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
534494a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
534594a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
534694a251fdSmrgfi
534794a251fdSmrg
534894a251fdSmrgfound="no"
534994a251fdSmrg
535094a251fdSmrg	if test $found = "no" ; then
53516a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
535294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
535394a251fdSmrg		fi
535494a251fdSmrg
53556a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
535694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
535794a251fdSmrg		fi
535894a251fdSmrg
535994a251fdSmrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
536094a251fdSmrg
536194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
536294a251fdSmrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
536394a251fdSmrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
536494a251fdSmrg		if eval \${$cacheid+:} false; then :
536594a251fdSmrg  $as_echo_n "(cached) " >&6
536694a251fdSmrgelse
536794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
536894a251fdSmrg/* end confdefs.h.  */
536994a251fdSmrgint i;
537094a251fdSmrgint
537194a251fdSmrgmain ()
537294a251fdSmrg{
537394a251fdSmrg
537494a251fdSmrg  ;
537594a251fdSmrg  return 0;
537694a251fdSmrg}
537794a251fdSmrg_ACEOF
537894a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
537994a251fdSmrg  eval $cacheid=yes
538094a251fdSmrgelse
538194a251fdSmrg  eval $cacheid=no
538294a251fdSmrgfi
538394a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
538494a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
538594a251fdSmrgfi
538694a251fdSmrg
538794a251fdSmrg
538894a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
538994a251fdSmrg
539094a251fdSmrg		eval supported=\$$cacheid
539194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
539294a251fdSmrg$as_echo "$supported" >&6; }
539394a251fdSmrg		if test "$supported" = "yes" ; then
539494a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
539594a251fdSmrg			found="yes"
539694a251fdSmrg		fi
539794a251fdSmrg	fi
539894a251fdSmrg
539994a251fdSmrg
540094a251fdSmrg
540194a251fdSmrg
540294a251fdSmrg
540394a251fdSmrg
540494a251fdSmrg
540594a251fdSmrg
540694a251fdSmrg
540794a251fdSmrg
540894a251fdSmrg
540994a251fdSmrg
541094a251fdSmrg
541194a251fdSmrg
541294a251fdSmrg
541394a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
541494a251fdSmrg
541594a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
541694a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
541794a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
541894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
541994a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
542094a251fdSmrg  $as_echo_n "(cached) " >&6
542194a251fdSmrgelse
542294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542394a251fdSmrg/* end confdefs.h.  */
542494a251fdSmrgint i;
542594a251fdSmrg_ACEOF
542694a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
542794a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
542894a251fdSmrgelse
542994a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
543094a251fdSmrgfi
543194a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
543294a251fdSmrgfi
543394a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
543494a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
543594a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
543694a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
543794a251fdSmrgfi
543894a251fdSmrg
543994a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
544094a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
544194a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
544294a251fdSmrg	fi
544394a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
544494a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
544594a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
544694a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
544794a251fdSmrg  $as_echo_n "(cached) " >&6
544894a251fdSmrgelse
544994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
545094a251fdSmrg/* end confdefs.h.  */
545194a251fdSmrgint i;
545294a251fdSmrg_ACEOF
545394a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
545494a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
545594a251fdSmrgelse
545694a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
545794a251fdSmrgfi
545894a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
545994a251fdSmrgfi
546094a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
546194a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
546294a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
546394a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
546494a251fdSmrgfi
546594a251fdSmrg
546694a251fdSmrgfound="no"
546794a251fdSmrg
546894a251fdSmrg	if test $found = "no" ; then
54696a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
547094a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
547194a251fdSmrg		fi
547294a251fdSmrg
54736a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
547494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
547594a251fdSmrg		fi
547694a251fdSmrg
547794a251fdSmrg		CFLAGS="$CFLAGS -Wnested-externs"
547894a251fdSmrg
547994a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
548094a251fdSmrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
548194a251fdSmrg		cacheid=xorg_cv_cc_flag__Wnested_externs
548294a251fdSmrg		if eval \${$cacheid+:} false; then :
548394a251fdSmrg  $as_echo_n "(cached) " >&6
548494a251fdSmrgelse
548594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
548694a251fdSmrg/* end confdefs.h.  */
548794a251fdSmrgint i;
548894a251fdSmrgint
548994a251fdSmrgmain ()
549094a251fdSmrg{
549194a251fdSmrg
549294a251fdSmrg  ;
549394a251fdSmrg  return 0;
549494a251fdSmrg}
549594a251fdSmrg_ACEOF
549694a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
549794a251fdSmrg  eval $cacheid=yes
549894a251fdSmrgelse
549994a251fdSmrg  eval $cacheid=no
550094a251fdSmrgfi
550194a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
550294a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
550394a251fdSmrgfi
550494a251fdSmrg
550594a251fdSmrg
550694a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
550794a251fdSmrg
550894a251fdSmrg		eval supported=\$$cacheid
550994a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
551094a251fdSmrg$as_echo "$supported" >&6; }
551194a251fdSmrg		if test "$supported" = "yes" ; then
551294a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
551394a251fdSmrg			found="yes"
551494a251fdSmrg		fi
551594a251fdSmrg	fi
551694a251fdSmrg
551794a251fdSmrg
551894a251fdSmrg
551994a251fdSmrg
552094a251fdSmrg
552194a251fdSmrg
552294a251fdSmrg
552394a251fdSmrg
552494a251fdSmrg
552594a251fdSmrg
552694a251fdSmrg
552794a251fdSmrg
552894a251fdSmrg
552994a251fdSmrg
553094a251fdSmrg
553194a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
553294a251fdSmrg
553394a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
553494a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
553594a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
553694a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
553794a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
553894a251fdSmrg  $as_echo_n "(cached) " >&6
553994a251fdSmrgelse
554094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
554194a251fdSmrg/* end confdefs.h.  */
554294a251fdSmrgint i;
554394a251fdSmrg_ACEOF
554494a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
554594a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
554694a251fdSmrgelse
554794a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
554894a251fdSmrgfi
554994a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
555094a251fdSmrgfi
555194a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
555294a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
555394a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
555494a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
555594a251fdSmrgfi
555694a251fdSmrg
555794a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
555894a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
555994a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
556094a251fdSmrg	fi
556194a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
556294a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
556394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
556494a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
556594a251fdSmrg  $as_echo_n "(cached) " >&6
556694a251fdSmrgelse
556794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
556894a251fdSmrg/* end confdefs.h.  */
556994a251fdSmrgint i;
557094a251fdSmrg_ACEOF
557194a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
557294a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
557394a251fdSmrgelse
557494a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
557594a251fdSmrgfi
557694a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
557794a251fdSmrgfi
557894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
557994a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
558094a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
558194a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
558294a251fdSmrgfi
558394a251fdSmrg
558494a251fdSmrgfound="no"
558594a251fdSmrg
558694a251fdSmrg	if test $found = "no" ; then
55876a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
558894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
558994a251fdSmrg		fi
559094a251fdSmrg
55916a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
559294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
559394a251fdSmrg		fi
559494a251fdSmrg
559594a251fdSmrg		CFLAGS="$CFLAGS -Wbad-function-cast"
559694a251fdSmrg
559794a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
559894a251fdSmrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
559994a251fdSmrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
560094a251fdSmrg		if eval \${$cacheid+:} false; then :
560194a251fdSmrg  $as_echo_n "(cached) " >&6
560294a251fdSmrgelse
560394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
560494a251fdSmrg/* end confdefs.h.  */
560594a251fdSmrgint i;
560694a251fdSmrgint
560794a251fdSmrgmain ()
560894a251fdSmrg{
560994a251fdSmrg
561094a251fdSmrg  ;
561194a251fdSmrg  return 0;
561294a251fdSmrg}
561394a251fdSmrg_ACEOF
561494a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
561594a251fdSmrg  eval $cacheid=yes
561694a251fdSmrgelse
561794a251fdSmrg  eval $cacheid=no
561894a251fdSmrgfi
561994a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
562094a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
562194a251fdSmrgfi
562294a251fdSmrg
562394a251fdSmrg
562494a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
562594a251fdSmrg
562694a251fdSmrg		eval supported=\$$cacheid
562794a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
562894a251fdSmrg$as_echo "$supported" >&6; }
562994a251fdSmrg		if test "$supported" = "yes" ; then
563094a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
563194a251fdSmrg			found="yes"
563294a251fdSmrg		fi
563394a251fdSmrg	fi
563494a251fdSmrg
563594a251fdSmrg
563694a251fdSmrg
563794a251fdSmrg
563894a251fdSmrg
563994a251fdSmrg
564094a251fdSmrg
564194a251fdSmrg
564294a251fdSmrg
564394a251fdSmrg
564494a251fdSmrg
564594a251fdSmrg
564694a251fdSmrg
564794a251fdSmrg
564894a251fdSmrg
564994a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
565094a251fdSmrg
565194a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
565294a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
565394a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
565494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
565594a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
565694a251fdSmrg  $as_echo_n "(cached) " >&6
565794a251fdSmrgelse
565894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
565994a251fdSmrg/* end confdefs.h.  */
566094a251fdSmrgint i;
566194a251fdSmrg_ACEOF
566294a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
566394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
566494a251fdSmrgelse
566594a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
566694a251fdSmrgfi
566794a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
566894a251fdSmrgfi
566994a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
567094a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
567194a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
567294a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
567394a251fdSmrgfi
567494a251fdSmrg
567594a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
567694a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
567794a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
567894a251fdSmrg	fi
567994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
568094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
568194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
568294a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
568394a251fdSmrg  $as_echo_n "(cached) " >&6
568494a251fdSmrgelse
568594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
568694a251fdSmrg/* end confdefs.h.  */
568794a251fdSmrgint i;
568894a251fdSmrg_ACEOF
568994a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
569094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
569194a251fdSmrgelse
569294a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
569394a251fdSmrgfi
569494a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
569594a251fdSmrgfi
569694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
569794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
569894a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
569994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
570094a251fdSmrgfi
570194a251fdSmrg
570294a251fdSmrgfound="no"
570394a251fdSmrg
570494a251fdSmrg	if test $found = "no" ; then
57056a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
570694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
570794a251fdSmrg		fi
570894a251fdSmrg
57096a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
571094a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
571194a251fdSmrg		fi
571294a251fdSmrg
571394a251fdSmrg		CFLAGS="$CFLAGS -Wold-style-definition"
571494a251fdSmrg
571594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
571694a251fdSmrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
571794a251fdSmrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
571894a251fdSmrg		if eval \${$cacheid+:} false; then :
571994a251fdSmrg  $as_echo_n "(cached) " >&6
572094a251fdSmrgelse
572194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
572294a251fdSmrg/* end confdefs.h.  */
572394a251fdSmrgint i;
572494a251fdSmrgint
572594a251fdSmrgmain ()
572694a251fdSmrg{
572794a251fdSmrg
572894a251fdSmrg  ;
572994a251fdSmrg  return 0;
573094a251fdSmrg}
573194a251fdSmrg_ACEOF
573294a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
573394a251fdSmrg  eval $cacheid=yes
573494a251fdSmrgelse
573594a251fdSmrg  eval $cacheid=no
573694a251fdSmrgfi
573794a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
573894a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
573994a251fdSmrgfi
574094a251fdSmrg
574194a251fdSmrg
574294a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
574394a251fdSmrg
574494a251fdSmrg		eval supported=\$$cacheid
574594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
574694a251fdSmrg$as_echo "$supported" >&6; }
574794a251fdSmrg		if test "$supported" = "yes" ; then
574894a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
574994a251fdSmrg			found="yes"
575094a251fdSmrg		fi
575194a251fdSmrg	fi
575294a251fdSmrg
57536a45684fSmrg	if test $found = "no" ; then
57546a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
57556a45684fSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57566a45684fSmrg		fi
57576a45684fSmrg
57586a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
57596a45684fSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
57606a45684fSmrg		fi
57616a45684fSmrg
57626a45684fSmrg		CFLAGS="$CFLAGS -fd"
57636a45684fSmrg
57646a45684fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
57656a45684fSmrg$as_echo_n "checking if $CC supports -fd... " >&6; }
57666a45684fSmrg		cacheid=xorg_cv_cc_flag__fd
57676a45684fSmrg		if eval \${$cacheid+:} false; then :
57686a45684fSmrg  $as_echo_n "(cached) " >&6
57696a45684fSmrgelse
57706a45684fSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57716a45684fSmrg/* end confdefs.h.  */
57726a45684fSmrgint i;
57736a45684fSmrgint
57746a45684fSmrgmain ()
57756a45684fSmrg{
57766a45684fSmrg
57776a45684fSmrg  ;
57786a45684fSmrg  return 0;
57796a45684fSmrg}
57806a45684fSmrg_ACEOF
57816a45684fSmrgif ac_fn_c_try_link "$LINENO"; then :
57826a45684fSmrg  eval $cacheid=yes
57836a45684fSmrgelse
57846a45684fSmrg  eval $cacheid=no
57856a45684fSmrgfi
57866a45684fSmrgrm -f core conftest.err conftest.$ac_objext \
57876a45684fSmrg    conftest$ac_exeext conftest.$ac_ext
57886a45684fSmrgfi
57896a45684fSmrg
57906a45684fSmrg
57916a45684fSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
57926a45684fSmrg
57936a45684fSmrg		eval supported=\$$cacheid
57946a45684fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
57956a45684fSmrg$as_echo "$supported" >&6; }
57966a45684fSmrg		if test "$supported" = "yes" ; then
57976a45684fSmrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
57986a45684fSmrg			found="yes"
57996a45684fSmrg		fi
58006a45684fSmrg	fi
58016a45684fSmrg
580294a251fdSmrg
580394a251fdSmrg
580494a251fdSmrg
580594a251fdSmrg
580694a251fdSmrg
580794a251fdSmrg
580894a251fdSmrg
580994a251fdSmrg
581094a251fdSmrg
581194a251fdSmrg
581294a251fdSmrg
581394a251fdSmrg
581494a251fdSmrg
581594a251fdSmrg
581694a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
581794a251fdSmrg
581894a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
581994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
582094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
582194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
582294a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
582394a251fdSmrg  $as_echo_n "(cached) " >&6
582494a251fdSmrgelse
582594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
582694a251fdSmrg/* end confdefs.h.  */
582794a251fdSmrgint i;
582894a251fdSmrg_ACEOF
582994a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
583094a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
583194a251fdSmrgelse
583294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
583394a251fdSmrgfi
583494a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
583594a251fdSmrgfi
583694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
583794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
583894a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
583994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
584094a251fdSmrgfi
584194a251fdSmrg
584294a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
584394a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
584494a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
584594a251fdSmrg	fi
584694a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
584794a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
584894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
584994a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
585094a251fdSmrg  $as_echo_n "(cached) " >&6
585194a251fdSmrgelse
585294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
585394a251fdSmrg/* end confdefs.h.  */
585494a251fdSmrgint i;
585594a251fdSmrg_ACEOF
585694a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
585794a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
585894a251fdSmrgelse
585994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
586094a251fdSmrgfi
586194a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
586294a251fdSmrgfi
586394a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
586494a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
586594a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
586694a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
586794a251fdSmrgfi
586894a251fdSmrg
586994a251fdSmrgfound="no"
587094a251fdSmrg
587194a251fdSmrg	if test $found = "no" ; then
58726a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
587394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
587494a251fdSmrg		fi
587594a251fdSmrg
58766a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
587794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
587894a251fdSmrg		fi
587994a251fdSmrg
588094a251fdSmrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
588194a251fdSmrg
588294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
588394a251fdSmrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
588494a251fdSmrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
588594a251fdSmrg		if eval \${$cacheid+:} false; then :
588694a251fdSmrg  $as_echo_n "(cached) " >&6
588794a251fdSmrgelse
588894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
588994a251fdSmrg/* end confdefs.h.  */
589094a251fdSmrgint i;
589194a251fdSmrgint
589294a251fdSmrgmain ()
589394a251fdSmrg{
589494a251fdSmrg
589594a251fdSmrg  ;
589694a251fdSmrg  return 0;
589794a251fdSmrg}
589894a251fdSmrg_ACEOF
589994a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
590094a251fdSmrg  eval $cacheid=yes
590194a251fdSmrgelse
590294a251fdSmrg  eval $cacheid=no
590394a251fdSmrgfi
590494a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
590594a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
590694a251fdSmrgfi
590794a251fdSmrg
590894a251fdSmrg
590994a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
591094a251fdSmrg
591194a251fdSmrg		eval supported=\$$cacheid
591294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
591394a251fdSmrg$as_echo "$supported" >&6; }
591494a251fdSmrg		if test "$supported" = "yes" ; then
591594a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
591694a251fdSmrg			found="yes"
591794a251fdSmrg		fi
591894a251fdSmrg	fi
591994a251fdSmrg
592094a251fdSmrg
592194a251fdSmrg
592294a251fdSmrg
592394a251fdSmrg
592494a251fdSmrg# This chunk adds additional warnings that could catch undesired effects.
592594a251fdSmrg
592694a251fdSmrg
592794a251fdSmrg
592894a251fdSmrg
592994a251fdSmrg
593094a251fdSmrg
593194a251fdSmrg
593294a251fdSmrg
593394a251fdSmrg
593494a251fdSmrg
593594a251fdSmrg
593694a251fdSmrg
593794a251fdSmrg
593894a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
593994a251fdSmrg
594094a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
594194a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
594294a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
594394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
594494a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
594594a251fdSmrg  $as_echo_n "(cached) " >&6
594694a251fdSmrgelse
594794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
594894a251fdSmrg/* end confdefs.h.  */
594994a251fdSmrgint i;
595094a251fdSmrg_ACEOF
595194a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
595294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
595394a251fdSmrgelse
595494a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
595594a251fdSmrgfi
595694a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
595794a251fdSmrgfi
595894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
595994a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
596094a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
596194a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
596294a251fdSmrgfi
596394a251fdSmrg
596494a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
596594a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
596694a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
596794a251fdSmrg	fi
596894a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
596994a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
597094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
597194a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
597294a251fdSmrg  $as_echo_n "(cached) " >&6
597394a251fdSmrgelse
597494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
597594a251fdSmrg/* end confdefs.h.  */
597694a251fdSmrgint i;
597794a251fdSmrg_ACEOF
597894a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
597994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
598094a251fdSmrgelse
598194a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
598294a251fdSmrgfi
598394a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
598494a251fdSmrgfi
598594a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
598694a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
598794a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
598894a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
598994a251fdSmrgfi
599094a251fdSmrg
599194a251fdSmrgfound="no"
599294a251fdSmrg
599394a251fdSmrg	if test $found = "no" ; then
59946a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
599594a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
599694a251fdSmrg		fi
599794a251fdSmrg
59986a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
599994a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
600094a251fdSmrg		fi
600194a251fdSmrg
600294a251fdSmrg		CFLAGS="$CFLAGS -Wunused"
600394a251fdSmrg
600494a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
600594a251fdSmrg$as_echo_n "checking if $CC supports -Wunused... " >&6; }
600694a251fdSmrg		cacheid=xorg_cv_cc_flag__Wunused
600794a251fdSmrg		if eval \${$cacheid+:} false; then :
600894a251fdSmrg  $as_echo_n "(cached) " >&6
600994a251fdSmrgelse
601094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
601194a251fdSmrg/* end confdefs.h.  */
601294a251fdSmrgint i;
601394a251fdSmrgint
601494a251fdSmrgmain ()
601594a251fdSmrg{
601694a251fdSmrg
601794a251fdSmrg  ;
601894a251fdSmrg  return 0;
601994a251fdSmrg}
602094a251fdSmrg_ACEOF
602194a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
602294a251fdSmrg  eval $cacheid=yes
602394a251fdSmrgelse
602494a251fdSmrg  eval $cacheid=no
602594a251fdSmrgfi
602694a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
602794a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
602894a251fdSmrgfi
602994a251fdSmrg
603094a251fdSmrg
603194a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
603294a251fdSmrg
603394a251fdSmrg		eval supported=\$$cacheid
603494a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
603594a251fdSmrg$as_echo "$supported" >&6; }
603694a251fdSmrg		if test "$supported" = "yes" ; then
603794a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
603894a251fdSmrg			found="yes"
603994a251fdSmrg		fi
604094a251fdSmrg	fi
604194a251fdSmrg
604294a251fdSmrg
604394a251fdSmrg
604494a251fdSmrg
604594a251fdSmrg
604694a251fdSmrg
604794a251fdSmrg
604894a251fdSmrg
604994a251fdSmrg
605094a251fdSmrg
605194a251fdSmrg
605294a251fdSmrg
605394a251fdSmrg
605494a251fdSmrg
605594a251fdSmrg
605694a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
605794a251fdSmrg
605894a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
605994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
606094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
606194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
606294a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
606394a251fdSmrg  $as_echo_n "(cached) " >&6
606494a251fdSmrgelse
606594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
606694a251fdSmrg/* end confdefs.h.  */
606794a251fdSmrgint i;
606894a251fdSmrg_ACEOF
606994a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
607094a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
607194a251fdSmrgelse
607294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
607394a251fdSmrgfi
607494a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
607594a251fdSmrgfi
607694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
607794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
607894a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
607994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
608094a251fdSmrgfi
608194a251fdSmrg
608294a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
608394a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
608494a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
608594a251fdSmrg	fi
608694a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
608794a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
608894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
608994a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
609094a251fdSmrg  $as_echo_n "(cached) " >&6
609194a251fdSmrgelse
609294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
609394a251fdSmrg/* end confdefs.h.  */
609494a251fdSmrgint i;
609594a251fdSmrg_ACEOF
609694a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
609794a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
609894a251fdSmrgelse
609994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
610094a251fdSmrgfi
610194a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
610294a251fdSmrgfi
610394a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
610494a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
610594a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
610694a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
610794a251fdSmrgfi
610894a251fdSmrg
610994a251fdSmrgfound="no"
611094a251fdSmrg
611194a251fdSmrg	if test $found = "no" ; then
61126a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
611394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
611494a251fdSmrg		fi
611594a251fdSmrg
61166a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
611794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
611894a251fdSmrg		fi
611994a251fdSmrg
612094a251fdSmrg		CFLAGS="$CFLAGS -Wuninitialized"
612194a251fdSmrg
612294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
612394a251fdSmrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
612494a251fdSmrg		cacheid=xorg_cv_cc_flag__Wuninitialized
612594a251fdSmrg		if eval \${$cacheid+:} false; then :
612694a251fdSmrg  $as_echo_n "(cached) " >&6
612794a251fdSmrgelse
612894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
612994a251fdSmrg/* end confdefs.h.  */
613094a251fdSmrgint i;
613194a251fdSmrgint
613294a251fdSmrgmain ()
613394a251fdSmrg{
613494a251fdSmrg
613594a251fdSmrg  ;
613694a251fdSmrg  return 0;
613794a251fdSmrg}
613894a251fdSmrg_ACEOF
613994a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
614094a251fdSmrg  eval $cacheid=yes
614194a251fdSmrgelse
614294a251fdSmrg  eval $cacheid=no
614394a251fdSmrgfi
614494a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
614594a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
614694a251fdSmrgfi
614794a251fdSmrg
614894a251fdSmrg
614994a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
615094a251fdSmrg
615194a251fdSmrg		eval supported=\$$cacheid
615294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
615394a251fdSmrg$as_echo "$supported" >&6; }
615494a251fdSmrg		if test "$supported" = "yes" ; then
615594a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
615694a251fdSmrg			found="yes"
615794a251fdSmrg		fi
615894a251fdSmrg	fi
615994a251fdSmrg
616094a251fdSmrg
616194a251fdSmrg
616294a251fdSmrg
616394a251fdSmrg
616494a251fdSmrg
616594a251fdSmrg
616694a251fdSmrg
616794a251fdSmrg
616894a251fdSmrg
616994a251fdSmrg
617094a251fdSmrg
617194a251fdSmrg
617294a251fdSmrg
617394a251fdSmrg
617494a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
617594a251fdSmrg
617694a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
617794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
617894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
617994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
618094a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
618194a251fdSmrg  $as_echo_n "(cached) " >&6
618294a251fdSmrgelse
618394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
618494a251fdSmrg/* end confdefs.h.  */
618594a251fdSmrgint i;
618694a251fdSmrg_ACEOF
618794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
618894a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
618994a251fdSmrgelse
619094a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
619194a251fdSmrgfi
619294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
619394a251fdSmrgfi
619494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
619594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
619694a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
619794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
619894a251fdSmrgfi
619994a251fdSmrg
620094a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
620194a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
620294a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
620394a251fdSmrg	fi
620494a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
620594a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
620694a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
620794a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
620894a251fdSmrg  $as_echo_n "(cached) " >&6
620994a251fdSmrgelse
621094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
621194a251fdSmrg/* end confdefs.h.  */
621294a251fdSmrgint i;
621394a251fdSmrg_ACEOF
621494a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
621594a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
621694a251fdSmrgelse
621794a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
621894a251fdSmrgfi
621994a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
622094a251fdSmrgfi
622194a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
622294a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
622394a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
622494a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
622594a251fdSmrgfi
622694a251fdSmrg
622794a251fdSmrgfound="no"
622894a251fdSmrg
622994a251fdSmrg	if test $found = "no" ; then
62306a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
623194a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
623294a251fdSmrg		fi
623394a251fdSmrg
62346a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
623594a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
623694a251fdSmrg		fi
623794a251fdSmrg
623894a251fdSmrg		CFLAGS="$CFLAGS -Wshadow"
623994a251fdSmrg
624094a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
624194a251fdSmrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
624294a251fdSmrg		cacheid=xorg_cv_cc_flag__Wshadow
624394a251fdSmrg		if eval \${$cacheid+:} false; then :
624494a251fdSmrg  $as_echo_n "(cached) " >&6
624594a251fdSmrgelse
624694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
624794a251fdSmrg/* end confdefs.h.  */
624894a251fdSmrgint i;
624994a251fdSmrgint
625094a251fdSmrgmain ()
625194a251fdSmrg{
625294a251fdSmrg
625394a251fdSmrg  ;
625494a251fdSmrg  return 0;
625594a251fdSmrg}
625694a251fdSmrg_ACEOF
625794a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
625894a251fdSmrg  eval $cacheid=yes
625994a251fdSmrgelse
626094a251fdSmrg  eval $cacheid=no
626194a251fdSmrgfi
626294a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
626394a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
626494a251fdSmrgfi
626594a251fdSmrg
626694a251fdSmrg
626794a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
626894a251fdSmrg
626994a251fdSmrg		eval supported=\$$cacheid
627094a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
627194a251fdSmrg$as_echo "$supported" >&6; }
627294a251fdSmrg		if test "$supported" = "yes" ; then
627394a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
627494a251fdSmrg			found="yes"
627594a251fdSmrg		fi
627694a251fdSmrg	fi
627794a251fdSmrg
627894a251fdSmrg
627994a251fdSmrg
628094a251fdSmrg
628194a251fdSmrg
628294a251fdSmrg
628394a251fdSmrg
628494a251fdSmrg
628594a251fdSmrg
628694a251fdSmrg
628794a251fdSmrg
628894a251fdSmrg
628994a251fdSmrg
629094a251fdSmrg
629194a251fdSmrg
629294a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
629394a251fdSmrg
629494a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
629594a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
629694a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
629794a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
629894a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
629994a251fdSmrg  $as_echo_n "(cached) " >&6
630094a251fdSmrgelse
630194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
630294a251fdSmrg/* end confdefs.h.  */
630394a251fdSmrgint i;
630494a251fdSmrg_ACEOF
630594a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
630694a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
630794a251fdSmrgelse
630894a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
630994a251fdSmrgfi
631094a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
631194a251fdSmrgfi
631294a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
631394a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
631494a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
631594a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
631694a251fdSmrgfi
631794a251fdSmrg
631894a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
631994a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
632094a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
632194a251fdSmrg	fi
632294a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
632394a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
632494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
632594a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
632694a251fdSmrg  $as_echo_n "(cached) " >&6
632794a251fdSmrgelse
632894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632994a251fdSmrg/* end confdefs.h.  */
633094a251fdSmrgint i;
633194a251fdSmrg_ACEOF
633294a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
633394a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
633494a251fdSmrgelse
633594a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
633694a251fdSmrgfi
633794a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
633894a251fdSmrgfi
633994a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
634094a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
634194a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
634294a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
634394a251fdSmrgfi
634494a251fdSmrg
634594a251fdSmrgfound="no"
634694a251fdSmrg
634794a251fdSmrg	if test $found = "no" ; then
63486a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
634994a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
635094a251fdSmrg		fi
635194a251fdSmrg
63526a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
635394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
635494a251fdSmrg		fi
635594a251fdSmrg
63566a45684fSmrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
635794a251fdSmrg
63586a45684fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
63596a45684fSmrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
63606a45684fSmrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
636194a251fdSmrg		if eval \${$cacheid+:} false; then :
636294a251fdSmrg  $as_echo_n "(cached) " >&6
636394a251fdSmrgelse
636494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
636594a251fdSmrg/* end confdefs.h.  */
636694a251fdSmrgint i;
636794a251fdSmrgint
636894a251fdSmrgmain ()
636994a251fdSmrg{
637094a251fdSmrg
637194a251fdSmrg  ;
637294a251fdSmrg  return 0;
637394a251fdSmrg}
637494a251fdSmrg_ACEOF
637594a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
637694a251fdSmrg  eval $cacheid=yes
637794a251fdSmrgelse
637894a251fdSmrg  eval $cacheid=no
637994a251fdSmrgfi
638094a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
638194a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
638294a251fdSmrgfi
638394a251fdSmrg
638494a251fdSmrg
638594a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
638694a251fdSmrg
638794a251fdSmrg		eval supported=\$$cacheid
638894a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
638994a251fdSmrg$as_echo "$supported" >&6; }
639094a251fdSmrg		if test "$supported" = "yes" ; then
63916a45684fSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
639294a251fdSmrg			found="yes"
639394a251fdSmrg		fi
639494a251fdSmrg	fi
639594a251fdSmrg
639694a251fdSmrg
639794a251fdSmrg
639894a251fdSmrg
639994a251fdSmrg
640094a251fdSmrg
640194a251fdSmrg
640294a251fdSmrg
640394a251fdSmrg
640494a251fdSmrg
640594a251fdSmrg
640694a251fdSmrg
640794a251fdSmrg
640894a251fdSmrg
640994a251fdSmrg
641094a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
641194a251fdSmrg
641294a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
641394a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
641494a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
641594a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
641694a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
641794a251fdSmrg  $as_echo_n "(cached) " >&6
641894a251fdSmrgelse
641994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
642094a251fdSmrg/* end confdefs.h.  */
642194a251fdSmrgint i;
642294a251fdSmrg_ACEOF
642394a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
642494a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
642594a251fdSmrgelse
642694a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
642794a251fdSmrgfi
642894a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
642994a251fdSmrgfi
643094a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
643194a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
643294a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
643394a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
643494a251fdSmrgfi
643594a251fdSmrg
643694a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
643794a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
643894a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
643994a251fdSmrg	fi
644094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
644194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
644294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
644394a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
644494a251fdSmrg  $as_echo_n "(cached) " >&6
644594a251fdSmrgelse
644694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
644794a251fdSmrg/* end confdefs.h.  */
644894a251fdSmrgint i;
644994a251fdSmrg_ACEOF
645094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
645194a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
645294a251fdSmrgelse
645394a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
645494a251fdSmrgfi
645594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
645694a251fdSmrgfi
645794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
645894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
645994a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
646094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
646194a251fdSmrgfi
646294a251fdSmrg
646394a251fdSmrgfound="no"
646494a251fdSmrg
646594a251fdSmrg	if test $found = "no" ; then
64666a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
646794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
646894a251fdSmrg		fi
646994a251fdSmrg
64706a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
647194a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
647294a251fdSmrg		fi
647394a251fdSmrg
64746a45684fSmrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
647594a251fdSmrg
64766a45684fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
64776a45684fSmrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
64786a45684fSmrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
647994a251fdSmrg		if eval \${$cacheid+:} false; then :
648094a251fdSmrg  $as_echo_n "(cached) " >&6
648194a251fdSmrgelse
648294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
648394a251fdSmrg/* end confdefs.h.  */
648494a251fdSmrgint i;
648594a251fdSmrgint
648694a251fdSmrgmain ()
648794a251fdSmrg{
648894a251fdSmrg
648994a251fdSmrg  ;
649094a251fdSmrg  return 0;
649194a251fdSmrg}
649294a251fdSmrg_ACEOF
649394a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
649494a251fdSmrg  eval $cacheid=yes
649594a251fdSmrgelse
649694a251fdSmrg  eval $cacheid=no
649794a251fdSmrgfi
649894a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
649994a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
650094a251fdSmrgfi
650194a251fdSmrg
650294a251fdSmrg
650394a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
650494a251fdSmrg
650594a251fdSmrg		eval supported=\$$cacheid
650694a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
650794a251fdSmrg$as_echo "$supported" >&6; }
650894a251fdSmrg		if test "$supported" = "yes" ; then
65096a45684fSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
651094a251fdSmrg			found="yes"
651194a251fdSmrg		fi
651294a251fdSmrg	fi
651394a251fdSmrg
651494a251fdSmrg
651594a251fdSmrg
651694a251fdSmrg
651794a251fdSmrg
651894a251fdSmrg
651994a251fdSmrg
652094a251fdSmrg
652194a251fdSmrg
652294a251fdSmrg
652394a251fdSmrg
652494a251fdSmrg
652594a251fdSmrg
652694a251fdSmrg
652794a251fdSmrg
652894a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
652994a251fdSmrg
653094a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
653194a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
653294a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
653394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
653494a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
653594a251fdSmrg  $as_echo_n "(cached) " >&6
653694a251fdSmrgelse
653794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
653894a251fdSmrg/* end confdefs.h.  */
653994a251fdSmrgint i;
654094a251fdSmrg_ACEOF
654194a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
654294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
654394a251fdSmrgelse
654494a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
654594a251fdSmrgfi
654694a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
654794a251fdSmrgfi
654894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
654994a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
655094a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
655194a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
655294a251fdSmrgfi
655394a251fdSmrg
655494a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
655594a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
655694a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
655794a251fdSmrg	fi
655894a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
655994a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
656094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
656194a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
656294a251fdSmrg  $as_echo_n "(cached) " >&6
656394a251fdSmrgelse
656494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
656594a251fdSmrg/* end confdefs.h.  */
656694a251fdSmrgint i;
656794a251fdSmrg_ACEOF
656894a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
656994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
657094a251fdSmrgelse
657194a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
657294a251fdSmrgfi
657394a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
657494a251fdSmrgfi
657594a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
657694a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
657794a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
657894a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
657994a251fdSmrgfi
658094a251fdSmrg
658194a251fdSmrgfound="no"
658294a251fdSmrg
658394a251fdSmrg	if test $found = "no" ; then
65846a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
658594a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
658694a251fdSmrg		fi
658794a251fdSmrg
65886a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
658994a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
659094a251fdSmrg		fi
659194a251fdSmrg
65926a45684fSmrg		CFLAGS="$CFLAGS -Wredundant-decls"
659394a251fdSmrg
65946a45684fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
65956a45684fSmrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
65966a45684fSmrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
659794a251fdSmrg		if eval \${$cacheid+:} false; then :
659894a251fdSmrg  $as_echo_n "(cached) " >&6
659994a251fdSmrgelse
660094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
660194a251fdSmrg/* end confdefs.h.  */
660294a251fdSmrgint i;
660394a251fdSmrgint
660494a251fdSmrgmain ()
660594a251fdSmrg{
660694a251fdSmrg
660794a251fdSmrg  ;
660894a251fdSmrg  return 0;
660994a251fdSmrg}
661094a251fdSmrg_ACEOF
661194a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
661294a251fdSmrg  eval $cacheid=yes
661394a251fdSmrgelse
661494a251fdSmrg  eval $cacheid=no
661594a251fdSmrgfi
661694a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
661794a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
661894a251fdSmrgfi
661994a251fdSmrg
662094a251fdSmrg
662194a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
662294a251fdSmrg
662394a251fdSmrg		eval supported=\$$cacheid
662494a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
662594a251fdSmrg$as_echo "$supported" >&6; }
662694a251fdSmrg		if test "$supported" = "yes" ; then
66276a45684fSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
662894a251fdSmrg			found="yes"
662994a251fdSmrg		fi
663094a251fdSmrg	fi
663194a251fdSmrg
663294a251fdSmrg
663394a251fdSmrg
663494a251fdSmrg
663594a251fdSmrg
663694a251fdSmrg
663794a251fdSmrg
663894a251fdSmrg
663994a251fdSmrg
664094a251fdSmrg
664194a251fdSmrg
664294a251fdSmrg
664394a251fdSmrg
664494a251fdSmrg
664594a251fdSmrg
664694a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
664794a251fdSmrg
664894a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
664994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
665094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
665194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
665294a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
665394a251fdSmrg  $as_echo_n "(cached) " >&6
665494a251fdSmrgelse
665594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
665694a251fdSmrg/* end confdefs.h.  */
665794a251fdSmrgint i;
665894a251fdSmrg_ACEOF
665994a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
666094a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
666194a251fdSmrgelse
666294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
666394a251fdSmrgfi
666494a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
666594a251fdSmrgfi
666694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
666794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
666894a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
666994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
667094a251fdSmrgfi
667194a251fdSmrg
667294a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
667394a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
667494a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
667594a251fdSmrg	fi
667694a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
667794a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
667894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
667994a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
668094a251fdSmrg  $as_echo_n "(cached) " >&6
668194a251fdSmrgelse
668294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
668394a251fdSmrg/* end confdefs.h.  */
668494a251fdSmrgint i;
668594a251fdSmrg_ACEOF
668694a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
668794a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
668894a251fdSmrgelse
668994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
669094a251fdSmrgfi
669194a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
669294a251fdSmrgfi
669394a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
669494a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
669594a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
669694a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
669794a251fdSmrgfi
669894a251fdSmrg
669994a251fdSmrgfound="no"
670094a251fdSmrg
670194a251fdSmrg	if test $found = "no" ; then
67026a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
670394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
670494a251fdSmrg		fi
670594a251fdSmrg
67066a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
670794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
670894a251fdSmrg		fi
670994a251fdSmrg
67106a45684fSmrg		CFLAGS="$CFLAGS -Wlogical-op"
671194a251fdSmrg
67126a45684fSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
67136a45684fSmrg$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
67146a45684fSmrg		cacheid=xorg_cv_cc_flag__Wlogical_op
671594a251fdSmrg		if eval \${$cacheid+:} false; then :
671694a251fdSmrg  $as_echo_n "(cached) " >&6
671794a251fdSmrgelse
671894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
671994a251fdSmrg/* end confdefs.h.  */
672094a251fdSmrgint i;
672194a251fdSmrgint
672294a251fdSmrgmain ()
672394a251fdSmrg{
672494a251fdSmrg
672594a251fdSmrg  ;
672694a251fdSmrg  return 0;
672794a251fdSmrg}
672894a251fdSmrg_ACEOF
672994a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
673094a251fdSmrg  eval $cacheid=yes
673194a251fdSmrgelse
673294a251fdSmrg  eval $cacheid=no
673394a251fdSmrgfi
673494a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
673594a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
673694a251fdSmrgfi
673794a251fdSmrg
673894a251fdSmrg
673994a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
674094a251fdSmrg
674194a251fdSmrg		eval supported=\$$cacheid
674294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
674394a251fdSmrg$as_echo "$supported" >&6; }
674494a251fdSmrg		if test "$supported" = "yes" ; then
67456a45684fSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
674694a251fdSmrg			found="yes"
674794a251fdSmrg		fi
674894a251fdSmrg	fi
674994a251fdSmrg
675094a251fdSmrg
675194a251fdSmrg
675294a251fdSmrg# These are currently disabled because they are noisy.  They will be enabled
675394a251fdSmrg# in the future once the codebase is sufficiently modernized to silence
675494a251fdSmrg# them.  For now, I don't want them to drown out the other warnings.
675594a251fdSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
675694a251fdSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
67576a45684fSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
675894a251fdSmrg
675994a251fdSmrg# Turn some warnings into errors, so we don't accidently get successful builds
676094a251fdSmrg# when there are problems that should be fixed.
676194a251fdSmrg
676294a251fdSmrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
676394a251fdSmrg
676494a251fdSmrg
676594a251fdSmrg
676694a251fdSmrg
676794a251fdSmrg
676894a251fdSmrg
676994a251fdSmrg
677094a251fdSmrg
677194a251fdSmrg
677294a251fdSmrg
677394a251fdSmrg
677494a251fdSmrg
677594a251fdSmrg
677694a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
677794a251fdSmrg
677894a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
677994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
678094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
678194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
678294a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
678394a251fdSmrg  $as_echo_n "(cached) " >&6
678494a251fdSmrgelse
678594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
678694a251fdSmrg/* end confdefs.h.  */
678794a251fdSmrgint i;
678894a251fdSmrg_ACEOF
678994a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
679094a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
679194a251fdSmrgelse
679294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
679394a251fdSmrgfi
679494a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
679594a251fdSmrgfi
679694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
679794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
679894a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
679994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
680094a251fdSmrgfi
680194a251fdSmrg
680294a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
680394a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
680494a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
680594a251fdSmrg	fi
680694a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
680794a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
680894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
680994a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
681094a251fdSmrg  $as_echo_n "(cached) " >&6
681194a251fdSmrgelse
681294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
681394a251fdSmrg/* end confdefs.h.  */
681494a251fdSmrgint i;
681594a251fdSmrg_ACEOF
681694a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
681794a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
681894a251fdSmrgelse
681994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
682094a251fdSmrgfi
682194a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
682294a251fdSmrgfi
682394a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
682494a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
682594a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
682694a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
682794a251fdSmrgfi
682894a251fdSmrg
682994a251fdSmrgfound="no"
683094a251fdSmrg
683194a251fdSmrg	if test $found = "no" ; then
68326a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
683394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
683494a251fdSmrg		fi
683594a251fdSmrg
68366a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
683794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
683894a251fdSmrg		fi
683994a251fdSmrg
684094a251fdSmrg		CFLAGS="$CFLAGS -Werror=implicit"
684194a251fdSmrg
684294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
684394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
68446a45684fSmrg		cacheid=xorg_cv_cc_flag__Werror_implicit
684594a251fdSmrg		if eval \${$cacheid+:} false; then :
684694a251fdSmrg  $as_echo_n "(cached) " >&6
684794a251fdSmrgelse
684894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
684994a251fdSmrg/* end confdefs.h.  */
685094a251fdSmrgint i;
685194a251fdSmrgint
685294a251fdSmrgmain ()
685394a251fdSmrg{
685494a251fdSmrg
685594a251fdSmrg  ;
685694a251fdSmrg  return 0;
685794a251fdSmrg}
685894a251fdSmrg_ACEOF
685994a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
686094a251fdSmrg  eval $cacheid=yes
686194a251fdSmrgelse
686294a251fdSmrg  eval $cacheid=no
686394a251fdSmrgfi
686494a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
686594a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
686694a251fdSmrgfi
686794a251fdSmrg
686894a251fdSmrg
686994a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
687094a251fdSmrg
687194a251fdSmrg		eval supported=\$$cacheid
687294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
687394a251fdSmrg$as_echo "$supported" >&6; }
687494a251fdSmrg		if test "$supported" = "yes" ; then
687594a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
687694a251fdSmrg			found="yes"
687794a251fdSmrg		fi
687894a251fdSmrg	fi
687994a251fdSmrg
688094a251fdSmrg	if test $found = "no" ; then
68816a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
688294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
688394a251fdSmrg		fi
688494a251fdSmrg
68856a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
688694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
688794a251fdSmrg		fi
688894a251fdSmrg
688994a251fdSmrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
689094a251fdSmrg
689194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
689294a251fdSmrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
68936a45684fSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
689494a251fdSmrg		if eval \${$cacheid+:} false; then :
689594a251fdSmrg  $as_echo_n "(cached) " >&6
689694a251fdSmrgelse
689794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
689894a251fdSmrg/* end confdefs.h.  */
689994a251fdSmrgint i;
690094a251fdSmrgint
690194a251fdSmrgmain ()
690294a251fdSmrg{
690394a251fdSmrg
690494a251fdSmrg  ;
690594a251fdSmrg  return 0;
690694a251fdSmrg}
690794a251fdSmrg_ACEOF
690894a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
690994a251fdSmrg  eval $cacheid=yes
691094a251fdSmrgelse
691194a251fdSmrg  eval $cacheid=no
691294a251fdSmrgfi
691394a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
691494a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
691594a251fdSmrgfi
691694a251fdSmrg
691794a251fdSmrg
691894a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
691994a251fdSmrg
692094a251fdSmrg		eval supported=\$$cacheid
692194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
692294a251fdSmrg$as_echo "$supported" >&6; }
692394a251fdSmrg		if test "$supported" = "yes" ; then
692494a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
692594a251fdSmrg			found="yes"
692694a251fdSmrg		fi
692794a251fdSmrg	fi
692894a251fdSmrg
692994a251fdSmrg
693094a251fdSmrg
693194a251fdSmrg
693294a251fdSmrg
693394a251fdSmrg
693494a251fdSmrg
693594a251fdSmrg
693694a251fdSmrg
693794a251fdSmrg
693894a251fdSmrg
693994a251fdSmrg
694094a251fdSmrg
694194a251fdSmrg
694294a251fdSmrg
694394a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
694494a251fdSmrg
694594a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
694694a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
694794a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
694894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
694994a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
695094a251fdSmrg  $as_echo_n "(cached) " >&6
695194a251fdSmrgelse
695294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
695394a251fdSmrg/* end confdefs.h.  */
695494a251fdSmrgint i;
695594a251fdSmrg_ACEOF
695694a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
695794a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
695894a251fdSmrgelse
695994a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
696094a251fdSmrgfi
696194a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
696294a251fdSmrgfi
696394a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
696494a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
696594a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
696694a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
696794a251fdSmrgfi
696894a251fdSmrg
696994a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
697094a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
697194a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
697294a251fdSmrg	fi
697394a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
697494a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
697594a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
697694a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
697794a251fdSmrg  $as_echo_n "(cached) " >&6
697894a251fdSmrgelse
697994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
698094a251fdSmrg/* end confdefs.h.  */
698194a251fdSmrgint i;
698294a251fdSmrg_ACEOF
698394a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
698494a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
698594a251fdSmrgelse
698694a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
698794a251fdSmrgfi
698894a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
698994a251fdSmrgfi
699094a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
699194a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
699294a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
699394a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
699494a251fdSmrgfi
699594a251fdSmrg
699694a251fdSmrgfound="no"
699794a251fdSmrg
699894a251fdSmrg	if test $found = "no" ; then
69996a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
700094a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
700194a251fdSmrg		fi
700294a251fdSmrg
70036a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
700494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
700594a251fdSmrg		fi
700694a251fdSmrg
700794a251fdSmrg		CFLAGS="$CFLAGS -Werror=nonnull"
700894a251fdSmrg
700994a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
701094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
70116a45684fSmrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
701294a251fdSmrg		if eval \${$cacheid+:} false; then :
701394a251fdSmrg  $as_echo_n "(cached) " >&6
701494a251fdSmrgelse
701594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
701694a251fdSmrg/* end confdefs.h.  */
701794a251fdSmrgint i;
701894a251fdSmrgint
701994a251fdSmrgmain ()
702094a251fdSmrg{
702194a251fdSmrg
702294a251fdSmrg  ;
702394a251fdSmrg  return 0;
702494a251fdSmrg}
702594a251fdSmrg_ACEOF
702694a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
702794a251fdSmrg  eval $cacheid=yes
702894a251fdSmrgelse
702994a251fdSmrg  eval $cacheid=no
703094a251fdSmrgfi
703194a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
703294a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
703394a251fdSmrgfi
703494a251fdSmrg
703594a251fdSmrg
703694a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
703794a251fdSmrg
703894a251fdSmrg		eval supported=\$$cacheid
703994a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
704094a251fdSmrg$as_echo "$supported" >&6; }
704194a251fdSmrg		if test "$supported" = "yes" ; then
704294a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
704394a251fdSmrg			found="yes"
704494a251fdSmrg		fi
704594a251fdSmrg	fi
704694a251fdSmrg
704794a251fdSmrg
704894a251fdSmrg
704994a251fdSmrg
705094a251fdSmrg
705194a251fdSmrg
705294a251fdSmrg
705394a251fdSmrg
705494a251fdSmrg
705594a251fdSmrg
705694a251fdSmrg
705794a251fdSmrg
705894a251fdSmrg
705994a251fdSmrg
706094a251fdSmrg
706194a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
706294a251fdSmrg
706394a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
706494a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
706594a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
706694a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
706794a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
706894a251fdSmrg  $as_echo_n "(cached) " >&6
706994a251fdSmrgelse
707094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
707194a251fdSmrg/* end confdefs.h.  */
707294a251fdSmrgint i;
707394a251fdSmrg_ACEOF
707494a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
707594a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
707694a251fdSmrgelse
707794a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
707894a251fdSmrgfi
707994a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
708094a251fdSmrgfi
708194a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
708294a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
708394a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
708494a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
708594a251fdSmrgfi
708694a251fdSmrg
708794a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
708894a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
708994a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
709094a251fdSmrg	fi
709194a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
709294a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
709394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
709494a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
709594a251fdSmrg  $as_echo_n "(cached) " >&6
709694a251fdSmrgelse
709794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
709894a251fdSmrg/* end confdefs.h.  */
709994a251fdSmrgint i;
710094a251fdSmrg_ACEOF
710194a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
710294a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
710394a251fdSmrgelse
710494a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
710594a251fdSmrgfi
710694a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
710794a251fdSmrgfi
710894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
710994a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
711094a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
711194a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
711294a251fdSmrgfi
711394a251fdSmrg
711494a251fdSmrgfound="no"
711594a251fdSmrg
711694a251fdSmrg	if test $found = "no" ; then
71176a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
711894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
711994a251fdSmrg		fi
712094a251fdSmrg
71216a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
712294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
712394a251fdSmrg		fi
712494a251fdSmrg
712594a251fdSmrg		CFLAGS="$CFLAGS -Werror=init-self"
712694a251fdSmrg
712794a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
712894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
71296a45684fSmrg		cacheid=xorg_cv_cc_flag__Werror_init_self
713094a251fdSmrg		if eval \${$cacheid+:} false; then :
713194a251fdSmrg  $as_echo_n "(cached) " >&6
713294a251fdSmrgelse
713394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
713494a251fdSmrg/* end confdefs.h.  */
713594a251fdSmrgint i;
713694a251fdSmrgint
713794a251fdSmrgmain ()
713894a251fdSmrg{
713994a251fdSmrg
714094a251fdSmrg  ;
714194a251fdSmrg  return 0;
714294a251fdSmrg}
714394a251fdSmrg_ACEOF
714494a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
714594a251fdSmrg  eval $cacheid=yes
714694a251fdSmrgelse
714794a251fdSmrg  eval $cacheid=no
714894a251fdSmrgfi
714994a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
715094a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
715194a251fdSmrgfi
715294a251fdSmrg
715394a251fdSmrg
715494a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
715594a251fdSmrg
715694a251fdSmrg		eval supported=\$$cacheid
715794a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
715894a251fdSmrg$as_echo "$supported" >&6; }
715994a251fdSmrg		if test "$supported" = "yes" ; then
716094a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
716194a251fdSmrg			found="yes"
716294a251fdSmrg		fi
716394a251fdSmrg	fi
716494a251fdSmrg
716594a251fdSmrg
716694a251fdSmrg
716794a251fdSmrg
716894a251fdSmrg
716994a251fdSmrg
717094a251fdSmrg
717194a251fdSmrg
717294a251fdSmrg
717394a251fdSmrg
717494a251fdSmrg
717594a251fdSmrg
717694a251fdSmrg
717794a251fdSmrg
717894a251fdSmrg
717994a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
718094a251fdSmrg
718194a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
718294a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
718394a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
718494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
718594a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
718694a251fdSmrg  $as_echo_n "(cached) " >&6
718794a251fdSmrgelse
718894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718994a251fdSmrg/* end confdefs.h.  */
719094a251fdSmrgint i;
719194a251fdSmrg_ACEOF
719294a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
719394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
719494a251fdSmrgelse
719594a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
719694a251fdSmrgfi
719794a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
719894a251fdSmrgfi
719994a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
720094a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
720194a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
720294a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
720394a251fdSmrgfi
720494a251fdSmrg
720594a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
720694a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
720794a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
720894a251fdSmrg	fi
720994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
721094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
721194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
721294a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
721394a251fdSmrg  $as_echo_n "(cached) " >&6
721494a251fdSmrgelse
721594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
721694a251fdSmrg/* end confdefs.h.  */
721794a251fdSmrgint i;
721894a251fdSmrg_ACEOF
721994a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
722094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
722194a251fdSmrgelse
722294a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
722394a251fdSmrgfi
722494a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
722594a251fdSmrgfi
722694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
722794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
722894a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
722994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
723094a251fdSmrgfi
723194a251fdSmrg
723294a251fdSmrgfound="no"
723394a251fdSmrg
723494a251fdSmrg	if test $found = "no" ; then
72356a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
723694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
723794a251fdSmrg		fi
723894a251fdSmrg
72396a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
724094a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
724194a251fdSmrg		fi
724294a251fdSmrg
724394a251fdSmrg		CFLAGS="$CFLAGS -Werror=main"
724494a251fdSmrg
724594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
724694a251fdSmrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
72476a45684fSmrg		cacheid=xorg_cv_cc_flag__Werror_main
724894a251fdSmrg		if eval \${$cacheid+:} false; then :
724994a251fdSmrg  $as_echo_n "(cached) " >&6
725094a251fdSmrgelse
725194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
725294a251fdSmrg/* end confdefs.h.  */
725394a251fdSmrgint i;
725494a251fdSmrgint
725594a251fdSmrgmain ()
725694a251fdSmrg{
725794a251fdSmrg
725894a251fdSmrg  ;
725994a251fdSmrg  return 0;
726094a251fdSmrg}
726194a251fdSmrg_ACEOF
726294a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
726394a251fdSmrg  eval $cacheid=yes
726494a251fdSmrgelse
726594a251fdSmrg  eval $cacheid=no
726694a251fdSmrgfi
726794a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
726894a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
726994a251fdSmrgfi
727094a251fdSmrg
727194a251fdSmrg
727294a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
727394a251fdSmrg
727494a251fdSmrg		eval supported=\$$cacheid
727594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
727694a251fdSmrg$as_echo "$supported" >&6; }
727794a251fdSmrg		if test "$supported" = "yes" ; then
727894a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
727994a251fdSmrg			found="yes"
728094a251fdSmrg		fi
728194a251fdSmrg	fi
728294a251fdSmrg
728394a251fdSmrg
728494a251fdSmrg
728594a251fdSmrg
728694a251fdSmrg
728794a251fdSmrg
728894a251fdSmrg
728994a251fdSmrg
729094a251fdSmrg
729194a251fdSmrg
729294a251fdSmrg
729394a251fdSmrg
729494a251fdSmrg
729594a251fdSmrg
729694a251fdSmrg
729794a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
729894a251fdSmrg
729994a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
730094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
730194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
730294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
730394a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
730494a251fdSmrg  $as_echo_n "(cached) " >&6
730594a251fdSmrgelse
730694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
730794a251fdSmrg/* end confdefs.h.  */
730894a251fdSmrgint i;
730994a251fdSmrg_ACEOF
731094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
731194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
731294a251fdSmrgelse
731394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
731494a251fdSmrgfi
731594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
731694a251fdSmrgfi
731794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
731894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
731994a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
732094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
732194a251fdSmrgfi
732294a251fdSmrg
732394a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
732494a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
732594a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
732694a251fdSmrg	fi
732794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
732894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
732994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
733094a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
733194a251fdSmrg  $as_echo_n "(cached) " >&6
733294a251fdSmrgelse
733394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
733494a251fdSmrg/* end confdefs.h.  */
733594a251fdSmrgint i;
733694a251fdSmrg_ACEOF
733794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
733894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
733994a251fdSmrgelse
734094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
734194a251fdSmrgfi
734294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
734394a251fdSmrgfi
734494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
734594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
734694a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
734794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
734894a251fdSmrgfi
734994a251fdSmrg
735094a251fdSmrgfound="no"
735194a251fdSmrg
735294a251fdSmrg	if test $found = "no" ; then
73536a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
735494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
735594a251fdSmrg		fi
735694a251fdSmrg
73576a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
735894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
735994a251fdSmrg		fi
736094a251fdSmrg
736194a251fdSmrg		CFLAGS="$CFLAGS -Werror=missing-braces"
736294a251fdSmrg
736394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
736494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
73656a45684fSmrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
736694a251fdSmrg		if eval \${$cacheid+:} false; then :
736794a251fdSmrg  $as_echo_n "(cached) " >&6
736894a251fdSmrgelse
736994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
737094a251fdSmrg/* end confdefs.h.  */
737194a251fdSmrgint i;
737294a251fdSmrgint
737394a251fdSmrgmain ()
737494a251fdSmrg{
737594a251fdSmrg
737694a251fdSmrg  ;
737794a251fdSmrg  return 0;
737894a251fdSmrg}
737994a251fdSmrg_ACEOF
738094a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
738194a251fdSmrg  eval $cacheid=yes
738294a251fdSmrgelse
738394a251fdSmrg  eval $cacheid=no
738494a251fdSmrgfi
738594a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
738694a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
738794a251fdSmrgfi
738894a251fdSmrg
738994a251fdSmrg
739094a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
739194a251fdSmrg
739294a251fdSmrg		eval supported=\$$cacheid
739394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
739494a251fdSmrg$as_echo "$supported" >&6; }
739594a251fdSmrg		if test "$supported" = "yes" ; then
739694a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
739794a251fdSmrg			found="yes"
739894a251fdSmrg		fi
739994a251fdSmrg	fi
740094a251fdSmrg
740194a251fdSmrg
740294a251fdSmrg
740394a251fdSmrg
740494a251fdSmrg
740594a251fdSmrg
740694a251fdSmrg
740794a251fdSmrg
740894a251fdSmrg
740994a251fdSmrg
741094a251fdSmrg
741194a251fdSmrg
741294a251fdSmrg
741394a251fdSmrg
741494a251fdSmrg
741594a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
741694a251fdSmrg
741794a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
741894a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
741994a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
742094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
742194a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
742294a251fdSmrg  $as_echo_n "(cached) " >&6
742394a251fdSmrgelse
742494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
742594a251fdSmrg/* end confdefs.h.  */
742694a251fdSmrgint i;
742794a251fdSmrg_ACEOF
742894a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
742994a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
743094a251fdSmrgelse
743194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
743294a251fdSmrgfi
743394a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
743494a251fdSmrgfi
743594a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
743694a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
743794a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
743894a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
743994a251fdSmrgfi
744094a251fdSmrg
744194a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
744294a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
744394a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
744494a251fdSmrg	fi
744594a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
744694a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
744794a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
744894a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
744994a251fdSmrg  $as_echo_n "(cached) " >&6
745094a251fdSmrgelse
745194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
745294a251fdSmrg/* end confdefs.h.  */
745394a251fdSmrgint i;
745494a251fdSmrg_ACEOF
745594a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
745694a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
745794a251fdSmrgelse
745894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
745994a251fdSmrgfi
746094a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
746194a251fdSmrgfi
746294a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
746394a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
746494a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
746594a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
746694a251fdSmrgfi
746794a251fdSmrg
746894a251fdSmrgfound="no"
746994a251fdSmrg
747094a251fdSmrg	if test $found = "no" ; then
74716a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
747294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
747394a251fdSmrg		fi
747494a251fdSmrg
74756a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
747694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
747794a251fdSmrg		fi
747894a251fdSmrg
747994a251fdSmrg		CFLAGS="$CFLAGS -Werror=sequence-point"
748094a251fdSmrg
748194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
748294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
74836a45684fSmrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
748494a251fdSmrg		if eval \${$cacheid+:} false; then :
748594a251fdSmrg  $as_echo_n "(cached) " >&6
748694a251fdSmrgelse
748794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
748894a251fdSmrg/* end confdefs.h.  */
748994a251fdSmrgint i;
749094a251fdSmrgint
749194a251fdSmrgmain ()
749294a251fdSmrg{
749394a251fdSmrg
749494a251fdSmrg  ;
749594a251fdSmrg  return 0;
749694a251fdSmrg}
749794a251fdSmrg_ACEOF
749894a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
749994a251fdSmrg  eval $cacheid=yes
750094a251fdSmrgelse
750194a251fdSmrg  eval $cacheid=no
750294a251fdSmrgfi
750394a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
750494a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
750594a251fdSmrgfi
750694a251fdSmrg
750794a251fdSmrg
750894a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
750994a251fdSmrg
751094a251fdSmrg		eval supported=\$$cacheid
751194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
751294a251fdSmrg$as_echo "$supported" >&6; }
751394a251fdSmrg		if test "$supported" = "yes" ; then
751494a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
751594a251fdSmrg			found="yes"
751694a251fdSmrg		fi
751794a251fdSmrg	fi
751894a251fdSmrg
751994a251fdSmrg
752094a251fdSmrg
752194a251fdSmrg
752294a251fdSmrg
752394a251fdSmrg
752494a251fdSmrg
752594a251fdSmrg
752694a251fdSmrg
752794a251fdSmrg
752894a251fdSmrg
752994a251fdSmrg
753094a251fdSmrg
753194a251fdSmrg
753294a251fdSmrg
753394a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
753494a251fdSmrg
753594a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
753694a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
753794a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
753894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
753994a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
754094a251fdSmrg  $as_echo_n "(cached) " >&6
754194a251fdSmrgelse
754294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
754394a251fdSmrg/* end confdefs.h.  */
754494a251fdSmrgint i;
754594a251fdSmrg_ACEOF
754694a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
754794a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
754894a251fdSmrgelse
754994a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
755094a251fdSmrgfi
755194a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
755294a251fdSmrgfi
755394a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
755494a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
755594a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
755694a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
755794a251fdSmrgfi
755894a251fdSmrg
755994a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
756094a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
756194a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
756294a251fdSmrg	fi
756394a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
756494a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
756594a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
756694a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
756794a251fdSmrg  $as_echo_n "(cached) " >&6
756894a251fdSmrgelse
756994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
757094a251fdSmrg/* end confdefs.h.  */
757194a251fdSmrgint i;
757294a251fdSmrg_ACEOF
757394a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
757494a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
757594a251fdSmrgelse
757694a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
757794a251fdSmrgfi
757894a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
757994a251fdSmrgfi
758094a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
758194a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
758294a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
758394a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
758494a251fdSmrgfi
758594a251fdSmrg
758694a251fdSmrgfound="no"
758794a251fdSmrg
758894a251fdSmrg	if test $found = "no" ; then
75896a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
759094a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
759194a251fdSmrg		fi
759294a251fdSmrg
75936a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
759494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
759594a251fdSmrg		fi
759694a251fdSmrg
759794a251fdSmrg		CFLAGS="$CFLAGS -Werror=return-type"
759894a251fdSmrg
759994a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
760094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
76016a45684fSmrg		cacheid=xorg_cv_cc_flag__Werror_return_type
760294a251fdSmrg		if eval \${$cacheid+:} false; then :
760394a251fdSmrg  $as_echo_n "(cached) " >&6
760494a251fdSmrgelse
760594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
760694a251fdSmrg/* end confdefs.h.  */
760794a251fdSmrgint i;
760894a251fdSmrgint
760994a251fdSmrgmain ()
761094a251fdSmrg{
761194a251fdSmrg
761294a251fdSmrg  ;
761394a251fdSmrg  return 0;
761494a251fdSmrg}
761594a251fdSmrg_ACEOF
761694a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
761794a251fdSmrg  eval $cacheid=yes
761894a251fdSmrgelse
761994a251fdSmrg  eval $cacheid=no
762094a251fdSmrgfi
762194a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
762294a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
762394a251fdSmrgfi
762494a251fdSmrg
762594a251fdSmrg
762694a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
762794a251fdSmrg
762894a251fdSmrg		eval supported=\$$cacheid
762994a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
763094a251fdSmrg$as_echo "$supported" >&6; }
763194a251fdSmrg		if test "$supported" = "yes" ; then
763294a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
763394a251fdSmrg			found="yes"
763494a251fdSmrg		fi
763594a251fdSmrg	fi
763694a251fdSmrg
763794a251fdSmrg	if test $found = "no" ; then
76386a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
763994a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
764094a251fdSmrg		fi
764194a251fdSmrg
76426a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
764394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
764494a251fdSmrg		fi
764594a251fdSmrg
764694a251fdSmrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
764794a251fdSmrg
764894a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
764994a251fdSmrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
76506a45684fSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
765194a251fdSmrg		if eval \${$cacheid+:} false; then :
765294a251fdSmrg  $as_echo_n "(cached) " >&6
765394a251fdSmrgelse
765494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
765594a251fdSmrg/* end confdefs.h.  */
765694a251fdSmrgint i;
765794a251fdSmrgint
765894a251fdSmrgmain ()
765994a251fdSmrg{
766094a251fdSmrg
766194a251fdSmrg  ;
766294a251fdSmrg  return 0;
766394a251fdSmrg}
766494a251fdSmrg_ACEOF
766594a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
766694a251fdSmrg  eval $cacheid=yes
766794a251fdSmrgelse
766894a251fdSmrg  eval $cacheid=no
766994a251fdSmrgfi
767094a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
767194a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
767294a251fdSmrgfi
767394a251fdSmrg
767494a251fdSmrg
767594a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
767694a251fdSmrg
767794a251fdSmrg		eval supported=\$$cacheid
767894a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
767994a251fdSmrg$as_echo "$supported" >&6; }
768094a251fdSmrg		if test "$supported" = "yes" ; then
768194a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
768294a251fdSmrg			found="yes"
768394a251fdSmrg		fi
768494a251fdSmrg	fi
768594a251fdSmrg
768694a251fdSmrg
768794a251fdSmrg
768894a251fdSmrg
768994a251fdSmrg
769094a251fdSmrg
769194a251fdSmrg
769294a251fdSmrg
769394a251fdSmrg
769494a251fdSmrg
769594a251fdSmrg
769694a251fdSmrg
769794a251fdSmrg
769894a251fdSmrg
769994a251fdSmrg
770094a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
770194a251fdSmrg
770294a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
770394a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
770494a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
770594a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
770694a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
770794a251fdSmrg  $as_echo_n "(cached) " >&6
770894a251fdSmrgelse
770994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
771094a251fdSmrg/* end confdefs.h.  */
771194a251fdSmrgint i;
771294a251fdSmrg_ACEOF
771394a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
771494a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
771594a251fdSmrgelse
771694a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
771794a251fdSmrgfi
771894a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
771994a251fdSmrgfi
772094a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
772194a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
772294a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
772394a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
772494a251fdSmrgfi
772594a251fdSmrg
772694a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
772794a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
772894a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
772994a251fdSmrg	fi
773094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
773194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
773294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
773394a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
773494a251fdSmrg  $as_echo_n "(cached) " >&6
773594a251fdSmrgelse
773694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
773794a251fdSmrg/* end confdefs.h.  */
773894a251fdSmrgint i;
773994a251fdSmrg_ACEOF
774094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
774194a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
774294a251fdSmrgelse
774394a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
774494a251fdSmrgfi
774594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
774694a251fdSmrgfi
774794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
774894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
774994a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
775094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
775194a251fdSmrgfi
775294a251fdSmrg
775394a251fdSmrgfound="no"
775494a251fdSmrg
775594a251fdSmrg	if test $found = "no" ; then
77566a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
775794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
775894a251fdSmrg		fi
775994a251fdSmrg
77606a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
776194a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
776294a251fdSmrg		fi
776394a251fdSmrg
776494a251fdSmrg		CFLAGS="$CFLAGS -Werror=trigraphs"
776594a251fdSmrg
776694a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
776794a251fdSmrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
77686a45684fSmrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
776994a251fdSmrg		if eval \${$cacheid+:} false; then :
777094a251fdSmrg  $as_echo_n "(cached) " >&6
777194a251fdSmrgelse
777294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
777394a251fdSmrg/* end confdefs.h.  */
777494a251fdSmrgint i;
777594a251fdSmrgint
777694a251fdSmrgmain ()
777794a251fdSmrg{
777894a251fdSmrg
777994a251fdSmrg  ;
778094a251fdSmrg  return 0;
778194a251fdSmrg}
778294a251fdSmrg_ACEOF
778394a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
778494a251fdSmrg  eval $cacheid=yes
778594a251fdSmrgelse
778694a251fdSmrg  eval $cacheid=no
778794a251fdSmrgfi
778894a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
778994a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
779094a251fdSmrgfi
779194a251fdSmrg
779294a251fdSmrg
779394a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
779494a251fdSmrg
779594a251fdSmrg		eval supported=\$$cacheid
779694a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
779794a251fdSmrg$as_echo "$supported" >&6; }
779894a251fdSmrg		if test "$supported" = "yes" ; then
779994a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
780094a251fdSmrg			found="yes"
780194a251fdSmrg		fi
780294a251fdSmrg	fi
780394a251fdSmrg
780494a251fdSmrg
780594a251fdSmrg
780694a251fdSmrg
780794a251fdSmrg
780894a251fdSmrg
780994a251fdSmrg
781094a251fdSmrg
781194a251fdSmrg
781294a251fdSmrg
781394a251fdSmrg
781494a251fdSmrg
781594a251fdSmrg
781694a251fdSmrg
781794a251fdSmrg
781894a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
781994a251fdSmrg
782094a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
782194a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
782294a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
782394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
782494a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
782594a251fdSmrg  $as_echo_n "(cached) " >&6
782694a251fdSmrgelse
782794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
782894a251fdSmrg/* end confdefs.h.  */
782994a251fdSmrgint i;
783094a251fdSmrg_ACEOF
783194a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
783294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
783394a251fdSmrgelse
783494a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
783594a251fdSmrgfi
783694a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
783794a251fdSmrgfi
783894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
783994a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
784094a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
784194a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
784294a251fdSmrgfi
784394a251fdSmrg
784494a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
784594a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
784694a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
784794a251fdSmrg	fi
784894a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
784994a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
785094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
785194a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
785294a251fdSmrg  $as_echo_n "(cached) " >&6
785394a251fdSmrgelse
785494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
785594a251fdSmrg/* end confdefs.h.  */
785694a251fdSmrgint i;
785794a251fdSmrg_ACEOF
785894a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
785994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
786094a251fdSmrgelse
786194a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
786294a251fdSmrgfi
786394a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
786494a251fdSmrgfi
786594a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
786694a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
786794a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
786894a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
786994a251fdSmrgfi
787094a251fdSmrg
787194a251fdSmrgfound="no"
787294a251fdSmrg
787394a251fdSmrg	if test $found = "no" ; then
78746a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
787594a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
787694a251fdSmrg		fi
787794a251fdSmrg
78786a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
787994a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
788094a251fdSmrg		fi
788194a251fdSmrg
788294a251fdSmrg		CFLAGS="$CFLAGS -Werror=array-bounds"
788394a251fdSmrg
788494a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
788594a251fdSmrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
78866a45684fSmrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
788794a251fdSmrg		if eval \${$cacheid+:} false; then :
788894a251fdSmrg  $as_echo_n "(cached) " >&6
788994a251fdSmrgelse
789094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
789194a251fdSmrg/* end confdefs.h.  */
789294a251fdSmrgint i;
789394a251fdSmrgint
789494a251fdSmrgmain ()
789594a251fdSmrg{
789694a251fdSmrg
789794a251fdSmrg  ;
789894a251fdSmrg  return 0;
789994a251fdSmrg}
790094a251fdSmrg_ACEOF
790194a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
790294a251fdSmrg  eval $cacheid=yes
790394a251fdSmrgelse
790494a251fdSmrg  eval $cacheid=no
790594a251fdSmrgfi
790694a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
790794a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
790894a251fdSmrgfi
790994a251fdSmrg
791094a251fdSmrg
791194a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
791294a251fdSmrg
791394a251fdSmrg		eval supported=\$$cacheid
791494a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
791594a251fdSmrg$as_echo "$supported" >&6; }
791694a251fdSmrg		if test "$supported" = "yes" ; then
791794a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
791894a251fdSmrg			found="yes"
791994a251fdSmrg		fi
792094a251fdSmrg	fi
792194a251fdSmrg
792294a251fdSmrg
792394a251fdSmrg
792494a251fdSmrg
792594a251fdSmrg
792694a251fdSmrg
792794a251fdSmrg
792894a251fdSmrg
792994a251fdSmrg
793094a251fdSmrg
793194a251fdSmrg
793294a251fdSmrg
793394a251fdSmrg
793494a251fdSmrg
793594a251fdSmrg
793694a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
793794a251fdSmrg
793894a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
793994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
794094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
794194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
794294a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
794394a251fdSmrg  $as_echo_n "(cached) " >&6
794494a251fdSmrgelse
794594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
794694a251fdSmrg/* end confdefs.h.  */
794794a251fdSmrgint i;
794894a251fdSmrg_ACEOF
794994a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
795094a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
795194a251fdSmrgelse
795294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
795394a251fdSmrgfi
795494a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795594a251fdSmrgfi
795694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
795794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
795894a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
795994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
796094a251fdSmrgfi
796194a251fdSmrg
796294a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
796394a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
796494a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
796594a251fdSmrg	fi
796694a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
796794a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
796894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
796994a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
797094a251fdSmrg  $as_echo_n "(cached) " >&6
797194a251fdSmrgelse
797294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
797394a251fdSmrg/* end confdefs.h.  */
797494a251fdSmrgint i;
797594a251fdSmrg_ACEOF
797694a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
797794a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
797894a251fdSmrgelse
797994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
798094a251fdSmrgfi
798194a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
798294a251fdSmrgfi
798394a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
798494a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
798594a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
798694a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
798794a251fdSmrgfi
798894a251fdSmrg
798994a251fdSmrgfound="no"
799094a251fdSmrg
799194a251fdSmrg	if test $found = "no" ; then
79926a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
799394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
799494a251fdSmrg		fi
799594a251fdSmrg
79966a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
799794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
799894a251fdSmrg		fi
799994a251fdSmrg
800094a251fdSmrg		CFLAGS="$CFLAGS -Werror=write-strings"
800194a251fdSmrg
800294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
800394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
80046a45684fSmrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
800594a251fdSmrg		if eval \${$cacheid+:} false; then :
800694a251fdSmrg  $as_echo_n "(cached) " >&6
800794a251fdSmrgelse
800894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
800994a251fdSmrg/* end confdefs.h.  */
801094a251fdSmrgint i;
801194a251fdSmrgint
801294a251fdSmrgmain ()
801394a251fdSmrg{
801494a251fdSmrg
801594a251fdSmrg  ;
801694a251fdSmrg  return 0;
801794a251fdSmrg}
801894a251fdSmrg_ACEOF
801994a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
802094a251fdSmrg  eval $cacheid=yes
802194a251fdSmrgelse
802294a251fdSmrg  eval $cacheid=no
802394a251fdSmrgfi
802494a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
802594a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
802694a251fdSmrgfi
802794a251fdSmrg
802894a251fdSmrg
802994a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
803094a251fdSmrg
803194a251fdSmrg		eval supported=\$$cacheid
803294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
803394a251fdSmrg$as_echo "$supported" >&6; }
803494a251fdSmrg		if test "$supported" = "yes" ; then
803594a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
803694a251fdSmrg			found="yes"
803794a251fdSmrg		fi
803894a251fdSmrg	fi
803994a251fdSmrg
804094a251fdSmrg
804194a251fdSmrg
804294a251fdSmrg
804394a251fdSmrg
804494a251fdSmrg
804594a251fdSmrg
804694a251fdSmrg
804794a251fdSmrg
804894a251fdSmrg
804994a251fdSmrg
805094a251fdSmrg
805194a251fdSmrg
805294a251fdSmrg
805394a251fdSmrg
805494a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
805594a251fdSmrg
805694a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
805794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
805894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
805994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
806094a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
806194a251fdSmrg  $as_echo_n "(cached) " >&6
806294a251fdSmrgelse
806394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
806494a251fdSmrg/* end confdefs.h.  */
806594a251fdSmrgint i;
806694a251fdSmrg_ACEOF
806794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
806894a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
806994a251fdSmrgelse
807094a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
807194a251fdSmrgfi
807294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
807394a251fdSmrgfi
807494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
807594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
807694a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
807794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
807894a251fdSmrgfi
807994a251fdSmrg
808094a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
808194a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
808294a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
808394a251fdSmrg	fi
808494a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
808594a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
808694a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
808794a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
808894a251fdSmrg  $as_echo_n "(cached) " >&6
808994a251fdSmrgelse
809094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
809194a251fdSmrg/* end confdefs.h.  */
809294a251fdSmrgint i;
809394a251fdSmrg_ACEOF
809494a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
809594a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
809694a251fdSmrgelse
809794a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
809894a251fdSmrgfi
809994a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
810094a251fdSmrgfi
810194a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
810294a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
810394a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
810494a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
810594a251fdSmrgfi
810694a251fdSmrg
810794a251fdSmrgfound="no"
810894a251fdSmrg
810994a251fdSmrg	if test $found = "no" ; then
81106a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
811194a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
811294a251fdSmrg		fi
811394a251fdSmrg
81146a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
811594a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
811694a251fdSmrg		fi
811794a251fdSmrg
811894a251fdSmrg		CFLAGS="$CFLAGS -Werror=address"
811994a251fdSmrg
812094a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
812194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
81226a45684fSmrg		cacheid=xorg_cv_cc_flag__Werror_address
812394a251fdSmrg		if eval \${$cacheid+:} false; then :
812494a251fdSmrg  $as_echo_n "(cached) " >&6
812594a251fdSmrgelse
812694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
812794a251fdSmrg/* end confdefs.h.  */
812894a251fdSmrgint i;
812994a251fdSmrgint
813094a251fdSmrgmain ()
813194a251fdSmrg{
813294a251fdSmrg
813394a251fdSmrg  ;
813494a251fdSmrg  return 0;
813594a251fdSmrg}
813694a251fdSmrg_ACEOF
813794a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
813894a251fdSmrg  eval $cacheid=yes
813994a251fdSmrgelse
814094a251fdSmrg  eval $cacheid=no
814194a251fdSmrgfi
814294a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
814394a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
814494a251fdSmrgfi
814594a251fdSmrg
814694a251fdSmrg
814794a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
814894a251fdSmrg
814994a251fdSmrg		eval supported=\$$cacheid
815094a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
815194a251fdSmrg$as_echo "$supported" >&6; }
815294a251fdSmrg		if test "$supported" = "yes" ; then
815394a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
815494a251fdSmrg			found="yes"
815594a251fdSmrg		fi
815694a251fdSmrg	fi
815794a251fdSmrg
815894a251fdSmrg
815994a251fdSmrg
816094a251fdSmrg
816194a251fdSmrg
816294a251fdSmrg
816394a251fdSmrg
816494a251fdSmrg
816594a251fdSmrg
816694a251fdSmrg
816794a251fdSmrg
816894a251fdSmrg
816994a251fdSmrg
817094a251fdSmrg
817194a251fdSmrg
817294a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
817394a251fdSmrg
817494a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
817594a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
817694a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
817794a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
817894a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
817994a251fdSmrg  $as_echo_n "(cached) " >&6
818094a251fdSmrgelse
818194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
818294a251fdSmrg/* end confdefs.h.  */
818394a251fdSmrgint i;
818494a251fdSmrg_ACEOF
818594a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
818694a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
818794a251fdSmrgelse
818894a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
818994a251fdSmrgfi
819094a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
819194a251fdSmrgfi
819294a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
819394a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
819494a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
819594a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
819694a251fdSmrgfi
819794a251fdSmrg
819894a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
819994a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
820094a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
820194a251fdSmrg	fi
820294a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
820394a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
820494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
820594a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
820694a251fdSmrg  $as_echo_n "(cached) " >&6
820794a251fdSmrgelse
820894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
820994a251fdSmrg/* end confdefs.h.  */
821094a251fdSmrgint i;
821194a251fdSmrg_ACEOF
821294a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
821394a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
821494a251fdSmrgelse
821594a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
821694a251fdSmrgfi
821794a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
821894a251fdSmrgfi
821994a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
822094a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
822194a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
822294a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
822394a251fdSmrgfi
822494a251fdSmrg
822594a251fdSmrgfound="no"
822694a251fdSmrg
822794a251fdSmrg	if test $found = "no" ; then
82286a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
822994a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
823094a251fdSmrg		fi
823194a251fdSmrg
82326a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
823394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
823494a251fdSmrg		fi
823594a251fdSmrg
823694a251fdSmrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
823794a251fdSmrg
823894a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
823994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
82406a45684fSmrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
824194a251fdSmrg		if eval \${$cacheid+:} false; then :
824294a251fdSmrg  $as_echo_n "(cached) " >&6
824394a251fdSmrgelse
824494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
824594a251fdSmrg/* end confdefs.h.  */
824694a251fdSmrgint i;
824794a251fdSmrgint
824894a251fdSmrgmain ()
824994a251fdSmrg{
825094a251fdSmrg
825194a251fdSmrg  ;
825294a251fdSmrg  return 0;
825394a251fdSmrg}
825494a251fdSmrg_ACEOF
825594a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
825694a251fdSmrg  eval $cacheid=yes
825794a251fdSmrgelse
825894a251fdSmrg  eval $cacheid=no
825994a251fdSmrgfi
826094a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
826194a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
826294a251fdSmrgfi
826394a251fdSmrg
826494a251fdSmrg
826594a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
826694a251fdSmrg
826794a251fdSmrg		eval supported=\$$cacheid
826894a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
826994a251fdSmrg$as_echo "$supported" >&6; }
827094a251fdSmrg		if test "$supported" = "yes" ; then
827194a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
827294a251fdSmrg			found="yes"
827394a251fdSmrg		fi
827494a251fdSmrg	fi
827594a251fdSmrg
827694a251fdSmrg	if test $found = "no" ; then
82776a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
827894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
827994a251fdSmrg		fi
828094a251fdSmrg
82816a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
828294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
828394a251fdSmrg		fi
828494a251fdSmrg
828594a251fdSmrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
828694a251fdSmrg
828794a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
828894a251fdSmrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
82896a45684fSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
829094a251fdSmrg		if eval \${$cacheid+:} false; then :
829194a251fdSmrg  $as_echo_n "(cached) " >&6
829294a251fdSmrgelse
829394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
829494a251fdSmrg/* end confdefs.h.  */
829594a251fdSmrgint i;
829694a251fdSmrgint
829794a251fdSmrgmain ()
829894a251fdSmrg{
829994a251fdSmrg
830094a251fdSmrg  ;
830194a251fdSmrg  return 0;
830294a251fdSmrg}
830394a251fdSmrg_ACEOF
830494a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
830594a251fdSmrg  eval $cacheid=yes
830694a251fdSmrgelse
830794a251fdSmrg  eval $cacheid=no
830894a251fdSmrgfi
830994a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
831094a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
831194a251fdSmrgfi
831294a251fdSmrg
831394a251fdSmrg
831494a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
831594a251fdSmrg
831694a251fdSmrg		eval supported=\$$cacheid
831794a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
831894a251fdSmrg$as_echo "$supported" >&6; }
831994a251fdSmrg		if test "$supported" = "yes" ; then
832094a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
832194a251fdSmrg			found="yes"
832294a251fdSmrg		fi
832394a251fdSmrg	fi
832494a251fdSmrg
832594a251fdSmrg
832694a251fdSmrg
832794a251fdSmrg
832894a251fdSmrg
832994a251fdSmrg
833094a251fdSmrg
833194a251fdSmrg
833294a251fdSmrg
833394a251fdSmrg
833494a251fdSmrg
833594a251fdSmrg
833694a251fdSmrg
833794a251fdSmrg
833894a251fdSmrg
833994a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
834094a251fdSmrg
834194a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
834294a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
834394a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
834494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
834594a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
834694a251fdSmrg  $as_echo_n "(cached) " >&6
834794a251fdSmrgelse
834894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
834994a251fdSmrg/* end confdefs.h.  */
835094a251fdSmrgint i;
835194a251fdSmrg_ACEOF
835294a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
835394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
835494a251fdSmrgelse
835594a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
835694a251fdSmrgfi
835794a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
835894a251fdSmrgfi
835994a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
836094a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
836194a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
836294a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
836394a251fdSmrgfi
836494a251fdSmrg
836594a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
836694a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
836794a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
836894a251fdSmrg	fi
836994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
837094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
837194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
837294a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
837394a251fdSmrg  $as_echo_n "(cached) " >&6
837494a251fdSmrgelse
837594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
837694a251fdSmrg/* end confdefs.h.  */
837794a251fdSmrgint i;
837894a251fdSmrg_ACEOF
837994a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
838094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
838194a251fdSmrgelse
838294a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
838394a251fdSmrgfi
838494a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
838594a251fdSmrgfi
838694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
838794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
838894a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
838994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
839094a251fdSmrgfi
839194a251fdSmrg
839294a251fdSmrgfound="no"
839394a251fdSmrg
839494a251fdSmrg	if test $found = "no" ; then
83956a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
839694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
839794a251fdSmrg		fi
839894a251fdSmrg
83996a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
840094a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
840194a251fdSmrg		fi
840294a251fdSmrg
840394a251fdSmrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
840494a251fdSmrg
840594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
840694a251fdSmrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
84076a45684fSmrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
840894a251fdSmrg		if eval \${$cacheid+:} false; then :
840994a251fdSmrg  $as_echo_n "(cached) " >&6
841094a251fdSmrgelse
841194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
841294a251fdSmrg/* end confdefs.h.  */
841394a251fdSmrgint i;
841494a251fdSmrgint
841594a251fdSmrgmain ()
841694a251fdSmrg{
841794a251fdSmrg
841894a251fdSmrg  ;
841994a251fdSmrg  return 0;
842094a251fdSmrg}
842194a251fdSmrg_ACEOF
842294a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
842394a251fdSmrg  eval $cacheid=yes
842494a251fdSmrgelse
842594a251fdSmrg  eval $cacheid=no
842694a251fdSmrgfi
842794a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
842894a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
842994a251fdSmrgfi
843094a251fdSmrg
843194a251fdSmrg
843294a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
843394a251fdSmrg
843494a251fdSmrg		eval supported=\$$cacheid
843594a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
843694a251fdSmrg$as_echo "$supported" >&6; }
843794a251fdSmrg		if test "$supported" = "yes" ; then
843894a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
843994a251fdSmrg			found="yes"
844094a251fdSmrg		fi
844194a251fdSmrg	fi
844294a251fdSmrg
844394a251fdSmrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
844494a251fdSmrgelse
844594a251fdSmrg{ $as_echo "$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
844694a251fdSmrg$as_echo "$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;}
844794a251fdSmrg
844894a251fdSmrg
844994a251fdSmrg
845094a251fdSmrg
845194a251fdSmrg
845294a251fdSmrg
845394a251fdSmrg
845494a251fdSmrg
845594a251fdSmrg
845694a251fdSmrg
845794a251fdSmrg
845894a251fdSmrg
845994a251fdSmrg
846094a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
846194a251fdSmrg
846294a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
846394a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
846494a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
846594a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
846694a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
846794a251fdSmrg  $as_echo_n "(cached) " >&6
846894a251fdSmrgelse
846994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
847094a251fdSmrg/* end confdefs.h.  */
847194a251fdSmrgint i;
847294a251fdSmrg_ACEOF
847394a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
847494a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
847594a251fdSmrgelse
847694a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
847794a251fdSmrgfi
847894a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
847994a251fdSmrgfi
848094a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
848194a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
848294a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
848394a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
848494a251fdSmrgfi
848594a251fdSmrg
848694a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
848794a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
848894a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
848994a251fdSmrg	fi
849094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
849194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
849294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
849394a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
849494a251fdSmrg  $as_echo_n "(cached) " >&6
849594a251fdSmrgelse
849694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
849794a251fdSmrg/* end confdefs.h.  */
849894a251fdSmrgint i;
849994a251fdSmrg_ACEOF
850094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
850194a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
850294a251fdSmrgelse
850394a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
850494a251fdSmrgfi
850594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
850694a251fdSmrgfi
850794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
850894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
850994a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
851094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
851194a251fdSmrgfi
851294a251fdSmrg
851394a251fdSmrgfound="no"
851494a251fdSmrg
851594a251fdSmrg	if test $found = "no" ; then
85166a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
851794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
851894a251fdSmrg		fi
851994a251fdSmrg
85206a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
852194a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
852294a251fdSmrg		fi
852394a251fdSmrg
852494a251fdSmrg		CFLAGS="$CFLAGS -Wimplicit"
852594a251fdSmrg
852694a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
852794a251fdSmrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
852894a251fdSmrg		cacheid=xorg_cv_cc_flag__Wimplicit
852994a251fdSmrg		if eval \${$cacheid+:} false; then :
853094a251fdSmrg  $as_echo_n "(cached) " >&6
853194a251fdSmrgelse
853294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
853394a251fdSmrg/* end confdefs.h.  */
853494a251fdSmrgint i;
853594a251fdSmrgint
853694a251fdSmrgmain ()
853794a251fdSmrg{
853894a251fdSmrg
853994a251fdSmrg  ;
854094a251fdSmrg  return 0;
854194a251fdSmrg}
854294a251fdSmrg_ACEOF
854394a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
854494a251fdSmrg  eval $cacheid=yes
854594a251fdSmrgelse
854694a251fdSmrg  eval $cacheid=no
854794a251fdSmrgfi
854894a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
854994a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
855094a251fdSmrgfi
855194a251fdSmrg
855294a251fdSmrg
855394a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
855494a251fdSmrg
855594a251fdSmrg		eval supported=\$$cacheid
855694a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
855794a251fdSmrg$as_echo "$supported" >&6; }
855894a251fdSmrg		if test "$supported" = "yes" ; then
855994a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
856094a251fdSmrg			found="yes"
856194a251fdSmrg		fi
856294a251fdSmrg	fi
856394a251fdSmrg
856494a251fdSmrg
856594a251fdSmrg
856694a251fdSmrg
856794a251fdSmrg
856894a251fdSmrg
856994a251fdSmrg
857094a251fdSmrg
857194a251fdSmrg
857294a251fdSmrg
857394a251fdSmrg
857494a251fdSmrg
857594a251fdSmrg
857694a251fdSmrg
857794a251fdSmrg
857894a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
857994a251fdSmrg
858094a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
858194a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
858294a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
858394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
858494a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
858594a251fdSmrg  $as_echo_n "(cached) " >&6
858694a251fdSmrgelse
858794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
858894a251fdSmrg/* end confdefs.h.  */
858994a251fdSmrgint i;
859094a251fdSmrg_ACEOF
859194a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
859294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
859394a251fdSmrgelse
859494a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
859594a251fdSmrgfi
859694a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
859794a251fdSmrgfi
859894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
859994a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
860094a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
860194a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
860294a251fdSmrgfi
860394a251fdSmrg
860494a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
860594a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
860694a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
860794a251fdSmrg	fi
860894a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
860994a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
861094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
861194a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
861294a251fdSmrg  $as_echo_n "(cached) " >&6
861394a251fdSmrgelse
861494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
861594a251fdSmrg/* end confdefs.h.  */
861694a251fdSmrgint i;
861794a251fdSmrg_ACEOF
861894a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
861994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
862094a251fdSmrgelse
862194a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
862294a251fdSmrgfi
862394a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
862494a251fdSmrgfi
862594a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
862694a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
862794a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
862894a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
862994a251fdSmrgfi
863094a251fdSmrg
863194a251fdSmrgfound="no"
863294a251fdSmrg
863394a251fdSmrg	if test $found = "no" ; then
86346a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
863594a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
863694a251fdSmrg		fi
863794a251fdSmrg
86386a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
863994a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
864094a251fdSmrg		fi
864194a251fdSmrg
864294a251fdSmrg		CFLAGS="$CFLAGS -Wnonnull"
864394a251fdSmrg
864494a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
864594a251fdSmrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
864694a251fdSmrg		cacheid=xorg_cv_cc_flag__Wnonnull
864794a251fdSmrg		if eval \${$cacheid+:} false; then :
864894a251fdSmrg  $as_echo_n "(cached) " >&6
864994a251fdSmrgelse
865094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
865194a251fdSmrg/* end confdefs.h.  */
865294a251fdSmrgint i;
865394a251fdSmrgint
865494a251fdSmrgmain ()
865594a251fdSmrg{
865694a251fdSmrg
865794a251fdSmrg  ;
865894a251fdSmrg  return 0;
865994a251fdSmrg}
866094a251fdSmrg_ACEOF
866194a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
866294a251fdSmrg  eval $cacheid=yes
866394a251fdSmrgelse
866494a251fdSmrg  eval $cacheid=no
866594a251fdSmrgfi
866694a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
866794a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
866894a251fdSmrgfi
866994a251fdSmrg
867094a251fdSmrg
867194a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
867294a251fdSmrg
867394a251fdSmrg		eval supported=\$$cacheid
867494a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
867594a251fdSmrg$as_echo "$supported" >&6; }
867694a251fdSmrg		if test "$supported" = "yes" ; then
867794a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
867894a251fdSmrg			found="yes"
867994a251fdSmrg		fi
868094a251fdSmrg	fi
868194a251fdSmrg
868294a251fdSmrg
868394a251fdSmrg
868494a251fdSmrg
868594a251fdSmrg
868694a251fdSmrg
868794a251fdSmrg
868894a251fdSmrg
868994a251fdSmrg
869094a251fdSmrg
869194a251fdSmrg
869294a251fdSmrg
869394a251fdSmrg
869494a251fdSmrg
869594a251fdSmrg
869694a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
869794a251fdSmrg
869894a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
869994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
870094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
870194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
870294a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
870394a251fdSmrg  $as_echo_n "(cached) " >&6
870494a251fdSmrgelse
870594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
870694a251fdSmrg/* end confdefs.h.  */
870794a251fdSmrgint i;
870894a251fdSmrg_ACEOF
870994a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
871094a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
871194a251fdSmrgelse
871294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
871394a251fdSmrgfi
871494a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
871594a251fdSmrgfi
871694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
871794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
871894a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
871994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
872094a251fdSmrgfi
872194a251fdSmrg
872294a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
872394a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
872494a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
872594a251fdSmrg	fi
872694a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
872794a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
872894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
872994a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
873094a251fdSmrg  $as_echo_n "(cached) " >&6
873194a251fdSmrgelse
873294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
873394a251fdSmrg/* end confdefs.h.  */
873494a251fdSmrgint i;
873594a251fdSmrg_ACEOF
873694a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
873794a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
873894a251fdSmrgelse
873994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
874094a251fdSmrgfi
874194a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
874294a251fdSmrgfi
874394a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
874494a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
874594a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
874694a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
874794a251fdSmrgfi
874894a251fdSmrg
874994a251fdSmrgfound="no"
875094a251fdSmrg
875194a251fdSmrg	if test $found = "no" ; then
87526a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
875394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
875494a251fdSmrg		fi
875594a251fdSmrg
87566a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
875794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
875894a251fdSmrg		fi
875994a251fdSmrg
876094a251fdSmrg		CFLAGS="$CFLAGS -Winit-self"
876194a251fdSmrg
876294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
876394a251fdSmrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
876494a251fdSmrg		cacheid=xorg_cv_cc_flag__Winit_self
876594a251fdSmrg		if eval \${$cacheid+:} false; then :
876694a251fdSmrg  $as_echo_n "(cached) " >&6
876794a251fdSmrgelse
876894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
876994a251fdSmrg/* end confdefs.h.  */
877094a251fdSmrgint i;
877194a251fdSmrgint
877294a251fdSmrgmain ()
877394a251fdSmrg{
877494a251fdSmrg
877594a251fdSmrg  ;
877694a251fdSmrg  return 0;
877794a251fdSmrg}
877894a251fdSmrg_ACEOF
877994a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
878094a251fdSmrg  eval $cacheid=yes
878194a251fdSmrgelse
878294a251fdSmrg  eval $cacheid=no
878394a251fdSmrgfi
878494a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
878594a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
878694a251fdSmrgfi
878794a251fdSmrg
878894a251fdSmrg
878994a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
879094a251fdSmrg
879194a251fdSmrg		eval supported=\$$cacheid
879294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
879394a251fdSmrg$as_echo "$supported" >&6; }
879494a251fdSmrg		if test "$supported" = "yes" ; then
879594a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
879694a251fdSmrg			found="yes"
879794a251fdSmrg		fi
879894a251fdSmrg	fi
879994a251fdSmrg
880094a251fdSmrg
880194a251fdSmrg
880294a251fdSmrg
880394a251fdSmrg
880494a251fdSmrg
880594a251fdSmrg
880694a251fdSmrg
880794a251fdSmrg
880894a251fdSmrg
880994a251fdSmrg
881094a251fdSmrg
881194a251fdSmrg
881294a251fdSmrg
881394a251fdSmrg
881494a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
881594a251fdSmrg
881694a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
881794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
881894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
881994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
882094a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
882194a251fdSmrg  $as_echo_n "(cached) " >&6
882294a251fdSmrgelse
882394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
882494a251fdSmrg/* end confdefs.h.  */
882594a251fdSmrgint i;
882694a251fdSmrg_ACEOF
882794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
882894a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
882994a251fdSmrgelse
883094a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
883194a251fdSmrgfi
883294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
883394a251fdSmrgfi
883494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
883594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
883694a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
883794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
883894a251fdSmrgfi
883994a251fdSmrg
884094a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
884194a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
884294a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
884394a251fdSmrg	fi
884494a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
884594a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
884694a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
884794a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
884894a251fdSmrg  $as_echo_n "(cached) " >&6
884994a251fdSmrgelse
885094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
885194a251fdSmrg/* end confdefs.h.  */
885294a251fdSmrgint i;
885394a251fdSmrg_ACEOF
885494a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
885594a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
885694a251fdSmrgelse
885794a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
885894a251fdSmrgfi
885994a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
886094a251fdSmrgfi
886194a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
886294a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
886394a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
886494a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
886594a251fdSmrgfi
886694a251fdSmrg
886794a251fdSmrgfound="no"
886894a251fdSmrg
886994a251fdSmrg	if test $found = "no" ; then
88706a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
887194a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
887294a251fdSmrg		fi
887394a251fdSmrg
88746a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
887594a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
887694a251fdSmrg		fi
887794a251fdSmrg
887894a251fdSmrg		CFLAGS="$CFLAGS -Wmain"
887994a251fdSmrg
888094a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
888194a251fdSmrg$as_echo_n "checking if $CC supports -Wmain... " >&6; }
888294a251fdSmrg		cacheid=xorg_cv_cc_flag__Wmain
888394a251fdSmrg		if eval \${$cacheid+:} false; then :
888494a251fdSmrg  $as_echo_n "(cached) " >&6
888594a251fdSmrgelse
888694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
888794a251fdSmrg/* end confdefs.h.  */
888894a251fdSmrgint i;
888994a251fdSmrgint
889094a251fdSmrgmain ()
889194a251fdSmrg{
889294a251fdSmrg
889394a251fdSmrg  ;
889494a251fdSmrg  return 0;
889594a251fdSmrg}
889694a251fdSmrg_ACEOF
889794a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
889894a251fdSmrg  eval $cacheid=yes
889994a251fdSmrgelse
890094a251fdSmrg  eval $cacheid=no
890194a251fdSmrgfi
890294a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
890394a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
890494a251fdSmrgfi
890594a251fdSmrg
890694a251fdSmrg
890794a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
890894a251fdSmrg
890994a251fdSmrg		eval supported=\$$cacheid
891094a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
891194a251fdSmrg$as_echo "$supported" >&6; }
891294a251fdSmrg		if test "$supported" = "yes" ; then
891394a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
891494a251fdSmrg			found="yes"
891594a251fdSmrg		fi
891694a251fdSmrg	fi
891794a251fdSmrg
891894a251fdSmrg
891994a251fdSmrg
892094a251fdSmrg
892194a251fdSmrg
892294a251fdSmrg
892394a251fdSmrg
892494a251fdSmrg
892594a251fdSmrg
892694a251fdSmrg
892794a251fdSmrg
892894a251fdSmrg
892994a251fdSmrg
893094a251fdSmrg
893194a251fdSmrg
893294a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
893394a251fdSmrg
893494a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
893594a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
893694a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
893794a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
893894a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
893994a251fdSmrg  $as_echo_n "(cached) " >&6
894094a251fdSmrgelse
894194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
894294a251fdSmrg/* end confdefs.h.  */
894394a251fdSmrgint i;
894494a251fdSmrg_ACEOF
894594a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
894694a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
894794a251fdSmrgelse
894894a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
894994a251fdSmrgfi
895094a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
895194a251fdSmrgfi
895294a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
895394a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
895494a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
895594a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
895694a251fdSmrgfi
895794a251fdSmrg
895894a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
895994a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
896094a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
896194a251fdSmrg	fi
896294a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
896394a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
896494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
896594a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
896694a251fdSmrg  $as_echo_n "(cached) " >&6
896794a251fdSmrgelse
896894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
896994a251fdSmrg/* end confdefs.h.  */
897094a251fdSmrgint i;
897194a251fdSmrg_ACEOF
897294a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
897394a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
897494a251fdSmrgelse
897594a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
897694a251fdSmrgfi
897794a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
897894a251fdSmrgfi
897994a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
898094a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
898194a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
898294a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
898394a251fdSmrgfi
898494a251fdSmrg
898594a251fdSmrgfound="no"
898694a251fdSmrg
898794a251fdSmrg	if test $found = "no" ; then
89886a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
898994a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
899094a251fdSmrg		fi
899194a251fdSmrg
89926a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
899394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
899494a251fdSmrg		fi
899594a251fdSmrg
899694a251fdSmrg		CFLAGS="$CFLAGS -Wmissing-braces"
899794a251fdSmrg
899894a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
899994a251fdSmrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
900094a251fdSmrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
900194a251fdSmrg		if eval \${$cacheid+:} false; then :
900294a251fdSmrg  $as_echo_n "(cached) " >&6
900394a251fdSmrgelse
900494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
900594a251fdSmrg/* end confdefs.h.  */
900694a251fdSmrgint i;
900794a251fdSmrgint
900894a251fdSmrgmain ()
900994a251fdSmrg{
901094a251fdSmrg
901194a251fdSmrg  ;
901294a251fdSmrg  return 0;
901394a251fdSmrg}
901494a251fdSmrg_ACEOF
901594a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
901694a251fdSmrg  eval $cacheid=yes
901794a251fdSmrgelse
901894a251fdSmrg  eval $cacheid=no
901994a251fdSmrgfi
902094a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
902194a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
902294a251fdSmrgfi
902394a251fdSmrg
902494a251fdSmrg
902594a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
902694a251fdSmrg
902794a251fdSmrg		eval supported=\$$cacheid
902894a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
902994a251fdSmrg$as_echo "$supported" >&6; }
903094a251fdSmrg		if test "$supported" = "yes" ; then
903194a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
903294a251fdSmrg			found="yes"
903394a251fdSmrg		fi
903494a251fdSmrg	fi
903594a251fdSmrg
903694a251fdSmrg
903794a251fdSmrg
903894a251fdSmrg
903994a251fdSmrg
904094a251fdSmrg
904194a251fdSmrg
904294a251fdSmrg
904394a251fdSmrg
904494a251fdSmrg
904594a251fdSmrg
904694a251fdSmrg
904794a251fdSmrg
904894a251fdSmrg
904994a251fdSmrg
905094a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
905194a251fdSmrg
905294a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
905394a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
905494a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
905594a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
905694a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
905794a251fdSmrg  $as_echo_n "(cached) " >&6
905894a251fdSmrgelse
905994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
906094a251fdSmrg/* end confdefs.h.  */
906194a251fdSmrgint i;
906294a251fdSmrg_ACEOF
906394a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
906494a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
906594a251fdSmrgelse
906694a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
906794a251fdSmrgfi
906894a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
906994a251fdSmrgfi
907094a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
907194a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
907294a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
907394a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
907494a251fdSmrgfi
907594a251fdSmrg
907694a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
907794a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
907894a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
907994a251fdSmrg	fi
908094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
908194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
908294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
908394a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
908494a251fdSmrg  $as_echo_n "(cached) " >&6
908594a251fdSmrgelse
908694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
908794a251fdSmrg/* end confdefs.h.  */
908894a251fdSmrgint i;
908994a251fdSmrg_ACEOF
909094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
909194a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
909294a251fdSmrgelse
909394a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
909494a251fdSmrgfi
909594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
909694a251fdSmrgfi
909794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
909894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
909994a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
910094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
910194a251fdSmrgfi
910294a251fdSmrg
910394a251fdSmrgfound="no"
910494a251fdSmrg
910594a251fdSmrg	if test $found = "no" ; then
91066a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
910794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
910894a251fdSmrg		fi
910994a251fdSmrg
91106a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
911194a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
911294a251fdSmrg		fi
911394a251fdSmrg
911494a251fdSmrg		CFLAGS="$CFLAGS -Wsequence-point"
911594a251fdSmrg
911694a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
911794a251fdSmrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
911894a251fdSmrg		cacheid=xorg_cv_cc_flag__Wsequence_point
911994a251fdSmrg		if eval \${$cacheid+:} false; then :
912094a251fdSmrg  $as_echo_n "(cached) " >&6
912194a251fdSmrgelse
912294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
912394a251fdSmrg/* end confdefs.h.  */
912494a251fdSmrgint i;
912594a251fdSmrgint
912694a251fdSmrgmain ()
912794a251fdSmrg{
912894a251fdSmrg
912994a251fdSmrg  ;
913094a251fdSmrg  return 0;
913194a251fdSmrg}
913294a251fdSmrg_ACEOF
913394a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
913494a251fdSmrg  eval $cacheid=yes
913594a251fdSmrgelse
913694a251fdSmrg  eval $cacheid=no
913794a251fdSmrgfi
913894a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
913994a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
914094a251fdSmrgfi
914194a251fdSmrg
914294a251fdSmrg
914394a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
914494a251fdSmrg
914594a251fdSmrg		eval supported=\$$cacheid
914694a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
914794a251fdSmrg$as_echo "$supported" >&6; }
914894a251fdSmrg		if test "$supported" = "yes" ; then
914994a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
915094a251fdSmrg			found="yes"
915194a251fdSmrg		fi
915294a251fdSmrg	fi
915394a251fdSmrg
915494a251fdSmrg
915594a251fdSmrg
915694a251fdSmrg
915794a251fdSmrg
915894a251fdSmrg
915994a251fdSmrg
916094a251fdSmrg
916194a251fdSmrg
916294a251fdSmrg
916394a251fdSmrg
916494a251fdSmrg
916594a251fdSmrg
916694a251fdSmrg
916794a251fdSmrg
916894a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
916994a251fdSmrg
917094a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
917194a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
917294a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
917394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
917494a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
917594a251fdSmrg  $as_echo_n "(cached) " >&6
917694a251fdSmrgelse
917794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
917894a251fdSmrg/* end confdefs.h.  */
917994a251fdSmrgint i;
918094a251fdSmrg_ACEOF
918194a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
918294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
918394a251fdSmrgelse
918494a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
918594a251fdSmrgfi
918694a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
918794a251fdSmrgfi
918894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
918994a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
919094a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
919194a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
919294a251fdSmrgfi
919394a251fdSmrg
919494a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
919594a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
919694a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
919794a251fdSmrg	fi
919894a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
919994a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
920094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
920194a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
920294a251fdSmrg  $as_echo_n "(cached) " >&6
920394a251fdSmrgelse
920494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
920594a251fdSmrg/* end confdefs.h.  */
920694a251fdSmrgint i;
920794a251fdSmrg_ACEOF
920894a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
920994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
921094a251fdSmrgelse
921194a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
921294a251fdSmrgfi
921394a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
921494a251fdSmrgfi
921594a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
921694a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
921794a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
921894a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
921994a251fdSmrgfi
922094a251fdSmrg
922194a251fdSmrgfound="no"
922294a251fdSmrg
922394a251fdSmrg	if test $found = "no" ; then
92246a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
922594a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
922694a251fdSmrg		fi
922794a251fdSmrg
92286a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
922994a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
923094a251fdSmrg		fi
923194a251fdSmrg
923294a251fdSmrg		CFLAGS="$CFLAGS -Wreturn-type"
923394a251fdSmrg
923494a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
923594a251fdSmrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
923694a251fdSmrg		cacheid=xorg_cv_cc_flag__Wreturn_type
923794a251fdSmrg		if eval \${$cacheid+:} false; then :
923894a251fdSmrg  $as_echo_n "(cached) " >&6
923994a251fdSmrgelse
924094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
924194a251fdSmrg/* end confdefs.h.  */
924294a251fdSmrgint i;
924394a251fdSmrgint
924494a251fdSmrgmain ()
924594a251fdSmrg{
924694a251fdSmrg
924794a251fdSmrg  ;
924894a251fdSmrg  return 0;
924994a251fdSmrg}
925094a251fdSmrg_ACEOF
925194a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
925294a251fdSmrg  eval $cacheid=yes
925394a251fdSmrgelse
925494a251fdSmrg  eval $cacheid=no
925594a251fdSmrgfi
925694a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
925794a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
925894a251fdSmrgfi
925994a251fdSmrg
926094a251fdSmrg
926194a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
926294a251fdSmrg
926394a251fdSmrg		eval supported=\$$cacheid
926494a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
926594a251fdSmrg$as_echo "$supported" >&6; }
926694a251fdSmrg		if test "$supported" = "yes" ; then
926794a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
926894a251fdSmrg			found="yes"
926994a251fdSmrg		fi
927094a251fdSmrg	fi
927194a251fdSmrg
927294a251fdSmrg
927394a251fdSmrg
927494a251fdSmrg
927594a251fdSmrg
927694a251fdSmrg
927794a251fdSmrg
927894a251fdSmrg
927994a251fdSmrg
928094a251fdSmrg
928194a251fdSmrg
928294a251fdSmrg
928394a251fdSmrg
928494a251fdSmrg
928594a251fdSmrg
928694a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
928794a251fdSmrg
928894a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
928994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
929094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
929194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
929294a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
929394a251fdSmrg  $as_echo_n "(cached) " >&6
929494a251fdSmrgelse
929594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
929694a251fdSmrg/* end confdefs.h.  */
929794a251fdSmrgint i;
929894a251fdSmrg_ACEOF
929994a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
930094a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
930194a251fdSmrgelse
930294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
930394a251fdSmrgfi
930494a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
930594a251fdSmrgfi
930694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
930794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
930894a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
930994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
931094a251fdSmrgfi
931194a251fdSmrg
931294a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
931394a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
931494a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
931594a251fdSmrg	fi
931694a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
931794a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
931894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
931994a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
932094a251fdSmrg  $as_echo_n "(cached) " >&6
932194a251fdSmrgelse
932294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
932394a251fdSmrg/* end confdefs.h.  */
932494a251fdSmrgint i;
932594a251fdSmrg_ACEOF
932694a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
932794a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
932894a251fdSmrgelse
932994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
933094a251fdSmrgfi
933194a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
933294a251fdSmrgfi
933394a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
933494a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
933594a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
933694a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
933794a251fdSmrgfi
933894a251fdSmrg
933994a251fdSmrgfound="no"
934094a251fdSmrg
934194a251fdSmrg	if test $found = "no" ; then
93426a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
934394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
934494a251fdSmrg		fi
934594a251fdSmrg
93466a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
934794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
934894a251fdSmrg		fi
934994a251fdSmrg
935094a251fdSmrg		CFLAGS="$CFLAGS -Wtrigraphs"
935194a251fdSmrg
935294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
935394a251fdSmrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
935494a251fdSmrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
935594a251fdSmrg		if eval \${$cacheid+:} false; then :
935694a251fdSmrg  $as_echo_n "(cached) " >&6
935794a251fdSmrgelse
935894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
935994a251fdSmrg/* end confdefs.h.  */
936094a251fdSmrgint i;
936194a251fdSmrgint
936294a251fdSmrgmain ()
936394a251fdSmrg{
936494a251fdSmrg
936594a251fdSmrg  ;
936694a251fdSmrg  return 0;
936794a251fdSmrg}
936894a251fdSmrg_ACEOF
936994a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
937094a251fdSmrg  eval $cacheid=yes
937194a251fdSmrgelse
937294a251fdSmrg  eval $cacheid=no
937394a251fdSmrgfi
937494a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
937594a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
937694a251fdSmrgfi
937794a251fdSmrg
937894a251fdSmrg
937994a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
938094a251fdSmrg
938194a251fdSmrg		eval supported=\$$cacheid
938294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
938394a251fdSmrg$as_echo "$supported" >&6; }
938494a251fdSmrg		if test "$supported" = "yes" ; then
938594a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
938694a251fdSmrg			found="yes"
938794a251fdSmrg		fi
938894a251fdSmrg	fi
938994a251fdSmrg
939094a251fdSmrg
939194a251fdSmrg
939294a251fdSmrg
939394a251fdSmrg
939494a251fdSmrg
939594a251fdSmrg
939694a251fdSmrg
939794a251fdSmrg
939894a251fdSmrg
939994a251fdSmrg
940094a251fdSmrg
940194a251fdSmrg
940294a251fdSmrg
940394a251fdSmrg
940494a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
940594a251fdSmrg
940694a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
940794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
940894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
940994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
941094a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
941194a251fdSmrg  $as_echo_n "(cached) " >&6
941294a251fdSmrgelse
941394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
941494a251fdSmrg/* end confdefs.h.  */
941594a251fdSmrgint i;
941694a251fdSmrg_ACEOF
941794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
941894a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
941994a251fdSmrgelse
942094a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
942194a251fdSmrgfi
942294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
942394a251fdSmrgfi
942494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
942594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
942694a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
942794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
942894a251fdSmrgfi
942994a251fdSmrg
943094a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
943194a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
943294a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
943394a251fdSmrg	fi
943494a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
943594a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
943694a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
943794a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
943894a251fdSmrg  $as_echo_n "(cached) " >&6
943994a251fdSmrgelse
944094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
944194a251fdSmrg/* end confdefs.h.  */
944294a251fdSmrgint i;
944394a251fdSmrg_ACEOF
944494a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
944594a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
944694a251fdSmrgelse
944794a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
944894a251fdSmrgfi
944994a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
945094a251fdSmrgfi
945194a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
945294a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
945394a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
945494a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
945594a251fdSmrgfi
945694a251fdSmrg
945794a251fdSmrgfound="no"
945894a251fdSmrg
945994a251fdSmrg	if test $found = "no" ; then
94606a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
946194a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
946294a251fdSmrg		fi
946394a251fdSmrg
94646a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
946594a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
946694a251fdSmrg		fi
946794a251fdSmrg
946894a251fdSmrg		CFLAGS="$CFLAGS -Warray-bounds"
946994a251fdSmrg
947094a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
947194a251fdSmrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
947294a251fdSmrg		cacheid=xorg_cv_cc_flag__Warray_bounds
947394a251fdSmrg		if eval \${$cacheid+:} false; then :
947494a251fdSmrg  $as_echo_n "(cached) " >&6
947594a251fdSmrgelse
947694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
947794a251fdSmrg/* end confdefs.h.  */
947894a251fdSmrgint i;
947994a251fdSmrgint
948094a251fdSmrgmain ()
948194a251fdSmrg{
948294a251fdSmrg
948394a251fdSmrg  ;
948494a251fdSmrg  return 0;
948594a251fdSmrg}
948694a251fdSmrg_ACEOF
948794a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
948894a251fdSmrg  eval $cacheid=yes
948994a251fdSmrgelse
949094a251fdSmrg  eval $cacheid=no
949194a251fdSmrgfi
949294a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
949394a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
949494a251fdSmrgfi
949594a251fdSmrg
949694a251fdSmrg
949794a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
949894a251fdSmrg
949994a251fdSmrg		eval supported=\$$cacheid
950094a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
950194a251fdSmrg$as_echo "$supported" >&6; }
950294a251fdSmrg		if test "$supported" = "yes" ; then
950394a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
950494a251fdSmrg			found="yes"
950594a251fdSmrg		fi
950694a251fdSmrg	fi
950794a251fdSmrg
950894a251fdSmrg
950994a251fdSmrg
951094a251fdSmrg
951194a251fdSmrg
951294a251fdSmrg
951394a251fdSmrg
951494a251fdSmrg
951594a251fdSmrg
951694a251fdSmrg
951794a251fdSmrg
951894a251fdSmrg
951994a251fdSmrg
952094a251fdSmrg
952194a251fdSmrg
952294a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
952394a251fdSmrg
952494a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
952594a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
952694a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
952794a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
952894a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
952994a251fdSmrg  $as_echo_n "(cached) " >&6
953094a251fdSmrgelse
953194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
953294a251fdSmrg/* end confdefs.h.  */
953394a251fdSmrgint i;
953494a251fdSmrg_ACEOF
953594a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
953694a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
953794a251fdSmrgelse
953894a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
953994a251fdSmrgfi
954094a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
954194a251fdSmrgfi
954294a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
954394a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
954494a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
954594a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
954694a251fdSmrgfi
954794a251fdSmrg
954894a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
954994a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
955094a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
955194a251fdSmrg	fi
955294a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
955394a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
955494a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
955594a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
955694a251fdSmrg  $as_echo_n "(cached) " >&6
955794a251fdSmrgelse
955894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
955994a251fdSmrg/* end confdefs.h.  */
956094a251fdSmrgint i;
956194a251fdSmrg_ACEOF
956294a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
956394a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
956494a251fdSmrgelse
956594a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
956694a251fdSmrgfi
956794a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
956894a251fdSmrgfi
956994a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
957094a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
957194a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
957294a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
957394a251fdSmrgfi
957494a251fdSmrg
957594a251fdSmrgfound="no"
957694a251fdSmrg
957794a251fdSmrg	if test $found = "no" ; then
95786a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
957994a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
958094a251fdSmrg		fi
958194a251fdSmrg
95826a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
958394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
958494a251fdSmrg		fi
958594a251fdSmrg
958694a251fdSmrg		CFLAGS="$CFLAGS -Wwrite-strings"
958794a251fdSmrg
958894a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
958994a251fdSmrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
959094a251fdSmrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
959194a251fdSmrg		if eval \${$cacheid+:} false; then :
959294a251fdSmrg  $as_echo_n "(cached) " >&6
959394a251fdSmrgelse
959494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
959594a251fdSmrg/* end confdefs.h.  */
959694a251fdSmrgint i;
959794a251fdSmrgint
959894a251fdSmrgmain ()
959994a251fdSmrg{
960094a251fdSmrg
960194a251fdSmrg  ;
960294a251fdSmrg  return 0;
960394a251fdSmrg}
960494a251fdSmrg_ACEOF
960594a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
960694a251fdSmrg  eval $cacheid=yes
960794a251fdSmrgelse
960894a251fdSmrg  eval $cacheid=no
960994a251fdSmrgfi
961094a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
961194a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
961294a251fdSmrgfi
961394a251fdSmrg
961494a251fdSmrg
961594a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
961694a251fdSmrg
961794a251fdSmrg		eval supported=\$$cacheid
961894a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
961994a251fdSmrg$as_echo "$supported" >&6; }
962094a251fdSmrg		if test "$supported" = "yes" ; then
962194a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
962294a251fdSmrg			found="yes"
962394a251fdSmrg		fi
962494a251fdSmrg	fi
962594a251fdSmrg
962694a251fdSmrg
962794a251fdSmrg
962894a251fdSmrg
962994a251fdSmrg
963094a251fdSmrg
963194a251fdSmrg
963294a251fdSmrg
963394a251fdSmrg
963494a251fdSmrg
963594a251fdSmrg
963694a251fdSmrg
963794a251fdSmrg
963894a251fdSmrg
963994a251fdSmrg
964094a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
964194a251fdSmrg
964294a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
964394a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
964494a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
964594a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
964694a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
964794a251fdSmrg  $as_echo_n "(cached) " >&6
964894a251fdSmrgelse
964994a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
965094a251fdSmrg/* end confdefs.h.  */
965194a251fdSmrgint i;
965294a251fdSmrg_ACEOF
965394a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
965494a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
965594a251fdSmrgelse
965694a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
965794a251fdSmrgfi
965894a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
965994a251fdSmrgfi
966094a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
966194a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
966294a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
966394a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
966494a251fdSmrgfi
966594a251fdSmrg
966694a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
966794a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
966894a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
966994a251fdSmrg	fi
967094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
967194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
967294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
967394a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
967494a251fdSmrg  $as_echo_n "(cached) " >&6
967594a251fdSmrgelse
967694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
967794a251fdSmrg/* end confdefs.h.  */
967894a251fdSmrgint i;
967994a251fdSmrg_ACEOF
968094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
968194a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
968294a251fdSmrgelse
968394a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
968494a251fdSmrgfi
968594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
968694a251fdSmrgfi
968794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
968894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
968994a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
969094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
969194a251fdSmrgfi
969294a251fdSmrg
969394a251fdSmrgfound="no"
969494a251fdSmrg
969594a251fdSmrg	if test $found = "no" ; then
96966a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
969794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
969894a251fdSmrg		fi
969994a251fdSmrg
97006a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
970194a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
970294a251fdSmrg		fi
970394a251fdSmrg
970494a251fdSmrg		CFLAGS="$CFLAGS -Waddress"
970594a251fdSmrg
970694a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
970794a251fdSmrg$as_echo_n "checking if $CC supports -Waddress... " >&6; }
970894a251fdSmrg		cacheid=xorg_cv_cc_flag__Waddress
970994a251fdSmrg		if eval \${$cacheid+:} false; then :
971094a251fdSmrg  $as_echo_n "(cached) " >&6
971194a251fdSmrgelse
971294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
971394a251fdSmrg/* end confdefs.h.  */
971494a251fdSmrgint i;
971594a251fdSmrgint
971694a251fdSmrgmain ()
971794a251fdSmrg{
971894a251fdSmrg
971994a251fdSmrg  ;
972094a251fdSmrg  return 0;
972194a251fdSmrg}
972294a251fdSmrg_ACEOF
972394a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
972494a251fdSmrg  eval $cacheid=yes
972594a251fdSmrgelse
972694a251fdSmrg  eval $cacheid=no
972794a251fdSmrgfi
972894a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
972994a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
973094a251fdSmrgfi
973194a251fdSmrg
973294a251fdSmrg
973394a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
973494a251fdSmrg
973594a251fdSmrg		eval supported=\$$cacheid
973694a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
973794a251fdSmrg$as_echo "$supported" >&6; }
973894a251fdSmrg		if test "$supported" = "yes" ; then
973994a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
974094a251fdSmrg			found="yes"
974194a251fdSmrg		fi
974294a251fdSmrg	fi
974394a251fdSmrg
974494a251fdSmrg
974594a251fdSmrg
974694a251fdSmrg
974794a251fdSmrg
974894a251fdSmrg
974994a251fdSmrg
975094a251fdSmrg
975194a251fdSmrg
975294a251fdSmrg
975394a251fdSmrg
975494a251fdSmrg
975594a251fdSmrg
975694a251fdSmrg
975794a251fdSmrg
975894a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
975994a251fdSmrg
976094a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
976194a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
976294a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
976394a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
976494a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
976594a251fdSmrg  $as_echo_n "(cached) " >&6
976694a251fdSmrgelse
976794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
976894a251fdSmrg/* end confdefs.h.  */
976994a251fdSmrgint i;
977094a251fdSmrg_ACEOF
977194a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
977294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
977394a251fdSmrgelse
977494a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
977594a251fdSmrgfi
977694a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
977794a251fdSmrgfi
977894a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
977994a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
978094a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
978194a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
978294a251fdSmrgfi
978394a251fdSmrg
978494a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
978594a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
978694a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
978794a251fdSmrg	fi
978894a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
978994a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
979094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
979194a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
979294a251fdSmrg  $as_echo_n "(cached) " >&6
979394a251fdSmrgelse
979494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979594a251fdSmrg/* end confdefs.h.  */
979694a251fdSmrgint i;
979794a251fdSmrg_ACEOF
979894a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
979994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
980094a251fdSmrgelse
980194a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
980294a251fdSmrgfi
980394a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
980494a251fdSmrgfi
980594a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
980694a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
980794a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
980894a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
980994a251fdSmrgfi
981094a251fdSmrg
981194a251fdSmrgfound="no"
981294a251fdSmrg
981394a251fdSmrg	if test $found = "no" ; then
98146a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
981594a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
981694a251fdSmrg		fi
981794a251fdSmrg
98186a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
981994a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
982094a251fdSmrg		fi
982194a251fdSmrg
982294a251fdSmrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
982394a251fdSmrg
982494a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
982594a251fdSmrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
982694a251fdSmrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
982794a251fdSmrg		if eval \${$cacheid+:} false; then :
982894a251fdSmrg  $as_echo_n "(cached) " >&6
982994a251fdSmrgelse
983094a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
983194a251fdSmrg/* end confdefs.h.  */
983294a251fdSmrgint i;
983394a251fdSmrgint
983494a251fdSmrgmain ()
983594a251fdSmrg{
983694a251fdSmrg
983794a251fdSmrg  ;
983894a251fdSmrg  return 0;
983994a251fdSmrg}
984094a251fdSmrg_ACEOF
984194a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
984294a251fdSmrg  eval $cacheid=yes
984394a251fdSmrgelse
984494a251fdSmrg  eval $cacheid=no
984594a251fdSmrgfi
984694a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
984794a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
984894a251fdSmrgfi
984994a251fdSmrg
985094a251fdSmrg
985194a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
985294a251fdSmrg
985394a251fdSmrg		eval supported=\$$cacheid
985494a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
985594a251fdSmrg$as_echo "$supported" >&6; }
985694a251fdSmrg		if test "$supported" = "yes" ; then
985794a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
985894a251fdSmrg			found="yes"
985994a251fdSmrg		fi
986094a251fdSmrg	fi
986194a251fdSmrg
986294a251fdSmrg
986394a251fdSmrg
986494a251fdSmrg
986594a251fdSmrg
986694a251fdSmrg
986794a251fdSmrg
986894a251fdSmrg
986994a251fdSmrg
987094a251fdSmrg
987194a251fdSmrg
987294a251fdSmrg
987394a251fdSmrg
987494a251fdSmrg
987594a251fdSmrg
987694a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
987794a251fdSmrg
987894a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
987994a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
988094a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
988194a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
988294a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
988394a251fdSmrg  $as_echo_n "(cached) " >&6
988494a251fdSmrgelse
988594a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
988694a251fdSmrg/* end confdefs.h.  */
988794a251fdSmrgint i;
988894a251fdSmrg_ACEOF
988994a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
989094a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
989194a251fdSmrgelse
989294a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
989394a251fdSmrgfi
989494a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
989594a251fdSmrgfi
989694a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
989794a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
989894a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
989994a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
990094a251fdSmrgfi
990194a251fdSmrg
990294a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
990394a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
990494a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
990594a251fdSmrg	fi
990694a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
990794a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
990894a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
990994a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
991094a251fdSmrg  $as_echo_n "(cached) " >&6
991194a251fdSmrgelse
991294a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
991394a251fdSmrg/* end confdefs.h.  */
991494a251fdSmrgint i;
991594a251fdSmrg_ACEOF
991694a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
991794a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
991894a251fdSmrgelse
991994a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
992094a251fdSmrgfi
992194a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
992294a251fdSmrgfi
992394a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
992494a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
992594a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
992694a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
992794a251fdSmrgfi
992894a251fdSmrg
992994a251fdSmrgfound="no"
993094a251fdSmrg
993194a251fdSmrg	if test $found = "no" ; then
99326a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
993394a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
993494a251fdSmrg		fi
993594a251fdSmrg
99366a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
993794a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
993894a251fdSmrg		fi
993994a251fdSmrg
994094a251fdSmrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
994194a251fdSmrg
994294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
994394a251fdSmrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
994494a251fdSmrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
994594a251fdSmrg		if eval \${$cacheid+:} false; then :
994694a251fdSmrg  $as_echo_n "(cached) " >&6
994794a251fdSmrgelse
994894a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
994994a251fdSmrg/* end confdefs.h.  */
995094a251fdSmrgint i;
995194a251fdSmrgint
995294a251fdSmrgmain ()
995394a251fdSmrg{
995494a251fdSmrg
995594a251fdSmrg  ;
995694a251fdSmrg  return 0;
995794a251fdSmrg}
995894a251fdSmrg_ACEOF
995994a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
996094a251fdSmrg  eval $cacheid=yes
996194a251fdSmrgelse
996294a251fdSmrg  eval $cacheid=no
996394a251fdSmrgfi
996494a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
996594a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
996694a251fdSmrgfi
996794a251fdSmrg
996894a251fdSmrg
996994a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
997094a251fdSmrg
997194a251fdSmrg		eval supported=\$$cacheid
997294a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
997394a251fdSmrg$as_echo "$supported" >&6; }
997494a251fdSmrg		if test "$supported" = "yes" ; then
997594a251fdSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
997694a251fdSmrg			found="yes"
997794a251fdSmrg		fi
997894a251fdSmrg	fi
997994a251fdSmrg
998094a251fdSmrg
998194a251fdSmrgfi
998294a251fdSmrg
998394a251fdSmrg
998494a251fdSmrg
998594a251fdSmrg
998694a251fdSmrg
998794a251fdSmrg
998894a251fdSmrg
998994a251fdSmrg		CWARNFLAGS="$BASE_CFLAGS"
999094a251fdSmrg		if  test "x$GCC" = xyes ; then
999194a251fdSmrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
999294a251fdSmrg		fi
999394a251fdSmrg
999494a251fdSmrg
999594a251fdSmrg
999694a251fdSmrg
999794a251fdSmrg
999894a251fdSmrg
999994a251fdSmrg
1000094a251fdSmrg
1000194a251fdSmrg# Check whether --enable-strict-compilation was given.
1000294a251fdSmrgif test "${enable_strict_compilation+set}" = set; then :
1000394a251fdSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
1000494a251fdSmrgelse
1000594a251fdSmrg  STRICT_COMPILE=no
1000694a251fdSmrgfi
1000794a251fdSmrg
1000894a251fdSmrg
1000994a251fdSmrg
1001094a251fdSmrg
1001194a251fdSmrg
1001294a251fdSmrg
1001394a251fdSmrgSTRICT_CFLAGS=""
1001494a251fdSmrg
1001594a251fdSmrg
1001694a251fdSmrg
1001794a251fdSmrg
1001894a251fdSmrg
1001994a251fdSmrg
1002094a251fdSmrg
1002194a251fdSmrg
1002294a251fdSmrg
1002394a251fdSmrg
1002494a251fdSmrg
1002594a251fdSmrg
1002694a251fdSmrg
1002794a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
1002894a251fdSmrg
1002994a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1003094a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1003194a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1003294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1003394a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1003494a251fdSmrg  $as_echo_n "(cached) " >&6
1003594a251fdSmrgelse
1003694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1003794a251fdSmrg/* end confdefs.h.  */
1003894a251fdSmrgint i;
1003994a251fdSmrg_ACEOF
1004094a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
1004194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
1004294a251fdSmrgelse
1004394a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
1004494a251fdSmrgfi
1004594a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1004694a251fdSmrgfi
1004794a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1004894a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1004994a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1005094a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
1005194a251fdSmrgfi
1005294a251fdSmrg
1005394a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1005494a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1005594a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1005694a251fdSmrg	fi
1005794a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1005894a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1005994a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1006094a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1006194a251fdSmrg  $as_echo_n "(cached) " >&6
1006294a251fdSmrgelse
1006394a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1006494a251fdSmrg/* end confdefs.h.  */
1006594a251fdSmrgint i;
1006694a251fdSmrg_ACEOF
1006794a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
1006894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1006994a251fdSmrgelse
1007094a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
1007194a251fdSmrgfi
1007294a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1007394a251fdSmrgfi
1007494a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1007594a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1007694a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1007794a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
1007894a251fdSmrgfi
1007994a251fdSmrg
1008094a251fdSmrgfound="no"
10081e6232409Smrg
1008294a251fdSmrg	if test $found = "no" ; then
100836a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1008494a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1008594a251fdSmrg		fi
1008694a251fdSmrg
100876a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1008894a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1008994a251fdSmrg		fi
1009094a251fdSmrg
1009194a251fdSmrg		CFLAGS="$CFLAGS -pedantic"
1009294a251fdSmrg
1009394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
1009494a251fdSmrg$as_echo_n "checking if $CC supports -pedantic... " >&6; }
1009594a251fdSmrg		cacheid=xorg_cv_cc_flag__pedantic
1009694a251fdSmrg		if eval \${$cacheid+:} false; then :
100978fff3f40Smrg  $as_echo_n "(cached) " >&6
10098e6232409Smrgelse
100998fff3f40Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100e6232409Smrg/* end confdefs.h.  */
1010194a251fdSmrgint i;
10102e6232409Smrgint
10103e6232409Smrgmain ()
10104e6232409Smrg{
10105e6232409Smrg
10106e6232409Smrg  ;
10107e6232409Smrg  return 0;
10108e6232409Smrg}
10109e6232409Smrg_ACEOF
1011094a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
1011194a251fdSmrg  eval $cacheid=yes
1011294a251fdSmrgelse
1011394a251fdSmrg  eval $cacheid=no
1011494a251fdSmrgfi
1011594a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
1011694a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
1011794a251fdSmrgfi
1011894a251fdSmrg
1011994a251fdSmrg
1012094a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
1012194a251fdSmrg
1012294a251fdSmrg		eval supported=\$$cacheid
1012394a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1012494a251fdSmrg$as_echo "$supported" >&6; }
1012594a251fdSmrg		if test "$supported" = "yes" ; then
1012694a251fdSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
1012794a251fdSmrg			found="yes"
1012894a251fdSmrg		fi
1012994a251fdSmrg	fi
1013094a251fdSmrg
1013194a251fdSmrg
1013294a251fdSmrg
1013394a251fdSmrg
1013494a251fdSmrg
1013594a251fdSmrg
1013694a251fdSmrg
1013794a251fdSmrg
1013894a251fdSmrg
1013994a251fdSmrg
1014094a251fdSmrg
1014194a251fdSmrg
1014294a251fdSmrg
1014394a251fdSmrg
1014494a251fdSmrg
1014594a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
1014694a251fdSmrg
1014794a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1014894a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1014994a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1015094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1015194a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1015294a251fdSmrg  $as_echo_n "(cached) " >&6
1015394a251fdSmrgelse
1015494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1015594a251fdSmrg/* end confdefs.h.  */
1015694a251fdSmrgint i;
1015794a251fdSmrg_ACEOF
101588fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
1015994a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10160e6232409Smrgelse
1016194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
10162e6232409Smrgfi
10163e6232409Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10164e6232409Smrgfi
1016594a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1016694a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1016794a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1016894a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
101698fff3f40Smrgfi
1017094a251fdSmrg
1017194a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1017294a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1017394a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1017494a251fdSmrg	fi
1017594a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1017694a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1017794a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1017894a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
101798fff3f40Smrg  $as_echo_n "(cached) " >&6
10180e6232409Smrgelse
1018194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182e6232409Smrg/* end confdefs.h.  */
1018394a251fdSmrgint i;
10184e6232409Smrg_ACEOF
101858fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
1018694a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10187e6232409Smrgelse
1018894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
1018994a251fdSmrgfi
1019094a251fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1019194a251fdSmrgfi
1019294a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1019394a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1019494a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1019594a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
1019694a251fdSmrgfi
1019794a251fdSmrg
1019894a251fdSmrgfound="no"
10199e6232409Smrg
1020094a251fdSmrg	if test $found = "no" ; then
102016a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1020294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1020394a251fdSmrg		fi
1020494a251fdSmrg
102056a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1020694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1020794a251fdSmrg		fi
1020894a251fdSmrg
1020994a251fdSmrg		CFLAGS="$CFLAGS -Werror"
1021094a251fdSmrg
1021194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
1021294a251fdSmrg$as_echo_n "checking if $CC supports -Werror... " >&6; }
1021394a251fdSmrg		cacheid=xorg_cv_cc_flag__Werror
1021494a251fdSmrg		if eval \${$cacheid+:} false; then :
1021594a251fdSmrg  $as_echo_n "(cached) " >&6
1021694a251fdSmrgelse
1021794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1021894a251fdSmrg/* end confdefs.h.  */
1021994a251fdSmrgint i;
10220e6232409Smrgint
10221e6232409Smrgmain ()
10222e6232409Smrg{
10223e6232409Smrg
10224e6232409Smrg  ;
102258fff3f40Smrg  return 0;
102268fff3f40Smrg}
102278fff3f40Smrg_ACEOF
1022894a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
1022994a251fdSmrg  eval $cacheid=yes
1023094a251fdSmrgelse
1023194a251fdSmrg  eval $cacheid=no
1023294a251fdSmrgfi
1023394a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
1023494a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
1023594a251fdSmrgfi
1023694a251fdSmrg
102378fff3f40Smrg
1023894a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
1023994a251fdSmrg
1024094a251fdSmrg		eval supported=\$$cacheid
1024194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1024294a251fdSmrg$as_echo "$supported" >&6; }
1024394a251fdSmrg		if test "$supported" = "yes" ; then
1024494a251fdSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
1024594a251fdSmrg			found="yes"
1024694a251fdSmrg		fi
1024794a251fdSmrg	fi
1024894a251fdSmrg
1024994a251fdSmrg	if test $found = "no" ; then
102506a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1025194a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1025294a251fdSmrg		fi
1025394a251fdSmrg
102546a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1025594a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1025694a251fdSmrg		fi
1025794a251fdSmrg
1025894a251fdSmrg		CFLAGS="$CFLAGS -errwarn"
1025994a251fdSmrg
1026094a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
1026194a251fdSmrg$as_echo_n "checking if $CC supports -errwarn... " >&6; }
1026294a251fdSmrg		cacheid=xorg_cv_cc_flag__errwarn
1026394a251fdSmrg		if eval \${$cacheid+:} false; then :
1026494a251fdSmrg  $as_echo_n "(cached) " >&6
10265e6232409Smrgelse
1026694a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102678fff3f40Smrg/* end confdefs.h.  */
1026894a251fdSmrgint i;
102698fff3f40Smrgint
102708fff3f40Smrgmain ()
102718fff3f40Smrg{
10272e6232409Smrg
102738fff3f40Smrg  ;
102748fff3f40Smrg  return 0;
102758fff3f40Smrg}
102768fff3f40Smrg_ACEOF
1027794a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
1027894a251fdSmrg  eval $cacheid=yes
1027994a251fdSmrgelse
1028094a251fdSmrg  eval $cacheid=no
1028194a251fdSmrgfi
1028294a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
1028394a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
1028494a251fdSmrgfi
1028594a251fdSmrg
1028694a251fdSmrg
1028794a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
1028894a251fdSmrg
1028994a251fdSmrg		eval supported=\$$cacheid
1029094a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1029194a251fdSmrg$as_echo "$supported" >&6; }
1029294a251fdSmrg		if test "$supported" = "yes" ; then
1029394a251fdSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
1029494a251fdSmrg			found="yes"
1029594a251fdSmrg		fi
1029694a251fdSmrg	fi
1029794a251fdSmrg
1029894a251fdSmrg
1029994a251fdSmrg
1030094a251fdSmrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
1030194a251fdSmrg# activate it with -Werror, so we add it here explicitly.
1030294a251fdSmrg
1030394a251fdSmrg
1030494a251fdSmrg
1030594a251fdSmrg
1030694a251fdSmrg
1030794a251fdSmrg
1030894a251fdSmrg
1030994a251fdSmrg
1031094a251fdSmrg
1031194a251fdSmrg
1031294a251fdSmrg
1031394a251fdSmrg
1031494a251fdSmrg
1031594a251fdSmrgxorg_testset_save_CFLAGS="$CFLAGS"
1031694a251fdSmrg
1031794a251fdSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1031894a251fdSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1031994a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1032094a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1032194a251fdSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1032294a251fdSmrg  $as_echo_n "(cached) " >&6
1032394a251fdSmrgelse
1032494a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1032594a251fdSmrg/* end confdefs.h.  */
1032694a251fdSmrgint i;
1032794a251fdSmrg_ACEOF
103288fff3f40Smrgif ac_fn_c_try_compile "$LINENO"; then :
1032994a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
1033094a251fdSmrgelse
1033194a251fdSmrg  xorg_cv_cc_flag_unknown_warning_option=no
10332e6232409Smrgfi
10333e6232409Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10334e6232409Smrgfi
1033594a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1033694a251fdSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1033794a251fdSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1033894a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
1033994a251fdSmrgfi
1034094a251fdSmrg
1034194a251fdSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1034294a251fdSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1034394a251fdSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1034494a251fdSmrg	fi
1034594a251fdSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1034694a251fdSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1034794a251fdSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1034894a251fdSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1034994a251fdSmrg  $as_echo_n "(cached) " >&6
1035094a251fdSmrgelse
1035194a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1035294a251fdSmrg/* end confdefs.h.  */
1035394a251fdSmrgint i;
1035494a251fdSmrg_ACEOF
1035594a251fdSmrgif ac_fn_c_try_compile "$LINENO"; then :
1035694a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1035794a251fdSmrgelse
1035894a251fdSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
10359e6232409Smrgfi
10360e6232409Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10361e6232409Smrgfi
1036294a251fdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1036394a251fdSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1036494a251fdSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1036594a251fdSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10366e6232409Smrgfi
1036794a251fdSmrg
1036894a251fdSmrgfound="no"
1036994a251fdSmrg
1037094a251fdSmrg	if test $found = "no" ; then
103716a45684fSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1037294a251fdSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1037394a251fdSmrg		fi
1037494a251fdSmrg
103756a45684fSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1037694a251fdSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1037794a251fdSmrg		fi
1037894a251fdSmrg
1037994a251fdSmrg		CFLAGS="$CFLAGS -Werror=attributes"
1038094a251fdSmrg
1038194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
1038294a251fdSmrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
103836a45684fSmrg		cacheid=xorg_cv_cc_flag__Werror_attributes
1038494a251fdSmrg		if eval \${$cacheid+:} false; then :
103858fff3f40Smrg  $as_echo_n "(cached) " >&6
10386e6232409Smrgelse
1038794a251fdSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388e6232409Smrg/* end confdefs.h.  */
1038994a251fdSmrgint i;
1039094a251fdSmrgint
1039194a251fdSmrgmain ()
10392e6232409Smrg{
1039394a251fdSmrg
1039494a251fdSmrg  ;
1039594a251fdSmrg  return 0;
10396e6232409Smrg}
1039794a251fdSmrg_ACEOF
1039894a251fdSmrgif ac_fn_c_try_link "$LINENO"; then :
1039994a251fdSmrg  eval $cacheid=yes
1040094a251fdSmrgelse
1040194a251fdSmrg  eval $cacheid=no
1040294a251fdSmrgfi
1040394a251fdSmrgrm -f core conftest.err conftest.$ac_objext \
1040494a251fdSmrg    conftest$ac_exeext conftest.$ac_ext
1040594a251fdSmrgfi
1040694a251fdSmrg
1040794a251fdSmrg
1040894a251fdSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
1040994a251fdSmrg
1041094a251fdSmrg		eval supported=\$$cacheid
1041194a251fdSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1041294a251fdSmrg$as_echo "$supported" >&6; }
1041394a251fdSmrg		if test "$supported" = "yes" ; then
1041494a251fdSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
1041594a251fdSmrg			found="yes"
1041694a251fdSmrg		fi
1041794a251fdSmrg	fi
1041894a251fdSmrg
1041994a251fdSmrg
1042094a251fdSmrg
1042194a251fdSmrgif test "x$STRICT_COMPILE" = "xyes"; then
1042294a251fdSmrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
1042394a251fdSmrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
1042494a251fdSmrgfi
1042594a251fdSmrg
1042694a251fdSmrg
1042794a251fdSmrg
1042894a251fdSmrg
1042994a251fdSmrg
1043094a251fdSmrg
1043194a251fdSmrgcat >>confdefs.h <<_ACEOF
1043294a251fdSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
1043394a251fdSmrg_ACEOF
1043494a251fdSmrg
1043594a251fdSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
1043694a251fdSmrg	if test "x$PVM" = "x"; then
1043794a251fdSmrg		PVM="0"
1043894a251fdSmrg	fi
1043994a251fdSmrg
1044094a251fdSmrgcat >>confdefs.h <<_ACEOF
1044194a251fdSmrg#define PACKAGE_VERSION_MINOR $PVM
1044294a251fdSmrg_ACEOF
1044394a251fdSmrg
1044494a251fdSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
1044594a251fdSmrg	if test "x$PVP" = "x"; then
1044694a251fdSmrg		PVP="0"
1044794a251fdSmrg	fi
1044894a251fdSmrg
1044994a251fdSmrgcat >>confdefs.h <<_ACEOF
1045094a251fdSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
1045194a251fdSmrg_ACEOF
1045294a251fdSmrg
1045394a251fdSmrg
1045494a251fdSmrg
1045594a251fdSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
1045694a251fdSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
1045794a251fdSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
1045894a251fdSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
1045994a251fdSmrg
1046094a251fdSmrg
1046194a251fdSmrg
1046294a251fdSmrg
1046394a251fdSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
1046494a251fdSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
1046594a251fdSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
1046694a251fdSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
1046794a251fdSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
1046894a251fdSmrg
1046994a251fdSmrg
1047094a251fdSmrg
1047194a251fdSmrg
1047294a251fdSmrg
10473e6232409Smrg
1047494a251fdSmrgif test x$APP_MAN_SUFFIX = x    ; then
1047594a251fdSmrg    APP_MAN_SUFFIX=1
1047694a251fdSmrgfi
1047794a251fdSmrgif test x$APP_MAN_DIR = x    ; then
1047894a251fdSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
1047994a251fdSmrgfi
10480e6232409Smrg
1048194a251fdSmrgif test x$LIB_MAN_SUFFIX = x    ; then
1048294a251fdSmrg    LIB_MAN_SUFFIX=3
1048394a251fdSmrgfi
1048494a251fdSmrgif test x$LIB_MAN_DIR = x    ; then
1048594a251fdSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
1048694a251fdSmrgfi
10487e6232409Smrg
1048894a251fdSmrgif test x$FILE_MAN_SUFFIX = x    ; then
1048994a251fdSmrg    case $host_os in
10490c05e7a3eSmrg	# Solaris 2.0 - 11 use SysV man page sections
10491c05e7a3eSmrg	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
10492c05e7a3eSmrg	*)				FILE_MAN_SUFFIX=5  ;;
1049394a251fdSmrg    esac
1049494a251fdSmrgfi
1049594a251fdSmrgif test x$FILE_MAN_DIR = x    ; then
1049694a251fdSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10497e6232409Smrgfi
10498e6232409Smrg
1049994a251fdSmrgif test x$MISC_MAN_SUFFIX = x    ; then
1050094a251fdSmrg    case $host_os in
10501c05e7a3eSmrg	# Solaris 2.0 - 11 use SysV man page sections
10502c05e7a3eSmrg	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
10503c05e7a3eSmrg	*)				MISC_MAN_SUFFIX=7  ;;
1050494a251fdSmrg    esac
1050594a251fdSmrgfi
1050694a251fdSmrgif test x$MISC_MAN_DIR = x    ; then
1050794a251fdSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10508e6232409Smrgfi
10509e6232409Smrg
1051094a251fdSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
1051194a251fdSmrg    case $host_os in
10512c05e7a3eSmrg	# Solaris 2.0 - 11 use SysV man page sections
10513c05e7a3eSmrg	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
10514c05e7a3eSmrg	*)				DRIVER_MAN_SUFFIX=4  ;;
1051594a251fdSmrg    esac
1051694a251fdSmrgfi
1051794a251fdSmrgif test x$DRIVER_MAN_DIR = x    ; then
1051894a251fdSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
105198fff3f40Smrgfi
10520e6232409Smrg
1052194a251fdSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
1052294a251fdSmrg    case $host_os in
10523c05e7a3eSmrg	# Solaris 2.0 - 11 use SysV man page sections
10524c05e7a3eSmrg	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
10525c05e7a3eSmrg	*)				ADMIN_MAN_SUFFIX=8  ;;
1052694a251fdSmrg    esac
1052794a251fdSmrgfi
1052894a251fdSmrgif test x$ADMIN_MAN_DIR = x    ; then
1052994a251fdSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
1053094a251fdSmrgfi
10531e6232409Smrg
10532e6232409Smrg
10533e6232409Smrg
105348fff3f40Smrg
10535e6232409Smrg
10536e6232409Smrg
10537e6232409Smrg
10538e6232409Smrg
1053994a251fdSmrg
1054094a251fdSmrg
1054194a251fdSmrg
1054294a251fdSmrg
1054394a251fdSmrg
1054494a251fdSmrg
1054594a251fdSmrg
1054694a251fdSmrgXORG_MAN_PAGE="X Version 11"
1054794a251fdSmrg
1054894a251fdSmrgMAN_SUBSTS="\
1054994a251fdSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1055094a251fdSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1055194a251fdSmrg	-e 's|__xservername__|Xorg|g' \
1055294a251fdSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
1055394a251fdSmrg	-e 's|__projectroot__|\$(prefix)|g' \
1055494a251fdSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
1055594a251fdSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
1055694a251fdSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
1055794a251fdSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
1055894a251fdSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
1055994a251fdSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
1056094a251fdSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
1056194a251fdSmrg
1056294a251fdSmrg
1056394a251fdSmrg
1056494a251fdSmrg# Check whether --enable-silent-rules was given.
1056594a251fdSmrgif test "${enable_silent_rules+set}" = set; then :
1056694a251fdSmrg  enableval=$enable_silent_rules;
10567e6232409Smrgfi
10568e6232409Smrg
105696a45684fSmrgcase $enable_silent_rules in # (((
105706a45684fSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
105716a45684fSmrg   no) AM_DEFAULT_VERBOSITY=1;;
105726a45684fSmrg    *) AM_DEFAULT_VERBOSITY=0;;
1057394a251fdSmrgesac
105746a45684fSmrgam_make=${MAKE-make}
105756a45684fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
105766a45684fSmrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
105776a45684fSmrgif ${am_cv_make_support_nested_variables+:} false; then :
105786a45684fSmrg  $as_echo_n "(cached) " >&6
105796a45684fSmrgelse
105806a45684fSmrg  if $as_echo 'TRUE=$(BAR$(V))
105816a45684fSmrgBAR0=false
105826a45684fSmrgBAR1=true
105836a45684fSmrgV=1
105846a45684fSmrgam__doit:
105856a45684fSmrg	@$(TRUE)
105866a45684fSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
105876a45684fSmrg  am_cv_make_support_nested_variables=yes
105886a45684fSmrgelse
105896a45684fSmrg  am_cv_make_support_nested_variables=no
105906a45684fSmrgfi
105916a45684fSmrgfi
105926a45684fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
105936a45684fSmrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
105946a45684fSmrgif test $am_cv_make_support_nested_variables = yes; then
105956a45684fSmrg    AM_V='$(V)'
105966a45684fSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
105976a45684fSmrgelse
105986a45684fSmrg  AM_V=$AM_DEFAULT_VERBOSITY
105996a45684fSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
106006a45684fSmrgfi
1060194a251fdSmrgAM_BACKSLASH='\'
1060294a251fdSmrg
10603e6232409Smrg
106048fff3f40Smrg
106058fff3f40Smrg# Checks for pkg-config packages
106068fff3f40Smrg
106078fff3f40Smrgpkg_failed=no
106088fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLSFONTS" >&5
106098fff3f40Smrg$as_echo_n "checking for XLSFONTS... " >&6; }
106108fff3f40Smrg
106118fff3f40Smrgif test -n "$XLSFONTS_CFLAGS"; then
106128fff3f40Smrg    pkg_cv_XLSFONTS_CFLAGS="$XLSFONTS_CFLAGS"
106138fff3f40Smrg elif test -n "$PKG_CONFIG"; then
106148fff3f40Smrg    if test -n "$PKG_CONFIG" && \
1061594a251fdSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
1061694a251fdSmrg  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
10617e6232409Smrg  ac_status=$?
106188fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
106198fff3f40Smrg  test $ac_status = 0; }; then
1062094a251fdSmrg  pkg_cv_XLSFONTS_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null`
10621c05e7a3eSmrg		      test "x$?" != "x0" && pkg_failed=yes
10622e6232409Smrgelse
10623e6232409Smrg  pkg_failed=yes
10624e6232409Smrgfi
106258fff3f40Smrg else
106268fff3f40Smrg    pkg_failed=untried
10627e6232409Smrgfi
106288fff3f40Smrgif test -n "$XLSFONTS_LIBS"; then
106298fff3f40Smrg    pkg_cv_XLSFONTS_LIBS="$XLSFONTS_LIBS"
106308fff3f40Smrg elif test -n "$PKG_CONFIG"; then
106318fff3f40Smrg    if test -n "$PKG_CONFIG" && \
1063294a251fdSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
1063394a251fdSmrg  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
10634e6232409Smrg  ac_status=$?
106358fff3f40Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
106368fff3f40Smrg  test $ac_status = 0; }; then
1063794a251fdSmrg  pkg_cv_XLSFONTS_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null`
10638c05e7a3eSmrg		      test "x$?" != "x0" && pkg_failed=yes
10639e6232409Smrgelse
10640e6232409Smrg  pkg_failed=yes
10641e6232409Smrgfi
106428fff3f40Smrg else
106438fff3f40Smrg    pkg_failed=untried
10644e6232409Smrgfi
10645e6232409Smrg
106468fff3f40Smrg
106478fff3f40Smrg
10648e6232409Smrgif test $pkg_failed = yes; then
10649c05e7a3eSmrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10650c05e7a3eSmrg$as_echo "no" >&6; }
106518fff3f40Smrg
106528fff3f40Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
106538fff3f40Smrg        _pkg_short_errors_supported=yes
106548fff3f40Smrgelse
106558fff3f40Smrg        _pkg_short_errors_supported=no
106568fff3f40Smrgfi
106578fff3f40Smrg        if test $_pkg_short_errors_supported = yes; then
10658c05e7a3eSmrg	        XLSFONTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
106598fff3f40Smrg        else
10660c05e7a3eSmrg	        XLSFONTS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
106618fff3f40Smrg        fi
10662e6232409Smrg	# Put the nasty error message in config.log where it belongs
106638fff3f40Smrg	echo "$XLSFONTS_PKG_ERRORS" >&5
10664e6232409Smrg
1066594a251fdSmrg	as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met:
106668fff3f40Smrg
106678fff3f40Smrg$XLSFONTS_PKG_ERRORS
10668e6232409Smrg
10669e6232409SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
10670e6232409Smrginstalled software in a non-standard prefix.
10671e6232409Smrg
106728fff3f40SmrgAlternatively, you may set the environment variables XLSFONTS_CFLAGS
106738fff3f40Smrgand XLSFONTS_LIBS to avoid the need to call pkg-config.
10674c05e7a3eSmrgSee the pkg-config man page for more details." "$LINENO" 5
10675e6232409Smrgelif test $pkg_failed = untried; then
10676c05e7a3eSmrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10677c05e7a3eSmrg$as_echo "no" >&6; }
106788fff3f40Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
106798fff3f40Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1068094a251fdSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10681e6232409Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
10682e6232409Smrgpath to pkg-config.
10683e6232409Smrg
106848fff3f40SmrgAlternatively, you may set the environment variables XLSFONTS_CFLAGS
106858fff3f40Smrgand XLSFONTS_LIBS to avoid the need to call pkg-config.
106868fff3f40SmrgSee the pkg-config man page for more details.
10687e6232409Smrg
106888fff3f40SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
1068994a251fdSmrgSee \`config.log' for more details" "$LINENO" 5; }
10690e6232409Smrgelse
10691e6232409Smrg	XLSFONTS_CFLAGS=$pkg_cv_XLSFONTS_CFLAGS
10692e6232409Smrg	XLSFONTS_LIBS=$pkg_cv_XLSFONTS_LIBS
106938fff3f40Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
106948fff3f40Smrg$as_echo "yes" >&6; }
10695c05e7a3eSmrg
10696e6232409Smrgfi
10697e6232409Smrg
1069894a251fdSmrgac_config_files="$ac_config_files Makefile man/Makefile"
10699e6232409Smrg
10700e6232409Smrgcat >confcache <<\_ACEOF
10701e6232409Smrg# This file is a shell script that caches the results of configure
10702e6232409Smrg# tests run on this system so they can be shared between configure
10703e6232409Smrg# scripts and configure runs, see configure's option --config-cache.
10704e6232409Smrg# It is not useful on other systems.  If it contains results you don't
10705e6232409Smrg# want to keep, you may remove or edit it.
10706e6232409Smrg#
10707e6232409Smrg# config.status only pays attention to the cache file if you give it
10708e6232409Smrg# the --recheck option to rerun configure.
10709e6232409Smrg#
10710e6232409Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
10711e6232409Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
10712e6232409Smrg# following values.
10713e6232409Smrg
10714e6232409Smrg_ACEOF
10715e6232409Smrg
10716e6232409Smrg# The following way of writing the cache mishandles newlines in values,
10717e6232409Smrg# but we know of no workaround that is simple, portable, and efficient.
10718e6232409Smrg# So, we kill variables containing newlines.
10719e6232409Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
10720e6232409Smrg# and sets the high bit in the cache file unless we assign to the vars.
10721e6232409Smrg(
10722e6232409Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10723e6232409Smrg    eval ac_val=\$$ac_var
10724e6232409Smrg    case $ac_val in #(
10725e6232409Smrg    *${as_nl}*)
10726e6232409Smrg      case $ac_var in #(
107278fff3f40Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
107288fff3f40Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10729e6232409Smrg      esac
10730e6232409Smrg      case $ac_var in #(
10731e6232409Smrg      _ | IFS | as_nl) ;; #(
107328fff3f40Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
107338fff3f40Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
10734e6232409Smrg      esac ;;
10735e6232409Smrg    esac
10736e6232409Smrg  done
10737e6232409Smrg
10738e6232409Smrg  (set) 2>&1 |
10739e6232409Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10740e6232409Smrg    *${as_nl}ac_space=\ *)
107418fff3f40Smrg      # `set' does not quote correctly, so add quotes: double-quote
107428fff3f40Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
10743e6232409Smrg      sed -n \
10744e6232409Smrg	"s/'/'\\\\''/g;
10745e6232409Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10746e6232409Smrg      ;; #(
10747e6232409Smrg    *)
10748e6232409Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
10749e6232409Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10750e6232409Smrg      ;;
10751e6232409Smrg    esac |
10752e6232409Smrg    sort
10753e6232409Smrg) |
10754e6232409Smrg  sed '
10755e6232409Smrg     /^ac_cv_env_/b end
10756e6232409Smrg     t clear
10757e6232409Smrg     :clear
10758e6232409Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10759e6232409Smrg     t end
10760e6232409Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10761e6232409Smrg     :end' >>confcache
10762e6232409Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10763e6232409Smrg  if test -w "$cache_file"; then
1076494a251fdSmrg    if test "x$cache_file" != "x/dev/null"; then
107658fff3f40Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
107668fff3f40Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
1076794a251fdSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
1076894a251fdSmrg	cat confcache >"$cache_file"
1076994a251fdSmrg      else
1077094a251fdSmrg        case $cache_file in #(
1077194a251fdSmrg        */* | ?:*)
1077294a251fdSmrg	  mv -f confcache "$cache_file"$$ &&
1077394a251fdSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
1077494a251fdSmrg        *)
1077594a251fdSmrg	  mv -f confcache "$cache_file" ;;
1077694a251fdSmrg	esac
1077794a251fdSmrg      fi
1077894a251fdSmrg    fi
10779e6232409Smrg  else
107808fff3f40Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
107818fff3f40Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10782e6232409Smrg  fi
10783e6232409Smrgfi
10784e6232409Smrgrm -f confcache
10785e6232409Smrg
10786e6232409Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
10787e6232409Smrg# Let make expand exec_prefix.
10788e6232409Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10789e6232409Smrg
10790e6232409SmrgDEFS=-DHAVE_CONFIG_H
10791e6232409Smrg
10792e6232409Smrgac_libobjs=
10793e6232409Smrgac_ltlibobjs=
1079494a251fdSmrgU=
10795e6232409Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10796e6232409Smrg  # 1. Remove the extension, and $U if already installed.
10797e6232409Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
107988fff3f40Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10799e6232409Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10800e6232409Smrg  #    will be set to the directory where LIBOBJS objects are built.
108018fff3f40Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
108028fff3f40Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10803e6232409Smrgdone
10804e6232409SmrgLIBOBJS=$ac_libobjs
10805e6232409Smrg
10806e6232409SmrgLTLIBOBJS=$ac_ltlibobjs
10807e6232409Smrg
10808e6232409Smrg
108096a45684fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
108106a45684fSmrg$as_echo_n "checking that generated files are newer than configure... " >&6; }
108116a45684fSmrg   if test -n "$am_sleep_pid"; then
108126a45684fSmrg     # Hide warnings about reused PIDs.
108136a45684fSmrg     wait $am_sleep_pid 2>/dev/null
108146a45684fSmrg   fi
108156a45684fSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
108166a45684fSmrg$as_echo "done" >&6; }
108178fff3f40Smrg if test -n "$EXEEXT"; then
108188fff3f40Smrg  am__EXEEXT_TRUE=
108198fff3f40Smrg  am__EXEEXT_FALSE='#'
108208fff3f40Smrgelse
108218fff3f40Smrg  am__EXEEXT_TRUE='#'
108228fff3f40Smrg  am__EXEEXT_FALSE=
108238fff3f40Smrgfi
108248fff3f40Smrg
10825e6232409Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1082694a251fdSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
108278fff3f40SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
10828e6232409Smrgfi
10829e6232409Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1083094a251fdSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
108318fff3f40SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
10832e6232409Smrgfi
10833e6232409Smrg
1083494a251fdSmrg: "${CONFIG_STATUS=./config.status}"
108358fff3f40Smrgac_write_fail=0
10836e6232409Smrgac_clean_files_save=$ac_clean_files
10837e6232409Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
108388fff3f40Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
108398fff3f40Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
108408fff3f40Smrgas_write_fail=0
108418fff3f40Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10842e6232409Smrg#! $SHELL
10843e6232409Smrg# Generated by $as_me.
10844e6232409Smrg# Run this file to recreate the current configuration.
10845e6232409Smrg# Compiler output produced by configure, useful for debugging
10846e6232409Smrg# configure, is in config.log if it exists.
10847e6232409Smrg
10848e6232409Smrgdebug=false
10849e6232409Smrgac_cs_recheck=false
10850e6232409Smrgac_cs_silent=false
10851e6232409Smrg
108528fff3f40SmrgSHELL=\${CONFIG_SHELL-$SHELL}
108538fff3f40Smrgexport SHELL
108548fff3f40Smrg_ASEOF
108558fff3f40Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
108568fff3f40Smrg## -------------------- ##
108578fff3f40Smrg## M4sh Initialization. ##
108588fff3f40Smrg## -------------------- ##
10859e6232409Smrg
108608fff3f40Smrg# Be more Bourne compatible
108618fff3f40SmrgDUALCASE=1; export DUALCASE # for MKS sh
108628fff3f40Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10863e6232409Smrg  emulate sh
10864e6232409Smrg  NULLCMD=:
108658fff3f40Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10866e6232409Smrg  # is contrary to our usage.  Disable this feature.
10867e6232409Smrg  alias -g '${1+"$@"}'='"$@"'
10868e6232409Smrg  setopt NO_GLOB_SUBST
10869e6232409Smrgelse
108708fff3f40Smrg  case `(set -o) 2>/dev/null` in #(
108718fff3f40Smrg  *posix*) :
108728fff3f40Smrg    set -o posix ;; #(
108738fff3f40Smrg  *) :
108748fff3f40Smrg     ;;
108758fff3f40Smrgesac
10876e6232409Smrgfi
10877e6232409Smrg
10878e6232409Smrg
108798fff3f40Smrgas_nl='
108808fff3f40Smrg'
108818fff3f40Smrgexport as_nl
108828fff3f40Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
108838fff3f40Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
108848fff3f40Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
108858fff3f40Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
108868fff3f40Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
108878fff3f40Smrg# but without wasting forks for bash or zsh.
108888fff3f40Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
108898fff3f40Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
108908fff3f40Smrg  as_echo='print -r --'
108918fff3f40Smrg  as_echo_n='print -rn --'
108928fff3f40Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
108938fff3f40Smrg  as_echo='printf %s\n'
108948fff3f40Smrg  as_echo_n='printf %s'
108958fff3f40Smrgelse
108968fff3f40Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
108978fff3f40Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
108988fff3f40Smrg    as_echo_n='/usr/ucb/echo -n'
10899e6232409Smrg  else
109008fff3f40Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
109018fff3f40Smrg    as_echo_n_body='eval
109028fff3f40Smrg      arg=$1;
109038fff3f40Smrg      case $arg in #(
109048fff3f40Smrg      *"$as_nl"*)
109058fff3f40Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
109068fff3f40Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
109078fff3f40Smrg      esac;
109088fff3f40Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
109098fff3f40Smrg    '
109108fff3f40Smrg    export as_echo_n_body
109118fff3f40Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
10912e6232409Smrg  fi
109138fff3f40Smrg  export as_echo_body
109148fff3f40Smrg  as_echo='sh -c $as_echo_body as_echo'
10915e6232409Smrgfi
10916e6232409Smrg
109178fff3f40Smrg# The user is always right.
109188fff3f40Smrgif test "${PATH_SEPARATOR+set}" != set; then
109198fff3f40Smrg  PATH_SEPARATOR=:
109208fff3f40Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
109218fff3f40Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
109228fff3f40Smrg      PATH_SEPARATOR=';'
109238fff3f40Smrg  }
10924e6232409Smrgfi
10925e6232409Smrg
10926e6232409Smrg
10927e6232409Smrg# IFS
10928e6232409Smrg# We need space, tab and new line, in precisely that order.  Quoting is
10929e6232409Smrg# there to prevent editors from complaining about space-tab.
10930e6232409Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10931e6232409Smrg# splitting by setting IFS to empty value.)
10932e6232409SmrgIFS=" ""	$as_nl"
10933e6232409Smrg
10934e6232409Smrg# Find who we are.  Look in the path if we contain no directory separator.
1093594a251fdSmrgas_myself=
109368fff3f40Smrgcase $0 in #((
10937e6232409Smrg  *[\\/]* ) as_myself=$0 ;;
10938e6232409Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939e6232409Smrgfor as_dir in $PATH
10940e6232409Smrgdo
10941e6232409Smrg  IFS=$as_save_IFS
10942e6232409Smrg  test -z "$as_dir" && as_dir=.
109438fff3f40Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109448fff3f40Smrg  done
10945e6232409SmrgIFS=$as_save_IFS
10946e6232409Smrg
10947e6232409Smrg     ;;
10948e6232409Smrgesac
10949e6232409Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
10950e6232409Smrg# in which case we are not to be found in the path.
10951e6232409Smrgif test "x$as_myself" = x; then
10952e6232409Smrg  as_myself=$0
10953e6232409Smrgfi
10954e6232409Smrgif test ! -f "$as_myself"; then
109558fff3f40Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
109568fff3f40Smrg  exit 1
10957e6232409Smrgfi
10958e6232409Smrg
109598fff3f40Smrg# Unset variables that we do not need and which cause bugs (e.g. in
109608fff3f40Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
109618fff3f40Smrg# suppresses any "Segmentation fault" message there.  '((' could
109628fff3f40Smrg# trigger a bug in pdksh 5.2.14.
109638fff3f40Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
109648fff3f40Smrgdo eval test x\${$as_var+set} = xset \
109658fff3f40Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10966e6232409Smrgdone
10967e6232409SmrgPS1='$ '
10968e6232409SmrgPS2='> '
10969e6232409SmrgPS4='+ '
10970e6232409Smrg
10971e6232409Smrg# NLS nuisances.
109728fff3f40SmrgLC_ALL=C
109738fff3f40Smrgexport LC_ALL
109748fff3f40SmrgLANGUAGE=C
109758fff3f40Smrgexport LANGUAGE
109768fff3f40Smrg
109778fff3f40Smrg# CDPATH.
109788fff3f40Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
109798fff3f40Smrg
109808fff3f40Smrg
1098194a251fdSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
1098294a251fdSmrg# ----------------------------------------
109838fff3f40Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
109848fff3f40Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1098594a251fdSmrg# script with STATUS, using 1 if that was 0.
109868fff3f40Smrgas_fn_error ()
109878fff3f40Smrg{
1098894a251fdSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
1098994a251fdSmrg  if test "$4"; then
1099094a251fdSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1099194a251fdSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10992e6232409Smrg  fi
1099394a251fdSmrg  $as_echo "$as_me: error: $2" >&2
109948fff3f40Smrg  as_fn_exit $as_status
109958fff3f40Smrg} # as_fn_error
109968fff3f40Smrg
109978fff3f40Smrg
109988fff3f40Smrg# as_fn_set_status STATUS
109998fff3f40Smrg# -----------------------
110008fff3f40Smrg# Set $? to STATUS, without forking.
110018fff3f40Smrgas_fn_set_status ()
110028fff3f40Smrg{
110038fff3f40Smrg  return $1
110048fff3f40Smrg} # as_fn_set_status
110058fff3f40Smrg
110068fff3f40Smrg# as_fn_exit STATUS
110078fff3f40Smrg# -----------------
110088fff3f40Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
110098fff3f40Smrgas_fn_exit ()
110108fff3f40Smrg{
110118fff3f40Smrg  set +e
110128fff3f40Smrg  as_fn_set_status $1
110138fff3f40Smrg  exit $1
110148fff3f40Smrg} # as_fn_exit
110158fff3f40Smrg
110168fff3f40Smrg# as_fn_unset VAR
110178fff3f40Smrg# ---------------
110188fff3f40Smrg# Portably unset VAR.
110198fff3f40Smrgas_fn_unset ()
110208fff3f40Smrg{
110218fff3f40Smrg  { eval $1=; unset $1;}
110228fff3f40Smrg}
110238fff3f40Smrgas_unset=as_fn_unset
110248fff3f40Smrg# as_fn_append VAR VALUE
110258fff3f40Smrg# ----------------------
110268fff3f40Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
110278fff3f40Smrg# advantage of any shell optimizations that allow amortized linear growth over
110288fff3f40Smrg# repeated appends, instead of the typical quadratic growth present in naive
110298fff3f40Smrg# implementations.
110308fff3f40Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
110318fff3f40Smrg  eval 'as_fn_append ()
110328fff3f40Smrg  {
110338fff3f40Smrg    eval $1+=\$2
110348fff3f40Smrg  }'
110358fff3f40Smrgelse
110368fff3f40Smrg  as_fn_append ()
110378fff3f40Smrg  {
110388fff3f40Smrg    eval $1=\$$1\$2
110398fff3f40Smrg  }
110408fff3f40Smrgfi # as_fn_append
110418fff3f40Smrg
110428fff3f40Smrg# as_fn_arith ARG...
110438fff3f40Smrg# ------------------
110448fff3f40Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
110458fff3f40Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
110468fff3f40Smrg# must be portable across $(()) and expr.
110478fff3f40Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
110488fff3f40Smrg  eval 'as_fn_arith ()
110498fff3f40Smrg  {
110508fff3f40Smrg    as_val=$(( $* ))
110518fff3f40Smrg  }'
110528fff3f40Smrgelse
110538fff3f40Smrg  as_fn_arith ()
110548fff3f40Smrg  {
110558fff3f40Smrg    as_val=`expr "$@" || test $? -eq 1`
110568fff3f40Smrg  }
110578fff3f40Smrgfi # as_fn_arith
110588fff3f40Smrg
11059e6232409Smrg
11060e6232409Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
11061e6232409Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11062e6232409Smrg  as_expr=expr
11063e6232409Smrgelse
11064e6232409Smrg  as_expr=false
11065e6232409Smrgfi
11066e6232409Smrg
11067e6232409Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11068e6232409Smrg  as_basename=basename
11069e6232409Smrgelse
11070e6232409Smrg  as_basename=false
11071e6232409Smrgfi
11072e6232409Smrg
110738fff3f40Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
110748fff3f40Smrg  as_dirname=dirname
110758fff3f40Smrgelse
110768fff3f40Smrg  as_dirname=false
110778fff3f40Smrgfi
110788fff3f40Smrg
11079e6232409Smrgas_me=`$as_basename -- "$0" ||
11080e6232409Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11081e6232409Smrg	 X"$0" : 'X\(//\)$' \| \
11082e6232409Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
110838fff3f40Smrg$as_echo X/"$0" |
11084e6232409Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
11085e6232409Smrg	    s//\1/
11086e6232409Smrg	    q
11087e6232409Smrg	  }
11088e6232409Smrg	  /^X\/\(\/\/\)$/{
11089e6232409Smrg	    s//\1/
11090e6232409Smrg	    q
11091e6232409Smrg	  }
11092e6232409Smrg	  /^X\/\(\/\).*/{
11093e6232409Smrg	    s//\1/
11094e6232409Smrg	    q
11095e6232409Smrg	  }
11096e6232409Smrg	  s/.*/./; q'`
11097e6232409Smrg
110988fff3f40Smrg# Avoid depending upon Character Ranges.
110998fff3f40Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
111008fff3f40Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
111018fff3f40Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
111028fff3f40Smrgas_cr_digits='0123456789'
111038fff3f40Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
11104e6232409Smrg
11105e6232409SmrgECHO_C= ECHO_N= ECHO_T=
111068fff3f40Smrgcase `echo -n x` in #(((((
11107e6232409Smrg-n*)
111088fff3f40Smrg  case `echo 'xy\c'` in
11109e6232409Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
111108fff3f40Smrg  xy)  ECHO_C='\c';;
111118fff3f40Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
111128fff3f40Smrg       ECHO_T='	';;
11113e6232409Smrg  esac;;
11114e6232409Smrg*)
11115e6232409Smrg  ECHO_N='-n';;
11116e6232409Smrgesac
11117e6232409Smrg
11118e6232409Smrgrm -f conf$$ conf$$.exe conf$$.file
11119e6232409Smrgif test -d conf$$.dir; then
11120e6232409Smrg  rm -f conf$$.dir/conf$$.file
11121e6232409Smrgelse
11122e6232409Smrg  rm -f conf$$.dir
111238fff3f40Smrg  mkdir conf$$.dir 2>/dev/null
111248fff3f40Smrgfi
111258fff3f40Smrgif (echo >conf$$.file) 2>/dev/null; then
111268fff3f40Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
111278fff3f40Smrg    as_ln_s='ln -s'
111288fff3f40Smrg    # ... but there are two gotchas:
111298fff3f40Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
111308fff3f40Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
111316a45684fSmrg    # In both cases, we have to default to `cp -pR'.
111328fff3f40Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
111336a45684fSmrg      as_ln_s='cp -pR'
111348fff3f40Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
111358fff3f40Smrg    as_ln_s=ln
111368fff3f40Smrg  else
111376a45684fSmrg    as_ln_s='cp -pR'
111388fff3f40Smrg  fi
11139e6232409Smrgelse
111406a45684fSmrg  as_ln_s='cp -pR'
11141e6232409Smrgfi
11142e6232409Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11143e6232409Smrgrmdir conf$$.dir 2>/dev/null
11144e6232409Smrg
111458fff3f40Smrg
111468fff3f40Smrg# as_fn_mkdir_p
111478fff3f40Smrg# -------------
111488fff3f40Smrg# Create "$as_dir" as a directory, including parents if necessary.
111498fff3f40Smrgas_fn_mkdir_p ()
111508fff3f40Smrg{
111518fff3f40Smrg
111528fff3f40Smrg  case $as_dir in #(
111538fff3f40Smrg  -*) as_dir=./$as_dir;;
111548fff3f40Smrg  esac
111558fff3f40Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
111568fff3f40Smrg    as_dirs=
111578fff3f40Smrg    while :; do
111588fff3f40Smrg      case $as_dir in #(
111598fff3f40Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
111608fff3f40Smrg      *) as_qdir=$as_dir;;
111618fff3f40Smrg      esac
111628fff3f40Smrg      as_dirs="'$as_qdir' $as_dirs"
111638fff3f40Smrg      as_dir=`$as_dirname -- "$as_dir" ||
111648fff3f40Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
111658fff3f40Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
111668fff3f40Smrg	 X"$as_dir" : 'X\(//\)$' \| \
111678fff3f40Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
111688fff3f40Smrg$as_echo X"$as_dir" |
111698fff3f40Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
111708fff3f40Smrg	    s//\1/
111718fff3f40Smrg	    q
111728fff3f40Smrg	  }
111738fff3f40Smrg	  /^X\(\/\/\)[^/].*/{
111748fff3f40Smrg	    s//\1/
111758fff3f40Smrg	    q
111768fff3f40Smrg	  }
111778fff3f40Smrg	  /^X\(\/\/\)$/{
111788fff3f40Smrg	    s//\1/
111798fff3f40Smrg	    q
111808fff3f40Smrg	  }
111818fff3f40Smrg	  /^X\(\/\).*/{
111828fff3f40Smrg	    s//\1/
111838fff3f40Smrg	    q
111848fff3f40Smrg	  }
111858fff3f40Smrg	  s/.*/./; q'`
111868fff3f40Smrg      test -d "$as_dir" && break
111878fff3f40Smrg    done
111888fff3f40Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
1118994a251fdSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
111908fff3f40Smrg
111918fff3f40Smrg
111928fff3f40Smrg} # as_fn_mkdir_p
11193e6232409Smrgif mkdir -p . 2>/dev/null; then
111948fff3f40Smrg  as_mkdir_p='mkdir -p "$as_dir"'
11195e6232409Smrgelse
11196e6232409Smrg  test -d ./-p && rmdir ./-p
11197e6232409Smrg  as_mkdir_p=false
11198e6232409Smrgfi
11199e6232409Smrg
112006a45684fSmrg
112016a45684fSmrg# as_fn_executable_p FILE
112026a45684fSmrg# -----------------------
112036a45684fSmrg# Test if FILE is an executable regular file.
112046a45684fSmrgas_fn_executable_p ()
112056a45684fSmrg{
112066a45684fSmrg  test -f "$1" && test -x "$1"
112076a45684fSmrg} # as_fn_executable_p
112086a45684fSmrgas_test_x='test -x'
112096a45684fSmrgas_executable_p=as_fn_executable_p
11210e6232409Smrg
11211e6232409Smrg# Sed expression to map a string onto a valid CPP name.
11212e6232409Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11213e6232409Smrg
11214e6232409Smrg# Sed expression to map a string onto a valid variable name.
11215e6232409Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11216e6232409Smrg
11217e6232409Smrg
11218e6232409Smrgexec 6>&1
112198fff3f40Smrg## ----------------------------------- ##
112208fff3f40Smrg## Main body of $CONFIG_STATUS script. ##
112218fff3f40Smrg## ----------------------------------- ##
112228fff3f40Smrg_ASEOF
112238fff3f40Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11224e6232409Smrg
112258fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
112268fff3f40Smrg# Save the log message, to keep $0 and so on meaningful, and to
11227e6232409Smrg# report actual input values of CONFIG_FILES etc. instead of their
11228e6232409Smrg# values after options handling.
11229e6232409Smrgac_log="
11230c05e7a3eSmrgThis file was extended by xlsfonts $as_me 1.0.6, which was
112316a45684fSmrggenerated by GNU Autoconf 2.69.  Invocation command line was
11232e6232409Smrg
11233e6232409Smrg  CONFIG_FILES    = $CONFIG_FILES
11234e6232409Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
11235e6232409Smrg  CONFIG_LINKS    = $CONFIG_LINKS
11236e6232409Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
11237e6232409Smrg  $ $0 $@
11238e6232409Smrg
11239e6232409Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
11240e6232409Smrg"
11241e6232409Smrg
11242e6232409Smrg_ACEOF
11243e6232409Smrg
112448fff3f40Smrgcase $ac_config_files in *"
112458fff3f40Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
112468fff3f40Smrgesac
112478fff3f40Smrg
112488fff3f40Smrgcase $ac_config_headers in *"
112498fff3f40Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
112508fff3f40Smrgesac
112518fff3f40Smrg
112528fff3f40Smrg
112538fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11254e6232409Smrg# Files that config.status was made for.
11255e6232409Smrgconfig_files="$ac_config_files"
11256e6232409Smrgconfig_headers="$ac_config_headers"
11257e6232409Smrgconfig_commands="$ac_config_commands"
11258e6232409Smrg
11259e6232409Smrg_ACEOF
11260e6232409Smrg
112618fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11262e6232409Smrgac_cs_usage="\
112638fff3f40Smrg\`$as_me' instantiates files and other configuration actions
112648fff3f40Smrgfrom templates according to the current configuration.  Unless the files
112658fff3f40Smrgand actions are specified as TAGs, all are instantiated by default.
11266e6232409Smrg
112678fff3f40SmrgUsage: $0 [OPTION]... [TAG]...
11268e6232409Smrg
11269e6232409Smrg  -h, --help       print this help, then exit
112708fff3f40Smrg  -V, --version    print version number and configuration settings, then exit
112718fff3f40Smrg      --config     print configuration, then exit
112728fff3f40Smrg  -q, --quiet, --silent
112738fff3f40Smrg                   do not print progress messages
11274e6232409Smrg  -d, --debug      don't remove temporary files
11275e6232409Smrg      --recheck    update $as_me by reconfiguring in the same conditions
112768fff3f40Smrg      --file=FILE[:TEMPLATE]
112778fff3f40Smrg                   instantiate the configuration file FILE
112788fff3f40Smrg      --header=FILE[:TEMPLATE]
112798fff3f40Smrg                   instantiate the configuration header FILE
11280e6232409Smrg
11281e6232409SmrgConfiguration files:
11282e6232409Smrg$config_files
11283e6232409Smrg
11284e6232409SmrgConfiguration headers:
11285e6232409Smrg$config_headers
11286e6232409Smrg
11287e6232409SmrgConfiguration commands:
11288e6232409Smrg$config_commands
11289e6232409Smrg
112908fff3f40SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11291e6232409Smrg
11292e6232409Smrg_ACEOF
112938fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
112948fff3f40Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11295e6232409Smrgac_cs_version="\\
11296c05e7a3eSmrgxlsfonts config.status 1.0.6
112976a45684fSmrgconfigured by $0, generated by GNU Autoconf 2.69,
112988fff3f40Smrg  with options \\"\$ac_cs_config\\"
11299e6232409Smrg
113006a45684fSmrgCopyright (C) 2012 Free Software Foundation, Inc.
11301e6232409SmrgThis config.status script is free software; the Free Software Foundation
11302e6232409Smrggives unlimited permission to copy, distribute and modify it."
11303e6232409Smrg
11304e6232409Smrgac_pwd='$ac_pwd'
11305e6232409Smrgsrcdir='$srcdir'
11306e6232409SmrgINSTALL='$INSTALL'
113078fff3f40SmrgMKDIR_P='$MKDIR_P'
113088fff3f40SmrgAWK='$AWK'
113098fff3f40Smrgtest -n "\$AWK" || AWK=awk
11310e6232409Smrg_ACEOF
11311e6232409Smrg
113128fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
113138fff3f40Smrg# The default lists apply if the user does not specify any file.
11314e6232409Smrgac_need_defaults=:
11315e6232409Smrgwhile test $# != 0
11316e6232409Smrgdo
11317e6232409Smrg  case $1 in
1131894a251fdSmrg  --*=?*)
11319e6232409Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11320e6232409Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11321e6232409Smrg    ac_shift=:
11322e6232409Smrg    ;;
1132394a251fdSmrg  --*=)
1132494a251fdSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1132594a251fdSmrg    ac_optarg=
1132694a251fdSmrg    ac_shift=:
1132794a251fdSmrg    ;;
11328e6232409Smrg  *)
11329e6232409Smrg    ac_option=$1
11330e6232409Smrg    ac_optarg=$2
11331e6232409Smrg    ac_shift=shift
11332e6232409Smrg    ;;
11333e6232409Smrg  esac
11334e6232409Smrg
11335e6232409Smrg  case $ac_option in
11336e6232409Smrg  # Handling of the options.
11337e6232409Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11338e6232409Smrg    ac_cs_recheck=: ;;
11339e6232409Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
113408fff3f40Smrg    $as_echo "$ac_cs_version"; exit ;;
113418fff3f40Smrg  --config | --confi | --conf | --con | --co | --c )
113428fff3f40Smrg    $as_echo "$ac_cs_config"; exit ;;
11343e6232409Smrg  --debug | --debu | --deb | --de | --d | -d )
11344e6232409Smrg    debug=: ;;
11345e6232409Smrg  --file | --fil | --fi | --f )
11346e6232409Smrg    $ac_shift
113478fff3f40Smrg    case $ac_optarg in
113488fff3f40Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1134994a251fdSmrg    '') as_fn_error $? "missing file argument" ;;
113508fff3f40Smrg    esac
113518fff3f40Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
11352e6232409Smrg    ac_need_defaults=false;;
11353e6232409Smrg  --header | --heade | --head | --hea )
11354e6232409Smrg    $ac_shift
113558fff3f40Smrg    case $ac_optarg in
113568fff3f40Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
113578fff3f40Smrg    esac
113588fff3f40Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11359e6232409Smrg    ac_need_defaults=false;;
11360e6232409Smrg  --he | --h)
11361e6232409Smrg    # Conflict between --help and --header
1136294a251fdSmrg    as_fn_error $? "ambiguous option: \`$1'
113638fff3f40SmrgTry \`$0 --help' for more information.";;
11364e6232409Smrg  --help | --hel | -h )
113658fff3f40Smrg    $as_echo "$ac_cs_usage"; exit ;;
11366e6232409Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11367e6232409Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11368e6232409Smrg    ac_cs_silent=: ;;
11369e6232409Smrg
11370e6232409Smrg  # This is an error.
1137194a251fdSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
113728fff3f40SmrgTry \`$0 --help' for more information." ;;
11373e6232409Smrg
113748fff3f40Smrg  *) as_fn_append ac_config_targets " $1"
11375e6232409Smrg     ac_need_defaults=false ;;
11376e6232409Smrg
11377e6232409Smrg  esac
11378e6232409Smrg  shift
11379e6232409Smrgdone
11380e6232409Smrg
11381e6232409Smrgac_configure_extra_args=
11382e6232409Smrg
11383e6232409Smrgif $ac_cs_silent; then
11384e6232409Smrg  exec 6>/dev/null
11385e6232409Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
11386e6232409Smrgfi
11387e6232409Smrg
11388e6232409Smrg_ACEOF
113898fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11390e6232409Smrgif \$ac_cs_recheck; then
113916a45684fSmrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
113928fff3f40Smrg  shift
113938fff3f40Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
113948fff3f40Smrg  CONFIG_SHELL='$SHELL'
11395e6232409Smrg  export CONFIG_SHELL
113968fff3f40Smrg  exec "\$@"
11397e6232409Smrgfi
11398e6232409Smrg
11399e6232409Smrg_ACEOF
114008fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11401e6232409Smrgexec 5>>config.log
11402e6232409Smrg{
11403e6232409Smrg  echo
11404e6232409Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11405e6232409Smrg## Running $as_me. ##
11406e6232409Smrg_ASBOX
114078fff3f40Smrg  $as_echo "$ac_log"
11408e6232409Smrg} >&5
11409e6232409Smrg
11410e6232409Smrg_ACEOF
114118fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11412e6232409Smrg#
11413e6232409Smrg# INIT-COMMANDS
11414e6232409Smrg#
11415e6232409SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11416e6232409Smrg
11417e6232409Smrg_ACEOF
11418e6232409Smrg
114198fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11420e6232409Smrg
11421e6232409Smrg# Handling of arguments.
11422e6232409Smrgfor ac_config_target in $ac_config_targets
11423e6232409Smrgdo
11424e6232409Smrg  case $ac_config_target in
114258fff3f40Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
114266a45684fSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11427e6232409Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1142894a251fdSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11429e6232409Smrg
1143094a251fdSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11431e6232409Smrg  esac
11432e6232409Smrgdone
11433e6232409Smrg
11434e6232409Smrg
11435e6232409Smrg# If the user did not use the arguments to specify the items to instantiate,
11436e6232409Smrg# then the envvar interface is used.  Set only those that are not.
11437e6232409Smrg# We use the long form for the default assignment because of an extremely
11438e6232409Smrg# bizarre bug on SunOS 4.1.3.
11439e6232409Smrgif $ac_need_defaults; then
11440e6232409Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11441e6232409Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11442e6232409Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11443e6232409Smrgfi
11444e6232409Smrg
11445e6232409Smrg# Have a temporary directory for convenience.  Make it in the build tree
11446e6232409Smrg# simply because there is no reason against having it here, and in addition,
11447e6232409Smrg# creating and moving files from /tmp can sometimes cause problems.
11448e6232409Smrg# Hook for its removal unless debugging.
11449e6232409Smrg# Note that there is a small window in which the directory will not be cleaned:
11450e6232409Smrg# after its creation but before its name has been assigned to `$tmp'.
11451e6232409Smrg$debug ||
11452e6232409Smrg{
1145394a251fdSmrg  tmp= ac_tmp=
11454e6232409Smrg  trap 'exit_status=$?
1145594a251fdSmrg  : "${ac_tmp:=$tmp}"
1145694a251fdSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11457e6232409Smrg' 0
114588fff3f40Smrg  trap 'as_fn_exit 1' 1 2 13 15
11459e6232409Smrg}
11460e6232409Smrg# Create a (secure) tmp directory for tmp files.
11461e6232409Smrg
11462e6232409Smrg{
11463e6232409Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1146494a251fdSmrg  test -d "$tmp"
11465e6232409Smrg}  ||
11466e6232409Smrg{
11467e6232409Smrg  tmp=./conf$$-$RANDOM
11468e6232409Smrg  (umask 077 && mkdir "$tmp")
1146994a251fdSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1147094a251fdSmrgac_tmp=$tmp
11471e6232409Smrg
114728fff3f40Smrg# Set up the scripts for CONFIG_FILES section.
114738fff3f40Smrg# No need to generate them if there are no CONFIG_FILES.
114748fff3f40Smrg# This happens for instance with `./config.status config.h'.
11475e6232409Smrgif test -n "$CONFIG_FILES"; then
11476e6232409Smrg
11477e6232409Smrg
114788fff3f40Smrgac_cr=`echo X | tr X '\015'`
114798fff3f40Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
114808fff3f40Smrg# But we know of no other shell where ac_cr would be empty at this
114818fff3f40Smrg# point, so we can use a bashism as a fallback.
114828fff3f40Smrgif test "x$ac_cr" = x; then
114838fff3f40Smrg  eval ac_cr=\$\'\\r\'
114848fff3f40Smrgfi
114858fff3f40Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
114868fff3f40Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1148794a251fdSmrg  ac_cs_awk_cr='\\r'
114888fff3f40Smrgelse
114898fff3f40Smrg  ac_cs_awk_cr=$ac_cr
11490e6232409Smrgfi
11491e6232409Smrg
1149294a251fdSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11493e6232409Smrg_ACEOF
11494e6232409Smrg
11495e6232409Smrg
114968fff3f40Smrg{
114978fff3f40Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
114988fff3f40Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
114998fff3f40Smrg  echo "_ACEOF"
115008fff3f40Smrg} >conf$$subs.sh ||
1150194a251fdSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1150294a251fdSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11503e6232409Smrgac_delim='%!_!# '
11504e6232409Smrgfor ac_last_try in false false false false false :; do
115058fff3f40Smrg  . ./conf$$subs.sh ||
1150694a251fdSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11507e6232409Smrg
115088fff3f40Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
115098fff3f40Smrg  if test $ac_delim_n = $ac_delim_num; then
11510e6232409Smrg    break
11511e6232409Smrg  elif $ac_last_try; then
1151294a251fdSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11513e6232409Smrg  else
11514e6232409Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11515e6232409Smrg  fi
11516e6232409Smrgdone
115178fff3f40Smrgrm -f conf$$subs.sh
11518e6232409Smrg
115198fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1152094a251fdSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
115218fff3f40Smrg_ACEOF
115228fff3f40Smrgsed -n '
115238fff3f40Smrgh
115248fff3f40Smrgs/^/S["/; s/!.*/"]=/
115258fff3f40Smrgp
115268fff3f40Smrgg
115278fff3f40Smrgs/^[^!]*!//
115288fff3f40Smrg:repl
115298fff3f40Smrgt repl
115308fff3f40Smrgs/'"$ac_delim"'$//
115318fff3f40Smrgt delim
115328fff3f40Smrg:nl
115338fff3f40Smrgh
115348fff3f40Smrgs/\(.\{148\}\)..*/\1/
115358fff3f40Smrgt more1
115368fff3f40Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
115378fff3f40Smrgp
115388fff3f40Smrgn
115398fff3f40Smrgb repl
115408fff3f40Smrg:more1
115418fff3f40Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
115428fff3f40Smrgp
115438fff3f40Smrgg
115448fff3f40Smrgs/.\{148\}//
115458fff3f40Smrgt nl
115468fff3f40Smrg:delim
115478fff3f40Smrgh
115488fff3f40Smrgs/\(.\{148\}\)..*/\1/
115498fff3f40Smrgt more2
115508fff3f40Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
115518fff3f40Smrgp
115528fff3f40Smrgb
115538fff3f40Smrg:more2
115548fff3f40Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
115558fff3f40Smrgp
115568fff3f40Smrgg
115578fff3f40Smrgs/.\{148\}//
115588fff3f40Smrgt delim
115598fff3f40Smrg' <conf$$subs.awk | sed '
115608fff3f40Smrg/^[^""]/{
115618fff3f40Smrg  N
115628fff3f40Smrg  s/\n//
115638fff3f40Smrg}
115648fff3f40Smrg' >>$CONFIG_STATUS || ac_write_fail=1
115658fff3f40Smrgrm -f conf$$subs.awk
115668fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
115678fff3f40Smrg_ACAWK
1156894a251fdSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
115698fff3f40Smrg  for (key in S) S_is_set[key] = 1
115708fff3f40Smrg  FS = ""
115718fff3f40Smrg
115728fff3f40Smrg}
115738fff3f40Smrg{
115748fff3f40Smrg  line = $ 0
115758fff3f40Smrg  nfields = split(line, field, "@")
115768fff3f40Smrg  substed = 0
115778fff3f40Smrg  len = length(field[1])
115788fff3f40Smrg  for (i = 2; i < nfields; i++) {
115798fff3f40Smrg    key = field[i]
115808fff3f40Smrg    keylen = length(key)
115818fff3f40Smrg    if (S_is_set[key]) {
115828fff3f40Smrg      value = S[key]
115838fff3f40Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
115848fff3f40Smrg      len += length(value) + length(field[++i])
115858fff3f40Smrg      substed = 1
115868fff3f40Smrg    } else
115878fff3f40Smrg      len += 1 + keylen
115888fff3f40Smrg  }
115898fff3f40Smrg
115908fff3f40Smrg  print line
115918fff3f40Smrg}
11592e6232409Smrg
115938fff3f40Smrg_ACAWK
11594e6232409Smrg_ACEOF
115958fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
115968fff3f40Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
115978fff3f40Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
115988fff3f40Smrgelse
115998fff3f40Smrg  cat
1160094a251fdSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1160194a251fdSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11602e6232409Smrg_ACEOF
11603e6232409Smrg
1160494a251fdSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
1160594a251fdSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11606e6232409Smrg# trailing colons and then remove the whole line if VPATH becomes empty
11607e6232409Smrg# (actually we leave an empty line to preserve line numbers).
11608e6232409Smrgif test "x$srcdir" = x.; then
1160994a251fdSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
1161094a251fdSmrgh
1161194a251fdSmrgs///
1161294a251fdSmrgs/^/:/
1161394a251fdSmrgs/[	 ]*$/:/
1161494a251fdSmrgs/:\$(srcdir):/:/g
1161594a251fdSmrgs/:\${srcdir}:/:/g
1161694a251fdSmrgs/:@srcdir@:/:/g
1161794a251fdSmrgs/^:*//
11618e6232409Smrgs/:*$//
1161994a251fdSmrgx
1162094a251fdSmrgs/\(=[	 ]*\).*/\1/
1162194a251fdSmrgG
1162294a251fdSmrgs/\n//
11623e6232409Smrgs/^[^=]*=[	 ]*$//
11624e6232409Smrg}'
11625e6232409Smrgfi
11626e6232409Smrg
116278fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11628e6232409Smrgfi # test -n "$CONFIG_FILES"
11629e6232409Smrg
116308fff3f40Smrg# Set up the scripts for CONFIG_HEADERS section.
116318fff3f40Smrg# No need to generate them if there are no CONFIG_HEADERS.
116328fff3f40Smrg# This happens for instance with `./config.status Makefile'.
116338fff3f40Smrgif test -n "$CONFIG_HEADERS"; then
1163494a251fdSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
116358fff3f40SmrgBEGIN {
116368fff3f40Smrg_ACEOF
116378fff3f40Smrg
116388fff3f40Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
116398fff3f40Smrg# here-document in config.status, that substitutes the proper values into
116408fff3f40Smrg# config.h.in to produce config.h.
116418fff3f40Smrg
116428fff3f40Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
116438fff3f40Smrg# handling of long lines.
116448fff3f40Smrgac_delim='%!_!# '
116458fff3f40Smrgfor ac_last_try in false false :; do
1164694a251fdSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
1164794a251fdSmrg  if test -z "$ac_tt"; then
116488fff3f40Smrg    break
116498fff3f40Smrg  elif $ac_last_try; then
1165094a251fdSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
116518fff3f40Smrg  else
116528fff3f40Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
116538fff3f40Smrg  fi
116548fff3f40Smrgdone
116558fff3f40Smrg
116568fff3f40Smrg# For the awk script, D is an array of macro values keyed by name,
116578fff3f40Smrg# likewise P contains macro parameters if any.  Preserve backslash
116588fff3f40Smrg# newline sequences.
116598fff3f40Smrg
116608fff3f40Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
116618fff3f40Smrgsed -n '
116628fff3f40Smrgs/.\{148\}/&'"$ac_delim"'/g
116638fff3f40Smrgt rset
116648fff3f40Smrg:rset
116658fff3f40Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
116668fff3f40Smrgt def
116678fff3f40Smrgd
116688fff3f40Smrg:def
116698fff3f40Smrgs/\\$//
116708fff3f40Smrgt bsnl
116718fff3f40Smrgs/["\\]/\\&/g
116728fff3f40Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
116738fff3f40SmrgD["\1"]=" \3"/p
116748fff3f40Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
116758fff3f40Smrgd
116768fff3f40Smrg:bsnl
116778fff3f40Smrgs/["\\]/\\&/g
116788fff3f40Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
116798fff3f40SmrgD["\1"]=" \3\\\\\\n"\\/p
116808fff3f40Smrgt cont
116818fff3f40Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
116828fff3f40Smrgt cont
116838fff3f40Smrgd
116848fff3f40Smrg:cont
116858fff3f40Smrgn
116868fff3f40Smrgs/.\{148\}/&'"$ac_delim"'/g
116878fff3f40Smrgt clear
116888fff3f40Smrg:clear
116898fff3f40Smrgs/\\$//
116908fff3f40Smrgt bsnlc
116918fff3f40Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
116928fff3f40Smrgd
116938fff3f40Smrg:bsnlc
116948fff3f40Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
116958fff3f40Smrgb cont
116968fff3f40Smrg' <confdefs.h | sed '
116978fff3f40Smrgs/'"$ac_delim"'/"\\\
116988fff3f40Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
116998fff3f40Smrg
117008fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
117018fff3f40Smrg  for (key in D) D_is_set[key] = 1
117028fff3f40Smrg  FS = ""
117038fff3f40Smrg}
117048fff3f40Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
117058fff3f40Smrg  line = \$ 0
117068fff3f40Smrg  split(line, arg, " ")
117078fff3f40Smrg  if (arg[1] == "#") {
117088fff3f40Smrg    defundef = arg[2]
117098fff3f40Smrg    mac1 = arg[3]
117108fff3f40Smrg  } else {
117118fff3f40Smrg    defundef = substr(arg[1], 2)
117128fff3f40Smrg    mac1 = arg[2]
117138fff3f40Smrg  }
117148fff3f40Smrg  split(mac1, mac2, "(") #)
117158fff3f40Smrg  macro = mac2[1]
117168fff3f40Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
117178fff3f40Smrg  if (D_is_set[macro]) {
117188fff3f40Smrg    # Preserve the white space surrounding the "#".
117198fff3f40Smrg    print prefix "define", macro P[macro] D[macro]
117208fff3f40Smrg    next
117218fff3f40Smrg  } else {
117228fff3f40Smrg    # Replace #undef with comments.  This is necessary, for example,
117238fff3f40Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
117248fff3f40Smrg    # on some systems where configure will not decide to define it.
117258fff3f40Smrg    if (defundef == "undef") {
117268fff3f40Smrg      print "/*", prefix defundef, macro, "*/"
117278fff3f40Smrg      next
117288fff3f40Smrg    }
117298fff3f40Smrg  }
117308fff3f40Smrg}
117318fff3f40Smrg{ print }
117328fff3f40Smrg_ACAWK
117338fff3f40Smrg_ACEOF
117348fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1173594a251fdSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
117368fff3f40Smrgfi # test -n "$CONFIG_HEADERS"
117378fff3f40Smrg
11738e6232409Smrg
117398fff3f40Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
117408fff3f40Smrgshift
117418fff3f40Smrgfor ac_tag
11742e6232409Smrgdo
11743e6232409Smrg  case $ac_tag in
11744e6232409Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
11745e6232409Smrg  esac
11746e6232409Smrg  case $ac_mode$ac_tag in
11747e6232409Smrg  :[FHL]*:*);;
1174894a251fdSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11749e6232409Smrg  :[FH]-) ac_tag=-:-;;
11750e6232409Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11751e6232409Smrg  esac
11752e6232409Smrg  ac_save_IFS=$IFS
11753e6232409Smrg  IFS=:
11754e6232409Smrg  set x $ac_tag
11755e6232409Smrg  IFS=$ac_save_IFS
11756e6232409Smrg  shift
11757e6232409Smrg  ac_file=$1
11758e6232409Smrg  shift
11759e6232409Smrg
11760e6232409Smrg  case $ac_mode in
11761e6232409Smrg  :L) ac_source=$1;;
11762e6232409Smrg  :[FH])
11763e6232409Smrg    ac_file_inputs=
11764e6232409Smrg    for ac_f
11765e6232409Smrg    do
11766e6232409Smrg      case $ac_f in
1176794a251fdSmrg      -) ac_f="$ac_tmp/stdin";;
11768e6232409Smrg      *) # Look for the file first in the build tree, then in the source tree
11769e6232409Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11770e6232409Smrg	 # because $ac_f cannot contain `:'.
11771e6232409Smrg	 test -f "$ac_f" ||
11772e6232409Smrg	   case $ac_f in
11773e6232409Smrg	   [\\/$]*) false;;
11774e6232409Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11775e6232409Smrg	   esac ||
1177694a251fdSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11777e6232409Smrg      esac
117788fff3f40Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
117798fff3f40Smrg      as_fn_append ac_file_inputs " '$ac_f'"
11780e6232409Smrg    done
11781e6232409Smrg
11782e6232409Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
11783e6232409Smrg    # use $as_me), people would be surprised to read:
11784e6232409Smrg    #    /* config.h.  Generated by config.status.  */
117858fff3f40Smrg    configure_input='Generated from '`
117868fff3f40Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
117878fff3f40Smrg	`' by configure.'
11788e6232409Smrg    if test x"$ac_file" != x-; then
11789e6232409Smrg      configure_input="$ac_file.  $configure_input"
117908fff3f40Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
117918fff3f40Smrg$as_echo "$as_me: creating $ac_file" >&6;}
11792e6232409Smrg    fi
117938fff3f40Smrg    # Neutralize special characters interpreted by sed in replacement strings.
117948fff3f40Smrg    case $configure_input in #(
117958fff3f40Smrg    *\&* | *\|* | *\\* )
117968fff3f40Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
117978fff3f40Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
117988fff3f40Smrg    *) ac_sed_conf_input=$configure_input;;
117998fff3f40Smrg    esac
11800e6232409Smrg
11801e6232409Smrg    case $ac_tag in
1180294a251fdSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
1180394a251fdSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11804e6232409Smrg    esac
11805e6232409Smrg    ;;
11806e6232409Smrg  esac
11807e6232409Smrg
11808e6232409Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
11809e6232409Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11810e6232409Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
11811e6232409Smrg	 X"$ac_file" : 'X\(//\)$' \| \
11812e6232409Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
118138fff3f40Smrg$as_echo X"$ac_file" |
11814e6232409Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11815e6232409Smrg	    s//\1/
11816e6232409Smrg	    q
11817e6232409Smrg	  }
11818e6232409Smrg	  /^X\(\/\/\)[^/].*/{
11819e6232409Smrg	    s//\1/
11820e6232409Smrg	    q
11821e6232409Smrg	  }
11822e6232409Smrg	  /^X\(\/\/\)$/{
11823e6232409Smrg	    s//\1/
11824e6232409Smrg	    q
11825e6232409Smrg	  }
11826e6232409Smrg	  /^X\(\/\).*/{
11827e6232409Smrg	    s//\1/
11828e6232409Smrg	    q
11829e6232409Smrg	  }
11830e6232409Smrg	  s/.*/./; q'`
118318fff3f40Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
11832e6232409Smrg  ac_builddir=.
11833e6232409Smrg
11834e6232409Smrgcase "$ac_dir" in
11835e6232409Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11836e6232409Smrg*)
118378fff3f40Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11838e6232409Smrg  # A ".." for each directory in $ac_dir_suffix.
118398fff3f40Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11840e6232409Smrg  case $ac_top_builddir_sub in
11841e6232409Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11842e6232409Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11843e6232409Smrg  esac ;;
11844e6232409Smrgesac
11845e6232409Smrgac_abs_top_builddir=$ac_pwd
11846e6232409Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
11847e6232409Smrg# for backward compatibility:
11848e6232409Smrgac_top_builddir=$ac_top_build_prefix
11849e6232409Smrg
11850e6232409Smrgcase $srcdir in
11851e6232409Smrg  .)  # We are building in place.
11852e6232409Smrg    ac_srcdir=.
11853e6232409Smrg    ac_top_srcdir=$ac_top_builddir_sub
11854e6232409Smrg    ac_abs_top_srcdir=$ac_pwd ;;
11855e6232409Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
11856e6232409Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
11857e6232409Smrg    ac_top_srcdir=$srcdir
11858e6232409Smrg    ac_abs_top_srcdir=$srcdir ;;
11859e6232409Smrg  *) # Relative name.
11860e6232409Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11861e6232409Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
11862e6232409Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11863e6232409Smrgesac
11864e6232409Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11865e6232409Smrg
11866e6232409Smrg
11867e6232409Smrg  case $ac_mode in
11868e6232409Smrg  :F)
11869e6232409Smrg  #
11870e6232409Smrg  # CONFIG_FILE
11871e6232409Smrg  #
11872e6232409Smrg
11873e6232409Smrg  case $INSTALL in
11874e6232409Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11875e6232409Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11876e6232409Smrg  esac
118778fff3f40Smrg  ac_MKDIR_P=$MKDIR_P
118788fff3f40Smrg  case $MKDIR_P in
118798fff3f40Smrg  [\\/$]* | ?:[\\/]* ) ;;
118808fff3f40Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
118818fff3f40Smrg  esac
11882e6232409Smrg_ACEOF
11883e6232409Smrg
118848fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11885e6232409Smrg# If the template does not know about datarootdir, expand it.
11886e6232409Smrg# FIXME: This hack should be removed a few years after 2.60.
11887e6232409Smrgac_datarootdir_hack=; ac_datarootdir_seen=
118888fff3f40Smrgac_sed_dataroot='
118898fff3f40Smrg/datarootdir/ {
11890e6232409Smrg  p
11891e6232409Smrg  q
11892e6232409Smrg}
11893e6232409Smrg/@datadir@/p
11894e6232409Smrg/@docdir@/p
11895e6232409Smrg/@infodir@/p
11896e6232409Smrg/@localedir@/p
118978fff3f40Smrg/@mandir@/p'
118988fff3f40Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11899e6232409Smrg*datarootdir*) ac_datarootdir_seen=yes;;
11900e6232409Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
119018fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
119028fff3f40Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11903e6232409Smrg_ACEOF
119048fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11905e6232409Smrg  ac_datarootdir_hack='
11906e6232409Smrg  s&@datadir@&$datadir&g
11907e6232409Smrg  s&@docdir@&$docdir&g
11908e6232409Smrg  s&@infodir@&$infodir&g
11909e6232409Smrg  s&@localedir@&$localedir&g
11910e6232409Smrg  s&@mandir@&$mandir&g
119118fff3f40Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
11912e6232409Smrgesac
11913e6232409Smrg_ACEOF
11914e6232409Smrg
11915e6232409Smrg# Neutralize VPATH when `$srcdir' = `.'.
11916e6232409Smrg# Shell code in configure.ac might set extrasub.
11917e6232409Smrg# FIXME: do we really want to maintain this feature?
119188fff3f40Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
119198fff3f40Smrgac_sed_extra="$ac_vpsub
11920e6232409Smrg$extrasub
11921e6232409Smrg_ACEOF
119228fff3f40Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11923e6232409Smrg:t
11924e6232409Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
119258fff3f40Smrgs|@configure_input@|$ac_sed_conf_input|;t t
11926e6232409Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
119278fff3f40Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
11928e6232409Smrgs&@srcdir@&$ac_srcdir&;t t
11929e6232409Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
11930e6232409Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
11931e6232409Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11932e6232409Smrgs&@builddir@&$ac_builddir&;t t
11933e6232409Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
11934e6232409Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11935e6232409Smrgs&@INSTALL@&$ac_INSTALL&;t t
119368fff3f40Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
11937e6232409Smrg$ac_datarootdir_hack
119388fff3f40Smrg"
1193994a251fdSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
1194094a251fdSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11941e6232409Smrg
11942e6232409Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1194394a251fdSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
1194494a251fdSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
1194594a251fdSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
119468fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1194794a251fdSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
119488fff3f40Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1194994a251fdSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
11950e6232409Smrg
1195194a251fdSmrg  rm -f "$ac_tmp/stdin"
11952e6232409Smrg  case $ac_file in
1195394a251fdSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
1195494a251fdSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
119558fff3f40Smrg  esac \
1195694a251fdSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11957e6232409Smrg ;;
11958e6232409Smrg  :H)
11959e6232409Smrg  #
11960e6232409Smrg  # CONFIG_HEADER
11961e6232409Smrg  #
11962e6232409Smrg  if test x"$ac_file" != x-; then
119638fff3f40Smrg    {
119648fff3f40Smrg      $as_echo "/* $configure_input  */" \
1196594a251fdSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
1196694a251fdSmrg    } >"$ac_tmp/config.h" \
1196794a251fdSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1196894a251fdSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
119698fff3f40Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
119708fff3f40Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
11971e6232409Smrg    else
119728fff3f40Smrg      rm -f "$ac_file"
1197394a251fdSmrg      mv "$ac_tmp/config.h" "$ac_file" \
1197494a251fdSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11975e6232409Smrg    fi
11976e6232409Smrg  else
119778fff3f40Smrg    $as_echo "/* $configure_input  */" \
1197894a251fdSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1197994a251fdSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
11980e6232409Smrg  fi
119818fff3f40Smrg# Compute "$ac_file"'s index in $config_headers.
119828fff3f40Smrg_am_arg="$ac_file"
11983e6232409Smrg_am_stamp_count=1
11984e6232409Smrgfor _am_header in $config_headers :; do
11985e6232409Smrg  case $_am_header in
119868fff3f40Smrg    $_am_arg | $_am_arg:* )
11987e6232409Smrg      break ;;
11988e6232409Smrg    * )
11989e6232409Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11990e6232409Smrg  esac
11991e6232409Smrgdone
119928fff3f40Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
119938fff3f40Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
119948fff3f40Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
119958fff3f40Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
119968fff3f40Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
119978fff3f40Smrg$as_echo X"$_am_arg" |
11998e6232409Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11999e6232409Smrg	    s//\1/
12000e6232409Smrg	    q
12001e6232409Smrg	  }
12002e6232409Smrg	  /^X\(\/\/\)[^/].*/{
12003e6232409Smrg	    s//\1/
12004e6232409Smrg	    q
12005e6232409Smrg	  }
12006e6232409Smrg	  /^X\(\/\/\)$/{
12007e6232409Smrg	    s//\1/
12008e6232409Smrg	    q
12009e6232409Smrg	  }
12010e6232409Smrg	  /^X\(\/\).*/{
12011e6232409Smrg	    s//\1/
12012e6232409Smrg	    q
12013e6232409Smrg	  }
12014e6232409Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
12015e6232409Smrg ;;
12016e6232409Smrg
120178fff3f40Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
120188fff3f40Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
12019e6232409Smrg ;;
12020e6232409Smrg  esac
12021e6232409Smrg
12022e6232409Smrg
12023e6232409Smrg  case $ac_file$ac_mode in
120248fff3f40Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
120256a45684fSmrg  # Older Autoconf quotes --file arguments for eval, but not when files
120268fff3f40Smrg  # are listed without --file.  Let's play safe and only enable the eval
120278fff3f40Smrg  # if we detect the quoting.
120288fff3f40Smrg  case $CONFIG_FILES in
120298fff3f40Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
120308fff3f40Smrg  *)   set x $CONFIG_FILES ;;
120318fff3f40Smrg  esac
120328fff3f40Smrg  shift
120338fff3f40Smrg  for mf
120348fff3f40Smrg  do
120358fff3f40Smrg    # Strip MF so we end up with the name of the file.
120368fff3f40Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
120378fff3f40Smrg    # Check whether this is an Automake generated Makefile or not.
120386a45684fSmrg    # We used to match only the files named 'Makefile.in', but
120398fff3f40Smrg    # some people rename them; so instead we look at the file content.
120408fff3f40Smrg    # Grep'ing the first line is not enough: some people post-process
120418fff3f40Smrg    # each Makefile.in and add a new line on top of each file to say so.
120428fff3f40Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
120438fff3f40Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
120448fff3f40Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
120458fff3f40Smrg      dirpart=`$as_dirname -- "$mf" ||
12046e6232409Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12047e6232409Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
12048e6232409Smrg	 X"$mf" : 'X\(//\)$' \| \
12049e6232409Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
120508fff3f40Smrg$as_echo X"$mf" |
12051e6232409Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12052e6232409Smrg	    s//\1/
12053e6232409Smrg	    q
12054e6232409Smrg	  }
12055e6232409Smrg	  /^X\(\/\/\)[^/].*/{
12056e6232409Smrg	    s//\1/
12057e6232409Smrg	    q
12058e6232409Smrg	  }
12059e6232409Smrg	  /^X\(\/\/\)$/{
12060e6232409Smrg	    s//\1/
12061e6232409Smrg	    q
12062e6232409Smrg	  }
12063e6232409Smrg	  /^X\(\/\).*/{
12064e6232409Smrg	    s//\1/
12065e6232409Smrg	    q
12066e6232409Smrg	  }
12067e6232409Smrg	  s/.*/./; q'`
120688fff3f40Smrg    else
120698fff3f40Smrg      continue
120708fff3f40Smrg    fi
120718fff3f40Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
120726a45684fSmrg    # from the Makefile without running 'make'.
120738fff3f40Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
120748fff3f40Smrg    test -z "$DEPDIR" && continue
120758fff3f40Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
120766a45684fSmrg    test -z "$am__include" && continue
120778fff3f40Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
120788fff3f40Smrg    # Find all dependency output files, they are included files with
120798fff3f40Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
120808fff3f40Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
120818fff3f40Smrg    # expansion.
120828fff3f40Smrg    for file in `sed -n "
120838fff3f40Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
120846a45684fSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
120858fff3f40Smrg      # Make sure the directory exists.
120868fff3f40Smrg      test -f "$dirpart/$file" && continue
120878fff3f40Smrg      fdir=`$as_dirname -- "$file" ||
12088e6232409Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12089e6232409Smrg	 X"$file" : 'X\(//\)[^/]' \| \
12090e6232409Smrg	 X"$file" : 'X\(//\)$' \| \
12091e6232409Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
120928fff3f40Smrg$as_echo X"$file" |
12093e6232409Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12094e6232409Smrg	    s//\1/
12095e6232409Smrg	    q
12096e6232409Smrg	  }
12097e6232409Smrg	  /^X\(\/\/\)[^/].*/{
12098e6232409Smrg	    s//\1/
12099e6232409Smrg	    q
12100e6232409Smrg	  }
12101e6232409Smrg	  /^X\(\/\/\)$/{
12102e6232409Smrg	    s//\1/
12103e6232409Smrg	    q
12104e6232409Smrg	  }
12105e6232409Smrg	  /^X\(\/\).*/{
12106e6232409Smrg	    s//\1/
12107e6232409Smrg	    q
12108e6232409Smrg	  }
12109e6232409Smrg	  s/.*/./; q'`
121108fff3f40Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
121118fff3f40Smrg      # echo "creating $dirpart/$file"
121128fff3f40Smrg      echo '# dummy' > "$dirpart/$file"
12113e6232409Smrg    done
12114e6232409Smrg  done
121158fff3f40Smrg}
12116e6232409Smrg ;;
12117e6232409Smrg
12118e6232409Smrg  esac
12119e6232409Smrgdone # for ac_tag
12120e6232409Smrg
12121e6232409Smrg
121228fff3f40Smrgas_fn_exit 0
12123e6232409Smrg_ACEOF
12124e6232409Smrgac_clean_files=$ac_clean_files_save
12125e6232409Smrg
121268fff3f40Smrgtest $ac_write_fail = 0 ||
1212794a251fdSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
121288fff3f40Smrg
12129e6232409Smrg
12130e6232409Smrg# configure is writing to config.log, and then calls config.status.
12131e6232409Smrg# config.status does its own redirection, appending to config.log.
12132e6232409Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
12133e6232409Smrg# by configure, so config.status won't be able to write to it; its
12134e6232409Smrg# output is simply discarded.  So we exec the FD to /dev/null,
12135e6232409Smrg# effectively closing config.log, so it can be properly (re)opened and
12136e6232409Smrg# appended to by config.status.  When coming back to configure, we
12137e6232409Smrg# need to make the FD available again.
12138e6232409Smrgif test "$no_create" != yes; then
12139e6232409Smrg  ac_cs_success=:
12140e6232409Smrg  ac_config_status_args=
12141e6232409Smrg  test "$silent" = yes &&
12142e6232409Smrg    ac_config_status_args="$ac_config_status_args --quiet"
12143e6232409Smrg  exec 5>/dev/null
12144e6232409Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12145e6232409Smrg  exec 5>>config.log
12146e6232409Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12147e6232409Smrg  # would make configure fail if this is the last instruction.
1214894a251fdSmrg  $ac_cs_success || as_fn_exit 1
121498fff3f40Smrgfi
121508fff3f40Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
121518fff3f40Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
121528fff3f40Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12153e6232409Smrgfi
12154e6232409Smrg
12155