configure revision 309c398a
1e9554658Smrg#! /bin/sh
2e9554658Smrg# Guess values for system-dependent variables and create Makefiles.
3309c398aSmrg# Generated by GNU Autoconf 2.68 for xclock 1.0.6.
4e9554658Smrg#
5e9554658Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6e9554658Smrg#
78903d43aSmrg#
8e9554658Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
98903d43aSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
108903d43aSmrg# Foundation, Inc.
118903d43aSmrg#
128903d43aSmrg#
13e9554658Smrg# This configure script is free software; the Free Software Foundation
14e9554658Smrg# gives unlimited permission to copy, distribute and modify it.
158903d43aSmrg## -------------------- ##
168903d43aSmrg## M4sh Initialization. ##
178903d43aSmrg## -------------------- ##
18e9554658Smrg
19e9554658Smrg# Be more Bourne compatible
20e9554658SmrgDUALCASE=1; export DUALCASE # for MKS sh
218903d43aSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22e9554658Smrg  emulate sh
23e9554658Smrg  NULLCMD=:
24c2b339b4Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25e9554658Smrg  # is contrary to our usage.  Disable this feature.
26e9554658Smrg  alias -g '${1+"$@"}'='"$@"'
27e9554658Smrg  setopt NO_GLOB_SUBST
28e9554658Smrgelse
298903d43aSmrg  case `(set -o) 2>/dev/null` in #(
308903d43aSmrg  *posix*) :
318903d43aSmrg    set -o posix ;; #(
328903d43aSmrg  *) :
338903d43aSmrg     ;;
34e9554658Smrgesac
35e9554658Smrgfi
36e9554658Smrg
37e9554658Smrg
38c2b339b4Smrgas_nl='
39c2b339b4Smrg'
40c2b339b4Smrgexport as_nl
41c2b339b4Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
42c2b339b4Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43c2b339b4Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44c2b339b4Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
458903d43aSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
468903d43aSmrg# but without wasting forks for bash or zsh.
478903d43aSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
488903d43aSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
498903d43aSmrg  as_echo='print -r --'
508903d43aSmrg  as_echo_n='print -rn --'
518903d43aSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52c2b339b4Smrg  as_echo='printf %s\n'
53c2b339b4Smrg  as_echo_n='printf %s'
54c2b339b4Smrgelse
55c2b339b4Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56c2b339b4Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57c2b339b4Smrg    as_echo_n='/usr/ucb/echo -n'
58e9554658Smrg  else
59c2b339b4Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60c2b339b4Smrg    as_echo_n_body='eval
61c2b339b4Smrg      arg=$1;
628903d43aSmrg      case $arg in #(
63c2b339b4Smrg      *"$as_nl"*)
64c2b339b4Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
65c2b339b4Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66c2b339b4Smrg      esac;
67c2b339b4Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68c2b339b4Smrg    '
69c2b339b4Smrg    export as_echo_n_body
70c2b339b4Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71e9554658Smrg  fi
72c2b339b4Smrg  export as_echo_body
73c2b339b4Smrg  as_echo='sh -c $as_echo_body as_echo'
74c2b339b4Smrgfi
75c2b339b4Smrg
76c2b339b4Smrg# The user is always right.
77c2b339b4Smrgif test "${PATH_SEPARATOR+set}" != set; then
78c2b339b4Smrg  PATH_SEPARATOR=:
79c2b339b4Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80c2b339b4Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81c2b339b4Smrg      PATH_SEPARATOR=';'
82c2b339b4Smrg  }
83e9554658Smrgfi
84e9554658Smrg
85e9554658Smrg
86e9554658Smrg# IFS
87e9554658Smrg# We need space, tab and new line, in precisely that order.  Quoting is
88e9554658Smrg# there to prevent editors from complaining about space-tab.
89e9554658Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90e9554658Smrg# splitting by setting IFS to empty value.)
91e9554658SmrgIFS=" ""	$as_nl"
92e9554658Smrg
93e9554658Smrg# Find who we are.  Look in the path if we contain no directory separator.
948903d43aSmrgas_myself=
958903d43aSmrgcase $0 in #((
96e9554658Smrg  *[\\/]* ) as_myself=$0 ;;
97e9554658Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98e9554658Smrgfor as_dir in $PATH
99e9554658Smrgdo
100e9554658Smrg  IFS=$as_save_IFS
101e9554658Smrg  test -z "$as_dir" && as_dir=.
1028903d43aSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1038903d43aSmrg  done
104e9554658SmrgIFS=$as_save_IFS
105e9554658Smrg
106e9554658Smrg     ;;
107e9554658Smrgesac
108e9554658Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
109e9554658Smrg# in which case we are not to be found in the path.
110e9554658Smrgif test "x$as_myself" = x; then
111e9554658Smrg  as_myself=$0
112e9554658Smrgfi
113e9554658Smrgif test ! -f "$as_myself"; then
114c2b339b4Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1158903d43aSmrg  exit 1
116e9554658Smrgfi
117e9554658Smrg
1188903d43aSmrg# Unset variables that we do not need and which cause bugs (e.g. in
1198903d43aSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1208903d43aSmrg# suppresses any "Segmentation fault" message there.  '((' could
1218903d43aSmrg# trigger a bug in pdksh 5.2.14.
1228903d43aSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1238903d43aSmrgdo eval test x\${$as_var+set} = xset \
1248903d43aSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125e9554658Smrgdone
126e9554658SmrgPS1='$ '
127e9554658SmrgPS2='> '
128e9554658SmrgPS4='+ '
129e9554658Smrg
130e9554658Smrg# NLS nuisances.
131c2b339b4SmrgLC_ALL=C
132c2b339b4Smrgexport LC_ALL
133c2b339b4SmrgLANGUAGE=C
134c2b339b4Smrgexport LANGUAGE
135e9554658Smrg
1368903d43aSmrg# CDPATH.
1378903d43aSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1388903d43aSmrg
1398903d43aSmrgif test "x$CONFIG_SHELL" = x; then
1408903d43aSmrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1418903d43aSmrg  emulate sh
1428903d43aSmrg  NULLCMD=:
1438903d43aSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1448903d43aSmrg  # is contrary to our usage.  Disable this feature.
1458903d43aSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1468903d43aSmrg  setopt NO_GLOB_SUBST
1478903d43aSmrgelse
1488903d43aSmrg  case \`(set -o) 2>/dev/null\` in #(
1498903d43aSmrg  *posix*) :
1508903d43aSmrg    set -o posix ;; #(
1518903d43aSmrg  *) :
1528903d43aSmrg     ;;
1538903d43aSmrgesac
1548903d43aSmrgfi
1558903d43aSmrg"
1568903d43aSmrg  as_required="as_fn_return () { (exit \$1); }
1578903d43aSmrgas_fn_success () { as_fn_return 0; }
1588903d43aSmrgas_fn_failure () { as_fn_return 1; }
1598903d43aSmrgas_fn_ret_success () { return 0; }
1608903d43aSmrgas_fn_ret_failure () { return 1; }
1618903d43aSmrg
1628903d43aSmrgexitcode=0
1638903d43aSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1648903d43aSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1658903d43aSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1668903d43aSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1678903d43aSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1688903d43aSmrg
1698903d43aSmrgelse
1708903d43aSmrg  exitcode=1; echo positional parameters were not saved.
1718903d43aSmrgfi
1728903d43aSmrgtest x\$exitcode = x0 || exit 1"
1738903d43aSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1748903d43aSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1758903d43aSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1768903d43aSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1778903d43aSmrgtest \$(( 1 + 1 )) = 2 || exit 1"
1788903d43aSmrg  if (eval "$as_required") 2>/dev/null; then :
1798903d43aSmrg  as_have_required=yes
1808903d43aSmrgelse
1818903d43aSmrg  as_have_required=no
1828903d43aSmrgfi
1838903d43aSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1848903d43aSmrg
1858903d43aSmrgelse
1868903d43aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878903d43aSmrgas_found=false
1888903d43aSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1898903d43aSmrgdo
1908903d43aSmrg  IFS=$as_save_IFS
1918903d43aSmrg  test -z "$as_dir" && as_dir=.
1928903d43aSmrg  as_found=:
1938903d43aSmrg  case $as_dir in #(
1948903d43aSmrg	 /*)
1958903d43aSmrg	   for as_base in sh bash ksh sh5; do
1968903d43aSmrg	     # Try only shells that exist, to save several forks.
1978903d43aSmrg	     as_shell=$as_dir/$as_base
1988903d43aSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1998903d43aSmrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2008903d43aSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
2018903d43aSmrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2028903d43aSmrg  break 2
2038903d43aSmrgfi
2048903d43aSmrgfi
2058903d43aSmrg	   done;;
2068903d43aSmrg       esac
2078903d43aSmrg  as_found=false
2088903d43aSmrgdone
2098903d43aSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2108903d43aSmrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2118903d43aSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
2128903d43aSmrgfi; }
2138903d43aSmrgIFS=$as_save_IFS
2148903d43aSmrg
2158903d43aSmrg
2168903d43aSmrg      if test "x$CONFIG_SHELL" != x; then :
2178903d43aSmrg  # We cannot yet assume a decent shell, so we have to provide a
2188903d43aSmrg	# neutralization value for shells without unset; and this also
2198903d43aSmrg	# works around shells that cannot unset nonexistent variables.
2208903d43aSmrg	# Preserve -v and -x to the replacement shell.
2218903d43aSmrg	BASH_ENV=/dev/null
2228903d43aSmrg	ENV=/dev/null
2238903d43aSmrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2248903d43aSmrg	export CONFIG_SHELL
2258903d43aSmrg	case $- in # ((((
2268903d43aSmrg	  *v*x* | *x*v* ) as_opts=-vx ;;
2278903d43aSmrg	  *v* ) as_opts=-v ;;
2288903d43aSmrg	  *x* ) as_opts=-x ;;
2298903d43aSmrg	  * ) as_opts= ;;
2308903d43aSmrg	esac
2318903d43aSmrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
2328903d43aSmrgfi
2338903d43aSmrg
2348903d43aSmrg    if test x$as_have_required = xno; then :
2358903d43aSmrg  $as_echo "$0: This script requires a shell more modern than all"
2368903d43aSmrg  $as_echo "$0: the shells that I found on your system."
2378903d43aSmrg  if test x${ZSH_VERSION+set} = xset ; then
2388903d43aSmrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2398903d43aSmrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2408903d43aSmrg  else
2418903d43aSmrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2428903d43aSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
2438903d43aSmrg$0: about your system, including any error possibly output
2448903d43aSmrg$0: before this message. Then install a modern shell, or
2458903d43aSmrg$0: manually run the script under such a shell if you do
2468903d43aSmrg$0: have one."
2478903d43aSmrg  fi
2488903d43aSmrg  exit 1
2498903d43aSmrgfi
2508903d43aSmrgfi
2518903d43aSmrgfi
2528903d43aSmrgSHELL=${CONFIG_SHELL-/bin/sh}
2538903d43aSmrgexport SHELL
2548903d43aSmrg# Unset more variables known to interfere with behavior of common tools.
2558903d43aSmrgCLICOLOR_FORCE= GREP_OPTIONS=
2568903d43aSmrgunset CLICOLOR_FORCE GREP_OPTIONS
2578903d43aSmrg
2588903d43aSmrg## --------------------- ##
2598903d43aSmrg## M4sh Shell Functions. ##
2608903d43aSmrg## --------------------- ##
2618903d43aSmrg# as_fn_unset VAR
2628903d43aSmrg# ---------------
2638903d43aSmrg# Portably unset VAR.
2648903d43aSmrgas_fn_unset ()
2658903d43aSmrg{
2668903d43aSmrg  { eval $1=; unset $1;}
2678903d43aSmrg}
2688903d43aSmrgas_unset=as_fn_unset
2698903d43aSmrg
2708903d43aSmrg# as_fn_set_status STATUS
2718903d43aSmrg# -----------------------
2728903d43aSmrg# Set $? to STATUS, without forking.
2738903d43aSmrgas_fn_set_status ()
2748903d43aSmrg{
2758903d43aSmrg  return $1
2768903d43aSmrg} # as_fn_set_status
2778903d43aSmrg
2788903d43aSmrg# as_fn_exit STATUS
2798903d43aSmrg# -----------------
2808903d43aSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2818903d43aSmrgas_fn_exit ()
2828903d43aSmrg{
2838903d43aSmrg  set +e
2848903d43aSmrg  as_fn_set_status $1
2858903d43aSmrg  exit $1
2868903d43aSmrg} # as_fn_exit
2878903d43aSmrg
2888903d43aSmrg# as_fn_mkdir_p
2898903d43aSmrg# -------------
2908903d43aSmrg# Create "$as_dir" as a directory, including parents if necessary.
2918903d43aSmrgas_fn_mkdir_p ()
2928903d43aSmrg{
2938903d43aSmrg
2948903d43aSmrg  case $as_dir in #(
2958903d43aSmrg  -*) as_dir=./$as_dir;;
2968903d43aSmrg  esac
2978903d43aSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
2988903d43aSmrg    as_dirs=
2998903d43aSmrg    while :; do
3008903d43aSmrg      case $as_dir in #(
3018903d43aSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3028903d43aSmrg      *) as_qdir=$as_dir;;
3038903d43aSmrg      esac
3048903d43aSmrg      as_dirs="'$as_qdir' $as_dirs"
3058903d43aSmrg      as_dir=`$as_dirname -- "$as_dir" ||
3068903d43aSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3078903d43aSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3088903d43aSmrg	 X"$as_dir" : 'X\(//\)$' \| \
3098903d43aSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3108903d43aSmrg$as_echo X"$as_dir" |
3118903d43aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3128903d43aSmrg	    s//\1/
3138903d43aSmrg	    q
3148903d43aSmrg	  }
3158903d43aSmrg	  /^X\(\/\/\)[^/].*/{
3168903d43aSmrg	    s//\1/
3178903d43aSmrg	    q
3188903d43aSmrg	  }
3198903d43aSmrg	  /^X\(\/\/\)$/{
3208903d43aSmrg	    s//\1/
3218903d43aSmrg	    q
3228903d43aSmrg	  }
3238903d43aSmrg	  /^X\(\/\).*/{
3248903d43aSmrg	    s//\1/
3258903d43aSmrg	    q
3268903d43aSmrg	  }
3278903d43aSmrg	  s/.*/./; q'`
3288903d43aSmrg      test -d "$as_dir" && break
3298903d43aSmrg    done
3308903d43aSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3318903d43aSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3328903d43aSmrg
3338903d43aSmrg
3348903d43aSmrg} # as_fn_mkdir_p
3358903d43aSmrg# as_fn_append VAR VALUE
3368903d43aSmrg# ----------------------
3378903d43aSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3388903d43aSmrg# advantage of any shell optimizations that allow amortized linear growth over
3398903d43aSmrg# repeated appends, instead of the typical quadratic growth present in naive
3408903d43aSmrg# implementations.
3418903d43aSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3428903d43aSmrg  eval 'as_fn_append ()
3438903d43aSmrg  {
3448903d43aSmrg    eval $1+=\$2
3458903d43aSmrg  }'
3468903d43aSmrgelse
3478903d43aSmrg  as_fn_append ()
3488903d43aSmrg  {
3498903d43aSmrg    eval $1=\$$1\$2
3508903d43aSmrg  }
3518903d43aSmrgfi # as_fn_append
3528903d43aSmrg
3538903d43aSmrg# as_fn_arith ARG...
3548903d43aSmrg# ------------------
3558903d43aSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
3568903d43aSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
3578903d43aSmrg# must be portable across $(()) and expr.
3588903d43aSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3598903d43aSmrg  eval 'as_fn_arith ()
3608903d43aSmrg  {
3618903d43aSmrg    as_val=$(( $* ))
3628903d43aSmrg  }'
3638903d43aSmrgelse
3648903d43aSmrg  as_fn_arith ()
3658903d43aSmrg  {
3668903d43aSmrg    as_val=`expr "$@" || test $? -eq 1`
3678903d43aSmrg  }
3688903d43aSmrgfi # as_fn_arith
3698903d43aSmrg
3708903d43aSmrg
3718903d43aSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
3728903d43aSmrg# ----------------------------------------
3738903d43aSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3748903d43aSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3758903d43aSmrg# script with STATUS, using 1 if that was 0.
3768903d43aSmrgas_fn_error ()
3778903d43aSmrg{
3788903d43aSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
3798903d43aSmrg  if test "$4"; then
3808903d43aSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3818903d43aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3828903d43aSmrg  fi
3838903d43aSmrg  $as_echo "$as_me: error: $2" >&2
3848903d43aSmrg  as_fn_exit $as_status
3858903d43aSmrg} # as_fn_error
3868903d43aSmrg
387e9554658Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
388e9554658Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389e9554658Smrg  as_expr=expr
390e9554658Smrgelse
391e9554658Smrg  as_expr=false
392e9554658Smrgfi
393e9554658Smrg
394e9554658Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395e9554658Smrg  as_basename=basename
396e9554658Smrgelse
397e9554658Smrg  as_basename=false
398e9554658Smrgfi
399e9554658Smrg
4008903d43aSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4018903d43aSmrg  as_dirname=dirname
4028903d43aSmrgelse
4038903d43aSmrg  as_dirname=false
4048903d43aSmrgfi
405e9554658Smrg
406e9554658Smrgas_me=`$as_basename -- "$0" ||
407e9554658Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408e9554658Smrg	 X"$0" : 'X\(//\)$' \| \
409e9554658Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410c2b339b4Smrg$as_echo X/"$0" |
411e9554658Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
412e9554658Smrg	    s//\1/
413e9554658Smrg	    q
414e9554658Smrg	  }
415e9554658Smrg	  /^X\/\(\/\/\)$/{
416e9554658Smrg	    s//\1/
417e9554658Smrg	    q
418e9554658Smrg	  }
419e9554658Smrg	  /^X\/\(\/\).*/{
420e9554658Smrg	    s//\1/
421e9554658Smrg	    q
422e9554658Smrg	  }
423e9554658Smrg	  s/.*/./; q'`
424e9554658Smrg
4258903d43aSmrg# Avoid depending upon Character Ranges.
4268903d43aSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4278903d43aSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4288903d43aSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4298903d43aSmrgas_cr_digits='0123456789'
4308903d43aSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
431e9554658Smrg
432e9554658Smrg
4338903d43aSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4348903d43aSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4358903d43aSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4368903d43aSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4378903d43aSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4388903d43aSmrg  sed -n '
4398903d43aSmrg    p
4408903d43aSmrg    /[$]LINENO/=
4418903d43aSmrg  ' <$as_myself |
4428903d43aSmrg    sed '
4438903d43aSmrg      s/[$]LINENO.*/&-/
4448903d43aSmrg      t lineno
4458903d43aSmrg      b
4468903d43aSmrg      :lineno
4478903d43aSmrg      N
4488903d43aSmrg      :loop
4498903d43aSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4508903d43aSmrg      t loop
4518903d43aSmrg      s/-\n.*//
4528903d43aSmrg    ' >$as_me.lineno &&
4538903d43aSmrg  chmod +x "$as_me.lineno" ||
4548903d43aSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455e9554658Smrg
4568903d43aSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
4578903d43aSmrg  # (the dirname of $[0] is not the place where we might find the
4588903d43aSmrg  # original and so on.  Autoconf is especially sensitive to this).
4598903d43aSmrg  . "./$as_me.lineno"
4608903d43aSmrg  # Exit status is that of the last command.
4618903d43aSmrg  exit
462e9554658Smrg}
463e9554658Smrg
4648903d43aSmrgECHO_C= ECHO_N= ECHO_T=
4658903d43aSmrgcase `echo -n x` in #(((((
4668903d43aSmrg-n*)
4678903d43aSmrg  case `echo 'xy\c'` in
4688903d43aSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4698903d43aSmrg  xy)  ECHO_C='\c';;
4708903d43aSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4718903d43aSmrg       ECHO_T='	';;
4728903d43aSmrg  esac;;
4738903d43aSmrg*)
4748903d43aSmrg  ECHO_N='-n';;
4758903d43aSmrgesac
476e9554658Smrg
4778903d43aSmrgrm -f conf$$ conf$$.exe conf$$.file
4788903d43aSmrgif test -d conf$$.dir; then
4798903d43aSmrg  rm -f conf$$.dir/conf$$.file
4808903d43aSmrgelse
4818903d43aSmrg  rm -f conf$$.dir
4828903d43aSmrg  mkdir conf$$.dir 2>/dev/null
483e9554658Smrgfi
4848903d43aSmrgif (echo >conf$$.file) 2>/dev/null; then
4858903d43aSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
4868903d43aSmrg    as_ln_s='ln -s'
4878903d43aSmrg    # ... but there are two gotchas:
4888903d43aSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4898903d43aSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4908903d43aSmrg    # In both cases, we have to default to `cp -p'.
4918903d43aSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4928903d43aSmrg      as_ln_s='cp -p'
4938903d43aSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
4948903d43aSmrg    as_ln_s=ln
4958903d43aSmrg  else
4968903d43aSmrg    as_ln_s='cp -p'
4978903d43aSmrg  fi
498e9554658Smrgelse
4998903d43aSmrg  as_ln_s='cp -p'
500e9554658Smrgfi
5018903d43aSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5028903d43aSmrgrmdir conf$$.dir 2>/dev/null
503e9554658Smrg
5048903d43aSmrgif mkdir -p . 2>/dev/null; then
5058903d43aSmrg  as_mkdir_p='mkdir -p "$as_dir"'
5068903d43aSmrgelse
5078903d43aSmrg  test -d ./-p && rmdir ./-p
5088903d43aSmrg  as_mkdir_p=false
509e9554658Smrgfi
510e9554658Smrg
5118903d43aSmrgif test -x / >/dev/null 2>&1; then
5128903d43aSmrg  as_test_x='test -x'
513e9554658Smrgelse
5148903d43aSmrg  if ls -dL / >/dev/null 2>&1; then
5158903d43aSmrg    as_ls_L_option=L
5168903d43aSmrg  else
5178903d43aSmrg    as_ls_L_option=
5188903d43aSmrg  fi
5198903d43aSmrg  as_test_x='
5208903d43aSmrg    eval sh -c '\''
5218903d43aSmrg      if test -d "$1"; then
5228903d43aSmrg	test -d "$1/.";
5238903d43aSmrg      else
5248903d43aSmrg	case $1 in #(
5258903d43aSmrg	-*)set "./$1";;
5268903d43aSmrg	esac;
5278903d43aSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5288903d43aSmrg	???[sx]*):;;*)false;;esac;fi
5298903d43aSmrg    '\'' sh
5308903d43aSmrg  '
531e9554658Smrgfi
5328903d43aSmrgas_executable_p=$as_test_x
533e9554658Smrg
5348903d43aSmrg# Sed expression to map a string onto a valid CPP name.
5358903d43aSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536e9554658Smrg
5378903d43aSmrg# Sed expression to map a string onto a valid variable name.
5388903d43aSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539e9554658Smrg
540e9554658Smrg
5418903d43aSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
5428903d43aSmrgexec 6>&1
543e9554658Smrg
544e9554658Smrg# Name of the host.
5458903d43aSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546e9554658Smrg# so uname gets run too.
547e9554658Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548e9554658Smrg
549e9554658Smrg#
550e9554658Smrg# Initializations.
551e9554658Smrg#
552e9554658Smrgac_default_prefix=/usr/local
553e9554658Smrgac_clean_files=
554e9554658Smrgac_config_libobj_dir=.
555e9554658SmrgLIBOBJS=
556e9554658Smrgcross_compiling=no
557e9554658Smrgsubdirs=
558e9554658SmrgMFLAGS=
559e9554658SmrgMAKEFLAGS=
560e9554658Smrg
561e9554658Smrg# Identity of this package.
562e9554658SmrgPACKAGE_NAME='xclock'
563e9554658SmrgPACKAGE_TARNAME='xclock'
564309c398aSmrgPACKAGE_VERSION='1.0.6'
565309c398aSmrgPACKAGE_STRING='xclock 1.0.6'
566e9554658SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
5678903d43aSmrgPACKAGE_URL=''
568e9554658Smrg
569c2b339b4Smrg# Factoring default headers for most tests.
570c2b339b4Smrgac_includes_default="\
571c2b339b4Smrg#include <stdio.h>
572c2b339b4Smrg#ifdef HAVE_SYS_TYPES_H
573c2b339b4Smrg# include <sys/types.h>
574c2b339b4Smrg#endif
575c2b339b4Smrg#ifdef HAVE_SYS_STAT_H
576c2b339b4Smrg# include <sys/stat.h>
577c2b339b4Smrg#endif
578c2b339b4Smrg#ifdef STDC_HEADERS
579c2b339b4Smrg# include <stdlib.h>
580c2b339b4Smrg# include <stddef.h>
581c2b339b4Smrg#else
582c2b339b4Smrg# ifdef HAVE_STDLIB_H
583c2b339b4Smrg#  include <stdlib.h>
584c2b339b4Smrg# endif
585c2b339b4Smrg#endif
586c2b339b4Smrg#ifdef HAVE_STRING_H
587c2b339b4Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588c2b339b4Smrg#  include <memory.h>
589c2b339b4Smrg# endif
590c2b339b4Smrg# include <string.h>
591c2b339b4Smrg#endif
592c2b339b4Smrg#ifdef HAVE_STRINGS_H
593c2b339b4Smrg# include <strings.h>
594c2b339b4Smrg#endif
595c2b339b4Smrg#ifdef HAVE_INTTYPES_H
596c2b339b4Smrg# include <inttypes.h>
597c2b339b4Smrg#endif
598c2b339b4Smrg#ifdef HAVE_STDINT_H
599c2b339b4Smrg# include <stdint.h>
600c2b339b4Smrg#endif
601c2b339b4Smrg#ifdef HAVE_UNISTD_H
602c2b339b4Smrg# include <unistd.h>
603c2b339b4Smrg#endif"
604c2b339b4Smrg
605c2b339b4Smrgac_subst_vars='am__EXEEXT_FALSE
606c2b339b4Smrgam__EXEEXT_TRUE
607c2b339b4SmrgLTLIBOBJS
608c2b339b4SmrgLIBOBJS
609e9554658Smrgappdefaultdir
610c2b339b4SmrgAPPDEFS_LIBS
611c2b339b4SmrgAPPDEFS_CFLAGS
612c2b339b4SmrgXKB_LIBS
613c2b339b4SmrgXKB_CFLAGS
614c2b339b4SmrgXFT_LIBS
615c2b339b4SmrgXFT_CFLAGS
6168903d43aSmrgXCLOCK_LIBS
6178903d43aSmrgXCLOCK_CFLAGS
618309c398aSmrgLTLIBICONV
619309c398aSmrgLIBICONV
6208903d43aSmrgAM_BACKSLASH
6218903d43aSmrgAM_DEFAULT_VERBOSITY
6228903d43aSmrgMAN_SUBSTS
6238903d43aSmrgXORG_MAN_PAGE
624e9554658SmrgADMIN_MAN_DIR
625c2b339b4SmrgDRIVER_MAN_DIR
626c2b339b4SmrgMISC_MAN_DIR
627c2b339b4SmrgFILE_MAN_DIR
628c2b339b4SmrgLIB_MAN_DIR
629c2b339b4SmrgAPP_MAN_DIR
630c2b339b4SmrgADMIN_MAN_SUFFIX
631c2b339b4SmrgDRIVER_MAN_SUFFIX
632c2b339b4SmrgMISC_MAN_SUFFIX
633c2b339b4SmrgFILE_MAN_SUFFIX
634c2b339b4SmrgLIB_MAN_SUFFIX
635c2b339b4SmrgAPP_MAN_SUFFIX
6368903d43aSmrgSED
637c2b339b4Smrghost_os
638c2b339b4Smrghost_vendor
639c2b339b4Smrghost_cpu
640c2b339b4Smrghost
641c2b339b4Smrgbuild_os
642c2b339b4Smrgbuild_vendor
643c2b339b4Smrgbuild_cpu
644c2b339b4Smrgbuild
6458903d43aSmrgINSTALL_CMD
6468903d43aSmrgPKG_CONFIG
647c2b339b4SmrgCHANGELOG_CMD
648309c398aSmrgSTRICT_CFLAGS
649c2b339b4SmrgCWARNFLAGS
650309c398aSmrgBASE_CFLAGS
651c2b339b4SmrgEGREP
652c2b339b4SmrgGREP
653c2b339b4SmrgCPP
654c2b339b4Smrgam__fastdepCC_FALSE
655c2b339b4Smrgam__fastdepCC_TRUE
656c2b339b4SmrgCCDEPMODE
657c2b339b4SmrgAMDEPBACKSLASH
658c2b339b4SmrgAMDEP_FALSE
659c2b339b4SmrgAMDEP_TRUE
660c2b339b4Smrgam__quote
661c2b339b4Smrgam__include
662c2b339b4SmrgDEPDIR
663c2b339b4SmrgOBJEXT
664c2b339b4SmrgEXEEXT
665c2b339b4Smrgac_ct_CC
666c2b339b4SmrgCPPFLAGS
667c2b339b4SmrgLDFLAGS
668c2b339b4SmrgCFLAGS
669c2b339b4SmrgCC
670c2b339b4SmrgMAINT
671c2b339b4SmrgMAINTAINER_MODE_FALSE
672c2b339b4SmrgMAINTAINER_MODE_TRUE
673c2b339b4Smrgam__untar
674c2b339b4Smrgam__tar
675c2b339b4SmrgAMTAR
676c2b339b4Smrgam__leading_dot
677c2b339b4SmrgSET_MAKE
678c2b339b4SmrgAWK
679c2b339b4Smrgmkdir_p
680c2b339b4SmrgMKDIR_P
681c2b339b4SmrgINSTALL_STRIP_PROGRAM
682c2b339b4SmrgSTRIP
683c2b339b4Smrginstall_sh
684c2b339b4SmrgMAKEINFO
685c2b339b4SmrgAUTOHEADER
686c2b339b4SmrgAUTOMAKE
687c2b339b4SmrgAUTOCONF
688c2b339b4SmrgACLOCAL
689c2b339b4SmrgVERSION
690c2b339b4SmrgPACKAGE
691c2b339b4SmrgCYGPATH_W
692c2b339b4Smrgam__isrc
693c2b339b4SmrgINSTALL_DATA
694c2b339b4SmrgINSTALL_SCRIPT
695c2b339b4SmrgINSTALL_PROGRAM
696c2b339b4Smrgtarget_alias
697c2b339b4Smrghost_alias
698c2b339b4Smrgbuild_alias
699c2b339b4SmrgLIBS
700c2b339b4SmrgECHO_T
701c2b339b4SmrgECHO_N
702c2b339b4SmrgECHO_C
703c2b339b4SmrgDEFS
704c2b339b4Smrgmandir
705c2b339b4Smrglocaledir
706c2b339b4Smrglibdir
707c2b339b4Smrgpsdir
708c2b339b4Smrgpdfdir
709c2b339b4Smrgdvidir
710c2b339b4Smrghtmldir
711c2b339b4Smrginfodir
712c2b339b4Smrgdocdir
713c2b339b4Smrgoldincludedir
714c2b339b4Smrgincludedir
715c2b339b4Smrglocalstatedir
716c2b339b4Smrgsharedstatedir
717c2b339b4Smrgsysconfdir
718c2b339b4Smrgdatadir
719c2b339b4Smrgdatarootdir
720c2b339b4Smrglibexecdir
721c2b339b4Smrgsbindir
722c2b339b4Smrgbindir
723c2b339b4Smrgprogram_transform_name
724c2b339b4Smrgprefix
725c2b339b4Smrgexec_prefix
7268903d43aSmrgPACKAGE_URL
727c2b339b4SmrgPACKAGE_BUGREPORT
728c2b339b4SmrgPACKAGE_STRING
729c2b339b4SmrgPACKAGE_VERSION
730c2b339b4SmrgPACKAGE_TARNAME
731c2b339b4SmrgPACKAGE_NAME
732c2b339b4SmrgPATH_SEPARATOR
733c2b339b4SmrgSHELL'
734e9554658Smrgac_subst_files=''
735c2b339b4Smrgac_user_opts='
736c2b339b4Smrgenable_option_checking
737c2b339b4Smrgenable_maintainer_mode
738c2b339b4Smrgenable_dependency_tracking
739309c398aSmrgenable_selective_werror
740c2b339b4Smrgenable_strict_compilation
7418903d43aSmrgenable_silent_rules
742309c398aSmrgwith_gnu_ld
743309c398aSmrgenable_rpath
744309c398aSmrgwith_libiconv_prefix
745c2b339b4Smrgwith_xft
746c2b339b4Smrgwith_xkb
747c2b339b4Smrgwith_appdefaultdir
748c2b339b4Smrg'
749e9554658Smrg      ac_precious_vars='build_alias
750e9554658Smrghost_alias
751e9554658Smrgtarget_alias
752e9554658SmrgCC
753e9554658SmrgCFLAGS
754e9554658SmrgLDFLAGS
755e9554658SmrgLIBS
756e9554658SmrgCPPFLAGS
757c2b339b4SmrgCPP
758e9554658SmrgPKG_CONFIG
7598903d43aSmrgXCLOCK_CFLAGS
7608903d43aSmrgXCLOCK_LIBS
761e9554658SmrgXFT_CFLAGS
762e9554658SmrgXFT_LIBS
763e9554658SmrgXKB_CFLAGS
764e9554658SmrgXKB_LIBS
765e9554658SmrgAPPDEFS_CFLAGS
766e9554658SmrgAPPDEFS_LIBS'
767e9554658Smrg
768e9554658Smrg
769e9554658Smrg# Initialize some variables set by options.
770e9554658Smrgac_init_help=
771e9554658Smrgac_init_version=false
772c2b339b4Smrgac_unrecognized_opts=
773c2b339b4Smrgac_unrecognized_sep=
774e9554658Smrg# The variables have the same names as the options, with
775e9554658Smrg# dashes changed to underlines.
776e9554658Smrgcache_file=/dev/null
777e9554658Smrgexec_prefix=NONE
778e9554658Smrgno_create=
779e9554658Smrgno_recursion=
780e9554658Smrgprefix=NONE
781e9554658Smrgprogram_prefix=NONE
782e9554658Smrgprogram_suffix=NONE
783e9554658Smrgprogram_transform_name=s,x,x,
784e9554658Smrgsilent=
785e9554658Smrgsite=
786e9554658Smrgsrcdir=
787e9554658Smrgverbose=
788e9554658Smrgx_includes=NONE
789e9554658Smrgx_libraries=NONE
790e9554658Smrg
791e9554658Smrg# Installation directory options.
792e9554658Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
793e9554658Smrg# and all the variables that are supposed to be based on exec_prefix
794e9554658Smrg# by default will actually change.
795e9554658Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
796e9554658Smrg# (The list follows the same order as the GNU Coding Standards.)
797e9554658Smrgbindir='${exec_prefix}/bin'
798e9554658Smrgsbindir='${exec_prefix}/sbin'
799e9554658Smrglibexecdir='${exec_prefix}/libexec'
800e9554658Smrgdatarootdir='${prefix}/share'
801e9554658Smrgdatadir='${datarootdir}'
802e9554658Smrgsysconfdir='${prefix}/etc'
803e9554658Smrgsharedstatedir='${prefix}/com'
804e9554658Smrglocalstatedir='${prefix}/var'
805e9554658Smrgincludedir='${prefix}/include'
806e9554658Smrgoldincludedir='/usr/include'
807e9554658Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
808e9554658Smrginfodir='${datarootdir}/info'
809e9554658Smrghtmldir='${docdir}'
810e9554658Smrgdvidir='${docdir}'
811e9554658Smrgpdfdir='${docdir}'
812e9554658Smrgpsdir='${docdir}'
813e9554658Smrglibdir='${exec_prefix}/lib'
814e9554658Smrglocaledir='${datarootdir}/locale'
815e9554658Smrgmandir='${datarootdir}/man'
816e9554658Smrg
817e9554658Smrgac_prev=
818e9554658Smrgac_dashdash=
819e9554658Smrgfor ac_option
820e9554658Smrgdo
821e9554658Smrg  # If the previous option needs an argument, assign it.
822e9554658Smrg  if test -n "$ac_prev"; then
823e9554658Smrg    eval $ac_prev=\$ac_option
824e9554658Smrg    ac_prev=
825e9554658Smrg    continue
826e9554658Smrg  fi
827e9554658Smrg
828e9554658Smrg  case $ac_option in
8298903d43aSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8308903d43aSmrg  *=)   ac_optarg= ;;
8318903d43aSmrg  *)    ac_optarg=yes ;;
832e9554658Smrg  esac
833e9554658Smrg
834e9554658Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
835e9554658Smrg
836e9554658Smrg  case $ac_dashdash$ac_option in
837e9554658Smrg  --)
838e9554658Smrg    ac_dashdash=yes ;;
839e9554658Smrg
840e9554658Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
841e9554658Smrg    ac_prev=bindir ;;
842e9554658Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
843e9554658Smrg    bindir=$ac_optarg ;;
844e9554658Smrg
845e9554658Smrg  -build | --build | --buil | --bui | --bu)
846e9554658Smrg    ac_prev=build_alias ;;
847e9554658Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
848e9554658Smrg    build_alias=$ac_optarg ;;
849e9554658Smrg
850e9554658Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
851e9554658Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
852e9554658Smrg    ac_prev=cache_file ;;
853e9554658Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
854e9554658Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
855e9554658Smrg    cache_file=$ac_optarg ;;
856e9554658Smrg
857e9554658Smrg  --config-cache | -C)
858e9554658Smrg    cache_file=config.cache ;;
859e9554658Smrg
860e9554658Smrg  -datadir | --datadir | --datadi | --datad)
861e9554658Smrg    ac_prev=datadir ;;
862e9554658Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
863e9554658Smrg    datadir=$ac_optarg ;;
864e9554658Smrg
865e9554658Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
866e9554658Smrg  | --dataroo | --dataro | --datar)
867e9554658Smrg    ac_prev=datarootdir ;;
868e9554658Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
869e9554658Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
870e9554658Smrg    datarootdir=$ac_optarg ;;
871e9554658Smrg
872e9554658Smrg  -disable-* | --disable-*)
873c2b339b4Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
874e9554658Smrg    # Reject names that are not valid shell variable names.
875c2b339b4Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8768903d43aSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
877c2b339b4Smrg    ac_useropt_orig=$ac_useropt
878c2b339b4Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
879c2b339b4Smrg    case $ac_user_opts in
880c2b339b4Smrg      *"
881c2b339b4Smrg"enable_$ac_useropt"
882c2b339b4Smrg"*) ;;
883c2b339b4Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
884c2b339b4Smrg	 ac_unrecognized_sep=', ';;
885c2b339b4Smrg    esac
886c2b339b4Smrg    eval enable_$ac_useropt=no ;;
887e9554658Smrg
888e9554658Smrg  -docdir | --docdir | --docdi | --doc | --do)
889e9554658Smrg    ac_prev=docdir ;;
890e9554658Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
891e9554658Smrg    docdir=$ac_optarg ;;
892e9554658Smrg
893e9554658Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
894e9554658Smrg    ac_prev=dvidir ;;
895e9554658Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
896e9554658Smrg    dvidir=$ac_optarg ;;
897e9554658Smrg
898e9554658Smrg  -enable-* | --enable-*)
899c2b339b4Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
900e9554658Smrg    # Reject names that are not valid shell variable names.
901c2b339b4Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9028903d43aSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
903c2b339b4Smrg    ac_useropt_orig=$ac_useropt
904c2b339b4Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905c2b339b4Smrg    case $ac_user_opts in
906c2b339b4Smrg      *"
907c2b339b4Smrg"enable_$ac_useropt"
908c2b339b4Smrg"*) ;;
909c2b339b4Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
910c2b339b4Smrg	 ac_unrecognized_sep=', ';;
911c2b339b4Smrg    esac
912c2b339b4Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
913e9554658Smrg
914e9554658Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915e9554658Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916e9554658Smrg  | --exec | --exe | --ex)
917e9554658Smrg    ac_prev=exec_prefix ;;
918e9554658Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919e9554658Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920e9554658Smrg  | --exec=* | --exe=* | --ex=*)
921e9554658Smrg    exec_prefix=$ac_optarg ;;
922e9554658Smrg
923e9554658Smrg  -gas | --gas | --ga | --g)
924e9554658Smrg    # Obsolete; use --with-gas.
925e9554658Smrg    with_gas=yes ;;
926e9554658Smrg
927e9554658Smrg  -help | --help | --hel | --he | -h)
928e9554658Smrg    ac_init_help=long ;;
929e9554658Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930e9554658Smrg    ac_init_help=recursive ;;
931e9554658Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932e9554658Smrg    ac_init_help=short ;;
933e9554658Smrg
934e9554658Smrg  -host | --host | --hos | --ho)
935e9554658Smrg    ac_prev=host_alias ;;
936e9554658Smrg  -host=* | --host=* | --hos=* | --ho=*)
937e9554658Smrg    host_alias=$ac_optarg ;;
938e9554658Smrg
939e9554658Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940e9554658Smrg    ac_prev=htmldir ;;
941e9554658Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942e9554658Smrg  | --ht=*)
943e9554658Smrg    htmldir=$ac_optarg ;;
944e9554658Smrg
945e9554658Smrg  -includedir | --includedir | --includedi | --included | --include \
946e9554658Smrg  | --includ | --inclu | --incl | --inc)
947e9554658Smrg    ac_prev=includedir ;;
948e9554658Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949e9554658Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
950e9554658Smrg    includedir=$ac_optarg ;;
951e9554658Smrg
952e9554658Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
953e9554658Smrg    ac_prev=infodir ;;
954e9554658Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955e9554658Smrg    infodir=$ac_optarg ;;
956e9554658Smrg
957e9554658Smrg  -libdir | --libdir | --libdi | --libd)
958e9554658Smrg    ac_prev=libdir ;;
959e9554658Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
960e9554658Smrg    libdir=$ac_optarg ;;
961e9554658Smrg
962e9554658Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963e9554658Smrg  | --libexe | --libex | --libe)
964e9554658Smrg    ac_prev=libexecdir ;;
965e9554658Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966e9554658Smrg  | --libexe=* | --libex=* | --libe=*)
967e9554658Smrg    libexecdir=$ac_optarg ;;
968e9554658Smrg
969e9554658Smrg  -localedir | --localedir | --localedi | --localed | --locale)
970e9554658Smrg    ac_prev=localedir ;;
971e9554658Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972e9554658Smrg    localedir=$ac_optarg ;;
973e9554658Smrg
974e9554658Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
975e9554658Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
976e9554658Smrg    ac_prev=localstatedir ;;
977e9554658Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978e9554658Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979e9554658Smrg    localstatedir=$ac_optarg ;;
980e9554658Smrg
981e9554658Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982e9554658Smrg    ac_prev=mandir ;;
983e9554658Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984e9554658Smrg    mandir=$ac_optarg ;;
985e9554658Smrg
986e9554658Smrg  -nfp | --nfp | --nf)
987e9554658Smrg    # Obsolete; use --without-fp.
988e9554658Smrg    with_fp=no ;;
989e9554658Smrg
990e9554658Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991e9554658Smrg  | --no-cr | --no-c | -n)
992e9554658Smrg    no_create=yes ;;
993e9554658Smrg
994e9554658Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995e9554658Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996e9554658Smrg    no_recursion=yes ;;
997e9554658Smrg
998e9554658Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999e9554658Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000e9554658Smrg  | --oldin | --oldi | --old | --ol | --o)
1001e9554658Smrg    ac_prev=oldincludedir ;;
1002e9554658Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003e9554658Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004e9554658Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005e9554658Smrg    oldincludedir=$ac_optarg ;;
1006e9554658Smrg
1007e9554658Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008e9554658Smrg    ac_prev=prefix ;;
1009e9554658Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010e9554658Smrg    prefix=$ac_optarg ;;
1011e9554658Smrg
1012e9554658Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013e9554658Smrg  | --program-pre | --program-pr | --program-p)
1014e9554658Smrg    ac_prev=program_prefix ;;
1015e9554658Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016e9554658Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017e9554658Smrg    program_prefix=$ac_optarg ;;
1018e9554658Smrg
1019e9554658Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020e9554658Smrg  | --program-suf | --program-su | --program-s)
1021e9554658Smrg    ac_prev=program_suffix ;;
1022e9554658Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023e9554658Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024e9554658Smrg    program_suffix=$ac_optarg ;;
1025e9554658Smrg
1026e9554658Smrg  -program-transform-name | --program-transform-name \
1027e9554658Smrg  | --program-transform-nam | --program-transform-na \
1028e9554658Smrg  | --program-transform-n | --program-transform- \
1029e9554658Smrg  | --program-transform | --program-transfor \
1030e9554658Smrg  | --program-transfo | --program-transf \
1031e9554658Smrg  | --program-trans | --program-tran \
1032e9554658Smrg  | --progr-tra | --program-tr | --program-t)
1033e9554658Smrg    ac_prev=program_transform_name ;;
1034e9554658Smrg  -program-transform-name=* | --program-transform-name=* \
1035e9554658Smrg  | --program-transform-nam=* | --program-transform-na=* \
1036e9554658Smrg  | --program-transform-n=* | --program-transform-=* \
1037e9554658Smrg  | --program-transform=* | --program-transfor=* \
1038e9554658Smrg  | --program-transfo=* | --program-transf=* \
1039e9554658Smrg  | --program-trans=* | --program-tran=* \
1040e9554658Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1041e9554658Smrg    program_transform_name=$ac_optarg ;;
1042e9554658Smrg
1043e9554658Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044e9554658Smrg    ac_prev=pdfdir ;;
1045e9554658Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046e9554658Smrg    pdfdir=$ac_optarg ;;
1047e9554658Smrg
1048e9554658Smrg  -psdir | --psdir | --psdi | --psd | --ps)
1049e9554658Smrg    ac_prev=psdir ;;
1050e9554658Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1051e9554658Smrg    psdir=$ac_optarg ;;
1052e9554658Smrg
1053e9554658Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054e9554658Smrg  | -silent | --silent | --silen | --sile | --sil)
1055e9554658Smrg    silent=yes ;;
1056e9554658Smrg
1057e9554658Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1058e9554658Smrg    ac_prev=sbindir ;;
1059e9554658Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1060e9554658Smrg  | --sbi=* | --sb=*)
1061e9554658Smrg    sbindir=$ac_optarg ;;
1062e9554658Smrg
1063e9554658Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1064e9554658Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1065e9554658Smrg  | --sharedst | --shareds | --shared | --share | --shar \
1066e9554658Smrg  | --sha | --sh)
1067e9554658Smrg    ac_prev=sharedstatedir ;;
1068e9554658Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1069e9554658Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1070e9554658Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1071e9554658Smrg  | --sha=* | --sh=*)
1072e9554658Smrg    sharedstatedir=$ac_optarg ;;
1073e9554658Smrg
1074e9554658Smrg  -site | --site | --sit)
1075e9554658Smrg    ac_prev=site ;;
1076e9554658Smrg  -site=* | --site=* | --sit=*)
1077e9554658Smrg    site=$ac_optarg ;;
1078e9554658Smrg
1079e9554658Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1080e9554658Smrg    ac_prev=srcdir ;;
1081e9554658Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1082e9554658Smrg    srcdir=$ac_optarg ;;
1083e9554658Smrg
1084e9554658Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1085e9554658Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
1086e9554658Smrg    ac_prev=sysconfdir ;;
1087e9554658Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1088e9554658Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1089e9554658Smrg    sysconfdir=$ac_optarg ;;
1090e9554658Smrg
1091e9554658Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1092e9554658Smrg    ac_prev=target_alias ;;
1093e9554658Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1094e9554658Smrg    target_alias=$ac_optarg ;;
1095e9554658Smrg
1096e9554658Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1097e9554658Smrg    verbose=yes ;;
1098e9554658Smrg
1099e9554658Smrg  -version | --version | --versio | --versi | --vers | -V)
1100e9554658Smrg    ac_init_version=: ;;
1101e9554658Smrg
1102e9554658Smrg  -with-* | --with-*)
1103c2b339b4Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104e9554658Smrg    # Reject names that are not valid shell variable names.
1105c2b339b4Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11068903d43aSmrg      as_fn_error $? "invalid package name: $ac_useropt"
1107c2b339b4Smrg    ac_useropt_orig=$ac_useropt
1108c2b339b4Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109c2b339b4Smrg    case $ac_user_opts in
1110c2b339b4Smrg      *"
1111c2b339b4Smrg"with_$ac_useropt"
1112c2b339b4Smrg"*) ;;
1113c2b339b4Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1114c2b339b4Smrg	 ac_unrecognized_sep=', ';;
1115c2b339b4Smrg    esac
1116c2b339b4Smrg    eval with_$ac_useropt=\$ac_optarg ;;
1117e9554658Smrg
1118e9554658Smrg  -without-* | --without-*)
1119c2b339b4Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1120e9554658Smrg    # Reject names that are not valid shell variable names.
1121c2b339b4Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11228903d43aSmrg      as_fn_error $? "invalid package name: $ac_useropt"
1123c2b339b4Smrg    ac_useropt_orig=$ac_useropt
1124c2b339b4Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125c2b339b4Smrg    case $ac_user_opts in
1126c2b339b4Smrg      *"
1127c2b339b4Smrg"with_$ac_useropt"
1128c2b339b4Smrg"*) ;;
1129c2b339b4Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1130c2b339b4Smrg	 ac_unrecognized_sep=', ';;
1131c2b339b4Smrg    esac
1132c2b339b4Smrg    eval with_$ac_useropt=no ;;
1133e9554658Smrg
1134e9554658Smrg  --x)
1135e9554658Smrg    # Obsolete; use --with-x.
1136e9554658Smrg    with_x=yes ;;
1137e9554658Smrg
1138e9554658Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1139e9554658Smrg  | --x-incl | --x-inc | --x-in | --x-i)
1140e9554658Smrg    ac_prev=x_includes ;;
1141e9554658Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1142e9554658Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1143e9554658Smrg    x_includes=$ac_optarg ;;
1144e9554658Smrg
1145e9554658Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1146e9554658Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1147e9554658Smrg    ac_prev=x_libraries ;;
1148e9554658Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1149e9554658Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1150e9554658Smrg    x_libraries=$ac_optarg ;;
1151e9554658Smrg
11528903d43aSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
11538903d43aSmrgTry \`$0 --help' for more information"
1154e9554658Smrg    ;;
1155e9554658Smrg
1156e9554658Smrg  *=*)
1157e9554658Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1158e9554658Smrg    # Reject names that are not valid shell variable names.
11598903d43aSmrg    case $ac_envvar in #(
11608903d43aSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
11618903d43aSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
11628903d43aSmrg    esac
1163e9554658Smrg    eval $ac_envvar=\$ac_optarg
1164e9554658Smrg    export $ac_envvar ;;
1165e9554658Smrg
1166e9554658Smrg  *)
1167e9554658Smrg    # FIXME: should be removed in autoconf 3.0.
1168c2b339b4Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1169e9554658Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1170c2b339b4Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11718903d43aSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1172e9554658Smrg    ;;
1173e9554658Smrg
1174e9554658Smrg  esac
1175e9554658Smrgdone
1176e9554658Smrg
1177e9554658Smrgif test -n "$ac_prev"; then
1178e9554658Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11798903d43aSmrg  as_fn_error $? "missing argument to $ac_option"
1180e9554658Smrgfi
1181e9554658Smrg
1182c2b339b4Smrgif test -n "$ac_unrecognized_opts"; then
1183c2b339b4Smrg  case $enable_option_checking in
1184c2b339b4Smrg    no) ;;
11858903d43aSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1186c2b339b4Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1187c2b339b4Smrg  esac
1188c2b339b4Smrgfi
1189c2b339b4Smrg
1190c2b339b4Smrg# Check all directory arguments for consistency.
1191e9554658Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1192e9554658Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1193e9554658Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1194e9554658Smrg		libdir localedir mandir
1195e9554658Smrgdo
1196e9554658Smrg  eval ac_val=\$$ac_var
1197c2b339b4Smrg  # Remove trailing slashes.
1198c2b339b4Smrg  case $ac_val in
1199c2b339b4Smrg    */ )
1200c2b339b4Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1201c2b339b4Smrg      eval $ac_var=\$ac_val;;
1202c2b339b4Smrg  esac
1203c2b339b4Smrg  # Be sure to have absolute directory names.
1204e9554658Smrg  case $ac_val in
1205e9554658Smrg    [\\/$]* | ?:[\\/]* )  continue;;
1206e9554658Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1207e9554658Smrg  esac
12088903d43aSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1209e9554658Smrgdone
1210e9554658Smrg
1211e9554658Smrg# There might be people who depend on the old broken behavior: `$host'
1212e9554658Smrg# used to hold the argument of --host etc.
1213e9554658Smrg# FIXME: To remove some day.
1214e9554658Smrgbuild=$build_alias
1215e9554658Smrghost=$host_alias
1216e9554658Smrgtarget=$target_alias
1217e9554658Smrg
1218e9554658Smrg# FIXME: To remove some day.
1219e9554658Smrgif test "x$host_alias" != x; then
1220e9554658Smrg  if test "x$build_alias" = x; then
1221e9554658Smrg    cross_compiling=maybe
12228903d43aSmrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
12238903d43aSmrg    If a cross compiler is detected then cross compile mode will be used" >&2
1224e9554658Smrg  elif test "x$build_alias" != "x$host_alias"; then
1225e9554658Smrg    cross_compiling=yes
1226e9554658Smrg  fi
1227e9554658Smrgfi
1228e9554658Smrg
1229e9554658Smrgac_tool_prefix=
1230e9554658Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1231e9554658Smrg
1232e9554658Smrgtest "$silent" = yes && exec 6>/dev/null
1233e9554658Smrg
1234e9554658Smrg
1235e9554658Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1236e9554658Smrgac_ls_di=`ls -di .` &&
1237e9554658Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12388903d43aSmrg  as_fn_error $? "working directory cannot be determined"
1239e9554658Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12408903d43aSmrg  as_fn_error $? "pwd does not report name of working directory"
1241e9554658Smrg
1242e9554658Smrg
1243e9554658Smrg# Find the source files, if location was not specified.
1244e9554658Smrgif test -z "$srcdir"; then
1245e9554658Smrg  ac_srcdir_defaulted=yes
1246e9554658Smrg  # Try the directory containing this script, then the parent directory.
1247c2b339b4Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1248c2b339b4Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249c2b339b4Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1250c2b339b4Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1251c2b339b4Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252c2b339b4Smrg$as_echo X"$as_myself" |
1253e9554658Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254e9554658Smrg	    s//\1/
1255e9554658Smrg	    q
1256e9554658Smrg	  }
1257e9554658Smrg	  /^X\(\/\/\)[^/].*/{
1258e9554658Smrg	    s//\1/
1259e9554658Smrg	    q
1260e9554658Smrg	  }
1261e9554658Smrg	  /^X\(\/\/\)$/{
1262e9554658Smrg	    s//\1/
1263e9554658Smrg	    q
1264e9554658Smrg	  }
1265e9554658Smrg	  /^X\(\/\).*/{
1266e9554658Smrg	    s//\1/
1267e9554658Smrg	    q
1268e9554658Smrg	  }
1269e9554658Smrg	  s/.*/./; q'`
1270e9554658Smrg  srcdir=$ac_confdir
1271e9554658Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
1272e9554658Smrg    srcdir=..
1273e9554658Smrg  fi
1274e9554658Smrgelse
1275e9554658Smrg  ac_srcdir_defaulted=no
1276e9554658Smrgfi
1277e9554658Smrgif test ! -r "$srcdir/$ac_unique_file"; then
1278e9554658Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12798903d43aSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1280e9554658Smrgfi
1281e9554658Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1282e9554658Smrgac_abs_confdir=`(
12838903d43aSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1284e9554658Smrg	pwd)`
1285e9554658Smrg# When building in place, set srcdir=.
1286e9554658Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1287e9554658Smrg  srcdir=.
1288e9554658Smrgfi
1289e9554658Smrg# Remove unnecessary trailing slashes from srcdir.
1290e9554658Smrg# Double slashes in file names in object file debugging info
1291e9554658Smrg# mess up M-x gdb in Emacs.
1292e9554658Smrgcase $srcdir in
1293e9554658Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1294e9554658Smrgesac
1295e9554658Smrgfor ac_var in $ac_precious_vars; do
1296e9554658Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1297e9554658Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
1298e9554658Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1299e9554658Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1300e9554658Smrgdone
1301e9554658Smrg
1302e9554658Smrg#
1303e9554658Smrg# Report the --help message.
1304e9554658Smrg#
1305e9554658Smrgif test "$ac_init_help" = "long"; then
1306e9554658Smrg  # Omit some internal or obsolete options to make the list less imposing.
1307e9554658Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
1308e9554658Smrg  cat <<_ACEOF
1309309c398aSmrg\`configure' configures xclock 1.0.6 to adapt to many kinds of systems.
1310e9554658Smrg
1311e9554658SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1312e9554658Smrg
1313e9554658SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1314e9554658SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1315e9554658Smrg
1316e9554658SmrgDefaults for the options are specified in brackets.
1317e9554658Smrg
1318e9554658SmrgConfiguration:
1319e9554658Smrg  -h, --help              display this help and exit
1320e9554658Smrg      --help=short        display options specific to this package
1321e9554658Smrg      --help=recursive    display the short help of all the included packages
1322e9554658Smrg  -V, --version           display version information and exit
13238903d43aSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
1324e9554658Smrg      --cache-file=FILE   cache test results in FILE [disabled]
1325e9554658Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1326e9554658Smrg  -n, --no-create         do not create output files
1327e9554658Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1328e9554658Smrg
1329e9554658SmrgInstallation directories:
1330e9554658Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1331c2b339b4Smrg                          [$ac_default_prefix]
1332e9554658Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1333c2b339b4Smrg                          [PREFIX]
1334e9554658Smrg
1335e9554658SmrgBy default, \`make install' will install all the files in
1336e9554658Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1337e9554658Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1338e9554658Smrgfor instance \`--prefix=\$HOME'.
1339e9554658Smrg
1340e9554658SmrgFor better control, use the options below.
1341e9554658Smrg
1342e9554658SmrgFine tuning of the installation directories:
1343c2b339b4Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1344c2b339b4Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1345c2b339b4Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1346c2b339b4Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1347c2b339b4Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1348c2b339b4Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1349c2b339b4Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1350c2b339b4Smrg  --includedir=DIR        C header files [PREFIX/include]
1351c2b339b4Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1352c2b339b4Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1353c2b339b4Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1354c2b339b4Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1355c2b339b4Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1356c2b339b4Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1357c2b339b4Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xclock]
1358c2b339b4Smrg  --htmldir=DIR           html documentation [DOCDIR]
1359c2b339b4Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1360c2b339b4Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1361c2b339b4Smrg  --psdir=DIR             ps documentation [DOCDIR]
1362e9554658Smrg_ACEOF
1363e9554658Smrg
1364e9554658Smrg  cat <<\_ACEOF
1365e9554658Smrg
1366e9554658SmrgProgram names:
1367e9554658Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1368e9554658Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1369e9554658Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1370e9554658Smrg
1371e9554658SmrgSystem types:
1372e9554658Smrg  --build=BUILD     configure for building on BUILD [guessed]
1373e9554658Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1374e9554658Smrg_ACEOF
1375e9554658Smrgfi
1376e9554658Smrg
1377e9554658Smrgif test -n "$ac_init_help"; then
1378e9554658Smrg  case $ac_init_help in
1379309c398aSmrg     short | recursive ) echo "Configuration of xclock 1.0.6:";;
1380e9554658Smrg   esac
1381e9554658Smrg  cat <<\_ACEOF
1382e9554658Smrg
1383e9554658SmrgOptional Features:
1384c2b339b4Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
1385e9554658Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1386e9554658Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1387e9554658Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1388e9554658Smrg			  (and sometimes confusing) to the casual installer
1389e9554658Smrg  --disable-dependency-tracking  speeds up one-time build
1390e9554658Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
1391309c398aSmrg  --disable-selective-werror
1392309c398aSmrg                          Turn off selective compiler errors. (default:
1393309c398aSmrg                          enabled)
1394c2b339b4Smrg  --enable-strict-compilation
1395c2b339b4Smrg                          Enable all warnings from compiler and make them
1396c2b339b4Smrg                          errors (default: disabled)
13978903d43aSmrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
13988903d43aSmrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1399309c398aSmrg  --disable-rpath         do not hardcode runtime library paths
1400e9554658Smrg
1401e9554658SmrgOptional Packages:
1402e9554658Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1403e9554658Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1404309c398aSmrg  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1405309c398aSmrg  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1406309c398aSmrg  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1407c2b339b4Smrg  --with-xft              Use Xft2 and Xrender for rendering (Default is YES)
1408c2b339b4Smrg  --with-xkb              Use XKB to sound bells (Default is YES)
1409c2b339b4Smrg  --with-appdefaultdir=<pathname>
1410c2b339b4Smrg                          specify directory for app-defaults files (default is
1411c2b339b4Smrg                          autodetected)
1412e9554658Smrg
1413e9554658SmrgSome influential environment variables:
1414e9554658Smrg  CC          C compiler command
1415e9554658Smrg  CFLAGS      C compiler flags
1416e9554658Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1417e9554658Smrg              nonstandard directory <lib dir>
1418e9554658Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
14198903d43aSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1420e9554658Smrg              you have headers in a nonstandard directory <include dir>
1421c2b339b4Smrg  CPP         C preprocessor
1422e9554658Smrg  PKG_CONFIG  path to pkg-config utility
14238903d43aSmrg  XCLOCK_CFLAGS
14248903d43aSmrg              C compiler flags for XCLOCK, overriding pkg-config
14258903d43aSmrg  XCLOCK_LIBS linker flags for XCLOCK, overriding pkg-config
1426e9554658Smrg  XFT_CFLAGS  C compiler flags for XFT, overriding pkg-config
1427e9554658Smrg  XFT_LIBS    linker flags for XFT, overriding pkg-config
1428e9554658Smrg  XKB_CFLAGS  C compiler flags for XKB, overriding pkg-config
1429e9554658Smrg  XKB_LIBS    linker flags for XKB, overriding pkg-config
1430e9554658Smrg  APPDEFS_CFLAGS
1431e9554658Smrg              C compiler flags for APPDEFS, overriding pkg-config
1432e9554658Smrg  APPDEFS_LIBS
1433e9554658Smrg              linker flags for APPDEFS, overriding pkg-config
1434e9554658Smrg
1435e9554658SmrgUse these variables to override the choices made by `configure' or to help
1436e9554658Smrgit to find libraries and programs with nonstandard names/locations.
1437e9554658Smrg
1438e9554658SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1439e9554658Smrg_ACEOF
1440e9554658Smrgac_status=$?
1441e9554658Smrgfi
1442e9554658Smrg
1443e9554658Smrgif test "$ac_init_help" = "recursive"; then
1444e9554658Smrg  # If there are subdirs, report their specific --help.
1445e9554658Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446c2b339b4Smrg    test -d "$ac_dir" ||
1447c2b339b4Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448c2b339b4Smrg      continue
1449e9554658Smrg    ac_builddir=.
1450e9554658Smrg
1451e9554658Smrgcase "$ac_dir" in
1452e9554658Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453e9554658Smrg*)
1454c2b339b4Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455e9554658Smrg  # A ".." for each directory in $ac_dir_suffix.
1456c2b339b4Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457e9554658Smrg  case $ac_top_builddir_sub in
1458e9554658Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459e9554658Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460e9554658Smrg  esac ;;
1461e9554658Smrgesac
1462e9554658Smrgac_abs_top_builddir=$ac_pwd
1463e9554658Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1464e9554658Smrg# for backward compatibility:
1465e9554658Smrgac_top_builddir=$ac_top_build_prefix
1466e9554658Smrg
1467e9554658Smrgcase $srcdir in
1468e9554658Smrg  .)  # We are building in place.
1469e9554658Smrg    ac_srcdir=.
1470e9554658Smrg    ac_top_srcdir=$ac_top_builddir_sub
1471e9554658Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1472e9554658Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1473e9554658Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1474e9554658Smrg    ac_top_srcdir=$srcdir
1475e9554658Smrg    ac_abs_top_srcdir=$srcdir ;;
1476e9554658Smrg  *) # Relative name.
1477e9554658Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478e9554658Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1479e9554658Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480e9554658Smrgesac
1481e9554658Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482e9554658Smrg
1483e9554658Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1484e9554658Smrg    # Check for guested configure.
1485e9554658Smrg    if test -f "$ac_srcdir/configure.gnu"; then
1486e9554658Smrg      echo &&
1487e9554658Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488e9554658Smrg    elif test -f "$ac_srcdir/configure"; then
1489e9554658Smrg      echo &&
1490e9554658Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
1491e9554658Smrg    else
1492c2b339b4Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493e9554658Smrg    fi || ac_status=$?
1494e9554658Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
1495e9554658Smrg  done
1496e9554658Smrgfi
1497e9554658Smrg
1498e9554658Smrgtest -n "$ac_init_help" && exit $ac_status
1499e9554658Smrgif $ac_init_version; then
1500e9554658Smrg  cat <<\_ACEOF
1501309c398aSmrgxclock configure 1.0.6
15028903d43aSmrggenerated by GNU Autoconf 2.68
1503e9554658Smrg
15048903d43aSmrgCopyright (C) 2010 Free Software Foundation, Inc.
1505e9554658SmrgThis configure script is free software; the Free Software Foundation
1506e9554658Smrggives unlimited permission to copy, distribute and modify it.
1507e9554658Smrg_ACEOF
1508e9554658Smrg  exit
1509e9554658Smrgfi
1510e9554658Smrg
15118903d43aSmrg## ------------------------ ##
15128903d43aSmrg## Autoconf initialization. ##
15138903d43aSmrg## ------------------------ ##
1514e9554658Smrg
15158903d43aSmrg# ac_fn_c_try_compile LINENO
15168903d43aSmrg# --------------------------
15178903d43aSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
15188903d43aSmrgac_fn_c_try_compile ()
1519e9554658Smrg{
15208903d43aSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15218903d43aSmrg  rm -f conftest.$ac_objext
15228903d43aSmrg  if { { ac_try="$ac_compile"
15238903d43aSmrgcase "(($ac_try" in
15248903d43aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258903d43aSmrg  *) ac_try_echo=$ac_try;;
15268903d43aSmrgesac
15278903d43aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15288903d43aSmrg$as_echo "$ac_try_echo"; } >&5
15298903d43aSmrg  (eval "$ac_compile") 2>conftest.err
15308903d43aSmrg  ac_status=$?
15318903d43aSmrg  if test -s conftest.err; then
15328903d43aSmrg    grep -v '^ *+' conftest.err >conftest.er1
15338903d43aSmrg    cat conftest.er1 >&5
15348903d43aSmrg    mv -f conftest.er1 conftest.err
15358903d43aSmrg  fi
15368903d43aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15378903d43aSmrg  test $ac_status = 0; } && {
15388903d43aSmrg	 test -z "$ac_c_werror_flag" ||
15398903d43aSmrg	 test ! -s conftest.err
15408903d43aSmrg       } && test -s conftest.$ac_objext; then :
15418903d43aSmrg  ac_retval=0
15428903d43aSmrgelse
15438903d43aSmrg  $as_echo "$as_me: failed program was:" >&5
15448903d43aSmrgsed 's/^/| /' conftest.$ac_ext >&5
1545e9554658Smrg
15468903d43aSmrg	ac_retval=1
15478903d43aSmrgfi
15488903d43aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15498903d43aSmrg  as_fn_set_status $ac_retval
1550e9554658Smrg
15518903d43aSmrg} # ac_fn_c_try_compile
1552e9554658Smrg
15538903d43aSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
15548903d43aSmrg# ---------------------------------------------
15558903d43aSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
15568903d43aSmrg# accordingly.
15578903d43aSmrgac_fn_c_check_decl ()
15588903d43aSmrg{
15598903d43aSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15608903d43aSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
15618903d43aSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
15628903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
15638903d43aSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
15648903d43aSmrgif eval \${$3+:} false; then :
15658903d43aSmrg  $as_echo_n "(cached) " >&6
15668903d43aSmrgelse
15678903d43aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15688903d43aSmrg/* end confdefs.h.  */
15698903d43aSmrg$4
15708903d43aSmrgint
15718903d43aSmrgmain ()
15728903d43aSmrg{
15738903d43aSmrg#ifndef $as_decl_name
15748903d43aSmrg#ifdef __cplusplus
15758903d43aSmrg  (void) $as_decl_use;
15768903d43aSmrg#else
15778903d43aSmrg  (void) $as_decl_name;
15788903d43aSmrg#endif
15798903d43aSmrg#endif
15808903d43aSmrg
15818903d43aSmrg  ;
15828903d43aSmrg  return 0;
15838903d43aSmrg}
15848903d43aSmrg_ACEOF
15858903d43aSmrgif ac_fn_c_try_compile "$LINENO"; then :
15868903d43aSmrg  eval "$3=yes"
15878903d43aSmrgelse
15888903d43aSmrg  eval "$3=no"
15898903d43aSmrgfi
15908903d43aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15918903d43aSmrgfi
15928903d43aSmrgeval ac_res=\$$3
15938903d43aSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15948903d43aSmrg$as_echo "$ac_res" >&6; }
15958903d43aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15968903d43aSmrg
15978903d43aSmrg} # ac_fn_c_check_decl
15988903d43aSmrg
15998903d43aSmrg# ac_fn_c_try_cpp LINENO
16008903d43aSmrg# ----------------------
16018903d43aSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
16028903d43aSmrgac_fn_c_try_cpp ()
16038903d43aSmrg{
16048903d43aSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16058903d43aSmrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
16068903d43aSmrgcase "(($ac_try" in
16078903d43aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088903d43aSmrg  *) ac_try_echo=$ac_try;;
16098903d43aSmrgesac
16108903d43aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16118903d43aSmrg$as_echo "$ac_try_echo"; } >&5
16128903d43aSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
16138903d43aSmrg  ac_status=$?
16148903d43aSmrg  if test -s conftest.err; then
16158903d43aSmrg    grep -v '^ *+' conftest.err >conftest.er1
16168903d43aSmrg    cat conftest.er1 >&5
16178903d43aSmrg    mv -f conftest.er1 conftest.err
16188903d43aSmrg  fi
16198903d43aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16208903d43aSmrg  test $ac_status = 0; } > conftest.i && {
16218903d43aSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16228903d43aSmrg	 test ! -s conftest.err
16238903d43aSmrg       }; then :
16248903d43aSmrg  ac_retval=0
16258903d43aSmrgelse
16268903d43aSmrg  $as_echo "$as_me: failed program was:" >&5
16278903d43aSmrgsed 's/^/| /' conftest.$ac_ext >&5
16288903d43aSmrg
16298903d43aSmrg    ac_retval=1
16308903d43aSmrgfi
16318903d43aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16328903d43aSmrg  as_fn_set_status $ac_retval
16338903d43aSmrg
16348903d43aSmrg} # ac_fn_c_try_cpp
16358903d43aSmrg
16368903d43aSmrg# ac_fn_c_try_run LINENO
16378903d43aSmrg# ----------------------
16388903d43aSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
16398903d43aSmrg# that executables *can* be run.
16408903d43aSmrgac_fn_c_try_run ()
16418903d43aSmrg{
16428903d43aSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16438903d43aSmrg  if { { ac_try="$ac_link"
16448903d43aSmrgcase "(($ac_try" in
16458903d43aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468903d43aSmrg  *) ac_try_echo=$ac_try;;
16478903d43aSmrgesac
16488903d43aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16498903d43aSmrg$as_echo "$ac_try_echo"; } >&5
16508903d43aSmrg  (eval "$ac_link") 2>&5
16518903d43aSmrg  ac_status=$?
16528903d43aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16538903d43aSmrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
16548903d43aSmrg  { { case "(($ac_try" in
16558903d43aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568903d43aSmrg  *) ac_try_echo=$ac_try;;
16578903d43aSmrgesac
16588903d43aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16598903d43aSmrg$as_echo "$ac_try_echo"; } >&5
16608903d43aSmrg  (eval "$ac_try") 2>&5
16618903d43aSmrg  ac_status=$?
16628903d43aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16638903d43aSmrg  test $ac_status = 0; }; }; then :
16648903d43aSmrg  ac_retval=0
16658903d43aSmrgelse
16668903d43aSmrg  $as_echo "$as_me: program exited with status $ac_status" >&5
16678903d43aSmrg       $as_echo "$as_me: failed program was:" >&5
16688903d43aSmrgsed 's/^/| /' conftest.$ac_ext >&5
16698903d43aSmrg
16708903d43aSmrg       ac_retval=$ac_status
16718903d43aSmrgfi
16728903d43aSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
16738903d43aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16748903d43aSmrg  as_fn_set_status $ac_retval
16758903d43aSmrg
16768903d43aSmrg} # ac_fn_c_try_run
16778903d43aSmrg
16788903d43aSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
16798903d43aSmrg# -------------------------------------------------------
16808903d43aSmrg# Tests whether HEADER exists and can be compiled using the include files in
16818903d43aSmrg# INCLUDES, setting the cache variable VAR accordingly.
16828903d43aSmrgac_fn_c_check_header_compile ()
16838903d43aSmrg{
16848903d43aSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16858903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16868903d43aSmrg$as_echo_n "checking for $2... " >&6; }
16878903d43aSmrgif eval \${$3+:} false; then :
16888903d43aSmrg  $as_echo_n "(cached) " >&6
16898903d43aSmrgelse
16908903d43aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16918903d43aSmrg/* end confdefs.h.  */
16928903d43aSmrg$4
16938903d43aSmrg#include <$2>
16948903d43aSmrg_ACEOF
16958903d43aSmrgif ac_fn_c_try_compile "$LINENO"; then :
16968903d43aSmrg  eval "$3=yes"
16978903d43aSmrgelse
16988903d43aSmrg  eval "$3=no"
16998903d43aSmrgfi
17008903d43aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17018903d43aSmrgfi
17028903d43aSmrgeval ac_res=\$$3
17038903d43aSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17048903d43aSmrg$as_echo "$ac_res" >&6; }
17058903d43aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17068903d43aSmrg
17078903d43aSmrg} # ac_fn_c_check_header_compile
17088903d43aSmrg
17098903d43aSmrg# ac_fn_c_try_link LINENO
17108903d43aSmrg# -----------------------
17118903d43aSmrg# Try to link conftest.$ac_ext, and return whether this succeeded.
17128903d43aSmrgac_fn_c_try_link ()
17138903d43aSmrg{
17148903d43aSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17158903d43aSmrg  rm -f conftest.$ac_objext conftest$ac_exeext
17168903d43aSmrg  if { { ac_try="$ac_link"
17178903d43aSmrgcase "(($ac_try" in
17188903d43aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198903d43aSmrg  *) ac_try_echo=$ac_try;;
17208903d43aSmrgesac
17218903d43aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17228903d43aSmrg$as_echo "$ac_try_echo"; } >&5
17238903d43aSmrg  (eval "$ac_link") 2>conftest.err
17248903d43aSmrg  ac_status=$?
17258903d43aSmrg  if test -s conftest.err; then
17268903d43aSmrg    grep -v '^ *+' conftest.err >conftest.er1
17278903d43aSmrg    cat conftest.er1 >&5
17288903d43aSmrg    mv -f conftest.er1 conftest.err
17298903d43aSmrg  fi
17308903d43aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17318903d43aSmrg  test $ac_status = 0; } && {
17328903d43aSmrg	 test -z "$ac_c_werror_flag" ||
17338903d43aSmrg	 test ! -s conftest.err
17348903d43aSmrg       } && test -s conftest$ac_exeext && {
17358903d43aSmrg	 test "$cross_compiling" = yes ||
17368903d43aSmrg	 $as_test_x conftest$ac_exeext
17378903d43aSmrg       }; then :
17388903d43aSmrg  ac_retval=0
17398903d43aSmrgelse
17408903d43aSmrg  $as_echo "$as_me: failed program was:" >&5
17418903d43aSmrgsed 's/^/| /' conftest.$ac_ext >&5
17428903d43aSmrg
17438903d43aSmrg	ac_retval=1
17448903d43aSmrgfi
17458903d43aSmrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
17468903d43aSmrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
17478903d43aSmrg  # interfere with the next link command; also delete a directory that is
17488903d43aSmrg  # left behind by Apple's compiler.  We do this before executing the actions.
17498903d43aSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17508903d43aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17518903d43aSmrg  as_fn_set_status $ac_retval
17528903d43aSmrg
17538903d43aSmrg} # ac_fn_c_try_link
17548903d43aSmrg
17558903d43aSmrg# ac_fn_c_check_func LINENO FUNC VAR
17568903d43aSmrg# ----------------------------------
17578903d43aSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
17588903d43aSmrgac_fn_c_check_func ()
17598903d43aSmrg{
17608903d43aSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17618903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17628903d43aSmrg$as_echo_n "checking for $2... " >&6; }
17638903d43aSmrgif eval \${$3+:} false; then :
17648903d43aSmrg  $as_echo_n "(cached) " >&6
17658903d43aSmrgelse
17668903d43aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678903d43aSmrg/* end confdefs.h.  */
17688903d43aSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
17698903d43aSmrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17708903d43aSmrg#define $2 innocuous_$2
17718903d43aSmrg
17728903d43aSmrg/* System header to define __stub macros and hopefully few prototypes,
17738903d43aSmrg    which can conflict with char $2 (); below.
17748903d43aSmrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17758903d43aSmrg    <limits.h> exists even on freestanding compilers.  */
17768903d43aSmrg
17778903d43aSmrg#ifdef __STDC__
17788903d43aSmrg# include <limits.h>
17798903d43aSmrg#else
17808903d43aSmrg# include <assert.h>
17818903d43aSmrg#endif
17828903d43aSmrg
17838903d43aSmrg#undef $2
17848903d43aSmrg
17858903d43aSmrg/* Override any GCC internal prototype to avoid an error.
17868903d43aSmrg   Use char because int might match the return type of a GCC
17878903d43aSmrg   builtin and then its argument prototype would still apply.  */
17888903d43aSmrg#ifdef __cplusplus
17898903d43aSmrgextern "C"
17908903d43aSmrg#endif
17918903d43aSmrgchar $2 ();
17928903d43aSmrg/* The GNU C library defines this for functions which it implements
17938903d43aSmrg    to always fail with ENOSYS.  Some functions are actually named
17948903d43aSmrg    something starting with __ and the normal name is an alias.  */
17958903d43aSmrg#if defined __stub_$2 || defined __stub___$2
17968903d43aSmrgchoke me
17978903d43aSmrg#endif
17988903d43aSmrg
17998903d43aSmrgint
18008903d43aSmrgmain ()
18018903d43aSmrg{
18028903d43aSmrgreturn $2 ();
18038903d43aSmrg  ;
18048903d43aSmrg  return 0;
18058903d43aSmrg}
18068903d43aSmrg_ACEOF
18078903d43aSmrgif ac_fn_c_try_link "$LINENO"; then :
18088903d43aSmrg  eval "$3=yes"
18098903d43aSmrgelse
18108903d43aSmrg  eval "$3=no"
18118903d43aSmrgfi
18128903d43aSmrgrm -f core conftest.err conftest.$ac_objext \
18138903d43aSmrg    conftest$ac_exeext conftest.$ac_ext
18148903d43aSmrgfi
18158903d43aSmrgeval ac_res=\$$3
18168903d43aSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18178903d43aSmrg$as_echo "$ac_res" >&6; }
18188903d43aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18198903d43aSmrg
18208903d43aSmrg} # ac_fn_c_check_func
18218903d43aSmrgcat >config.log <<_ACEOF
18228903d43aSmrgThis file contains any messages produced by compilers while
18238903d43aSmrgrunning configure, to aid debugging if configure makes a mistake.
18248903d43aSmrg
1825309c398aSmrgIt was created by xclock $as_me 1.0.6, which was
18268903d43aSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
18278903d43aSmrg
18288903d43aSmrg  $ $0 $@
18298903d43aSmrg
18308903d43aSmrg_ACEOF
18318903d43aSmrgexec 5>>config.log
18328903d43aSmrg{
18338903d43aSmrgcat <<_ASUNAME
18348903d43aSmrg## --------- ##
18358903d43aSmrg## Platform. ##
18368903d43aSmrg## --------- ##
18378903d43aSmrg
18388903d43aSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
18398903d43aSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
18408903d43aSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
18418903d43aSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
18428903d43aSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
18438903d43aSmrg
18448903d43aSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
18458903d43aSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
18468903d43aSmrg
18478903d43aSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
18488903d43aSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
18498903d43aSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
18508903d43aSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
18518903d43aSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
18528903d43aSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1853e9554658Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1854e9554658Smrg
1855e9554658Smrg_ASUNAME
1856e9554658Smrg
1857e9554658Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858e9554658Smrgfor as_dir in $PATH
1859e9554658Smrgdo
1860e9554658Smrg  IFS=$as_save_IFS
1861e9554658Smrg  test -z "$as_dir" && as_dir=.
18628903d43aSmrg    $as_echo "PATH: $as_dir"
18638903d43aSmrg  done
1864e9554658SmrgIFS=$as_save_IFS
1865e9554658Smrg
1866e9554658Smrg} >&5
1867e9554658Smrg
1868e9554658Smrgcat >&5 <<_ACEOF
1869e9554658Smrg
1870e9554658Smrg
1871e9554658Smrg## ----------- ##
1872e9554658Smrg## Core tests. ##
1873e9554658Smrg## ----------- ##
1874e9554658Smrg
1875e9554658Smrg_ACEOF
1876e9554658Smrg
1877e9554658Smrg
1878e9554658Smrg# Keep a trace of the command line.
1879e9554658Smrg# Strip out --no-create and --no-recursion so they do not pile up.
1880e9554658Smrg# Strip out --silent because we don't want to record it for future runs.
1881e9554658Smrg# Also quote any args containing shell meta-characters.
1882e9554658Smrg# Make two passes to allow for proper duplicate-argument suppression.
1883e9554658Smrgac_configure_args=
1884e9554658Smrgac_configure_args0=
1885e9554658Smrgac_configure_args1=
1886e9554658Smrgac_must_keep_next=false
1887e9554658Smrgfor ac_pass in 1 2
1888e9554658Smrgdo
1889e9554658Smrg  for ac_arg
1890e9554658Smrg  do
1891e9554658Smrg    case $ac_arg in
1892e9554658Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1893e9554658Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1894e9554658Smrg    | -silent | --silent | --silen | --sile | --sil)
1895e9554658Smrg      continue ;;
1896e9554658Smrg    *\'*)
1897c2b339b4Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1898e9554658Smrg    esac
1899e9554658Smrg    case $ac_pass in
19008903d43aSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1901e9554658Smrg    2)
19028903d43aSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1903e9554658Smrg      if test $ac_must_keep_next = true; then
1904e9554658Smrg	ac_must_keep_next=false # Got value, back to normal.
1905e9554658Smrg      else
1906e9554658Smrg	case $ac_arg in
1907e9554658Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1908e9554658Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1909e9554658Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1910e9554658Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1911e9554658Smrg	    case "$ac_configure_args0 " in
1912e9554658Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1913e9554658Smrg	    esac
1914e9554658Smrg	    ;;
1915e9554658Smrg	  -* ) ac_must_keep_next=true ;;
1916e9554658Smrg	esac
1917e9554658Smrg      fi
19188903d43aSmrg      as_fn_append ac_configure_args " '$ac_arg'"
1919e9554658Smrg      ;;
1920e9554658Smrg    esac
1921e9554658Smrg  done
1922e9554658Smrgdone
19238903d43aSmrg{ ac_configure_args0=; unset ac_configure_args0;}
19248903d43aSmrg{ ac_configure_args1=; unset ac_configure_args1;}
1925e9554658Smrg
1926e9554658Smrg# When interrupted or exit'd, cleanup temporary files, and complete
1927e9554658Smrg# config.log.  We remove comments because anyway the quotes in there
1928e9554658Smrg# would cause problems or look ugly.
1929e9554658Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1930e9554658Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1931e9554658Smrgtrap 'exit_status=$?
1932e9554658Smrg  # Save into config.log some information that might help in debugging.
1933e9554658Smrg  {
1934e9554658Smrg    echo
1935e9554658Smrg
19368903d43aSmrg    $as_echo "## ---------------- ##
1937e9554658Smrg## Cache variables. ##
19388903d43aSmrg## ---------------- ##"
1939e9554658Smrg    echo
1940e9554658Smrg    # The following way of writing the cache mishandles newlines in values,
1941e9554658Smrg(
1942e9554658Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1943e9554658Smrg    eval ac_val=\$$ac_var
1944e9554658Smrg    case $ac_val in #(
1945e9554658Smrg    *${as_nl}*)
1946e9554658Smrg      case $ac_var in #(
19478903d43aSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1948c2b339b4Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1949e9554658Smrg      esac
1950e9554658Smrg      case $ac_var in #(
1951e9554658Smrg      _ | IFS | as_nl) ;; #(
1952c2b339b4Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19538903d43aSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
1954e9554658Smrg      esac ;;
1955e9554658Smrg    esac
1956e9554658Smrg  done
1957e9554658Smrg  (set) 2>&1 |
1958e9554658Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1959e9554658Smrg    *${as_nl}ac_space=\ *)
1960e9554658Smrg      sed -n \
1961e9554658Smrg	"s/'\''/'\''\\\\'\'''\''/g;
1962e9554658Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1963e9554658Smrg      ;; #(
1964e9554658Smrg    *)
1965e9554658Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1966e9554658Smrg      ;;
1967e9554658Smrg    esac |
1968e9554658Smrg    sort
1969e9554658Smrg)
1970e9554658Smrg    echo
1971e9554658Smrg
19728903d43aSmrg    $as_echo "## ----------------- ##
1973e9554658Smrg## Output variables. ##
19748903d43aSmrg## ----------------- ##"
1975e9554658Smrg    echo
1976e9554658Smrg    for ac_var in $ac_subst_vars
1977e9554658Smrg    do
1978e9554658Smrg      eval ac_val=\$$ac_var
1979e9554658Smrg      case $ac_val in
1980c2b339b4Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1981e9554658Smrg      esac
1982c2b339b4Smrg      $as_echo "$ac_var='\''$ac_val'\''"
1983e9554658Smrg    done | sort
1984e9554658Smrg    echo
1985e9554658Smrg
1986e9554658Smrg    if test -n "$ac_subst_files"; then
19878903d43aSmrg      $as_echo "## ------------------- ##
1988e9554658Smrg## File substitutions. ##
19898903d43aSmrg## ------------------- ##"
1990e9554658Smrg      echo
1991e9554658Smrg      for ac_var in $ac_subst_files
1992e9554658Smrg      do
1993e9554658Smrg	eval ac_val=\$$ac_var
1994e9554658Smrg	case $ac_val in
1995c2b339b4Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1996e9554658Smrg	esac
1997c2b339b4Smrg	$as_echo "$ac_var='\''$ac_val'\''"
1998e9554658Smrg      done | sort
1999e9554658Smrg      echo
2000e9554658Smrg    fi
2001e9554658Smrg
2002e9554658Smrg    if test -s confdefs.h; then
20038903d43aSmrg      $as_echo "## ----------- ##
2004e9554658Smrg## confdefs.h. ##
20058903d43aSmrg## ----------- ##"
2006e9554658Smrg      echo
2007e9554658Smrg      cat confdefs.h
2008e9554658Smrg      echo
2009e9554658Smrg    fi
2010e9554658Smrg    test "$ac_signal" != 0 &&
2011c2b339b4Smrg      $as_echo "$as_me: caught signal $ac_signal"
2012c2b339b4Smrg    $as_echo "$as_me: exit $exit_status"
2013e9554658Smrg  } >&5
2014e9554658Smrg  rm -f core *.core core.conftest.* &&
2015e9554658Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2016e9554658Smrg    exit $exit_status
2017e9554658Smrg' 0
2018e9554658Smrgfor ac_signal in 1 2 13 15; do
20198903d43aSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2020e9554658Smrgdone
2021e9554658Smrgac_signal=0
2022e9554658Smrg
2023e9554658Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2024e9554658Smrgrm -f -r conftest* confdefs.h
2025e9554658Smrg
20268903d43aSmrg$as_echo "/* confdefs.h */" > confdefs.h
20278903d43aSmrg
2028e9554658Smrg# Predefined preprocessor variables.
2029e9554658Smrg
2030e9554658Smrgcat >>confdefs.h <<_ACEOF
2031e9554658Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
2032e9554658Smrg_ACEOF
2033e9554658Smrg
2034e9554658Smrgcat >>confdefs.h <<_ACEOF
2035e9554658Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2036e9554658Smrg_ACEOF
2037e9554658Smrg
2038e9554658Smrgcat >>confdefs.h <<_ACEOF
2039e9554658Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
2040e9554658Smrg_ACEOF
2041e9554658Smrg
2042e9554658Smrgcat >>confdefs.h <<_ACEOF
2043e9554658Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
2044e9554658Smrg_ACEOF
2045e9554658Smrg
2046e9554658Smrgcat >>confdefs.h <<_ACEOF
2047e9554658Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2048e9554658Smrg_ACEOF
2049e9554658Smrg
20508903d43aSmrgcat >>confdefs.h <<_ACEOF
20518903d43aSmrg#define PACKAGE_URL "$PACKAGE_URL"
20528903d43aSmrg_ACEOF
20538903d43aSmrg
2054e9554658Smrg
2055e9554658Smrg# Let the site file select an alternate cache file if it wants to.
2056c2b339b4Smrg# Prefer an explicitly selected file to automatically selected ones.
2057c2b339b4Smrgac_site_file1=NONE
2058c2b339b4Smrgac_site_file2=NONE
2059e9554658Smrgif test -n "$CONFIG_SITE"; then
20608903d43aSmrg  # We do not want a PATH search for config.site.
20618903d43aSmrg  case $CONFIG_SITE in #((
20628903d43aSmrg    -*)  ac_site_file1=./$CONFIG_SITE;;
20638903d43aSmrg    */*) ac_site_file1=$CONFIG_SITE;;
20648903d43aSmrg    *)   ac_site_file1=./$CONFIG_SITE;;
20658903d43aSmrg  esac
2066e9554658Smrgelif test "x$prefix" != xNONE; then
2067c2b339b4Smrg  ac_site_file1=$prefix/share/config.site
2068c2b339b4Smrg  ac_site_file2=$prefix/etc/config.site
2069e9554658Smrgelse
2070c2b339b4Smrg  ac_site_file1=$ac_default_prefix/share/config.site
2071c2b339b4Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
2072e9554658Smrgfi
2073c2b339b4Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2074e9554658Smrgdo
2075c2b339b4Smrg  test "x$ac_site_file" = xNONE && continue
20768903d43aSmrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
20778903d43aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2078c2b339b4Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2079e9554658Smrg    sed 's/^/| /' "$ac_site_file" >&5
20808903d43aSmrg    . "$ac_site_file" \
20818903d43aSmrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20828903d43aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20838903d43aSmrgas_fn_error $? "failed to load site script $ac_site_file
20848903d43aSmrgSee \`config.log' for more details" "$LINENO" 5; }
2085e9554658Smrg  fi
2086e9554658Smrgdone
2087e9554658Smrg
2088e9554658Smrgif test -r "$cache_file"; then
20898903d43aSmrg  # Some versions of bash will fail to source /dev/null (special files
20908903d43aSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
20918903d43aSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
20928903d43aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2093c2b339b4Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
2094e9554658Smrg    case $cache_file in
2095e9554658Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2096e9554658Smrg      *)                      . "./$cache_file";;
2097e9554658Smrg    esac
2098e9554658Smrg  fi
2099e9554658Smrgelse
21008903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2101c2b339b4Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
2102e9554658Smrg  >$cache_file
2103e9554658Smrgfi
2104e9554658Smrg
2105e9554658Smrg# Check that the precious variables saved in the cache have kept the same
2106e9554658Smrg# value.
2107e9554658Smrgac_cache_corrupted=false
2108e9554658Smrgfor ac_var in $ac_precious_vars; do
2109e9554658Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2110e9554658Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
2111e9554658Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2112e9554658Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
2113e9554658Smrg  case $ac_old_set,$ac_new_set in
2114e9554658Smrg    set,)
21158903d43aSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2116c2b339b4Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2117e9554658Smrg      ac_cache_corrupted=: ;;
2118e9554658Smrg    ,set)
21198903d43aSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2120c2b339b4Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2121e9554658Smrg      ac_cache_corrupted=: ;;
2122e9554658Smrg    ,);;
2123e9554658Smrg    *)
2124e9554658Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2125c2b339b4Smrg	# differences in whitespace do not lead to failure.
2126c2b339b4Smrg	ac_old_val_w=`echo x $ac_old_val`
2127c2b339b4Smrg	ac_new_val_w=`echo x $ac_new_val`
2128c2b339b4Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
21298903d43aSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2130c2b339b4Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2131c2b339b4Smrg	  ac_cache_corrupted=:
2132c2b339b4Smrg	else
21338903d43aSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2134c2b339b4Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2135c2b339b4Smrg	  eval $ac_var=\$ac_old_val
2136c2b339b4Smrg	fi
21378903d43aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2138c2b339b4Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
21398903d43aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2140c2b339b4Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2141e9554658Smrg      fi;;
2142e9554658Smrg  esac
2143e9554658Smrg  # Pass precious variables to config.status.
2144e9554658Smrg  if test "$ac_new_set" = set; then
2145e9554658Smrg    case $ac_new_val in
2146c2b339b4Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2147e9554658Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
2148e9554658Smrg    esac
2149e9554658Smrg    case " $ac_configure_args " in
2150e9554658Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
21518903d43aSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2152e9554658Smrg    esac
2153e9554658Smrg  fi
2154e9554658Smrgdone
2155e9554658Smrgif $ac_cache_corrupted; then
21568903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2157c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21588903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2159c2b339b4Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
21608903d43aSmrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2161e9554658Smrgfi
21628903d43aSmrg## -------------------- ##
21638903d43aSmrg## Main body of script. ##
21648903d43aSmrg## -------------------- ##
2165e9554658Smrg
2166e9554658Smrgac_ext=c
2167e9554658Smrgac_cpp='$CPP $CPPFLAGS'
2168e9554658Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2169e9554658Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2170e9554658Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2171e9554658Smrg
2172e9554658Smrg
2173c2b339b4Smrgam__api_version='1.11'
2174e9554658Smrg
2175e9554658Smrgac_aux_dir=
2176e9554658Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2177e9554658Smrg  if test -f "$ac_dir/install-sh"; then
2178e9554658Smrg    ac_aux_dir=$ac_dir
2179e9554658Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
2180e9554658Smrg    break
2181e9554658Smrg  elif test -f "$ac_dir/install.sh"; then
2182e9554658Smrg    ac_aux_dir=$ac_dir
2183e9554658Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
2184e9554658Smrg    break
2185e9554658Smrg  elif test -f "$ac_dir/shtool"; then
2186e9554658Smrg    ac_aux_dir=$ac_dir
2187e9554658Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
2188e9554658Smrg    break
2189e9554658Smrg  fi
2190e9554658Smrgdone
2191e9554658Smrgif test -z "$ac_aux_dir"; then
21928903d43aSmrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2193e9554658Smrgfi
2194e9554658Smrg
2195e9554658Smrg# These three variables are undocumented and unsupported,
2196e9554658Smrg# and are intended to be withdrawn in a future Autoconf release.
2197e9554658Smrg# They can cause serious problems if a builder's source tree is in a directory
2198e9554658Smrg# whose full name contains unusual characters.
2199e9554658Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2200e9554658Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2201e9554658Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2202e9554658Smrg
2203e9554658Smrg
2204e9554658Smrg# Find a good install program.  We prefer a C program (faster),
2205e9554658Smrg# so one script is as good as another.  But avoid the broken or
2206e9554658Smrg# incompatible versions:
2207e9554658Smrg# SysV /etc/install, /usr/sbin/install
2208e9554658Smrg# SunOS /usr/etc/install
2209e9554658Smrg# IRIX /sbin/install
2210e9554658Smrg# AIX /bin/install
2211e9554658Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2212e9554658Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2213e9554658Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2214e9554658Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2215e9554658Smrg# OS/2's system install, which has a completely different semantic
2216e9554658Smrg# ./install, which can be erroneously created by make from ./install.sh.
2217c2b339b4Smrg# Reject install programs that cannot install multiple files.
22188903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2219c2b339b4Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2220e9554658Smrgif test -z "$INSTALL"; then
22218903d43aSmrgif ${ac_cv_path_install+:} false; then :
2222c2b339b4Smrg  $as_echo_n "(cached) " >&6
2223e9554658Smrgelse
2224e9554658Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225e9554658Smrgfor as_dir in $PATH
2226e9554658Smrgdo
2227e9554658Smrg  IFS=$as_save_IFS
2228e9554658Smrg  test -z "$as_dir" && as_dir=.
22298903d43aSmrg    # Account for people who put trailing slashes in PATH elements.
22308903d43aSmrgcase $as_dir/ in #((
22318903d43aSmrg  ./ | .// | /[cC]/* | \
2232e9554658Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
22338903d43aSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2234e9554658Smrg  /usr/ucb/* ) ;;
2235e9554658Smrg  *)
2236e9554658Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2237e9554658Smrg    # Don't use installbsd from OSF since it installs stuff as root
2238e9554658Smrg    # by default.
2239e9554658Smrg    for ac_prog in ginstall scoinst install; do
2240e9554658Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2241e9554658Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2242e9554658Smrg	  if test $ac_prog = install &&
2243e9554658Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2244e9554658Smrg	    # AIX install.  It has an incompatible calling convention.
2245e9554658Smrg	    :
2246e9554658Smrg	  elif test $ac_prog = install &&
2247e9554658Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2248e9554658Smrg	    # program-specific install script used by HP pwplus--don't use.
2249e9554658Smrg	    :
2250e9554658Smrg	  else
2251c2b339b4Smrg	    rm -rf conftest.one conftest.two conftest.dir
2252c2b339b4Smrg	    echo one > conftest.one
2253c2b339b4Smrg	    echo two > conftest.two
2254c2b339b4Smrg	    mkdir conftest.dir
2255c2b339b4Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2256c2b339b4Smrg	      test -s conftest.one && test -s conftest.two &&
2257c2b339b4Smrg	      test -s conftest.dir/conftest.one &&
2258c2b339b4Smrg	      test -s conftest.dir/conftest.two
2259c2b339b4Smrg	    then
2260c2b339b4Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2261c2b339b4Smrg	      break 3
2262c2b339b4Smrg	    fi
2263e9554658Smrg	  fi
2264e9554658Smrg	fi
2265e9554658Smrg      done
2266e9554658Smrg    done
2267e9554658Smrg    ;;
2268e9554658Smrgesac
2269c2b339b4Smrg
22708903d43aSmrg  done
2271e9554658SmrgIFS=$as_save_IFS
2272e9554658Smrg
2273c2b339b4Smrgrm -rf conftest.one conftest.two conftest.dir
2274e9554658Smrg
2275e9554658Smrgfi
2276e9554658Smrg  if test "${ac_cv_path_install+set}" = set; then
2277e9554658Smrg    INSTALL=$ac_cv_path_install
2278e9554658Smrg  else
2279e9554658Smrg    # As a last resort, use the slow shell script.  Don't cache a
2280e9554658Smrg    # value for INSTALL within a source directory, because that will
2281e9554658Smrg    # break other packages using the cache if that directory is
2282e9554658Smrg    # removed, or if the value is a relative name.
2283e9554658Smrg    INSTALL=$ac_install_sh
2284e9554658Smrg  fi
2285e9554658Smrgfi
22868903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2287c2b339b4Smrg$as_echo "$INSTALL" >&6; }
2288e9554658Smrg
2289e9554658Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2290e9554658Smrg# It thinks the first close brace ends the variable substitution.
2291e9554658Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2292e9554658Smrg
2293e9554658Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2294e9554658Smrg
2295e9554658Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2296e9554658Smrg
22978903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2298c2b339b4Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
2299e9554658Smrg# Just in case
2300e9554658Smrgsleep 1
2301e9554658Smrgecho timestamp > conftest.file
2302c2b339b4Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2303c2b339b4Smrg# name.  Accept space and tab only in the latter.
2304c2b339b4Smrgam_lf='
2305c2b339b4Smrg'
2306c2b339b4Smrgcase `pwd` in
2307c2b339b4Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
23088903d43aSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2309c2b339b4Smrgesac
2310c2b339b4Smrgcase $srcdir in
2311c2b339b4Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
23128903d43aSmrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2313c2b339b4Smrgesac
2314c2b339b4Smrg
2315e9554658Smrg# Do `set' in a subshell so we don't clobber the current shell's
2316e9554658Smrg# arguments.  Must try -L first in case configure is actually a
2317e9554658Smrg# symlink; some systems play weird games with the mod time of symlinks
2318e9554658Smrg# (eg FreeBSD returns the mod time of the symlink's containing
2319e9554658Smrg# directory).
2320e9554658Smrgif (
2321c2b339b4Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2322e9554658Smrg   if test "$*" = "X"; then
2323e9554658Smrg      # -L didn't work.
2324c2b339b4Smrg      set X `ls -t "$srcdir/configure" conftest.file`
2325e9554658Smrg   fi
2326e9554658Smrg   rm -f conftest.file
2327e9554658Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
2328e9554658Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
2329e9554658Smrg
2330e9554658Smrg      # If neither matched, then we have a broken ls.  This can happen
2331e9554658Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
2332e9554658Smrg      # broken ls alias from the environment.  This has actually
2333e9554658Smrg      # happened.  Such a system could not be considered "sane".
23348903d43aSmrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
23358903d43aSmrgalias in your environment" "$LINENO" 5
2336e9554658Smrg   fi
2337e9554658Smrg
2338e9554658Smrg   test "$2" = conftest.file
2339e9554658Smrg   )
2340e9554658Smrgthen
2341e9554658Smrg   # Ok.
2342e9554658Smrg   :
2343e9554658Smrgelse
23448903d43aSmrg   as_fn_error $? "newly created file is older than distributed files!
23458903d43aSmrgCheck your system clock" "$LINENO" 5
2346e9554658Smrgfi
23478903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2348c2b339b4Smrg$as_echo "yes" >&6; }
2349e9554658Smrgtest "$program_prefix" != NONE &&
2350e9554658Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2351e9554658Smrg# Use a double $ so make ignores it.
2352e9554658Smrgtest "$program_suffix" != NONE &&
2353e9554658Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2354c2b339b4Smrg# Double any \ or $.
2355e9554658Smrg# By default was `s,x,x', remove it if useless.
2356c2b339b4Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2357c2b339b4Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2358e9554658Smrg
2359e9554658Smrg# expand $ac_aux_dir to an absolute path
2360e9554658Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
2361e9554658Smrg
2362c2b339b4Smrgif test x"${MISSING+set}" != xset; then
2363c2b339b4Smrg  case $am_aux_dir in
2364c2b339b4Smrg  *\ * | *\	*)
2365c2b339b4Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2366c2b339b4Smrg  *)
2367c2b339b4Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2368c2b339b4Smrg  esac
2369c2b339b4Smrgfi
2370e9554658Smrg# Use eval to expand $SHELL
2371e9554658Smrgif eval "$MISSING --run true"; then
2372e9554658Smrg  am_missing_run="$MISSING --run "
2373e9554658Smrgelse
2374e9554658Smrg  am_missing_run=
23758903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2376c2b339b4Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2377c2b339b4Smrgfi
2378c2b339b4Smrg
2379c2b339b4Smrgif test x"${install_sh}" != xset; then
2380c2b339b4Smrg  case $am_aux_dir in
2381c2b339b4Smrg  *\ * | *\	*)
2382c2b339b4Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2383c2b339b4Smrg  *)
2384c2b339b4Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2385c2b339b4Smrg  esac
2386c2b339b4Smrgfi
2387c2b339b4Smrg
2388c2b339b4Smrg# Installed binaries are usually stripped using `strip' when the user
2389c2b339b4Smrg# run `make install-strip'.  However `strip' might not be the right
2390c2b339b4Smrg# tool to use in cross-compilation environments, therefore Automake
2391c2b339b4Smrg# will honor the `STRIP' environment variable to overrule this program.
2392c2b339b4Smrgif test "$cross_compiling" != no; then
2393c2b339b4Smrg  if test -n "$ac_tool_prefix"; then
2394c2b339b4Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2395c2b339b4Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
23968903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2397c2b339b4Smrg$as_echo_n "checking for $ac_word... " >&6; }
23988903d43aSmrgif ${ac_cv_prog_STRIP+:} false; then :
2399c2b339b4Smrg  $as_echo_n "(cached) " >&6
2400c2b339b4Smrgelse
2401c2b339b4Smrg  if test -n "$STRIP"; then
2402c2b339b4Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2403c2b339b4Smrgelse
2404c2b339b4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405c2b339b4Smrgfor as_dir in $PATH
2406c2b339b4Smrgdo
2407c2b339b4Smrg  IFS=$as_save_IFS
2408c2b339b4Smrg  test -z "$as_dir" && as_dir=.
24098903d43aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2410c2b339b4Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2411c2b339b4Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
24128903d43aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2413c2b339b4Smrg    break 2
2414c2b339b4Smrg  fi
2415c2b339b4Smrgdone
24168903d43aSmrg  done
2417c2b339b4SmrgIFS=$as_save_IFS
2418c2b339b4Smrg
2419c2b339b4Smrgfi
2420c2b339b4Smrgfi
2421c2b339b4SmrgSTRIP=$ac_cv_prog_STRIP
2422c2b339b4Smrgif test -n "$STRIP"; then
24238903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2424c2b339b4Smrg$as_echo "$STRIP" >&6; }
2425c2b339b4Smrgelse
24268903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2427c2b339b4Smrg$as_echo "no" >&6; }
2428c2b339b4Smrgfi
2429c2b339b4Smrg
2430c2b339b4Smrg
2431c2b339b4Smrgfi
2432c2b339b4Smrgif test -z "$ac_cv_prog_STRIP"; then
2433c2b339b4Smrg  ac_ct_STRIP=$STRIP
2434c2b339b4Smrg  # Extract the first word of "strip", so it can be a program name with args.
2435c2b339b4Smrgset dummy strip; ac_word=$2
24368903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2437c2b339b4Smrg$as_echo_n "checking for $ac_word... " >&6; }
24388903d43aSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2439c2b339b4Smrg  $as_echo_n "(cached) " >&6
2440c2b339b4Smrgelse
2441c2b339b4Smrg  if test -n "$ac_ct_STRIP"; then
2442c2b339b4Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2443c2b339b4Smrgelse
2444c2b339b4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445c2b339b4Smrgfor as_dir in $PATH
2446c2b339b4Smrgdo
2447c2b339b4Smrg  IFS=$as_save_IFS
2448c2b339b4Smrg  test -z "$as_dir" && as_dir=.
24498903d43aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2450c2b339b4Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451c2b339b4Smrg    ac_cv_prog_ac_ct_STRIP="strip"
24528903d43aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2453c2b339b4Smrg    break 2
2454c2b339b4Smrg  fi
2455c2b339b4Smrgdone
24568903d43aSmrg  done
2457c2b339b4SmrgIFS=$as_save_IFS
2458c2b339b4Smrg
2459c2b339b4Smrgfi
2460c2b339b4Smrgfi
2461c2b339b4Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2462c2b339b4Smrgif test -n "$ac_ct_STRIP"; then
24638903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2464c2b339b4Smrg$as_echo "$ac_ct_STRIP" >&6; }
2465c2b339b4Smrgelse
24668903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2467c2b339b4Smrg$as_echo "no" >&6; }
2468c2b339b4Smrgfi
2469c2b339b4Smrg
2470c2b339b4Smrg  if test "x$ac_ct_STRIP" = x; then
2471c2b339b4Smrg    STRIP=":"
2472c2b339b4Smrg  else
2473c2b339b4Smrg    case $cross_compiling:$ac_tool_warned in
2474c2b339b4Smrgyes:)
24758903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2476c2b339b4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2477c2b339b4Smrgac_tool_warned=yes ;;
2478c2b339b4Smrgesac
2479c2b339b4Smrg    STRIP=$ac_ct_STRIP
2480c2b339b4Smrg  fi
2481c2b339b4Smrgelse
2482c2b339b4Smrg  STRIP="$ac_cv_prog_STRIP"
2483c2b339b4Smrgfi
2484c2b339b4Smrg
2485e9554658Smrgfi
2486c2b339b4SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2487e9554658Smrg
24888903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2489c2b339b4Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2490e9554658Smrgif test -z "$MKDIR_P"; then
24918903d43aSmrg  if ${ac_cv_path_mkdir+:} false; then :
2492c2b339b4Smrg  $as_echo_n "(cached) " >&6
2493e9554658Smrgelse
2494e9554658Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495e9554658Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2496e9554658Smrgdo
2497e9554658Smrg  IFS=$as_save_IFS
2498e9554658Smrg  test -z "$as_dir" && as_dir=.
24998903d43aSmrg    for ac_prog in mkdir gmkdir; do
2500e9554658Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2501e9554658Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2502e9554658Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2503e9554658Smrg	     'mkdir (GNU coreutils) '* | \
2504e9554658Smrg	     'mkdir (coreutils) '* | \
2505e9554658Smrg	     'mkdir (fileutils) '4.1*)
2506e9554658Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2507e9554658Smrg	       break 3;;
2508e9554658Smrg	   esac
2509e9554658Smrg	 done
2510e9554658Smrg       done
25118903d43aSmrg  done
2512e9554658SmrgIFS=$as_save_IFS
2513e9554658Smrg
2514e9554658Smrgfi
2515e9554658Smrg
25168903d43aSmrg  test -d ./--version && rmdir ./--version
2517e9554658Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
2518e9554658Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
2519e9554658Smrg  else
2520e9554658Smrg    # As a last resort, use the slow shell script.  Don't cache a
2521e9554658Smrg    # value for MKDIR_P within a source directory, because that will
2522e9554658Smrg    # break other packages using the cache if that directory is
2523e9554658Smrg    # removed, or if the value is a relative name.
2524e9554658Smrg    MKDIR_P="$ac_install_sh -d"
2525e9554658Smrg  fi
2526e9554658Smrgfi
25278903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2528c2b339b4Smrg$as_echo "$MKDIR_P" >&6; }
2529e9554658Smrg
2530e9554658Smrgmkdir_p="$MKDIR_P"
2531e9554658Smrgcase $mkdir_p in
2532e9554658Smrg  [\\/$]* | ?:[\\/]*) ;;
2533e9554658Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2534e9554658Smrgesac
2535e9554658Smrg
2536e9554658Smrgfor ac_prog in gawk mawk nawk awk
2537e9554658Smrgdo
2538e9554658Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2539e9554658Smrgset dummy $ac_prog; ac_word=$2
25408903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541c2b339b4Smrg$as_echo_n "checking for $ac_word... " >&6; }
25428903d43aSmrgif ${ac_cv_prog_AWK+:} false; then :
2543c2b339b4Smrg  $as_echo_n "(cached) " >&6
2544e9554658Smrgelse
2545e9554658Smrg  if test -n "$AWK"; then
2546e9554658Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2547e9554658Smrgelse
2548e9554658Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549e9554658Smrgfor as_dir in $PATH
2550e9554658Smrgdo
2551e9554658Smrg  IFS=$as_save_IFS
2552e9554658Smrg  test -z "$as_dir" && as_dir=.
25538903d43aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2554e9554658Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555e9554658Smrg    ac_cv_prog_AWK="$ac_prog"
25568903d43aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557e9554658Smrg    break 2
2558e9554658Smrg  fi
2559e9554658Smrgdone
25608903d43aSmrg  done
2561e9554658SmrgIFS=$as_save_IFS
2562e9554658Smrg
2563e9554658Smrgfi
2564e9554658Smrgfi
2565e9554658SmrgAWK=$ac_cv_prog_AWK
2566e9554658Smrgif test -n "$AWK"; then
25678903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2568c2b339b4Smrg$as_echo "$AWK" >&6; }
2569e9554658Smrgelse
25708903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571c2b339b4Smrg$as_echo "no" >&6; }
2572e9554658Smrgfi
2573e9554658Smrg
2574e9554658Smrg
2575e9554658Smrg  test -n "$AWK" && break
2576e9554658Smrgdone
2577e9554658Smrg
25788903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2579c2b339b4Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2580c2b339b4Smrgset x ${MAKE-make}
2581c2b339b4Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
25828903d43aSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2583c2b339b4Smrg  $as_echo_n "(cached) " >&6
2584e9554658Smrgelse
2585e9554658Smrg  cat >conftest.make <<\_ACEOF
2586e9554658SmrgSHELL = /bin/sh
2587e9554658Smrgall:
2588e9554658Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2589e9554658Smrg_ACEOF
25908903d43aSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2591e9554658Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2592e9554658Smrg  *@@@%%%=?*=@@@%%%*)
2593e9554658Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2594e9554658Smrg  *)
2595e9554658Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2596e9554658Smrgesac
2597e9554658Smrgrm -f conftest.make
2598e9554658Smrgfi
2599e9554658Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
26008903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2601c2b339b4Smrg$as_echo "yes" >&6; }
2602e9554658Smrg  SET_MAKE=
2603e9554658Smrgelse
26048903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605c2b339b4Smrg$as_echo "no" >&6; }
2606e9554658Smrg  SET_MAKE="MAKE=${MAKE-make}"
2607e9554658Smrgfi
2608e9554658Smrg
2609e9554658Smrgrm -rf .tst 2>/dev/null
2610e9554658Smrgmkdir .tst 2>/dev/null
2611e9554658Smrgif test -d .tst; then
2612e9554658Smrg  am__leading_dot=.
2613e9554658Smrgelse
2614e9554658Smrg  am__leading_dot=_
2615e9554658Smrgfi
2616e9554658Smrgrmdir .tst 2>/dev/null
2617e9554658Smrg
2618e9554658Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2619e9554658Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2620e9554658Smrg  # is not polluted with repeated "-I."
2621e9554658Smrg  am__isrc=' -I$(srcdir)'
2622e9554658Smrg  # test to see if srcdir already configured
2623e9554658Smrg  if test -f $srcdir/config.status; then
26248903d43aSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2625e9554658Smrg  fi
2626e9554658Smrgfi
2627e9554658Smrg
2628e9554658Smrg# test whether we have cygpath
2629e9554658Smrgif test -z "$CYGPATH_W"; then
2630e9554658Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2631e9554658Smrg    CYGPATH_W='cygpath -w'
2632e9554658Smrg  else
2633e9554658Smrg    CYGPATH_W=echo
2634e9554658Smrg  fi
2635e9554658Smrgfi
2636e9554658Smrg
2637e9554658Smrg
2638e9554658Smrg# Define the identity of the package.
2639e9554658Smrg PACKAGE='xclock'
2640309c398aSmrg VERSION='1.0.6'
2641e9554658Smrg
2642e9554658Smrg
2643e9554658Smrgcat >>confdefs.h <<_ACEOF
2644e9554658Smrg#define PACKAGE "$PACKAGE"
2645e9554658Smrg_ACEOF
2646e9554658Smrg
2647e9554658Smrg
2648e9554658Smrgcat >>confdefs.h <<_ACEOF
2649e9554658Smrg#define VERSION "$VERSION"
2650e9554658Smrg_ACEOF
2651e9554658Smrg
2652e9554658Smrg# Some tools Automake needs.
2653e9554658Smrg
2654e9554658SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2655e9554658Smrg
2656e9554658Smrg
2657e9554658SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2658e9554658Smrg
2659e9554658Smrg
2660e9554658SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2661e9554658Smrg
2662e9554658Smrg
2663e9554658SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2664e9554658Smrg
2665e9554658Smrg
2666e9554658SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2667e9554658Smrg
2668e9554658Smrg# We need awk for the "check" target.  The system "awk" is bad on
2669e9554658Smrg# some platforms.
2670e9554658Smrg# Always define AMTAR for backward compatibility.
2671e9554658Smrg
2672e9554658SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
2673e9554658Smrg
2674e9554658Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2675e9554658Smrg
2676e9554658Smrg
2677e9554658Smrg
2678e9554658Smrg
2679e9554658Smrg
2680c2b339b4Smrg
26818903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2682c2b339b4Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2683e9554658Smrg    # Check whether --enable-maintainer-mode was given.
26848903d43aSmrgif test "${enable_maintainer_mode+set}" = set; then :
2685e9554658Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2686e9554658Smrgelse
2687e9554658Smrg  USE_MAINTAINER_MODE=no
2688e9554658Smrgfi
2689e9554658Smrg
26908903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2691c2b339b4Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
2692e9554658Smrg   if test $USE_MAINTAINER_MODE = yes; then
2693e9554658Smrg  MAINTAINER_MODE_TRUE=
2694e9554658Smrg  MAINTAINER_MODE_FALSE='#'
2695e9554658Smrgelse
2696e9554658Smrg  MAINTAINER_MODE_TRUE='#'
2697e9554658Smrg  MAINTAINER_MODE_FALSE=
2698e9554658Smrgfi
2699e9554658Smrg
2700e9554658Smrg  MAINT=$MAINTAINER_MODE_TRUE
2701e9554658Smrg
2702e9554658Smrg
2703e9554658Smrg
27048903d43aSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2705c2b339b4Smrg
2706c2b339b4Smrg
2707c2b339b4Smrg
2708c2b339b4Smrg
2709c2b339b4Smrg
2710c2b339b4Smrg
2711c2b339b4Smrg
2712c2b339b4Smrg
2713c2b339b4Smrg
2714c2b339b4Smrg
2715c2b339b4Smrg
27168903d43aSmrgDEPDIR="${am__leading_dot}deps"
2717e9554658Smrg
27188903d43aSmrgac_config_commands="$ac_config_commands depfiles"
2719e9554658Smrg
27208903d43aSmrg
27218903d43aSmrgam_make=${MAKE-make}
27228903d43aSmrgcat > confinc << 'END'
27238903d43aSmrgam__doit:
27248903d43aSmrg	@echo this is the am__doit target
27258903d43aSmrg.PHONY: am__doit
27268903d43aSmrgEND
27278903d43aSmrg# If we don't find an include directive, just comment out the code.
27288903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
27298903d43aSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
27308903d43aSmrgam__include="#"
27318903d43aSmrgam__quote=
27328903d43aSmrg_am_result=none
27338903d43aSmrg# First try GNU make style include.
27348903d43aSmrgecho "include confinc" > confmf
27358903d43aSmrg# Ignore all kinds of additional output from `make'.
27368903d43aSmrgcase `$am_make -s -f confmf 2> /dev/null` in #(
27378903d43aSmrg*the\ am__doit\ target*)
27388903d43aSmrg  am__include=include
27398903d43aSmrg  am__quote=
27408903d43aSmrg  _am_result=GNU
27418903d43aSmrg  ;;
27428903d43aSmrgesac
27438903d43aSmrg# Now try BSD make style include.
27448903d43aSmrgif test "$am__include" = "#"; then
27458903d43aSmrg   echo '.include "confinc"' > confmf
27468903d43aSmrg   case `$am_make -s -f confmf 2> /dev/null` in #(
27478903d43aSmrg   *the\ am__doit\ target*)
27488903d43aSmrg     am__include=.include
27498903d43aSmrg     am__quote="\""
27508903d43aSmrg     _am_result=BSD
27518903d43aSmrg     ;;
27528903d43aSmrg   esac
27538903d43aSmrgfi
27548903d43aSmrg
27558903d43aSmrg
27568903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
27578903d43aSmrg$as_echo "$_am_result" >&6; }
27588903d43aSmrgrm -f confinc confmf
27598903d43aSmrg
27608903d43aSmrg# Check whether --enable-dependency-tracking was given.
27618903d43aSmrgif test "${enable_dependency_tracking+set}" = set; then :
27628903d43aSmrg  enableval=$enable_dependency_tracking;
27638903d43aSmrgfi
27648903d43aSmrg
27658903d43aSmrgif test "x$enable_dependency_tracking" != xno; then
27668903d43aSmrg  am_depcomp="$ac_aux_dir/depcomp"
27678903d43aSmrg  AMDEPBACKSLASH='\'
27688903d43aSmrgfi
27698903d43aSmrg if test "x$enable_dependency_tracking" != xno; then
27708903d43aSmrg  AMDEP_TRUE=
27718903d43aSmrg  AMDEP_FALSE='#'
27728903d43aSmrgelse
27738903d43aSmrg  AMDEP_TRUE='#'
27748903d43aSmrg  AMDEP_FALSE=
27758903d43aSmrgfi
27768903d43aSmrg
27778903d43aSmrg
27788903d43aSmrgac_ext=c
27798903d43aSmrgac_cpp='$CPP $CPPFLAGS'
27808903d43aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27818903d43aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27828903d43aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
27838903d43aSmrgif test -n "$ac_tool_prefix"; then
27848903d43aSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
27858903d43aSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
27868903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27878903d43aSmrg$as_echo_n "checking for $ac_word... " >&6; }
27888903d43aSmrgif ${ac_cv_prog_CC+:} false; then :
27898903d43aSmrg  $as_echo_n "(cached) " >&6
27908903d43aSmrgelse
27918903d43aSmrg  if test -n "$CC"; then
27928903d43aSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
27938903d43aSmrgelse
27948903d43aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27958903d43aSmrgfor as_dir in $PATH
27968903d43aSmrgdo
27978903d43aSmrg  IFS=$as_save_IFS
27988903d43aSmrg  test -z "$as_dir" && as_dir=.
27998903d43aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
28008903d43aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28018903d43aSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
28028903d43aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28038903d43aSmrg    break 2
28048903d43aSmrg  fi
28058903d43aSmrgdone
28068903d43aSmrg  done
28078903d43aSmrgIFS=$as_save_IFS
28088903d43aSmrg
28098903d43aSmrgfi
28108903d43aSmrgfi
28118903d43aSmrgCC=$ac_cv_prog_CC
28128903d43aSmrgif test -n "$CC"; then
28138903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
28148903d43aSmrg$as_echo "$CC" >&6; }
28158903d43aSmrgelse
28168903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28178903d43aSmrg$as_echo "no" >&6; }
28188903d43aSmrgfi
2819e9554658Smrg
2820e9554658Smrg
2821e9554658Smrgfi
2822e9554658Smrgif test -z "$ac_cv_prog_CC"; then
2823e9554658Smrg  ac_ct_CC=$CC
2824e9554658Smrg  # Extract the first word of "gcc", so it can be a program name with args.
2825e9554658Smrgset dummy gcc; ac_word=$2
28268903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827c2b339b4Smrg$as_echo_n "checking for $ac_word... " >&6; }
28288903d43aSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
2829c2b339b4Smrg  $as_echo_n "(cached) " >&6
2830e9554658Smrgelse
2831e9554658Smrg  if test -n "$ac_ct_CC"; then
2832e9554658Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833e9554658Smrgelse
2834e9554658Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835e9554658Smrgfor as_dir in $PATH
2836e9554658Smrgdo
2837e9554658Smrg  IFS=$as_save_IFS
2838e9554658Smrg  test -z "$as_dir" && as_dir=.
28398903d43aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2840e9554658Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841e9554658Smrg    ac_cv_prog_ac_ct_CC="gcc"
28428903d43aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843e9554658Smrg    break 2
2844e9554658Smrg  fi
2845e9554658Smrgdone
28468903d43aSmrg  done
2847e9554658SmrgIFS=$as_save_IFS
2848e9554658Smrg
2849e9554658Smrgfi
2850e9554658Smrgfi
2851e9554658Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2852e9554658Smrgif test -n "$ac_ct_CC"; then
28538903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2854c2b339b4Smrg$as_echo "$ac_ct_CC" >&6; }
2855e9554658Smrgelse
28568903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857c2b339b4Smrg$as_echo "no" >&6; }
2858e9554658Smrgfi
2859e9554658Smrg
2860e9554658Smrg  if test "x$ac_ct_CC" = x; then
2861e9554658Smrg    CC=""
2862e9554658Smrg  else
2863e9554658Smrg    case $cross_compiling:$ac_tool_warned in
2864e9554658Smrgyes:)
28658903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2866c2b339b4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2867e9554658Smrgac_tool_warned=yes ;;
2868e9554658Smrgesac
2869e9554658Smrg    CC=$ac_ct_CC
2870e9554658Smrg  fi
2871e9554658Smrgelse
2872e9554658Smrg  CC="$ac_cv_prog_CC"
2873e9554658Smrgfi
2874e9554658Smrg
2875e9554658Smrgif test -z "$CC"; then
2876e9554658Smrg          if test -n "$ac_tool_prefix"; then
2877e9554658Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2878e9554658Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
28798903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880c2b339b4Smrg$as_echo_n "checking for $ac_word... " >&6; }
28818903d43aSmrgif ${ac_cv_prog_CC+:} false; then :
2882c2b339b4Smrg  $as_echo_n "(cached) " >&6
2883e9554658Smrgelse
2884e9554658Smrg  if test -n "$CC"; then
2885e9554658Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2886e9554658Smrgelse
2887e9554658Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888e9554658Smrgfor as_dir in $PATH
2889e9554658Smrgdo
2890e9554658Smrg  IFS=$as_save_IFS
2891e9554658Smrg  test -z "$as_dir" && as_dir=.
28928903d43aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2893e9554658Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894e9554658Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
28958903d43aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896e9554658Smrg    break 2
2897e9554658Smrg  fi
2898e9554658Smrgdone
28998903d43aSmrg  done
2900e9554658SmrgIFS=$as_save_IFS
2901e9554658Smrg
2902e9554658Smrgfi
2903e9554658Smrgfi
2904e9554658SmrgCC=$ac_cv_prog_CC
2905e9554658Smrgif test -n "$CC"; then
29068903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2907c2b339b4Smrg$as_echo "$CC" >&6; }
2908e9554658Smrgelse
29098903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910c2b339b4Smrg$as_echo "no" >&6; }
2911e9554658Smrgfi
2912e9554658Smrg
2913e9554658Smrg
2914e9554658Smrg  fi
2915e9554658Smrgfi
2916e9554658Smrgif test -z "$CC"; then
2917e9554658Smrg  # Extract the first word of "cc", so it can be a program name with args.
2918e9554658Smrgset dummy cc; ac_word=$2
29198903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920c2b339b4Smrg$as_echo_n "checking for $ac_word... " >&6; }
29218903d43aSmrgif ${ac_cv_prog_CC+:} false; then :
2922c2b339b4Smrg  $as_echo_n "(cached) " >&6
2923e9554658Smrgelse
2924e9554658Smrg  if test -n "$CC"; then
2925e9554658Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2926e9554658Smrgelse
2927e9554658Smrg  ac_prog_rejected=no
2928e9554658Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929e9554658Smrgfor as_dir in $PATH
2930e9554658Smrgdo
2931e9554658Smrg  IFS=$as_save_IFS
2932e9554658Smrg  test -z "$as_dir" && as_dir=.
29338903d43aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2934e9554658Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935e9554658Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2936e9554658Smrg       ac_prog_rejected=yes
2937e9554658Smrg       continue
2938e9554658Smrg     fi
2939e9554658Smrg    ac_cv_prog_CC="cc"
29408903d43aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941e9554658Smrg    break 2
2942e9554658Smrg  fi
2943e9554658Smrgdone
29448903d43aSmrg  done
2945e9554658SmrgIFS=$as_save_IFS
2946e9554658Smrg
2947e9554658Smrgif test $ac_prog_rejected = yes; then
2948e9554658Smrg  # We found a bogon in the path, so make sure we never use it.
2949e9554658Smrg  set dummy $ac_cv_prog_CC
2950e9554658Smrg  shift
2951e9554658Smrg  if test $# != 0; then
2952e9554658Smrg    # We chose a different compiler from the bogus one.
2953e9554658Smrg    # However, it has the same basename, so the bogon will be chosen
2954e9554658Smrg    # first if we set CC to just the basename; use the full file name.
2955e9554658Smrg    shift
2956e9554658Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2957e9554658Smrg  fi
2958e9554658Smrgfi
2959e9554658Smrgfi
2960e9554658Smrgfi
2961e9554658SmrgCC=$ac_cv_prog_CC
2962e9554658Smrgif test -n "$CC"; then
29638903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2964c2b339b4Smrg$as_echo "$CC" >&6; }
2965e9554658Smrgelse
29668903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967c2b339b4Smrg$as_echo "no" >&6; }
2968e9554658Smrgfi
2969e9554658Smrg
2970e9554658Smrg
2971e9554658Smrgfi
2972e9554658Smrgif test -z "$CC"; then
2973e9554658Smrg  if test -n "$ac_tool_prefix"; then
2974e9554658Smrg  for ac_prog in cl.exe
2975e9554658Smrg  do
2976e9554658Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2977e9554658Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
29788903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979c2b339b4Smrg$as_echo_n "checking for $ac_word... " >&6; }
29808903d43aSmrgif ${ac_cv_prog_CC+:} false; then :
2981c2b339b4Smrg  $as_echo_n "(cached) " >&6
2982e9554658Smrgelse
2983e9554658Smrg  if test -n "$CC"; then
2984e9554658Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2985e9554658Smrgelse
2986e9554658Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987e9554658Smrgfor as_dir in $PATH
2988e9554658Smrgdo
2989e9554658Smrg  IFS=$as_save_IFS
2990e9554658Smrg  test -z "$as_dir" && as_dir=.
29918903d43aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2992e9554658Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993e9554658Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
29948903d43aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995e9554658Smrg    break 2
2996e9554658Smrg  fi
2997e9554658Smrgdone
29988903d43aSmrg  done
2999e9554658SmrgIFS=$as_save_IFS
3000e9554658Smrg
3001e9554658Smrgfi
3002e9554658Smrgfi
3003e9554658SmrgCC=$ac_cv_prog_CC
3004e9554658Smrgif test -n "$CC"; then
30058903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3006c2b339b4Smrg$as_echo "$CC" >&6; }
3007e9554658Smrgelse
30088903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009c2b339b4Smrg$as_echo "no" >&6; }
3010e9554658Smrgfi
3011e9554658Smrg
3012e9554658Smrg
3013e9554658Smrg    test -n "$CC" && break
3014e9554658Smrg  done
3015e9554658Smrgfi
3016e9554658Smrgif test -z "$CC"; then
3017e9554658Smrg  ac_ct_CC=$CC
3018e9554658Smrg  for ac_prog in cl.exe
3019e9554658Smrgdo
3020e9554658Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
3021e9554658Smrgset dummy $ac_prog; ac_word=$2
30228903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023c2b339b4Smrg$as_echo_n "checking for $ac_word... " >&6; }
30248903d43aSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
3025c2b339b4Smrg  $as_echo_n "(cached) " >&6
3026e9554658Smrgelse
3027e9554658Smrg  if test -n "$ac_ct_CC"; then
3028e9554658Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3029e9554658Smrgelse
3030e9554658Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031e9554658Smrgfor as_dir in $PATH
3032e9554658Smrgdo
3033e9554658Smrg  IFS=$as_save_IFS
3034e9554658Smrg  test -z "$as_dir" && as_dir=.
30358903d43aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3036e9554658Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037e9554658Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
30388903d43aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039e9554658Smrg    break 2
3040e9554658Smrg  fi
3041e9554658Smrgdone
30428903d43aSmrg  done
3043e9554658SmrgIFS=$as_save_IFS
3044e9554658Smrg
3045e9554658Smrgfi
3046e9554658Smrgfi
3047e9554658Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3048e9554658Smrgif test -n "$ac_ct_CC"; then
30498903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3050c2b339b4Smrg$as_echo "$ac_ct_CC" >&6; }
3051e9554658Smrgelse
30528903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053c2b339b4Smrg$as_echo "no" >&6; }
3054e9554658Smrgfi
3055e9554658Smrg
3056e9554658Smrg
3057e9554658Smrg  test -n "$ac_ct_CC" && break
3058e9554658Smrgdone
3059e9554658Smrg
3060e9554658Smrg  if test "x$ac_ct_CC" = x; then
3061e9554658Smrg    CC=""
3062e9554658Smrg  else
3063e9554658Smrg    case $cross_compiling:$ac_tool_warned in
3064e9554658Smrgyes:)
30658903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3066c2b339b4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3067e9554658Smrgac_tool_warned=yes ;;
3068e9554658Smrgesac
3069e9554658Smrg    CC=$ac_ct_CC
3070e9554658Smrg  fi
3071e9554658Smrgfi
3072e9554658Smrg
3073e9554658Smrgfi
3074e9554658Smrg
3075e9554658Smrg
30768903d43aSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30788903d43aSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
30798903d43aSmrgSee \`config.log' for more details" "$LINENO" 5; }
3080e9554658Smrg
3081e9554658Smrg# Provide some information about the compiler.
30828903d43aSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3083c2b339b4Smrgset X $ac_compile
3084c2b339b4Smrgac_compiler=$2
30858903d43aSmrgfor ac_option in --version -v -V -qversion; do
30868903d43aSmrg  { { ac_try="$ac_compiler $ac_option >&5"
3087e9554658Smrgcase "(($ac_try" in
3088e9554658Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089e9554658Smrg  *) ac_try_echo=$ac_try;;
3090e9554658Smrgesac
30918903d43aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30928903d43aSmrg$as_echo "$ac_try_echo"; } >&5
30938903d43aSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3094e9554658Smrg  ac_status=$?
30958903d43aSmrg  if test -s conftest.err; then
30968903d43aSmrg    sed '10a\
30978903d43aSmrg... rest of stderr output deleted ...
30988903d43aSmrg         10q' conftest.err >conftest.er1
30998903d43aSmrg    cat conftest.er1 >&5
31008903d43aSmrg  fi
31018903d43aSmrg  rm -f conftest.er1 conftest.err
31028903d43aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31038903d43aSmrg  test $ac_status = 0; }
31048903d43aSmrgdone
3105e9554658Smrg
31068903d43aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107e9554658Smrg/* end confdefs.h.  */
3108e9554658Smrg
3109e9554658Smrgint
3110e9554658Smrgmain ()
3111e9554658Smrg{
3112e9554658Smrg
3113e9554658Smrg  ;
3114e9554658Smrg  return 0;
3115e9554658Smrg}
3116e9554658Smrg_ACEOF
3117e9554658Smrgac_clean_files_save=$ac_clean_files
3118c2b339b4Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3119e9554658Smrg# Try to create an executable without -o first, disregard a.out.
3120e9554658Smrg# It will help us diagnose broken compilers, and finding out an intuition
3121e9554658Smrg# of exeext.
31228903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
31238903d43aSmrg$as_echo_n "checking whether the C compiler works... " >&6; }
3124c2b339b4Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3125c2b339b4Smrg
3126c2b339b4Smrg# The possible output files:
3127c2b339b4Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3128c2b339b4Smrg
3129e9554658Smrgac_rmfiles=
3130e9554658Smrgfor ac_file in $ac_files
3131e9554658Smrgdo
3132e9554658Smrg  case $ac_file in
3133c2b339b4Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3134e9554658Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3135e9554658Smrg  esac
3136e9554658Smrgdone
3137e9554658Smrgrm -f $ac_rmfiles
3138e9554658Smrg
31398903d43aSmrgif { { ac_try="$ac_link_default"
3140e9554658Smrgcase "(($ac_try" in
3141e9554658Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142e9554658Smrg  *) ac_try_echo=$ac_try;;
3143e9554658Smrgesac
31448903d43aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31458903d43aSmrg$as_echo "$ac_try_echo"; } >&5
3146e9554658Smrg  (eval "$ac_link_default") 2>&5
3147e9554658Smrg  ac_status=$?
31488903d43aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31498903d43aSmrg  test $ac_status = 0; }; then :
3150e9554658Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3151e9554658Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3152e9554658Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3153e9554658Smrg# so that the user can short-circuit this test for compilers unknown to
3154e9554658Smrg# Autoconf.
3155e9554658Smrgfor ac_file in $ac_files ''
3156e9554658Smrgdo
3157e9554658Smrg  test -f "$ac_file" || continue
3158e9554658Smrg  case $ac_file in
3159c2b339b4Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3160e9554658Smrg	;;
3161e9554658Smrg    [ab].out )
3162e9554658Smrg	# We found the default executable, but exeext='' is most
3163e9554658Smrg	# certainly right.
3164e9554658Smrg	break;;
3165e9554658Smrg    *.* )
31668903d43aSmrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3167e9554658Smrg	then :; else
3168e9554658Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3169e9554658Smrg	fi
3170e9554658Smrg	# We set ac_cv_exeext here because the later test for it is not
3171e9554658Smrg	# safe: cross compilers may not add the suffix if given an `-o'
3172e9554658Smrg	# argument, so we may need to know it at that point already.
3173e9554658Smrg	# Even if this section looks crufty: it has the advantage of
3174e9554658Smrg	# actually working.
3175e9554658Smrg	break;;
3176e9554658Smrg    * )
3177e9554658Smrg	break;;
3178e9554658Smrg  esac
3179e9554658Smrgdone
3180e9554658Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3181e9554658Smrg
3182e9554658Smrgelse
3183e9554658Smrg  ac_file=''
3184e9554658Smrgfi
31858903d43aSmrgif test -z "$ac_file"; then :
31868903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31878903d43aSmrg$as_echo "no" >&6; }
31888903d43aSmrg$as_echo "$as_me: failed program was:" >&5
3189e9554658Smrgsed 's/^/| /' conftest.$ac_ext >&5
3190e9554658Smrg
31918903d43aSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31938903d43aSmrgas_fn_error 77 "C compiler cannot create executables
31948903d43aSmrgSee \`config.log' for more details" "$LINENO" 5; }
31958903d43aSmrgelse
31968903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31978903d43aSmrg$as_echo "yes" >&6; }
3198e9554658Smrgfi
31998903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
32008903d43aSmrg$as_echo_n "checking for C compiler default output file name... " >&6; }
32018903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
32028903d43aSmrg$as_echo "$ac_file" >&6; }
3203e9554658Smrgac_exeext=$ac_cv_exeext
3204e9554658Smrg
3205c2b339b4Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3206e9554658Smrgac_clean_files=$ac_clean_files_save
32078903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3208c2b339b4Smrg$as_echo_n "checking for suffix of executables... " >&6; }
32098903d43aSmrgif { { ac_try="$ac_link"
3210e9554658Smrgcase "(($ac_try" in
3211e9554658Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212e9554658Smrg  *) ac_try_echo=$ac_try;;
3213e9554658Smrgesac
32148903d43aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32158903d43aSmrg$as_echo "$ac_try_echo"; } >&5
3216e9554658Smrg  (eval "$ac_link") 2>&5
3217e9554658Smrg  ac_status=$?
32188903d43aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32198903d43aSmrg  test $ac_status = 0; }; then :
3220e9554658Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3221e9554658Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3222e9554658Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3223e9554658Smrg# `rm'.
3224e9554658Smrgfor ac_file in conftest.exe conftest conftest.*; do
3225e9554658Smrg  test -f "$ac_file" || continue
3226e9554658Smrg  case $ac_file in
3227c2b339b4Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3228e9554658Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3229e9554658Smrg	  break;;
3230e9554658Smrg    * ) break;;
3231e9554658Smrg  esac
3232e9554658Smrgdone
3233e9554658Smrgelse
32348903d43aSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32368903d43aSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
32378903d43aSmrgSee \`config.log' for more details" "$LINENO" 5; }
3238e9554658Smrgfi
32398903d43aSmrgrm -f conftest conftest$ac_cv_exeext
32408903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3241c2b339b4Smrg$as_echo "$ac_cv_exeext" >&6; }
3242e9554658Smrg
3243e9554658Smrgrm -f conftest.$ac_ext
3244e9554658SmrgEXEEXT=$ac_cv_exeext
3245e9554658Smrgac_exeext=$EXEEXT
32468903d43aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
32478903d43aSmrg/* end confdefs.h.  */
32488903d43aSmrg#include <stdio.h>
32498903d43aSmrgint
32508903d43aSmrgmain ()
32518903d43aSmrg{
32528903d43aSmrgFILE *f = fopen ("conftest.out", "w");
32538903d43aSmrg return ferror (f) || fclose (f) != 0;
32548903d43aSmrg
32558903d43aSmrg  ;
32568903d43aSmrg  return 0;
32578903d43aSmrg}
32588903d43aSmrg_ACEOF
32598903d43aSmrgac_clean_files="$ac_clean_files conftest.out"
32608903d43aSmrg# Check that the compiler produces executables we can run.  If not, either
32618903d43aSmrg# the compiler is broken, or we cross compile.
32628903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
32638903d43aSmrg$as_echo_n "checking whether we are cross compiling... " >&6; }
32648903d43aSmrgif test "$cross_compiling" != yes; then
32658903d43aSmrg  { { ac_try="$ac_link"
32668903d43aSmrgcase "(($ac_try" in
32678903d43aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32688903d43aSmrg  *) ac_try_echo=$ac_try;;
32698903d43aSmrgesac
32708903d43aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32718903d43aSmrg$as_echo "$ac_try_echo"; } >&5
32728903d43aSmrg  (eval "$ac_link") 2>&5
32738903d43aSmrg  ac_status=$?
32748903d43aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32758903d43aSmrg  test $ac_status = 0; }
32768903d43aSmrg  if { ac_try='./conftest$ac_cv_exeext'
32778903d43aSmrg  { { case "(($ac_try" in
32788903d43aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32798903d43aSmrg  *) ac_try_echo=$ac_try;;
32808903d43aSmrgesac
32818903d43aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32828903d43aSmrg$as_echo "$ac_try_echo"; } >&5
32838903d43aSmrg  (eval "$ac_try") 2>&5
32848903d43aSmrg  ac_status=$?
32858903d43aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32868903d43aSmrg  test $ac_status = 0; }; }; then
32878903d43aSmrg    cross_compiling=no
32888903d43aSmrg  else
32898903d43aSmrg    if test "$cross_compiling" = maybe; then
32908903d43aSmrg	cross_compiling=yes
32918903d43aSmrg    else
32928903d43aSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32938903d43aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32948903d43aSmrgas_fn_error $? "cannot run C compiled programs.
32958903d43aSmrgIf you meant to cross compile, use \`--host'.
32968903d43aSmrgSee \`config.log' for more details" "$LINENO" 5; }
32978903d43aSmrg    fi
32988903d43aSmrg  fi
32998903d43aSmrgfi
33008903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
33018903d43aSmrg$as_echo "$cross_compiling" >&6; }
33028903d43aSmrg
33038903d43aSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
33048903d43aSmrgac_clean_files=$ac_clean_files_save
33058903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3306c2b339b4Smrg$as_echo_n "checking for suffix of object files... " >&6; }
33078903d43aSmrgif ${ac_cv_objext+:} false; then :
3308c2b339b4Smrg  $as_echo_n "(cached) " >&6
3309e9554658Smrgelse
33108903d43aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311e9554658Smrg/* end confdefs.h.  */
3312e9554658Smrg
3313e9554658Smrgint
3314e9554658Smrgmain ()
3315e9554658Smrg{
3316e9554658Smrg
3317e9554658Smrg  ;
3318e9554658Smrg  return 0;
3319e9554658Smrg}
3320e9554658Smrg_ACEOF
3321e9554658Smrgrm -f conftest.o conftest.obj
33228903d43aSmrgif { { ac_try="$ac_compile"
3323e9554658Smrgcase "(($ac_try" in
3324e9554658Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325e9554658Smrg  *) ac_try_echo=$ac_try;;
3326e9554658Smrgesac
33278903d43aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
33288903d43aSmrg$as_echo "$ac_try_echo"; } >&5
3329e9554658Smrg  (eval "$ac_compile") 2>&5
3330e9554658Smrg  ac_status=$?
33318903d43aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33328903d43aSmrg  test $ac_status = 0; }; then :
3333e9554658Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
3334e9554658Smrg  test -f "$ac_file" || continue;
3335e9554658Smrg  case $ac_file in
3336c2b339b4Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3337e9554658Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3338e9554658Smrg       break;;
3339e9554658Smrg  esac
3340e9554658Smrgdone
3341e9554658Smrgelse
3342c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
3343e9554658Smrgsed 's/^/| /' conftest.$ac_ext >&5
3344e9554658Smrg
33458903d43aSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33478903d43aSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
33488903d43aSmrgSee \`config.log' for more details" "$LINENO" 5; }
3349e9554658Smrgfi
3350e9554658Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3351e9554658Smrgfi
33528903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3353c2b339b4Smrg$as_echo "$ac_cv_objext" >&6; }
3354e9554658SmrgOBJEXT=$ac_cv_objext
3355e9554658Smrgac_objext=$OBJEXT
33568903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3357c2b339b4Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
33588903d43aSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
3359c2b339b4Smrg  $as_echo_n "(cached) " >&6
3360e9554658Smrgelse
33618903d43aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362e9554658Smrg/* end confdefs.h.  */
3363e9554658Smrg
3364e9554658Smrgint
3365e9554658Smrgmain ()
3366e9554658Smrg{
3367e9554658Smrg#ifndef __GNUC__
3368e9554658Smrg       choke me
3369e9554658Smrg#endif
3370e9554658Smrg
3371e9554658Smrg  ;
3372e9554658Smrg  return 0;
3373e9554658Smrg}
3374e9554658Smrg_ACEOF
33758903d43aSmrgif ac_fn_c_try_compile "$LINENO"; then :
3376e9554658Smrg  ac_compiler_gnu=yes
3377e9554658Smrgelse
33788903d43aSmrg  ac_compiler_gnu=no
3379e9554658Smrgfi
3380e9554658Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381e9554658Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3382e9554658Smrg
3383e9554658Smrgfi
33848903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3385c2b339b4Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3386c2b339b4Smrgif test $ac_compiler_gnu = yes; then
3387c2b339b4Smrg  GCC=yes
3388c2b339b4Smrgelse
3389c2b339b4Smrg  GCC=
3390c2b339b4Smrgfi
3391e9554658Smrgac_test_CFLAGS=${CFLAGS+set}
3392e9554658Smrgac_save_CFLAGS=$CFLAGS
33938903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3394c2b339b4Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
33958903d43aSmrgif ${ac_cv_prog_cc_g+:} false; then :
3396c2b339b4Smrg  $as_echo_n "(cached) " >&6
3397e9554658Smrgelse
3398e9554658Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
3399e9554658Smrg   ac_c_werror_flag=yes
3400e9554658Smrg   ac_cv_prog_cc_g=no
3401e9554658Smrg   CFLAGS="-g"
34028903d43aSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403e9554658Smrg/* end confdefs.h.  */
3404e9554658Smrg
3405e9554658Smrgint
3406e9554658Smrgmain ()
3407e9554658Smrg{
3408e9554658Smrg
3409e9554658Smrg  ;
3410e9554658Smrg  return 0;
3411e9554658Smrg}
3412e9554658Smrg_ACEOF
34138903d43aSmrgif ac_fn_c_try_compile "$LINENO"; then :
3414e9554658Smrg  ac_cv_prog_cc_g=yes
3415e9554658Smrgelse
34168903d43aSmrg  CFLAGS=""
34178903d43aSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418e9554658Smrg/* end confdefs.h.  */
3419e9554658Smrg
3420e9554658Smrgint
3421e9554658Smrgmain ()
3422e9554658Smrg{
3423e9554658Smrg
3424e9554658Smrg  ;
3425e9554658Smrg  return 0;
3426e9554658Smrg}
3427e9554658Smrg_ACEOF
34288903d43aSmrgif ac_fn_c_try_compile "$LINENO"; then :
3429e9554658Smrg
34308903d43aSmrgelse
34318903d43aSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
3432e9554658Smrg	 CFLAGS="-g"
34338903d43aSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434e9554658Smrg/* end confdefs.h.  */
3435e9554658Smrg
3436e9554658Smrgint
3437e9554658Smrgmain ()
3438e9554658Smrg{
3439e9554658Smrg
3440e9554658Smrg  ;
3441e9554658Smrg  return 0;
3442e9554658Smrg}
3443e9554658Smrg_ACEOF
34448903d43aSmrgif ac_fn_c_try_compile "$LINENO"; then :
3445e9554658Smrg  ac_cv_prog_cc_g=yes
3446e9554658Smrgfi
3447e9554658Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448e9554658Smrgfi
3449e9554658Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450e9554658Smrgfi
3451e9554658Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452e9554658Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
3453e9554658Smrgfi
34548903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3455c2b339b4Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3456e9554658Smrgif test "$ac_test_CFLAGS" = set; then
3457e9554658Smrg  CFLAGS=$ac_save_CFLAGS
3458e9554658Smrgelif test $ac_cv_prog_cc_g = yes; then
3459e9554658Smrg  if test "$GCC" = yes; then
3460e9554658Smrg    CFLAGS="-g -O2"
3461e9554658Smrg  else
3462e9554658Smrg    CFLAGS="-g"
3463e9554658Smrg  fi
3464e9554658Smrgelse
3465e9554658Smrg  if test "$GCC" = yes; then
3466e9554658Smrg    CFLAGS="-O2"
3467e9554658Smrg  else
3468e9554658Smrg    CFLAGS=
3469e9554658Smrg  fi
3470e9554658Smrgfi
34718903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3472c2b339b4Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
34738903d43aSmrgif ${ac_cv_prog_cc_c89+:} false; then :
3474c2b339b4Smrg  $as_echo_n "(cached) " >&6
3475e9554658Smrgelse
3476e9554658Smrg  ac_cv_prog_cc_c89=no
3477e9554658Smrgac_save_CC=$CC
34788903d43aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479e9554658Smrg/* end confdefs.h.  */
3480e9554658Smrg#include <stdarg.h>
3481e9554658Smrg#include <stdio.h>
3482e9554658Smrg#include <sys/types.h>
3483e9554658Smrg#include <sys/stat.h>
3484e9554658Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3485e9554658Smrgstruct buf { int x; };
3486e9554658SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3487e9554658Smrgstatic char *e (p, i)
3488e9554658Smrg     char **p;
3489e9554658Smrg     int i;
3490e9554658Smrg{
3491e9554658Smrg  return p[i];
3492e9554658Smrg}
3493e9554658Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3494e9554658Smrg{
3495e9554658Smrg  char *s;
3496e9554658Smrg  va_list v;
3497e9554658Smrg  va_start (v,p);
3498e9554658Smrg  s = g (p, va_arg (v,int));
3499e9554658Smrg  va_end (v);
3500e9554658Smrg  return s;
3501e9554658Smrg}
3502e9554658Smrg
3503e9554658Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3504e9554658Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
3505e9554658Smrg   These don't provoke an error unfortunately, instead are silently treated
3506e9554658Smrg   as 'x'.  The following induces an error, until -std is added to get
3507e9554658Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3508e9554658Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
3509e9554658Smrg   that's true only with -std.  */
3510e9554658Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3511e9554658Smrg
3512e9554658Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3513e9554658Smrg   inside strings and character constants.  */
3514e9554658Smrg#define FOO(x) 'x'
3515e9554658Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3516e9554658Smrg
3517e9554658Smrgint test (int i, double x);
3518e9554658Smrgstruct s1 {int (*f) (int a);};
3519e9554658Smrgstruct s2 {int (*f) (double a);};
3520e9554658Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3521e9554658Smrgint argc;
3522e9554658Smrgchar **argv;
3523e9554658Smrgint
3524e9554658Smrgmain ()
3525e9554658Smrg{
3526e9554658Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3527e9554658Smrg  ;
3528e9554658Smrg  return 0;
3529e9554658Smrg}
3530e9554658Smrg_ACEOF
3531e9554658Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3532e9554658Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3533e9554658Smrgdo
3534e9554658Smrg  CC="$ac_save_CC $ac_arg"
35358903d43aSmrg  if ac_fn_c_try_compile "$LINENO"; then :
3536e9554658Smrg  ac_cv_prog_cc_c89=$ac_arg
3537e9554658Smrgfi
3538e9554658Smrgrm -f core conftest.err conftest.$ac_objext
3539e9554658Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3540e9554658Smrgdone
3541e9554658Smrgrm -f conftest.$ac_ext
3542e9554658SmrgCC=$ac_save_CC
3543e9554658Smrg
3544e9554658Smrgfi
3545e9554658Smrg# AC_CACHE_VAL
3546e9554658Smrgcase "x$ac_cv_prog_cc_c89" in
3547e9554658Smrg  x)
35488903d43aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3549c2b339b4Smrg$as_echo "none needed" >&6; } ;;
3550e9554658Smrg  xno)
35518903d43aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3552c2b339b4Smrg$as_echo "unsupported" >&6; } ;;
3553e9554658Smrg  *)
3554e9554658Smrg    CC="$CC $ac_cv_prog_cc_c89"
35558903d43aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3556c2b339b4Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3557e9554658Smrgesac
35588903d43aSmrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3559e9554658Smrg
35608903d43aSmrgfi
3561e9554658Smrg
3562e9554658Smrgac_ext=c
3563e9554658Smrgac_cpp='$CPP $CPPFLAGS'
3564e9554658Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565e9554658Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566e9554658Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3567e9554658Smrg
3568e9554658Smrgdepcc="$CC"   am_compiler_list=
3569e9554658Smrg
35708903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3571c2b339b4Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
35728903d43aSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
3573c2b339b4Smrg  $as_echo_n "(cached) " >&6
3574e9554658Smrgelse
3575e9554658Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3576e9554658Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
3577e9554658Smrg  # making bogus files that we don't know about and never remove.  For
3578e9554658Smrg  # instance it was reported that on HP-UX the gcc test will end up
3579e9554658Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
3580e9554658Smrg  # in D'.
3581e9554658Smrg  mkdir conftest.dir
3582e9554658Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3583e9554658Smrg  # using a relative directory.
3584e9554658Smrg  cp "$am_depcomp" conftest.dir
3585e9554658Smrg  cd conftest.dir
3586e9554658Smrg  # We will build objects and dependencies in a subdirectory because
3587e9554658Smrg  # it helps to detect inapplicable dependency modes.  For instance
3588e9554658Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3589e9554658Smrg  # side effect of compilation, but ICC will put the dependencies in
3590e9554658Smrg  # the current directory while Tru64 will put them in the object
3591e9554658Smrg  # directory.
3592e9554658Smrg  mkdir sub
3593e9554658Smrg
3594e9554658Smrg  am_cv_CC_dependencies_compiler_type=none
3595e9554658Smrg  if test "$am_compiler_list" = ""; then
3596e9554658Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3597e9554658Smrg  fi
3598c2b339b4Smrg  am__universal=false
3599c2b339b4Smrg  case " $depcc " in #(
3600c2b339b4Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3601c2b339b4Smrg     esac
3602c2b339b4Smrg
3603e9554658Smrg  for depmode in $am_compiler_list; do
3604e9554658Smrg    # Setup a source with many dependencies, because some compilers
3605e9554658Smrg    # like to wrap large dependency lists on column 80 (with \), and
3606e9554658Smrg    # we should not choose a depcomp mode which is confused by this.
3607e9554658Smrg    #
3608e9554658Smrg    # We need to recreate these files for each test, as the compiler may
3609e9554658Smrg    # overwrite some of them when testing with obscure command lines.
3610e9554658Smrg    # This happens at least with the AIX C compiler.
3611e9554658Smrg    : > sub/conftest.c
3612e9554658Smrg    for i in 1 2 3 4 5 6; do
3613e9554658Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3614e9554658Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3615e9554658Smrg      # Solaris 8's {/usr,}/bin/sh.
3616e9554658Smrg      touch sub/conftst$i.h
3617e9554658Smrg    done
3618e9554658Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3619e9554658Smrg
3620c2b339b4Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3621c2b339b4Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3622c2b339b4Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
3623c2b339b4Smrg    # versions had trouble with output in subdirs
3624c2b339b4Smrg    am__obj=sub/conftest.${OBJEXT-o}
3625c2b339b4Smrg    am__minus_obj="-o $am__obj"
3626e9554658Smrg    case $depmode in
3627c2b339b4Smrg    gcc)
3628c2b339b4Smrg      # This depmode causes a compiler race in universal mode.
3629c2b339b4Smrg      test "$am__universal" = false || continue
3630c2b339b4Smrg      ;;
3631e9554658Smrg    nosideeffect)
3632e9554658Smrg      # after this tag, mechanisms are not by side-effect, so they'll
3633e9554658Smrg      # only be used when explicitly requested
3634e9554658Smrg      if test "x$enable_dependency_tracking" = xyes; then
3635e9554658Smrg	continue
3636e9554658Smrg      else
3637e9554658Smrg	break
3638e9554658Smrg      fi
3639e9554658Smrg      ;;
3640c2b339b4Smrg    msvisualcpp | msvcmsys)
3641c2b339b4Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
3642c2b339b4Smrg      # not run yet.  These depmodes are late enough in the game, and
3643c2b339b4Smrg      # so weak that their functioning should not be impacted.
3644c2b339b4Smrg      am__obj=conftest.${OBJEXT-o}
3645c2b339b4Smrg      am__minus_obj=
3646c2b339b4Smrg      ;;
3647e9554658Smrg    none) break ;;
3648e9554658Smrg    esac
3649e9554658Smrg    if depmode=$depmode \
3650c2b339b4Smrg       source=sub/conftest.c object=$am__obj \
3651e9554658Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3652c2b339b4Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3653e9554658Smrg         >/dev/null 2>conftest.err &&
3654e9554658Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3655e9554658Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3656c2b339b4Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3657e9554658Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3658e9554658Smrg      # icc doesn't choke on unknown options, it will just issue warnings
3659e9554658Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
3660e9554658Smrg      # that says an option was ignored or not supported.
3661e9554658Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3662e9554658Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3663e9554658Smrg      # The diagnosis changed in icc 8.0:
3664e9554658Smrg      #   icc: Command line remark: option '-MP' not supported
3665e9554658Smrg      if (grep 'ignoring option' conftest.err ||
3666e9554658Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3667e9554658Smrg        am_cv_CC_dependencies_compiler_type=$depmode
3668e9554658Smrg        break
3669e9554658Smrg      fi
3670e9554658Smrg    fi
3671e9554658Smrg  done
3672e9554658Smrg
3673e9554658Smrg  cd ..
3674e9554658Smrg  rm -rf conftest.dir
3675e9554658Smrgelse
3676e9554658Smrg  am_cv_CC_dependencies_compiler_type=none
3677e9554658Smrgfi
3678e9554658Smrg
3679e9554658Smrgfi
36808903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3681c2b339b4Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3682e9554658SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3683e9554658Smrg
3684e9554658Smrg if
3685e9554658Smrg  test "x$enable_dependency_tracking" != xno \
3686e9554658Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3687e9554658Smrg  am__fastdepCC_TRUE=
3688e9554658Smrg  am__fastdepCC_FALSE='#'
3689e9554658Smrgelse
3690e9554658Smrg  am__fastdepCC_TRUE='#'
3691e9554658Smrg  am__fastdepCC_FALSE=
3692e9554658Smrgfi
3693e9554658Smrg
3694e9554658Smrg
36958903d43aSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
36968903d43aSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
36978903d43aSmrgif ${ac_cv_prog_cc_c99+:} false; then :
3698c2b339b4Smrg  $as_echo_n "(cached) " >&6
3699e9554658Smrgelse
37008903d43aSmrg  ac_cv_prog_cc_c99=no
37018903d43aSmrgac_save_CC=$CC
37028903d43aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
37038903d43aSmrg/* end confdefs.h.  */
37048903d43aSmrg#include <stdarg.h>
37058903d43aSmrg#include <stdbool.h>
37068903d43aSmrg#include <stdlib.h>
37078903d43aSmrg#include <wchar.h>
37088903d43aSmrg#include <stdio.h>
3709c2b339b4Smrg
37108903d43aSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
37118903d43aSmrg#define debug(...) fprintf (stderr, __VA_ARGS__)
37128903d43aSmrg#define showlist(...) puts (#__VA_ARGS__)
37138903d43aSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
37148903d43aSmrgstatic void
37158903d43aSmrgtest_varargs_macros (void)
37168903d43aSmrg{
37178903d43aSmrg  int x = 1234;
37188903d43aSmrg  int y = 5678;
37198903d43aSmrg  debug ("Flag");
37208903d43aSmrg  debug ("X = %d\n", x);
37218903d43aSmrg  showlist (The first, second, and third items.);
37228903d43aSmrg  report (x>y, "x is %d but y is %d", x, y);
37238903d43aSmrg}
3724e9554658Smrg
37258903d43aSmrg// Check long long types.
37268903d43aSmrg#define BIG64 18446744073709551615ull
37278903d43aSmrg#define BIG32 4294967295ul
37288903d43aSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
37298903d43aSmrg#if !BIG_OK
37308903d43aSmrg  your preprocessor is broken;
37318903d43aSmrg#endif
37328903d43aSmrg#if BIG_OK
37338903d43aSmrg#else
37348903d43aSmrg  your preprocessor is broken;
37358903d43aSmrg#endif
37368903d43aSmrgstatic long long int bignum = -9223372036854775807LL;
37378903d43aSmrgstatic unsigned long long int ubignum = BIG64;
3738e9554658Smrg
37398903d43aSmrgstruct incomplete_array
37408903d43aSmrg{
37418903d43aSmrg  int datasize;
37428903d43aSmrg  double data[];
37438903d43aSmrg};
3744e9554658Smrg
37458903d43aSmrgstruct named_init {
37468903d43aSmrg  int number;
37478903d43aSmrg  const wchar_t *name;
37488903d43aSmrg  double average;
37498903d43aSmrg};
3750e9554658Smrg
37518903d43aSmrgtypedef const char *ccp;
3752e9554658Smrg
37538903d43aSmrgstatic inline int
37548903d43aSmrgtest_restrict (ccp restrict text)
37558903d43aSmrg{
37568903d43aSmrg  // See if C++-style comments work.
37578903d43aSmrg  // Iterate through items via the restricted pointer.
37588903d43aSmrg  // Also check for declarations in for loops.
37598903d43aSmrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
37608903d43aSmrg    continue;
37618903d43aSmrg  return 0;
37628903d43aSmrg}
3763e9554658Smrg
37648903d43aSmrg// Check varargs and va_copy.
37658903d43aSmrgstatic void
37668903d43aSmrgtest_varargs (const char *format, ...)
37678903d43aSmrg{
37688903d43aSmrg  va_list args;
37698903d43aSmrg  va_start (args, format);
37708903d43aSmrg  va_list args_copy;
37718903d43aSmrg  va_copy (args_copy, args);
3772e9554658Smrg
37738903d43aSmrg  const char *str;
37748903d43aSmrg  int number;
37758903d43aSmrg  float fnumber;
3776e9554658Smrg
37778903d43aSmrg  while (*format)
37788903d43aSmrg    {
37798903d43aSmrg      switch (*format++)
37808903d43aSmrg	{
37818903d43aSmrg	case 's': // string
37828903d43aSmrg	  str = va_arg (args_copy, const char *);
37838903d43aSmrg	  break;
37848903d43aSmrg	case 'd': // int
37858903d43aSmrg	  number = va_arg (args_copy, int);
37868903d43aSmrg	  break;
37878903d43aSmrg	case 'f': // float
37888903d43aSmrg	  fnumber = va_arg (args_copy, double);
37898903d43aSmrg	  break;
37908903d43aSmrg	default:
37918903d43aSmrg	  break;
37928903d43aSmrg	}
37938903d43aSmrg    }
37948903d43aSmrg  va_end (args_copy);
37958903d43aSmrg  va_end (args);
37968903d43aSmrg}
37978903d43aSmrg
37988903d43aSmrgint
37998903d43aSmrgmain ()
38008903d43aSmrg{
38018903d43aSmrg
38028903d43aSmrg  // Check bool.
38038903d43aSmrg  _Bool success = false;
38048903d43aSmrg
38058903d43aSmrg  // Check restrict.
38068903d43aSmrg  if (test_restrict ("String literal") == 0)
38078903d43aSmrg    success = true;
38088903d43aSmrg  char *restrict newvar = "Another string";
38098903d43aSmrg
38108903d43aSmrg  // Check varargs.
38118903d43aSmrg  test_varargs ("s, d' f .", "string", 65, 34.234);
38128903d43aSmrg  test_varargs_macros ();
38138903d43aSmrg
38148903d43aSmrg  // Check flexible array members.
38158903d43aSmrg  struct incomplete_array *ia =
38168903d43aSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
38178903d43aSmrg  ia->datasize = 10;
38188903d43aSmrg  for (int i = 0; i < ia->datasize; ++i)
38198903d43aSmrg    ia->data[i] = i * 1.234;
38208903d43aSmrg
38218903d43aSmrg  // Check named initializers.
38228903d43aSmrg  struct named_init ni = {
38238903d43aSmrg    .number = 34,
38248903d43aSmrg    .name = L"Test wide string",
38258903d43aSmrg    .average = 543.34343,
38268903d43aSmrg  };
38278903d43aSmrg
38288903d43aSmrg  ni.number = 58;
38298903d43aSmrg
38308903d43aSmrg  int dynamic_array[ni.number];
38318903d43aSmrg  dynamic_array[ni.number - 1] = 543;
38328903d43aSmrg
38338903d43aSmrg  // work around unused variable warnings
38348903d43aSmrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
38358903d43aSmrg	  || dynamic_array[ni.number - 1] != 543);
38368903d43aSmrg
38378903d43aSmrg  ;
38388903d43aSmrg  return 0;
38398903d43aSmrg}
38408903d43aSmrg_ACEOF
38418903d43aSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
38428903d43aSmrgdo
38438903d43aSmrg  CC="$ac_save_CC $ac_arg"
38448903d43aSmrg  if ac_fn_c_try_compile "$LINENO"; then :
38458903d43aSmrg  ac_cv_prog_cc_c99=$ac_arg
38468903d43aSmrgfi
38478903d43aSmrgrm -f core conftest.err conftest.$ac_objext
38488903d43aSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
38498903d43aSmrgdone
38508903d43aSmrgrm -f conftest.$ac_ext
38518903d43aSmrgCC=$ac_save_CC
38528903d43aSmrg
38538903d43aSmrgfi
38548903d43aSmrg# AC_CACHE_VAL
38558903d43aSmrgcase "x$ac_cv_prog_cc_c99" in
38568903d43aSmrg  x)
38578903d43aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
38588903d43aSmrg$as_echo "none needed" >&6; } ;;
38598903d43aSmrg  xno)
38608903d43aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
38618903d43aSmrg$as_echo "unsupported" >&6; } ;;
38628903d43aSmrg  *)
38638903d43aSmrg    CC="$CC $ac_cv_prog_cc_c99"
38648903d43aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
38658903d43aSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
38668903d43aSmrgesac
38678903d43aSmrgif test "x$ac_cv_prog_cc_c99" != xno; then :
38688903d43aSmrg
38698903d43aSmrgfi
38708903d43aSmrg
38718903d43aSmrg
38728903d43aSmrg
38738903d43aSmrgac_ext=c
38748903d43aSmrgac_cpp='$CPP $CPPFLAGS'
38758903d43aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38768903d43aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38778903d43aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
38788903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
38798903d43aSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
38808903d43aSmrg# On Suns, sometimes $CPP names a directory.
38818903d43aSmrgif test -n "$CPP" && test -d "$CPP"; then
38828903d43aSmrg  CPP=
38838903d43aSmrgfi
38848903d43aSmrgif test -z "$CPP"; then
38858903d43aSmrg  if ${ac_cv_prog_CPP+:} false; then :
38868903d43aSmrg  $as_echo_n "(cached) " >&6
3887c2b339b4Smrgelse
38888903d43aSmrg      # Double quotes because CPP needs to be expanded
38898903d43aSmrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
38908903d43aSmrg    do
38918903d43aSmrg      ac_preproc_ok=false
38928903d43aSmrgfor ac_c_preproc_warn_flag in '' yes
38938903d43aSmrgdo
38948903d43aSmrg  # Use a header file that comes with gcc, so configuring glibc
38958903d43aSmrg  # with a fresh cross-compiler works.
38968903d43aSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38978903d43aSmrg  # <limits.h> exists even on freestanding compilers.
38988903d43aSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
38998903d43aSmrg  # not just through cpp. "Syntax error" is here to catch this case.
39008903d43aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39018903d43aSmrg/* end confdefs.h.  */
39028903d43aSmrg#ifdef __STDC__
39038903d43aSmrg# include <limits.h>
39048903d43aSmrg#else
39058903d43aSmrg# include <assert.h>
39068903d43aSmrg#endif
39078903d43aSmrg		     Syntax error
39088903d43aSmrg_ACEOF
39098903d43aSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3910c2b339b4Smrg
39118903d43aSmrgelse
3912c2b339b4Smrg  # Broken: fails on valid input.
3913c2b339b4Smrgcontinue
3914c2b339b4Smrgfi
39158903d43aSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3916c2b339b4Smrg
3917c2b339b4Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3918c2b339b4Smrg  # can be detected and how.
39198903d43aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920c2b339b4Smrg/* end confdefs.h.  */
3921c2b339b4Smrg#include <ac_nonexistent.h>
3922c2b339b4Smrg_ACEOF
39238903d43aSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3924c2b339b4Smrg  # Broken: success on invalid input.
3925c2b339b4Smrgcontinue
3926c2b339b4Smrgelse
3927c2b339b4Smrg  # Passes both tests.
3928c2b339b4Smrgac_preproc_ok=:
3929c2b339b4Smrgbreak
3930c2b339b4Smrgfi
39318903d43aSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3932c2b339b4Smrg
3933c2b339b4Smrgdone
3934c2b339b4Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
39358903d43aSmrgrm -f conftest.i conftest.err conftest.$ac_ext
39368903d43aSmrgif $ac_preproc_ok; then :
3937c2b339b4Smrg  break
3938c2b339b4Smrgfi
3939c2b339b4Smrg
3940c2b339b4Smrg    done
3941c2b339b4Smrg    ac_cv_prog_CPP=$CPP
3942c2b339b4Smrg
3943c2b339b4Smrgfi
3944c2b339b4Smrg  CPP=$ac_cv_prog_CPP
3945c2b339b4Smrgelse
3946c2b339b4Smrg  ac_cv_prog_CPP=$CPP
3947c2b339b4Smrgfi
39488903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3949c2b339b4Smrg$as_echo "$CPP" >&6; }
3950c2b339b4Smrgac_preproc_ok=false
3951c2b339b4Smrgfor ac_c_preproc_warn_flag in '' yes
3952c2b339b4Smrgdo
3953c2b339b4Smrg  # Use a header file that comes with gcc, so configuring glibc
3954c2b339b4Smrg  # with a fresh cross-compiler works.
3955c2b339b4Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3956c2b339b4Smrg  # <limits.h> exists even on freestanding compilers.
3957c2b339b4Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3958c2b339b4Smrg  # not just through cpp. "Syntax error" is here to catch this case.
39598903d43aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960c2b339b4Smrg/* end confdefs.h.  */
3961c2b339b4Smrg#ifdef __STDC__
3962c2b339b4Smrg# include <limits.h>
3963c2b339b4Smrg#else
3964c2b339b4Smrg# include <assert.h>
3965c2b339b4Smrg#endif
3966c2b339b4Smrg		     Syntax error
3967c2b339b4Smrg_ACEOF
39688903d43aSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3969c2b339b4Smrg
39708903d43aSmrgelse
3971c2b339b4Smrg  # Broken: fails on valid input.
3972c2b339b4Smrgcontinue
3973c2b339b4Smrgfi
39748903d43aSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3975c2b339b4Smrg
3976c2b339b4Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3977c2b339b4Smrg  # can be detected and how.
39788903d43aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979c2b339b4Smrg/* end confdefs.h.  */
3980c2b339b4Smrg#include <ac_nonexistent.h>
3981c2b339b4Smrg_ACEOF
39828903d43aSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3983c2b339b4Smrg  # Broken: success on invalid input.
3984c2b339b4Smrgcontinue
3985c2b339b4Smrgelse
3986c2b339b4Smrg  # Passes both tests.
3987c2b339b4Smrgac_preproc_ok=:
3988c2b339b4Smrgbreak
3989c2b339b4Smrgfi
39908903d43aSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3991c2b339b4Smrg
3992c2b339b4Smrgdone
3993c2b339b4Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
39948903d43aSmrgrm -f conftest.i conftest.err conftest.$ac_ext
39958903d43aSmrgif $ac_preproc_ok; then :
39968903d43aSmrg
3997c2b339b4Smrgelse
39988903d43aSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
40008903d43aSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
40018903d43aSmrgSee \`config.log' for more details" "$LINENO" 5; }
4002c2b339b4Smrgfi
4003c2b339b4Smrg
4004c2b339b4Smrgac_ext=c
4005c2b339b4Smrgac_cpp='$CPP $CPPFLAGS'
4006c2b339b4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007c2b339b4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008c2b339b4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4009c2b339b4Smrg
4010c2b339b4Smrg
40118903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4012c2b339b4Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
40138903d43aSmrgif ${ac_cv_path_GREP+:} false; then :
4014c2b339b4Smrg  $as_echo_n "(cached) " >&6
4015c2b339b4Smrgelse
4016c2b339b4Smrg  if test -z "$GREP"; then
4017c2b339b4Smrg  ac_path_GREP_found=false
4018c2b339b4Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4019c2b339b4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020c2b339b4Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4021c2b339b4Smrgdo
4022c2b339b4Smrg  IFS=$as_save_IFS
4023c2b339b4Smrg  test -z "$as_dir" && as_dir=.
40248903d43aSmrg    for ac_prog in grep ggrep; do
4025c2b339b4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4026c2b339b4Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4027c2b339b4Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4028c2b339b4Smrg# Check for GNU ac_path_GREP and select it if it is found.
4029c2b339b4Smrg  # Check for GNU $ac_path_GREP
4030c2b339b4Smrgcase `"$ac_path_GREP" --version 2>&1` in
4031c2b339b4Smrg*GNU*)
4032c2b339b4Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4033c2b339b4Smrg*)
4034c2b339b4Smrg  ac_count=0
4035c2b339b4Smrg  $as_echo_n 0123456789 >"conftest.in"
4036c2b339b4Smrg  while :
4037c2b339b4Smrg  do
4038c2b339b4Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4039c2b339b4Smrg    mv "conftest.tmp" "conftest.in"
4040c2b339b4Smrg    cp "conftest.in" "conftest.nl"
4041c2b339b4Smrg    $as_echo 'GREP' >> "conftest.nl"
4042c2b339b4Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4043c2b339b4Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
40448903d43aSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4045c2b339b4Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4046c2b339b4Smrg      # Best one so far, save it but keep looking for a better one
4047c2b339b4Smrg      ac_cv_path_GREP="$ac_path_GREP"
4048c2b339b4Smrg      ac_path_GREP_max=$ac_count
4049c2b339b4Smrg    fi
4050c2b339b4Smrg    # 10*(2^10) chars as input seems more than enough
4051c2b339b4Smrg    test $ac_count -gt 10 && break
4052c2b339b4Smrg  done
4053c2b339b4Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4054c2b339b4Smrgesac
4055c2b339b4Smrg
4056c2b339b4Smrg      $ac_path_GREP_found && break 3
4057c2b339b4Smrg    done
4058c2b339b4Smrg  done
40598903d43aSmrg  done
4060c2b339b4SmrgIFS=$as_save_IFS
4061c2b339b4Smrg  if test -z "$ac_cv_path_GREP"; then
40628903d43aSmrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4063c2b339b4Smrg  fi
4064c2b339b4Smrgelse
4065c2b339b4Smrg  ac_cv_path_GREP=$GREP
4066c2b339b4Smrgfi
4067c2b339b4Smrg
4068c2b339b4Smrgfi
40698903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4070c2b339b4Smrg$as_echo "$ac_cv_path_GREP" >&6; }
4071c2b339b4Smrg GREP="$ac_cv_path_GREP"
4072c2b339b4Smrg
4073c2b339b4Smrg
40748903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4075c2b339b4Smrg$as_echo_n "checking for egrep... " >&6; }
40768903d43aSmrgif ${ac_cv_path_EGREP+:} false; then :
4077c2b339b4Smrg  $as_echo_n "(cached) " >&6
4078c2b339b4Smrgelse
4079c2b339b4Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4080c2b339b4Smrg   then ac_cv_path_EGREP="$GREP -E"
4081c2b339b4Smrg   else
4082c2b339b4Smrg     if test -z "$EGREP"; then
4083c2b339b4Smrg  ac_path_EGREP_found=false
4084c2b339b4Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4085c2b339b4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086c2b339b4Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4087c2b339b4Smrgdo
4088c2b339b4Smrg  IFS=$as_save_IFS
4089c2b339b4Smrg  test -z "$as_dir" && as_dir=.
40908903d43aSmrg    for ac_prog in egrep; do
4091c2b339b4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4092c2b339b4Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4093c2b339b4Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4094c2b339b4Smrg# Check for GNU ac_path_EGREP and select it if it is found.
4095c2b339b4Smrg  # Check for GNU $ac_path_EGREP
4096c2b339b4Smrgcase `"$ac_path_EGREP" --version 2>&1` in
4097c2b339b4Smrg*GNU*)
4098c2b339b4Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4099c2b339b4Smrg*)
4100c2b339b4Smrg  ac_count=0
4101c2b339b4Smrg  $as_echo_n 0123456789 >"conftest.in"
4102c2b339b4Smrg  while :
4103c2b339b4Smrg  do
4104c2b339b4Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4105c2b339b4Smrg    mv "conftest.tmp" "conftest.in"
4106c2b339b4Smrg    cp "conftest.in" "conftest.nl"
4107c2b339b4Smrg    $as_echo 'EGREP' >> "conftest.nl"
4108c2b339b4Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4109c2b339b4Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
41108903d43aSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4111c2b339b4Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4112c2b339b4Smrg      # Best one so far, save it but keep looking for a better one
4113c2b339b4Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
4114c2b339b4Smrg      ac_path_EGREP_max=$ac_count
4115c2b339b4Smrg    fi
4116c2b339b4Smrg    # 10*(2^10) chars as input seems more than enough
4117c2b339b4Smrg    test $ac_count -gt 10 && break
4118c2b339b4Smrg  done
4119c2b339b4Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4120c2b339b4Smrgesac
4121c2b339b4Smrg
4122c2b339b4Smrg      $ac_path_EGREP_found && break 3
4123c2b339b4Smrg    done
4124c2b339b4Smrg  done
41258903d43aSmrg  done
4126c2b339b4SmrgIFS=$as_save_IFS
4127c2b339b4Smrg  if test -z "$ac_cv_path_EGREP"; then
41288903d43aSmrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4129c2b339b4Smrg  fi
4130c2b339b4Smrgelse
4131c2b339b4Smrg  ac_cv_path_EGREP=$EGREP
4132c2b339b4Smrgfi
4133c2b339b4Smrg
4134c2b339b4Smrg   fi
4135c2b339b4Smrgfi
41368903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4137c2b339b4Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
4138c2b339b4Smrg EGREP="$ac_cv_path_EGREP"
4139c2b339b4Smrg
4140c2b339b4Smrg
41418903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4142c2b339b4Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
41438903d43aSmrgif ${ac_cv_header_stdc+:} false; then :
4144c2b339b4Smrg  $as_echo_n "(cached) " >&6
4145c2b339b4Smrgelse
41468903d43aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147c2b339b4Smrg/* end confdefs.h.  */
4148c2b339b4Smrg#include <stdlib.h>
4149c2b339b4Smrg#include <stdarg.h>
4150c2b339b4Smrg#include <string.h>
4151c2b339b4Smrg#include <float.h>
4152c2b339b4Smrg
4153c2b339b4Smrgint
4154c2b339b4Smrgmain ()
4155c2b339b4Smrg{
4156c2b339b4Smrg
4157c2b339b4Smrg  ;
4158c2b339b4Smrg  return 0;
4159c2b339b4Smrg}
4160c2b339b4Smrg_ACEOF
41618903d43aSmrgif ac_fn_c_try_compile "$LINENO"; then :
4162c2b339b4Smrg  ac_cv_header_stdc=yes
4163c2b339b4Smrgelse
41648903d43aSmrg  ac_cv_header_stdc=no
4165c2b339b4Smrgfi
4166c2b339b4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167c2b339b4Smrg
4168c2b339b4Smrgif test $ac_cv_header_stdc = yes; then
4169c2b339b4Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
41708903d43aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171c2b339b4Smrg/* end confdefs.h.  */
4172c2b339b4Smrg#include <string.h>
4173c2b339b4Smrg
4174c2b339b4Smrg_ACEOF
4175c2b339b4Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41768903d43aSmrg  $EGREP "memchr" >/dev/null 2>&1; then :
41778903d43aSmrg
4178c2b339b4Smrgelse
4179c2b339b4Smrg  ac_cv_header_stdc=no
4180c2b339b4Smrgfi
4181c2b339b4Smrgrm -f conftest*
4182c2b339b4Smrg
4183c2b339b4Smrgfi
4184c2b339b4Smrg
4185c2b339b4Smrgif test $ac_cv_header_stdc = yes; then
4186c2b339b4Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
41878903d43aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188c2b339b4Smrg/* end confdefs.h.  */
4189c2b339b4Smrg#include <stdlib.h>
4190c2b339b4Smrg
4191c2b339b4Smrg_ACEOF
4192c2b339b4Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41938903d43aSmrg  $EGREP "free" >/dev/null 2>&1; then :
41948903d43aSmrg
4195c2b339b4Smrgelse
4196c2b339b4Smrg  ac_cv_header_stdc=no
4197c2b339b4Smrgfi
4198c2b339b4Smrgrm -f conftest*
4199c2b339b4Smrg
4200c2b339b4Smrgfi
4201c2b339b4Smrg
4202c2b339b4Smrgif test $ac_cv_header_stdc = yes; then
4203c2b339b4Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
42048903d43aSmrg  if test "$cross_compiling" = yes; then :
4205c2b339b4Smrg  :
4206c2b339b4Smrgelse
42078903d43aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208c2b339b4Smrg/* end confdefs.h.  */
4209c2b339b4Smrg#include <ctype.h>
4210c2b339b4Smrg#include <stdlib.h>
4211c2b339b4Smrg#if ((' ' & 0x0FF) == 0x020)
4212c2b339b4Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4213c2b339b4Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4214c2b339b4Smrg#else
4215c2b339b4Smrg# define ISLOWER(c) \
4216c2b339b4Smrg		   (('a' <= (c) && (c) <= 'i') \
4217c2b339b4Smrg		     || ('j' <= (c) && (c) <= 'r') \
4218c2b339b4Smrg		     || ('s' <= (c) && (c) <= 'z'))
4219c2b339b4Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4220c2b339b4Smrg#endif
4221c2b339b4Smrg
4222c2b339b4Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4223c2b339b4Smrgint
4224c2b339b4Smrgmain ()
4225c2b339b4Smrg{
4226c2b339b4Smrg  int i;
4227c2b339b4Smrg  for (i = 0; i < 256; i++)
4228c2b339b4Smrg    if (XOR (islower (i), ISLOWER (i))
4229c2b339b4Smrg	|| toupper (i) != TOUPPER (i))
4230c2b339b4Smrg      return 2;
4231c2b339b4Smrg  return 0;
4232c2b339b4Smrg}
4233c2b339b4Smrg_ACEOF
42348903d43aSmrgif ac_fn_c_try_run "$LINENO"; then :
4235c2b339b4Smrg
42368903d43aSmrgelse
42378903d43aSmrg  ac_cv_header_stdc=no
4238c2b339b4Smrgfi
42398903d43aSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42408903d43aSmrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
4241c2b339b4Smrgfi
4242c2b339b4Smrg
4243c2b339b4Smrgfi
4244c2b339b4Smrgfi
42458903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4246c2b339b4Smrg$as_echo "$ac_cv_header_stdc" >&6; }
4247c2b339b4Smrgif test $ac_cv_header_stdc = yes; then
4248c2b339b4Smrg
42498903d43aSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4250c2b339b4Smrg
4251c2b339b4Smrgfi
4252c2b339b4Smrg
4253c2b339b4Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4254c2b339b4Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4255c2b339b4Smrg		  inttypes.h stdint.h unistd.h
42568903d43aSmrgdo :
42578903d43aSmrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42588903d43aSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
42598903d43aSmrg"
42608903d43aSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4261c2b339b4Smrg  cat >>confdefs.h <<_ACEOF
4262c2b339b4Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4263c2b339b4Smrg_ACEOF
4264c2b339b4Smrg
4265c2b339b4Smrgfi
4266c2b339b4Smrg
4267c2b339b4Smrgdone
4268c2b339b4Smrg
4269c2b339b4Smrg
42708903d43aSmrg
42718903d43aSmrg
4272309c398aSmrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4273309c398aSmrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
4274309c398aSmrg  CLANGCC="yes"
4275309c398aSmrgelse
4276309c398aSmrg  CLANGCC="no"
4277309c398aSmrgfi
4278309c398aSmrg
4279309c398aSmrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4280309c398aSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4281309c398aSmrg  INTELCC="yes"
4282309c398aSmrgelse
4283309c398aSmrg  INTELCC="no"
4284309c398aSmrgfi
4285309c398aSmrg
4286309c398aSmrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4287309c398aSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4288309c398aSmrg  SUNCC="yes"
4289309c398aSmrgelse
4290309c398aSmrg  SUNCC="no"
4291309c398aSmrgfi
4292309c398aSmrg
4293309c398aSmrg
4294309c398aSmrg
4295309c398aSmrg
42968903d43aSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
42978903d43aSmrg	if test -n "$ac_tool_prefix"; then
42988903d43aSmrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
42998903d43aSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43008903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43018903d43aSmrg$as_echo_n "checking for $ac_word... " >&6; }
43028903d43aSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
4303c2b339b4Smrg  $as_echo_n "(cached) " >&6
4304c2b339b4Smrgelse
43058903d43aSmrg  case $PKG_CONFIG in
43068903d43aSmrg  [\\/]* | ?:[\\/]*)
43078903d43aSmrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
43088903d43aSmrg  ;;
43098903d43aSmrg  *)
43108903d43aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43118903d43aSmrgfor as_dir in $PATH
4312c2b339b4Smrgdo
43138903d43aSmrg  IFS=$as_save_IFS
43148903d43aSmrg  test -z "$as_dir" && as_dir=.
43158903d43aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
43168903d43aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43178903d43aSmrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43188903d43aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43198903d43aSmrg    break 2
43208903d43aSmrg  fi
43218903d43aSmrgdone
43228903d43aSmrg  done
43238903d43aSmrgIFS=$as_save_IFS
43248903d43aSmrg
43258903d43aSmrg  ;;
4326c2b339b4Smrgesac
43278903d43aSmrgfi
43288903d43aSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
43298903d43aSmrgif test -n "$PKG_CONFIG"; then
43308903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
43318903d43aSmrg$as_echo "$PKG_CONFIG" >&6; }
4332c2b339b4Smrgelse
43338903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43348903d43aSmrg$as_echo "no" >&6; }
4335c2b339b4Smrgfi
4336c2b339b4Smrg
4337c2b339b4Smrg
4338c2b339b4Smrgfi
43398903d43aSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then
43408903d43aSmrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
43418903d43aSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
43428903d43aSmrgset dummy pkg-config; ac_word=$2
43438903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43448903d43aSmrg$as_echo_n "checking for $ac_word... " >&6; }
43458903d43aSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
43468903d43aSmrg  $as_echo_n "(cached) " >&6
43478903d43aSmrgelse
43488903d43aSmrg  case $ac_pt_PKG_CONFIG in
43498903d43aSmrg  [\\/]* | ?:[\\/]*)
43508903d43aSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
43518903d43aSmrg  ;;
4352c2b339b4Smrg  *)
43538903d43aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43548903d43aSmrgfor as_dir in $PATH
43558903d43aSmrgdo
43568903d43aSmrg  IFS=$as_save_IFS
43578903d43aSmrg  test -z "$as_dir" && as_dir=.
43588903d43aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
43598903d43aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43608903d43aSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43618903d43aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43628903d43aSmrg    break 2
43638903d43aSmrg  fi
43648903d43aSmrgdone
43658903d43aSmrg  done
43668903d43aSmrgIFS=$as_save_IFS
43678903d43aSmrg
43688903d43aSmrg  ;;
4369c2b339b4Smrgesac
43708903d43aSmrgfi
43718903d43aSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
43728903d43aSmrgif test -n "$ac_pt_PKG_CONFIG"; then
43738903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
43748903d43aSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
43758903d43aSmrgelse
43768903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43778903d43aSmrg$as_echo "no" >&6; }
43788903d43aSmrgfi
4379c2b339b4Smrg
43808903d43aSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
43818903d43aSmrg    PKG_CONFIG=""
43828903d43aSmrg  else
43838903d43aSmrg    case $cross_compiling:$ac_tool_warned in
43848903d43aSmrgyes:)
43858903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
43868903d43aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43878903d43aSmrgac_tool_warned=yes ;;
43888903d43aSmrgesac
43898903d43aSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
43908903d43aSmrg  fi
43918903d43aSmrgelse
43928903d43aSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
43938903d43aSmrgfi
4394c2b339b4Smrg
43958903d43aSmrgfi
43968903d43aSmrgif test -n "$PKG_CONFIG"; then
43978903d43aSmrg	_pkg_min_version=0.9.0
43988903d43aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
43998903d43aSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
44008903d43aSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44018903d43aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44028903d43aSmrg$as_echo "yes" >&6; }
44038903d43aSmrg	else
44048903d43aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44058903d43aSmrg$as_echo "no" >&6; }
44068903d43aSmrg		PKG_CONFIG=""
44078903d43aSmrg	fi
4408c2b339b4Smrg
44098903d43aSmrgfi
4410c2b339b4Smrg# Make sure we can run config.sub.
4411c2b339b4Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
44128903d43aSmrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4413c2b339b4Smrg
44148903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4415c2b339b4Smrg$as_echo_n "checking build system type... " >&6; }
44168903d43aSmrgif ${ac_cv_build+:} false; then :
4417c2b339b4Smrg  $as_echo_n "(cached) " >&6
4418c2b339b4Smrgelse
4419c2b339b4Smrg  ac_build_alias=$build_alias
4420c2b339b4Smrgtest "x$ac_build_alias" = x &&
4421c2b339b4Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4422c2b339b4Smrgtest "x$ac_build_alias" = x &&
44238903d43aSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4424c2b339b4Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
44258903d43aSmrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4426c2b339b4Smrg
4427c2b339b4Smrgfi
44288903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4429c2b339b4Smrg$as_echo "$ac_cv_build" >&6; }
4430c2b339b4Smrgcase $ac_cv_build in
4431c2b339b4Smrg*-*-*) ;;
44328903d43aSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4433c2b339b4Smrgesac
4434c2b339b4Smrgbuild=$ac_cv_build
4435c2b339b4Smrgac_save_IFS=$IFS; IFS='-'
4436c2b339b4Smrgset x $ac_cv_build
4437c2b339b4Smrgshift
4438c2b339b4Smrgbuild_cpu=$1
4439c2b339b4Smrgbuild_vendor=$2
4440c2b339b4Smrgshift; shift
4441c2b339b4Smrg# Remember, the first character of IFS is used to create $*,
4442c2b339b4Smrg# except with old shells:
4443c2b339b4Smrgbuild_os=$*
4444c2b339b4SmrgIFS=$ac_save_IFS
4445c2b339b4Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4446c2b339b4Smrg
4447c2b339b4Smrg
44488903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4449c2b339b4Smrg$as_echo_n "checking host system type... " >&6; }
44508903d43aSmrgif ${ac_cv_host+:} false; then :
4451c2b339b4Smrg  $as_echo_n "(cached) " >&6
4452c2b339b4Smrgelse
4453c2b339b4Smrg  if test "x$host_alias" = x; then
4454c2b339b4Smrg  ac_cv_host=$ac_cv_build
4455c2b339b4Smrgelse
4456c2b339b4Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
44578903d43aSmrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4458c2b339b4Smrgfi
4459c2b339b4Smrg
4460c2b339b4Smrgfi
44618903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4462c2b339b4Smrg$as_echo "$ac_cv_host" >&6; }
4463c2b339b4Smrgcase $ac_cv_host in
4464c2b339b4Smrg*-*-*) ;;
44658903d43aSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4466c2b339b4Smrgesac
4467c2b339b4Smrghost=$ac_cv_host
4468c2b339b4Smrgac_save_IFS=$IFS; IFS='-'
4469c2b339b4Smrgset x $ac_cv_host
4470c2b339b4Smrgshift
4471c2b339b4Smrghost_cpu=$1
4472c2b339b4Smrghost_vendor=$2
4473c2b339b4Smrgshift; shift
4474c2b339b4Smrg# Remember, the first character of IFS is used to create $*,
4475c2b339b4Smrg# except with old shells:
4476c2b339b4Smrghost_os=$*
4477c2b339b4SmrgIFS=$ac_save_IFS
4478c2b339b4Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4479c2b339b4Smrg
4480c2b339b4Smrg
44818903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
44828903d43aSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
44838903d43aSmrgif ${ac_cv_path_SED+:} false; then :
4484c2b339b4Smrg  $as_echo_n "(cached) " >&6
4485c2b339b4Smrgelse
44868903d43aSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
44878903d43aSmrg     for ac_i in 1 2 3 4 5 6 7; do
44888903d43aSmrg       ac_script="$ac_script$as_nl$ac_script"
44898903d43aSmrg     done
44908903d43aSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
44918903d43aSmrg     { ac_script=; unset ac_script;}
44928903d43aSmrg     if test -z "$SED"; then
44938903d43aSmrg  ac_path_SED_found=false
44948903d43aSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
44958903d43aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44968903d43aSmrgfor as_dir in $PATH
44978903d43aSmrgdo
44988903d43aSmrg  IFS=$as_save_IFS
44998903d43aSmrg  test -z "$as_dir" && as_dir=.
45008903d43aSmrg    for ac_prog in sed gsed; do
45018903d43aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
45028903d43aSmrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
45038903d43aSmrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
45048903d43aSmrg# Check for GNU ac_path_SED and select it if it is found.
45058903d43aSmrg  # Check for GNU $ac_path_SED
45068903d43aSmrgcase `"$ac_path_SED" --version 2>&1` in
45078903d43aSmrg*GNU*)
45088903d43aSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
45098903d43aSmrg*)
45108903d43aSmrg  ac_count=0
45118903d43aSmrg  $as_echo_n 0123456789 >"conftest.in"
45128903d43aSmrg  while :
45138903d43aSmrg  do
45148903d43aSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
45158903d43aSmrg    mv "conftest.tmp" "conftest.in"
45168903d43aSmrg    cp "conftest.in" "conftest.nl"
45178903d43aSmrg    $as_echo '' >> "conftest.nl"
45188903d43aSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
45198903d43aSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
45208903d43aSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
45218903d43aSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
45228903d43aSmrg      # Best one so far, save it but keep looking for a better one
45238903d43aSmrg      ac_cv_path_SED="$ac_path_SED"
45248903d43aSmrg      ac_path_SED_max=$ac_count
45258903d43aSmrg    fi
45268903d43aSmrg    # 10*(2^10) chars as input seems more than enough
45278903d43aSmrg    test $ac_count -gt 10 && break
45288903d43aSmrg  done
45298903d43aSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4530c2b339b4Smrgesac
4531c2b339b4Smrg
45328903d43aSmrg      $ac_path_SED_found && break 3
45338903d43aSmrg    done
45348903d43aSmrg  done
45358903d43aSmrg  done
45368903d43aSmrgIFS=$as_save_IFS
45378903d43aSmrg  if test -z "$ac_cv_path_SED"; then
45388903d43aSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
45398903d43aSmrg  fi
45408903d43aSmrgelse
45418903d43aSmrg  ac_cv_path_SED=$SED
4542c2b339b4Smrgfi
4543c2b339b4Smrg
4544c2b339b4Smrgfi
45458903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
45468903d43aSmrg$as_echo "$ac_cv_path_SED" >&6; }
45478903d43aSmrg SED="$ac_cv_path_SED"
45488903d43aSmrg  rm -f conftest.sed
45498903d43aSmrg
45508903d43aSmrg
45518903d43aSmrg
45528903d43aSmrg
45538903d43aSmrg
4554309c398aSmrg
4555309c398aSmrg# Check whether --enable-selective-werror was given.
4556309c398aSmrgif test "${enable_selective_werror+set}" = set; then :
4557309c398aSmrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4558c2b339b4Smrgelse
4559309c398aSmrg  SELECTIVE_WERROR=yes
4560c2b339b4Smrgfi
4561c2b339b4Smrg
4562309c398aSmrg
4563309c398aSmrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
4564309c398aSmrgif test "x$SUNCC" = "xyes"; then
4565309c398aSmrg    BASE_CFLAGS="-v"
4566309c398aSmrgelse
4567309c398aSmrg    BASE_CFLAGS=""
4568c2b339b4Smrgfi
4569c2b339b4Smrg
4570309c398aSmrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4571c2b339b4Smrg
4572c2b339b4Smrg
4573c2b339b4Smrg
4574c2b339b4Smrg
4575c2b339b4Smrg
4576309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
4577c2b339b4Smrg
4578309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
4579309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4580309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4581309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4582309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4583309c398aSmrg  $as_echo_n "(cached) " >&6
4584c2b339b4Smrgelse
4585309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586309c398aSmrg/* end confdefs.h.  */
4587309c398aSmrgint i;
4588309c398aSmrg_ACEOF
4589309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
4590309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
4591c2b339b4Smrgelse
4592309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
4593309c398aSmrgfi
4594309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595309c398aSmrgfi
4596309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4597309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4598309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4599309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4600c2b339b4Smrgfi
4601c2b339b4Smrg
4602309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4603309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4604309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4605c2b339b4Smrg	fi
4606309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4607309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4608309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4609309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4610309c398aSmrg  $as_echo_n "(cached) " >&6
4611309c398aSmrgelse
4612309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613309c398aSmrg/* end confdefs.h.  */
4614309c398aSmrgint i;
4615309c398aSmrg_ACEOF
4616309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
4617309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
4618309c398aSmrgelse
4619309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
4620309c398aSmrgfi
4621309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622309c398aSmrgfi
4623309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4624309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4625309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4626309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4627c2b339b4Smrgfi
4628c2b339b4Smrg
4629309c398aSmrgfound="no"
4630c2b339b4Smrg
4631309c398aSmrg	if test $found = "no" ; then
4632309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4633309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4634309c398aSmrg		fi
4635c2b339b4Smrg
4636309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4637309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4638309c398aSmrg		fi
4639c2b339b4Smrg
4640309c398aSmrg		CFLAGS="$CFLAGS -Wall"
4641c2b339b4Smrg
4642309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4643309c398aSmrg$as_echo_n "checking if $CC supports -Wall... " >&6; }
4644309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wall`
4645309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4646309c398aSmrg  $as_echo_n "(cached) " >&6
4647309c398aSmrgelse
4648309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649309c398aSmrg/* end confdefs.h.  */
4650309c398aSmrgint i;
4651309c398aSmrgint
4652309c398aSmrgmain ()
4653309c398aSmrg{
4654c2b339b4Smrg
4655309c398aSmrg  ;
4656309c398aSmrg  return 0;
4657309c398aSmrg}
4658c2b339b4Smrg_ACEOF
4659309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
4660309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4661309c398aSmrgelse
4662309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4663309c398aSmrgfi
4664309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
4665309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
4666309c398aSmrgfi
4667c2b339b4Smrg
4668309c398aSmrg
4669309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
4670309c398aSmrg
4671309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4672309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4673309c398aSmrg$as_echo "$supported" >&6; }
4674309c398aSmrg		if test "$supported" = "yes" ; then
4675309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4676309c398aSmrg			found="yes"
4677309c398aSmrg		fi
4678c2b339b4Smrg	fi
4679c2b339b4Smrg
4680c2b339b4Smrg
4681c2b339b4Smrg
4682c2b339b4Smrg
4683c2b339b4Smrg
46848903d43aSmrg
46858903d43aSmrg
4686309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
46878903d43aSmrg
4688309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
4689309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4690309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4691309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4692309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4693309c398aSmrg  $as_echo_n "(cached) " >&6
4694309c398aSmrgelse
4695309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696309c398aSmrg/* end confdefs.h.  */
4697309c398aSmrgint i;
4698309c398aSmrg_ACEOF
4699309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
4700309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
4701309c398aSmrgelse
4702309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
4703309c398aSmrgfi
4704309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705309c398aSmrgfi
4706309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4707309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4708309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4709309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4710309c398aSmrgfi
47118903d43aSmrg
4712309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4713309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4714309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4715309c398aSmrg	fi
4716309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4717309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4718309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4719309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4720309c398aSmrg  $as_echo_n "(cached) " >&6
4721309c398aSmrgelse
4722309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723309c398aSmrg/* end confdefs.h.  */
4724309c398aSmrgint i;
4725309c398aSmrg_ACEOF
4726309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
4727309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
4728309c398aSmrgelse
4729309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
4730309c398aSmrgfi
4731309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732309c398aSmrgfi
4733309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4734309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4735309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4736309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4737309c398aSmrgfi
4738c2b339b4Smrg
4739309c398aSmrgfound="no"
4740c2b339b4Smrg
4741309c398aSmrg	if test $found = "no" ; then
4742309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4743309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4744309c398aSmrg		fi
4745c2b339b4Smrg
4746309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4747309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4748309c398aSmrg		fi
4749c2b339b4Smrg
4750309c398aSmrg		CFLAGS="$CFLAGS -Wpointer-arith"
4751c2b339b4Smrg
4752309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4753309c398aSmrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4754309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-arith`
4755309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4756309c398aSmrg  $as_echo_n "(cached) " >&6
4757309c398aSmrgelse
4758309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759309c398aSmrg/* end confdefs.h.  */
4760309c398aSmrgint i;
4761309c398aSmrgint
4762309c398aSmrgmain ()
4763309c398aSmrg{
4764c2b339b4Smrg
4765309c398aSmrg  ;
4766309c398aSmrg  return 0;
4767309c398aSmrg}
4768309c398aSmrg_ACEOF
4769309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
4770309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4771309c398aSmrgelse
4772309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4773c2b339b4Smrgfi
4774309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
4775309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
4776c2b339b4Smrgfi
4777c2b339b4Smrg
4778c2b339b4Smrg
4779309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
4780c2b339b4Smrg
4781309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4782309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4783309c398aSmrg$as_echo "$supported" >&6; }
4784309c398aSmrg		if test "$supported" = "yes" ; then
4785309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4786309c398aSmrg			found="yes"
4787309c398aSmrg		fi
4788309c398aSmrg	fi
4789c2b339b4Smrg
4790c2b339b4Smrg
4791c2b339b4Smrg
4792c2b339b4Smrg
4793c2b339b4Smrg
4794c2b339b4Smrg
4795c2b339b4Smrg
4796309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
4797c2b339b4Smrg
4798309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
4799309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4800309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4801309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4802309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4803309c398aSmrg  $as_echo_n "(cached) " >&6
4804309c398aSmrgelse
4805309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806309c398aSmrg/* end confdefs.h.  */
4807309c398aSmrgint i;
4808309c398aSmrg_ACEOF
4809309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
4810309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
4811309c398aSmrgelse
4812309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
4813309c398aSmrgfi
4814309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815309c398aSmrgfi
4816309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4817309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4818309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4819309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4820309c398aSmrgfi
4821c2b339b4Smrg
4822309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4823309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4824309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4825309c398aSmrg	fi
4826309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4827309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4828309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4829309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4830309c398aSmrg  $as_echo_n "(cached) " >&6
4831309c398aSmrgelse
4832309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833309c398aSmrg/* end confdefs.h.  */
4834309c398aSmrgint i;
4835309c398aSmrg_ACEOF
4836309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
4837309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
4838309c398aSmrgelse
4839309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
4840309c398aSmrgfi
4841309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842309c398aSmrgfi
4843309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4844309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4845309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4846309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4847309c398aSmrgfi
4848c2b339b4Smrg
4849309c398aSmrgfound="no"
4850c2b339b4Smrg
4851309c398aSmrg	if test $found = "no" ; then
4852309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4853309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4854309c398aSmrg		fi
4855c2b339b4Smrg
4856309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4857309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4858309c398aSmrg		fi
4859c2b339b4Smrg
4860309c398aSmrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
4861c2b339b4Smrg
4862309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4863309c398aSmrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4864309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wstrict-prototypes`
4865309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4866309c398aSmrg  $as_echo_n "(cached) " >&6
4867309c398aSmrgelse
4868309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869309c398aSmrg/* end confdefs.h.  */
4870309c398aSmrgint i;
4871309c398aSmrgint
4872309c398aSmrgmain ()
4873309c398aSmrg{
4874c2b339b4Smrg
4875309c398aSmrg  ;
4876309c398aSmrg  return 0;
4877309c398aSmrg}
4878309c398aSmrg_ACEOF
4879309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
4880309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4881309c398aSmrgelse
4882309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4883309c398aSmrgfi
4884309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
4885309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
4886309c398aSmrgfi
4887c2b339b4Smrg
4888c2b339b4Smrg
4889309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
4890c2b339b4Smrg
4891309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4892309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4893309c398aSmrg$as_echo "$supported" >&6; }
4894309c398aSmrg		if test "$supported" = "yes" ; then
4895309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4896309c398aSmrg			found="yes"
4897309c398aSmrg		fi
4898309c398aSmrg	fi
4899c2b339b4Smrg
4900c2b339b4Smrg
4901c2b339b4Smrg
4902c2b339b4Smrg
4903c2b339b4Smrg
4904c2b339b4Smrg
4905e9554658Smrg
4906309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
49078903d43aSmrg
4908309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
4909309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4910309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4911309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4912309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
49138903d43aSmrg  $as_echo_n "(cached) " >&6
4914e9554658Smrgelse
4915309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916309c398aSmrg/* end confdefs.h.  */
4917309c398aSmrgint i;
4918309c398aSmrg_ACEOF
4919309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
4920309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
49218903d43aSmrgelse
4922309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
49238903d43aSmrgfi
4924309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49258903d43aSmrgfi
4926309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4927309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4928309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4929309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
49308903d43aSmrgfi
4931e9554658Smrg
4932309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4933309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4934309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4935309c398aSmrg	fi
4936309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4937309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4938309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4939309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
49408903d43aSmrg  $as_echo_n "(cached) " >&6
49418903d43aSmrgelse
4942309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943309c398aSmrg/* end confdefs.h.  */
4944309c398aSmrgint i;
4945309c398aSmrg_ACEOF
4946309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
4947309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
49488903d43aSmrgelse
4949309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
49508903d43aSmrgfi
4951309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49528903d43aSmrgfi
4953309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4954309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4955309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4956309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
49578903d43aSmrgfi
49588903d43aSmrg
4959309c398aSmrgfound="no"
49608903d43aSmrg
4961309c398aSmrg	if test $found = "no" ; then
4962309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4963309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4964309c398aSmrg		fi
4965309c398aSmrg
4966309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4967309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4968309c398aSmrg		fi
4969309c398aSmrg
4970309c398aSmrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
4971309c398aSmrg
4972309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4973309c398aSmrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4974309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-prototypes`
4975309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
49768903d43aSmrg  $as_echo_n "(cached) " >&6
49778903d43aSmrgelse
4978309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979309c398aSmrg/* end confdefs.h.  */
4980309c398aSmrgint i;
4981309c398aSmrgint
4982309c398aSmrgmain ()
4983309c398aSmrg{
49848903d43aSmrg
4985309c398aSmrg  ;
4986309c398aSmrg  return 0;
4987309c398aSmrg}
4988309c398aSmrg_ACEOF
4989309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
4990309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
49918903d43aSmrgelse
4992309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4993309c398aSmrgfi
4994309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
4995309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
49968903d43aSmrgfi
49978903d43aSmrg
49988903d43aSmrg
4999309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5000309c398aSmrg
5001309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5002309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5003309c398aSmrg$as_echo "$supported" >&6; }
5004309c398aSmrg		if test "$supported" = "yes" ; then
5005309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5006309c398aSmrg			found="yes"
5007309c398aSmrg		fi
5008309c398aSmrg	fi
5009309c398aSmrg
5010309c398aSmrg
5011309c398aSmrg
5012309c398aSmrg
5013309c398aSmrg
5014309c398aSmrg
5015309c398aSmrg
5016309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5017309c398aSmrg
5018309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
5019309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5020309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5021309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5022309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
50238903d43aSmrg  $as_echo_n "(cached) " >&6
50248903d43aSmrgelse
5025309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026309c398aSmrg/* end confdefs.h.  */
5027309c398aSmrgint i;
5028309c398aSmrg_ACEOF
5029309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
5030309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
50318903d43aSmrgelse
5032309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
50338903d43aSmrgfi
5034309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50358903d43aSmrgfi
5036309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5037309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5038309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5039309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
50408903d43aSmrgfi
50418903d43aSmrg
5042309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5043309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5044309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5045309c398aSmrg	fi
5046309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5047309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5048309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5049309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
50508903d43aSmrg  $as_echo_n "(cached) " >&6
50518903d43aSmrgelse
5052309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053309c398aSmrg/* end confdefs.h.  */
5054309c398aSmrgint i;
5055309c398aSmrg_ACEOF
5056309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
5057309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
50588903d43aSmrgelse
5059309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
50608903d43aSmrgfi
5061309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50628903d43aSmrgfi
5063309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5064309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5065309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5066309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
50678903d43aSmrgfi
50688903d43aSmrg
5069309c398aSmrgfound="no"
50708903d43aSmrg
5071309c398aSmrg	if test $found = "no" ; then
5072309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5073309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5074309c398aSmrg		fi
5075309c398aSmrg
5076309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5077309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5078309c398aSmrg		fi
5079309c398aSmrg
5080309c398aSmrg		CFLAGS="$CFLAGS -Wmissing-declarations"
5081309c398aSmrg
5082309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5083309c398aSmrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5084309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-declarations`
5085309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
50868903d43aSmrg  $as_echo_n "(cached) " >&6
50878903d43aSmrgelse
5088309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089309c398aSmrg/* end confdefs.h.  */
5090309c398aSmrgint i;
5091309c398aSmrgint
5092309c398aSmrgmain ()
5093309c398aSmrg{
50948903d43aSmrg
5095309c398aSmrg  ;
5096309c398aSmrg  return 0;
5097309c398aSmrg}
5098309c398aSmrg_ACEOF
5099309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
5100309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
51018903d43aSmrgelse
5102309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5103309c398aSmrgfi
5104309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
5105309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
51068903d43aSmrgfi
51078903d43aSmrg
51088903d43aSmrg
5109309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
51108903d43aSmrg
5111309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5112309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5113309c398aSmrg$as_echo "$supported" >&6; }
5114309c398aSmrg		if test "$supported" = "yes" ; then
5115309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5116309c398aSmrg			found="yes"
5117309c398aSmrg		fi
5118309c398aSmrg	fi
5119309c398aSmrg
5120309c398aSmrg
5121309c398aSmrg
5122309c398aSmrg
5123309c398aSmrg
5124309c398aSmrg
5125309c398aSmrg
5126309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5127309c398aSmrg
5128309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
5129309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5130309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5131309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5132309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5133309c398aSmrg  $as_echo_n "(cached) " >&6
5134309c398aSmrgelse
5135309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136309c398aSmrg/* end confdefs.h.  */
5137309c398aSmrgint i;
5138309c398aSmrg_ACEOF
5139309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
5140309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5141309c398aSmrgelse
5142309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5143309c398aSmrgfi
5144309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145309c398aSmrgfi
5146309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5147309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5148309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5149309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
51508903d43aSmrgfi
51518903d43aSmrg
5152309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5153309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5154309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5155309c398aSmrg	fi
5156309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5157309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5158309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5159309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5160309c398aSmrg  $as_echo_n "(cached) " >&6
5161309c398aSmrgelse
5162309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163309c398aSmrg/* end confdefs.h.  */
5164309c398aSmrgint i;
5165309c398aSmrg_ACEOF
5166309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
5167309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5168309c398aSmrgelse
5169309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5170309c398aSmrgfi
5171309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172309c398aSmrgfi
5173309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5174309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5175309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5176309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
51778903d43aSmrgfi
51788903d43aSmrg
5179309c398aSmrgfound="no"
51808903d43aSmrg
5181309c398aSmrg	if test $found = "no" ; then
5182309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5183309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5184309c398aSmrg		fi
51858903d43aSmrg
5186309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5187309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5188309c398aSmrg		fi
51898903d43aSmrg
5190309c398aSmrg		CFLAGS="$CFLAGS -Wnested-externs"
5191309c398aSmrg
5192309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5193309c398aSmrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5194309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnested-externs`
5195309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
51968903d43aSmrg  $as_echo_n "(cached) " >&6
51978903d43aSmrgelse
51988903d43aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51998903d43aSmrg/* end confdefs.h.  */
5200309c398aSmrgint i;
52018903d43aSmrgint
52028903d43aSmrgmain ()
52038903d43aSmrg{
52048903d43aSmrg
52058903d43aSmrg  ;
52068903d43aSmrg  return 0;
52078903d43aSmrg}
52088903d43aSmrg_ACEOF
5209309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
5210309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5211309c398aSmrgelse
5212309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5213309c398aSmrgfi
5214309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
5215309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
5216309c398aSmrgfi
5217309c398aSmrg
5218309c398aSmrg
5219309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5220309c398aSmrg
5221309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5222309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5223309c398aSmrg$as_echo "$supported" >&6; }
5224309c398aSmrg		if test "$supported" = "yes" ; then
5225309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5226309c398aSmrg			found="yes"
5227309c398aSmrg		fi
5228309c398aSmrg	fi
5229309c398aSmrg
5230309c398aSmrg
5231309c398aSmrg
5232309c398aSmrg
5233309c398aSmrg
5234309c398aSmrg
5235309c398aSmrg
5236309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5237309c398aSmrg
5238309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
5239309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5240309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5241309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5242309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5243309c398aSmrg  $as_echo_n "(cached) " >&6
5244309c398aSmrgelse
5245309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246309c398aSmrg/* end confdefs.h.  */
5247309c398aSmrgint i;
5248309c398aSmrg_ACEOF
52498903d43aSmrgif ac_fn_c_try_compile "$LINENO"; then :
5250309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
52518903d43aSmrgelse
5252309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
52538903d43aSmrgfi
52548903d43aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52558903d43aSmrgfi
5256309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5257309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5258309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5259309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
52608903d43aSmrgfi
5261309c398aSmrg
5262309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5263309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5264309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5265309c398aSmrg	fi
5266309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5267309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5268309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5269309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
52708903d43aSmrg  $as_echo_n "(cached) " >&6
52718903d43aSmrgelse
5272309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52738903d43aSmrg/* end confdefs.h.  */
5274309c398aSmrgint i;
5275309c398aSmrg_ACEOF
5276309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
5277309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5278309c398aSmrgelse
5279309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5280309c398aSmrgfi
5281309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282309c398aSmrgfi
5283309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5284309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5285309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5286309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5287309c398aSmrgfi
5288309c398aSmrg
5289309c398aSmrgfound="no"
5290309c398aSmrg
5291309c398aSmrg	if test $found = "no" ; then
5292309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5293309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5294309c398aSmrg		fi
52958903d43aSmrg
5296309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5297309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5298309c398aSmrg		fi
5299309c398aSmrg
5300309c398aSmrg		CFLAGS="$CFLAGS -Wbad-function-cast"
5301309c398aSmrg
5302309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5303309c398aSmrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5304309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wbad-function-cast`
5305309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5306309c398aSmrg  $as_echo_n "(cached) " >&6
5307309c398aSmrgelse
5308309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309309c398aSmrg/* end confdefs.h.  */
5310309c398aSmrgint i;
53118903d43aSmrgint
53128903d43aSmrgmain ()
53138903d43aSmrg{
53148903d43aSmrg
53158903d43aSmrg  ;
53168903d43aSmrg  return 0;
53178903d43aSmrg}
53188903d43aSmrg_ACEOF
5319309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
5320309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5321309c398aSmrgelse
5322309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5323309c398aSmrgfi
5324309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
5325309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
5326309c398aSmrgfi
5327309c398aSmrg
5328309c398aSmrg
5329309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5330309c398aSmrg
5331309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5332309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5333309c398aSmrg$as_echo "$supported" >&6; }
5334309c398aSmrg		if test "$supported" = "yes" ; then
5335309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5336309c398aSmrg			found="yes"
5337309c398aSmrg		fi
5338309c398aSmrg	fi
5339309c398aSmrg
5340309c398aSmrg
5341309c398aSmrg
5342309c398aSmrg
5343309c398aSmrg
5344309c398aSmrg
5345309c398aSmrg
5346309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5347309c398aSmrg
5348309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
5349309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5350309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5351309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5352309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5353309c398aSmrg  $as_echo_n "(cached) " >&6
5354309c398aSmrgelse
5355309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356309c398aSmrg/* end confdefs.h.  */
5357309c398aSmrgint i;
5358309c398aSmrg_ACEOF
53598903d43aSmrgif ac_fn_c_try_compile "$LINENO"; then :
5360309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
53618903d43aSmrgelse
5362309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5363309c398aSmrgfi
5364309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365309c398aSmrgfi
5366309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5367309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5368309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5369309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5370309c398aSmrgfi
5371309c398aSmrg
5372309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5373309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5374309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5375309c398aSmrg	fi
5376309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5377309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5378309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5379309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5380309c398aSmrg  $as_echo_n "(cached) " >&6
5381309c398aSmrgelse
5382309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53838903d43aSmrg/* end confdefs.h.  */
5384309c398aSmrgint i;
5385309c398aSmrg_ACEOF
5386309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
5387309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5388309c398aSmrgelse
5389309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5390309c398aSmrgfi
5391309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392309c398aSmrgfi
5393309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5394309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5395309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5396309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5397309c398aSmrgfi
53988903d43aSmrg
5399309c398aSmrgfound="no"
5400309c398aSmrg
5401309c398aSmrg	if test $found = "no" ; then
5402309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5403309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5404309c398aSmrg		fi
5405309c398aSmrg
5406309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5407309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5408309c398aSmrg		fi
5409309c398aSmrg
5410309c398aSmrg		CFLAGS="$CFLAGS -Wformat=2"
5411309c398aSmrg
5412309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5413309c398aSmrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5414309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat=2`
5415309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5416309c398aSmrg  $as_echo_n "(cached) " >&6
5417309c398aSmrgelse
5418309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419309c398aSmrg/* end confdefs.h.  */
5420309c398aSmrgint i;
54218903d43aSmrgint
54228903d43aSmrgmain ()
54238903d43aSmrg{
54248903d43aSmrg
54258903d43aSmrg  ;
54268903d43aSmrg  return 0;
54278903d43aSmrg}
54288903d43aSmrg_ACEOF
5429309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
5430309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5431309c398aSmrgelse
5432309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5433309c398aSmrgfi
5434309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
5435309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
5436309c398aSmrgfi
5437309c398aSmrg
54388903d43aSmrg
5439309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5440309c398aSmrg
5441309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5442309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5443309c398aSmrg$as_echo "$supported" >&6; }
5444309c398aSmrg		if test "$supported" = "yes" ; then
5445309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5446309c398aSmrg			found="yes"
5447309c398aSmrg		fi
5448309c398aSmrg	fi
5449309c398aSmrg
5450309c398aSmrg	if test $found = "no" ; then
5451309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5452309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5453309c398aSmrg		fi
5454309c398aSmrg
5455309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5456309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5457309c398aSmrg		fi
5458309c398aSmrg
5459309c398aSmrg		CFLAGS="$CFLAGS -Wformat"
5460309c398aSmrg
5461309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5462309c398aSmrg$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5463309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat`
5464309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5465309c398aSmrg  $as_echo_n "(cached) " >&6
54668903d43aSmrgelse
5467309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54688903d43aSmrg/* end confdefs.h.  */
5469309c398aSmrgint i;
54708903d43aSmrgint
54718903d43aSmrgmain ()
54728903d43aSmrg{
54738903d43aSmrg
54748903d43aSmrg  ;
54758903d43aSmrg  return 0;
54768903d43aSmrg}
54778903d43aSmrg_ACEOF
5478309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
5479309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5480309c398aSmrgelse
5481309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
54828903d43aSmrgfi
5483309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
5484309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
54858903d43aSmrgfi
5486309c398aSmrg
5487309c398aSmrg
5488309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5489309c398aSmrg
5490309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5491309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5492309c398aSmrg$as_echo "$supported" >&6; }
5493309c398aSmrg		if test "$supported" = "yes" ; then
5494309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5495309c398aSmrg			found="yes"
5496309c398aSmrg		fi
5497309c398aSmrg	fi
5498309c398aSmrg
5499309c398aSmrg
5500309c398aSmrg
5501309c398aSmrg
5502309c398aSmrg
5503309c398aSmrg
5504309c398aSmrg
5505309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5506309c398aSmrg
5507309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
5508309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5509309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5510309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5511309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5512309c398aSmrg  $as_echo_n "(cached) " >&6
5513309c398aSmrgelse
5514309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515309c398aSmrg/* end confdefs.h.  */
5516309c398aSmrgint i;
5517309c398aSmrg_ACEOF
5518309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
5519309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5520309c398aSmrgelse
5521309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
55228903d43aSmrgfi
55238903d43aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55248903d43aSmrgfi
5525309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5526309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5527309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5528309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5529309c398aSmrgfi
5530309c398aSmrg
5531309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5532309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5533309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5534309c398aSmrg	fi
5535309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5536309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5537309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5538309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5539309c398aSmrg  $as_echo_n "(cached) " >&6
55408903d43aSmrgelse
5541309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542309c398aSmrg/* end confdefs.h.  */
5543309c398aSmrgint i;
5544309c398aSmrg_ACEOF
5545309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
5546309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5547309c398aSmrgelse
5548309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
55498903d43aSmrgfi
5550309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551309c398aSmrgfi
5552309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5553309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5554309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5555309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5556309c398aSmrgfi
5557309c398aSmrg
5558309c398aSmrgfound="no"
5559309c398aSmrg
5560309c398aSmrg	if test $found = "no" ; then
5561309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5562309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5563309c398aSmrg		fi
5564309c398aSmrg
5565309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5566309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5567309c398aSmrg		fi
5568309c398aSmrg
5569309c398aSmrg		CFLAGS="$CFLAGS -Wold-style-definition"
5570309c398aSmrg
5571309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5572309c398aSmrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5573309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wold-style-definition`
5574309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
55758903d43aSmrg  $as_echo_n "(cached) " >&6
55768903d43aSmrgelse
5577309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55788903d43aSmrg/* end confdefs.h.  */
5579309c398aSmrgint i;
5580309c398aSmrgint
5581309c398aSmrgmain ()
55828903d43aSmrg{
5583309c398aSmrg
5584309c398aSmrg  ;
5585309c398aSmrg  return 0;
55868903d43aSmrg}
5587309c398aSmrg_ACEOF
5588309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
5589309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5590309c398aSmrgelse
5591309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5592309c398aSmrgfi
5593309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
5594309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
5595309c398aSmrgfi
5596309c398aSmrg
5597309c398aSmrg
5598309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5599309c398aSmrg
5600309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5601309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5602309c398aSmrg$as_echo "$supported" >&6; }
5603309c398aSmrg		if test "$supported" = "yes" ; then
5604309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5605309c398aSmrg			found="yes"
5606309c398aSmrg		fi
5607309c398aSmrg	fi
5608309c398aSmrg
5609309c398aSmrg
5610309c398aSmrg
5611309c398aSmrg
5612309c398aSmrg
5613309c398aSmrg
5614309c398aSmrg
5615309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5616309c398aSmrg
5617309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
5618309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5619309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5620309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5621309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5622309c398aSmrg  $as_echo_n "(cached) " >&6
5623309c398aSmrgelse
5624309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625309c398aSmrg/* end confdefs.h.  */
5626309c398aSmrgint i;
5627309c398aSmrg_ACEOF
5628309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
5629309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5630309c398aSmrgelse
5631309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5632309c398aSmrgfi
5633309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634309c398aSmrgfi
5635309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5636309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5637309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5638309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5639309c398aSmrgfi
5640309c398aSmrg
5641309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5642309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5643309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5644309c398aSmrg	fi
5645309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5646309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5647309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5648309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5649309c398aSmrg  $as_echo_n "(cached) " >&6
5650309c398aSmrgelse
5651309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652309c398aSmrg/* end confdefs.h.  */
5653309c398aSmrgint i;
5654309c398aSmrg_ACEOF
5655309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
5656309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5657309c398aSmrgelse
5658309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5659309c398aSmrgfi
5660309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661309c398aSmrgfi
5662309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5663309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5664309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5665309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5666309c398aSmrgfi
5667309c398aSmrg
5668309c398aSmrgfound="no"
5669309c398aSmrg
5670309c398aSmrg	if test $found = "no" ; then
5671309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5672309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5673309c398aSmrg		fi
5674309c398aSmrg
5675309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5676309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5677309c398aSmrg		fi
5678309c398aSmrg
5679309c398aSmrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5680309c398aSmrg
5681309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5682309c398aSmrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5683309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wdeclaration-after-statement`
5684309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5685309c398aSmrg  $as_echo_n "(cached) " >&6
5686309c398aSmrgelse
5687309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688309c398aSmrg/* end confdefs.h.  */
5689309c398aSmrgint i;
5690309c398aSmrgint
5691309c398aSmrgmain ()
56928903d43aSmrg{
5693309c398aSmrg
5694309c398aSmrg  ;
5695309c398aSmrg  return 0;
56968903d43aSmrg}
5697309c398aSmrg_ACEOF
5698309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
5699309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5700309c398aSmrgelse
5701309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5702309c398aSmrgfi
5703309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
5704309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
5705309c398aSmrgfi
57068903d43aSmrg
57078903d43aSmrg
5708309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
57098903d43aSmrg
5710309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5711309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5712309c398aSmrg$as_echo "$supported" >&6; }
5713309c398aSmrg		if test "$supported" = "yes" ; then
5714309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5715309c398aSmrg			found="yes"
5716309c398aSmrg		fi
5717309c398aSmrg	fi
5718309c398aSmrg
5719309c398aSmrg
5720309c398aSmrg
5721309c398aSmrg# This chunk adds additional warnings that could catch undesired effects.
5722309c398aSmrg
5723309c398aSmrg
5724309c398aSmrg
5725309c398aSmrg
5726309c398aSmrg
5727309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5728309c398aSmrg
5729309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
5730309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5731309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5732309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5733309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5734309c398aSmrg  $as_echo_n "(cached) " >&6
5735309c398aSmrgelse
5736309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737309c398aSmrg/* end confdefs.h.  */
5738309c398aSmrgint i;
5739309c398aSmrg_ACEOF
5740309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
5741309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5742309c398aSmrgelse
5743309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5744309c398aSmrgfi
5745309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746309c398aSmrgfi
5747309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5748309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5749309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5750309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5751309c398aSmrgfi
5752309c398aSmrg
5753309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5754309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5755309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5756309c398aSmrg	fi
5757309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5758309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5759309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5760309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5761309c398aSmrg  $as_echo_n "(cached) " >&6
5762309c398aSmrgelse
5763309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764309c398aSmrg/* end confdefs.h.  */
5765309c398aSmrgint i;
5766309c398aSmrg_ACEOF
5767309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
5768309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5769309c398aSmrgelse
5770309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5771309c398aSmrgfi
5772309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773309c398aSmrgfi
5774309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5775309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5776309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5777309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5778309c398aSmrgfi
5779309c398aSmrg
5780309c398aSmrgfound="no"
5781309c398aSmrg
5782309c398aSmrg	if test $found = "no" ; then
5783309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5784309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5785309c398aSmrg		fi
5786309c398aSmrg
5787309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5788309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5789309c398aSmrg		fi
5790309c398aSmrg
5791309c398aSmrg		CFLAGS="$CFLAGS -Wunused"
5792309c398aSmrg
5793309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5794309c398aSmrg$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5795309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wunused`
5796309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5797309c398aSmrg  $as_echo_n "(cached) " >&6
5798309c398aSmrgelse
5799309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800309c398aSmrg/* end confdefs.h.  */
5801309c398aSmrgint i;
58028903d43aSmrgint
58038903d43aSmrgmain ()
58048903d43aSmrg{
5805309c398aSmrg
58068903d43aSmrg  ;
58078903d43aSmrg  return 0;
58088903d43aSmrg}
58098903d43aSmrg_ACEOF
5810309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
5811309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5812309c398aSmrgelse
5813309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
58148903d43aSmrgfi
5815309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
5816309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
5817309c398aSmrgfi
5818309c398aSmrg
5819309c398aSmrg
5820309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5821309c398aSmrg
5822309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5823309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5824309c398aSmrg$as_echo "$supported" >&6; }
5825309c398aSmrg		if test "$supported" = "yes" ; then
5826309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5827309c398aSmrg			found="yes"
5828309c398aSmrg		fi
5829309c398aSmrg	fi
5830309c398aSmrg
5831309c398aSmrg
5832309c398aSmrg
5833309c398aSmrg
5834309c398aSmrg
5835309c398aSmrg
5836309c398aSmrg
5837309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
58388903d43aSmrg
5839309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
5840309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5841309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5842309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5843309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5844309c398aSmrg  $as_echo_n "(cached) " >&6
5845309c398aSmrgelse
5846309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847309c398aSmrg/* end confdefs.h.  */
5848309c398aSmrgint i;
5849309c398aSmrg_ACEOF
5850309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
5851309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5852309c398aSmrgelse
5853309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
58548903d43aSmrgfi
5855309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856309c398aSmrgfi
5857309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5858309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5859309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5860309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5861309c398aSmrgfi
5862309c398aSmrg
5863309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5864309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5865309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5866309c398aSmrg	fi
5867309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5868309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5869309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5870309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5871309c398aSmrg  $as_echo_n "(cached) " >&6
5872309c398aSmrgelse
5873309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874309c398aSmrg/* end confdefs.h.  */
5875309c398aSmrgint i;
5876309c398aSmrg_ACEOF
5877309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
5878309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5879309c398aSmrgelse
5880309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5881309c398aSmrgfi
5882309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883309c398aSmrgfi
5884309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5885309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5886309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5887309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5888309c398aSmrgfi
5889309c398aSmrg
5890309c398aSmrgfound="no"
5891309c398aSmrg
5892309c398aSmrg	if test $found = "no" ; then
5893309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5894309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5895309c398aSmrg		fi
5896309c398aSmrg
5897309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5898309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5899309c398aSmrg		fi
5900309c398aSmrg
5901309c398aSmrg		CFLAGS="$CFLAGS -Wuninitialized"
5902309c398aSmrg
5903309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5904309c398aSmrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5905309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wuninitialized`
5906309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5907309c398aSmrg  $as_echo_n "(cached) " >&6
5908309c398aSmrgelse
5909309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910309c398aSmrg/* end confdefs.h.  */
5911309c398aSmrgint i;
5912309c398aSmrgint
5913309c398aSmrgmain ()
5914309c398aSmrg{
5915309c398aSmrg
5916309c398aSmrg  ;
5917309c398aSmrg  return 0;
5918309c398aSmrg}
5919309c398aSmrg_ACEOF
5920309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
5921309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5922309c398aSmrgelse
5923309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5924309c398aSmrgfi
5925309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
5926309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
5927309c398aSmrgfi
5928309c398aSmrg
5929309c398aSmrg
5930309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5931309c398aSmrg
5932309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5933309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5934309c398aSmrg$as_echo "$supported" >&6; }
5935309c398aSmrg		if test "$supported" = "yes" ; then
5936309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5937309c398aSmrg			found="yes"
5938309c398aSmrg		fi
5939309c398aSmrg	fi
5940309c398aSmrg
5941309c398aSmrg
5942309c398aSmrg
5943309c398aSmrg
5944309c398aSmrg
5945309c398aSmrg
5946309c398aSmrg
5947309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5948309c398aSmrg
5949309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
5950309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5951309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5952309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5953309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5954309c398aSmrg  $as_echo_n "(cached) " >&6
5955309c398aSmrgelse
5956309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957309c398aSmrg/* end confdefs.h.  */
5958309c398aSmrgint i;
5959309c398aSmrg_ACEOF
5960309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
5961309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5962309c398aSmrgelse
5963309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5964309c398aSmrgfi
5965309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966309c398aSmrgfi
5967309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5968309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5969309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5970309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5971309c398aSmrgfi
5972309c398aSmrg
5973309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5974309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5975309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5976309c398aSmrg	fi
5977309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5978309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5979309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5980309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5981309c398aSmrg  $as_echo_n "(cached) " >&6
5982309c398aSmrgelse
5983309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984309c398aSmrg/* end confdefs.h.  */
5985309c398aSmrgint i;
5986309c398aSmrg_ACEOF
5987309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
5988309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5989309c398aSmrgelse
5990309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5991309c398aSmrgfi
5992309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5993309c398aSmrgfi
5994309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5995309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5996309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5997309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5998309c398aSmrgfi
5999309c398aSmrg
6000309c398aSmrgfound="no"
6001309c398aSmrg
6002309c398aSmrg	if test $found = "no" ; then
6003309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6004309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6005309c398aSmrg		fi
6006309c398aSmrg
6007309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6008309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6009309c398aSmrg		fi
6010309c398aSmrg
6011309c398aSmrg		CFLAGS="$CFLAGS -Wshadow"
6012309c398aSmrg
6013309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6014309c398aSmrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6015309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wshadow`
6016309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6017309c398aSmrg  $as_echo_n "(cached) " >&6
6018309c398aSmrgelse
6019309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020309c398aSmrg/* end confdefs.h.  */
6021309c398aSmrgint i;
6022309c398aSmrgint
6023309c398aSmrgmain ()
6024309c398aSmrg{
6025309c398aSmrg
6026309c398aSmrg  ;
6027309c398aSmrg  return 0;
6028309c398aSmrg}
6029309c398aSmrg_ACEOF
6030309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
6031309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6032309c398aSmrgelse
6033309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6034309c398aSmrgfi
6035309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
6036309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
6037309c398aSmrgfi
6038309c398aSmrg
6039309c398aSmrg
6040309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6041309c398aSmrg
6042309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6043309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6044309c398aSmrg$as_echo "$supported" >&6; }
6045309c398aSmrg		if test "$supported" = "yes" ; then
6046309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6047309c398aSmrg			found="yes"
6048309c398aSmrg		fi
6049309c398aSmrg	fi
6050309c398aSmrg
6051309c398aSmrg
6052309c398aSmrg
6053309c398aSmrg
6054309c398aSmrg
6055309c398aSmrg
6056309c398aSmrg
6057309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6058309c398aSmrg
6059309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
6060309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6061309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6062309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6063309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6064309c398aSmrg  $as_echo_n "(cached) " >&6
6065309c398aSmrgelse
6066309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067309c398aSmrg/* end confdefs.h.  */
6068309c398aSmrgint i;
6069309c398aSmrg_ACEOF
6070309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
6071309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6072309c398aSmrgelse
6073309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6074309c398aSmrgfi
6075309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076309c398aSmrgfi
6077309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6078309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6079309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6080309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6081309c398aSmrgfi
6082309c398aSmrg
6083309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6084309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6085309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6086309c398aSmrg	fi
6087309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6088309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6089309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6090309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6091309c398aSmrg  $as_echo_n "(cached) " >&6
6092309c398aSmrgelse
6093309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094309c398aSmrg/* end confdefs.h.  */
6095309c398aSmrgint i;
6096309c398aSmrg_ACEOF
6097309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
6098309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6099309c398aSmrgelse
6100309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6101309c398aSmrgfi
6102309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103309c398aSmrgfi
6104309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6105309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6106309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6107309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6108309c398aSmrgfi
6109309c398aSmrg
6110309c398aSmrgfound="no"
6111309c398aSmrg
6112309c398aSmrg	if test $found = "no" ; then
6113309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6114309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6115309c398aSmrg		fi
6116309c398aSmrg
6117309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6118309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6119309c398aSmrg		fi
6120309c398aSmrg
6121309c398aSmrg		CFLAGS="$CFLAGS -Wcast-qual"
6122309c398aSmrg
6123309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6124309c398aSmrg$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6125309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wcast-qual`
6126309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6127309c398aSmrg  $as_echo_n "(cached) " >&6
6128309c398aSmrgelse
6129309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130309c398aSmrg/* end confdefs.h.  */
6131309c398aSmrgint i;
6132309c398aSmrgint
6133309c398aSmrgmain ()
6134309c398aSmrg{
6135309c398aSmrg
6136309c398aSmrg  ;
6137309c398aSmrg  return 0;
6138309c398aSmrg}
6139309c398aSmrg_ACEOF
6140309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
6141309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6142309c398aSmrgelse
6143309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6144309c398aSmrgfi
6145309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
6146309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
6147309c398aSmrgfi
6148309c398aSmrg
6149309c398aSmrg
6150309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6151309c398aSmrg
6152309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6153309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6154309c398aSmrg$as_echo "$supported" >&6; }
6155309c398aSmrg		if test "$supported" = "yes" ; then
6156309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6157309c398aSmrg			found="yes"
6158309c398aSmrg		fi
6159309c398aSmrg	fi
6160309c398aSmrg
6161309c398aSmrg
6162309c398aSmrg
6163309c398aSmrg
6164309c398aSmrg
6165309c398aSmrg
6166309c398aSmrg
6167309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6168309c398aSmrg
6169309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
6170309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6171309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6172309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6173309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6174309c398aSmrg  $as_echo_n "(cached) " >&6
6175309c398aSmrgelse
6176309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177309c398aSmrg/* end confdefs.h.  */
6178309c398aSmrgint i;
6179309c398aSmrg_ACEOF
6180309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
6181309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6182309c398aSmrgelse
6183309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6184309c398aSmrgfi
6185309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186309c398aSmrgfi
6187309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6188309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6189309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6190309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6191309c398aSmrgfi
6192309c398aSmrg
6193309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6194309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6195309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6196309c398aSmrg	fi
6197309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6198309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6199309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6200309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6201309c398aSmrg  $as_echo_n "(cached) " >&6
6202309c398aSmrgelse
6203309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204309c398aSmrg/* end confdefs.h.  */
6205309c398aSmrgint i;
6206309c398aSmrg_ACEOF
6207309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
6208309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6209309c398aSmrgelse
6210309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6211309c398aSmrgfi
6212309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213309c398aSmrgfi
6214309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6215309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6216309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6217309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6218309c398aSmrgfi
6219309c398aSmrg
6220309c398aSmrgfound="no"
6221309c398aSmrg
6222309c398aSmrg	if test $found = "no" ; then
6223309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6224309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225309c398aSmrg		fi
6226309c398aSmrg
6227309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6228309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6229309c398aSmrg		fi
6230309c398aSmrg
6231309c398aSmrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
6232309c398aSmrg
6233309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6234309c398aSmrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6235309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-noreturn`
6236309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6237309c398aSmrg  $as_echo_n "(cached) " >&6
6238309c398aSmrgelse
6239309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240309c398aSmrg/* end confdefs.h.  */
6241309c398aSmrgint i;
6242309c398aSmrgint
6243309c398aSmrgmain ()
6244309c398aSmrg{
6245309c398aSmrg
6246309c398aSmrg  ;
6247309c398aSmrg  return 0;
6248309c398aSmrg}
6249309c398aSmrg_ACEOF
6250309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
6251309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6252309c398aSmrgelse
6253309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6254309c398aSmrgfi
6255309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
6256309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
6257309c398aSmrgfi
6258309c398aSmrg
6259309c398aSmrg
6260309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6261309c398aSmrg
6262309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6263309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6264309c398aSmrg$as_echo "$supported" >&6; }
6265309c398aSmrg		if test "$supported" = "yes" ; then
6266309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6267309c398aSmrg			found="yes"
6268309c398aSmrg		fi
6269309c398aSmrg	fi
6270309c398aSmrg
6271309c398aSmrg
6272309c398aSmrg
6273309c398aSmrg
6274309c398aSmrg
6275309c398aSmrg
6276309c398aSmrg
6277309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6278309c398aSmrg
6279309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
6280309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6281309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6282309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6283309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6284309c398aSmrg  $as_echo_n "(cached) " >&6
6285309c398aSmrgelse
6286309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287309c398aSmrg/* end confdefs.h.  */
6288309c398aSmrgint i;
6289309c398aSmrg_ACEOF
6290309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
6291309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6292309c398aSmrgelse
6293309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6294309c398aSmrgfi
6295309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296309c398aSmrgfi
6297309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6298309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6299309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6300309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6301309c398aSmrgfi
6302309c398aSmrg
6303309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6304309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6305309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6306309c398aSmrg	fi
6307309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6308309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6309309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6310309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6311309c398aSmrg  $as_echo_n "(cached) " >&6
6312309c398aSmrgelse
6313309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314309c398aSmrg/* end confdefs.h.  */
6315309c398aSmrgint i;
6316309c398aSmrg_ACEOF
6317309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
6318309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6319309c398aSmrgelse
6320309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6321309c398aSmrgfi
6322309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323309c398aSmrgfi
6324309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6325309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6326309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6327309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6328309c398aSmrgfi
6329309c398aSmrg
6330309c398aSmrgfound="no"
6331309c398aSmrg
6332309c398aSmrg	if test $found = "no" ; then
6333309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6334309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6335309c398aSmrg		fi
6336309c398aSmrg
6337309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6338309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6339309c398aSmrg		fi
6340309c398aSmrg
6341309c398aSmrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6342309c398aSmrg
6343309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6344309c398aSmrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6345309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-format-attribute`
6346309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6347309c398aSmrg  $as_echo_n "(cached) " >&6
6348309c398aSmrgelse
6349309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350309c398aSmrg/* end confdefs.h.  */
6351309c398aSmrgint i;
6352309c398aSmrgint
6353309c398aSmrgmain ()
6354309c398aSmrg{
6355309c398aSmrg
6356309c398aSmrg  ;
6357309c398aSmrg  return 0;
6358309c398aSmrg}
6359309c398aSmrg_ACEOF
6360309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
6361309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6362309c398aSmrgelse
6363309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6364309c398aSmrgfi
6365309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
6366309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
6367309c398aSmrgfi
6368309c398aSmrg
6369309c398aSmrg
6370309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6371309c398aSmrg
6372309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6373309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6374309c398aSmrg$as_echo "$supported" >&6; }
6375309c398aSmrg		if test "$supported" = "yes" ; then
6376309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6377309c398aSmrg			found="yes"
6378309c398aSmrg		fi
6379309c398aSmrg	fi
6380309c398aSmrg
6381309c398aSmrg
6382309c398aSmrg
6383309c398aSmrg
6384309c398aSmrg
6385309c398aSmrg
6386309c398aSmrg
6387309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6388309c398aSmrg
6389309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
6390309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6391309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6392309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6393309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6394309c398aSmrg  $as_echo_n "(cached) " >&6
6395309c398aSmrgelse
6396309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397309c398aSmrg/* end confdefs.h.  */
6398309c398aSmrgint i;
6399309c398aSmrg_ACEOF
6400309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
6401309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6402309c398aSmrgelse
6403309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6404309c398aSmrgfi
6405309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406309c398aSmrgfi
6407309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6408309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6409309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6410309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6411309c398aSmrgfi
6412309c398aSmrg
6413309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6414309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6415309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6416309c398aSmrg	fi
6417309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6418309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6419309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6420309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6421309c398aSmrg  $as_echo_n "(cached) " >&6
6422309c398aSmrgelse
6423309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424309c398aSmrg/* end confdefs.h.  */
6425309c398aSmrgint i;
6426309c398aSmrg_ACEOF
6427309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
6428309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6429309c398aSmrgelse
6430309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6431309c398aSmrgfi
6432309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433309c398aSmrgfi
6434309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6435309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6436309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6437309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6438309c398aSmrgfi
6439309c398aSmrg
6440309c398aSmrgfound="no"
6441309c398aSmrg
6442309c398aSmrg	if test $found = "no" ; then
6443309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6444309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6445309c398aSmrg		fi
6446309c398aSmrg
6447309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6448309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6449309c398aSmrg		fi
6450309c398aSmrg
6451309c398aSmrg		CFLAGS="$CFLAGS -Wredundant-decls"
6452309c398aSmrg
6453309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6454309c398aSmrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6455309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wredundant-decls`
6456309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6457309c398aSmrg  $as_echo_n "(cached) " >&6
6458309c398aSmrgelse
6459309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460309c398aSmrg/* end confdefs.h.  */
6461309c398aSmrgint i;
6462309c398aSmrgint
6463309c398aSmrgmain ()
6464309c398aSmrg{
6465309c398aSmrg
6466309c398aSmrg  ;
6467309c398aSmrg  return 0;
6468309c398aSmrg}
6469309c398aSmrg_ACEOF
6470309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
6471309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6472309c398aSmrgelse
6473309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6474309c398aSmrgfi
6475309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
6476309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
6477309c398aSmrgfi
6478309c398aSmrg
6479309c398aSmrg
6480309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6481309c398aSmrg
6482309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6483309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6484309c398aSmrg$as_echo "$supported" >&6; }
6485309c398aSmrg		if test "$supported" = "yes" ; then
6486309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6487309c398aSmrg			found="yes"
6488309c398aSmrg		fi
6489309c398aSmrg	fi
6490309c398aSmrg
6491309c398aSmrg
6492309c398aSmrg
6493309c398aSmrg# These are currently disabled because they are noisy.  They will be enabled
6494309c398aSmrg# in the future once the codebase is sufficiently modernized to silence
6495309c398aSmrg# them.  For now, I don't want them to drown out the other warnings.
6496309c398aSmrg# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
6497309c398aSmrg# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
6498309c398aSmrg# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
6499309c398aSmrg
6500309c398aSmrg# Turn some warnings into errors, so we don't accidently get successful builds
6501309c398aSmrg# when there are problems that should be fixed.
6502309c398aSmrg
6503309c398aSmrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
6504309c398aSmrg
6505309c398aSmrg
6506309c398aSmrg
6507309c398aSmrg
6508309c398aSmrg
6509309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6510309c398aSmrg
6511309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
6512309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6513309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6514309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6515309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6516309c398aSmrg  $as_echo_n "(cached) " >&6
6517309c398aSmrgelse
6518309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519309c398aSmrg/* end confdefs.h.  */
6520309c398aSmrgint i;
6521309c398aSmrg_ACEOF
6522309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
6523309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6524309c398aSmrgelse
6525309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6526309c398aSmrgfi
6527309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528309c398aSmrgfi
6529309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6530309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6531309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6532309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6533309c398aSmrgfi
6534309c398aSmrg
6535309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6536309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6537309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6538309c398aSmrg	fi
6539309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6540309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6541309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6542309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6543309c398aSmrg  $as_echo_n "(cached) " >&6
6544309c398aSmrgelse
6545309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546309c398aSmrg/* end confdefs.h.  */
6547309c398aSmrgint i;
6548309c398aSmrg_ACEOF
6549309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
6550309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6551309c398aSmrgelse
6552309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6553309c398aSmrgfi
6554309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555309c398aSmrgfi
6556309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6557309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6558309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6559309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6560309c398aSmrgfi
6561309c398aSmrg
6562309c398aSmrgfound="no"
6563309c398aSmrg
6564309c398aSmrg	if test $found = "no" ; then
6565309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6566309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6567309c398aSmrg		fi
6568309c398aSmrg
6569309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6570309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6571309c398aSmrg		fi
6572309c398aSmrg
6573309c398aSmrg		CFLAGS="$CFLAGS -Werror=implicit"
6574309c398aSmrg
6575309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6576309c398aSmrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6577309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=implicit`
6578309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6579309c398aSmrg  $as_echo_n "(cached) " >&6
6580309c398aSmrgelse
6581309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582309c398aSmrg/* end confdefs.h.  */
6583309c398aSmrgint i;
6584309c398aSmrgint
6585309c398aSmrgmain ()
6586309c398aSmrg{
6587309c398aSmrg
6588309c398aSmrg  ;
6589309c398aSmrg  return 0;
6590309c398aSmrg}
6591309c398aSmrg_ACEOF
6592309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
6593309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6594309c398aSmrgelse
6595309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6596309c398aSmrgfi
6597309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
6598309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
6599309c398aSmrgfi
6600309c398aSmrg
6601309c398aSmrg
6602309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6603309c398aSmrg
6604309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6605309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6606309c398aSmrg$as_echo "$supported" >&6; }
6607309c398aSmrg		if test "$supported" = "yes" ; then
6608309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6609309c398aSmrg			found="yes"
6610309c398aSmrg		fi
6611309c398aSmrg	fi
6612309c398aSmrg
6613309c398aSmrg	if test $found = "no" ; then
6614309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6615309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6616309c398aSmrg		fi
6617309c398aSmrg
6618309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6619309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6620309c398aSmrg		fi
6621309c398aSmrg
6622309c398aSmrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6623309c398aSmrg
6624309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6625309c398aSmrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6626309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
6627309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6628309c398aSmrg  $as_echo_n "(cached) " >&6
6629309c398aSmrgelse
6630309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631309c398aSmrg/* end confdefs.h.  */
6632309c398aSmrgint i;
6633309c398aSmrgint
6634309c398aSmrgmain ()
6635309c398aSmrg{
6636309c398aSmrg
6637309c398aSmrg  ;
6638309c398aSmrg  return 0;
6639309c398aSmrg}
6640309c398aSmrg_ACEOF
6641309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
6642309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6643309c398aSmrgelse
6644309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6645309c398aSmrgfi
6646309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
6647309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
6648309c398aSmrgfi
6649309c398aSmrg
6650309c398aSmrg
6651309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6652309c398aSmrg
6653309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6654309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6655309c398aSmrg$as_echo "$supported" >&6; }
6656309c398aSmrg		if test "$supported" = "yes" ; then
6657309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6658309c398aSmrg			found="yes"
6659309c398aSmrg		fi
6660309c398aSmrg	fi
6661309c398aSmrg
6662309c398aSmrg
6663309c398aSmrg
6664309c398aSmrg
6665309c398aSmrg
6666309c398aSmrg
6667309c398aSmrg
6668309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6669309c398aSmrg
6670309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
6671309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6672309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6673309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6674309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6675309c398aSmrg  $as_echo_n "(cached) " >&6
6676309c398aSmrgelse
6677309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678309c398aSmrg/* end confdefs.h.  */
6679309c398aSmrgint i;
6680309c398aSmrg_ACEOF
6681309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
6682309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6683309c398aSmrgelse
6684309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6685309c398aSmrgfi
6686309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687309c398aSmrgfi
6688309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6689309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6690309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6691309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6692309c398aSmrgfi
6693309c398aSmrg
6694309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6695309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6696309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6697309c398aSmrg	fi
6698309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6699309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6700309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6701309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6702309c398aSmrg  $as_echo_n "(cached) " >&6
6703309c398aSmrgelse
6704309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705309c398aSmrg/* end confdefs.h.  */
6706309c398aSmrgint i;
6707309c398aSmrg_ACEOF
6708309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
6709309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6710309c398aSmrgelse
6711309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6712309c398aSmrgfi
6713309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714309c398aSmrgfi
6715309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6716309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6717309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6718309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6719309c398aSmrgfi
6720309c398aSmrg
6721309c398aSmrgfound="no"
6722309c398aSmrg
6723309c398aSmrg	if test $found = "no" ; then
6724309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6725309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6726309c398aSmrg		fi
6727309c398aSmrg
6728309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6729309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6730309c398aSmrg		fi
6731309c398aSmrg
6732309c398aSmrg		CFLAGS="$CFLAGS -Werror=nonnull"
6733309c398aSmrg
6734309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6735309c398aSmrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6736309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=nonnull`
6737309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6738309c398aSmrg  $as_echo_n "(cached) " >&6
6739309c398aSmrgelse
6740309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741309c398aSmrg/* end confdefs.h.  */
6742309c398aSmrgint i;
6743309c398aSmrgint
6744309c398aSmrgmain ()
6745309c398aSmrg{
6746309c398aSmrg
6747309c398aSmrg  ;
6748309c398aSmrg  return 0;
6749309c398aSmrg}
6750309c398aSmrg_ACEOF
6751309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
6752309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6753309c398aSmrgelse
6754309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6755309c398aSmrgfi
6756309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
6757309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
6758309c398aSmrgfi
6759309c398aSmrg
6760309c398aSmrg
6761309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6762309c398aSmrg
6763309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6764309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6765309c398aSmrg$as_echo "$supported" >&6; }
6766309c398aSmrg		if test "$supported" = "yes" ; then
6767309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6768309c398aSmrg			found="yes"
6769309c398aSmrg		fi
6770309c398aSmrg	fi
6771309c398aSmrg
6772309c398aSmrg
6773309c398aSmrg
6774309c398aSmrg
6775309c398aSmrg
6776309c398aSmrg
6777309c398aSmrg
6778309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6779309c398aSmrg
6780309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
6781309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6782309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6783309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6784309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6785309c398aSmrg  $as_echo_n "(cached) " >&6
6786309c398aSmrgelse
6787309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788309c398aSmrg/* end confdefs.h.  */
6789309c398aSmrgint i;
6790309c398aSmrg_ACEOF
6791309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
6792309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6793309c398aSmrgelse
6794309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6795309c398aSmrgfi
6796309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797309c398aSmrgfi
6798309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6799309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6800309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6801309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6802309c398aSmrgfi
6803309c398aSmrg
6804309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6805309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6806309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6807309c398aSmrg	fi
6808309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6809309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6810309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6811309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6812309c398aSmrg  $as_echo_n "(cached) " >&6
6813309c398aSmrgelse
6814309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815309c398aSmrg/* end confdefs.h.  */
6816309c398aSmrgint i;
6817309c398aSmrg_ACEOF
6818309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
6819309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6820309c398aSmrgelse
6821309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6822309c398aSmrgfi
6823309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824309c398aSmrgfi
6825309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6826309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6827309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6828309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6829309c398aSmrgfi
6830309c398aSmrg
6831309c398aSmrgfound="no"
6832309c398aSmrg
6833309c398aSmrg	if test $found = "no" ; then
6834309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6835309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6836309c398aSmrg		fi
6837309c398aSmrg
6838309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6839309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6840309c398aSmrg		fi
6841309c398aSmrg
6842309c398aSmrg		CFLAGS="$CFLAGS -Werror=init-self"
6843309c398aSmrg
6844309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6845309c398aSmrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6846309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=init-self`
6847309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6848309c398aSmrg  $as_echo_n "(cached) " >&6
6849309c398aSmrgelse
6850309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851309c398aSmrg/* end confdefs.h.  */
6852309c398aSmrgint i;
6853309c398aSmrgint
6854309c398aSmrgmain ()
6855309c398aSmrg{
6856309c398aSmrg
6857309c398aSmrg  ;
6858309c398aSmrg  return 0;
6859309c398aSmrg}
6860309c398aSmrg_ACEOF
6861309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
6862309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6863309c398aSmrgelse
6864309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6865309c398aSmrgfi
6866309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
6867309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
6868309c398aSmrgfi
6869309c398aSmrg
6870309c398aSmrg
6871309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6872309c398aSmrg
6873309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6874309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6875309c398aSmrg$as_echo "$supported" >&6; }
6876309c398aSmrg		if test "$supported" = "yes" ; then
6877309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6878309c398aSmrg			found="yes"
6879309c398aSmrg		fi
6880309c398aSmrg	fi
6881309c398aSmrg
6882309c398aSmrg
6883309c398aSmrg
6884309c398aSmrg
6885309c398aSmrg
6886309c398aSmrg
6887309c398aSmrg
6888309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6889309c398aSmrg
6890309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
6891309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6892309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6893309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6894309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6895309c398aSmrg  $as_echo_n "(cached) " >&6
6896309c398aSmrgelse
6897309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898309c398aSmrg/* end confdefs.h.  */
6899309c398aSmrgint i;
6900309c398aSmrg_ACEOF
6901309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
6902309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6903309c398aSmrgelse
6904309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6905309c398aSmrgfi
6906309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907309c398aSmrgfi
6908309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6909309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6910309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6911309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6912309c398aSmrgfi
6913309c398aSmrg
6914309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6915309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6916309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6917309c398aSmrg	fi
6918309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6919309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6920309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6921309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6922309c398aSmrg  $as_echo_n "(cached) " >&6
6923309c398aSmrgelse
6924309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925309c398aSmrg/* end confdefs.h.  */
6926309c398aSmrgint i;
6927309c398aSmrg_ACEOF
6928309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
6929309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6930309c398aSmrgelse
6931309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6932309c398aSmrgfi
6933309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934309c398aSmrgfi
6935309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6936309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6937309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6938309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6939309c398aSmrgfi
6940309c398aSmrg
6941309c398aSmrgfound="no"
6942309c398aSmrg
6943309c398aSmrg	if test $found = "no" ; then
6944309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6945309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6946309c398aSmrg		fi
6947309c398aSmrg
6948309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6949309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6950309c398aSmrg		fi
6951309c398aSmrg
6952309c398aSmrg		CFLAGS="$CFLAGS -Werror=main"
6953309c398aSmrg
6954309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6955309c398aSmrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6956309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=main`
6957309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6958309c398aSmrg  $as_echo_n "(cached) " >&6
6959309c398aSmrgelse
6960309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961309c398aSmrg/* end confdefs.h.  */
6962309c398aSmrgint i;
6963309c398aSmrgint
6964309c398aSmrgmain ()
6965309c398aSmrg{
6966309c398aSmrg
6967309c398aSmrg  ;
6968309c398aSmrg  return 0;
6969309c398aSmrg}
6970309c398aSmrg_ACEOF
6971309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
6972309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6973309c398aSmrgelse
6974309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6975309c398aSmrgfi
6976309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
6977309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
6978309c398aSmrgfi
6979309c398aSmrg
6980309c398aSmrg
6981309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6982309c398aSmrg
6983309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6984309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6985309c398aSmrg$as_echo "$supported" >&6; }
6986309c398aSmrg		if test "$supported" = "yes" ; then
6987309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6988309c398aSmrg			found="yes"
6989309c398aSmrg		fi
6990309c398aSmrg	fi
6991309c398aSmrg
6992309c398aSmrg
6993309c398aSmrg
6994309c398aSmrg
6995309c398aSmrg
6996309c398aSmrg
6997309c398aSmrg
6998309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6999309c398aSmrg
7000309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
7001309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7002309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7003309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7004309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7005309c398aSmrg  $as_echo_n "(cached) " >&6
7006309c398aSmrgelse
7007309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008309c398aSmrg/* end confdefs.h.  */
7009309c398aSmrgint i;
7010309c398aSmrg_ACEOF
7011309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
7012309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7013309c398aSmrgelse
7014309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7015309c398aSmrgfi
7016309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7017309c398aSmrgfi
7018309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7019309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7020309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7021309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7022309c398aSmrgfi
7023309c398aSmrg
7024309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7025309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7026309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7027309c398aSmrg	fi
7028309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7029309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7030309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7031309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7032309c398aSmrg  $as_echo_n "(cached) " >&6
7033309c398aSmrgelse
7034309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035309c398aSmrg/* end confdefs.h.  */
7036309c398aSmrgint i;
7037309c398aSmrg_ACEOF
7038309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
7039309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7040309c398aSmrgelse
7041309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7042309c398aSmrgfi
7043309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044309c398aSmrgfi
7045309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7046309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7047309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7048309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7049309c398aSmrgfi
7050309c398aSmrg
7051309c398aSmrgfound="no"
7052309c398aSmrg
7053309c398aSmrg	if test $found = "no" ; then
7054309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7055309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7056309c398aSmrg		fi
7057309c398aSmrg
7058309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7059309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7060309c398aSmrg		fi
7061309c398aSmrg
7062309c398aSmrg		CFLAGS="$CFLAGS -Werror=missing-braces"
7063309c398aSmrg
7064309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7065309c398aSmrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7066309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=missing-braces`
7067309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7068309c398aSmrg  $as_echo_n "(cached) " >&6
7069309c398aSmrgelse
7070309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071309c398aSmrg/* end confdefs.h.  */
7072309c398aSmrgint i;
7073309c398aSmrgint
7074309c398aSmrgmain ()
7075309c398aSmrg{
7076309c398aSmrg
7077309c398aSmrg  ;
7078309c398aSmrg  return 0;
7079309c398aSmrg}
7080309c398aSmrg_ACEOF
7081309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
7082309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7083309c398aSmrgelse
7084309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7085309c398aSmrgfi
7086309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
7087309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
7088309c398aSmrgfi
7089309c398aSmrg
7090309c398aSmrg
7091309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7092309c398aSmrg
7093309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7094309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7095309c398aSmrg$as_echo "$supported" >&6; }
7096309c398aSmrg		if test "$supported" = "yes" ; then
7097309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7098309c398aSmrg			found="yes"
7099309c398aSmrg		fi
7100309c398aSmrg	fi
7101309c398aSmrg
7102309c398aSmrg
7103309c398aSmrg
7104309c398aSmrg
7105309c398aSmrg
7106309c398aSmrg
7107309c398aSmrg
7108309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7109309c398aSmrg
7110309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
7111309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7112309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7113309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7114309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7115309c398aSmrg  $as_echo_n "(cached) " >&6
7116309c398aSmrgelse
7117309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118309c398aSmrg/* end confdefs.h.  */
7119309c398aSmrgint i;
7120309c398aSmrg_ACEOF
7121309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
7122309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7123309c398aSmrgelse
7124309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7125309c398aSmrgfi
7126309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127309c398aSmrgfi
7128309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7129309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7130309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7131309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7132309c398aSmrgfi
7133309c398aSmrg
7134309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7135309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7136309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7137309c398aSmrg	fi
7138309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7139309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7140309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7141309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7142309c398aSmrg  $as_echo_n "(cached) " >&6
7143309c398aSmrgelse
7144309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145309c398aSmrg/* end confdefs.h.  */
7146309c398aSmrgint i;
7147309c398aSmrg_ACEOF
7148309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
7149309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7150309c398aSmrgelse
7151309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7152309c398aSmrgfi
7153309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154309c398aSmrgfi
7155309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7156309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7157309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7158309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7159309c398aSmrgfi
7160309c398aSmrg
7161309c398aSmrgfound="no"
7162309c398aSmrg
7163309c398aSmrg	if test $found = "no" ; then
7164309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7165309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7166309c398aSmrg		fi
7167309c398aSmrg
7168309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7169309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7170309c398aSmrg		fi
7171309c398aSmrg
7172309c398aSmrg		CFLAGS="$CFLAGS -Werror=sequence-point"
7173309c398aSmrg
7174309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7175309c398aSmrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7176309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=sequence-point`
7177309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7178309c398aSmrg  $as_echo_n "(cached) " >&6
7179309c398aSmrgelse
7180309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181309c398aSmrg/* end confdefs.h.  */
7182309c398aSmrgint i;
7183309c398aSmrgint
7184309c398aSmrgmain ()
7185309c398aSmrg{
7186309c398aSmrg
7187309c398aSmrg  ;
7188309c398aSmrg  return 0;
7189309c398aSmrg}
7190309c398aSmrg_ACEOF
7191309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
7192309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7193309c398aSmrgelse
7194309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7195309c398aSmrgfi
7196309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
7197309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
7198309c398aSmrgfi
7199309c398aSmrg
7200309c398aSmrg
7201309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7202309c398aSmrg
7203309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7204309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7205309c398aSmrg$as_echo "$supported" >&6; }
7206309c398aSmrg		if test "$supported" = "yes" ; then
7207309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7208309c398aSmrg			found="yes"
7209309c398aSmrg		fi
7210309c398aSmrg	fi
7211309c398aSmrg
7212309c398aSmrg
7213309c398aSmrg
7214309c398aSmrg
7215309c398aSmrg
7216309c398aSmrg
7217309c398aSmrg
7218309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7219309c398aSmrg
7220309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
7221309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7222309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7223309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7224309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7225309c398aSmrg  $as_echo_n "(cached) " >&6
7226309c398aSmrgelse
7227309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228309c398aSmrg/* end confdefs.h.  */
7229309c398aSmrgint i;
7230309c398aSmrg_ACEOF
7231309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
7232309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7233309c398aSmrgelse
7234309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7235309c398aSmrgfi
7236309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237309c398aSmrgfi
7238309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7239309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7240309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7241309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7242309c398aSmrgfi
7243309c398aSmrg
7244309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7245309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7246309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7247309c398aSmrg	fi
7248309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7249309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7250309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7251309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7252309c398aSmrg  $as_echo_n "(cached) " >&6
7253309c398aSmrgelse
7254309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255309c398aSmrg/* end confdefs.h.  */
7256309c398aSmrgint i;
7257309c398aSmrg_ACEOF
7258309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
7259309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7260309c398aSmrgelse
7261309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7262309c398aSmrgfi
7263309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264309c398aSmrgfi
7265309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7266309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7267309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7268309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7269309c398aSmrgfi
7270309c398aSmrg
7271309c398aSmrgfound="no"
7272309c398aSmrg
7273309c398aSmrg	if test $found = "no" ; then
7274309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7275309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7276309c398aSmrg		fi
7277309c398aSmrg
7278309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7279309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7280309c398aSmrg		fi
7281309c398aSmrg
7282309c398aSmrg		CFLAGS="$CFLAGS -Werror=return-type"
7283309c398aSmrg
7284309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7285309c398aSmrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7286309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=return-type`
7287309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7288309c398aSmrg  $as_echo_n "(cached) " >&6
7289309c398aSmrgelse
7290309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291309c398aSmrg/* end confdefs.h.  */
7292309c398aSmrgint i;
7293309c398aSmrgint
7294309c398aSmrgmain ()
7295309c398aSmrg{
7296309c398aSmrg
7297309c398aSmrg  ;
7298309c398aSmrg  return 0;
7299309c398aSmrg}
7300309c398aSmrg_ACEOF
7301309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
7302309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7303309c398aSmrgelse
7304309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7305309c398aSmrgfi
7306309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
7307309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
7308309c398aSmrgfi
7309309c398aSmrg
7310309c398aSmrg
7311309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7312309c398aSmrg
7313309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7314309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7315309c398aSmrg$as_echo "$supported" >&6; }
7316309c398aSmrg		if test "$supported" = "yes" ; then
7317309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7318309c398aSmrg			found="yes"
7319309c398aSmrg		fi
7320309c398aSmrg	fi
7321309c398aSmrg
7322309c398aSmrg	if test $found = "no" ; then
7323309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7324309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7325309c398aSmrg		fi
7326309c398aSmrg
7327309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7328309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7329309c398aSmrg		fi
7330309c398aSmrg
7331309c398aSmrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7332309c398aSmrg
7333309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7334309c398aSmrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7335309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
7336309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7337309c398aSmrg  $as_echo_n "(cached) " >&6
7338309c398aSmrgelse
7339309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340309c398aSmrg/* end confdefs.h.  */
7341309c398aSmrgint i;
7342309c398aSmrgint
7343309c398aSmrgmain ()
7344309c398aSmrg{
7345309c398aSmrg
7346309c398aSmrg  ;
7347309c398aSmrg  return 0;
7348309c398aSmrg}
7349309c398aSmrg_ACEOF
7350309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
7351309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7352309c398aSmrgelse
7353309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7354309c398aSmrgfi
7355309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
7356309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
7357309c398aSmrgfi
7358309c398aSmrg
7359309c398aSmrg
7360309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7361309c398aSmrg
7362309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7363309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7364309c398aSmrg$as_echo "$supported" >&6; }
7365309c398aSmrg		if test "$supported" = "yes" ; then
7366309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7367309c398aSmrg			found="yes"
7368309c398aSmrg		fi
7369309c398aSmrg	fi
7370309c398aSmrg
7371309c398aSmrg
7372309c398aSmrg
7373309c398aSmrg
7374309c398aSmrg
7375309c398aSmrg
7376309c398aSmrg
7377309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7378309c398aSmrg
7379309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
7380309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7382309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7383309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7384309c398aSmrg  $as_echo_n "(cached) " >&6
7385309c398aSmrgelse
7386309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387309c398aSmrg/* end confdefs.h.  */
7388309c398aSmrgint i;
7389309c398aSmrg_ACEOF
7390309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
7391309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7392309c398aSmrgelse
7393309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7394309c398aSmrgfi
7395309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7396309c398aSmrgfi
7397309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7398309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7399309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7400309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7401309c398aSmrgfi
7402309c398aSmrg
7403309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7404309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7405309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7406309c398aSmrg	fi
7407309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7408309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7409309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7410309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7411309c398aSmrg  $as_echo_n "(cached) " >&6
7412309c398aSmrgelse
7413309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414309c398aSmrg/* end confdefs.h.  */
7415309c398aSmrgint i;
7416309c398aSmrg_ACEOF
7417309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
7418309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7419309c398aSmrgelse
7420309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7421309c398aSmrgfi
7422309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423309c398aSmrgfi
7424309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7425309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7426309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7427309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7428309c398aSmrgfi
7429309c398aSmrg
7430309c398aSmrgfound="no"
7431309c398aSmrg
7432309c398aSmrg	if test $found = "no" ; then
7433309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7434309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7435309c398aSmrg		fi
7436309c398aSmrg
7437309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7438309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7439309c398aSmrg		fi
7440309c398aSmrg
7441309c398aSmrg		CFLAGS="$CFLAGS -Werror=trigraphs"
7442309c398aSmrg
7443309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7444309c398aSmrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7445309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=trigraphs`
7446309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7447309c398aSmrg  $as_echo_n "(cached) " >&6
7448309c398aSmrgelse
7449309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450309c398aSmrg/* end confdefs.h.  */
7451309c398aSmrgint i;
7452309c398aSmrgint
7453309c398aSmrgmain ()
7454309c398aSmrg{
7455309c398aSmrg
7456309c398aSmrg  ;
7457309c398aSmrg  return 0;
7458309c398aSmrg}
7459309c398aSmrg_ACEOF
7460309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
7461309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7462309c398aSmrgelse
7463309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7464309c398aSmrgfi
7465309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
7466309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
7467309c398aSmrgfi
7468309c398aSmrg
7469309c398aSmrg
7470309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7471309c398aSmrg
7472309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7473309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7474309c398aSmrg$as_echo "$supported" >&6; }
7475309c398aSmrg		if test "$supported" = "yes" ; then
7476309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7477309c398aSmrg			found="yes"
7478309c398aSmrg		fi
7479309c398aSmrg	fi
7480309c398aSmrg
7481309c398aSmrg
7482309c398aSmrg
7483309c398aSmrg
7484309c398aSmrg
7485309c398aSmrg
7486309c398aSmrg
7487309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7488309c398aSmrg
7489309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
7490309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7491309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7492309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7493309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7494309c398aSmrg  $as_echo_n "(cached) " >&6
7495309c398aSmrgelse
7496309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497309c398aSmrg/* end confdefs.h.  */
7498309c398aSmrgint i;
7499309c398aSmrg_ACEOF
7500309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
7501309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7502309c398aSmrgelse
7503309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7504309c398aSmrgfi
7505309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506309c398aSmrgfi
7507309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7508309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7509309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7510309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7511309c398aSmrgfi
7512309c398aSmrg
7513309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7514309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7515309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7516309c398aSmrg	fi
7517309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7518309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7519309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7520309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7521309c398aSmrg  $as_echo_n "(cached) " >&6
7522309c398aSmrgelse
7523309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524309c398aSmrg/* end confdefs.h.  */
7525309c398aSmrgint i;
7526309c398aSmrg_ACEOF
7527309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
7528309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7529309c398aSmrgelse
7530309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7531309c398aSmrgfi
7532309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7533309c398aSmrgfi
7534309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7535309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7536309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7537309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7538309c398aSmrgfi
7539309c398aSmrg
7540309c398aSmrgfound="no"
7541309c398aSmrg
7542309c398aSmrg	if test $found = "no" ; then
7543309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7544309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7545309c398aSmrg		fi
7546309c398aSmrg
7547309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7548309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7549309c398aSmrg		fi
7550309c398aSmrg
7551309c398aSmrg		CFLAGS="$CFLAGS -Werror=array-bounds"
7552309c398aSmrg
7553309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7554309c398aSmrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7555309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=array-bounds`
7556309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7557309c398aSmrg  $as_echo_n "(cached) " >&6
7558309c398aSmrgelse
7559309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560309c398aSmrg/* end confdefs.h.  */
7561309c398aSmrgint i;
7562309c398aSmrgint
7563309c398aSmrgmain ()
7564309c398aSmrg{
7565309c398aSmrg
7566309c398aSmrg  ;
7567309c398aSmrg  return 0;
7568309c398aSmrg}
7569309c398aSmrg_ACEOF
7570309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
7571309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7572309c398aSmrgelse
7573309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7574309c398aSmrgfi
7575309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
7576309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
7577309c398aSmrgfi
7578309c398aSmrg
7579309c398aSmrg
7580309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7581309c398aSmrg
7582309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7583309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7584309c398aSmrg$as_echo "$supported" >&6; }
7585309c398aSmrg		if test "$supported" = "yes" ; then
7586309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7587309c398aSmrg			found="yes"
7588309c398aSmrg		fi
7589309c398aSmrg	fi
7590309c398aSmrg
7591309c398aSmrg
7592309c398aSmrg
7593309c398aSmrg
7594309c398aSmrg
7595309c398aSmrg
7596309c398aSmrg
7597309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7598309c398aSmrg
7599309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
7600309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7601309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7602309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7603309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7604309c398aSmrg  $as_echo_n "(cached) " >&6
7605309c398aSmrgelse
7606309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607309c398aSmrg/* end confdefs.h.  */
7608309c398aSmrgint i;
7609309c398aSmrg_ACEOF
7610309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
7611309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7612309c398aSmrgelse
7613309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7614309c398aSmrgfi
7615309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616309c398aSmrgfi
7617309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7618309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7619309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7620309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7621309c398aSmrgfi
7622309c398aSmrg
7623309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7624309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7625309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7626309c398aSmrg	fi
7627309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7628309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7629309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7630309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7631309c398aSmrg  $as_echo_n "(cached) " >&6
7632309c398aSmrgelse
7633309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634309c398aSmrg/* end confdefs.h.  */
7635309c398aSmrgint i;
7636309c398aSmrg_ACEOF
7637309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
7638309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7639309c398aSmrgelse
7640309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7641309c398aSmrgfi
7642309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643309c398aSmrgfi
7644309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7645309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7646309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7647309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7648309c398aSmrgfi
7649309c398aSmrg
7650309c398aSmrgfound="no"
7651309c398aSmrg
7652309c398aSmrg	if test $found = "no" ; then
7653309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7654309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7655309c398aSmrg		fi
7656309c398aSmrg
7657309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7658309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7659309c398aSmrg		fi
7660309c398aSmrg
7661309c398aSmrg		CFLAGS="$CFLAGS -Werror=write-strings"
7662309c398aSmrg
7663309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7664309c398aSmrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7665309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=write-strings`
7666309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7667309c398aSmrg  $as_echo_n "(cached) " >&6
7668309c398aSmrgelse
7669309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670309c398aSmrg/* end confdefs.h.  */
7671309c398aSmrgint i;
7672309c398aSmrgint
7673309c398aSmrgmain ()
7674309c398aSmrg{
7675309c398aSmrg
7676309c398aSmrg  ;
7677309c398aSmrg  return 0;
7678309c398aSmrg}
7679309c398aSmrg_ACEOF
7680309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
7681309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7682309c398aSmrgelse
7683309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7684309c398aSmrgfi
7685309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
7686309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
7687309c398aSmrgfi
7688309c398aSmrg
7689309c398aSmrg
7690309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7691309c398aSmrg
7692309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7693309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7694309c398aSmrg$as_echo "$supported" >&6; }
7695309c398aSmrg		if test "$supported" = "yes" ; then
7696309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7697309c398aSmrg			found="yes"
7698309c398aSmrg		fi
7699309c398aSmrg	fi
7700309c398aSmrg
7701309c398aSmrg
7702309c398aSmrg
7703309c398aSmrg
7704309c398aSmrg
7705309c398aSmrg
7706309c398aSmrg
7707309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7708309c398aSmrg
7709309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
7710309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7711309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7712309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7713309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7714309c398aSmrg  $as_echo_n "(cached) " >&6
7715309c398aSmrgelse
7716309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717309c398aSmrg/* end confdefs.h.  */
7718309c398aSmrgint i;
7719309c398aSmrg_ACEOF
7720309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
7721309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7722309c398aSmrgelse
7723309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7724309c398aSmrgfi
7725309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726309c398aSmrgfi
7727309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7728309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7729309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7730309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7731309c398aSmrgfi
7732309c398aSmrg
7733309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7734309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7735309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7736309c398aSmrg	fi
7737309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7738309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7739309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7740309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7741309c398aSmrg  $as_echo_n "(cached) " >&6
7742309c398aSmrgelse
7743309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744309c398aSmrg/* end confdefs.h.  */
7745309c398aSmrgint i;
7746309c398aSmrg_ACEOF
7747309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
7748309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7749309c398aSmrgelse
7750309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7751309c398aSmrgfi
7752309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753309c398aSmrgfi
7754309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7755309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7756309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7757309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7758309c398aSmrgfi
7759309c398aSmrg
7760309c398aSmrgfound="no"
7761309c398aSmrg
7762309c398aSmrg	if test $found = "no" ; then
7763309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7764309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7765309c398aSmrg		fi
7766309c398aSmrg
7767309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7768309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7769309c398aSmrg		fi
7770309c398aSmrg
7771309c398aSmrg		CFLAGS="$CFLAGS -Werror=address"
7772309c398aSmrg
7773309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7774309c398aSmrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7775309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=address`
7776309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7777309c398aSmrg  $as_echo_n "(cached) " >&6
7778309c398aSmrgelse
7779309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780309c398aSmrg/* end confdefs.h.  */
7781309c398aSmrgint i;
7782309c398aSmrgint
7783309c398aSmrgmain ()
7784309c398aSmrg{
7785309c398aSmrg
7786309c398aSmrg  ;
7787309c398aSmrg  return 0;
7788309c398aSmrg}
7789309c398aSmrg_ACEOF
7790309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
7791309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7792309c398aSmrgelse
7793309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7794309c398aSmrgfi
7795309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
7796309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
7797309c398aSmrgfi
7798309c398aSmrg
7799309c398aSmrg
7800309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7801309c398aSmrg
7802309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7803309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7804309c398aSmrg$as_echo "$supported" >&6; }
7805309c398aSmrg		if test "$supported" = "yes" ; then
7806309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7807309c398aSmrg			found="yes"
7808309c398aSmrg		fi
7809309c398aSmrg	fi
7810309c398aSmrg
7811309c398aSmrg
7812309c398aSmrg
7813309c398aSmrg
7814309c398aSmrg
7815309c398aSmrg
7816309c398aSmrg
7817309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7818309c398aSmrg
7819309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
7820309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7821309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7822309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7823309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7824309c398aSmrg  $as_echo_n "(cached) " >&6
7825309c398aSmrgelse
7826309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827309c398aSmrg/* end confdefs.h.  */
7828309c398aSmrgint i;
7829309c398aSmrg_ACEOF
7830309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
7831309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7832309c398aSmrgelse
7833309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7834309c398aSmrgfi
7835309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836309c398aSmrgfi
7837309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7838309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7839309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7840309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7841309c398aSmrgfi
7842309c398aSmrg
7843309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7844309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7845309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7846309c398aSmrg	fi
7847309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7848309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7849309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7850309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7851309c398aSmrg  $as_echo_n "(cached) " >&6
7852309c398aSmrgelse
7853309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854309c398aSmrg/* end confdefs.h.  */
7855309c398aSmrgint i;
7856309c398aSmrg_ACEOF
7857309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
7858309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7859309c398aSmrgelse
7860309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7861309c398aSmrgfi
7862309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863309c398aSmrgfi
7864309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7865309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7866309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7867309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7868309c398aSmrgfi
7869309c398aSmrg
7870309c398aSmrgfound="no"
7871309c398aSmrg
7872309c398aSmrg	if test $found = "no" ; then
7873309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7874309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7875309c398aSmrg		fi
7876309c398aSmrg
7877309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7878309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7879309c398aSmrg		fi
7880309c398aSmrg
7881309c398aSmrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7882309c398aSmrg
7883309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7884309c398aSmrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7885309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
7886309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7887309c398aSmrg  $as_echo_n "(cached) " >&6
7888309c398aSmrgelse
7889309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890309c398aSmrg/* end confdefs.h.  */
7891309c398aSmrgint i;
7892309c398aSmrgint
7893309c398aSmrgmain ()
7894309c398aSmrg{
7895309c398aSmrg
7896309c398aSmrg  ;
7897309c398aSmrg  return 0;
7898309c398aSmrg}
7899309c398aSmrg_ACEOF
7900309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
7901309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7902309c398aSmrgelse
7903309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7904309c398aSmrgfi
7905309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
7906309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
7907309c398aSmrgfi
7908309c398aSmrg
7909309c398aSmrg
7910309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7911309c398aSmrg
7912309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7913309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7914309c398aSmrg$as_echo "$supported" >&6; }
7915309c398aSmrg		if test "$supported" = "yes" ; then
7916309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7917309c398aSmrg			found="yes"
7918309c398aSmrg		fi
7919309c398aSmrg	fi
7920309c398aSmrg
7921309c398aSmrg	if test $found = "no" ; then
7922309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7923309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924309c398aSmrg		fi
7925309c398aSmrg
7926309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7927309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7928309c398aSmrg		fi
7929309c398aSmrg
7930309c398aSmrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7931309c398aSmrg
7932309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7933309c398aSmrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7934309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
7935309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7936309c398aSmrg  $as_echo_n "(cached) " >&6
7937309c398aSmrgelse
7938309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939309c398aSmrg/* end confdefs.h.  */
7940309c398aSmrgint i;
7941309c398aSmrgint
7942309c398aSmrgmain ()
7943309c398aSmrg{
7944309c398aSmrg
7945309c398aSmrg  ;
7946309c398aSmrg  return 0;
7947309c398aSmrg}
7948309c398aSmrg_ACEOF
7949309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
7950309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7951309c398aSmrgelse
7952309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7953309c398aSmrgfi
7954309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
7955309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
7956309c398aSmrgfi
7957309c398aSmrg
7958309c398aSmrg
7959309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7960309c398aSmrg
7961309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7962309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7963309c398aSmrg$as_echo "$supported" >&6; }
7964309c398aSmrg		if test "$supported" = "yes" ; then
7965309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7966309c398aSmrg			found="yes"
7967309c398aSmrg		fi
7968309c398aSmrg	fi
7969309c398aSmrg
7970309c398aSmrg
7971309c398aSmrg
7972309c398aSmrg
7973309c398aSmrg
7974309c398aSmrg
7975309c398aSmrg
7976309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7977309c398aSmrg
7978309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
7979309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7980309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7981309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7982309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7983309c398aSmrg  $as_echo_n "(cached) " >&6
7984309c398aSmrgelse
7985309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986309c398aSmrg/* end confdefs.h.  */
7987309c398aSmrgint i;
7988309c398aSmrg_ACEOF
7989309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
7990309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7991309c398aSmrgelse
7992309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7993309c398aSmrgfi
7994309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995309c398aSmrgfi
7996309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7997309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7998309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7999309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8000309c398aSmrgfi
8001309c398aSmrg
8002309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8003309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8004309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8005309c398aSmrg	fi
8006309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8007309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8008309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8009309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8010309c398aSmrg  $as_echo_n "(cached) " >&6
8011309c398aSmrgelse
8012309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013309c398aSmrg/* end confdefs.h.  */
8014309c398aSmrgint i;
8015309c398aSmrg_ACEOF
8016309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
8017309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8018309c398aSmrgelse
8019309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8020309c398aSmrgfi
8021309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022309c398aSmrgfi
8023309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8024309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8025309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8026309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8027309c398aSmrgfi
8028309c398aSmrg
8029309c398aSmrgfound="no"
8030309c398aSmrg
8031309c398aSmrg	if test $found = "no" ; then
8032309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8033309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8034309c398aSmrg		fi
8035309c398aSmrg
8036309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8037309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8038309c398aSmrg		fi
8039309c398aSmrg
8040309c398aSmrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8041309c398aSmrg
8042309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8043309c398aSmrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8044309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
8045309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8046309c398aSmrg  $as_echo_n "(cached) " >&6
8047309c398aSmrgelse
8048309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049309c398aSmrg/* end confdefs.h.  */
8050309c398aSmrgint i;
8051309c398aSmrgint
8052309c398aSmrgmain ()
8053309c398aSmrg{
8054309c398aSmrg
8055309c398aSmrg  ;
8056309c398aSmrg  return 0;
8057309c398aSmrg}
8058309c398aSmrg_ACEOF
8059309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
8060309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8061309c398aSmrgelse
8062309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8063309c398aSmrgfi
8064309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
8065309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
8066309c398aSmrgfi
8067309c398aSmrg
8068309c398aSmrg
8069309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8070309c398aSmrg
8071309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8072309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8073309c398aSmrg$as_echo "$supported" >&6; }
8074309c398aSmrg		if test "$supported" = "yes" ; then
8075309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8076309c398aSmrg			found="yes"
8077309c398aSmrg		fi
8078309c398aSmrg	fi
8079309c398aSmrg
8080309c398aSmrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8081309c398aSmrgelse
8082309c398aSmrg{ $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
8083309c398aSmrg$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;}
8084309c398aSmrg
8085309c398aSmrg
8086309c398aSmrg
8087309c398aSmrg
8088309c398aSmrg
8089309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8090309c398aSmrg
8091309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
8092309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8093309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8094309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8095309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8096309c398aSmrg  $as_echo_n "(cached) " >&6
8097309c398aSmrgelse
8098309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099309c398aSmrg/* end confdefs.h.  */
8100309c398aSmrgint i;
8101309c398aSmrg_ACEOF
8102309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
8103309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8104309c398aSmrgelse
8105309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8106309c398aSmrgfi
8107309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108309c398aSmrgfi
8109309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8110309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8111309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8112309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8113309c398aSmrgfi
8114309c398aSmrg
8115309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8116309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8117309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8118309c398aSmrg	fi
8119309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8120309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8121309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8122309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8123309c398aSmrg  $as_echo_n "(cached) " >&6
8124309c398aSmrgelse
8125309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126309c398aSmrg/* end confdefs.h.  */
8127309c398aSmrgint i;
8128309c398aSmrg_ACEOF
8129309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
8130309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8131309c398aSmrgelse
8132309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8133309c398aSmrgfi
8134309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135309c398aSmrgfi
8136309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8137309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8138309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8139309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8140309c398aSmrgfi
8141309c398aSmrg
8142309c398aSmrgfound="no"
8143309c398aSmrg
8144309c398aSmrg	if test $found = "no" ; then
8145309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8146309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8147309c398aSmrg		fi
8148309c398aSmrg
8149309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8150309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8151309c398aSmrg		fi
8152309c398aSmrg
8153309c398aSmrg		CFLAGS="$CFLAGS -Wimplicit"
8154309c398aSmrg
8155309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8156309c398aSmrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8157309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wimplicit`
8158309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8159309c398aSmrg  $as_echo_n "(cached) " >&6
8160309c398aSmrgelse
8161309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162309c398aSmrg/* end confdefs.h.  */
8163309c398aSmrgint i;
8164309c398aSmrgint
8165309c398aSmrgmain ()
8166309c398aSmrg{
8167309c398aSmrg
8168309c398aSmrg  ;
8169309c398aSmrg  return 0;
8170309c398aSmrg}
8171309c398aSmrg_ACEOF
8172309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
8173309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8174309c398aSmrgelse
8175309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8176309c398aSmrgfi
8177309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
8178309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
8179309c398aSmrgfi
8180309c398aSmrg
8181309c398aSmrg
8182309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8183309c398aSmrg
8184309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8185309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8186309c398aSmrg$as_echo "$supported" >&6; }
8187309c398aSmrg		if test "$supported" = "yes" ; then
8188309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8189309c398aSmrg			found="yes"
8190309c398aSmrg		fi
8191309c398aSmrg	fi
8192309c398aSmrg
8193309c398aSmrg
8194309c398aSmrg
8195309c398aSmrg
8196309c398aSmrg
8197309c398aSmrg
8198309c398aSmrg
8199309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8200309c398aSmrg
8201309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
8202309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8203309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8204309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8205309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8206309c398aSmrg  $as_echo_n "(cached) " >&6
8207309c398aSmrgelse
8208309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209309c398aSmrg/* end confdefs.h.  */
8210309c398aSmrgint i;
8211309c398aSmrg_ACEOF
8212309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
8213309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8214309c398aSmrgelse
8215309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8216309c398aSmrgfi
8217309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218309c398aSmrgfi
8219309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8220309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8221309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8222309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8223309c398aSmrgfi
8224309c398aSmrg
8225309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8226309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8227309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8228309c398aSmrg	fi
8229309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8230309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8231309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8232309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8233309c398aSmrg  $as_echo_n "(cached) " >&6
8234309c398aSmrgelse
8235309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236309c398aSmrg/* end confdefs.h.  */
8237309c398aSmrgint i;
8238309c398aSmrg_ACEOF
8239309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
8240309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8241309c398aSmrgelse
8242309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8243309c398aSmrgfi
8244309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245309c398aSmrgfi
8246309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8247309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8248309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8249309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8250309c398aSmrgfi
8251309c398aSmrg
8252309c398aSmrgfound="no"
8253309c398aSmrg
8254309c398aSmrg	if test $found = "no" ; then
8255309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8256309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8257309c398aSmrg		fi
8258309c398aSmrg
8259309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8260309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8261309c398aSmrg		fi
8262309c398aSmrg
8263309c398aSmrg		CFLAGS="$CFLAGS -Wnonnull"
8264309c398aSmrg
8265309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8266309c398aSmrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8267309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnonnull`
8268309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8269309c398aSmrg  $as_echo_n "(cached) " >&6
8270309c398aSmrgelse
8271309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272309c398aSmrg/* end confdefs.h.  */
8273309c398aSmrgint i;
8274309c398aSmrgint
8275309c398aSmrgmain ()
8276309c398aSmrg{
8277309c398aSmrg
8278309c398aSmrg  ;
8279309c398aSmrg  return 0;
8280309c398aSmrg}
8281309c398aSmrg_ACEOF
8282309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
8283309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8284309c398aSmrgelse
8285309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8286309c398aSmrgfi
8287309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
8288309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
8289309c398aSmrgfi
8290309c398aSmrg
8291309c398aSmrg
8292309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8293309c398aSmrg
8294309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8295309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8296309c398aSmrg$as_echo "$supported" >&6; }
8297309c398aSmrg		if test "$supported" = "yes" ; then
8298309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8299309c398aSmrg			found="yes"
8300309c398aSmrg		fi
8301309c398aSmrg	fi
8302309c398aSmrg
8303309c398aSmrg
8304309c398aSmrg
8305309c398aSmrg
8306309c398aSmrg
8307309c398aSmrg
8308309c398aSmrg
8309309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8310309c398aSmrg
8311309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
8312309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8313309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8314309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8315309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8316309c398aSmrg  $as_echo_n "(cached) " >&6
8317309c398aSmrgelse
8318309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319309c398aSmrg/* end confdefs.h.  */
8320309c398aSmrgint i;
8321309c398aSmrg_ACEOF
8322309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
8323309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8324309c398aSmrgelse
8325309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8326309c398aSmrgfi
8327309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328309c398aSmrgfi
8329309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8330309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8331309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8332309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8333309c398aSmrgfi
8334309c398aSmrg
8335309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8336309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8337309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8338309c398aSmrg	fi
8339309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8340309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8341309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8342309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8343309c398aSmrg  $as_echo_n "(cached) " >&6
8344309c398aSmrgelse
8345309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346309c398aSmrg/* end confdefs.h.  */
8347309c398aSmrgint i;
8348309c398aSmrg_ACEOF
8349309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
8350309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8351309c398aSmrgelse
8352309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8353309c398aSmrgfi
8354309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8355309c398aSmrgfi
8356309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8357309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8358309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8359309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8360309c398aSmrgfi
8361309c398aSmrg
8362309c398aSmrgfound="no"
8363309c398aSmrg
8364309c398aSmrg	if test $found = "no" ; then
8365309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8366309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8367309c398aSmrg		fi
8368309c398aSmrg
8369309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8370309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8371309c398aSmrg		fi
8372309c398aSmrg
8373309c398aSmrg		CFLAGS="$CFLAGS -Winit-self"
8374309c398aSmrg
8375309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8376309c398aSmrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8377309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Winit-self`
8378309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8379309c398aSmrg  $as_echo_n "(cached) " >&6
8380309c398aSmrgelse
8381309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382309c398aSmrg/* end confdefs.h.  */
8383309c398aSmrgint i;
8384309c398aSmrgint
8385309c398aSmrgmain ()
8386309c398aSmrg{
8387309c398aSmrg
8388309c398aSmrg  ;
8389309c398aSmrg  return 0;
8390309c398aSmrg}
8391309c398aSmrg_ACEOF
8392309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
8393309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8394309c398aSmrgelse
8395309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8396309c398aSmrgfi
8397309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
8398309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
8399309c398aSmrgfi
8400309c398aSmrg
8401309c398aSmrg
8402309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8403309c398aSmrg
8404309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8405309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8406309c398aSmrg$as_echo "$supported" >&6; }
8407309c398aSmrg		if test "$supported" = "yes" ; then
8408309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8409309c398aSmrg			found="yes"
8410309c398aSmrg		fi
8411309c398aSmrg	fi
8412309c398aSmrg
8413309c398aSmrg
8414309c398aSmrg
8415309c398aSmrg
8416309c398aSmrg
8417309c398aSmrg
8418309c398aSmrg
8419309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8420309c398aSmrg
8421309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
8422309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8423309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8424309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8425309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8426309c398aSmrg  $as_echo_n "(cached) " >&6
8427309c398aSmrgelse
8428309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429309c398aSmrg/* end confdefs.h.  */
8430309c398aSmrgint i;
8431309c398aSmrg_ACEOF
8432309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
8433309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8434309c398aSmrgelse
8435309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8436309c398aSmrgfi
8437309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438309c398aSmrgfi
8439309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8440309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8441309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8442309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8443309c398aSmrgfi
8444309c398aSmrg
8445309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8446309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8447309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8448309c398aSmrg	fi
8449309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8450309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8451309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8452309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8453309c398aSmrg  $as_echo_n "(cached) " >&6
8454309c398aSmrgelse
8455309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456309c398aSmrg/* end confdefs.h.  */
8457309c398aSmrgint i;
8458309c398aSmrg_ACEOF
8459309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
8460309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8461309c398aSmrgelse
8462309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8463309c398aSmrgfi
8464309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8465309c398aSmrgfi
8466309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8467309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8468309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8469309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8470309c398aSmrgfi
8471309c398aSmrg
8472309c398aSmrgfound="no"
8473309c398aSmrg
8474309c398aSmrg	if test $found = "no" ; then
8475309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8476309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8477309c398aSmrg		fi
8478309c398aSmrg
8479309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8480309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8481309c398aSmrg		fi
8482309c398aSmrg
8483309c398aSmrg		CFLAGS="$CFLAGS -Wmain"
8484309c398aSmrg
8485309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8486309c398aSmrg$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8487309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmain`
8488309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8489309c398aSmrg  $as_echo_n "(cached) " >&6
8490309c398aSmrgelse
8491309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492309c398aSmrg/* end confdefs.h.  */
8493309c398aSmrgint i;
8494309c398aSmrgint
8495309c398aSmrgmain ()
8496309c398aSmrg{
8497309c398aSmrg
8498309c398aSmrg  ;
8499309c398aSmrg  return 0;
8500309c398aSmrg}
8501309c398aSmrg_ACEOF
8502309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
8503309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8504309c398aSmrgelse
8505309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8506309c398aSmrgfi
8507309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
8508309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
8509309c398aSmrgfi
8510309c398aSmrg
8511309c398aSmrg
8512309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8513309c398aSmrg
8514309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8515309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8516309c398aSmrg$as_echo "$supported" >&6; }
8517309c398aSmrg		if test "$supported" = "yes" ; then
8518309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8519309c398aSmrg			found="yes"
8520309c398aSmrg		fi
8521309c398aSmrg	fi
8522309c398aSmrg
8523309c398aSmrg
8524309c398aSmrg
8525309c398aSmrg
8526309c398aSmrg
8527309c398aSmrg
8528309c398aSmrg
8529309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8530309c398aSmrg
8531309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
8532309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8533309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8534309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8535309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8536309c398aSmrg  $as_echo_n "(cached) " >&6
8537309c398aSmrgelse
8538309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539309c398aSmrg/* end confdefs.h.  */
8540309c398aSmrgint i;
8541309c398aSmrg_ACEOF
8542309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
8543309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8544309c398aSmrgelse
8545309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8546309c398aSmrgfi
8547309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548309c398aSmrgfi
8549309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8550309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8551309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8552309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8553309c398aSmrgfi
8554309c398aSmrg
8555309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8556309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8557309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8558309c398aSmrg	fi
8559309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8560309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8561309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8562309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8563309c398aSmrg  $as_echo_n "(cached) " >&6
8564309c398aSmrgelse
8565309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566309c398aSmrg/* end confdefs.h.  */
8567309c398aSmrgint i;
8568309c398aSmrg_ACEOF
8569309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
8570309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8571309c398aSmrgelse
8572309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8573309c398aSmrgfi
8574309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8575309c398aSmrgfi
8576309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8577309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8578309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8579309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8580309c398aSmrgfi
8581309c398aSmrg
8582309c398aSmrgfound="no"
8583309c398aSmrg
8584309c398aSmrg	if test $found = "no" ; then
8585309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8586309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8587309c398aSmrg		fi
8588309c398aSmrg
8589309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8590309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8591309c398aSmrg		fi
8592309c398aSmrg
8593309c398aSmrg		CFLAGS="$CFLAGS -Wmissing-braces"
8594309c398aSmrg
8595309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8596309c398aSmrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8597309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-braces`
8598309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8599309c398aSmrg  $as_echo_n "(cached) " >&6
8600309c398aSmrgelse
8601309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602309c398aSmrg/* end confdefs.h.  */
8603309c398aSmrgint i;
8604309c398aSmrgint
8605309c398aSmrgmain ()
8606309c398aSmrg{
8607309c398aSmrg
8608309c398aSmrg  ;
8609309c398aSmrg  return 0;
8610309c398aSmrg}
8611309c398aSmrg_ACEOF
8612309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
8613309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8614309c398aSmrgelse
8615309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8616309c398aSmrgfi
8617309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
8618309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
8619309c398aSmrgfi
8620309c398aSmrg
8621309c398aSmrg
8622309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8623309c398aSmrg
8624309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8625309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8626309c398aSmrg$as_echo "$supported" >&6; }
8627309c398aSmrg		if test "$supported" = "yes" ; then
8628309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8629309c398aSmrg			found="yes"
8630309c398aSmrg		fi
8631309c398aSmrg	fi
8632309c398aSmrg
8633309c398aSmrg
8634309c398aSmrg
8635309c398aSmrg
8636309c398aSmrg
8637309c398aSmrg
8638309c398aSmrg
8639309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8640309c398aSmrg
8641309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
8642309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8643309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8644309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8645309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8646309c398aSmrg  $as_echo_n "(cached) " >&6
8647309c398aSmrgelse
8648309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649309c398aSmrg/* end confdefs.h.  */
8650309c398aSmrgint i;
8651309c398aSmrg_ACEOF
8652309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
8653309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8654309c398aSmrgelse
8655309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8656309c398aSmrgfi
8657309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8658309c398aSmrgfi
8659309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8660309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8661309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8662309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8663309c398aSmrgfi
8664309c398aSmrg
8665309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8666309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8667309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8668309c398aSmrg	fi
8669309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8670309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8671309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8672309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8673309c398aSmrg  $as_echo_n "(cached) " >&6
8674309c398aSmrgelse
8675309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676309c398aSmrg/* end confdefs.h.  */
8677309c398aSmrgint i;
8678309c398aSmrg_ACEOF
8679309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
8680309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8681309c398aSmrgelse
8682309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8683309c398aSmrgfi
8684309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8685309c398aSmrgfi
8686309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8687309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8688309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8689309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8690309c398aSmrgfi
8691309c398aSmrg
8692309c398aSmrgfound="no"
8693309c398aSmrg
8694309c398aSmrg	if test $found = "no" ; then
8695309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8696309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8697309c398aSmrg		fi
8698309c398aSmrg
8699309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8700309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8701309c398aSmrg		fi
8702309c398aSmrg
8703309c398aSmrg		CFLAGS="$CFLAGS -Wsequence-point"
8704309c398aSmrg
8705309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8706309c398aSmrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8707309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wsequence-point`
8708309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8709309c398aSmrg  $as_echo_n "(cached) " >&6
8710309c398aSmrgelse
8711309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712309c398aSmrg/* end confdefs.h.  */
8713309c398aSmrgint i;
8714309c398aSmrgint
8715309c398aSmrgmain ()
8716309c398aSmrg{
8717309c398aSmrg
8718309c398aSmrg  ;
8719309c398aSmrg  return 0;
8720309c398aSmrg}
8721309c398aSmrg_ACEOF
8722309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
8723309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8724309c398aSmrgelse
8725309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8726309c398aSmrgfi
8727309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
8728309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
8729309c398aSmrgfi
8730309c398aSmrg
8731309c398aSmrg
8732309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8733309c398aSmrg
8734309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8735309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8736309c398aSmrg$as_echo "$supported" >&6; }
8737309c398aSmrg		if test "$supported" = "yes" ; then
8738309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8739309c398aSmrg			found="yes"
8740309c398aSmrg		fi
8741309c398aSmrg	fi
8742309c398aSmrg
8743309c398aSmrg
8744309c398aSmrg
8745309c398aSmrg
8746309c398aSmrg
8747309c398aSmrg
8748309c398aSmrg
8749309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8750309c398aSmrg
8751309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
8752309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8753309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8754309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8755309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8756309c398aSmrg  $as_echo_n "(cached) " >&6
8757309c398aSmrgelse
8758309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759309c398aSmrg/* end confdefs.h.  */
8760309c398aSmrgint i;
8761309c398aSmrg_ACEOF
8762309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
8763309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8764309c398aSmrgelse
8765309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8766309c398aSmrgfi
8767309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768309c398aSmrgfi
8769309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8770309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8771309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8772309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8773309c398aSmrgfi
8774309c398aSmrg
8775309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8776309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8777309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8778309c398aSmrg	fi
8779309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8780309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8781309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8782309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8783309c398aSmrg  $as_echo_n "(cached) " >&6
8784309c398aSmrgelse
8785309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786309c398aSmrg/* end confdefs.h.  */
8787309c398aSmrgint i;
8788309c398aSmrg_ACEOF
8789309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
8790309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8791309c398aSmrgelse
8792309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8793309c398aSmrgfi
8794309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8795309c398aSmrgfi
8796309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8797309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8798309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8799309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8800309c398aSmrgfi
8801309c398aSmrg
8802309c398aSmrgfound="no"
8803309c398aSmrg
8804309c398aSmrg	if test $found = "no" ; then
8805309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8806309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8807309c398aSmrg		fi
8808309c398aSmrg
8809309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8810309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8811309c398aSmrg		fi
8812309c398aSmrg
8813309c398aSmrg		CFLAGS="$CFLAGS -Wreturn-type"
8814309c398aSmrg
8815309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8816309c398aSmrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8817309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wreturn-type`
8818309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8819309c398aSmrg  $as_echo_n "(cached) " >&6
8820309c398aSmrgelse
8821309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822309c398aSmrg/* end confdefs.h.  */
8823309c398aSmrgint i;
8824309c398aSmrgint
8825309c398aSmrgmain ()
8826309c398aSmrg{
8827309c398aSmrg
8828309c398aSmrg  ;
8829309c398aSmrg  return 0;
8830309c398aSmrg}
8831309c398aSmrg_ACEOF
8832309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
8833309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8834309c398aSmrgelse
8835309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8836309c398aSmrgfi
8837309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
8838309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
8839309c398aSmrgfi
8840309c398aSmrg
8841309c398aSmrg
8842309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8843309c398aSmrg
8844309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8845309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8846309c398aSmrg$as_echo "$supported" >&6; }
8847309c398aSmrg		if test "$supported" = "yes" ; then
8848309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8849309c398aSmrg			found="yes"
8850309c398aSmrg		fi
8851309c398aSmrg	fi
8852309c398aSmrg
8853309c398aSmrg
8854309c398aSmrg
8855309c398aSmrg
8856309c398aSmrg
8857309c398aSmrg
8858309c398aSmrg
8859309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8860309c398aSmrg
8861309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
8862309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8863309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8864309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8865309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8866309c398aSmrg  $as_echo_n "(cached) " >&6
8867309c398aSmrgelse
8868309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869309c398aSmrg/* end confdefs.h.  */
8870309c398aSmrgint i;
8871309c398aSmrg_ACEOF
8872309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
8873309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8874309c398aSmrgelse
8875309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8876309c398aSmrgfi
8877309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878309c398aSmrgfi
8879309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8880309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8881309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8882309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8883309c398aSmrgfi
8884309c398aSmrg
8885309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8886309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8887309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8888309c398aSmrg	fi
8889309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8890309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8891309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8892309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8893309c398aSmrg  $as_echo_n "(cached) " >&6
8894309c398aSmrgelse
8895309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896309c398aSmrg/* end confdefs.h.  */
8897309c398aSmrgint i;
8898309c398aSmrg_ACEOF
8899309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
8900309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8901309c398aSmrgelse
8902309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8903309c398aSmrgfi
8904309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905309c398aSmrgfi
8906309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8907309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8908309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8909309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8910309c398aSmrgfi
8911309c398aSmrg
8912309c398aSmrgfound="no"
8913309c398aSmrg
8914309c398aSmrg	if test $found = "no" ; then
8915309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8916309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8917309c398aSmrg		fi
8918309c398aSmrg
8919309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8920309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8921309c398aSmrg		fi
8922309c398aSmrg
8923309c398aSmrg		CFLAGS="$CFLAGS -Wtrigraphs"
8924309c398aSmrg
8925309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8926309c398aSmrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8927309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wtrigraphs`
8928309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8929309c398aSmrg  $as_echo_n "(cached) " >&6
8930309c398aSmrgelse
8931309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932309c398aSmrg/* end confdefs.h.  */
8933309c398aSmrgint i;
8934309c398aSmrgint
8935309c398aSmrgmain ()
8936309c398aSmrg{
8937309c398aSmrg
8938309c398aSmrg  ;
8939309c398aSmrg  return 0;
8940309c398aSmrg}
8941309c398aSmrg_ACEOF
8942309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
8943309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8944309c398aSmrgelse
8945309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8946309c398aSmrgfi
8947309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
8948309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
8949309c398aSmrgfi
8950309c398aSmrg
8951309c398aSmrg
8952309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8953309c398aSmrg
8954309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8955309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8956309c398aSmrg$as_echo "$supported" >&6; }
8957309c398aSmrg		if test "$supported" = "yes" ; then
8958309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8959309c398aSmrg			found="yes"
8960309c398aSmrg		fi
8961309c398aSmrg	fi
8962309c398aSmrg
8963309c398aSmrg
8964309c398aSmrg
8965309c398aSmrg
8966309c398aSmrg
8967309c398aSmrg
8968309c398aSmrg
8969309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8970309c398aSmrg
8971309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
8972309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8973309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8974309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8975309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8976309c398aSmrg  $as_echo_n "(cached) " >&6
8977309c398aSmrgelse
8978309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979309c398aSmrg/* end confdefs.h.  */
8980309c398aSmrgint i;
8981309c398aSmrg_ACEOF
8982309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
8983309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8984309c398aSmrgelse
8985309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8986309c398aSmrgfi
8987309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988309c398aSmrgfi
8989309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8990309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8991309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8992309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8993309c398aSmrgfi
8994309c398aSmrg
8995309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8996309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8997309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998309c398aSmrg	fi
8999309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9000309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9001309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9002309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9003309c398aSmrg  $as_echo_n "(cached) " >&6
9004309c398aSmrgelse
9005309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006309c398aSmrg/* end confdefs.h.  */
9007309c398aSmrgint i;
9008309c398aSmrg_ACEOF
9009309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
9010309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9011309c398aSmrgelse
9012309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9013309c398aSmrgfi
9014309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9015309c398aSmrgfi
9016309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9017309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9018309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9019309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9020309c398aSmrgfi
9021309c398aSmrg
9022309c398aSmrgfound="no"
9023309c398aSmrg
9024309c398aSmrg	if test $found = "no" ; then
9025309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9026309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9027309c398aSmrg		fi
9028309c398aSmrg
9029309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9030309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9031309c398aSmrg		fi
9032309c398aSmrg
9033309c398aSmrg		CFLAGS="$CFLAGS -Warray-bounds"
9034309c398aSmrg
9035309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9036309c398aSmrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9037309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Warray-bounds`
9038309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9039309c398aSmrg  $as_echo_n "(cached) " >&6
9040309c398aSmrgelse
9041309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042309c398aSmrg/* end confdefs.h.  */
9043309c398aSmrgint i;
9044309c398aSmrgint
9045309c398aSmrgmain ()
9046309c398aSmrg{
9047309c398aSmrg
9048309c398aSmrg  ;
9049309c398aSmrg  return 0;
9050309c398aSmrg}
9051309c398aSmrg_ACEOF
9052309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
9053309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9054309c398aSmrgelse
9055309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9056309c398aSmrgfi
9057309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
9058309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
9059309c398aSmrgfi
9060309c398aSmrg
9061309c398aSmrg
9062309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9063309c398aSmrg
9064309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9065309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9066309c398aSmrg$as_echo "$supported" >&6; }
9067309c398aSmrg		if test "$supported" = "yes" ; then
9068309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9069309c398aSmrg			found="yes"
9070309c398aSmrg		fi
9071309c398aSmrg	fi
9072309c398aSmrg
9073309c398aSmrg
9074309c398aSmrg
9075309c398aSmrg
9076309c398aSmrg
9077309c398aSmrg
9078309c398aSmrg
9079309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9080309c398aSmrg
9081309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
9082309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9083309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9084309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9085309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9086309c398aSmrg  $as_echo_n "(cached) " >&6
9087309c398aSmrgelse
9088309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089309c398aSmrg/* end confdefs.h.  */
9090309c398aSmrgint i;
9091309c398aSmrg_ACEOF
9092309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
9093309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9094309c398aSmrgelse
9095309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9096309c398aSmrgfi
9097309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098309c398aSmrgfi
9099309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9100309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9101309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9102309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9103309c398aSmrgfi
9104309c398aSmrg
9105309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9106309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9107309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108309c398aSmrg	fi
9109309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9110309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9111309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9112309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9113309c398aSmrg  $as_echo_n "(cached) " >&6
9114309c398aSmrgelse
9115309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116309c398aSmrg/* end confdefs.h.  */
9117309c398aSmrgint i;
9118309c398aSmrg_ACEOF
9119309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
9120309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9121309c398aSmrgelse
9122309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9123309c398aSmrgfi
9124309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125309c398aSmrgfi
9126309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9127309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9128309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9129309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9130309c398aSmrgfi
9131309c398aSmrg
9132309c398aSmrgfound="no"
9133309c398aSmrg
9134309c398aSmrg	if test $found = "no" ; then
9135309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9136309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9137309c398aSmrg		fi
9138309c398aSmrg
9139309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9140309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9141309c398aSmrg		fi
9142309c398aSmrg
9143309c398aSmrg		CFLAGS="$CFLAGS -Wwrite-strings"
9144309c398aSmrg
9145309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9146309c398aSmrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9147309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wwrite-strings`
9148309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9149309c398aSmrg  $as_echo_n "(cached) " >&6
9150309c398aSmrgelse
9151309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152309c398aSmrg/* end confdefs.h.  */
9153309c398aSmrgint i;
9154309c398aSmrgint
9155309c398aSmrgmain ()
9156309c398aSmrg{
9157309c398aSmrg
9158309c398aSmrg  ;
9159309c398aSmrg  return 0;
9160309c398aSmrg}
9161309c398aSmrg_ACEOF
9162309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
9163309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9164309c398aSmrgelse
9165309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9166309c398aSmrgfi
9167309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
9168309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
9169309c398aSmrgfi
9170309c398aSmrg
9171309c398aSmrg
9172309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9173309c398aSmrg
9174309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9175309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9176309c398aSmrg$as_echo "$supported" >&6; }
9177309c398aSmrg		if test "$supported" = "yes" ; then
9178309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9179309c398aSmrg			found="yes"
9180309c398aSmrg		fi
9181309c398aSmrg	fi
9182309c398aSmrg
9183309c398aSmrg
9184309c398aSmrg
9185309c398aSmrg
9186309c398aSmrg
9187309c398aSmrg
9188309c398aSmrg
9189309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9190309c398aSmrg
9191309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
9192309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9193309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9194309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9195309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9196309c398aSmrg  $as_echo_n "(cached) " >&6
9197309c398aSmrgelse
9198309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199309c398aSmrg/* end confdefs.h.  */
9200309c398aSmrgint i;
9201309c398aSmrg_ACEOF
9202309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
9203309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9204309c398aSmrgelse
9205309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9206309c398aSmrgfi
9207309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9208309c398aSmrgfi
9209309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9210309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9211309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9212309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9213309c398aSmrgfi
9214309c398aSmrg
9215309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9216309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9217309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9218309c398aSmrg	fi
9219309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9220309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9221309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9222309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9223309c398aSmrg  $as_echo_n "(cached) " >&6
9224309c398aSmrgelse
9225309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226309c398aSmrg/* end confdefs.h.  */
9227309c398aSmrgint i;
9228309c398aSmrg_ACEOF
9229309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
9230309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9231309c398aSmrgelse
9232309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9233309c398aSmrgfi
9234309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235309c398aSmrgfi
9236309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9237309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9238309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9239309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9240309c398aSmrgfi
9241309c398aSmrg
9242309c398aSmrgfound="no"
9243309c398aSmrg
9244309c398aSmrg	if test $found = "no" ; then
9245309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9246309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9247309c398aSmrg		fi
9248309c398aSmrg
9249309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9250309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9251309c398aSmrg		fi
9252309c398aSmrg
9253309c398aSmrg		CFLAGS="$CFLAGS -Waddress"
9254309c398aSmrg
9255309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9256309c398aSmrg$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9257309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Waddress`
9258309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9259309c398aSmrg  $as_echo_n "(cached) " >&6
9260309c398aSmrgelse
9261309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262309c398aSmrg/* end confdefs.h.  */
9263309c398aSmrgint i;
9264309c398aSmrgint
9265309c398aSmrgmain ()
9266309c398aSmrg{
9267309c398aSmrg
9268309c398aSmrg  ;
9269309c398aSmrg  return 0;
9270309c398aSmrg}
9271309c398aSmrg_ACEOF
9272309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
9273309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9274309c398aSmrgelse
9275309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9276309c398aSmrgfi
9277309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
9278309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
9279309c398aSmrgfi
9280309c398aSmrg
9281309c398aSmrg
9282309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9283309c398aSmrg
9284309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9285309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9286309c398aSmrg$as_echo "$supported" >&6; }
9287309c398aSmrg		if test "$supported" = "yes" ; then
9288309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9289309c398aSmrg			found="yes"
9290309c398aSmrg		fi
9291309c398aSmrg	fi
9292309c398aSmrg
9293309c398aSmrg
9294309c398aSmrg
9295309c398aSmrg
9296309c398aSmrg
9297309c398aSmrg
9298309c398aSmrg
9299309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9300309c398aSmrg
9301309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
9302309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9303309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9304309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9305309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9306309c398aSmrg  $as_echo_n "(cached) " >&6
9307309c398aSmrgelse
9308309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309309c398aSmrg/* end confdefs.h.  */
9310309c398aSmrgint i;
9311309c398aSmrg_ACEOF
9312309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
9313309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9314309c398aSmrgelse
9315309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9316309c398aSmrgfi
9317309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9318309c398aSmrgfi
9319309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9320309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9321309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9322309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9323309c398aSmrgfi
9324309c398aSmrg
9325309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9326309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9327309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9328309c398aSmrg	fi
9329309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9330309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9331309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9332309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9333309c398aSmrg  $as_echo_n "(cached) " >&6
9334309c398aSmrgelse
9335309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336309c398aSmrg/* end confdefs.h.  */
9337309c398aSmrgint i;
9338309c398aSmrg_ACEOF
9339309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
9340309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9341309c398aSmrgelse
9342309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9343309c398aSmrgfi
9344309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345309c398aSmrgfi
9346309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9347309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9348309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9349309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9350309c398aSmrgfi
9351309c398aSmrg
9352309c398aSmrgfound="no"
9353309c398aSmrg
9354309c398aSmrg	if test $found = "no" ; then
9355309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9356309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9357309c398aSmrg		fi
9358309c398aSmrg
9359309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9360309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9361309c398aSmrg		fi
9362309c398aSmrg
9363309c398aSmrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9364309c398aSmrg
9365309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9366309c398aSmrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9367309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wint-to-pointer-cast`
9368309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9369309c398aSmrg  $as_echo_n "(cached) " >&6
9370309c398aSmrgelse
9371309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372309c398aSmrg/* end confdefs.h.  */
9373309c398aSmrgint i;
9374309c398aSmrgint
9375309c398aSmrgmain ()
9376309c398aSmrg{
9377309c398aSmrg
9378309c398aSmrg  ;
9379309c398aSmrg  return 0;
9380309c398aSmrg}
9381309c398aSmrg_ACEOF
9382309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
9383309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9384309c398aSmrgelse
9385309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9386309c398aSmrgfi
9387309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
9388309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
9389309c398aSmrgfi
9390309c398aSmrg
9391309c398aSmrg
9392309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9393309c398aSmrg
9394309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9395309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9396309c398aSmrg$as_echo "$supported" >&6; }
9397309c398aSmrg		if test "$supported" = "yes" ; then
9398309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9399309c398aSmrg			found="yes"
9400309c398aSmrg		fi
9401309c398aSmrg	fi
9402309c398aSmrg
9403309c398aSmrg
9404309c398aSmrg
9405309c398aSmrg
9406309c398aSmrg
9407309c398aSmrg
9408309c398aSmrg
9409309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9410309c398aSmrg
9411309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
9412309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9413309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9414309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9415309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9416309c398aSmrg  $as_echo_n "(cached) " >&6
9417309c398aSmrgelse
9418309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9419309c398aSmrg/* end confdefs.h.  */
9420309c398aSmrgint i;
9421309c398aSmrg_ACEOF
9422309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
9423309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9424309c398aSmrgelse
9425309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9426309c398aSmrgfi
9427309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9428309c398aSmrgfi
9429309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9430309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9431309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9432309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9433309c398aSmrgfi
9434309c398aSmrg
9435309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9436309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9437309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9438309c398aSmrg	fi
9439309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9440309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9441309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9442309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9443309c398aSmrg  $as_echo_n "(cached) " >&6
9444309c398aSmrgelse
9445309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446309c398aSmrg/* end confdefs.h.  */
9447309c398aSmrgint i;
9448309c398aSmrg_ACEOF
9449309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
9450309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9451309c398aSmrgelse
9452309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9453309c398aSmrgfi
9454309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9455309c398aSmrgfi
9456309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9457309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9458309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9459309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9460309c398aSmrgfi
9461309c398aSmrg
9462309c398aSmrgfound="no"
9463309c398aSmrg
9464309c398aSmrg	if test $found = "no" ; then
9465309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9466309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9467309c398aSmrg		fi
9468309c398aSmrg
9469309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9470309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9471309c398aSmrg		fi
9472309c398aSmrg
9473309c398aSmrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9474309c398aSmrg
9475309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9476309c398aSmrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9477309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-to-int-cast`
9478309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9479309c398aSmrg  $as_echo_n "(cached) " >&6
9480309c398aSmrgelse
9481309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482309c398aSmrg/* end confdefs.h.  */
9483309c398aSmrgint i;
9484309c398aSmrgint
9485309c398aSmrgmain ()
9486309c398aSmrg{
9487309c398aSmrg
9488309c398aSmrg  ;
9489309c398aSmrg  return 0;
9490309c398aSmrg}
9491309c398aSmrg_ACEOF
9492309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
9493309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9494309c398aSmrgelse
9495309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9496309c398aSmrgfi
9497309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
9498309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
9499309c398aSmrgfi
9500309c398aSmrg
9501309c398aSmrg
9502309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9503309c398aSmrg
9504309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9505309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9506309c398aSmrg$as_echo "$supported" >&6; }
9507309c398aSmrg		if test "$supported" = "yes" ; then
9508309c398aSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9509309c398aSmrg			found="yes"
9510309c398aSmrg		fi
9511309c398aSmrg	fi
9512309c398aSmrg
9513309c398aSmrg
9514309c398aSmrgfi
9515309c398aSmrg
9516309c398aSmrg
9517309c398aSmrg
9518309c398aSmrg
9519309c398aSmrg
9520309c398aSmrg
9521309c398aSmrgCWARNFLAGS="$BASE_CFLAGS"
9522309c398aSmrgif  test "x$GCC" = xyes ; then
9523309c398aSmrg    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9524309c398aSmrgfi
9525309c398aSmrg
9526309c398aSmrg
9527309c398aSmrg
9528309c398aSmrg
9529309c398aSmrg
9530309c398aSmrg
9531309c398aSmrg# Check whether --enable-strict-compilation was given.
9532309c398aSmrgif test "${enable_strict_compilation+set}" = set; then :
9533309c398aSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9534309c398aSmrgelse
9535309c398aSmrg  STRICT_COMPILE=no
9536309c398aSmrgfi
9537309c398aSmrg
9538309c398aSmrg
9539309c398aSmrgSTRICT_CFLAGS=""
9540309c398aSmrg
9541309c398aSmrg
9542309c398aSmrg
9543309c398aSmrg
9544309c398aSmrg
9545309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9546309c398aSmrg
9547309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
9548309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9549309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9550309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9551309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9552309c398aSmrg  $as_echo_n "(cached) " >&6
9553309c398aSmrgelse
9554309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555309c398aSmrg/* end confdefs.h.  */
9556309c398aSmrgint i;
9557309c398aSmrg_ACEOF
9558309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
9559309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9560309c398aSmrgelse
9561309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9562309c398aSmrgfi
9563309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564309c398aSmrgfi
9565309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9566309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9567309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9568309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9569309c398aSmrgfi
9570309c398aSmrg
9571309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9572309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9573309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9574309c398aSmrg	fi
9575309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9576309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9577309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9578309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9579309c398aSmrg  $as_echo_n "(cached) " >&6
9580309c398aSmrgelse
9581309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582309c398aSmrg/* end confdefs.h.  */
9583309c398aSmrgint i;
9584309c398aSmrg_ACEOF
9585309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
9586309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9587309c398aSmrgelse
9588309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9589309c398aSmrgfi
9590309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9591309c398aSmrgfi
9592309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9593309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9594309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9595309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9596309c398aSmrgfi
9597309c398aSmrg
9598309c398aSmrgfound="no"
9599309c398aSmrg
9600309c398aSmrg	if test $found = "no" ; then
9601309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9602309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9603309c398aSmrg		fi
9604309c398aSmrg
9605309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9606309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9607309c398aSmrg		fi
9608309c398aSmrg
9609309c398aSmrg		CFLAGS="$CFLAGS -pedantic"
9610309c398aSmrg
9611309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9612309c398aSmrg$as_echo_n "checking if $CC supports -pedantic... " >&6; }
9613309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-pedantic`
9614309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9615309c398aSmrg  $as_echo_n "(cached) " >&6
9616309c398aSmrgelse
9617309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618309c398aSmrg/* end confdefs.h.  */
9619309c398aSmrgint i;
9620309c398aSmrgint
9621309c398aSmrgmain ()
9622309c398aSmrg{
9623309c398aSmrg
9624309c398aSmrg  ;
9625309c398aSmrg  return 0;
9626309c398aSmrg}
9627309c398aSmrg_ACEOF
9628309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
9629309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9630309c398aSmrgelse
9631309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9632309c398aSmrgfi
9633309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
9634309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
9635309c398aSmrgfi
9636309c398aSmrg
9637309c398aSmrg
9638309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9639309c398aSmrg
9640309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9641309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9642309c398aSmrg$as_echo "$supported" >&6; }
9643309c398aSmrg		if test "$supported" = "yes" ; then
9644309c398aSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9645309c398aSmrg			found="yes"
9646309c398aSmrg		fi
9647309c398aSmrg	fi
9648309c398aSmrg
9649309c398aSmrg
9650309c398aSmrg
9651309c398aSmrg
9652309c398aSmrg
9653309c398aSmrg
9654309c398aSmrg
9655309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9656309c398aSmrg
9657309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
9658309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9659309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9660309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9661309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9662309c398aSmrg  $as_echo_n "(cached) " >&6
9663309c398aSmrgelse
9664309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665309c398aSmrg/* end confdefs.h.  */
9666309c398aSmrgint i;
9667309c398aSmrg_ACEOF
9668309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
9669309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9670309c398aSmrgelse
9671309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9672309c398aSmrgfi
9673309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9674309c398aSmrgfi
9675309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9676309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9677309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9678309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9679309c398aSmrgfi
9680309c398aSmrg
9681309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9682309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9683309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9684309c398aSmrg	fi
9685309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9686309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9687309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9688309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9689309c398aSmrg  $as_echo_n "(cached) " >&6
9690309c398aSmrgelse
9691309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692309c398aSmrg/* end confdefs.h.  */
9693309c398aSmrgint i;
9694309c398aSmrg_ACEOF
9695309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
9696309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9697309c398aSmrgelse
9698309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9699309c398aSmrgfi
9700309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9701309c398aSmrgfi
9702309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9703309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9704309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9705309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9706309c398aSmrgfi
9707309c398aSmrg
9708309c398aSmrgfound="no"
9709309c398aSmrg
9710309c398aSmrg	if test $found = "no" ; then
9711309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9712309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9713309c398aSmrg		fi
9714309c398aSmrg
9715309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9716309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9717309c398aSmrg		fi
9718309c398aSmrg
9719309c398aSmrg		CFLAGS="$CFLAGS -Werror"
9720309c398aSmrg
9721309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
9722309c398aSmrg$as_echo_n "checking if $CC supports -Werror... " >&6; }
9723309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror`
9724309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9725309c398aSmrg  $as_echo_n "(cached) " >&6
9726309c398aSmrgelse
9727309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728309c398aSmrg/* end confdefs.h.  */
9729309c398aSmrgint i;
9730309c398aSmrgint
9731309c398aSmrgmain ()
9732309c398aSmrg{
9733309c398aSmrg
9734309c398aSmrg  ;
9735309c398aSmrg  return 0;
9736309c398aSmrg}
9737309c398aSmrg_ACEOF
9738309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
9739309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9740309c398aSmrgelse
9741309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9742309c398aSmrgfi
9743309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
9744309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
9745309c398aSmrgfi
9746309c398aSmrg
9747309c398aSmrg
9748309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9749309c398aSmrg
9750309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9751309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9752309c398aSmrg$as_echo "$supported" >&6; }
9753309c398aSmrg		if test "$supported" = "yes" ; then
9754309c398aSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9755309c398aSmrg			found="yes"
9756309c398aSmrg		fi
9757309c398aSmrg	fi
9758309c398aSmrg
9759309c398aSmrg	if test $found = "no" ; then
9760309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9761309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9762309c398aSmrg		fi
9763309c398aSmrg
9764309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9765309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9766309c398aSmrg		fi
9767309c398aSmrg
9768309c398aSmrg		CFLAGS="$CFLAGS -errwarn"
9769309c398aSmrg
9770309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
9771309c398aSmrg$as_echo_n "checking if $CC supports -errwarn... " >&6; }
9772309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn`
9773309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9774309c398aSmrg  $as_echo_n "(cached) " >&6
9775309c398aSmrgelse
9776309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777309c398aSmrg/* end confdefs.h.  */
9778309c398aSmrgint i;
9779309c398aSmrgint
9780309c398aSmrgmain ()
9781309c398aSmrg{
9782309c398aSmrg
9783309c398aSmrg  ;
9784309c398aSmrg  return 0;
9785309c398aSmrg}
9786309c398aSmrg_ACEOF
9787309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
9788309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9789309c398aSmrgelse
9790309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9791309c398aSmrgfi
9792309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
9793309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
9794309c398aSmrgfi
9795309c398aSmrg
9796309c398aSmrg
9797309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9798309c398aSmrg
9799309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9800309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9801309c398aSmrg$as_echo "$supported" >&6; }
9802309c398aSmrg		if test "$supported" = "yes" ; then
9803309c398aSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9804309c398aSmrg			found="yes"
9805309c398aSmrg		fi
9806309c398aSmrg	fi
9807309c398aSmrg
9808309c398aSmrg
9809309c398aSmrg
9810309c398aSmrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9811309c398aSmrg# activate it with -Werror, so we add it here explicitly.
9812309c398aSmrg
9813309c398aSmrg
9814309c398aSmrg
9815309c398aSmrg
9816309c398aSmrg
9817309c398aSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9818309c398aSmrg
9819309c398aSmrgif test "x$xorg_testset_unknown_warning_option" = "x" ; then
9820309c398aSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9821309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9822309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9823309c398aSmrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9824309c398aSmrg  $as_echo_n "(cached) " >&6
9825309c398aSmrgelse
9826309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827309c398aSmrg/* end confdefs.h.  */
9828309c398aSmrgint i;
9829309c398aSmrg_ACEOF
9830309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
9831309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9832309c398aSmrgelse
9833309c398aSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9834309c398aSmrgfi
9835309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9836309c398aSmrgfi
9837309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9838309c398aSmrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9839309c398aSmrg	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9840309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9841309c398aSmrgfi
9842309c398aSmrg
9843309c398aSmrgif test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9844309c398aSmrg	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9845309c398aSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9846309c398aSmrg	fi
9847309c398aSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9848309c398aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9849309c398aSmrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9850309c398aSmrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9851309c398aSmrg  $as_echo_n "(cached) " >&6
9852309c398aSmrgelse
9853309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854309c398aSmrg/* end confdefs.h.  */
9855309c398aSmrgint i;
9856309c398aSmrg_ACEOF
9857309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
9858309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9859309c398aSmrgelse
9860309c398aSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9861309c398aSmrgfi
9862309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9863309c398aSmrgfi
9864309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9865309c398aSmrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9866309c398aSmrg	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9867309c398aSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9868309c398aSmrgfi
9869309c398aSmrg
9870309c398aSmrgfound="no"
9871309c398aSmrg
9872309c398aSmrg	if test $found = "no" ; then
9873309c398aSmrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9874309c398aSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9875309c398aSmrg		fi
9876309c398aSmrg
9877309c398aSmrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9878309c398aSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9879309c398aSmrg		fi
9880309c398aSmrg
9881309c398aSmrg		CFLAGS="$CFLAGS -Werror=attributes"
9882309c398aSmrg
9883309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9884309c398aSmrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9885309c398aSmrg		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=attributes`
9886309c398aSmrg		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9887309c398aSmrg  $as_echo_n "(cached) " >&6
9888309c398aSmrgelse
9889309c398aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890309c398aSmrg/* end confdefs.h.  */
9891309c398aSmrgint i;
9892309c398aSmrgint
9893309c398aSmrgmain ()
9894309c398aSmrg{
9895309c398aSmrg
9896309c398aSmrg  ;
9897309c398aSmrg  return 0;
9898309c398aSmrg}
9899309c398aSmrg_ACEOF
9900309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
9901309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9902309c398aSmrgelse
9903309c398aSmrg  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9904309c398aSmrgfi
9905309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
9906309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
9907309c398aSmrgfi
9908309c398aSmrg
9909309c398aSmrg
9910309c398aSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9911309c398aSmrg
9912309c398aSmrg		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9913309c398aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9914309c398aSmrg$as_echo "$supported" >&6; }
9915309c398aSmrg		if test "$supported" = "yes" ; then
9916309c398aSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9917309c398aSmrg			found="yes"
9918309c398aSmrg		fi
9919309c398aSmrg	fi
9920309c398aSmrg
9921309c398aSmrg
9922309c398aSmrg
9923309c398aSmrgif test "x$STRICT_COMPILE" = "xyes"; then
9924309c398aSmrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9925309c398aSmrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9926309c398aSmrgfi
9927309c398aSmrg
9928309c398aSmrg
9929309c398aSmrg
9930309c398aSmrg
9931309c398aSmrg
9932309c398aSmrg
9933309c398aSmrgcat >>confdefs.h <<_ACEOF
9934309c398aSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9935309c398aSmrg_ACEOF
9936309c398aSmrg
9937309c398aSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9938309c398aSmrg	if test "x$PVM" = "x"; then
9939309c398aSmrg		PVM="0"
9940309c398aSmrg	fi
9941309c398aSmrg
9942309c398aSmrgcat >>confdefs.h <<_ACEOF
9943309c398aSmrg#define PACKAGE_VERSION_MINOR $PVM
9944309c398aSmrg_ACEOF
9945309c398aSmrg
9946309c398aSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9947309c398aSmrg	if test "x$PVP" = "x"; then
9948309c398aSmrg		PVP="0"
9949309c398aSmrg	fi
9950309c398aSmrg
9951309c398aSmrgcat >>confdefs.h <<_ACEOF
9952309c398aSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
9953309c398aSmrg_ACEOF
9954309c398aSmrg
9955309c398aSmrg
9956309c398aSmrg
9957309c398aSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9958309c398aSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9959309c398aSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9960309c398aSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
9961309c398aSmrg
9962309c398aSmrg
9963309c398aSmrg
9964309c398aSmrg
9965309c398aSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9966309c398aSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9967309c398aSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9968309c398aSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9969309c398aSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9970309c398aSmrg
9971309c398aSmrg
9972309c398aSmrg
9973309c398aSmrg
9974309c398aSmrg
9975309c398aSmrg
9976309c398aSmrgif test x$APP_MAN_SUFFIX = x    ; then
9977309c398aSmrg    APP_MAN_SUFFIX=1
9978309c398aSmrgfi
9979309c398aSmrgif test x$APP_MAN_DIR = x    ; then
9980309c398aSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9981309c398aSmrgfi
9982309c398aSmrg
9983309c398aSmrgif test x$LIB_MAN_SUFFIX = x    ; then
9984309c398aSmrg    LIB_MAN_SUFFIX=3
9985309c398aSmrgfi
9986309c398aSmrgif test x$LIB_MAN_DIR = x    ; then
9987309c398aSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9988309c398aSmrgfi
9989309c398aSmrg
9990309c398aSmrgif test x$FILE_MAN_SUFFIX = x    ; then
9991309c398aSmrg    case $host_os in
9992309c398aSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
9993309c398aSmrg	*)		FILE_MAN_SUFFIX=5  ;;
9994309c398aSmrg    esac
9995309c398aSmrgfi
9996309c398aSmrgif test x$FILE_MAN_DIR = x    ; then
9997309c398aSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9998309c398aSmrgfi
9999309c398aSmrg
10000309c398aSmrgif test x$MISC_MAN_SUFFIX = x    ; then
10001309c398aSmrg    case $host_os in
10002309c398aSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
10003309c398aSmrg	*)		MISC_MAN_SUFFIX=7  ;;
10004309c398aSmrg    esac
10005309c398aSmrgfi
10006309c398aSmrgif test x$MISC_MAN_DIR = x    ; then
10007309c398aSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10008309c398aSmrgfi
10009309c398aSmrg
10010309c398aSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
10011309c398aSmrg    case $host_os in
10012309c398aSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10013309c398aSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
10014309c398aSmrg    esac
10015309c398aSmrgfi
10016309c398aSmrgif test x$DRIVER_MAN_DIR = x    ; then
10017309c398aSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10018309c398aSmrgfi
10019309c398aSmrg
10020309c398aSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
10021309c398aSmrg    case $host_os in
10022309c398aSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10023309c398aSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
10024309c398aSmrg    esac
10025309c398aSmrgfi
10026309c398aSmrgif test x$ADMIN_MAN_DIR = x    ; then
10027309c398aSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10028309c398aSmrgfi
10029309c398aSmrg
10030309c398aSmrg
10031309c398aSmrg
10032309c398aSmrg
10033309c398aSmrg
10034309c398aSmrg
10035309c398aSmrg
10036309c398aSmrg
10037309c398aSmrg
10038309c398aSmrg
10039309c398aSmrg
10040309c398aSmrg
10041309c398aSmrg
10042309c398aSmrg
10043309c398aSmrg
10044309c398aSmrgXORG_MAN_PAGE="X Version 11"
10045309c398aSmrg
10046309c398aSmrgMAN_SUBSTS="\
10047309c398aSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10048309c398aSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10049309c398aSmrg	-e 's|__xservername__|Xorg|g' \
10050309c398aSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
10051309c398aSmrg	-e 's|__projectroot__|\$(prefix)|g' \
10052309c398aSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10053309c398aSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10054309c398aSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10055309c398aSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10056309c398aSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10057309c398aSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10058309c398aSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10059309c398aSmrg
10060309c398aSmrg
10061309c398aSmrg
10062309c398aSmrg# Check whether --enable-silent-rules was given.
10063309c398aSmrgif test "${enable_silent_rules+set}" = set; then :
10064309c398aSmrg  enableval=$enable_silent_rules;
10065309c398aSmrgfi
10066309c398aSmrg
10067309c398aSmrgcase $enable_silent_rules in
10068309c398aSmrgyes) AM_DEFAULT_VERBOSITY=0;;
10069309c398aSmrgno)  AM_DEFAULT_VERBOSITY=1;;
10070309c398aSmrg*)   AM_DEFAULT_VERBOSITY=0;;
10071309c398aSmrgesac
10072309c398aSmrgAM_BACKSLASH='\'
10073309c398aSmrg
10074309c398aSmrg
10075309c398aSmrg
10076309c398aSmrgac_config_headers="$ac_config_headers config.h"
10077309c398aSmrg
10078309c398aSmrg
10079309c398aSmrg
10080309c398aSmrg
10081309c398aSmrgfor ac_func in strlcpy getpid
10082309c398aSmrgdo :
10083309c398aSmrg  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10084309c398aSmrgac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10085309c398aSmrgif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10086309c398aSmrg  cat >>confdefs.h <<_ACEOF
10087309c398aSmrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10088309c398aSmrg_ACEOF
10089309c398aSmrg
10090309c398aSmrgfi
10091309c398aSmrgdone
10092309c398aSmrg
10093309c398aSmrg
10094309c398aSmrg
10095309c398aSmrg      if test "X$prefix" = "XNONE"; then
10096309c398aSmrg    acl_final_prefix="$ac_default_prefix"
10097309c398aSmrg  else
10098309c398aSmrg    acl_final_prefix="$prefix"
10099309c398aSmrg  fi
10100309c398aSmrg  if test "X$exec_prefix" = "XNONE"; then
10101309c398aSmrg    acl_final_exec_prefix='${prefix}'
10102309c398aSmrg  else
10103309c398aSmrg    acl_final_exec_prefix="$exec_prefix"
10104309c398aSmrg  fi
10105309c398aSmrg  acl_save_prefix="$prefix"
10106309c398aSmrg  prefix="$acl_final_prefix"
10107309c398aSmrg  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10108309c398aSmrg  prefix="$acl_save_prefix"
10109309c398aSmrg
10110309c398aSmrg
10111309c398aSmrg# Check whether --with-gnu-ld was given.
10112309c398aSmrgif test "${with_gnu_ld+set}" = set; then :
10113309c398aSmrg  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10114309c398aSmrgelse
10115309c398aSmrg  with_gnu_ld=no
10116309c398aSmrgfi
10117309c398aSmrg
10118309c398aSmrg# Prepare PATH_SEPARATOR.
10119309c398aSmrg# The user is always right.
10120309c398aSmrgif test "${PATH_SEPARATOR+set}" != set; then
10121309c398aSmrg  echo "#! /bin/sh" >conf$$.sh
10122309c398aSmrg  echo  "exit 0"   >>conf$$.sh
10123309c398aSmrg  chmod +x conf$$.sh
10124309c398aSmrg  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10125309c398aSmrg    PATH_SEPARATOR=';'
10126309c398aSmrg  else
10127309c398aSmrg    PATH_SEPARATOR=:
10128309c398aSmrg  fi
10129309c398aSmrg  rm -f conf$$.sh
10130309c398aSmrgfi
10131309c398aSmrgac_prog=ld
10132309c398aSmrgif test "$GCC" = yes; then
10133309c398aSmrg  # Check if gcc -print-prog-name=ld gives a path.
10134309c398aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10135309c398aSmrg$as_echo_n "checking for ld used by GCC... " >&6; }
10136309c398aSmrg  case $host in
10137309c398aSmrg  *-*-mingw*)
10138309c398aSmrg    # gcc leaves a trailing carriage return which upsets mingw
10139309c398aSmrg    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10140309c398aSmrg  *)
10141309c398aSmrg    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10142309c398aSmrg  esac
10143309c398aSmrg  case $ac_prog in
10144309c398aSmrg    # Accept absolute paths.
10145309c398aSmrg    [\\/]* | [A-Za-z]:[\\/]*)
10146309c398aSmrg      re_direlt='/[^/][^/]*/\.\./'
10147309c398aSmrg      # Canonicalize the path of ld
10148309c398aSmrg      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10149309c398aSmrg      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10150309c398aSmrg	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10151309c398aSmrg      done
10152309c398aSmrg      test -z "$LD" && LD="$ac_prog"
10153309c398aSmrg      ;;
10154309c398aSmrg  "")
10155309c398aSmrg    # If it fails, then pretend we aren't using GCC.
10156309c398aSmrg    ac_prog=ld
10157309c398aSmrg    ;;
10158309c398aSmrg  *)
10159309c398aSmrg    # If it is relative, then search for the first ld in PATH.
10160309c398aSmrg    with_gnu_ld=unknown
10161309c398aSmrg    ;;
10162309c398aSmrg  esac
10163309c398aSmrgelif test "$with_gnu_ld" = yes; then
10164309c398aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10165309c398aSmrg$as_echo_n "checking for GNU ld... " >&6; }
10166309c398aSmrgelse
10167309c398aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10168309c398aSmrg$as_echo_n "checking for non-GNU ld... " >&6; }
10169309c398aSmrgfi
10170309c398aSmrgif ${acl_cv_path_LD+:} false; then :
10171309c398aSmrg  $as_echo_n "(cached) " >&6
10172309c398aSmrgelse
10173309c398aSmrg  if test -z "$LD"; then
10174309c398aSmrg  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10175309c398aSmrg  for ac_dir in $PATH; do
10176309c398aSmrg    test -z "$ac_dir" && ac_dir=.
10177309c398aSmrg    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10178309c398aSmrg      acl_cv_path_LD="$ac_dir/$ac_prog"
10179309c398aSmrg      # Check to see if the program is GNU ld.  I'd rather use --version,
10180309c398aSmrg      # but apparently some GNU ld's only accept -v.
10181309c398aSmrg      # Break only if it was the GNU/non-GNU ld that we prefer.
10182309c398aSmrg      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10183309c398aSmrg      *GNU* | *'with BFD'*)
10184309c398aSmrg	test "$with_gnu_ld" != no && break ;;
10185309c398aSmrg      *)
10186309c398aSmrg	test "$with_gnu_ld" != yes && break ;;
10187309c398aSmrg      esac
10188309c398aSmrg    fi
10189309c398aSmrg  done
10190309c398aSmrg  IFS="$ac_save_ifs"
10191309c398aSmrgelse
10192309c398aSmrg  acl_cv_path_LD="$LD" # Let the user override the test with a path.
10193309c398aSmrgfi
10194309c398aSmrgfi
10195309c398aSmrg
10196309c398aSmrgLD="$acl_cv_path_LD"
10197309c398aSmrgif test -n "$LD"; then
10198309c398aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10199309c398aSmrg$as_echo "$LD" >&6; }
10200309c398aSmrgelse
10201309c398aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202309c398aSmrg$as_echo "no" >&6; }
10203309c398aSmrgfi
10204309c398aSmrgtest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10205309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10206309c398aSmrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10207309c398aSmrgif ${acl_cv_prog_gnu_ld+:} false; then :
10208309c398aSmrg  $as_echo_n "(cached) " >&6
10209309c398aSmrgelse
10210309c398aSmrg  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10211309c398aSmrgcase `$LD -v 2>&1 </dev/null` in
10212309c398aSmrg*GNU* | *'with BFD'*)
10213309c398aSmrg  acl_cv_prog_gnu_ld=yes ;;
10214309c398aSmrg*)
10215309c398aSmrg  acl_cv_prog_gnu_ld=no ;;
102168903d43aSmrgesac
102178903d43aSmrgfi
10218309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10219309c398aSmrg$as_echo "$acl_cv_prog_gnu_ld" >&6; }
10220309c398aSmrgwith_gnu_ld=$acl_cv_prog_gnu_ld
102218903d43aSmrg
102228903d43aSmrg
102238903d43aSmrg
10224309c398aSmrg
10225309c398aSmrg                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10226309c398aSmrg$as_echo_n "checking for shared library run path origin... " >&6; }
10227309c398aSmrgif ${acl_cv_rpath+:} false; then :
102288903d43aSmrg  $as_echo_n "(cached) " >&6
102298903d43aSmrgelse
102308903d43aSmrg
10231309c398aSmrg    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10232309c398aSmrg    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10233309c398aSmrg    . ./conftest.sh
10234309c398aSmrg    rm -f ./conftest.sh
10235309c398aSmrg    acl_cv_rpath=done
10236309c398aSmrg
10237309c398aSmrgfi
10238309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10239309c398aSmrg$as_echo "$acl_cv_rpath" >&6; }
10240309c398aSmrg  wl="$acl_cv_wl"
10241309c398aSmrg  libext="$acl_cv_libext"
10242309c398aSmrg  shlibext="$acl_cv_shlibext"
10243309c398aSmrg  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10244309c398aSmrg  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10245309c398aSmrg  hardcode_direct="$acl_cv_hardcode_direct"
10246309c398aSmrg  hardcode_minus_L="$acl_cv_hardcode_minus_L"
10247309c398aSmrg    # Check whether --enable-rpath was given.
10248309c398aSmrgif test "${enable_rpath+set}" = set; then :
10249309c398aSmrg  enableval=$enable_rpath; :
10250309c398aSmrgelse
10251309c398aSmrg  enable_rpath=yes
10252309c398aSmrgfi
10253309c398aSmrg
10254309c398aSmrg
10255309c398aSmrg
10256309c398aSmrg                  acl_libdirstem=lib
10257309c398aSmrg  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
10258309c398aSmrg  if test -n "$searchpath"; then
10259309c398aSmrg    acl_save_IFS="${IFS= 	}"; IFS=":"
10260309c398aSmrg    for searchdir in $searchpath; do
10261309c398aSmrg      if test -d "$searchdir"; then
10262309c398aSmrg        case "$searchdir" in
10263309c398aSmrg          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
10264309c398aSmrg          *) searchdir=`cd "$searchdir" && pwd`
10265309c398aSmrg             case "$searchdir" in
10266309c398aSmrg               */lib64 ) acl_libdirstem=lib64 ;;
10267309c398aSmrg             esac ;;
10268309c398aSmrg        esac
10269309c398aSmrg      fi
10270309c398aSmrg    done
10271309c398aSmrg    IFS="$acl_save_IFS"
102728903d43aSmrg  fi
102738903d43aSmrg
102748903d43aSmrg
10275309c398aSmrg
10276309c398aSmrg
10277309c398aSmrg
10278309c398aSmrg
10279309c398aSmrg
10280309c398aSmrg
10281309c398aSmrg    use_additional=yes
10282309c398aSmrg
10283309c398aSmrg  acl_save_prefix="$prefix"
10284309c398aSmrg  prefix="$acl_final_prefix"
10285309c398aSmrg  acl_save_exec_prefix="$exec_prefix"
10286309c398aSmrg  exec_prefix="$acl_final_exec_prefix"
10287309c398aSmrg
10288309c398aSmrg    eval additional_includedir=\"$includedir\"
10289309c398aSmrg    eval additional_libdir=\"$libdir\"
10290309c398aSmrg
10291309c398aSmrg  exec_prefix="$acl_save_exec_prefix"
10292309c398aSmrg  prefix="$acl_save_prefix"
10293309c398aSmrg
10294309c398aSmrg
10295309c398aSmrg# Check whether --with-libiconv-prefix was given.
10296309c398aSmrgif test "${with_libiconv_prefix+set}" = set; then :
10297309c398aSmrg  withval=$with_libiconv_prefix;
10298309c398aSmrg    if test "X$withval" = "Xno"; then
10299309c398aSmrg      use_additional=no
10300309c398aSmrg    else
10301309c398aSmrg      if test "X$withval" = "X"; then
10302309c398aSmrg
10303309c398aSmrg  acl_save_prefix="$prefix"
10304309c398aSmrg  prefix="$acl_final_prefix"
10305309c398aSmrg  acl_save_exec_prefix="$exec_prefix"
10306309c398aSmrg  exec_prefix="$acl_final_exec_prefix"
10307309c398aSmrg
10308309c398aSmrg          eval additional_includedir=\"$includedir\"
10309309c398aSmrg          eval additional_libdir=\"$libdir\"
10310309c398aSmrg
10311309c398aSmrg  exec_prefix="$acl_save_exec_prefix"
10312309c398aSmrg  prefix="$acl_save_prefix"
10313309c398aSmrg
103148903d43aSmrg      else
10315309c398aSmrg        additional_includedir="$withval/include"
10316309c398aSmrg        additional_libdir="$withval/$acl_libdirstem"
103178903d43aSmrg      fi
103188903d43aSmrg    fi
103198903d43aSmrg
103208903d43aSmrgfi
103218903d43aSmrg
10322309c398aSmrg      LIBICONV=
10323309c398aSmrg  LTLIBICONV=
10324309c398aSmrg  INCICONV=
10325309c398aSmrg  rpathdirs=
10326309c398aSmrg  ltrpathdirs=
10327309c398aSmrg  names_already_handled=
10328309c398aSmrg  names_next_round='iconv '
10329309c398aSmrg  while test -n "$names_next_round"; do
10330309c398aSmrg    names_this_round="$names_next_round"
10331309c398aSmrg    names_next_round=
10332309c398aSmrg    for name in $names_this_round; do
10333309c398aSmrg      already_handled=
10334309c398aSmrg      for n in $names_already_handled; do
10335309c398aSmrg        if test "$n" = "$name"; then
10336309c398aSmrg          already_handled=yes
10337309c398aSmrg          break
10338309c398aSmrg        fi
10339309c398aSmrg      done
10340309c398aSmrg      if test -z "$already_handled"; then
10341309c398aSmrg        names_already_handled="$names_already_handled $name"
10342309c398aSmrg                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10343309c398aSmrg        eval value=\"\$HAVE_LIB$uppername\"
10344309c398aSmrg        if test -n "$value"; then
10345309c398aSmrg          if test "$value" = yes; then
10346309c398aSmrg            eval value=\"\$LIB$uppername\"
10347309c398aSmrg            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10348309c398aSmrg            eval value=\"\$LTLIB$uppername\"
10349309c398aSmrg            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10350309c398aSmrg          else
10351309c398aSmrg                                    :
10352309c398aSmrg          fi
10353309c398aSmrg        else
10354309c398aSmrg                              found_dir=
10355309c398aSmrg          found_la=
10356309c398aSmrg          found_so=
10357309c398aSmrg          found_a=
10358309c398aSmrg          if test $use_additional = yes; then
10359309c398aSmrg            if test -n "$shlibext" \
10360309c398aSmrg               && { test -f "$additional_libdir/lib$name.$shlibext" \
10361309c398aSmrg                    || { test "$shlibext" = dll \
10362309c398aSmrg                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
10363309c398aSmrg              found_dir="$additional_libdir"
10364309c398aSmrg              if test -f "$additional_libdir/lib$name.$shlibext"; then
10365309c398aSmrg                found_so="$additional_libdir/lib$name.$shlibext"
10366309c398aSmrg              else
10367309c398aSmrg                found_so="$additional_libdir/lib$name.dll.a"
10368309c398aSmrg              fi
10369309c398aSmrg              if test -f "$additional_libdir/lib$name.la"; then
10370309c398aSmrg                found_la="$additional_libdir/lib$name.la"
10371309c398aSmrg              fi
10372309c398aSmrg            else
10373309c398aSmrg              if test -f "$additional_libdir/lib$name.$libext"; then
10374309c398aSmrg                found_dir="$additional_libdir"
10375309c398aSmrg                found_a="$additional_libdir/lib$name.$libext"
10376309c398aSmrg                if test -f "$additional_libdir/lib$name.la"; then
10377309c398aSmrg                  found_la="$additional_libdir/lib$name.la"
10378309c398aSmrg                fi
10379309c398aSmrg              fi
10380309c398aSmrg            fi
10381309c398aSmrg          fi
10382309c398aSmrg          if test "X$found_dir" = "X"; then
10383309c398aSmrg            for x in $LDFLAGS $LTLIBICONV; do
10384309c398aSmrg
10385309c398aSmrg  acl_save_prefix="$prefix"
10386309c398aSmrg  prefix="$acl_final_prefix"
10387309c398aSmrg  acl_save_exec_prefix="$exec_prefix"
10388309c398aSmrg  exec_prefix="$acl_final_exec_prefix"
10389309c398aSmrg  eval x=\"$x\"
10390309c398aSmrg  exec_prefix="$acl_save_exec_prefix"
10391309c398aSmrg  prefix="$acl_save_prefix"
10392309c398aSmrg
10393309c398aSmrg              case "$x" in
10394309c398aSmrg                -L*)
10395309c398aSmrg                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10396309c398aSmrg                  if test -n "$shlibext" \
10397309c398aSmrg                     && { test -f "$dir/lib$name.$shlibext" \
10398309c398aSmrg                          || { test "$shlibext" = dll \
10399309c398aSmrg                               && test -f "$dir/lib$name.dll.a"; }; }; then
10400309c398aSmrg                    found_dir="$dir"
10401309c398aSmrg                    if test -f "$dir/lib$name.$shlibext"; then
10402309c398aSmrg                      found_so="$dir/lib$name.$shlibext"
10403309c398aSmrg                    else
10404309c398aSmrg                      found_so="$dir/lib$name.dll.a"
10405309c398aSmrg                    fi
10406309c398aSmrg                    if test -f "$dir/lib$name.la"; then
10407309c398aSmrg                      found_la="$dir/lib$name.la"
10408309c398aSmrg                    fi
10409309c398aSmrg                  else
10410309c398aSmrg                    if test -f "$dir/lib$name.$libext"; then
10411309c398aSmrg                      found_dir="$dir"
10412309c398aSmrg                      found_a="$dir/lib$name.$libext"
10413309c398aSmrg                      if test -f "$dir/lib$name.la"; then
10414309c398aSmrg                        found_la="$dir/lib$name.la"
10415309c398aSmrg                      fi
10416309c398aSmrg                    fi
10417309c398aSmrg                  fi
10418309c398aSmrg                  ;;
10419309c398aSmrg              esac
10420309c398aSmrg              if test "X$found_dir" != "X"; then
10421309c398aSmrg                break
10422309c398aSmrg              fi
10423309c398aSmrg            done
10424309c398aSmrg          fi
10425309c398aSmrg          if test "X$found_dir" != "X"; then
10426309c398aSmrg                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10427309c398aSmrg            if test "X$found_so" != "X"; then
10428309c398aSmrg                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
10429309c398aSmrg                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10430309c398aSmrg              else
10431309c398aSmrg                                                                                haveit=
10432309c398aSmrg                for x in $ltrpathdirs; do
10433309c398aSmrg                  if test "X$x" = "X$found_dir"; then
10434309c398aSmrg                    haveit=yes
10435309c398aSmrg                    break
10436309c398aSmrg                  fi
10437309c398aSmrg                done
10438309c398aSmrg                if test -z "$haveit"; then
10439309c398aSmrg                  ltrpathdirs="$ltrpathdirs $found_dir"
10440309c398aSmrg                fi
10441309c398aSmrg                                if test "$hardcode_direct" = yes; then
10442309c398aSmrg                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10443309c398aSmrg                else
10444309c398aSmrg                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10445309c398aSmrg                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10446309c398aSmrg                                                            haveit=
10447309c398aSmrg                    for x in $rpathdirs; do
10448309c398aSmrg                      if test "X$x" = "X$found_dir"; then
10449309c398aSmrg                        haveit=yes
10450309c398aSmrg                        break
10451309c398aSmrg                      fi
10452309c398aSmrg                    done
10453309c398aSmrg                    if test -z "$haveit"; then
10454309c398aSmrg                      rpathdirs="$rpathdirs $found_dir"
10455309c398aSmrg                    fi
10456309c398aSmrg                  else
10457309c398aSmrg                                                                                haveit=
10458309c398aSmrg                    for x in $LDFLAGS $LIBICONV; do
10459309c398aSmrg
10460309c398aSmrg  acl_save_prefix="$prefix"
10461309c398aSmrg  prefix="$acl_final_prefix"
10462309c398aSmrg  acl_save_exec_prefix="$exec_prefix"
10463309c398aSmrg  exec_prefix="$acl_final_exec_prefix"
10464309c398aSmrg  eval x=\"$x\"
10465309c398aSmrg  exec_prefix="$acl_save_exec_prefix"
10466309c398aSmrg  prefix="$acl_save_prefix"
10467309c398aSmrg
10468309c398aSmrg                      if test "X$x" = "X-L$found_dir"; then
10469309c398aSmrg                        haveit=yes
10470309c398aSmrg                        break
10471309c398aSmrg                      fi
10472309c398aSmrg                    done
10473309c398aSmrg                    if test -z "$haveit"; then
10474309c398aSmrg                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10475309c398aSmrg                    fi
10476309c398aSmrg                    if test "$hardcode_minus_L" != no; then
10477309c398aSmrg                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10478309c398aSmrg                    else
10479309c398aSmrg                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10480309c398aSmrg                    fi
10481309c398aSmrg                  fi
10482309c398aSmrg                fi
10483309c398aSmrg              fi
10484309c398aSmrg            else
10485309c398aSmrg              if test "X$found_a" != "X"; then
10486309c398aSmrg                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10487309c398aSmrg              else
10488309c398aSmrg                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10489309c398aSmrg              fi
10490309c398aSmrg            fi
10491309c398aSmrg                        additional_includedir=
10492309c398aSmrg            case "$found_dir" in
10493309c398aSmrg              */$acl_libdirstem | */$acl_libdirstem/)
10494309c398aSmrg                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10495309c398aSmrg                additional_includedir="$basedir/include"
10496309c398aSmrg                ;;
10497309c398aSmrg            esac
10498309c398aSmrg            if test "X$additional_includedir" != "X"; then
10499309c398aSmrg                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
10500309c398aSmrg                haveit=
10501309c398aSmrg                if test "X$additional_includedir" = "X/usr/local/include"; then
10502309c398aSmrg                  if test -n "$GCC"; then
10503309c398aSmrg                    case $host_os in
10504309c398aSmrg                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10505309c398aSmrg                    esac
10506309c398aSmrg                  fi
10507309c398aSmrg                fi
10508309c398aSmrg                if test -z "$haveit"; then
10509309c398aSmrg                  for x in $CPPFLAGS $INCICONV; do
10510309c398aSmrg
10511309c398aSmrg  acl_save_prefix="$prefix"
10512309c398aSmrg  prefix="$acl_final_prefix"
10513309c398aSmrg  acl_save_exec_prefix="$exec_prefix"
10514309c398aSmrg  exec_prefix="$acl_final_exec_prefix"
10515309c398aSmrg  eval x=\"$x\"
10516309c398aSmrg  exec_prefix="$acl_save_exec_prefix"
10517309c398aSmrg  prefix="$acl_save_prefix"
10518309c398aSmrg
10519309c398aSmrg                    if test "X$x" = "X-I$additional_includedir"; then
10520309c398aSmrg                      haveit=yes
10521309c398aSmrg                      break
10522309c398aSmrg                    fi
10523309c398aSmrg                  done
10524309c398aSmrg                  if test -z "$haveit"; then
10525309c398aSmrg                    if test -d "$additional_includedir"; then
10526309c398aSmrg                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10527309c398aSmrg                    fi
10528309c398aSmrg                  fi
10529309c398aSmrg                fi
10530309c398aSmrg              fi
10531309c398aSmrg            fi
10532309c398aSmrg                        if test -n "$found_la"; then
10533309c398aSmrg                                                        save_libdir="$libdir"
10534309c398aSmrg              case "$found_la" in
10535309c398aSmrg                */* | *\\*) . "$found_la" ;;
10536309c398aSmrg                *) . "./$found_la" ;;
10537309c398aSmrg              esac
10538309c398aSmrg              libdir="$save_libdir"
10539309c398aSmrg                            for dep in $dependency_libs; do
10540309c398aSmrg                case "$dep" in
10541309c398aSmrg                  -L*)
10542309c398aSmrg                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10543309c398aSmrg                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
10544309c398aSmrg                      haveit=
10545309c398aSmrg                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
10546309c398aSmrg                        if test -n "$GCC"; then
10547309c398aSmrg                          case $host_os in
10548309c398aSmrg                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10549309c398aSmrg                          esac
10550309c398aSmrg                        fi
10551309c398aSmrg                      fi
10552309c398aSmrg                      if test -z "$haveit"; then
10553309c398aSmrg                        haveit=
10554309c398aSmrg                        for x in $LDFLAGS $LIBICONV; do
10555309c398aSmrg
10556309c398aSmrg  acl_save_prefix="$prefix"
10557309c398aSmrg  prefix="$acl_final_prefix"
10558309c398aSmrg  acl_save_exec_prefix="$exec_prefix"
10559309c398aSmrg  exec_prefix="$acl_final_exec_prefix"
10560309c398aSmrg  eval x=\"$x\"
10561309c398aSmrg  exec_prefix="$acl_save_exec_prefix"
10562309c398aSmrg  prefix="$acl_save_prefix"
10563309c398aSmrg
10564309c398aSmrg                          if test "X$x" = "X-L$additional_libdir"; then
10565309c398aSmrg                            haveit=yes
10566309c398aSmrg                            break
10567309c398aSmrg                          fi
10568309c398aSmrg                        done
10569309c398aSmrg                        if test -z "$haveit"; then
10570309c398aSmrg                          if test -d "$additional_libdir"; then
10571309c398aSmrg                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10572309c398aSmrg                          fi
10573309c398aSmrg                        fi
10574309c398aSmrg                        haveit=
10575309c398aSmrg                        for x in $LDFLAGS $LTLIBICONV; do
10576309c398aSmrg
10577309c398aSmrg  acl_save_prefix="$prefix"
10578309c398aSmrg  prefix="$acl_final_prefix"
10579309c398aSmrg  acl_save_exec_prefix="$exec_prefix"
10580309c398aSmrg  exec_prefix="$acl_final_exec_prefix"
10581309c398aSmrg  eval x=\"$x\"
10582309c398aSmrg  exec_prefix="$acl_save_exec_prefix"
10583309c398aSmrg  prefix="$acl_save_prefix"
10584309c398aSmrg
10585309c398aSmrg                          if test "X$x" = "X-L$additional_libdir"; then
10586309c398aSmrg                            haveit=yes
10587309c398aSmrg                            break
10588309c398aSmrg                          fi
10589309c398aSmrg                        done
10590309c398aSmrg                        if test -z "$haveit"; then
10591309c398aSmrg                          if test -d "$additional_libdir"; then
10592309c398aSmrg                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10593309c398aSmrg                          fi
10594309c398aSmrg                        fi
10595309c398aSmrg                      fi
10596309c398aSmrg                    fi
10597309c398aSmrg                    ;;
10598309c398aSmrg                  -R*)
10599309c398aSmrg                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
10600309c398aSmrg                    if test "$enable_rpath" != no; then
10601309c398aSmrg                                                                  haveit=
10602309c398aSmrg                      for x in $rpathdirs; do
10603309c398aSmrg                        if test "X$x" = "X$dir"; then
10604309c398aSmrg                          haveit=yes
10605309c398aSmrg                          break
10606309c398aSmrg                        fi
10607309c398aSmrg                      done
10608309c398aSmrg                      if test -z "$haveit"; then
10609309c398aSmrg                        rpathdirs="$rpathdirs $dir"
10610309c398aSmrg                      fi
10611309c398aSmrg                                                                  haveit=
10612309c398aSmrg                      for x in $ltrpathdirs; do
10613309c398aSmrg                        if test "X$x" = "X$dir"; then
10614309c398aSmrg                          haveit=yes
10615309c398aSmrg                          break
10616309c398aSmrg                        fi
10617309c398aSmrg                      done
10618309c398aSmrg                      if test -z "$haveit"; then
10619309c398aSmrg                        ltrpathdirs="$ltrpathdirs $dir"
10620309c398aSmrg                      fi
10621309c398aSmrg                    fi
10622309c398aSmrg                    ;;
10623309c398aSmrg                  -l*)
10624309c398aSmrg                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10625309c398aSmrg                    ;;
10626309c398aSmrg                  *.la)
10627309c398aSmrg                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10628309c398aSmrg                    ;;
10629309c398aSmrg                  *)
10630309c398aSmrg                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10631309c398aSmrg                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10632309c398aSmrg                    ;;
10633309c398aSmrg                esac
10634309c398aSmrg              done
10635309c398aSmrg            fi
10636309c398aSmrg          else
10637309c398aSmrg                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10638309c398aSmrg            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10639309c398aSmrg          fi
10640309c398aSmrg        fi
10641309c398aSmrg      fi
10642309c398aSmrg    done
10643309c398aSmrg  done
10644309c398aSmrg  if test "X$rpathdirs" != "X"; then
10645309c398aSmrg    if test -n "$hardcode_libdir_separator"; then
10646309c398aSmrg                        alldirs=
10647309c398aSmrg      for found_dir in $rpathdirs; do
10648309c398aSmrg        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10649309c398aSmrg      done
10650309c398aSmrg            acl_save_libdir="$libdir"
10651309c398aSmrg      libdir="$alldirs"
10652309c398aSmrg      eval flag=\"$hardcode_libdir_flag_spec\"
10653309c398aSmrg      libdir="$acl_save_libdir"
10654309c398aSmrg      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10655309c398aSmrg    else
10656309c398aSmrg            for found_dir in $rpathdirs; do
10657309c398aSmrg        acl_save_libdir="$libdir"
10658309c398aSmrg        libdir="$found_dir"
10659309c398aSmrg        eval flag=\"$hardcode_libdir_flag_spec\"
10660309c398aSmrg        libdir="$acl_save_libdir"
10661309c398aSmrg        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10662309c398aSmrg      done
10663309c398aSmrg    fi
10664309c398aSmrg  fi
10665309c398aSmrg  if test "X$ltrpathdirs" != "X"; then
10666309c398aSmrg            for found_dir in $ltrpathdirs; do
10667309c398aSmrg      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10668309c398aSmrg    done
10669309c398aSmrg  fi
106708903d43aSmrg
10671e9554658Smrg
106728903d43aSmrg
106738903d43aSmrg
106748903d43aSmrg
106758903d43aSmrg
10676309c398aSmrg
10677309c398aSmrg          am_save_CPPFLAGS="$CPPFLAGS"
10678309c398aSmrg
10679309c398aSmrg  for element in $INCICONV; do
10680309c398aSmrg    haveit=
10681309c398aSmrg    for x in $CPPFLAGS; do
10682309c398aSmrg
10683309c398aSmrg  acl_save_prefix="$prefix"
10684309c398aSmrg  prefix="$acl_final_prefix"
10685309c398aSmrg  acl_save_exec_prefix="$exec_prefix"
10686309c398aSmrg  exec_prefix="$acl_final_exec_prefix"
10687309c398aSmrg  eval x=\"$x\"
10688309c398aSmrg  exec_prefix="$acl_save_exec_prefix"
10689309c398aSmrg  prefix="$acl_save_prefix"
10690309c398aSmrg
10691309c398aSmrg      if test "X$x" = "X$element"; then
10692309c398aSmrg        haveit=yes
10693309c398aSmrg        break
10694309c398aSmrg      fi
10695309c398aSmrg    done
10696309c398aSmrg    if test -z "$haveit"; then
10697309c398aSmrg      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10698309c398aSmrg    fi
10699309c398aSmrg  done
10700309c398aSmrg
10701309c398aSmrg
10702309c398aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10703309c398aSmrg$as_echo_n "checking for iconv... " >&6; }
10704309c398aSmrgif ${am_cv_func_iconv+:} false; then :
10705309c398aSmrg  $as_echo_n "(cached) " >&6
10706309c398aSmrgelse
10707309c398aSmrg
10708309c398aSmrg    am_cv_func_iconv="no, consider installing GNU libiconv"
10709309c398aSmrg    am_cv_lib_iconv=no
10710309c398aSmrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711309c398aSmrg/* end confdefs.h.  */
10712309c398aSmrg#include <stdlib.h>
10713309c398aSmrg#include <iconv.h>
10714309c398aSmrgint
10715309c398aSmrgmain ()
10716309c398aSmrg{
10717309c398aSmrgiconv_t cd = iconv_open("","");
10718309c398aSmrg       iconv(cd,NULL,NULL,NULL,NULL);
10719309c398aSmrg       iconv_close(cd);
10720309c398aSmrg  ;
10721309c398aSmrg  return 0;
10722309c398aSmrg}
10723309c398aSmrg_ACEOF
10724309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
10725309c398aSmrg  am_cv_func_iconv=yes
10726309c398aSmrgfi
10727309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
10728309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
10729309c398aSmrg    if test "$am_cv_func_iconv" != yes; then
10730309c398aSmrg      am_save_LIBS="$LIBS"
10731309c398aSmrg      LIBS="$LIBS $LIBICONV"
10732309c398aSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733309c398aSmrg/* end confdefs.h.  */
10734309c398aSmrg#include <stdlib.h>
10735309c398aSmrg#include <iconv.h>
10736309c398aSmrgint
10737309c398aSmrgmain ()
10738309c398aSmrg{
10739309c398aSmrgiconv_t cd = iconv_open("","");
10740309c398aSmrg         iconv(cd,NULL,NULL,NULL,NULL);
10741309c398aSmrg         iconv_close(cd);
10742309c398aSmrg  ;
10743309c398aSmrg  return 0;
10744309c398aSmrg}
10745e9554658Smrg_ACEOF
10746309c398aSmrgif ac_fn_c_try_link "$LINENO"; then :
10747309c398aSmrg  am_cv_lib_iconv=yes
10748309c398aSmrg        am_cv_func_iconv=yes
10749309c398aSmrgfi
10750309c398aSmrgrm -f core conftest.err conftest.$ac_objext \
10751309c398aSmrg    conftest$ac_exeext conftest.$ac_ext
10752309c398aSmrg      LIBS="$am_save_LIBS"
10753309c398aSmrg    fi
10754e9554658Smrg
10755e9554658Smrgfi
10756309c398aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10757309c398aSmrg$as_echo "$am_cv_func_iconv" >&6; }
10758309c398aSmrg  if test "$am_cv_func_iconv" = yes; then
10759309c398aSmrg
10760309c398aSmrg$as_echo "#define HAVE_ICONV 1" >>confdefs.h
10761309c398aSmrg
10762309c398aSmrg  fi
10763309c398aSmrg  if test "$am_cv_lib_iconv" = yes; then
10764309c398aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10765309c398aSmrg$as_echo_n "checking how to link with libiconv... " >&6; }
10766309c398aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10767309c398aSmrg$as_echo "$LIBICONV" >&6; }
10768309c398aSmrg  else
10769309c398aSmrg            CPPFLAGS="$am_save_CPPFLAGS"
10770309c398aSmrg    LIBICONV=
10771309c398aSmrg    LTLIBICONV=
10772309c398aSmrg  fi
10773e9554658Smrg
10774e9554658Smrg
10775309c398aSmrg
10776309c398aSmrg  if test "$am_cv_func_iconv" = yes; then
10777309c398aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10778309c398aSmrg$as_echo_n "checking for iconv declaration... " >&6; }
10779309c398aSmrg    if ${am_cv_proto_iconv+:} false; then :
10780c2b339b4Smrg  $as_echo_n "(cached) " >&6
10781e9554658Smrgelse
10782309c398aSmrg
10783309c398aSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784e9554658Smrg/* end confdefs.h.  */
10785e9554658Smrg
10786309c398aSmrg#include <stdlib.h>
10787309c398aSmrg#include <iconv.h>
10788309c398aSmrgextern
10789e9554658Smrg#ifdef __cplusplus
10790309c398aSmrg"C"
10791e9554658Smrg#endif
10792309c398aSmrg#if defined(__STDC__) || defined(__cplusplus)
10793309c398aSmrgsize_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10794309c398aSmrg#else
10795309c398aSmrgsize_t iconv();
10796309c398aSmrg#endif
10797309c398aSmrg
10798e9554658Smrgint
10799e9554658Smrgmain ()
10800e9554658Smrg{
10801309c398aSmrg
10802e9554658Smrg  ;
10803e9554658Smrg  return 0;
10804e9554658Smrg}
10805e9554658Smrg_ACEOF
10806309c398aSmrgif ac_fn_c_try_compile "$LINENO"; then :
10807309c398aSmrg  am_cv_proto_iconv_arg1=""
10808e9554658Smrgelse
10809309c398aSmrg  am_cv_proto_iconv_arg1="const"
10810e9554658Smrgfi
10811309c398aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10812309c398aSmrg      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10813e9554658Smrgfi
10814e9554658Smrg
10815309c398aSmrg    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10816309c398aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10817309c398aSmrg         }$am_cv_proto_iconv" >&5
10818309c398aSmrg$as_echo "${ac_t:-
10819309c398aSmrg         }$am_cv_proto_iconv" >&6; }
10820c2b339b4Smrg
10821309c398aSmrgcat >>confdefs.h <<_ACEOF
10822309c398aSmrg#define ICONV_CONST $am_cv_proto_iconv_arg1
10823309c398aSmrg_ACEOF
10824309c398aSmrg
10825309c398aSmrg  fi
10826e9554658Smrg
10827e9554658Smrg
10828e9554658Smrg
10829e9554658Smrgpkg_failed=no
108308903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCLOCK" >&5
108318903d43aSmrg$as_echo_n "checking for XCLOCK... " >&6; }
10832c2b339b4Smrg
108338903d43aSmrgif test -n "$XCLOCK_CFLAGS"; then
108348903d43aSmrg    pkg_cv_XCLOCK_CFLAGS="$XCLOCK_CFLAGS"
10835c2b339b4Smrg elif test -n "$PKG_CONFIG"; then
10836c2b339b4Smrg    if test -n "$PKG_CONFIG" && \
108378903d43aSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu x11\""; } >&5
108388903d43aSmrg  ($PKG_CONFIG --exists --print-errors "xaw7 xmu x11") 2>&5
10839e9554658Smrg  ac_status=$?
108408903d43aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
108418903d43aSmrg  test $ac_status = 0; }; then
108428903d43aSmrg  pkg_cv_XCLOCK_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu x11" 2>/dev/null`
10843e9554658Smrgelse
10844e9554658Smrg  pkg_failed=yes
10845e9554658Smrgfi
10846c2b339b4Smrg else
10847c2b339b4Smrg    pkg_failed=untried
10848e9554658Smrgfi
108498903d43aSmrgif test -n "$XCLOCK_LIBS"; then
108508903d43aSmrg    pkg_cv_XCLOCK_LIBS="$XCLOCK_LIBS"
10851c2b339b4Smrg elif test -n "$PKG_CONFIG"; then
10852c2b339b4Smrg    if test -n "$PKG_CONFIG" && \
108538903d43aSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu x11\""; } >&5
108548903d43aSmrg  ($PKG_CONFIG --exists --print-errors "xaw7 xmu x11") 2>&5
10855e9554658Smrg  ac_status=$?
108568903d43aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
108578903d43aSmrg  test $ac_status = 0; }; then
108588903d43aSmrg  pkg_cv_XCLOCK_LIBS=`$PKG_CONFIG --libs "xaw7 xmu x11" 2>/dev/null`
10859e9554658Smrgelse
10860e9554658Smrg  pkg_failed=yes
10861e9554658Smrgfi
10862c2b339b4Smrg else
10863c2b339b4Smrg    pkg_failed=untried
10864e9554658Smrgfi
10865e9554658Smrg
10866c2b339b4Smrg
10867c2b339b4Smrg
10868e9554658Smrgif test $pkg_failed = yes; then
10869e9554658Smrg
10870c2b339b4Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10871c2b339b4Smrg        _pkg_short_errors_supported=yes
10872e9554658Smrgelse
10873c2b339b4Smrg        _pkg_short_errors_supported=no
10874e9554658Smrgfi
10875c2b339b4Smrg        if test $_pkg_short_errors_supported = yes; then
108768903d43aSmrg	        XCLOCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu x11" 2>&1`
10877c2b339b4Smrg        else
108788903d43aSmrg	        XCLOCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu x11" 2>&1`
10879c2b339b4Smrg        fi
10880c2b339b4Smrg	# Put the nasty error message in config.log where it belongs
108818903d43aSmrg	echo "$XCLOCK_PKG_ERRORS" >&5
10882e9554658Smrg
108838903d43aSmrg	as_fn_error $? "Package requirements (xaw7 xmu x11) were not met:
10884e9554658Smrg
108858903d43aSmrg$XCLOCK_PKG_ERRORS
10886e9554658Smrg
10887c2b339b4SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
10888c2b339b4Smrginstalled software in a non-standard prefix.
10889e9554658Smrg
108908903d43aSmrgAlternatively, you may set the environment variables XCLOCK_CFLAGS
108918903d43aSmrgand XCLOCK_LIBS to avoid the need to call pkg-config.
10892c2b339b4SmrgSee the pkg-config man page for more details.
108938903d43aSmrg" "$LINENO" 5
10894c2b339b4Smrgelif test $pkg_failed = untried; then
108958903d43aSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10896c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
108978903d43aSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10898c2b339b4Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
10899c2b339b4Smrgpath to pkg-config.
10900e9554658Smrg
109018903d43aSmrgAlternatively, you may set the environment variables XCLOCK_CFLAGS
109028903d43aSmrgand XCLOCK_LIBS to avoid the need to call pkg-config.
10903c2b339b4SmrgSee the pkg-config man page for more details.
10904c2b339b4Smrg
10905c2b339b4SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
109068903d43aSmrgSee \`config.log' for more details" "$LINENO" 5; }
10907c2b339b4Smrgelse
109088903d43aSmrg	XCLOCK_CFLAGS=$pkg_cv_XCLOCK_CFLAGS
109098903d43aSmrg	XCLOCK_LIBS=$pkg_cv_XCLOCK_LIBS
109108903d43aSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10911c2b339b4Smrg$as_echo "yes" >&6; }
10912c2b339b4Smrg	:
10913c2b339b4Smrgfi
10914309c398aSmrgXCLOCK_LIBS="$XCLOCK_LIBS $LIBICONV"
10915e9554658Smrg
10916e9554658Smrg
10917e9554658Smrg# Check whether --with-xft was given.
109188903d43aSmrgif test "${with_xft+set}" = set; then :
10919e9554658Smrg  withval=$with_xft; use_xft="$withval"
10920e9554658Smrgelse
10921e9554658Smrg  use_xft="try"
10922e9554658Smrgfi
10923e9554658Smrg
10924e9554658Smrgif test x$use_xft != xno ; then
10925e9554658Smrg
10926e9554658Smrgpkg_failed=no
109278903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
10928c2b339b4Smrg$as_echo_n "checking for XFT... " >&6; }
10929c2b339b4Smrg
10930c2b339b4Smrgif test -n "$XFT_CFLAGS"; then
10931c2b339b4Smrg    pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
10932c2b339b4Smrg elif test -n "$PKG_CONFIG"; then
10933c2b339b4Smrg    if test -n "$PKG_CONFIG" && \
109348903d43aSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5
10935e9554658Smrg  ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
10936e9554658Smrg  ac_status=$?
109378903d43aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
109388903d43aSmrg  test $ac_status = 0; }; then
10939e9554658Smrg  pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xrender xft" 2>/dev/null`
10940e9554658Smrgelse
10941e9554658Smrg  pkg_failed=yes
10942e9554658Smrgfi
10943c2b339b4Smrg else
10944c2b339b4Smrg    pkg_failed=untried
10945e9554658Smrgfi
10946c2b339b4Smrgif test -n "$XFT_LIBS"; then
10947c2b339b4Smrg    pkg_cv_XFT_LIBS="$XFT_LIBS"
10948c2b339b4Smrg elif test -n "$PKG_CONFIG"; then
10949c2b339b4Smrg    if test -n "$PKG_CONFIG" && \
109508903d43aSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5
10951e9554658Smrg  ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
10952e9554658Smrg  ac_status=$?
109538903d43aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
109548903d43aSmrg  test $ac_status = 0; }; then
10955e9554658Smrg  pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xrender xft" 2>/dev/null`
10956e9554658Smrgelse
10957e9554658Smrg  pkg_failed=yes
10958e9554658Smrgfi
10959c2b339b4Smrg else
10960c2b339b4Smrg    pkg_failed=untried
10961e9554658Smrgfi
10962e9554658Smrg
10963c2b339b4Smrg
10964c2b339b4Smrg
10965e9554658Smrgif test $pkg_failed = yes; then
10966c2b339b4Smrg
10967c2b339b4Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10968c2b339b4Smrg        _pkg_short_errors_supported=yes
10969c2b339b4Smrgelse
10970c2b339b4Smrg        _pkg_short_errors_supported=no
10971c2b339b4Smrgfi
10972c2b339b4Smrg        if test $_pkg_short_errors_supported = yes; then
10973c2b339b4Smrg	        XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender xft" 2>&1`
10974c2b339b4Smrg        else
10975c2b339b4Smrg	        XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender xft" 2>&1`
10976c2b339b4Smrg        fi
10977e9554658Smrg	# Put the nasty error message in config.log where it belongs
10978c2b339b4Smrg	echo "$XFT_PKG_ERRORS" >&5
10979c2b339b4Smrg
109808903d43aSmrg	as_fn_error $? "Package requirements (xrender xft) were not met:
10981c2b339b4Smrg
10982c2b339b4Smrg$XFT_PKG_ERRORS
10983e9554658Smrg
10984e9554658SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
10985e9554658Smrginstalled software in a non-standard prefix.
10986e9554658Smrg
10987c2b339b4SmrgAlternatively, you may set the environment variables XFT_CFLAGS
10988c2b339b4Smrgand XFT_LIBS to avoid the need to call pkg-config.
10989c2b339b4SmrgSee the pkg-config man page for more details.
109908903d43aSmrg" "$LINENO" 5
10991e9554658Smrgelif test $pkg_failed = untried; then
109928903d43aSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10993c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
109948903d43aSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10995e9554658Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
10996e9554658Smrgpath to pkg-config.
10997e9554658Smrg
10998c2b339b4SmrgAlternatively, you may set the environment variables XFT_CFLAGS
10999c2b339b4Smrgand XFT_LIBS to avoid the need to call pkg-config.
11000c2b339b4SmrgSee the pkg-config man page for more details.
11001e9554658Smrg
11002c2b339b4SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
110038903d43aSmrgSee \`config.log' for more details" "$LINENO" 5; }
11004e9554658Smrgelse
11005e9554658Smrg	XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
11006e9554658Smrg	XFT_LIBS=$pkg_cv_XFT_LIBS
110078903d43aSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11008c2b339b4Smrg$as_echo "yes" >&6; }
11009e9554658Smrg	:
11010e9554658Smrgfi
110118903d43aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
11012c2b339b4Smrg$as_echo_n "checking for library containing sqrt... " >&6; }
110138903d43aSmrgif ${ac_cv_search_sqrt+:} false; then :
11014c2b339b4Smrg  $as_echo_n "(cached) " >&6
11015e9554658Smrgelse
11016e9554658Smrg  ac_func_search_save_LIBS=$LIBS
110178903d43aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018e9554658Smrg/* end confdefs.h.  */
11019e9554658Smrg
11020e9554658Smrg/* Override any GCC internal prototype to avoid an error.
11021e9554658Smrg   Use char because int might match the return type of a GCC
11022e9554658Smrg   builtin and then its argument prototype would still apply.  */
11023e9554658Smrg#ifdef __cplusplus
11024e9554658Smrgextern "C"
11025e9554658Smrg#endif
11026e9554658Smrgchar sqrt ();
11027e9554658Smrgint
11028e9554658Smrgmain ()
11029e9554658Smrg{
11030e9554658Smrgreturn sqrt ();
11031e9554658Smrg  ;
11032e9554658Smrg  return 0;
11033e9554658Smrg}
11034e9554658Smrg_ACEOF
11035e9554658Smrgfor ac_lib in '' m; do
11036e9554658Smrg  if test -z "$ac_lib"; then
11037e9554658Smrg    ac_res="none required"
11038e9554658Smrg  else
11039e9554658Smrg    ac_res=-l$ac_lib
11040e9554658Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11041e9554658Smrg  fi
110428903d43aSmrg  if ac_fn_c_try_link "$LINENO"; then :
11043e9554658Smrg  ac_cv_search_sqrt=$ac_res
11044e9554658Smrgfi
110458903d43aSmrgrm -f core conftest.err conftest.$ac_objext \
110468903d43aSmrg    conftest$ac_exeext
110478903d43aSmrg  if ${ac_cv_search_sqrt+:} false; then :
11048e9554658Smrg  break
11049e9554658Smrgfi
11050e9554658Smrgdone
110518903d43aSmrgif ${ac_cv_search_sqrt+:} false; then :
110528903d43aSmrg
11053e9554658Smrgelse
11054e9554658Smrg  ac_cv_search_sqrt=no
11055e9554658Smrgfi
11056e9554658Smrgrm conftest.$ac_ext
11057e9554658SmrgLIBS=$ac_func_search_save_LIBS
11058e9554658Smrgfi
110598903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
11060c2b339b4Smrg$as_echo "$ac_cv_search_sqrt" >&6; }
11061e9554658Smrgac_res=$ac_cv_search_sqrt
110628903d43aSmrgif test "$ac_res" != no; then :
11063e9554658Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11064e9554658Smrg
11065e9554658Smrgfi
11066e9554658Smrg
11067e9554658Smrg	XCLOCK_CFLAGS="$XCLOCK_CFLAGS $XFT_CFLAGS"
11068e9554658Smrg	XCLOCK_LIBS="$XCLOCK_LIBS $XFT_LIBS"
11069e9554658Smrg
110708903d43aSmrg$as_echo "#define XRENDER 1" >>confdefs.h
11071e9554658Smrg
11072e9554658Smrg
110738903d43aSmrg$as_echo "#define XFREE86_FT2 1" >>confdefs.h
11074e9554658Smrg
11075e9554658Smrgfi
11076e9554658Smrg
11077e9554658Smrg
11078e9554658Smrg# Check whether --with-xkb was given.
110798903d43aSmrgif test "${with_xkb+set}" = set; then :
11080e9554658Smrg  withval=$with_xkb; use_xkb="$withval"
11081e9554658Smrgelse
11082e9554658Smrg  use_xkb="try"
11083e9554658Smrgfi
11084e9554658Smrg
11085e9554658Smrgif test x$use_xkb != xno ; then
11086e9554658Smrg
11087e9554658Smrgpkg_failed=no
110888903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKB" >&5
11089c2b339b4Smrg$as_echo_n "checking for XKB... " >&6; }
11090c2b339b4Smrg
11091c2b339b4Smrgif test -n "$XKB_CFLAGS"; then
11092c2b339b4Smrg    pkg_cv_XKB_CFLAGS="$XKB_CFLAGS"
11093c2b339b4Smrg elif test -n "$PKG_CONFIG"; then
11094c2b339b4Smrg    if test -n "$PKG_CONFIG" && \
110958903d43aSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5
11096e9554658Smrg  ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
11097e9554658Smrg  ac_status=$?
110988903d43aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
110998903d43aSmrg  test $ac_status = 0; }; then
11100e9554658Smrg  pkg_cv_XKB_CFLAGS=`$PKG_CONFIG --cflags "xkbfile" 2>/dev/null`
11101e9554658Smrgelse
11102e9554658Smrg  pkg_failed=yes
11103e9554658Smrgfi
11104c2b339b4Smrg else
11105c2b339b4Smrg    pkg_failed=untried
11106e9554658Smrgfi
11107c2b339b4Smrgif test -n "$XKB_LIBS"; then
11108c2b339b4Smrg    pkg_cv_XKB_LIBS="$XKB_LIBS"
11109c2b339b4Smrg elif test -n "$PKG_CONFIG"; then
11110c2b339b4Smrg    if test -n "$PKG_CONFIG" && \
111118903d43aSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5
11112e9554658Smrg  ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
11113e9554658Smrg  ac_status=$?
111148903d43aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
111158903d43aSmrg  test $ac_status = 0; }; then
11116e9554658Smrg  pkg_cv_XKB_LIBS=`$PKG_CONFIG --libs "xkbfile" 2>/dev/null`
11117e9554658Smrgelse
11118e9554658Smrg  pkg_failed=yes
11119e9554658Smrgfi
11120c2b339b4Smrg else
11121c2b339b4Smrg    pkg_failed=untried
11122e9554658Smrgfi
11123e9554658Smrg
11124e9554658Smrg
11125e9554658Smrg
11126c2b339b4Smrgif test $pkg_failed = yes; then
11127e9554658Smrg
11128c2b339b4Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11129c2b339b4Smrg        _pkg_short_errors_supported=yes
11130e9554658Smrgelse
11131c2b339b4Smrg        _pkg_short_errors_supported=no
11132e9554658Smrgfi
11133c2b339b4Smrg        if test $_pkg_short_errors_supported = yes; then
11134c2b339b4Smrg	        XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xkbfile" 2>&1`
11135c2b339b4Smrg        else
11136c2b339b4Smrg	        XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xkbfile" 2>&1`
11137c2b339b4Smrg        fi
11138e9554658Smrg	# Put the nasty error message in config.log where it belongs
11139c2b339b4Smrg	echo "$XKB_PKG_ERRORS" >&5
11140e9554658Smrg
111418903d43aSmrg	as_fn_error $? "Package requirements (xkbfile) were not met:
11142e9554658Smrg
11143c2b339b4Smrg$XKB_PKG_ERRORS
11144e9554658Smrg
11145c2b339b4SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
11146c2b339b4Smrginstalled software in a non-standard prefix.
11147e9554658Smrg
11148c2b339b4SmrgAlternatively, you may set the environment variables XKB_CFLAGS
11149c2b339b4Smrgand XKB_LIBS to avoid the need to call pkg-config.
11150c2b339b4SmrgSee the pkg-config man page for more details.
111518903d43aSmrg" "$LINENO" 5
11152c2b339b4Smrgelif test $pkg_failed = untried; then
111538903d43aSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11154c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
111558903d43aSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11156c2b339b4Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
11157c2b339b4Smrgpath to pkg-config.
11158e9554658Smrg
11159c2b339b4SmrgAlternatively, you may set the environment variables XKB_CFLAGS
11160c2b339b4Smrgand XKB_LIBS to avoid the need to call pkg-config.
11161c2b339b4SmrgSee the pkg-config man page for more details.
11162e9554658Smrg
11163c2b339b4SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
111648903d43aSmrgSee \`config.log' for more details" "$LINENO" 5; }
11165c2b339b4Smrgelse
11166c2b339b4Smrg	XKB_CFLAGS=$pkg_cv_XKB_CFLAGS
11167c2b339b4Smrg	XKB_LIBS=$pkg_cv_XKB_LIBS
111688903d43aSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11169c2b339b4Smrg$as_echo "yes" >&6; }
11170c2b339b4Smrg	:
11171e9554658Smrgfi
11172c2b339b4Smrg	XCLOCK_CFLAGS="$XCLOCK_CFLAGS $XKB_CFLAGS"
11173c2b339b4Smrg	XCLOCK_LIBS="$XCLOCK_LIBS $XKB_LIBS"
11174e9554658Smrg
111758903d43aSmrg$as_echo "#define XKB 1" >>confdefs.h
11176e9554658Smrg
11177e9554658Smrgfi
11178e9554658Smrg
11179e9554658Smrg
11180e9554658Smrg
11181c2b339b4Smrgpkg_failed=no
111828903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11183c2b339b4Smrg$as_echo_n "checking for APPDEFS... " >&6; }
11184c2b339b4Smrg
11185c2b339b4Smrgif test -n "$APPDEFS_CFLAGS"; then
11186c2b339b4Smrg    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11187c2b339b4Smrg elif test -n "$PKG_CONFIG"; then
11188c2b339b4Smrg    if test -n "$PKG_CONFIG" && \
111898903d43aSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11190c2b339b4Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11191c2b339b4Smrg  ac_status=$?
111928903d43aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
111938903d43aSmrg  test $ac_status = 0; }; then
11194c2b339b4Smrg  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11195c2b339b4Smrgelse
11196c2b339b4Smrg  pkg_failed=yes
11197c2b339b4Smrgfi
11198c2b339b4Smrg else
11199c2b339b4Smrg    pkg_failed=untried
11200c2b339b4Smrgfi
11201c2b339b4Smrgif test -n "$APPDEFS_LIBS"; then
11202c2b339b4Smrg    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11203c2b339b4Smrg elif test -n "$PKG_CONFIG"; then
11204c2b339b4Smrg    if test -n "$PKG_CONFIG" && \
112058903d43aSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11206c2b339b4Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11207c2b339b4Smrg  ac_status=$?
112088903d43aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
112098903d43aSmrg  test $ac_status = 0; }; then
11210c2b339b4Smrg  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11211c2b339b4Smrgelse
11212c2b339b4Smrg  pkg_failed=yes
11213c2b339b4Smrgfi
11214c2b339b4Smrg else
11215c2b339b4Smrg    pkg_failed=untried
11216c2b339b4Smrgfi
11217e9554658Smrg
11218e9554658Smrg
11219e9554658Smrg
11220c2b339b4Smrgif test $pkg_failed = yes; then
11221e9554658Smrg
11222c2b339b4Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11223c2b339b4Smrg        _pkg_short_errors_supported=yes
11224c2b339b4Smrgelse
11225c2b339b4Smrg        _pkg_short_errors_supported=no
11226c2b339b4Smrgfi
11227c2b339b4Smrg        if test $_pkg_short_errors_supported = yes; then
11228c2b339b4Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
11229c2b339b4Smrg        else
11230c2b339b4Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
11231c2b339b4Smrg        fi
11232c2b339b4Smrg	# Put the nasty error message in config.log where it belongs
11233c2b339b4Smrg	echo "$APPDEFS_PKG_ERRORS" >&5
11234e9554658Smrg
112358903d43aSmrg	as_fn_error $? "Package requirements (xt) were not met:
11236e9554658Smrg
11237c2b339b4Smrg$APPDEFS_PKG_ERRORS
11238e9554658Smrg
11239c2b339b4SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
11240c2b339b4Smrginstalled software in a non-standard prefix.
11241e9554658Smrg
11242c2b339b4SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
11243c2b339b4Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
11244c2b339b4SmrgSee the pkg-config man page for more details.
112458903d43aSmrg" "$LINENO" 5
11246c2b339b4Smrgelif test $pkg_failed = untried; then
112478903d43aSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11248c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
112498903d43aSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11250c2b339b4Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
11251c2b339b4Smrgpath to pkg-config.
11252e9554658Smrg
11253c2b339b4SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
11254c2b339b4Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
11255c2b339b4SmrgSee the pkg-config man page for more details.
11256e9554658Smrg
11257c2b339b4SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
112588903d43aSmrgSee \`config.log' for more details" "$LINENO" 5; }
11259c2b339b4Smrgelse
11260c2b339b4Smrg	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11261c2b339b4Smrg	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
112628903d43aSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11263c2b339b4Smrg$as_echo "yes" >&6; }
11264c2b339b4Smrg	:
11265c2b339b4Smrgfi
112668903d43aSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11267e9554658Smrg
11268c2b339b4Smrg# Check whether --with-appdefaultdir was given.
112698903d43aSmrgif test "${with_appdefaultdir+set}" = set; then :
11270c2b339b4Smrg  withval=$with_appdefaultdir; appdefaultdir="$withval"
11271c2b339b4Smrgelse
11272c2b339b4Smrg  appdefaultdir="${xt_appdefaultdir}"
11273c2b339b4Smrgfi
11274e9554658Smrg
11275e9554658Smrg
11276e9554658Smrg
11277309c398aSmrgac_config_files="$ac_config_files Makefile man/Makefile"
11278e9554658Smrg
11279e9554658Smrgcat >confcache <<\_ACEOF
11280e9554658Smrg# This file is a shell script that caches the results of configure
11281e9554658Smrg# tests run on this system so they can be shared between configure
11282e9554658Smrg# scripts and configure runs, see configure's option --config-cache.
11283e9554658Smrg# It is not useful on other systems.  If it contains results you don't
11284e9554658Smrg# want to keep, you may remove or edit it.
11285e9554658Smrg#
11286e9554658Smrg# config.status only pays attention to the cache file if you give it
11287e9554658Smrg# the --recheck option to rerun configure.
11288e9554658Smrg#
11289e9554658Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
11290e9554658Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
11291e9554658Smrg# following values.
11292e9554658Smrg
11293e9554658Smrg_ACEOF
11294e9554658Smrg
11295e9554658Smrg# The following way of writing the cache mishandles newlines in values,
11296e9554658Smrg# but we know of no workaround that is simple, portable, and efficient.
11297e9554658Smrg# So, we kill variables containing newlines.
11298e9554658Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
11299e9554658Smrg# and sets the high bit in the cache file unless we assign to the vars.
11300e9554658Smrg(
11301e9554658Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11302e9554658Smrg    eval ac_val=\$$ac_var
11303e9554658Smrg    case $ac_val in #(
11304e9554658Smrg    *${as_nl}*)
11305e9554658Smrg      case $ac_var in #(
113068903d43aSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11307c2b339b4Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11308e9554658Smrg      esac
11309e9554658Smrg      case $ac_var in #(
11310e9554658Smrg      _ | IFS | as_nl) ;; #(
11311c2b339b4Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
113128903d43aSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
11313e9554658Smrg      esac ;;
11314e9554658Smrg    esac
11315e9554658Smrg  done
11316e9554658Smrg
11317e9554658Smrg  (set) 2>&1 |
11318e9554658Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11319e9554658Smrg    *${as_nl}ac_space=\ *)
113208903d43aSmrg      # `set' does not quote correctly, so add quotes: double-quote
113218903d43aSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
11322e9554658Smrg      sed -n \
11323e9554658Smrg	"s/'/'\\\\''/g;
11324e9554658Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11325e9554658Smrg      ;; #(
11326e9554658Smrg    *)
11327e9554658Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
11328e9554658Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11329e9554658Smrg      ;;
11330e9554658Smrg    esac |
11331e9554658Smrg    sort
11332e9554658Smrg) |
11333e9554658Smrg  sed '
11334e9554658Smrg     /^ac_cv_env_/b end
11335e9554658Smrg     t clear
11336e9554658Smrg     :clear
11337e9554658Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11338e9554658Smrg     t end
11339e9554658Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11340e9554658Smrg     :end' >>confcache
11341e9554658Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11342e9554658Smrg  if test -w "$cache_file"; then
113438903d43aSmrg    if test "x$cache_file" != "x/dev/null"; then
113448903d43aSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11345c2b339b4Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
113468903d43aSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
113478903d43aSmrg	cat confcache >"$cache_file"
113488903d43aSmrg      else
113498903d43aSmrg        case $cache_file in #(
113508903d43aSmrg        */* | ?:*)
113518903d43aSmrg	  mv -f confcache "$cache_file"$$ &&
113528903d43aSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
113538903d43aSmrg        *)
113548903d43aSmrg	  mv -f confcache "$cache_file" ;;
113558903d43aSmrg	esac
113568903d43aSmrg      fi
113578903d43aSmrg    fi
11358e9554658Smrg  else
113598903d43aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11360c2b339b4Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11361e9554658Smrg  fi
11362e9554658Smrgfi
11363e9554658Smrgrm -f confcache
11364e9554658Smrg
11365e9554658Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
11366e9554658Smrg# Let make expand exec_prefix.
11367e9554658Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11368e9554658Smrg
11369e9554658SmrgDEFS=-DHAVE_CONFIG_H
11370e9554658Smrg
11371e9554658Smrgac_libobjs=
11372e9554658Smrgac_ltlibobjs=
113738903d43aSmrgU=
11374e9554658Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11375e9554658Smrg  # 1. Remove the extension, and $U if already installed.
11376e9554658Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11377c2b339b4Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11378e9554658Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11379e9554658Smrg  #    will be set to the directory where LIBOBJS objects are built.
113808903d43aSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
113818903d43aSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11382e9554658Smrgdone
11383e9554658SmrgLIBOBJS=$ac_libobjs
11384e9554658Smrg
11385e9554658SmrgLTLIBOBJS=$ac_ltlibobjs
11386e9554658Smrg
11387e9554658Smrg
11388c2b339b4Smrg if test -n "$EXEEXT"; then
11389c2b339b4Smrg  am__EXEEXT_TRUE=
11390c2b339b4Smrg  am__EXEEXT_FALSE='#'
11391c2b339b4Smrgelse
11392c2b339b4Smrg  am__EXEEXT_TRUE='#'
11393c2b339b4Smrg  am__EXEEXT_FALSE=
11394c2b339b4Smrgfi
11395c2b339b4Smrg
11396e9554658Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
113978903d43aSmrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
113988903d43aSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
11399e9554658Smrgfi
11400e9554658Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
114018903d43aSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
114028903d43aSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
114038903d43aSmrgfi
114048903d43aSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
114058903d43aSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
114068903d43aSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
11407e9554658Smrgfi
11408e9554658Smrg
114098903d43aSmrg: "${CONFIG_STATUS=./config.status}"
11410c2b339b4Smrgac_write_fail=0
11411e9554658Smrgac_clean_files_save=$ac_clean_files
11412e9554658Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
114138903d43aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11414c2b339b4Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
114158903d43aSmrgas_write_fail=0
114168903d43aSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11417e9554658Smrg#! $SHELL
11418e9554658Smrg# Generated by $as_me.
11419e9554658Smrg# Run this file to recreate the current configuration.
11420e9554658Smrg# Compiler output produced by configure, useful for debugging
11421e9554658Smrg# configure, is in config.log if it exists.
11422e9554658Smrg
11423e9554658Smrgdebug=false
11424e9554658Smrgac_cs_recheck=false
11425e9554658Smrgac_cs_silent=false
11426e9554658Smrg
114278903d43aSmrgSHELL=\${CONFIG_SHELL-$SHELL}
114288903d43aSmrgexport SHELL
114298903d43aSmrg_ASEOF
114308903d43aSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
114318903d43aSmrg## -------------------- ##
114328903d43aSmrg## M4sh Initialization. ##
114338903d43aSmrg## -------------------- ##
11434e9554658Smrg
11435e9554658Smrg# Be more Bourne compatible
11436e9554658SmrgDUALCASE=1; export DUALCASE # for MKS sh
114378903d43aSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11438e9554658Smrg  emulate sh
11439e9554658Smrg  NULLCMD=:
11440c2b339b4Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11441e9554658Smrg  # is contrary to our usage.  Disable this feature.
11442e9554658Smrg  alias -g '${1+"$@"}'='"$@"'
11443e9554658Smrg  setopt NO_GLOB_SUBST
11444e9554658Smrgelse
114458903d43aSmrg  case `(set -o) 2>/dev/null` in #(
114468903d43aSmrg  *posix*) :
114478903d43aSmrg    set -o posix ;; #(
114488903d43aSmrg  *) :
114498903d43aSmrg     ;;
11450e9554658Smrgesac
11451e9554658Smrgfi
11452e9554658Smrg
11453e9554658Smrg
11454c2b339b4Smrgas_nl='
11455c2b339b4Smrg'
11456c2b339b4Smrgexport as_nl
11457c2b339b4Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
11458c2b339b4Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11459c2b339b4Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11460c2b339b4Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
114618903d43aSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
114628903d43aSmrg# but without wasting forks for bash or zsh.
114638903d43aSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
114648903d43aSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
114658903d43aSmrg  as_echo='print -r --'
114668903d43aSmrg  as_echo_n='print -rn --'
114678903d43aSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11468c2b339b4Smrg  as_echo='printf %s\n'
11469c2b339b4Smrg  as_echo_n='printf %s'
11470c2b339b4Smrgelse
11471c2b339b4Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11472c2b339b4Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11473c2b339b4Smrg    as_echo_n='/usr/ucb/echo -n'
11474e9554658Smrg  else
11475c2b339b4Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11476c2b339b4Smrg    as_echo_n_body='eval
11477c2b339b4Smrg      arg=$1;
114788903d43aSmrg      case $arg in #(
11479c2b339b4Smrg      *"$as_nl"*)
11480c2b339b4Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
11481c2b339b4Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11482c2b339b4Smrg      esac;
11483c2b339b4Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11484c2b339b4Smrg    '
11485c2b339b4Smrg    export as_echo_n_body
11486c2b339b4Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
11487e9554658Smrg  fi
11488c2b339b4Smrg  export as_echo_body
11489c2b339b4Smrg  as_echo='sh -c $as_echo_body as_echo'
11490c2b339b4Smrgfi
11491c2b339b4Smrg
11492c2b339b4Smrg# The user is always right.
11493c2b339b4Smrgif test "${PATH_SEPARATOR+set}" != set; then
11494c2b339b4Smrg  PATH_SEPARATOR=:
11495c2b339b4Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11496c2b339b4Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11497c2b339b4Smrg      PATH_SEPARATOR=';'
11498c2b339b4Smrg  }
11499e9554658Smrgfi
11500e9554658Smrg
11501e9554658Smrg
11502e9554658Smrg# IFS
11503e9554658Smrg# We need space, tab and new line, in precisely that order.  Quoting is
11504e9554658Smrg# there to prevent editors from complaining about space-tab.
11505e9554658Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11506e9554658Smrg# splitting by setting IFS to empty value.)
11507e9554658SmrgIFS=" ""	$as_nl"
11508e9554658Smrg
11509e9554658Smrg# Find who we are.  Look in the path if we contain no directory separator.
115108903d43aSmrgas_myself=
115118903d43aSmrgcase $0 in #((
11512e9554658Smrg  *[\\/]* ) as_myself=$0 ;;
11513e9554658Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514e9554658Smrgfor as_dir in $PATH
11515e9554658Smrgdo
11516e9554658Smrg  IFS=$as_save_IFS
11517e9554658Smrg  test -z "$as_dir" && as_dir=.
115188903d43aSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115198903d43aSmrg  done
11520e9554658SmrgIFS=$as_save_IFS
11521e9554658Smrg
11522e9554658Smrg     ;;
11523e9554658Smrgesac
11524e9554658Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
11525e9554658Smrg# in which case we are not to be found in the path.
11526e9554658Smrgif test "x$as_myself" = x; then
11527e9554658Smrg  as_myself=$0
11528e9554658Smrgfi
11529e9554658Smrgif test ! -f "$as_myself"; then
11530c2b339b4Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115318903d43aSmrg  exit 1
11532e9554658Smrgfi
11533e9554658Smrg
115348903d43aSmrg# Unset variables that we do not need and which cause bugs (e.g. in
115358903d43aSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115368903d43aSmrg# suppresses any "Segmentation fault" message there.  '((' could
115378903d43aSmrg# trigger a bug in pdksh 5.2.14.
115388903d43aSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
115398903d43aSmrgdo eval test x\${$as_var+set} = xset \
115408903d43aSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11541e9554658Smrgdone
11542e9554658SmrgPS1='$ '
11543e9554658SmrgPS2='> '
11544e9554658SmrgPS4='+ '
11545e9554658Smrg
11546e9554658Smrg# NLS nuisances.
11547c2b339b4SmrgLC_ALL=C
11548c2b339b4Smrgexport LC_ALL
11549c2b339b4SmrgLANGUAGE=C
11550c2b339b4Smrgexport LANGUAGE
11551e9554658Smrg
115528903d43aSmrg# CDPATH.
115538903d43aSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
115548903d43aSmrg
115558903d43aSmrg
115568903d43aSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
115578903d43aSmrg# ----------------------------------------
115588903d43aSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
115598903d43aSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
115608903d43aSmrg# script with STATUS, using 1 if that was 0.
115618903d43aSmrgas_fn_error ()
115628903d43aSmrg{
115638903d43aSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
115648903d43aSmrg  if test "$4"; then
115658903d43aSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
115668903d43aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
115678903d43aSmrg  fi
115688903d43aSmrg  $as_echo "$as_me: error: $2" >&2
115698903d43aSmrg  as_fn_exit $as_status
115708903d43aSmrg} # as_fn_error
115718903d43aSmrg
115728903d43aSmrg
115738903d43aSmrg# as_fn_set_status STATUS
115748903d43aSmrg# -----------------------
115758903d43aSmrg# Set $? to STATUS, without forking.
115768903d43aSmrgas_fn_set_status ()
115778903d43aSmrg{
115788903d43aSmrg  return $1
115798903d43aSmrg} # as_fn_set_status
115808903d43aSmrg
115818903d43aSmrg# as_fn_exit STATUS
115828903d43aSmrg# -----------------
115838903d43aSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
115848903d43aSmrgas_fn_exit ()
115858903d43aSmrg{
115868903d43aSmrg  set +e
115878903d43aSmrg  as_fn_set_status $1
115888903d43aSmrg  exit $1
115898903d43aSmrg} # as_fn_exit
115908903d43aSmrg
115918903d43aSmrg# as_fn_unset VAR
115928903d43aSmrg# ---------------
115938903d43aSmrg# Portably unset VAR.
115948903d43aSmrgas_fn_unset ()
115958903d43aSmrg{
115968903d43aSmrg  { eval $1=; unset $1;}
115978903d43aSmrg}
115988903d43aSmrgas_unset=as_fn_unset
115998903d43aSmrg# as_fn_append VAR VALUE
116008903d43aSmrg# ----------------------
116018903d43aSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
116028903d43aSmrg# advantage of any shell optimizations that allow amortized linear growth over
116038903d43aSmrg# repeated appends, instead of the typical quadratic growth present in naive
116048903d43aSmrg# implementations.
116058903d43aSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
116068903d43aSmrg  eval 'as_fn_append ()
116078903d43aSmrg  {
116088903d43aSmrg    eval $1+=\$2
116098903d43aSmrg  }'
116108903d43aSmrgelse
116118903d43aSmrg  as_fn_append ()
116128903d43aSmrg  {
116138903d43aSmrg    eval $1=\$$1\$2
116148903d43aSmrg  }
116158903d43aSmrgfi # as_fn_append
116168903d43aSmrg
116178903d43aSmrg# as_fn_arith ARG...
116188903d43aSmrg# ------------------
116198903d43aSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
116208903d43aSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
116218903d43aSmrg# must be portable across $(()) and expr.
116228903d43aSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
116238903d43aSmrg  eval 'as_fn_arith ()
116248903d43aSmrg  {
116258903d43aSmrg    as_val=$(( $* ))
116268903d43aSmrg  }'
116278903d43aSmrgelse
116288903d43aSmrg  as_fn_arith ()
116298903d43aSmrg  {
116308903d43aSmrg    as_val=`expr "$@" || test $? -eq 1`
116318903d43aSmrg  }
116328903d43aSmrgfi # as_fn_arith
116338903d43aSmrg
116348903d43aSmrg
11635e9554658Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
11636e9554658Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11637e9554658Smrg  as_expr=expr
11638e9554658Smrgelse
11639e9554658Smrg  as_expr=false
11640e9554658Smrgfi
11641e9554658Smrg
11642e9554658Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11643e9554658Smrg  as_basename=basename
11644e9554658Smrgelse
11645e9554658Smrg  as_basename=false
11646e9554658Smrgfi
11647e9554658Smrg
116488903d43aSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
116498903d43aSmrg  as_dirname=dirname
116508903d43aSmrgelse
116518903d43aSmrg  as_dirname=false
116528903d43aSmrgfi
11653e9554658Smrg
11654e9554658Smrgas_me=`$as_basename -- "$0" ||
11655e9554658Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11656e9554658Smrg	 X"$0" : 'X\(//\)$' \| \
11657e9554658Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11658c2b339b4Smrg$as_echo X/"$0" |
11659e9554658Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
11660e9554658Smrg	    s//\1/
11661e9554658Smrg	    q
11662e9554658Smrg	  }
11663e9554658Smrg	  /^X\/\(\/\/\)$/{
11664e9554658Smrg	    s//\1/
11665e9554658Smrg	    q
11666e9554658Smrg	  }
11667e9554658Smrg	  /^X\/\(\/\).*/{
11668e9554658Smrg	    s//\1/
11669e9554658Smrg	    q
11670e9554658Smrg	  }
11671e9554658Smrg	  s/.*/./; q'`
11672e9554658Smrg
116738903d43aSmrg# Avoid depending upon Character Ranges.
116748903d43aSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
116758903d43aSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
116768903d43aSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
116778903d43aSmrgas_cr_digits='0123456789'
116788903d43aSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
11679e9554658Smrg
11680e9554658SmrgECHO_C= ECHO_N= ECHO_T=
116818903d43aSmrgcase `echo -n x` in #(((((
11682e9554658Smrg-n*)
116838903d43aSmrg  case `echo 'xy\c'` in
11684e9554658Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
116858903d43aSmrg  xy)  ECHO_C='\c';;
116868903d43aSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
116878903d43aSmrg       ECHO_T='	';;
11688e9554658Smrg  esac;;
11689e9554658Smrg*)
11690e9554658Smrg  ECHO_N='-n';;
11691e9554658Smrgesac
11692e9554658Smrg
11693e9554658Smrgrm -f conf$$ conf$$.exe conf$$.file
11694e9554658Smrgif test -d conf$$.dir; then
11695e9554658Smrg  rm -f conf$$.dir/conf$$.file
11696e9554658Smrgelse
11697e9554658Smrg  rm -f conf$$.dir
11698c2b339b4Smrg  mkdir conf$$.dir 2>/dev/null
11699c2b339b4Smrgfi
11700c2b339b4Smrgif (echo >conf$$.file) 2>/dev/null; then
11701c2b339b4Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
11702c2b339b4Smrg    as_ln_s='ln -s'
11703c2b339b4Smrg    # ... but there are two gotchas:
11704c2b339b4Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11705c2b339b4Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11706c2b339b4Smrg    # In both cases, we have to default to `cp -p'.
11707c2b339b4Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11708c2b339b4Smrg      as_ln_s='cp -p'
11709c2b339b4Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
11710c2b339b4Smrg    as_ln_s=ln
11711c2b339b4Smrg  else
11712e9554658Smrg    as_ln_s='cp -p'
11713c2b339b4Smrg  fi
11714e9554658Smrgelse
11715e9554658Smrg  as_ln_s='cp -p'
11716e9554658Smrgfi
11717e9554658Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11718e9554658Smrgrmdir conf$$.dir 2>/dev/null
11719e9554658Smrg
117208903d43aSmrg
117218903d43aSmrg# as_fn_mkdir_p
117228903d43aSmrg# -------------
117238903d43aSmrg# Create "$as_dir" as a directory, including parents if necessary.
117248903d43aSmrgas_fn_mkdir_p ()
117258903d43aSmrg{
117268903d43aSmrg
117278903d43aSmrg  case $as_dir in #(
117288903d43aSmrg  -*) as_dir=./$as_dir;;
117298903d43aSmrg  esac
117308903d43aSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
117318903d43aSmrg    as_dirs=
117328903d43aSmrg    while :; do
117338903d43aSmrg      case $as_dir in #(
117348903d43aSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
117358903d43aSmrg      *) as_qdir=$as_dir;;
117368903d43aSmrg      esac
117378903d43aSmrg      as_dirs="'$as_qdir' $as_dirs"
117388903d43aSmrg      as_dir=`$as_dirname -- "$as_dir" ||
117398903d43aSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
117408903d43aSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
117418903d43aSmrg	 X"$as_dir" : 'X\(//\)$' \| \
117428903d43aSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
117438903d43aSmrg$as_echo X"$as_dir" |
117448903d43aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
117458903d43aSmrg	    s//\1/
117468903d43aSmrg	    q
117478903d43aSmrg	  }
117488903d43aSmrg	  /^X\(\/\/\)[^/].*/{
117498903d43aSmrg	    s//\1/
117508903d43aSmrg	    q
117518903d43aSmrg	  }
117528903d43aSmrg	  /^X\(\/\/\)$/{
117538903d43aSmrg	    s//\1/
117548903d43aSmrg	    q
117558903d43aSmrg	  }
117568903d43aSmrg	  /^X\(\/\).*/{
117578903d43aSmrg	    s//\1/
117588903d43aSmrg	    q
117598903d43aSmrg	  }
117608903d43aSmrg	  s/.*/./; q'`
117618903d43aSmrg      test -d "$as_dir" && break
117628903d43aSmrg    done
117638903d43aSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
117648903d43aSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
117658903d43aSmrg
117668903d43aSmrg
117678903d43aSmrg} # as_fn_mkdir_p
11768e9554658Smrgif mkdir -p . 2>/dev/null; then
117698903d43aSmrg  as_mkdir_p='mkdir -p "$as_dir"'
11770e9554658Smrgelse
11771e9554658Smrg  test -d ./-p && rmdir ./-p
11772e9554658Smrg  as_mkdir_p=false
11773e9554658Smrgfi
11774e9554658Smrg
11775e9554658Smrgif test -x / >/dev/null 2>&1; then
11776e9554658Smrg  as_test_x='test -x'
11777e9554658Smrgelse
11778e9554658Smrg  if ls -dL / >/dev/null 2>&1; then
11779e9554658Smrg    as_ls_L_option=L
11780e9554658Smrg  else
11781e9554658Smrg    as_ls_L_option=
11782e9554658Smrg  fi
11783e9554658Smrg  as_test_x='
11784e9554658Smrg    eval sh -c '\''
11785e9554658Smrg      if test -d "$1"; then
11786c2b339b4Smrg	test -d "$1/.";
11787e9554658Smrg      else
117888903d43aSmrg	case $1 in #(
11789c2b339b4Smrg	-*)set "./$1";;
11790e9554658Smrg	esac;
117918903d43aSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11792e9554658Smrg	???[sx]*):;;*)false;;esac;fi
11793e9554658Smrg    '\'' sh
11794e9554658Smrg  '
11795e9554658Smrgfi
11796e9554658Smrgas_executable_p=$as_test_x
11797e9554658Smrg
11798e9554658Smrg# Sed expression to map a string onto a valid CPP name.
11799e9554658Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11800e9554658Smrg
11801e9554658Smrg# Sed expression to map a string onto a valid variable name.
11802e9554658Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11803e9554658Smrg
11804e9554658Smrg
11805e9554658Smrgexec 6>&1
118068903d43aSmrg## ----------------------------------- ##
118078903d43aSmrg## Main body of $CONFIG_STATUS script. ##
118088903d43aSmrg## ----------------------------------- ##
118098903d43aSmrg_ASEOF
118108903d43aSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11811e9554658Smrg
118128903d43aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
118138903d43aSmrg# Save the log message, to keep $0 and so on meaningful, and to
11814e9554658Smrg# report actual input values of CONFIG_FILES etc. instead of their
11815e9554658Smrg# values after options handling.
11816e9554658Smrgac_log="
11817309c398aSmrgThis file was extended by xclock $as_me 1.0.6, which was
118188903d43aSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
11819e9554658Smrg
11820e9554658Smrg  CONFIG_FILES    = $CONFIG_FILES
11821e9554658Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
11822e9554658Smrg  CONFIG_LINKS    = $CONFIG_LINKS
11823e9554658Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
11824e9554658Smrg  $ $0 $@
11825e9554658Smrg
11826e9554658Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
11827e9554658Smrg"
11828e9554658Smrg
11829e9554658Smrg_ACEOF
11830e9554658Smrg
11831c2b339b4Smrgcase $ac_config_files in *"
11832c2b339b4Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
11833c2b339b4Smrgesac
11834c2b339b4Smrg
11835c2b339b4Smrgcase $ac_config_headers in *"
11836c2b339b4Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11837c2b339b4Smrgesac
11838c2b339b4Smrg
11839c2b339b4Smrg
11840c2b339b4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11841e9554658Smrg# Files that config.status was made for.
11842e9554658Smrgconfig_files="$ac_config_files"
11843e9554658Smrgconfig_headers="$ac_config_headers"
11844e9554658Smrgconfig_commands="$ac_config_commands"
11845e9554658Smrg
11846e9554658Smrg_ACEOF
11847e9554658Smrg
11848c2b339b4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11849e9554658Smrgac_cs_usage="\
118508903d43aSmrg\`$as_me' instantiates files and other configuration actions
118518903d43aSmrgfrom templates according to the current configuration.  Unless the files
118528903d43aSmrgand actions are specified as TAGs, all are instantiated by default.
11853e9554658Smrg
118548903d43aSmrgUsage: $0 [OPTION]... [TAG]...
11855e9554658Smrg
11856e9554658Smrg  -h, --help       print this help, then exit
11857e9554658Smrg  -V, --version    print version number and configuration settings, then exit
118588903d43aSmrg      --config     print configuration, then exit
11859c2b339b4Smrg  -q, --quiet, --silent
11860c2b339b4Smrg                   do not print progress messages
11861e9554658Smrg  -d, --debug      don't remove temporary files
11862e9554658Smrg      --recheck    update $as_me by reconfiguring in the same conditions
11863c2b339b4Smrg      --file=FILE[:TEMPLATE]
11864c2b339b4Smrg                   instantiate the configuration file FILE
11865c2b339b4Smrg      --header=FILE[:TEMPLATE]
11866c2b339b4Smrg                   instantiate the configuration header FILE
11867e9554658Smrg
11868e9554658SmrgConfiguration files:
11869e9554658Smrg$config_files
11870e9554658Smrg
11871e9554658SmrgConfiguration headers:
11872e9554658Smrg$config_headers
11873e9554658Smrg
11874e9554658SmrgConfiguration commands:
11875e9554658Smrg$config_commands
11876e9554658Smrg
118778903d43aSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11878e9554658Smrg
11879e9554658Smrg_ACEOF
11880c2b339b4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
118818903d43aSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11882e9554658Smrgac_cs_version="\\
11883309c398aSmrgxclock config.status 1.0.6
118848903d43aSmrgconfigured by $0, generated by GNU Autoconf 2.68,
118858903d43aSmrg  with options \\"\$ac_cs_config\\"
11886e9554658Smrg
118878903d43aSmrgCopyright (C) 2010 Free Software Foundation, Inc.
11888e9554658SmrgThis config.status script is free software; the Free Software Foundation
11889e9554658Smrggives unlimited permission to copy, distribute and modify it."
11890e9554658Smrg
11891e9554658Smrgac_pwd='$ac_pwd'
11892e9554658Smrgsrcdir='$srcdir'
11893e9554658SmrgINSTALL='$INSTALL'
11894e9554658SmrgMKDIR_P='$MKDIR_P'
11895c2b339b4SmrgAWK='$AWK'
11896c2b339b4Smrgtest -n "\$AWK" || AWK=awk
11897e9554658Smrg_ACEOF
11898e9554658Smrg
11899c2b339b4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11900c2b339b4Smrg# The default lists apply if the user does not specify any file.
11901e9554658Smrgac_need_defaults=:
11902e9554658Smrgwhile test $# != 0
11903e9554658Smrgdo
11904e9554658Smrg  case $1 in
119058903d43aSmrg  --*=?*)
11906e9554658Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11907e9554658Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11908e9554658Smrg    ac_shift=:
11909e9554658Smrg    ;;
119108903d43aSmrg  --*=)
119118903d43aSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
119128903d43aSmrg    ac_optarg=
119138903d43aSmrg    ac_shift=:
119148903d43aSmrg    ;;
11915e9554658Smrg  *)
11916e9554658Smrg    ac_option=$1
11917e9554658Smrg    ac_optarg=$2
11918e9554658Smrg    ac_shift=shift
11919e9554658Smrg    ;;
11920e9554658Smrg  esac
11921e9554658Smrg
11922e9554658Smrg  case $ac_option in
11923e9554658Smrg  # Handling of the options.
11924e9554658Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11925e9554658Smrg    ac_cs_recheck=: ;;
11926e9554658Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11927c2b339b4Smrg    $as_echo "$ac_cs_version"; exit ;;
119288903d43aSmrg  --config | --confi | --conf | --con | --co | --c )
119298903d43aSmrg    $as_echo "$ac_cs_config"; exit ;;
11930e9554658Smrg  --debug | --debu | --deb | --de | --d | -d )
11931e9554658Smrg    debug=: ;;
11932e9554658Smrg  --file | --fil | --fi | --f )
11933e9554658Smrg    $ac_shift
11934c2b339b4Smrg    case $ac_optarg in
11935c2b339b4Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
119368903d43aSmrg    '') as_fn_error $? "missing file argument" ;;
11937c2b339b4Smrg    esac
119388903d43aSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
11939e9554658Smrg    ac_need_defaults=false;;
11940e9554658Smrg  --header | --heade | --head | --hea )
11941e9554658Smrg    $ac_shift
11942c2b339b4Smrg    case $ac_optarg in
11943c2b339b4Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11944c2b339b4Smrg    esac
119458903d43aSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11946e9554658Smrg    ac_need_defaults=false;;
11947e9554658Smrg  --he | --h)
11948e9554658Smrg    # Conflict between --help and --header
119498903d43aSmrg    as_fn_error $? "ambiguous option: \`$1'
119508903d43aSmrgTry \`$0 --help' for more information.";;
11951e9554658Smrg  --help | --hel | -h )
11952c2b339b4Smrg    $as_echo "$ac_cs_usage"; exit ;;
11953e9554658Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11954e9554658Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11955e9554658Smrg    ac_cs_silent=: ;;
11956e9554658Smrg
11957e9554658Smrg  # This is an error.
119588903d43aSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
119598903d43aSmrgTry \`$0 --help' for more information." ;;
11960e9554658Smrg
119618903d43aSmrg  *) as_fn_append ac_config_targets " $1"
11962e9554658Smrg     ac_need_defaults=false ;;
11963e9554658Smrg
11964e9554658Smrg  esac
11965e9554658Smrg  shift
11966e9554658Smrgdone
11967e9554658Smrg
11968e9554658Smrgac_configure_extra_args=
11969e9554658Smrg
11970e9554658Smrgif $ac_cs_silent; then
11971e9554658Smrg  exec 6>/dev/null
11972e9554658Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
11973e9554658Smrgfi
11974e9554658Smrg
11975e9554658Smrg_ACEOF
11976c2b339b4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11977e9554658Smrgif \$ac_cs_recheck; then
11978c2b339b4Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11979c2b339b4Smrg  shift
11980c2b339b4Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11981c2b339b4Smrg  CONFIG_SHELL='$SHELL'
11982e9554658Smrg  export CONFIG_SHELL
11983c2b339b4Smrg  exec "\$@"
11984e9554658Smrgfi
11985e9554658Smrg
11986e9554658Smrg_ACEOF
11987c2b339b4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11988e9554658Smrgexec 5>>config.log
11989e9554658Smrg{
11990e9554658Smrg  echo
11991e9554658Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11992e9554658Smrg## Running $as_me. ##
11993e9554658Smrg_ASBOX
11994c2b339b4Smrg  $as_echo "$ac_log"
11995e9554658Smrg} >&5
11996e9554658Smrg
11997e9554658Smrg_ACEOF
11998c2b339b4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11999e9554658Smrg#
12000e9554658Smrg# INIT-COMMANDS
12001e9554658Smrg#
12002e9554658SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12003e9554658Smrg
12004e9554658Smrg_ACEOF
12005e9554658Smrg
12006c2b339b4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12007e9554658Smrg
12008e9554658Smrg# Handling of arguments.
12009e9554658Smrgfor ac_config_target in $ac_config_targets
12010e9554658Smrgdo
12011e9554658Smrg  case $ac_config_target in
12012e9554658Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
120138903d43aSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12014e9554658Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12015309c398aSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12016e9554658Smrg
120178903d43aSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12018e9554658Smrg  esac
12019e9554658Smrgdone
12020e9554658Smrg
12021e9554658Smrg
12022e9554658Smrg# If the user did not use the arguments to specify the items to instantiate,
12023e9554658Smrg# then the envvar interface is used.  Set only those that are not.
12024e9554658Smrg# We use the long form for the default assignment because of an extremely
12025e9554658Smrg# bizarre bug on SunOS 4.1.3.
12026e9554658Smrgif $ac_need_defaults; then
12027e9554658Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12028e9554658Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12029e9554658Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12030e9554658Smrgfi
12031e9554658Smrg
12032e9554658Smrg# Have a temporary directory for convenience.  Make it in the build tree
12033e9554658Smrg# simply because there is no reason against having it here, and in addition,
12034e9554658Smrg# creating and moving files from /tmp can sometimes cause problems.
12035e9554658Smrg# Hook for its removal unless debugging.
12036e9554658Smrg# Note that there is a small window in which the directory will not be cleaned:
12037e9554658Smrg# after its creation but before its name has been assigned to `$tmp'.
12038e9554658Smrg$debug ||
12039e9554658Smrg{
120408903d43aSmrg  tmp= ac_tmp=
12041e9554658Smrg  trap 'exit_status=$?
120428903d43aSmrg  : "${ac_tmp:=$tmp}"
120438903d43aSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12044e9554658Smrg' 0
120458903d43aSmrg  trap 'as_fn_exit 1' 1 2 13 15
12046e9554658Smrg}
12047e9554658Smrg# Create a (secure) tmp directory for tmp files.
12048e9554658Smrg
12049e9554658Smrg{
12050e9554658Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
120518903d43aSmrg  test -d "$tmp"
12052e9554658Smrg}  ||
12053e9554658Smrg{
12054e9554658Smrg  tmp=./conf$$-$RANDOM
12055e9554658Smrg  (umask 077 && mkdir "$tmp")
120568903d43aSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
120578903d43aSmrgac_tmp=$tmp
12058e9554658Smrg
12059c2b339b4Smrg# Set up the scripts for CONFIG_FILES section.
12060c2b339b4Smrg# No need to generate them if there are no CONFIG_FILES.
12061c2b339b4Smrg# This happens for instance with `./config.status config.h'.
12062e9554658Smrgif test -n "$CONFIG_FILES"; then
12063e9554658Smrg
12064e9554658Smrg
120658903d43aSmrgac_cr=`echo X | tr X '\015'`
120668903d43aSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
120678903d43aSmrg# But we know of no other shell where ac_cr would be empty at this
120688903d43aSmrg# point, so we can use a bashism as a fallback.
120698903d43aSmrgif test "x$ac_cr" = x; then
120708903d43aSmrg  eval ac_cr=\$\'\\r\'
120718903d43aSmrgfi
12072c2b339b4Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12073c2b339b4Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12074c2b339b4Smrg  ac_cs_awk_cr='\\r'
12075c2b339b4Smrgelse
12076c2b339b4Smrg  ac_cs_awk_cr=$ac_cr
12077e9554658Smrgfi
12078e9554658Smrg
120798903d43aSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12080e9554658Smrg_ACEOF
12081e9554658Smrg
12082e9554658Smrg
12083c2b339b4Smrg{
12084c2b339b4Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
12085c2b339b4Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12086c2b339b4Smrg  echo "_ACEOF"
12087c2b339b4Smrg} >conf$$subs.sh ||
120888903d43aSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
120898903d43aSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12090e9554658Smrgac_delim='%!_!# '
12091e9554658Smrgfor ac_last_try in false false false false false :; do
12092c2b339b4Smrg  . ./conf$$subs.sh ||
120938903d43aSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12094e9554658Smrg
12095c2b339b4Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12096c2b339b4Smrg  if test $ac_delim_n = $ac_delim_num; then
12097e9554658Smrg    break
12098e9554658Smrg  elif $ac_last_try; then
120998903d43aSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12100e9554658Smrg  else
12101e9554658Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12102e9554658Smrg  fi
12103e9554658Smrgdone
12104c2b339b4Smrgrm -f conf$$subs.sh
12105e9554658Smrg
12106c2b339b4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
121078903d43aSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12108c2b339b4Smrg_ACEOF
12109c2b339b4Smrgsed -n '
12110c2b339b4Smrgh
12111c2b339b4Smrgs/^/S["/; s/!.*/"]=/
12112c2b339b4Smrgp
12113c2b339b4Smrgg
12114c2b339b4Smrgs/^[^!]*!//
12115c2b339b4Smrg:repl
12116c2b339b4Smrgt repl
12117c2b339b4Smrgs/'"$ac_delim"'$//
12118c2b339b4Smrgt delim
12119c2b339b4Smrg:nl
12120c2b339b4Smrgh
121218903d43aSmrgs/\(.\{148\}\)..*/\1/
12122c2b339b4Smrgt more1
12123c2b339b4Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12124c2b339b4Smrgp
12125c2b339b4Smrgn
12126c2b339b4Smrgb repl
12127c2b339b4Smrg:more1
12128c2b339b4Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12129c2b339b4Smrgp
12130c2b339b4Smrgg
12131c2b339b4Smrgs/.\{148\}//
12132c2b339b4Smrgt nl
12133c2b339b4Smrg:delim
12134c2b339b4Smrgh
121358903d43aSmrgs/\(.\{148\}\)..*/\1/
12136c2b339b4Smrgt more2
12137c2b339b4Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
12138c2b339b4Smrgp
12139c2b339b4Smrgb
12140c2b339b4Smrg:more2
12141c2b339b4Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12142c2b339b4Smrgp
12143c2b339b4Smrgg
12144c2b339b4Smrgs/.\{148\}//
12145c2b339b4Smrgt delim
12146c2b339b4Smrg' <conf$$subs.awk | sed '
12147c2b339b4Smrg/^[^""]/{
12148c2b339b4Smrg  N
12149c2b339b4Smrg  s/\n//
12150c2b339b4Smrg}
12151c2b339b4Smrg' >>$CONFIG_STATUS || ac_write_fail=1
12152c2b339b4Smrgrm -f conf$$subs.awk
12153c2b339b4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12154c2b339b4Smrg_ACAWK
121558903d43aSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12156c2b339b4Smrg  for (key in S) S_is_set[key] = 1
12157c2b339b4Smrg  FS = ""
12158c2b339b4Smrg
12159c2b339b4Smrg}
12160c2b339b4Smrg{
12161c2b339b4Smrg  line = $ 0
12162c2b339b4Smrg  nfields = split(line, field, "@")
12163c2b339b4Smrg  substed = 0
12164c2b339b4Smrg  len = length(field[1])
12165c2b339b4Smrg  for (i = 2; i < nfields; i++) {
12166c2b339b4Smrg    key = field[i]
12167c2b339b4Smrg    keylen = length(key)
12168c2b339b4Smrg    if (S_is_set[key]) {
12169c2b339b4Smrg      value = S[key]
12170c2b339b4Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12171c2b339b4Smrg      len += length(value) + length(field[++i])
12172c2b339b4Smrg      substed = 1
12173c2b339b4Smrg    } else
12174c2b339b4Smrg      len += 1 + keylen
12175c2b339b4Smrg  }
12176c2b339b4Smrg
12177c2b339b4Smrg  print line
12178c2b339b4Smrg}
12179e9554658Smrg
12180c2b339b4Smrg_ACAWK
12181e9554658Smrg_ACEOF
12182c2b339b4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12183c2b339b4Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12184c2b339b4Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12185c2b339b4Smrgelse
12186c2b339b4Smrg  cat
121878903d43aSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
121888903d43aSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12189e9554658Smrg_ACEOF
12190e9554658Smrg
121918903d43aSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
121928903d43aSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12193e9554658Smrg# trailing colons and then remove the whole line if VPATH becomes empty
12194e9554658Smrg# (actually we leave an empty line to preserve line numbers).
12195e9554658Smrgif test "x$srcdir" = x.; then
121968903d43aSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
121978903d43aSmrgh
121988903d43aSmrgs///
121998903d43aSmrgs/^/:/
122008903d43aSmrgs/[	 ]*$/:/
122018903d43aSmrgs/:\$(srcdir):/:/g
122028903d43aSmrgs/:\${srcdir}:/:/g
122038903d43aSmrgs/:@srcdir@:/:/g
122048903d43aSmrgs/^:*//
12205e9554658Smrgs/:*$//
122068903d43aSmrgx
122078903d43aSmrgs/\(=[	 ]*\).*/\1/
122088903d43aSmrgG
122098903d43aSmrgs/\n//
12210e9554658Smrgs/^[^=]*=[	 ]*$//
12211e9554658Smrg}'
12212e9554658Smrgfi
12213e9554658Smrg
12214c2b339b4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12215e9554658Smrgfi # test -n "$CONFIG_FILES"
12216e9554658Smrg
12217c2b339b4Smrg# Set up the scripts for CONFIG_HEADERS section.
12218c2b339b4Smrg# No need to generate them if there are no CONFIG_HEADERS.
12219c2b339b4Smrg# This happens for instance with `./config.status Makefile'.
12220c2b339b4Smrgif test -n "$CONFIG_HEADERS"; then
122218903d43aSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12222c2b339b4SmrgBEGIN {
12223c2b339b4Smrg_ACEOF
12224c2b339b4Smrg
12225c2b339b4Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
12226c2b339b4Smrg# here-document in config.status, that substitutes the proper values into
12227c2b339b4Smrg# config.h.in to produce config.h.
12228c2b339b4Smrg
12229c2b339b4Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
12230c2b339b4Smrg# handling of long lines.
12231c2b339b4Smrgac_delim='%!_!# '
12232c2b339b4Smrgfor ac_last_try in false false :; do
122338903d43aSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
122348903d43aSmrg  if test -z "$ac_tt"; then
12235c2b339b4Smrg    break
12236c2b339b4Smrg  elif $ac_last_try; then
122378903d43aSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12238c2b339b4Smrg  else
12239c2b339b4Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12240c2b339b4Smrg  fi
12241c2b339b4Smrgdone
12242c2b339b4Smrg
12243c2b339b4Smrg# For the awk script, D is an array of macro values keyed by name,
12244c2b339b4Smrg# likewise P contains macro parameters if any.  Preserve backslash
12245c2b339b4Smrg# newline sequences.
12246c2b339b4Smrg
12247c2b339b4Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12248c2b339b4Smrgsed -n '
12249c2b339b4Smrgs/.\{148\}/&'"$ac_delim"'/g
12250c2b339b4Smrgt rset
12251c2b339b4Smrg:rset
12252c2b339b4Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12253c2b339b4Smrgt def
12254c2b339b4Smrgd
12255c2b339b4Smrg:def
12256c2b339b4Smrgs/\\$//
12257c2b339b4Smrgt bsnl
12258c2b339b4Smrgs/["\\]/\\&/g
12259c2b339b4Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12260c2b339b4SmrgD["\1"]=" \3"/p
12261c2b339b4Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12262c2b339b4Smrgd
12263c2b339b4Smrg:bsnl
12264c2b339b4Smrgs/["\\]/\\&/g
12265c2b339b4Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12266c2b339b4SmrgD["\1"]=" \3\\\\\\n"\\/p
12267c2b339b4Smrgt cont
12268c2b339b4Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12269c2b339b4Smrgt cont
12270c2b339b4Smrgd
12271c2b339b4Smrg:cont
12272c2b339b4Smrgn
12273c2b339b4Smrgs/.\{148\}/&'"$ac_delim"'/g
12274c2b339b4Smrgt clear
12275c2b339b4Smrg:clear
12276c2b339b4Smrgs/\\$//
12277c2b339b4Smrgt bsnlc
12278c2b339b4Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
12279c2b339b4Smrgd
12280c2b339b4Smrg:bsnlc
12281c2b339b4Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12282c2b339b4Smrgb cont
12283c2b339b4Smrg' <confdefs.h | sed '
12284c2b339b4Smrgs/'"$ac_delim"'/"\\\
12285c2b339b4Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
12286c2b339b4Smrg
12287c2b339b4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12288c2b339b4Smrg  for (key in D) D_is_set[key] = 1
12289c2b339b4Smrg  FS = ""
12290c2b339b4Smrg}
12291c2b339b4Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12292c2b339b4Smrg  line = \$ 0
12293c2b339b4Smrg  split(line, arg, " ")
12294c2b339b4Smrg  if (arg[1] == "#") {
12295c2b339b4Smrg    defundef = arg[2]
12296c2b339b4Smrg    mac1 = arg[3]
12297c2b339b4Smrg  } else {
12298c2b339b4Smrg    defundef = substr(arg[1], 2)
12299c2b339b4Smrg    mac1 = arg[2]
12300c2b339b4Smrg  }
12301c2b339b4Smrg  split(mac1, mac2, "(") #)
12302c2b339b4Smrg  macro = mac2[1]
12303c2b339b4Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
12304c2b339b4Smrg  if (D_is_set[macro]) {
12305c2b339b4Smrg    # Preserve the white space surrounding the "#".
12306c2b339b4Smrg    print prefix "define", macro P[macro] D[macro]
12307c2b339b4Smrg    next
12308c2b339b4Smrg  } else {
12309c2b339b4Smrg    # Replace #undef with comments.  This is necessary, for example,
12310c2b339b4Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
12311c2b339b4Smrg    # on some systems where configure will not decide to define it.
12312c2b339b4Smrg    if (defundef == "undef") {
12313c2b339b4Smrg      print "/*", prefix defundef, macro, "*/"
12314c2b339b4Smrg      next
12315c2b339b4Smrg    }
12316c2b339b4Smrg  }
12317c2b339b4Smrg}
12318c2b339b4Smrg{ print }
12319c2b339b4Smrg_ACAWK
12320c2b339b4Smrg_ACEOF
12321c2b339b4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
123228903d43aSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12323c2b339b4Smrgfi # test -n "$CONFIG_HEADERS"
12324c2b339b4Smrg
12325e9554658Smrg
12326c2b339b4Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12327c2b339b4Smrgshift
12328c2b339b4Smrgfor ac_tag
12329e9554658Smrgdo
12330e9554658Smrg  case $ac_tag in
12331e9554658Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
12332e9554658Smrg  esac
12333e9554658Smrg  case $ac_mode$ac_tag in
12334e9554658Smrg  :[FHL]*:*);;
123358903d43aSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12336e9554658Smrg  :[FH]-) ac_tag=-:-;;
12337e9554658Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12338e9554658Smrg  esac
12339e9554658Smrg  ac_save_IFS=$IFS
12340e9554658Smrg  IFS=:
12341e9554658Smrg  set x $ac_tag
12342e9554658Smrg  IFS=$ac_save_IFS
12343e9554658Smrg  shift
12344e9554658Smrg  ac_file=$1
12345e9554658Smrg  shift
12346e9554658Smrg
12347e9554658Smrg  case $ac_mode in
12348e9554658Smrg  :L) ac_source=$1;;
12349e9554658Smrg  :[FH])
12350e9554658Smrg    ac_file_inputs=
12351e9554658Smrg    for ac_f
12352e9554658Smrg    do
12353e9554658Smrg      case $ac_f in
123548903d43aSmrg      -) ac_f="$ac_tmp/stdin";;
12355e9554658Smrg      *) # Look for the file first in the build tree, then in the source tree
12356e9554658Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12357e9554658Smrg	 # because $ac_f cannot contain `:'.
12358e9554658Smrg	 test -f "$ac_f" ||
12359e9554658Smrg	   case $ac_f in
12360e9554658Smrg	   [\\/$]*) false;;
12361e9554658Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12362e9554658Smrg	   esac ||
123638903d43aSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12364e9554658Smrg      esac
12365c2b339b4Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
123668903d43aSmrg      as_fn_append ac_file_inputs " '$ac_f'"
12367e9554658Smrg    done
12368e9554658Smrg
12369e9554658Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
12370e9554658Smrg    # use $as_me), people would be surprised to read:
12371e9554658Smrg    #    /* config.h.  Generated by config.status.  */
12372c2b339b4Smrg    configure_input='Generated from '`
12373c2b339b4Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12374c2b339b4Smrg	`' by configure.'
12375e9554658Smrg    if test x"$ac_file" != x-; then
12376e9554658Smrg      configure_input="$ac_file.  $configure_input"
123778903d43aSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12378c2b339b4Smrg$as_echo "$as_me: creating $ac_file" >&6;}
12379e9554658Smrg    fi
12380c2b339b4Smrg    # Neutralize special characters interpreted by sed in replacement strings.
12381c2b339b4Smrg    case $configure_input in #(
12382c2b339b4Smrg    *\&* | *\|* | *\\* )
12383c2b339b4Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
12384c2b339b4Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12385c2b339b4Smrg    *) ac_sed_conf_input=$configure_input;;
12386c2b339b4Smrg    esac
12387e9554658Smrg
12388e9554658Smrg    case $ac_tag in
123898903d43aSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
123908903d43aSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12391e9554658Smrg    esac
12392e9554658Smrg    ;;
12393e9554658Smrg  esac
12394e9554658Smrg
12395e9554658Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
12396e9554658Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12397e9554658Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
12398e9554658Smrg	 X"$ac_file" : 'X\(//\)$' \| \
12399e9554658Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12400c2b339b4Smrg$as_echo X"$ac_file" |
12401e9554658Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12402e9554658Smrg	    s//\1/
12403e9554658Smrg	    q
12404e9554658Smrg	  }
12405e9554658Smrg	  /^X\(\/\/\)[^/].*/{
12406e9554658Smrg	    s//\1/
12407e9554658Smrg	    q
12408e9554658Smrg	  }
12409e9554658Smrg	  /^X\(\/\/\)$/{
12410e9554658Smrg	    s//\1/
12411e9554658Smrg	    q
12412e9554658Smrg	  }
12413e9554658Smrg	  /^X\(\/\).*/{
12414e9554658Smrg	    s//\1/
12415e9554658Smrg	    q
12416e9554658Smrg	  }
12417e9554658Smrg	  s/.*/./; q'`
124188903d43aSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
12419e9554658Smrg  ac_builddir=.
12420e9554658Smrg
12421e9554658Smrgcase "$ac_dir" in
12422e9554658Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12423e9554658Smrg*)
12424c2b339b4Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12425e9554658Smrg  # A ".." for each directory in $ac_dir_suffix.
12426c2b339b4Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12427e9554658Smrg  case $ac_top_builddir_sub in
12428e9554658Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12429e9554658Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12430e9554658Smrg  esac ;;
12431e9554658Smrgesac
12432e9554658Smrgac_abs_top_builddir=$ac_pwd
12433e9554658Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
12434e9554658Smrg# for backward compatibility:
12435e9554658Smrgac_top_builddir=$ac_top_build_prefix
12436e9554658Smrg
12437e9554658Smrgcase $srcdir in
12438e9554658Smrg  .)  # We are building in place.
12439e9554658Smrg    ac_srcdir=.
12440e9554658Smrg    ac_top_srcdir=$ac_top_builddir_sub
12441e9554658Smrg    ac_abs_top_srcdir=$ac_pwd ;;
12442e9554658Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
12443e9554658Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
12444e9554658Smrg    ac_top_srcdir=$srcdir
12445e9554658Smrg    ac_abs_top_srcdir=$srcdir ;;
12446e9554658Smrg  *) # Relative name.
12447e9554658Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12448e9554658Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
12449e9554658Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12450e9554658Smrgesac
12451e9554658Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12452e9554658Smrg
12453e9554658Smrg
12454e9554658Smrg  case $ac_mode in
12455e9554658Smrg  :F)
12456e9554658Smrg  #
12457e9554658Smrg  # CONFIG_FILE
12458e9554658Smrg  #
12459e9554658Smrg
12460e9554658Smrg  case $INSTALL in
12461e9554658Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12462e9554658Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12463e9554658Smrg  esac
12464e9554658Smrg  ac_MKDIR_P=$MKDIR_P
12465e9554658Smrg  case $MKDIR_P in
12466e9554658Smrg  [\\/$]* | ?:[\\/]* ) ;;
12467e9554658Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12468e9554658Smrg  esac
12469e9554658Smrg_ACEOF
12470e9554658Smrg
12471c2b339b4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12472e9554658Smrg# If the template does not know about datarootdir, expand it.
12473e9554658Smrg# FIXME: This hack should be removed a few years after 2.60.
12474e9554658Smrgac_datarootdir_hack=; ac_datarootdir_seen=
12475c2b339b4Smrgac_sed_dataroot='
12476c2b339b4Smrg/datarootdir/ {
12477e9554658Smrg  p
12478e9554658Smrg  q
12479e9554658Smrg}
12480e9554658Smrg/@datadir@/p
12481e9554658Smrg/@docdir@/p
12482e9554658Smrg/@infodir@/p
12483e9554658Smrg/@localedir@/p
124848903d43aSmrg/@mandir@/p'
12485c2b339b4Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12486e9554658Smrg*datarootdir*) ac_datarootdir_seen=yes;;
12487e9554658Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
124888903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12489c2b339b4Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12490e9554658Smrg_ACEOF
12491c2b339b4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12492e9554658Smrg  ac_datarootdir_hack='
12493e9554658Smrg  s&@datadir@&$datadir&g
12494e9554658Smrg  s&@docdir@&$docdir&g
12495e9554658Smrg  s&@infodir@&$infodir&g
12496e9554658Smrg  s&@localedir@&$localedir&g
12497e9554658Smrg  s&@mandir@&$mandir&g
124988903d43aSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
12499e9554658Smrgesac
12500e9554658Smrg_ACEOF
12501e9554658Smrg
12502e9554658Smrg# Neutralize VPATH when `$srcdir' = `.'.
12503e9554658Smrg# Shell code in configure.ac might set extrasub.
12504e9554658Smrg# FIXME: do we really want to maintain this feature?
12505c2b339b4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12506c2b339b4Smrgac_sed_extra="$ac_vpsub
12507e9554658Smrg$extrasub
12508e9554658Smrg_ACEOF
12509c2b339b4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12510e9554658Smrg:t
12511e9554658Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12512c2b339b4Smrgs|@configure_input@|$ac_sed_conf_input|;t t
12513e9554658Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
12514c2b339b4Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
12515e9554658Smrgs&@srcdir@&$ac_srcdir&;t t
12516e9554658Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
12517e9554658Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
12518e9554658Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12519e9554658Smrgs&@builddir@&$ac_builddir&;t t
12520e9554658Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
12521e9554658Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12522e9554658Smrgs&@INSTALL@&$ac_INSTALL&;t t
12523e9554658Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
12524e9554658Smrg$ac_datarootdir_hack
12525c2b339b4Smrg"
125268903d43aSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
125278903d43aSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12528e9554658Smrg
12529e9554658Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
125308903d43aSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
125318903d43aSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
125328903d43aSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
125338903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
125348903d43aSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
12535c2b339b4Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
125368903d43aSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
12537e9554658Smrg
125388903d43aSmrg  rm -f "$ac_tmp/stdin"
12539e9554658Smrg  case $ac_file in
125408903d43aSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
125418903d43aSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12542c2b339b4Smrg  esac \
125438903d43aSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12544e9554658Smrg ;;
12545e9554658Smrg  :H)
12546e9554658Smrg  #
12547e9554658Smrg  # CONFIG_HEADER
12548e9554658Smrg  #
12549e9554658Smrg  if test x"$ac_file" != x-; then
12550c2b339b4Smrg    {
12551c2b339b4Smrg      $as_echo "/* $configure_input  */" \
125528903d43aSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
125538903d43aSmrg    } >"$ac_tmp/config.h" \
125548903d43aSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
125558903d43aSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
125568903d43aSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12557c2b339b4Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
12558e9554658Smrg    else
12559c2b339b4Smrg      rm -f "$ac_file"
125608903d43aSmrg      mv "$ac_tmp/config.h" "$ac_file" \
125618903d43aSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12562e9554658Smrg    fi
12563e9554658Smrg  else
12564c2b339b4Smrg    $as_echo "/* $configure_input  */" \
125658903d43aSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
125668903d43aSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
12567e9554658Smrg  fi
12568c2b339b4Smrg# Compute "$ac_file"'s index in $config_headers.
12569c2b339b4Smrg_am_arg="$ac_file"
12570e9554658Smrg_am_stamp_count=1
12571e9554658Smrgfor _am_header in $config_headers :; do
12572e9554658Smrg  case $_am_header in
12573c2b339b4Smrg    $_am_arg | $_am_arg:* )
12574e9554658Smrg      break ;;
12575e9554658Smrg    * )
12576e9554658Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12577e9554658Smrg  esac
12578e9554658Smrgdone
12579c2b339b4Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12580c2b339b4Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12581c2b339b4Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12582c2b339b4Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
12583c2b339b4Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12584c2b339b4Smrg$as_echo X"$_am_arg" |
12585e9554658Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12586e9554658Smrg	    s//\1/
12587e9554658Smrg	    q
12588e9554658Smrg	  }
12589e9554658Smrg	  /^X\(\/\/\)[^/].*/{
12590e9554658Smrg	    s//\1/
12591e9554658Smrg	    q
12592e9554658Smrg	  }
12593e9554658Smrg	  /^X\(\/\/\)$/{
12594e9554658Smrg	    s//\1/
12595e9554658Smrg	    q
12596e9554658Smrg	  }
12597e9554658Smrg	  /^X\(\/\).*/{
12598e9554658Smrg	    s//\1/
12599e9554658Smrg	    q
12600e9554658Smrg	  }
12601e9554658Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
12602e9554658Smrg ;;
12603e9554658Smrg
126048903d43aSmrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12605c2b339b4Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
12606e9554658Smrg ;;
12607e9554658Smrg  esac
12608e9554658Smrg
12609e9554658Smrg
12610e9554658Smrg  case $ac_file$ac_mode in
12611c2b339b4Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12612c2b339b4Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12613c2b339b4Smrg  # are listed without --file.  Let's play safe and only enable the eval
12614c2b339b4Smrg  # if we detect the quoting.
12615c2b339b4Smrg  case $CONFIG_FILES in
12616c2b339b4Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
12617c2b339b4Smrg  *)   set x $CONFIG_FILES ;;
12618c2b339b4Smrg  esac
12619c2b339b4Smrg  shift
12620c2b339b4Smrg  for mf
12621c2b339b4Smrg  do
12622c2b339b4Smrg    # Strip MF so we end up with the name of the file.
12623c2b339b4Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
12624c2b339b4Smrg    # Check whether this is an Automake generated Makefile or not.
12625c2b339b4Smrg    # We used to match only the files named `Makefile.in', but
12626c2b339b4Smrg    # some people rename them; so instead we look at the file content.
12627c2b339b4Smrg    # Grep'ing the first line is not enough: some people post-process
12628c2b339b4Smrg    # each Makefile.in and add a new line on top of each file to say so.
12629c2b339b4Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
12630c2b339b4Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
12631c2b339b4Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12632c2b339b4Smrg      dirpart=`$as_dirname -- "$mf" ||
12633e9554658Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12634e9554658Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
12635e9554658Smrg	 X"$mf" : 'X\(//\)$' \| \
12636e9554658Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12637c2b339b4Smrg$as_echo X"$mf" |
12638e9554658Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12639e9554658Smrg	    s//\1/
12640e9554658Smrg	    q
12641e9554658Smrg	  }
12642e9554658Smrg	  /^X\(\/\/\)[^/].*/{
12643e9554658Smrg	    s//\1/
12644e9554658Smrg	    q
12645e9554658Smrg	  }
12646e9554658Smrg	  /^X\(\/\/\)$/{
12647e9554658Smrg	    s//\1/
12648e9554658Smrg	    q
12649e9554658Smrg	  }
12650e9554658Smrg	  /^X\(\/\).*/{
12651e9554658Smrg	    s//\1/
12652e9554658Smrg	    q
12653e9554658Smrg	  }
12654e9554658Smrg	  s/.*/./; q'`
12655c2b339b4Smrg    else
12656c2b339b4Smrg      continue
12657c2b339b4Smrg    fi
12658c2b339b4Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
12659c2b339b4Smrg    # from the Makefile without running `make'.
12660c2b339b4Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12661c2b339b4Smrg    test -z "$DEPDIR" && continue
12662c2b339b4Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12663c2b339b4Smrg    test -z "am__include" && continue
12664c2b339b4Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12665c2b339b4Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
12666c2b339b4Smrg    U=`sed -n 's/^U = //p' < "$mf"`
12667c2b339b4Smrg    # Find all dependency output files, they are included files with
12668c2b339b4Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12669c2b339b4Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
12670c2b339b4Smrg    # expansion.
12671c2b339b4Smrg    for file in `sed -n "
12672c2b339b4Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12673c2b339b4Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12674c2b339b4Smrg      # Make sure the directory exists.
12675c2b339b4Smrg      test -f "$dirpart/$file" && continue
12676c2b339b4Smrg      fdir=`$as_dirname -- "$file" ||
12677e9554658Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12678e9554658Smrg	 X"$file" : 'X\(//\)[^/]' \| \
12679e9554658Smrg	 X"$file" : 'X\(//\)$' \| \
12680e9554658Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12681c2b339b4Smrg$as_echo X"$file" |
12682e9554658Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12683e9554658Smrg	    s//\1/
12684e9554658Smrg	    q
12685e9554658Smrg	  }
12686e9554658Smrg	  /^X\(\/\/\)[^/].*/{
12687e9554658Smrg	    s//\1/
12688e9554658Smrg	    q
12689e9554658Smrg	  }
12690e9554658Smrg	  /^X\(\/\/\)$/{
12691e9554658Smrg	    s//\1/
12692e9554658Smrg	    q
12693e9554658Smrg	  }
12694e9554658Smrg	  /^X\(\/\).*/{
12695e9554658Smrg	    s//\1/
12696e9554658Smrg	    q
12697e9554658Smrg	  }
12698e9554658Smrg	  s/.*/./; q'`
126998903d43aSmrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12700c2b339b4Smrg      # echo "creating $dirpart/$file"
12701c2b339b4Smrg      echo '# dummy' > "$dirpart/$file"
12702c2b339b4Smrg    done
12703e9554658Smrg  done
12704c2b339b4Smrg}
12705e9554658Smrg ;;
12706e9554658Smrg
12707e9554658Smrg  esac
12708e9554658Smrgdone # for ac_tag
12709e9554658Smrg
12710e9554658Smrg
127118903d43aSmrgas_fn_exit 0
12712e9554658Smrg_ACEOF
12713e9554658Smrgac_clean_files=$ac_clean_files_save
12714e9554658Smrg
12715c2b339b4Smrgtest $ac_write_fail = 0 ||
127168903d43aSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12717c2b339b4Smrg
12718e9554658Smrg
12719e9554658Smrg# configure is writing to config.log, and then calls config.status.
12720e9554658Smrg# config.status does its own redirection, appending to config.log.
12721e9554658Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
12722e9554658Smrg# by configure, so config.status won't be able to write to it; its
12723e9554658Smrg# output is simply discarded.  So we exec the FD to /dev/null,
12724e9554658Smrg# effectively closing config.log, so it can be properly (re)opened and
12725e9554658Smrg# appended to by config.status.  When coming back to configure, we
12726e9554658Smrg# need to make the FD available again.
12727e9554658Smrgif test "$no_create" != yes; then
12728e9554658Smrg  ac_cs_success=:
12729e9554658Smrg  ac_config_status_args=
12730e9554658Smrg  test "$silent" = yes &&
12731e9554658Smrg    ac_config_status_args="$ac_config_status_args --quiet"
12732e9554658Smrg  exec 5>/dev/null
12733e9554658Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12734e9554658Smrg  exec 5>>config.log
12735e9554658Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12736e9554658Smrg  # would make configure fail if this is the last instruction.
127378903d43aSmrg  $ac_cs_success || as_fn_exit 1
12738e9554658Smrgfi
12739c2b339b4Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
127408903d43aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12741c2b339b4Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12742c2b339b4Smrgfi
12743e9554658Smrg
12744